hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
f3ac47f0d2af46f81dd25d634efde4812cbc00a9
2,263
py
Python
IATI2LOD/src/gather data scripts/DbpediaData.py
KasperBrandt/IATI2LOD
3a4fbcbf59d324e948b14509f74c50633d36a497
[ "MIT" ]
1
2019-08-03T00:52:44.000Z
2019-08-03T00:52:44.000Z
IATI2LOD/src/gather data scripts/DbpediaData.py
KasperBrandt/IATI2LOD
3a4fbcbf59d324e948b14509f74c50633d36a497
[ "MIT" ]
1
2015-10-11T09:47:25.000Z
2015-10-16T12:58:43.000Z
IATI2LOD/src/gather data scripts/DbpediaData.py
KasperBrandt/IATI2LOD
3a4fbcbf59d324e948b14509f74c50633d36a497
[ "MIT" ]
1
2021-05-29T03:43:01.000Z
2021-05-29T03:43:01.000Z
## By Kasper Brandt ## Last updated on 26-05-2013 import os, sys, datetime, urllib2, AddProvenance from rdflib import Namespace, Graph # Settings dbpedia_folder = "/media/Acer/School/IATI-data/dataset/DBPedia/" dbpedia_files = ["/media/Acer/School/IATI-data/mappings/DBPedia/dbpedia-countries-via-factbook.ttl", ...
35.359375
107
0.550155
f3acee9d31ba13e3a43678346252052e3800ae55
4,435
py
Python
mellow/core.py
unsonnet/mellow
130cadbf3e44108bcff311889ce6c8d95fb914ab
[ "Apache-2.0" ]
null
null
null
mellow/core.py
unsonnet/mellow
130cadbf3e44108bcff311889ce6c8d95fb914ab
[ "Apache-2.0" ]
null
null
null
mellow/core.py
unsonnet/mellow
130cadbf3e44108bcff311889ce6c8d95fb914ab
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import warnings import jax.numpy as np import jax.ops as jo import mellow.factory as factory import mellow.ops as mo
31.013986
85
0.573168
f3ad16d950f69a4578e20241f5adeaaeb72687a9
566
py
Python
PythonExercicios/ex082.py
lordvinick/Python
c03fd08d4c204104bf0196b0bd129427fd2067ae
[ "MIT" ]
null
null
null
PythonExercicios/ex082.py
lordvinick/Python
c03fd08d4c204104bf0196b0bd129427fd2067ae
[ "MIT" ]
null
null
null
PythonExercicios/ex082.py
lordvinick/Python
c03fd08d4c204104bf0196b0bd129427fd2067ae
[ "MIT" ]
null
null
null
print('\033[32m{:=^60}'.format('\033[36m Dividindo valores em vrias listas \033[32m')) lista = [] par = [] impar = [] while True: lista.append(int(input('\033[36mDigite um nmero: '))) resp = str(input('\033[32mQuer continuar? [S/N] ')).strip()[0] if resp in 'Nn': break for c in range(len(lista)): ...
29.789474
87
0.60424
f3ad47eaa0299f9f0aeb207c1f9ec4e1799a981c
1,337
py
Python
test_api.py
cagcoach/aikapi
cbb796d736b7a37536672b0f1841014b9b7545bb
[ "MIT" ]
null
null
null
test_api.py
cagcoach/aikapi
cbb796d736b7a37536672b0f1841014b9b7545bb
[ "MIT" ]
null
null
null
test_api.py
cagcoach/aikapi
cbb796d736b7a37536672b0f1841014b9b7545bb
[ "MIT" ]
null
null
null
from PythonAPI.bam import BAM import numpy as np dataset_dir = '/home/beatriz/Documentos/Work/final_datasets' # For Bea # dataset_dir = '/home/almartmen/Github/aikapi' # For Alberto dataset_name = '181129' bam = BAM(dataset_dir, dataset_name, image_format='png') # bam.unroll_videos() # print(bam.get_persons_in...
26.74
84
0.76739
f3ae9409239312cf1f2c371fef7e0fa56ab7da38
2,268
py
Python
account/management/commands/monthly_charging.py
coseasonruby/Gluu-Ecommerce-djagno-project
d196309bbd76571ee7793bd3de4342eb81f789e1
[ "MIT" ]
null
null
null
account/management/commands/monthly_charging.py
coseasonruby/Gluu-Ecommerce-djagno-project
d196309bbd76571ee7793bd3de4342eb81f789e1
[ "MIT" ]
null
null
null
account/management/commands/monthly_charging.py
coseasonruby/Gluu-Ecommerce-djagno-project
d196309bbd76571ee7793bd3de4342eb81f789e1
[ "MIT" ]
null
null
null
import logging import stripe from django.core.management.base import BaseCommand from django.core.exceptions import ObjectDoesNotExist from django.conf import settings from account import constants from account.utils import send_billing_email, send_charging_failed_email from payment.models import Payment ...
32.4
92
0.588624
f3aec13ab37c42864f83f8353ef76bbf6e8e00c7
420
py
Python
pokemon_combat/body_part.py
ryndovaira/telebot_fight_game
660473fea0de9635935495b0b2fd827bb51c47c9
[ "MIT" ]
null
null
null
pokemon_combat/body_part.py
ryndovaira/telebot_fight_game
660473fea0de9635935495b0b2fd827bb51c47c9
[ "MIT" ]
null
null
null
pokemon_combat/body_part.py
ryndovaira/telebot_fight_game
660473fea0de9635935495b0b2fd827bb51c47c9
[ "MIT" ]
null
null
null
from enum import Enum, auto
20
52
0.619048
f3b257822b7913a1facfcfc850069ed58c98159b
57,211
py
Python
labyrinth_8_rooms_quantum.py
katema-official/Tesi-laurea-triennale-Pisa-2021
e174c3d1719de6e66ca39923f4d21f0bee321385
[ "MIT" ]
1
2021-09-05T08:35:40.000Z
2021-09-05T08:35:40.000Z
labyrinth_8_rooms_quantum.py
katema-official/Tesi-laurea-triennale-Pisa-2021
e174c3d1719de6e66ca39923f4d21f0bee321385
[ "MIT" ]
null
null
null
labyrinth_8_rooms_quantum.py
katema-official/Tesi-laurea-triennale-Pisa-2021
e174c3d1719de6e66ca39923f4d21f0bee321385
[ "MIT" ]
1
2021-09-06T09:39:25.000Z
2021-09-06T09:39:25.000Z
import math from random import * from qiskit import * from qiskit.tools.visualization import plot_histogram import random #Molte cose saranno simili al codice classico, cambia solo la rappresentazione della #funzione di transizione, ovvero come l'agente sceglie la prossima stanza in cui andare #variabili agg...
38.039229
98
0.592229
f3b36f2c7d198610a8e506b544282c232463d80f
890
py
Python
setup.py
monk1337/amazon-denseclus
db891887a73210091f1b7454301efad60510e388
[ "MIT-0" ]
46
2021-08-04T13:21:57.000Z
2022-03-15T11:13:35.000Z
setup.py
monk1337/amazon-denseclus
db891887a73210091f1b7454301efad60510e388
[ "MIT-0" ]
7
2021-08-09T13:26:44.000Z
2022-02-12T03:36:32.000Z
setup.py
monk1337/amazon-denseclus
db891887a73210091f1b7454301efad60510e388
[ "MIT-0" ]
10
2021-08-07T06:22:14.000Z
2022-01-29T21:58:29.000Z
#!/usr/bin/env/python3 import setuptools with open("README.md", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="Amazon DenseClus", version="0.0.19", author="Charles Frenzel", description="Dense Clustering for Mixed Data Types", long_description=long_description, ...
27.8125
56
0.617978
f3b46bdda72352593d198e93a82e51738a8a28a2
1,715
py
Python
polog/tests/handlers/memory/test_saver.py
pomponchik/polog
104c5068a65b0eaeab59327aac1a583e2606e77e
[ "MIT" ]
30
2020-07-16T16:52:46.000Z
2022-03-24T16:56:29.000Z
polog/tests/handlers/memory/test_saver.py
pomponchik/polog
104c5068a65b0eaeab59327aac1a583e2606e77e
[ "MIT" ]
6
2021-02-07T22:08:01.000Z
2021-12-07T21:56:46.000Z
polog/tests/handlers/memory/test_saver.py
pomponchik/polog
104c5068a65b0eaeab59327aac1a583e2606e77e
[ "MIT" ]
4
2020-12-22T07:05:34.000Z
2022-03-24T16:56:50.000Z
import pytest from polog.handlers.memory.saver import memory_saver from polog.core.log_item import LogItem handler = memory_saver() def test_singleton(): """ , memory_saver - . """ assert memory_saver() is memory_saver() def test_add_empty_args(): """ , . """ handler({'message...
23.493151
86
0.641399
f3b7348c11a181769f9cbdb928c63709a1e219cd
828
py
Python
api/v2/serializers/fields/identity.py
simpsonw/atmosphere
3a5203ef0b563de3a0e8c8c8715df88186532d7a
[ "BSD-3-Clause" ]
197
2016-12-08T02:33:32.000Z
2022-03-23T14:27:47.000Z
api/v2/serializers/fields/identity.py
simpsonw/atmosphere
3a5203ef0b563de3a0e8c8c8715df88186532d7a
[ "BSD-3-Clause" ]
385
2017-01-03T22:51:46.000Z
2020-12-16T16:20:42.000Z
api/v2/serializers/fields/identity.py
benlazarine/atmosphere
38fad8e4002e510e8b4294f2bb5bc75e8e1817fa
[ "BSD-3-Clause" ]
50
2016-12-08T08:32:25.000Z
2021-12-10T00:21:39.000Z
from rest_framework import exceptions, serializers from api.v2.serializers.summaries import IdentitySummarySerializer from core.models import Identity
31.846154
78
0.660628
f3b7884aafaa410b826e7b2d1ae2cd0d7f82d7f9
426
py
Python
snippets/python/notification.py
Gautam-virmani/snippets
54b06ec46ce8b4afba3bfaf57a42e71686fd1cbd
[ "MIT" ]
null
null
null
snippets/python/notification.py
Gautam-virmani/snippets
54b06ec46ce8b4afba3bfaf57a42e71686fd1cbd
[ "MIT" ]
null
null
null
snippets/python/notification.py
Gautam-virmani/snippets
54b06ec46ce8b4afba3bfaf57a42e71686fd1cbd
[ "MIT" ]
null
null
null
#Title: Notification Processor #Tags:plyer,python #Can process notification of your choice #plyer:built in module help you to find more information from plyer import notification notifyme("Title of notification box", "Message in notification")
21.3
64
0.713615
f3b7b87f4bd425920ed3e99f413e2bce0c1f1914
1,296
py
Python
mysite/forms.py
donovan680/django-form-rendering
b075ab8904a8f5289f7c63bc62ff137313264a64
[ "MIT" ]
41
2017-10-11T13:24:22.000Z
2021-01-01T06:39:53.000Z
mysite/forms.py
donovan680/django-form-rendering
b075ab8904a8f5289f7c63bc62ff137313264a64
[ "MIT" ]
8
2020-06-24T01:37:23.000Z
2022-03-12T00:38:17.000Z
mysite/forms.py
sonkt22/lab_5_16521038_16520223
5801f594f7d3a0498d5f8790ccc6ba1e7947e42d
[ "MIT" ]
17
2017-11-10T22:43:09.000Z
2021-11-05T14:45:06.000Z
from django import forms
28.8
72
0.600309
f3b81f0da5b4d78d7f7a29ad65dbfe51dd9c3d39
2,411
py
Python
modules/dialogue_importer.py
KAIST-AILab/PyOpenDial
c9bca653c18ccc082dc8b86b4a8feee9ed00a75b
[ "MIT" ]
9
2019-09-23T01:56:43.000Z
2022-03-13T17:58:40.000Z
modules/dialogue_importer.py
KAIST-AILab/PyOpenDial
c9bca653c18ccc082dc8b86b4a8feee9ed00a75b
[ "MIT" ]
2
2019-11-18T17:02:30.000Z
2021-07-14T15:47:08.000Z
modules/dialogue_importer.py
KAIST-AILab/PyOpenDial
c9bca653c18ccc082dc8b86b4a8feee9ed00a75b
[ "MIT" ]
1
2022-02-08T06:41:19.000Z
2022-02-08T06:41:19.000Z
import logging from threading import Thread from time import sleep from multipledispatch import dispatch from dialogue_state import DialogueState from modules.dialogue_recorder import DialogueRecorder from modules.forward_planner import ForwardPlanner
33.486111
103
0.635421
f3bd372022e0d53e9cbf680c7d0eed7c97dec5db
1,652
py
Python
flask_cm/pycompile.py
Ginnam/flask-onlineIDE
fdac6ac4c0cdc096450704b5a345acc6d0f9e5b5
[ "MIT" ]
1
2022-02-25T02:21:21.000Z
2022-02-25T02:21:21.000Z
flask_cm/pycompile.py
Ginnam/flask-onlineIDE
fdac6ac4c0cdc096450704b5a345acc6d0f9e5b5
[ "MIT" ]
null
null
null
flask_cm/pycompile.py
Ginnam/flask-onlineIDE
fdac6ac4c0cdc096450704b5a345acc6d0f9e5b5
[ "MIT" ]
null
null
null
import os, sys, subprocess, tempfile, time # , TempFile = tempfile.mkdtemp(suffix='_test', prefix='python_') # FileNum = int(time.time() * 1000) # python EXEC = sys.executable # python # py # # if __name__ == '__main__': code = "print(11);print(12)" print(main(code))
22.026667
102
0.601695
f3bfdc81eb1e2339210b6f5811b1e4a0893f03f6
218
py
Python
flask_resultful_plugin/error.py
PushyZqin/flask-restful-plugin
7a142de96500910f5f7648d5edf8986afaa72b70
[ "MIT" ]
2
2018-11-28T13:49:18.000Z
2018-11-29T11:13:40.000Z
flask_resultful_plugin/error.py
PushyZqin/flask-restful-plugin
7a142de96500910f5f7648d5edf8986afaa72b70
[ "MIT" ]
null
null
null
flask_resultful_plugin/error.py
PushyZqin/flask-restful-plugin
7a142de96500910f5f7648d5edf8986afaa72b70
[ "MIT" ]
null
null
null
# encoding:utf-8 # 401 # 400 #
13.625
35
0.729358
f3c07f9cec57f76e746c76c17235957335504e0a
986
py
Python
wunderkafka/config/generated/enums.py
severstal-digital/wunderkafka
8c56fa4559a8576af7f005fd916bf97127576278
[ "Apache-2.0" ]
null
null
null
wunderkafka/config/generated/enums.py
severstal-digital/wunderkafka
8c56fa4559a8576af7f005fd916bf97127576278
[ "Apache-2.0" ]
null
null
null
wunderkafka/config/generated/enums.py
severstal-digital/wunderkafka
8c56fa4559a8576af7f005fd916bf97127576278
[ "Apache-2.0" ]
null
null
null
from enum import Enum
17.607143
52
0.618661
f3c198c78e3e7bb246c315b241264dd26e8e6ee5
12,928
py
Python
std/captum/21.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
std/captum/21.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
std/captum/21.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import torch import torch.nn as nn from transformers import BertTokenizer, BertForQuestionAnswering, BertConfig from captum.attr import visualization as viz from captum.attr import LayerConductance, LayerIntegratedGradients ...
35.712707
117
0.75905
f3c21ba1dec0f31a9f84ecd704fb5126c483d973
1,593
py
Python
examples/example_ME5ME6.py
bmachiel/python-substratestack
5689cdbc8582dac7a6b567c03e871ebb3a89343a
[ "BSD-2-Clause" ]
1
2020-03-10T14:46:47.000Z
2020-03-10T14:46:47.000Z
examples/example_ME5ME6.py
bmachiel/python-substratestack
5689cdbc8582dac7a6b567c03e871ebb3a89343a
[ "BSD-2-Clause" ]
null
null
null
examples/example_ME5ME6.py
bmachiel/python-substratestack
5689cdbc8582dac7a6b567c03e871ebb3a89343a
[ "BSD-2-Clause" ]
1
2020-03-10T14:48:49.000Z
2020-03-10T14:48:49.000Z
#!/bin/env python # import the technology's complete stack definition from example import stack # in order to decrease simulation times, some metal layers can be removed from # the stack, allowing more oxide layers to be merged in the next step stack.remove_metal_layer_by_name('PO1') stack.remove_metal_layer_by_name...
38.853659
78
0.755179
f3c32a1c29b23a9a39eedc92636dc8c119583df9
450
py
Python
other/dingding/dingtalk/api/rest/OapiProjectPointAddRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiProjectPointAddRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiProjectPointAddRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
''' Created by auto_sdk on 2020.12.24 ''' from dingtalk.api.base import RestApi
21.428571
42
0.733333
f3c435d0d39f9e66d72d19cb75fb37c344115fe5
364
py
Python
Q6.2_brain_teaser.py
latika18/learning
a57c9aacc0157bf7c318f46c1e7c4971d1d55aea
[ "Unlicense" ]
null
null
null
Q6.2_brain_teaser.py
latika18/learning
a57c9aacc0157bf7c318f46c1e7c4971d1d55aea
[ "Unlicense" ]
null
null
null
Q6.2_brain_teaser.py
latika18/learning
a57c9aacc0157bf7c318f46c1e7c4971d1d55aea
[ "Unlicense" ]
null
null
null
There is an 8x8 chess board in which two diagonally opposite corners have been cut off. You are given 31 dominos, and a single domino can cover exactly two squares. Can you use the 31 dominos to cover the entire board? Prove your answer (by providing an example, or showing why its impossible). _ ______________________...
60.666667
130
0.821429
f3c669bdb2eccb7f12b62cdf06d7c30a09c174eb
1,128
py
Python
make-web.py
blockulator/mpm-wasm
b88b12c27d0501ec2b1e793eee4dcbd6ee20d7c0
[ "CC0-1.0" ]
10
2019-04-24T15:19:22.000Z
2021-01-06T22:09:18.000Z
make-web.py
binaryfoundry/mpm-wasm
b88b12c27d0501ec2b1e793eee4dcbd6ee20d7c0
[ "CC0-1.0" ]
null
null
null
make-web.py
binaryfoundry/mpm-wasm
b88b12c27d0501ec2b1e793eee4dcbd6ee20d7c0
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python import os import stat from sys import platform from shutil import rmtree from subprocess import check_call if __name__ == "__main__": platform_type = get_platform_type() if platform_type == "unix": build_dir = resolve_path("bin/web") elif platform_type == "windows": ...
26.232558
79
0.64273
f3c6b52efc5243517d9844c7baac03ac3dc8305c
645
py
Python
django_site/parser_vacancies/migrations/0005_vacancies_count.py
StGrail/v.it
765cb720a16b0fff66e013b8b66a80d99168c16b
[ "MIT" ]
null
null
null
django_site/parser_vacancies/migrations/0005_vacancies_count.py
StGrail/v.it
765cb720a16b0fff66e013b8b66a80d99168c16b
[ "MIT" ]
1
2020-12-23T19:08:20.000Z
2020-12-23T19:08:20.000Z
django_site/parser_vacancies/migrations/0005_vacancies_count.py
StGrail/v.it
765cb720a16b0fff66e013b8b66a80d99168c16b
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-02-28 15:09 from django.db import migrations, models
28.043478
79
0.586047
f3c7491e9e71d4e9502531e23a18eb825a935574
1,906
py
Python
online.py
abraker95/auto-loved-bot
07e050a8804cea7614af917476c193797a453cb1
[ "MIT" ]
null
null
null
online.py
abraker95/auto-loved-bot
07e050a8804cea7614af917476c193797a453cb1
[ "MIT" ]
null
null
null
online.py
abraker95/auto-loved-bot
07e050a8804cea7614af917476c193797a453cb1
[ "MIT" ]
null
null
null
import time import requests import json
39.708333
100
0.681532
f3c7ea76bf70fcfdcb695ac78bfffa2982783fbb
5,674
py
Python
env/lib/python3.6/site-packages/txaio/__init__.py
CanOzcan93/TriviaServer
64bdffb91198a123860047ba46e3577078bdf2b8
[ "MIT" ]
null
null
null
env/lib/python3.6/site-packages/txaio/__init__.py
CanOzcan93/TriviaServer
64bdffb91198a123860047ba46e3577078bdf2b8
[ "MIT" ]
4
2020-02-12T03:17:43.000Z
2022-02-11T03:43:30.000Z
env/lib/python3.6/site-packages/txaio/__init__.py
CanOzcan93/TriviaServer
64bdffb91198a123860047ba46e3577078bdf2b8
[ "MIT" ]
null
null
null
############################################################################### # # The MIT License (MIT) # # Copyright (c) Crossbar.io Technologies GmbH # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in ...
38.863014
94
0.669545
f3c92fc16f8069456d0e03c98aecac588427d163
631
py
Python
ml/FirstTry.py
mzs9540/covid19
efe8b6e243f576f728a91fc5cde00b1ac0990ac1
[ "MIT" ]
1
2020-04-27T15:20:15.000Z
2020-04-27T15:20:15.000Z
ml/FirstTry.py
mzs9540/covid19
efe8b6e243f576f728a91fc5cde00b1ac0990ac1
[ "MIT" ]
null
null
null
ml/FirstTry.py
mzs9540/covid19
efe8b6e243f576f728a91fc5cde00b1ac0990ac1
[ "MIT" ]
1
2020-05-30T13:55:22.000Z
2020-05-30T13:55:22.000Z
import numpy as np import pandas as pd import matplotlib as plt import seaborn as sns df = pd.read_csv('from_april.csv', parse_dates=['Date']) df = df[(df.T !=0).any()] india = df[df['Country/Region'] == 'India'] india = india.drop(['Country/Region', 'Province/State', 'Lat', 'Long'], axis=1) india_confirmed = india....
30.047619
79
0.717908
f3c9330ad60935c8bba02ff2210990863eb4975a
8,714
py
Python
packetracer/ppcap.py
hatamiarash7/PacketTracer
a36aea8c5fb52c1950740dd086f44535989a6e40
[ "MIT" ]
3
2020-03-24T06:39:16.000Z
2021-04-20T19:25:49.000Z
packetracer/ppcap.py
hatamiarash7/PacketTracer
a36aea8c5fb52c1950740dd086f44535989a6e40
[ "MIT" ]
1
2019-12-29T12:55:55.000Z
2019-12-29T12:55:55.000Z
packetracer/ppcap.py
hatamiarash7/PacketTracer
a36aea8c5fb52c1950740dd086f44535989a6e40
[ "MIT" ]
7
2019-12-29T12:20:13.000Z
2021-08-02T05:04:48.000Z
""" Packet read and write routines for pcap format. See http://wiki.wireshark.org/Development/LibpcapFileFormat """ import logging import types from packetracer import packetracer from packetracer.layer12 import ethernet, linuxcc, radiotap, btle, can from packetracer.structcbs import pack_I, unpack_I_le from packetrac...
28.477124
112
0.638742
45ea50c656f2df404d63c9bcf2e207daad1a55b1
9,945
py
Python
ExomeDepth/ed_csv_to_vcf.py
UMCUGenetics/Dx_resources
a85743a02cfff9307ab6773be5c08aa76be24979
[ "MIT" ]
1
2021-11-10T12:53:12.000Z
2021-11-10T12:53:12.000Z
ExomeDepth/ed_csv_to_vcf.py
UMCUGenetics/Dx_resources
a85743a02cfff9307ab6773be5c08aa76be24979
[ "MIT" ]
21
2020-11-19T12:21:01.000Z
2021-04-22T15:32:27.000Z
ExomeDepth/ed_csv_to_vcf.py
UMCUGenetics/Dx_resources
a85743a02cfff9307ab6773be5c08aa76be24979
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import sys import os import re import subprocess import argparse import collections import copy import decimal import vcf import pysam import pandas as pd import settings if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('inputcsv', help='Full path to inp...
49.232673
171
0.578783
45ebe3749e2046bc703af338f5dbb735d4819c59
11,617
py
Python
wallet.py
ock666/python-blockchain
3729ba0b3de03bc0011b1cb5cb535573ca24b79c
[ "MIT" ]
null
null
null
wallet.py
ock666/python-blockchain
3729ba0b3de03bc0011b1cb5cb535573ca24b79c
[ "MIT" ]
null
null
null
wallet.py
ock666/python-blockchain
3729ba0b3de03bc0011b1cb5cb535573ca24b79c
[ "MIT" ]
null
null
null
import binascii import json import os import requests from time import time from Crypto.PublicKey import RSA from Crypto.Hash import SHA256 from Crypto.Hash import RIPEMD160 from Crypto.Signature import pkcs1_15 import Validation import PySimpleGUI as sg import hashlib wallet = Wallet() layout = [ [sg.Text('Welc...
34.574405
148
0.597659
45ed841d519de0d549307e7c5e5b5c1fb5b0def1
2,586
py
Python
opps/core/tags/views.py
jeanmask/opps
031c6136c38d43aa6d1ccb25a94f7bcd65ccbf87
[ "MIT" ]
159
2015-01-03T16:36:35.000Z
2022-03-29T20:50:13.000Z
opps/core/tags/views.py
jeanmask/opps
031c6136c38d43aa6d1ccb25a94f7bcd65ccbf87
[ "MIT" ]
81
2015-01-02T21:26:16.000Z
2021-05-29T12:24:52.000Z
opps/core/tags/views.py
jeanmask/opps
031c6136c38d43aa6d1ccb25a94f7bcd65ccbf87
[ "MIT" ]
75
2015-01-23T13:41:03.000Z
2021-09-24T03:45:23.000Z
# -*- encoding: utf-8 -*- from django.utils import timezone from django.contrib.sites.models import get_current_site from django.conf import settings from haystack.query import SearchQuerySet from opps.views.generic.list import ListView from opps.containers.models import Container from opps.channels.models import Ch...
31.156627
75
0.626837
45edca108e30053b7caf54d078e854708b738e3e
300
py
Python
Scripts/TK_xls-to-peaks.py
colinwalshbrown/CWB_utils
86675812f9398845d1994b57500830e2c3dc6cc0
[ "MIT" ]
null
null
null
Scripts/TK_xls-to-peaks.py
colinwalshbrown/CWB_utils
86675812f9398845d1994b57500830e2c3dc6cc0
[ "MIT" ]
null
null
null
Scripts/TK_xls-to-peaks.py
colinwalshbrown/CWB_utils
86675812f9398845d1994b57500830e2c3dc6cc0
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys if len(sys.argv) < 2: print "usage: TK_xls-to-peaks.py <TK_xls>" sys.exit(0) for line in open(sys.argv[1]): l = line[:-1].split() for (i,x) in enumerate(l[4][:-1].split(",")): print "\t".join((l[0],l[1],x,l[5][:-1].split(",")[i]))
21.428571
62
0.52
45ee805f01f9aaeb166bd38905c0d475f3c26174
538
py
Python
ibsng/handler/invoice/get_invoice_by_i_d.py
ParspooyeshFanavar/pyibsng
d48bcf4f25e3f23461528bf0ff8870cc3d537444
[ "MIT" ]
6
2018-03-06T10:16:36.000Z
2021-12-05T12:43:10.000Z
ibsng/handler/invoice/get_invoice_by_i_d.py
ParspooyeshFanavar/pyibsng
d48bcf4f25e3f23461528bf0ff8870cc3d537444
[ "MIT" ]
3
2018-03-06T10:27:08.000Z
2022-01-02T15:21:27.000Z
ibsng/handler/invoice/get_invoice_by_i_d.py
ParspooyeshFanavar/pyibsng
d48bcf4f25e3f23461528bf0ff8870cc3d537444
[ "MIT" ]
3
2018-01-06T16:28:31.000Z
2018-09-17T19:47:19.000Z
"""Get invoice by id API method.""" from ibsng.handler.handler import Handler
21.52
47
0.598513
45eea81559471893b1def8629833f3b22ac4855f
5,848
py
Python
data/semialigned_dataset.py
jlim13/pytorch-CycleGAN-and-pix2pix
15d0cb5b81034ade7e8f160c973bf119c118026f
[ "BSD-3-Clause" ]
null
null
null
data/semialigned_dataset.py
jlim13/pytorch-CycleGAN-and-pix2pix
15d0cb5b81034ade7e8f160c973bf119c118026f
[ "BSD-3-Clause" ]
null
null
null
data/semialigned_dataset.py
jlim13/pytorch-CycleGAN-and-pix2pix
15d0cb5b81034ade7e8f160c973bf119c118026f
[ "BSD-3-Clause" ]
null
null
null
import os.path from data.base_dataset import BaseDataset, get_transform from data.image_folder import make_dataset from PIL import Image import random import torchvision import numpy as np
47.16129
142
0.642613
45eef8d38d3d2882fbd9149df61dee967b85e748
1,193
py
Python
iotcookbook/device/pi/neopixel/client.py
Weeshlow/crossbarexamples
e392ea2708f52ba322e63808041f9fe6dcfe893e
[ "Apache-2.0" ]
2
2020-11-05T21:59:58.000Z
2020-11-05T22:00:04.000Z
iotcookbook/device/pi/neopixel/client.py
Weeshlow/crossbarexamples
e392ea2708f52ba322e63808041f9fe6dcfe893e
[ "Apache-2.0" ]
null
null
null
iotcookbook/device/pi/neopixel/client.py
Weeshlow/crossbarexamples
e392ea2708f52ba322e63808041f9fe6dcfe893e
[ "Apache-2.0" ]
null
null
null
import time import random import Adafruit_ADS1x15 from neopixel import * LED_COUNT = 8 # Number of LED pixels. LED_PIN = 12 # GPIO pin connected to the pixels (must support PWM!). LED_FREQ_HZ = 800000 # LED signal frequency in hertz (usually 800khz) LED_DMA = 5 # DMA channel to ...
29.825
96
0.677284
45f3dd0f0a21b65109b31f2a77f344a848021f3d
3,118
py
Python
find_sources.py
DarthPumpkin/github-search
2dc8489380825b83e2d2773bc32d439bd30e1d00
[ "MIT" ]
null
null
null
find_sources.py
DarthPumpkin/github-search
2dc8489380825b83e2d2773bc32d439bd30e1d00
[ "MIT" ]
1
2018-05-07T10:05:34.000Z
2018-05-17T23:52:12.000Z
find_sources.py
DarthPumpkin/github-search
2dc8489380825b83e2d2773bc32d439bd30e1d00
[ "MIT" ]
null
null
null
import requests import json import time import os import sys green = "\x1b[38;2;0;255;0m" greenish = "\x1b[38;2;93;173;110m" red = "\x1b[38;2;255;0;0m" grey = "\x1b[38;2;193;184;192m" reset = "\033[0m" clear_line = "\033[0K" # Maximum repository size in megabytes MAX_REPO_SIZE = 5 if __name__ == "__main__": c...
32.821053
130
0.5
45f3fcad09fc42f40418fb6463c46682701c0e2e
437
py
Python
aproaches/edit_distance.py
tyomik-mnemonic/genling
a04c5ea39c85dadf2ceabbe145cc8af368feaf3d
[ "MIT" ]
null
null
null
aproaches/edit_distance.py
tyomik-mnemonic/genling
a04c5ea39c85dadf2ceabbe145cc8af368feaf3d
[ "MIT" ]
null
null
null
aproaches/edit_distance.py
tyomik-mnemonic/genling
a04c5ea39c85dadf2ceabbe145cc8af368feaf3d
[ "MIT" ]
null
null
null
import numpy as np
25.705882
120
0.528604
45f527d040e941bb168a70a411e833a07e6375f2
3,228
py
Python
packages/plugins/minos-broker-kafka/tests/test_kafka/test_publisher.py
sorasful/minos-python
1189330eebf6444627a2af6b29f347670f95a4dd
[ "MIT" ]
null
null
null
packages/plugins/minos-broker-kafka/tests/test_kafka/test_publisher.py
sorasful/minos-python
1189330eebf6444627a2af6b29f347670f95a4dd
[ "MIT" ]
null
null
null
packages/plugins/minos-broker-kafka/tests/test_kafka/test_publisher.py
sorasful/minos-python
1189330eebf6444627a2af6b29f347670f95a4dd
[ "MIT" ]
null
null
null
import unittest from unittest.mock import ( AsyncMock, ) from aiokafka import ( AIOKafkaProducer, ) from minos.common import ( MinosConfig, ) from minos.networks import ( BrokerMessage, BrokerMessageV1, BrokerMessageV1Payload, BrokerPublisher, InMemoryBrokerPublisherQueue, PostgreS...
33.625
93
0.746592
45f53cf6771cde1fc2d9a9e66f10c9b1b627fc8f
1,406
py
Python
training.py
BertilBraun/Keras-Testing
d6326fd60b2ef66cef5918963735c09108c57a39
[ "MIT", "Unlicense" ]
null
null
null
training.py
BertilBraun/Keras-Testing
d6326fd60b2ef66cef5918963735c09108c57a39
[ "MIT", "Unlicense" ]
null
null
null
training.py
BertilBraun/Keras-Testing
d6326fd60b2ef66cef5918963735c09108c57a39
[ "MIT", "Unlicense" ]
null
null
null
from model import make_model, IMAGE_SIZE from tensorflow.keras.preprocessing.image import ImageDataGenerator model = make_model() batch_size = 16 # this is the augmentation configuration we will use for training train_datagen = ImageDataGenerator( rescale=1./255, shear_range=0.2, zoom_range=0.2, hori...
32.697674
93
0.771693
45f5aa52358da93645231378c0fbfaf7b12d6756
2,319
py
Python
examples/custom_node.py
tomaszkurgan/sapling
717681f04f9cb00a47322c5a16f052b8658d558b
[ "MIT" ]
null
null
null
examples/custom_node.py
tomaszkurgan/sapling
717681f04f9cb00a47322c5a16f052b8658d558b
[ "MIT" ]
null
null
null
examples/custom_node.py
tomaszkurgan/sapling
717681f04f9cb00a47322c5a16f052b8658d558b
[ "MIT" ]
null
null
null
import uuid import sapling # create your own node by inheritance from sapling.Node # There are two ways to force the sapling.Tree to use your node's class: # 1. create new tree class using sapling.Tree and your node class as bases # Because sapling.Tree inherits from sapling.Node class, using dependency injecti...
31.337838
101
0.661492
45f7d5e01697e17c5a199f0a10ec2c7a976ffda3
760
py
Python
lesson_06/Classwork_03.py
rotorypower/lessons
bd8f0d54159023e677608f2104e38d82de388fe4
[ "BSD-3-Clause" ]
null
null
null
lesson_06/Classwork_03.py
rotorypower/lessons
bd8f0d54159023e677608f2104e38d82de388fe4
[ "BSD-3-Clause" ]
null
null
null
lesson_06/Classwork_03.py
rotorypower/lessons
bd8f0d54159023e677608f2104e38d82de388fe4
[ "BSD-3-Clause" ]
null
null
null
""" 36 , (6 - 10, J, D, K, A), (Hearts, Diamonds, Clubs, Spades).""" import random """faces = ["6", "7", "8", "9", "10", "J", "D", "K", "A"] suits = ["Hearts", "Diamonds", "Clubs", "Spades"] a = random.choice(faces) b = random.choice(suits) print(a) print(b) """ if __name__ == "__main__": ...
26.206897
100
0.588158
45f963fdadc62c879fcb2ad403eb6e3254578fab
5,911
py
Python
permon/frontend/native/__init__.py
bminixhofer/permon
47fe06ebdc8c0655f865d38f073bae63a1acbd4d
[ "MIT" ]
25
2018-04-03T00:26:57.000Z
2021-11-08T12:05:07.000Z
permon/frontend/native/__init__.py
bminixhofer/permon
47fe06ebdc8c0655f865d38f073bae63a1acbd4d
[ "MIT" ]
13
2018-03-31T11:57:00.000Z
2021-03-08T23:04:38.000Z
permon/frontend/native/__init__.py
bminixhofer/permon
47fe06ebdc8c0655f865d38f073bae63a1acbd4d
[ "MIT" ]
6
2018-04-18T19:18:52.000Z
2020-08-29T05:54:22.000Z
import sys import os import logging import signal from permon.frontend import Monitor, MonitorApp # these modules will be imported later because PySide2 # might not be installed QtWidgets = None QtGui = None QtCore = None QtQuick = None Qt = None MonitorModel = None SettingsModel = None
34.567251
79
0.603451
45fba0d47dbe3aae5e278b953d7dc0590607ce49
2,631
py
Python
experiments/ring_buffer.py
reip-project/reip-pipelines
c6a8341e963b73f6fd08d63513876590e5af3d62
[ "BSD-3-Clause-Clear" ]
null
null
null
experiments/ring_buffer.py
reip-project/reip-pipelines
c6a8341e963b73f6fd08d63513876590e5af3d62
[ "BSD-3-Clause-Clear" ]
null
null
null
experiments/ring_buffer.py
reip-project/reip-pipelines
c6a8341e963b73f6fd08d63513876590e5af3d62
[ "BSD-3-Clause-Clear" ]
null
null
null
from interface import * import numpy as np import copy if __name__ == '__main__': rb = RingBuffer(100) print(issubclass(type(rb), Sink)) r0 = rb.gen_source() r1 = rb.gen_source(strategy=Source.Skip, skip=1) r2 = rb.gen_source(strategy=Source.Latest) for i in range(10): rb.put((i,...
26.31
82
0.58913
45feb86155af725aa9e4cb373ec68bcdb40c838f
837
py
Python
solvcon/tests/test_numpy.py
j8xixo12/solvcon
a8bf3a54d4b1ed91d292e0cdbcb6f2710d33d99a
[ "BSD-3-Clause" ]
16
2015-12-09T02:54:42.000Z
2021-04-20T11:26:39.000Z
solvcon/tests/test_numpy.py
j8xixo12/solvcon
a8bf3a54d4b1ed91d292e0cdbcb6f2710d33d99a
[ "BSD-3-Clause" ]
95
2015-12-09T00:49:40.000Z
2022-02-14T13:34:55.000Z
solvcon/tests/test_numpy.py
j8xixo12/solvcon
a8bf3a54d4b1ed91d292e0cdbcb6f2710d33d99a
[ "BSD-3-Clause" ]
13
2015-05-08T04:16:42.000Z
2021-01-15T09:28:06.000Z
# -*- coding: UTF-8 -*- from unittest import TestCase
31
64
0.523297
45ff2ecb9b4c51dd290f8df481731ee3dacbf736
67
py
Python
localized_fields/__init__.py
GabLeRoux/django-localized-fields
f0ac0f7f2503317fde5d75ba8481e34db83512bd
[ "MIT" ]
null
null
null
localized_fields/__init__.py
GabLeRoux/django-localized-fields
f0ac0f7f2503317fde5d75ba8481e34db83512bd
[ "MIT" ]
null
null
null
localized_fields/__init__.py
GabLeRoux/django-localized-fields
f0ac0f7f2503317fde5d75ba8481e34db83512bd
[ "MIT" ]
null
null
null
default_app_config = 'localized_fields.apps.LocalizedFieldsConfig'
33.5
66
0.880597
45ff8b6b5f60c48ddfa54fb927e52bf066809499
6,044
py
Python
influxgraph/classes/tree.py
InfluxGraph/influxgraph
347c9b48f7708f1621a032ef2ca7d0915bc4a0b6
[ "Apache-2.0" ]
97
2016-10-26T15:39:44.000Z
2021-11-29T06:57:22.000Z
influxgraph/classes/tree.py
olajowon/influxgraph
347c9b48f7708f1621a032ef2ca7d0915bc4a0b6
[ "Apache-2.0" ]
52
2016-10-25T15:14:24.000Z
2021-01-15T15:44:02.000Z
influxgraph/classes/tree.py
olajowon/influxgraph
347c9b48f7708f1621a032ef2ca7d0915bc4a0b6
[ "Apache-2.0" ]
29
2016-11-15T21:53:58.000Z
2021-11-05T19:19:35.000Z
# Copyright (C) [2015-2017] [Thomson Reuters LLC] # Copyright (C) [2015-2017] [Panos Kittenis] # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0...
33.955056
79
0.615817
34004ea3073310db42117fab0c831aaf98b2e811
697
py
Python
agent/alembic/versions/d04cf726555d_create_pipeline_retries_table.py
anodot/daria
d475899309f56cd85347be0f7001a0dd97dd197a
[ "Apache-2.0" ]
16
2019-04-03T08:31:54.000Z
2021-01-24T17:12:04.000Z
agent/alembic/versions/d04cf726555d_create_pipeline_retries_table.py
anodot/daria
d475899309f56cd85347be0f7001a0dd97dd197a
[ "Apache-2.0" ]
10
2020-01-20T14:59:06.000Z
2022-01-21T10:19:16.000Z
agent/alembic/versions/d04cf726555d_create_pipeline_retries_table.py
anodot/daria
d475899309f56cd85347be0f7001a0dd97dd197a
[ "Apache-2.0" ]
5
2021-01-08T19:23:03.000Z
2021-11-09T14:15:49.000Z
"""create pipeline_retries table Revision ID: d04cf726555d Revises: fc92fa8ed02b Create Date: 2021-09-02 13:04:36.053768 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'd04cf726555d' down_revision = 'fc92fa8ed02b' branch_labels = None depends_on = None
23.233333
117
0.730273
34013eeb0dc107d3ab7cd078b429e806ffc56add
2,525
py
Python
CAAPR/CAAPR_AstroMagic/PTS/pts/magic/animation/scatter.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
7
2016-05-20T21:56:39.000Z
2022-02-07T21:09:48.000Z
CAAPR/CAAPR_AstroMagic/PTS/pts/magic/animation/scatter.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
1
2019-03-21T16:10:04.000Z
2019-03-22T17:21:56.000Z
CAAPR/CAAPR_AstroMagic/PTS/pts/magic/animation/scatter.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
1
2020-05-19T16:17:17.000Z
2020-05-19T16:17:17.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** Astronomical Observatory, Ghent University ** # ***************************************************************** ## ...
27.445652
76
0.514059
3401e7d0ecf41d08ab5511f500baa59628ea1b4d
336
py
Python
2409.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
1
2022-01-14T08:45:32.000Z
2022-01-14T08:45:32.000Z
2409.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
null
null
null
2409.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
null
null
null
a, b, c = map(int, input().split()) h, l = map(int, input().split()) if a <= h and b <= l: print("S") elif a <= h and c <= l: print("S") elif b <= h and a <= l: print("S") elif b <= h and c <= l: print("S") elif c <= h and a <= l: print("S") elif c <= h and b <= l: print("S") else:...
21
36
0.4375
3403e8075fdfc60c6582826c725d9cc68e94658b
16,760
py
Python
tests/bitserv/test_channels.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/bitserv/test_channels.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/bitserv/test_channels.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
"""Tests for payment channel functionality.""" import time import codecs import pytest import collections import multiprocessing import two1.bitcoin.utils as utils from two1.bitcoin import Script, Hash from two1.bitcoin import PrivateKey from two1.bitcoin import Transaction, TransactionInput, TransactionOutput from tw...
43.195876
116
0.748866
3403f5c550e586734e611cd55d8e1765defe86ed
297
py
Python
aiida/cmdline/groups/__init__.py
aiidateam/aiida_core
46d244e32ac5eca2e22a3d088314591ce064be57
[ "PSF-2.0", "MIT" ]
153
2016-12-23T20:59:03.000Z
2019-07-02T06:47:52.000Z
aiida/cmdline/groups/__init__.py
aiidateam/aiida_core
46d244e32ac5eca2e22a3d088314591ce064be57
[ "PSF-2.0", "MIT" ]
2,466
2016-12-24T01:03:52.000Z
2019-07-04T13:41:08.000Z
aiida/cmdline/groups/__init__.py
aiidateam/aiida_core
46d244e32ac5eca2e22a3d088314591ce064be57
[ "PSF-2.0", "MIT" ]
88
2016-12-23T16:28:00.000Z
2019-07-01T15:55:20.000Z
# -*- coding: utf-8 -*- """Module with custom implementations of :class:`click.Group`.""" # AUTO-GENERATED # yapf: disable # pylint: disable=wildcard-import from .dynamic import * from .verdi import * __all__ = ( 'DynamicEntryPointCommandGroup', 'VerdiCommandGroup', ) # yapf: enable
16.5
65
0.686869
3404a220cc2c7335fc1d99ac2799acd671b399e7
1,410
py
Python
templates/pythonScripts/ExtraMeeting.py
cameronosmith/webreg-to-google-calendar
b245d17ce763082f253e98755d1e24a973b6d1ea
[ "MIT" ]
null
null
null
templates/pythonScripts/ExtraMeeting.py
cameronosmith/webreg-to-google-calendar
b245d17ce763082f253e98755d1e24a973b6d1ea
[ "MIT" ]
null
null
null
templates/pythonScripts/ExtraMeeting.py
cameronosmith/webreg-to-google-calendar
b245d17ce763082f253e98755d1e24a973b6d1ea
[ "MIT" ]
null
null
null
#class for meetings other than lecture
23.114754
92
0.51844
34059f034a2a3d3139f78563258f3ffdcd3bb516
9,125
py
Python
tests/module/module_orm_test.py
codacy-badger/graphit
7fcfed114875466179ed3d4848dd9098fa3e60fb
[ "Apache-2.0" ]
null
null
null
tests/module/module_orm_test.py
codacy-badger/graphit
7fcfed114875466179ed3d4848dd9098fa3e60fb
[ "Apache-2.0" ]
null
null
null
tests/module/module_orm_test.py
codacy-badger/graphit
7fcfed114875466179ed3d4848dd9098fa3e60fb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ file: module_graphorm_test.py Unit tests for the Graph Object Relations Mapper (orm) """ import os from unittest_baseclass import UnittestPythonCompatibility from graphit.graph_io.io_tgf_format import read_tgf from graphit.graph_orm import GraphORM # ORM test classes
32.358156
111
0.626192
3405aae6a2b0713fec880df0831625e4b08bb01c
8,578
py
Python
naoqi-sdk-2.5.5.5-linux64/lib/python2.7/site-packages/ialbehavior.py
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
null
null
null
naoqi-sdk-2.5.5.5-linux64/lib/python2.7/site-packages/ialbehavior.py
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
null
null
null
naoqi-sdk-2.5.5.5-linux64/lib/python2.7/site-packages/ialbehavior.py
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.11 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2,6,0): _ialbehavior = swig_import_helper() del swig_im...
49.017143
107
0.742597
34076bc49c41e49eb9b085cc0d9b6ff981592a3c
4,654
py
Python
src/storage-preview/azext_storage_preview/tests/latest/test_storage_file_scenarios.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/storage-preview/azext_storage_preview/tests/latest/test_storage_file_scenarios.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/storage-preview/azext_storage_preview/tests/latest/test_storage_file_scenarios.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
51.142857
121
0.588526
340b77b6abbc62dbe070ea6034ab0b693a686510
5,189
py
Python
API/conftest.py
BahrmaLe/otus_python_homework
510a4f1971b35048d760fcc45098e511b81bea31
[ "MIT" ]
1
2021-02-25T15:37:21.000Z
2021-02-25T15:37:21.000Z
API/conftest.py
BahrmaLe/otus_python_homework
510a4f1971b35048d760fcc45098e511b81bea31
[ "MIT" ]
null
null
null
API/conftest.py
BahrmaLe/otus_python_homework
510a4f1971b35048d760fcc45098e511b81bea31
[ "MIT" ]
null
null
null
"""Fixtures for tests.py (Dogs API testing)""" import pytest import requests URLS = ["https://dog.ceo/dog-api/", "https://dog.ceo/api/breeds/list/all", "https://dog.ceo/api/breeds/image/random", "https://dog.ceo/api/breeds/image/random/3", "https://dog.ceo/api/breed/hound/images", ...
31.259036
83
0.631143
340b8f990c1b32dcdd389654c6b09c11a8ed3506
2,418
py
Python
incubator/kafka-connect/kafka-connect.py
CiscoM31/functions
96e34dfc815d92563ce2421b41c9c18906c8278b
[ "Apache-2.0" ]
74
2017-07-26T17:02:39.000Z
2021-07-27T22:27:57.000Z
incubator/kafka-connect/kafka-connect.py
CiscoM31/functions
96e34dfc815d92563ce2421b41c9c18906c8278b
[ "Apache-2.0" ]
15
2017-06-23T23:48:39.000Z
2019-10-01T09:49:32.000Z
incubator/kafka-connect/kafka-connect.py
CiscoM31/functions
96e34dfc815d92563ce2421b41c9c18906c8278b
[ "Apache-2.0" ]
35
2017-06-20T14:44:21.000Z
2021-11-04T12:28:31.000Z
import json import base64 from kubernetes import client, config config.load_incluster_config() v1=client.CoreV1Api() #Get slack secret for secrets in v1.list_secret_for_all_namespaces().items: if secrets.metadata.name == 'slack': token = base64.b64decode(secrets.data['token']) print "==> Function ready t...
42.421053
244
0.58354
340dfed74a4b1be15e68416365f62da3eb69232c
2,278
py
Python
Sentinel2_genAnalytics.py
silentassasin0111/pySatLib
143b0c480f14dfe1ba00ed57f2ddeca30a14dd9d
[ "MIT" ]
null
null
null
Sentinel2_genAnalytics.py
silentassasin0111/pySatLib
143b0c480f14dfe1ba00ed57f2ddeca30a14dd9d
[ "MIT" ]
null
null
null
Sentinel2_genAnalytics.py
silentassasin0111/pySatLib
143b0c480f14dfe1ba00ed57f2ddeca30a14dd9d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python3 from __future__ import print_function import numpy as np import os import argparse import time import pandas as pd from termcolor import colored from analytics.analyzer import Sentinel2Analyzer parser = argparse.ArgumentParser(description='Sentinel 2 All band median anal...
28.475
156
0.701054
340fc536c46efae344b04de94a881f782bf866ef
2,198
py
Python
clfzoo/instance.py
SeanLee97/clfzoo
8c51ee316d51a4ec1d3e0c5c91a64248d6705214
[ "MIT" ]
44
2018-11-12T05:06:44.000Z
2022-03-24T00:40:40.000Z
clfzoo/instance.py
SeanLee97/clfzoo
8c51ee316d51a4ec1d3e0c5c91a64248d6705214
[ "MIT" ]
1
2019-08-22T11:40:58.000Z
2019-08-23T05:26:24.000Z
clfzoo/instance.py
SeanLee97/clfzoo
8c51ee316d51a4ec1d3e0c5c91a64248d6705214
[ "MIT" ]
8
2018-11-13T07:13:56.000Z
2019-08-21T02:24:37.000Z
# -*- coding: utf-8 -*- import os import pickle from clfzoo.dataloader import DataLoader from clfzoo.vocab import Vocab
43.098039
127
0.628753
340fcc7ec477179690e4471488c43b411756338d
184
py
Python
fastapi-transformer-baseline/app/main.py
DeDeckerThomas/NLPiP
37b4d146f5d9760f779f724c4a0698930f59d6d1
[ "Apache-2.0" ]
3
2022-03-10T13:33:24.000Z
2022-03-31T13:31:30.000Z
fastapi-transformer-baseline/app/main.py
DeDeckerThomas/NLPiP
37b4d146f5d9760f779f724c4a0698930f59d6d1
[ "Apache-2.0" ]
null
null
null
fastapi-transformer-baseline/app/main.py
DeDeckerThomas/NLPiP
37b4d146f5d9760f779f724c4a0698930f59d6d1
[ "Apache-2.0" ]
null
null
null
from fastapi import FastAPI from routers.api_router import api_router from core.config import settings app: FastAPI = FastAPI(title=settings.APP_NAME) app.include_router(api_router)
23
47
0.836957
3411052aa746ccfbb6487b369a2c0dc0e70a536b
110
py
Python
girlfriend_project/apps.py
paressuex11/mysite
416e49ebe041aa8a1f67e56c9664961f5f714ccc
[ "Apache-2.0" ]
null
null
null
girlfriend_project/apps.py
paressuex11/mysite
416e49ebe041aa8a1f67e56c9664961f5f714ccc
[ "Apache-2.0" ]
7
2020-02-12T02:36:37.000Z
2022-02-10T10:10:11.000Z
girlfriend_project/apps.py
paressuex11/mysite
416e49ebe041aa8a1f67e56c9664961f5f714ccc
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig
18.333333
41
0.8
3411f5389305082b1750729cc8d9ca2b0b1a5f11
529
py
Python
home/migrations/0010_auto_20190604_1147.py
xni06/wagtail-CMS
defe0f46e8109e96d6d5e9fd4cf002790fbcd54b
[ "MIT" ]
4
2019-06-04T07:18:44.000Z
2020-06-15T22:27:36.000Z
home/migrations/0010_auto_20190604_1147.py
jaspotsangbam/wagtail-CMS
2ec0dd05ba1f9339b705ce529588131049aa9bc7
[ "MIT" ]
38
2019-05-09T13:14:56.000Z
2022-03-12T00:54:57.000Z
home/migrations/0010_auto_20190604_1147.py
jaspotsangbam/wagtail-CMS
2ec0dd05ba1f9339b705ce529588131049aa9bc7
[ "MIT" ]
3
2019-09-26T14:32:36.000Z
2021-05-06T15:48:01.000Z
# Generated by Django 2.1.8 on 2019-06-04 11:47 from django.db import migrations import wagtail.core.blocks import wagtail.core.fields
25.190476
152
0.644612
341242d2d6fcab480644d8108b064807d2fc4019
428
py
Python
evaluation/read_mat.py
JACKYLUO1991/DCBNet
b797584b66ad99fe984f58268befb12ec60ccfae
[ "MIT" ]
6
2021-06-14T15:23:59.000Z
2022-01-19T12:29:20.000Z
evaluation/read_mat.py
JACKYLUO1991/DCBANet
b797584b66ad99fe984f58268befb12ec60ccfae
[ "MIT" ]
1
2021-06-03T08:08:20.000Z
2021-06-09T17:24:54.000Z
evaluation/read_mat.py
JACKYLUO1991/DCBANet
b797584b66ad99fe984f58268befb12ec60ccfae
[ "MIT" ]
1
2020-09-19T17:13:36.000Z
2020-09-19T17:13:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/9/16 13:23 # @Author : JackyLUO # @E-mail : lingluo@stumail.neu.edu.cn # @Site : # @File : read_mat.py # @Software: PyCharm import pandas as pd import scipy.io as scio dataFile = "roc_curves/CUHKMED/roc_curve.mat" data = scio.loadmat(dataFile) ...
20.380952
45
0.630841
3413470e123bef13f5fc45dc318d08068d414db7
1,487
py
Python
src/clm/views/user/message.py
cc1-cloud/cc1
8113673fa13b6fe195cea99dedab9616aeca3ae8
[ "Apache-2.0" ]
11
2015-05-06T14:16:54.000Z
2022-02-08T23:21:31.000Z
src/clm/views/user/message.py
fortress-shell/cc1
8113673fa13b6fe195cea99dedab9616aeca3ae8
[ "Apache-2.0" ]
1
2015-10-30T21:08:11.000Z
2015-10-30T21:08:11.000Z
src/clm/views/user/message.py
fortress-shell/cc1
8113673fa13b6fe195cea99dedab9616aeca3ae8
[ "Apache-2.0" ]
5
2016-02-12T22:01:38.000Z
2021-12-06T16:56:54.000Z
# -*- coding: utf-8 -*- # @COPYRIGHT_begin # # Copyright [2010-2014] Institute of Nuclear Physics PAN, Krakow, Poland # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apac...
28.056604
77
0.717552
3414b567571ba9fec00a916eb601f4d6648a9a43
483
py
Python
src/Models/loss.py
HomerW/CSGNet
4ecc7f3e836867118dba3d5f220ed5e74a536b93
[ "MIT" ]
null
null
null
src/Models/loss.py
HomerW/CSGNet
4ecc7f3e836867118dba3d5f220ed5e74a536b93
[ "MIT" ]
null
null
null
src/Models/loss.py
HomerW/CSGNet
4ecc7f3e836867118dba3d5f220ed5e74a536b93
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.autograd import Variable nllloss = nn.NLLLoss() def losses_joint(out, labels, time_steps: int): """ Defines loss :param out: output from the network :param labels: Ground truth labels :param time_steps: Length of the program :return loss: Sum of ca...
24.15
47
0.670807
3416177656664c60560be373002646f832de5c2d
213
py
Python
Curso/123.py
Rivelton/Python_Project1
c59add0ca483a459b7a046f595d3526a130107bc
[ "MIT" ]
null
null
null
Curso/123.py
Rivelton/Python_Project1
c59add0ca483a459b7a046f595d3526a130107bc
[ "MIT" ]
null
null
null
Curso/123.py
Rivelton/Python_Project1
c59add0ca483a459b7a046f595d3526a130107bc
[ "MIT" ]
null
null
null
multiplicacao = funcao1(3, 2) valor = funcao2(multiplicacao, 2) print(multiplicacao) print(int(valor))
13.3125
33
0.633803
341992e655fa9e12da06954d9bcf76629349ea0e
3,644
py
Python
rl-ros-agents/scripts/training/train_dqn.py
FranklinBF/arena2D
5dce3f0c41cce94691bbc9ca4f6ded124de61030
[ "MIT" ]
18
2020-08-02T07:25:24.000Z
2022-01-06T08:53:00.000Z
rl-ros-agents/scripts/training/train_dqn.py
FranklinBF/arena2D
5dce3f0c41cce94691bbc9ca4f6ded124de61030
[ "MIT" ]
4
2020-09-28T20:42:00.000Z
2020-10-10T01:41:43.000Z
rl-ros-agents/scripts/training/train_dqn.py
Sirupli/arena2D
2214754fe8e9358fa8065be5187d73104949dc4f
[ "MIT" ]
18
2020-08-15T19:37:48.000Z
2022-03-21T17:58:39.000Z
import rospy from stable_baselines.common.vec_env import SubprocVecEnv from rl_ros_agents.env_wappers.arena2dEnv import get_arena_envs, Arena2dEnvWrapper from rl_ros_agents.utils.callbacks import SaveOnBestTrainingRewardCallback from rl_ros_agents.utils import getTimeStr from stable_baselines import DQN from stable_bas...
38.357895
123
0.69539
341b8abe8d9d5f16043f17419ff87aa397d65daa
2,681
py
Python
src/crud/user.py
JuanFKurucz/proyecto-seguridad
feb805c785afc57de19244e7916f232d3798a768
[ "MIT" ]
null
null
null
src/crud/user.py
JuanFKurucz/proyecto-seguridad
feb805c785afc57de19244e7916f232d3798a768
[ "MIT" ]
null
null
null
src/crud/user.py
JuanFKurucz/proyecto-seguridad
feb805c785afc57de19244e7916f232d3798a768
[ "MIT" ]
null
null
null
import os from datetime import datetime, timedelta from src.database.models.user import User # noqa from src.database.models.file import File # noqa from src.database.session import db_session # noqa from src.utils.hash import hash_pass from sqlalchemy.orm.exc import NoResultFound from src.utils.cipher import encr...
31.174419
100
0.664677
341e2f492c444f7a15060ea7f44584d28a341234
17,030
py
Python
symbolic_functionals/syfes/symbolic/enhancement_factors_test.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-19T04:26:12.000Z
2022-03-19T04:26:12.000Z
symbolic_functionals/syfes/symbolic/enhancement_factors_test.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
symbolic_functionals/syfes/symbolic/enhancement_factors_test.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
38.792711
80
0.669818
341ebe71ad93bbea2ec0dff9463d963049755d6d
87
py
Python
tests/test_demo.py
nielsonf/hello_world
90af4baa85900b3b5126b6dfc3031d3f2e149341
[ "MIT" ]
null
null
null
tests/test_demo.py
nielsonf/hello_world
90af4baa85900b3b5126b6dfc3031d3f2e149341
[ "MIT" ]
null
null
null
tests/test_demo.py
nielsonf/hello_world
90af4baa85900b3b5126b6dfc3031d3f2e149341
[ "MIT" ]
null
null
null
import pytest
14.5
30
0.666667
34201d3dfddf5ac6be1a5329fb80307bba79ff70
4,503
py
Python
orglearn/mind_map/backend/graphviz.py
MatejKastak/orglearn
cf0b45f179018438508f5af6d9125675b5922c8c
[ "MIT" ]
5
2020-01-28T21:50:50.000Z
2021-08-13T08:30:00.000Z
orglearn/mind_map/backend/graphviz.py
MatejKastak/orglearn
cf0b45f179018438508f5af6d9125675b5922c8c
[ "MIT" ]
29
2020-05-31T11:51:44.000Z
2021-06-09T18:58:03.000Z
orglearn/mind_map/backend/graphviz.py
MatejKastak/orglearn
cf0b45f179018438508f5af6d9125675b5922c8c
[ "MIT" ]
null
null
null
import colour import graphviz from orglearn.mind_map.backend.backend import Backend
38.818966
103
0.578281
342071a537bef9145222cc0990c688ce4c107e88
1,425
py
Python
parser/team17/Interprete/TYPE/type.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/team17/Interprete/TYPE/type.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/team17/Interprete/TYPE/type.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
from Interprete.NodoAST import NodoArbol from Interprete.Tabla_de_simbolos import Tabla_de_simbolos from Interprete.Arbol import Arbol from Interprete.Valor.Valor import Valor from Interprete.Primitivos.TIPO import TIPO from Interprete.SELECT.indexador_auxiliar import indexador_auxiliar from Interprete.SELECT.indexador...
39.583333
100
0.690526
34210500bd30a4f38c9990538692f030d9f6352e
57
py
Python
card_detection_module/nanodet/__init__.py
nhatnxn/ID_Passport-OCR
78322ec2b9648d0b027326dced7c4aec967bcab3
[ "MIT" ]
1
2021-06-30T11:01:25.000Z
2021-06-30T11:01:25.000Z
card_detection_module/nanodet/__init__.py
nhatnxn/ID_Passport-OCR
78322ec2b9648d0b027326dced7c4aec967bcab3
[ "MIT" ]
null
null
null
card_detection_module/nanodet/__init__.py
nhatnxn/ID_Passport-OCR
78322ec2b9648d0b027326dced7c4aec967bcab3
[ "MIT" ]
null
null
null
from .dectect import detect_card __all__ = [detect_card]
19
32
0.807018
34224d1f82264345af1dc7ef7fc2a3a6d78538a4
6,670
py
Python
backend/risks/tests/e2e/test_e2e.py
andrew-snek/project-x
d6eca21690dd210f29c571660a2762732f0ede6e
[ "MIT" ]
null
null
null
backend/risks/tests/e2e/test_e2e.py
andrew-snek/project-x
d6eca21690dd210f29c571660a2762732f0ede6e
[ "MIT" ]
4
2019-01-28T19:22:21.000Z
2022-02-27T10:29:21.000Z
backend/risks/tests/e2e/test_e2e.py
andrew-snek/project-x
d6eca21690dd210f29c571660a2762732f0ede6e
[ "MIT" ]
null
null
null
from unittest.mock import patch # mocker.patch can't be a context manager from django.contrib.auth import get_user_model from django.db import DatabaseError from rest_framework.test import APIClient
35.668449
79
0.654723
34230bb190f961ca6511eb9a402ec6fece3611e2
967
py
Python
src/wl/resources/config.py
AlphaTechnolog/wl
09a8f883f397ba7aae80c06f61fedd1887975d3f
[ "MIT" ]
6
2021-07-13T16:34:45.000Z
2022-03-02T17:34:39.000Z
src/wl/resources/config.py
AlphaTechnolog/wl
09a8f883f397ba7aae80c06f61fedd1887975d3f
[ "MIT" ]
null
null
null
src/wl/resources/config.py
AlphaTechnolog/wl
09a8f883f397ba7aae80c06f61fedd1887975d3f
[ "MIT" ]
null
null
null
import json from typing import Dict, TypeVar from ..paths import config_dir_path, config_path from ..cli.log import warn V = TypeVar("V") config = Config()
25.447368
65
0.574974
342550a8d2655bb5c2a4e7cac561e8c51b2a3642
1,501
py
Python
ferris/core/retries.py
palladius/gae-ferris-ricc
e6d9d8d4aadeae10eb258b94b6fe5912c8630b36
[ "MIT" ]
2
2015-03-04T07:05:57.000Z
2015-03-04T07:06:00.000Z
ferris/core/retries.py
palladius/gae-ferris-ricc
e6d9d8d4aadeae10eb258b94b6fe5912c8630b36
[ "MIT" ]
null
null
null
ferris/core/retries.py
palladius/gae-ferris-ricc
e6d9d8d4aadeae10eb258b94b6fe5912c8630b36
[ "MIT" ]
null
null
null
import functools from time import sleep import logging def retries(max_tries, should_retry, delay=1, backoff=2): """ Decorator that implements exponential backoff retry logic. If you have a function that may fail, this decorator can catch the exception and retry at exponentially increasing intervals u...
35.738095
91
0.59427
342669c2915f85e4da4b92522593ef57d34232b4
5,614
py
Python
memory.py
wotmd5731/pytorch_dqn
fb3062c3aff1e5e249551807e53e974363f7595c
[ "MIT" ]
11
2018-04-22T16:03:17.000Z
2021-09-02T09:10:04.000Z
memory.py
wotmd5731/pytorch_dqn
fb3062c3aff1e5e249551807e53e974363f7595c
[ "MIT" ]
null
null
null
memory.py
wotmd5731/pytorch_dqn
fb3062c3aff1e5e249551807e53e974363f7595c
[ "MIT" ]
1
2021-04-06T12:12:19.000Z
2021-04-06T12:12:19.000Z
# -*- coding: utf-8 -*- import random from collections import namedtuple import torch from torch.autograd import Variable import numpy as np #class LSTM_ReplayMemory(object): # def __init__(self, args): # self.capacity = args.memory_capacity # self.memory = [] # # def push(self, args)...
26.861244
91
0.54756
3429a3e461da531be0fa698d0309fa50ab924089
25,866
py
Python
plugins/lucid/ui/explorer.py
gaasedelen/lucid
9f2480dc8e6bbb9421b5711533b0a98d2e9fb5af
[ "MIT" ]
342
2020-09-11T16:03:31.000Z
2022-03-31T02:46:31.000Z
plugins/lucid/ui/explorer.py
gaasedelen/lucid
9f2480dc8e6bbb9421b5711533b0a98d2e9fb5af
[ "MIT" ]
3
2021-01-16T16:59:41.000Z
2022-01-19T07:18:17.000Z
plugins/lucid/ui/explorer.py
gaasedelen/lucid
9f2480dc8e6bbb9421b5711533b0a98d2e9fb5af
[ "MIT" ]
37
2020-09-12T17:07:29.000Z
2022-03-15T15:17:05.000Z
import ctypes import ida_ida import ida_funcs import ida_graph import ida_idaapi import ida_kernwin import ida_hexrays from PyQt5 import QtWidgets, QtGui, QtCore, sip from lucid.ui.sync import MicroCursorHighlight from lucid.ui.subtree import MicroSubtreeView from lucid.util.python import register_callback, notify_c...
34.534045
163
0.583391
342b25a8f2f2e9f6dd989cfc80e899259fa211c6
314
py
Python
tests/data/plain_old_module.py
danielcompton/mitogen
2813d1a968d6f694514a0053d094c0da9ea4863b
[ "BSD-3-Clause" ]
null
null
null
tests/data/plain_old_module.py
danielcompton/mitogen
2813d1a968d6f694514a0053d094c0da9ea4863b
[ "BSD-3-Clause" ]
null
null
null
tests/data/plain_old_module.py
danielcompton/mitogen
2813d1a968d6f694514a0053d094c0da9ea4863b
[ "BSD-3-Clause" ]
null
null
null
""" I am a plain old module with no interesting dependencies or import machinery fiddlery. """ import math
15.7
76
0.671975
342dccf6ed1521b4555d6a3ff1a444d71531b5f9
2,997
py
Python
alipay/aop/api/domain/PaidOuterCardTemplateConfDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/PaidOuterCardTemplateConfDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/PaidOuterCardTemplateConfDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.PaidOuterCardCycleSellConfDTO import PaidOuterCardCycleSellConfDTO from alipay.aop.api.domain.PaidOuterCardManageUrlConfDTO import PaidOuterCardManageUrlConfDTO from alipay.aop.api....
36.108434
93
0.68335
342de811bc99973f044dafb400a3ec144fec6901
2,092
py
Python
1441. Build an Array With Stack Operations.py
alijon30/Leetcode
73e8171945e1fcbc59e76f79667c9ea130db27e9
[ "Unlicense" ]
null
null
null
1441. Build an Array With Stack Operations.py
alijon30/Leetcode
73e8171945e1fcbc59e76f79667c9ea130db27e9
[ "Unlicense" ]
null
null
null
1441. Build an Array With Stack Operations.py
alijon30/Leetcode
73e8171945e1fcbc59e76f79667c9ea130db27e9
[ "Unlicense" ]
null
null
null
You are given an array target and an integer n. In each iteration, you will read a number from list = [1, 2, 3, ..., n]. Build the target array using the following operations: "Push": Reads a new element from the beginning list, and pushes it in the array. "Pop": Deletes the last element of the array. If the target ...
26.15
114
0.565966
342f65e39746a7ae0296639e43f5738b3e8116d0
1,264
py
Python
third_party/libtcod/.ci/conan_build.py
csb6/libtcod-ada
89c2a75eb357a8468ccb0a6476391a6b388f00b4
[ "BSD-3-Clause" ]
686
2018-07-01T15:49:10.000Z
2022-03-30T14:13:40.000Z
third_party/libtcod/.ci/conan_build.py
csb6/libtcod-ada
89c2a75eb357a8468ccb0a6476391a6b388f00b4
[ "BSD-3-Clause" ]
99
2018-10-23T17:02:08.000Z
2022-03-29T18:47:47.000Z
third_party/libtcod/.ci/conan_build.py
csb6/libtcod-ada
89c2a75eb357a8468ccb0a6476391a6b388f00b4
[ "BSD-3-Clause" ]
76
2018-07-29T03:51:42.000Z
2022-03-26T03:10:10.000Z
#!/usr/bin/env python3 """Build script for conan-package-tools: https://github.com/conan-io/conan-package-tools """ import os import subprocess from cpt.packager import ConanMultiPackager try: version = subprocess.check_output( ["git", "describe", "--abbrev=0"], universal_newlines=True ) except subpr...
29.395349
72
0.626582
342f8555d424c554a10a704d33b1cac436a6cb38
221
py
Python
introduction-to-data-visualization-in-python/3. Statistical plots with Seaborn/script_11.py
nhutnamhcmus/datacamp-playground
25457e813b1145e1d335562286715eeddd1c1a7b
[ "MIT" ]
1
2021-05-08T11:09:27.000Z
2021-05-08T11:09:27.000Z
introduction-to-data-visualization-in-python/3. Statistical plots with Seaborn/script_11.py
nhutnamhcmus/datacamp-playground
25457e813b1145e1d335562286715eeddd1c1a7b
[ "MIT" ]
1
2022-03-12T15:42:14.000Z
2022-03-12T15:42:14.000Z
introduction-to-data-visualization-in-python/3. Statistical plots with Seaborn/script_11.py
nhutnamhcmus/datacamp-playground
25457e813b1145e1d335562286715eeddd1c1a7b
[ "MIT" ]
1
2021-04-30T18:24:19.000Z
2021-04-30T18:24:19.000Z
# Plotting distributions pairwise (1) # Print the first 5 rows of the DataFrame print(auto.head()) # Plot the pairwise joint distributions from the DataFrame sns.pairplot(auto) # Display the plot plt.show()
20.090909
60
0.723982
342f8c75702c2f5eb9f5b18d688431c38ef406f7
472
py
Python
terraform_model/model/SQSQueuePolicy.py
rubelw/terraform-validator
a9d0335a532acdb4070e5537155b03b34915b73e
[ "MIT" ]
7
2018-11-18T00:29:55.000Z
2020-05-18T13:23:37.000Z
terraform_model/model/SQSQueuePolicy.py
rubelw/terraform-validator
a9d0335a532acdb4070e5537155b03b34915b73e
[ "MIT" ]
1
2021-05-26T06:58:46.000Z
2021-05-26T06:58:46.000Z
terraform_model/model/SQSQueuePolicy.py
rubelw/terraform-validator
a9d0335a532acdb4070e5537155b03b34915b73e
[ "MIT" ]
2
2019-10-23T15:22:52.000Z
2020-06-22T07:00:45.000Z
from __future__ import absolute_import, division, print_function from terraform_model.model.ModelElement import ModelElement
24.842105
64
0.654661
342f9f4a6979c8b7cf15542baa02e9212c5fdc92
931
py
Python
import_pem_certificate/panos/pem_cert_import.py
silliker-paloaltonetworks/IdentitySkillets
8a493026dfc53cd2c0d7ca398ce823ab315dc785
[ "Apache-2.0" ]
null
null
null
import_pem_certificate/panos/pem_cert_import.py
silliker-paloaltonetworks/IdentitySkillets
8a493026dfc53cd2c0d7ca398ce823ab315dc785
[ "Apache-2.0" ]
null
null
null
import_pem_certificate/panos/pem_cert_import.py
silliker-paloaltonetworks/IdentitySkillets
8a493026dfc53cd2c0d7ca398ce823ab315dc785
[ "Apache-2.0" ]
null
null
null
import requests import argparse import urllib3 from urllib3.exceptions import InsecureRequestWarning urllib3.disable_warnings(InsecureRequestWarning) parser = argparse.ArgumentParser() parser.add_argument("--TARGET_IP", help="IP address of the firewall", type=str) parser.add_argument("--api_key", help="Firewall API K...
37.24
132
0.755102
3430dc2aab0b9a66724eea76329a3c8960caccb6
1,640
py
Python
day06/ftp_server.py
zhangyage/Python-oldboy
a95c1b465929e2be641e425fcb5e15b366800831
[ "Apache-2.0" ]
1
2020-06-04T08:44:09.000Z
2020-06-04T08:44:09.000Z
day06/ftp_server.py
zhangyage/Python-oldboy
a95c1b465929e2be641e425fcb5e15b366800831
[ "Apache-2.0" ]
null
null
null
day06/ftp_server.py
zhangyage/Python-oldboy
a95c1b465929e2be641e425fcb5e15b366800831
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- ''' G:/temp ftp ''' import SocketServer import os instance = SocketServer.ThreadingTCPServer(('127.0.0.1',9000),MyServer) instance.serve_forever() ...
22.777778
71
0.35122
34340897da5907a0ab3f5d7121dc238008840d87
3,037
py
Python
built-in/ACL_PyTorch/Official/cv/STGCN_for_Pytorch/st_gcn_export.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/ACL_PyTorch/Official/cv/STGCN_for_Pytorch/st_gcn_export.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/ACL_PyTorch/Official/cv/STGCN_for_Pytorch/st_gcn_export.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# ============================================================================ # Copyright 2018-2019 Open-MMLab. All rights reserved. # Apache License # Version 2.0, January 2004 # http://www.apache.org/licenses/ # # TERMS AND CONDITI...
40.493333
80
0.62891
34347bd2feb78a4ffa8841007ef085baa9d77a5e
1,232
py
Python
project-euler/solutions/015.py
ikumen/problems-solvers
c1847b09babbef344b2043b575fc81fed5809725
[ "MIT" ]
null
null
null
project-euler/solutions/015.py
ikumen/problems-solvers
c1847b09babbef344b2043b575fc81fed5809725
[ "MIT" ]
null
null
null
project-euler/solutions/015.py
ikumen/problems-solvers
c1847b09babbef344b2043b575fc81fed5809725
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' 015.py: https://projecteuler.net/problem=15 Lattice paths Starting in the top left corner of a 22 grid, and only being able to move to the right and down, there are exactly 6 routes to the bottom right corner. How many such routes are there through a 2020 grid? ''' import os import pytest ...
23.245283
152
0.642045
343576eb2232f5d20995f69fd9ccf799d7a0a593
6,635
py
Python
allthingsnlp/ml_classifier.py
Pranavj94/All-things-NLP
009e63e35611679afb54ca981675019679179fd3
[ "Apache-2.0" ]
null
null
null
allthingsnlp/ml_classifier.py
Pranavj94/All-things-NLP
009e63e35611679afb54ca981675019679179fd3
[ "Apache-2.0" ]
null
null
null
allthingsnlp/ml_classifier.py
Pranavj94/All-things-NLP
009e63e35611679afb54ca981675019679179fd3
[ "Apache-2.0" ]
1
2021-07-27T05:53:36.000Z
2021-07-27T05:53:36.000Z
import numpy as np import pandas as pd import warnings warnings.filterwarnings("ignore") from sklearn.model_selection import StratifiedKFold,train_test_split from sklearn.feature_extraction.text import TfidfVectorizer from sklearn import linear_model from sklearn.metrics import precision_recall_fscore_support,accurac...
40.457317
138
0.576036
3435b467c87163b62b24709bf0d8899cc2810bb3
2,878
py
Python
project_common/tests/test_abc.py
KostyaEsmukov/airflow-docker
abf7c50cec71f5153148738d13401546cef9f60c
[ "MIT" ]
null
null
null
project_common/tests/test_abc.py
KostyaEsmukov/airflow-docker
abf7c50cec71f5153148738d13401546cef9f60c
[ "MIT" ]
null
null
null
project_common/tests/test_abc.py
KostyaEsmukov/airflow-docker
abf7c50cec71f5153148738d13401546cef9f60c
[ "MIT" ]
null
null
null
from contextlib import ExitStack from typing import Any from unittest.mock import patch import click import pendulum import pytest from airflow import DAG, configuration, macros from click.testing import CliRunner import project_common.abc from project_common.abc import AirflowContext, AirflowTask, create_cli def...
34.261905
162
0.633079
3435e845672b2f3b296d955bb83a6ae255c500c9
1,708
py
Python
word2vec.py
doc-doc/HQGA
eecbbcb383b21f4f0f98b1b250e401aa59208eb3
[ "MIT" ]
16
2021-12-18T03:31:59.000Z
2022-03-08T08:30:56.000Z
word2vec.py
doc-doc/HQGA
eecbbcb383b21f4f0f98b1b250e401aa59208eb3
[ "MIT" ]
4
2022-01-19T03:17:33.000Z
2022-03-24T13:42:49.000Z
word2vec.py
doc-doc/HQGA
eecbbcb383b21f4f0f98b1b250e401aa59208eb3
[ "MIT" ]
null
null
null
from build_vocab import Vocabulary from utils import * import numpy as np import random as rd rd.seed(0) if __name__ == "__main__": main()
31.054545
69
0.601874
3436ecb4e336a1144df7cab3accab468cc47ff09
139
py
Python
src/msys_opt/modules/sql.py
willi-z/msys-opt
2054931737893b4ea77a4ba2dbfb6a3e2bce7779
[ "BSD-3-Clause" ]
null
null
null
src/msys_opt/modules/sql.py
willi-z/msys-opt
2054931737893b4ea77a4ba2dbfb6a3e2bce7779
[ "BSD-3-Clause" ]
null
null
null
src/msys_opt/modules/sql.py
willi-z/msys-opt
2054931737893b4ea77a4ba2dbfb6a3e2bce7779
[ "BSD-3-Clause" ]
null
null
null
from msys.core import Module,Connectable, Type
23.166667
47
0.676259
3436f635d8613460ab87260b18e59734a16de86f
826
py
Python
Algorithms/5_Searching/11.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
1
2021-11-25T13:39:30.000Z
2021-11-25T13:39:30.000Z
Algorithms/5_Searching/11.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
Algorithms/5_Searching/11.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/short-palindrome/problem #!/bin/python3 import math import os import random import re import sys # # Complete the 'shortPalindrome' function below. # # The function is expected to return an INTEGER. # The function accepts STRING s as parameter. # if __name__ == '__main__': ...
18.355556
64
0.531477
34389301ce5392b10d296057f0337ea8bf7ae6e6
9,946
py
Python
efficientnet/border.py
kentslaney/efficientnet
0240ccb33ed0f56ffadc9ebc475860811fffd53f
[ "MIT" ]
null
null
null
efficientnet/border.py
kentslaney/efficientnet
0240ccb33ed0f56ffadc9ebc475860811fffd53f
[ "MIT" ]
null
null
null
efficientnet/border.py
kentslaney/efficientnet
0240ccb33ed0f56ffadc9ebc475860811fffd53f
[ "MIT" ]
null
null
null
# fits better in a StyleGAN or small network implementation, but provides a good # proof of concept (especially for things like fashion MNIST) import tensorflow as tf from .utils import Conv2D as SpecializedConv2D
38.700389
80
0.56103
34399e5b826297152c5c75474f6dbccf7d447122
1,650
py
Python
post/views.py
Neknu/news-site
39606e099f742312bc203262bb9cc17b6c8a998d
[ "Apache-2.0" ]
null
null
null
post/views.py
Neknu/news-site
39606e099f742312bc203262bb9cc17b6c8a998d
[ "Apache-2.0" ]
5
2021-03-19T10:51:15.000Z
2021-06-10T20:12:59.000Z
post/views.py
danylott/news-site
39606e099f742312bc203262bb9cc17b6c8a998d
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render, redirect from django.urls import reverse from django.views.generic import ListView from django.views.generic.detail import DetailView from django.http import HttpResponseRedirect from django.contrib.auth.decorators import login_required from django.db.models import Q from .models i...
28.448276
84
0.660606
343c9cce80e473e1d30d683596a73c12ba4c3e48
23,040
py
Python
Image Classifier Project.py
Harish4948/Image-Classifier-using-Deep-Learning
f1a1460b500555722b62cbbfefc6c67203b13077
[ "MIT" ]
null
null
null
Image Classifier Project.py
Harish4948/Image-Classifier-using-Deep-Learning
f1a1460b500555722b62cbbfefc6c67203b13077
[ "MIT" ]
null
null
null
Image Classifier Project.py
Harish4948/Image-Classifier-using-Deep-Learning
f1a1460b500555722b62cbbfefc6c67203b13077
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Developing an AI application # # Going forward, AI algorithms will be incorporated into more and more everyday applications. For example, you might want to include an image classifier in a smart phone app. To do this, you'd use a deep learning model trained on hundreds of tho...
47.020408
649
0.682335
343cb4bccfc6d0d7d27bbb17c80fb0f2a2d1b596
1,032
py
Python
70_question/linked_list/reverse_linked_list.py
alvinctk/google-tech-dev-guide
9d7759bea1f44673c2de4f25a94b27368928a59f
[ "Apache-2.0" ]
26
2019-06-07T05:29:47.000Z
2022-03-19T15:32:27.000Z
70_question/linked_list/reverse_linked_list.py
alvinctk/google-tech-dev-guide
9d7759bea1f44673c2de4f25a94b27368928a59f
[ "Apache-2.0" ]
null
null
null
70_question/linked_list/reverse_linked_list.py
alvinctk/google-tech-dev-guide
9d7759bea1f44673c2de4f25a94b27368928a59f
[ "Apache-2.0" ]
6
2019-10-10T06:39:28.000Z
2020-05-12T19:50:55.000Z
if __name__ == "__main__": ll = LinkedList() for i in range(10, 1, -1): ll.add(i) ll.print() ll.reverse()
22.434783
46
0.50969
343cdbae272af394a0a3d28001cd7765745634b0
889
py
Python
models/notification.py
tranquilitybase-io/tb-houston-service
9383922ee21fcf64b2b9b32b5662e962428e2a35
[ "Apache-2.0" ]
1
2020-03-18T22:32:10.000Z
2020-03-18T22:32:10.000Z
models/notification.py
tranquilitybase-io/tb-houston-service
9383922ee21fcf64b2b9b32b5662e962428e2a35
[ "Apache-2.0" ]
380
2020-03-18T12:41:22.000Z
2021-07-01T14:24:08.000Z
models/notification.py
tranquilitybase-io/tb-houston-service
9383922ee21fcf64b2b9b32b5662e962428e2a35
[ "Apache-2.0" ]
13
2020-04-06T06:52:51.000Z
2021-09-23T23:07:21.000Z
from config import db, ma
34.192308
84
0.656918
343ce4b2d11073a3dfb20805dfb97c66ac9ba361
1,266
py
Python
Pequenos Projetos/Programa_TabelaIdade.py
HenriquePantaroto/Python-Projetos
8c016294d85c69ff147ebd4cdf6ee76ee1fbe291
[ "MIT" ]
2
2021-01-06T17:55:57.000Z
2021-01-11T11:48:56.000Z
Pequenos Projetos/Programa_TabelaIdade.py
HenriquePantaroto/Python-Projetos
8c016294d85c69ff147ebd4cdf6ee76ee1fbe291
[ "MIT" ]
null
null
null
Pequenos Projetos/Programa_TabelaIdade.py
HenriquePantaroto/Python-Projetos
8c016294d85c69ff147ebd4cdf6ee76ee1fbe291
[ "MIT" ]
null
null
null
lista = [] dicio = {} idadeTot = 0 cont = 0 contMulher = 0 while True: dicio['nome'] = str(input('Digite o nome: ')) while True: dicio['sexo'] = str(input('Digite o sexo: [M/F] ')).upper()[0] if dicio['sexo'] in 'MF': break else: dicio['sexo'] = str(input('Digite ...
30.878049
80
0.554502
343d0b592efe6147a7db17a04887d0d4ffc6ef66
2,563
py
Python
plot_cov.py
translunar/lincov
12460e2e840129e18c51aa84acbc077df67f28dd
[ "Unlicense" ]
2
2019-12-11T23:56:17.000Z
2020-09-19T13:44:34.000Z
plot_cov.py
translunar/lincov
12460e2e840129e18c51aa84acbc077df67f28dd
[ "Unlicense" ]
1
2020-01-24T20:10:57.000Z
2020-01-24T20:10:57.000Z
plot_cov.py
translunar/lincov
12460e2e840129e18c51aa84acbc077df67f28dd
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 from spiceypy import spiceypy as spice from lincov.spice_loader import SpiceLoader import pandas as pd import numpy as np from scipy.linalg import norm from scipy.stats import chi2 import sys import matplotlib matplotlib.use('TKAgg') import matplotlib.pyplot as plt from matplotlib.patches imp...
29.45977
166
0.623098
343d87effd06cb338fc8d3c995918a87f6545c84
225
py
Python
nn_redis_config/nn_redis.py
tseth92/NN_grpc_kube_deployment
51bfa786dd8cbd7780140f0ef0c1eb50fcc94504
[ "MIT" ]
null
null
null
nn_redis_config/nn_redis.py
tseth92/NN_grpc_kube_deployment
51bfa786dd8cbd7780140f0ef0c1eb50fcc94504
[ "MIT" ]
null
null
null
nn_redis_config/nn_redis.py
tseth92/NN_grpc_kube_deployment
51bfa786dd8cbd7780140f0ef0c1eb50fcc94504
[ "MIT" ]
null
null
null
import redis redis_db = redis.StrictRedis(host="nn-sq-svc", port=6379, db=0) print(redis_db.keys()) redis_db.set('n_samples',100000) redis_db.set('epochs', 150) redis_db.set('batch_size', 1000) redis_db.set('mid_range', 10)
25
63
0.742222
343ef31d47c22d2e366df60d78e0669ed6e27014
1,910
py
Python
unittests/test_plot.py
red5alex/ifm_contrib
750e7fdf19a6adabcf27ff08608bfa88b04c8775
[ "MIT" ]
null
null
null
unittests/test_plot.py
red5alex/ifm_contrib
750e7fdf19a6adabcf27ff08608bfa88b04c8775
[ "MIT" ]
null
null
null
unittests/test_plot.py
red5alex/ifm_contrib
750e7fdf19a6adabcf27ff08608bfa88b04c8775
[ "MIT" ]
1
2018-09-22T13:18:19.000Z
2018-09-22T13:18:19.000Z
import unittest import ifm_contrib as ifm from ifm import Enum import numpy as np import geopandas as gpd import pandas as pd if __name__ == '__main__': unittest.main()
34.107143
92
0.662304