hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
3dd1773f50f2af84354e0431bf0e4276687f173e
3,401
py
Python
Server/Python/src/dbs/dao/Oracle/MigrationBlock/Update.py
vkuznet/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
8
2015-08-14T04:01:32.000Z
2021-06-03T00:56:42.000Z
Server/Python/src/dbs/dao/Oracle/MigrationBlock/Update.py
yuyiguo/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
162
2015-01-07T21:34:47.000Z
2021-10-13T09:42:41.000Z
Server/Python/src/dbs/dao/Oracle/MigrationBlock/Update.py
yuyiguo/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
16
2015-01-22T15:27:29.000Z
2021-04-28T09:23:28.000Z
#!/usr/bin/env python """ This module provides Migration.Update data access object. """ from WMCore.Database.DBFormatter import DBFormatter from dbs.utils.dbsExceptionHandler import dbsExceptionHandler from dbs.utils.DBSDaoTools import create_token_generator class Update(DBFormatter): """ Migration Update DAO ...
46.589041
165
0.614231
3,140
0.923258
0
0
0
0
0
0
1,754
0.515731
3dd18ca1ce7d02c28f4d50d91ff399eaea978a1f
3,636
py
Python
cldfbench_lapollaqiang.py
cldf-datasets/lapollaqiang
40bcba31a65b675a15d2dcac5fae7901619162fc
[ "CC-BY-4.0" ]
null
null
null
cldfbench_lapollaqiang.py
cldf-datasets/lapollaqiang
40bcba31a65b675a15d2dcac5fae7901619162fc
[ "CC-BY-4.0" ]
2
2020-04-18T10:57:21.000Z
2020-04-18T12:16:03.000Z
cldfbench_lapollaqiang.py
cldf-datasets/lapollaqiang
40bcba31a65b675a15d2dcac5fae7901619162fc
[ "CC-BY-4.0" ]
null
null
null
import re import pathlib from clldutils.text import strip_chars from cldfbench import Dataset as BaseDataset from cldfbench import CLDFSpec QUOTES = '“”' class Dataset(BaseDataset): dir = pathlib.Path(__file__).parent id = "lapollaqiang" def cldf_specs(self): # A dataset must declare all CLDF sets it ...
33.054545
97
0.55033
1,984
0.545055
1,481
0.406868
0
0
0
0
601
0.16511
3dd25490c9540bd331008a56be6c0ffa65b4b3b0
1,752
py
Python
simple-zero-width-chars-encoder-and-decoder/encoder.py
MihaiAC/Other-Projects
2ce3b4dbc0edf79124fee929c63a698efbbbf123
[ "MIT" ]
null
null
null
simple-zero-width-chars-encoder-and-decoder/encoder.py
MihaiAC/Other-Projects
2ce3b4dbc0edf79124fee929c63a698efbbbf123
[ "MIT" ]
null
null
null
simple-zero-width-chars-encoder-and-decoder/encoder.py
MihaiAC/Other-Projects
2ce3b4dbc0edf79124fee929c63a698efbbbf123
[ "MIT" ]
null
null
null
import sys import os def convert_word_to_zero_length_list(word): ls = [] # Convert each character into a zero-width sequence and save them into ls. for char in word: # Convert char to binary. binary_char = bin(ord(char)) binary_char_strip = binary_char[2:] # A zero-width se...
30.206897
98
0.622717
0
0
0
0
0
0
0
0
632
0.360731
3dd2a3424b490a95eadbcb0285fa8becc7dbdcc5
280
py
Python
setup.py
lambdaofgod/HOTT
74ec33dae7ba9f9d382384c6bd2c97b5557f6eea
[ "MIT" ]
null
null
null
setup.py
lambdaofgod/HOTT
74ec33dae7ba9f9d382384c6bd2c97b5557f6eea
[ "MIT" ]
null
null
null
setup.py
lambdaofgod/HOTT
74ec33dae7ba9f9d382384c6bd2c97b5557f6eea
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open('requirements.txt') as f: requirements = f.read().splitlines() setup( name='HOTT', version='0.1', url='https://github.com/lambdaofgod/HOTT', packages=find_packages(), install_requires=requirements )
20
46
0.692857
0
0
0
0
0
0
0
0
66
0.235714
3dd4772c1009f05a2da5ab89f95cb164ef80a08f
736
py
Python
setup.py
mdmix4/pymdmix-run
2c3fdeca39f02429ab0040491e2ad016de210795
[ "MIT" ]
null
null
null
setup.py
mdmix4/pymdmix-run
2c3fdeca39f02429ab0040491e2ad016de210795
[ "MIT" ]
null
null
null
setup.py
mdmix4/pymdmix-run
2c3fdeca39f02429ab0040491e2ad016de210795
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup def getRequirements(): requirements = [] with open("requirements.txt", "r") as reqfile: for line in reqfile.readlines(): requirements.append(line.strip()) return requirements def getVersion(): return "0.0.2" setup( python...
23
63
0.65625
0
0
0
0
0
0
0
0
248
0.336957
3dd4a8f967bc41b59fc8f2382ab1f0506c71e247
4,340
py
Python
aether/forum/forms.py
katajakasa/aetherguild4
a7e294f0cff11e2508751f1013e6648fdc56bb94
[ "MIT" ]
null
null
null
aether/forum/forms.py
katajakasa/aetherguild4
a7e294f0cff11e2508751f1013e6648fdc56bb94
[ "MIT" ]
1
2021-06-10T17:36:11.000Z
2021-06-10T17:36:11.000Z
aether/forum/forms.py
katajakasa/aetherguild4
a7e294f0cff11e2508751f1013e6648fdc56bb94
[ "MIT" ]
null
null
null
from django.forms import Form, ModelForm, CharField, Textarea from django.db import transaction from django.utils.translation import gettext_lazy as _ from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit from .models import ForumPost, ForumThread, ForumBoard, ForumPostEdit class NewThrea...
32.631579
81
0.621429
4,024
0.927189
0
0
700
0.16129
0
0
644
0.148387
3dd4b115a1efae712e7d58d8046528f7acbf782b
1,467
py
Python
for_straight_forward_relion/read_star_del_metadata_param.py
homurachan/Block-based-recontruction
b3fc02a0648db6aaa5d77dcc4b8e10f3361d66f4
[ "WTFPL" ]
11
2018-04-17T01:41:11.000Z
2020-12-11T05:43:21.000Z
for_straight_forward_relion/read_star_del_metadata_param.py
homurachan/Block-based-recontruction
b3fc02a0648db6aaa5d77dcc4b8e10f3361d66f4
[ "WTFPL" ]
null
null
null
for_straight_forward_relion/read_star_del_metadata_param.py
homurachan/Block-based-recontruction
b3fc02a0648db6aaa5d77dcc4b8e10f3361d66f4
[ "WTFPL" ]
3
2019-08-23T07:48:50.000Z
2020-12-08T07:31:41.000Z
#!/usr/bin/env python import math,os,sys try: from optparse import OptionParser except: from optik import OptionParser def main(): (star,mline,line_name,output) = parse_command_line() aa=open(star,"r") instar_line=aa.readlines() out=open(output,"w") for i in range(0,mline): if (instar_line[i].split()): ...
22.227273
59
0.632584
0
0
0
0
0
0
0
0
165
0.112474
3dd4c39c91d920a780223d1076fe94897deaabd0
2,639
py
Python
python/GafferUI/ProgressBar.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
python/GafferUI/ProgressBar.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
python/GafferUI/ProgressBar.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2011-2012, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redi...
33.833333
77
0.675256
759
0.287609
0
0
0
0
0
0
1,784
0.676014
3dd4de6bb7f825300faccd73e718c78bb7dd3d78
18,444
py
Python
minihack/agent/rllib/models.py
samvelyan/minihack-1
441eba33ba0d240b98aeabe1ff7a0c0b33cd236c
[ "Apache-2.0" ]
1
2021-11-19T01:51:38.000Z
2021-11-19T01:51:38.000Z
minihack/agent/rllib/models.py
samvelyan/minihack-1
441eba33ba0d240b98aeabe1ff7a0c0b33cd236c
[ "Apache-2.0" ]
null
null
null
minihack/agent/rllib/models.py
samvelyan/minihack-1
441eba33ba0d240b98aeabe1ff7a0c0b33cd236c
[ "Apache-2.0" ]
1
2021-11-17T15:45:02.000Z
2021-11-17T15:45:02.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # 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 applicable law or ...
33.966851
79
0.559803
17,162
0.930492
0
0
934
0.05064
0
0
3,401
0.184396
3dd4f4c9b22e44b3e89f6ae2ccad38e595e93b8d
1,149
py
Python
old/projects/6.884/hybrid_twolinkmanipulator_with_GreedyFeatures.py
ali493/pyro
1245340077a733e2ab35765eae783b358d2f3af9
[ "MIT" ]
null
null
null
old/projects/6.884/hybrid_twolinkmanipulator_with_GreedyFeatures.py
ali493/pyro
1245340077a733e2ab35765eae783b358d2f3af9
[ "MIT" ]
null
null
null
old/projects/6.884/hybrid_twolinkmanipulator_with_GreedyFeatures.py
ali493/pyro
1245340077a733e2ab35765eae783b358d2f3af9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Mar 23 12:50:34 2016 @author: alex """ from AlexRobotics.dynamic import Manipulator as M from AlexRobotics.dynamic import Hybrid_Manipulator as HM from AlexRobotics.control import DPO_features as DPO import numpy as np # Define dynamic system R = HM.Hy...
24.978261
85
0.598782
0
0
0
0
0
0
0
0
415
0.361184
3dd524d8e59e2c8188892e7a7fe2e15518d2a46b
5,294
py
Python
depthaware/data/sunrgbd_dataset.py
crmauceri/DepthAwareCNN-pytorch1.5
6d9b0cf001d7482df7d4cd7240fc36cbfc8356f9
[ "MIT" ]
3
2021-03-11T01:24:37.000Z
2021-06-29T03:46:40.000Z
depthaware/data/sunrgbd_dataset.py
crmauceri/DepthAwareCNN-pytorch1.5
6d9b0cf001d7482df7d4cd7240fc36cbfc8356f9
[ "MIT" ]
null
null
null
depthaware/data/sunrgbd_dataset.py
crmauceri/DepthAwareCNN-pytorch1.5
6d9b0cf001d7482df7d4cd7240fc36cbfc8356f9
[ "MIT" ]
null
null
null
import os.path from depthaware.data.base_dataset import * from PIL import Image import time def make_dataset_fromlst(dataroot, listfilename): """ NYUlist format: imagepath seglabelpath depthpath HHApath """ images = [] segs = [] depths = [] HHAs = [] with open(listfilename) as f: ...
44.116667
113
0.647526
4,546
0.858708
0
0
0
0
0
0
785
0.148281
3dd551aff5d9acdfce555b2997eb9c881f846544
1,382
py
Python
setup.py
elafefy11/flask_gtts
8f14b9f114127d8fba240a88f3aa16eb17628872
[ "MIT" ]
null
null
null
setup.py
elafefy11/flask_gtts
8f14b9f114127d8fba240a88f3aa16eb17628872
[ "MIT" ]
null
null
null
setup.py
elafefy11/flask_gtts
8f14b9f114127d8fba240a88f3aa16eb17628872
[ "MIT" ]
null
null
null
""" Flask-gTTS ------------- A Flask extension to add gTTS Google text to speech, into the template, it makes adding and configuring multiple text to speech audio files at a time much easier and less time consuming """ from setuptools import setup setup( name='Flask-gTTS', version='0.11', url='https://g...
29.404255
76
0.633864
0
0
0
0
0
0
0
0
848
0.613603
3dd5a2aa827f14ee73dd8f5c2368476016523c81
232
py
Python
READ.py
BeatrizFS/MongoDB-Python
a23741d5f58ccad50e6239c963f78759f92098ac
[ "MIT" ]
null
null
null
READ.py
BeatrizFS/MongoDB-Python
a23741d5f58ccad50e6239c963f78759f92098ac
[ "MIT" ]
null
null
null
READ.py
BeatrizFS/MongoDB-Python
a23741d5f58ccad50e6239c963f78759f92098ac
[ "MIT" ]
null
null
null
from Arquivo1 import Produto #READ #Consultar o Banco de dados #1.Retorna todas as informações do Banco de dados produtos = Produto.objects() print(produtos) for produto in produtos: print(produto.Nome, produto.Valor)
23.2
50
0.75
0
0
0
0
0
0
0
0
86
0.367521
3dd7149bf486a0156690dac8d36a869ec269ebf6
9,280
py
Python
src/aux_funcs.py
ArunBaskaran/Image-Driven-Machine-Learning-Approach-for-Microstructure-Classification-and-Segmentation-Ti-6Al-4V
79ca40ababbc65464650c5519f9e7fdbf3c9d14d
[ "MIT" ]
7
2020-03-19T05:04:30.000Z
2022-03-31T10:29:42.000Z
src/aux_funcs.py
ArunBaskaran/Image-Driven-Machine-Learning-Approach-for-Microstructure-Classification-and-Segmentation-Ti-6Al-4V
79ca40ababbc65464650c5519f9e7fdbf3c9d14d
[ "MIT" ]
2
2020-08-19T03:24:31.000Z
2021-03-02T00:18:46.000Z
src/aux_funcs.py
ArunBaskaran/Image-Driven-Machine-Learning-Approach-for-Microstructure-Classification-and-Segmentation-Ti-6Al-4V
79ca40ababbc65464650c5519f9e7fdbf3c9d14d
[ "MIT" ]
3
2020-09-17T04:15:04.000Z
2021-01-18T08:37:39.000Z
""" ----------------------------------ABOUT----------------------------------- Author: Arun Baskaran -------------------------------------------------------------------------- """ import model_params def smooth(img): return 0.5*img + 0.5*( np.roll(img, +1, axis=0) + np.roll(img, -1, axis=0) + np.r...
44.830918
210
0.650108
0
0
0
0
0
0
0
0
780
0.084052
3dd842d4edbdc348779300fb523036992a49b5b2
125
py
Python
manage.py
Stupnitskiy/BinaryAPI
e448936ceed96da72e2aa65847030ea56edb224f
[ "MIT" ]
null
null
null
manage.py
Stupnitskiy/BinaryAPI
e448936ceed96da72e2aa65847030ea56edb224f
[ "MIT" ]
null
null
null
manage.py
Stupnitskiy/BinaryAPI
e448936ceed96da72e2aa65847030ea56edb224f
[ "MIT" ]
null
null
null
from flask_script import Manager from src import app manager = Manager(app) if __name__ == "__main__": manager.run()
12.5
32
0.72
0
0
0
0
0
0
0
0
10
0.08
3dd84d6968111423f954120eed10897fd01c00ea
1,355
py
Python
CIFAR10.py
jimmyLeeMc/NeuralNetworkTesting
a6208cc8639a93ac24655495c9ace1acba21c76f
[ "MIT" ]
null
null
null
CIFAR10.py
jimmyLeeMc/NeuralNetworkTesting
a6208cc8639a93ac24655495c9ace1acba21c76f
[ "MIT" ]
null
null
null
CIFAR10.py
jimmyLeeMc/NeuralNetworkTesting
a6208cc8639a93ac24655495c9ace1acba21c76f
[ "MIT" ]
null
null
null
#CIFAR from tensorflow import keras import numpy as np import matplotlib.pyplot as plt data = keras.datasets.cifar10 activations=[keras.activations.sigmoid, keras.activations.relu, keras.layers.LeakyReLU(), keras.activations.tanh] results=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] class_names=[0,1,2,3,4,5,6,7,8,9] ...
38.714286
108
0.591882
0
0
0
0
0
0
0
0
81
0.059779
3dd93f9bb15a42397c641e431fd3df72da46ab0d
3,127
py
Python
All_RasPy_Files/edgedetection.py
govindak-umd/Autonomous_Robotics
5293b871c7032b40cbff7814bd773871ee2c5946
[ "MIT" ]
2
2020-05-14T11:23:30.000Z
2020-05-25T06:30:57.000Z
All_RasPy_Files/edgedetection.py
govindak-umd/ENPM809T
5293b871c7032b40cbff7814bd773871ee2c5946
[ "MIT" ]
null
null
null
All_RasPy_Files/edgedetection.py
govindak-umd/ENPM809T
5293b871c7032b40cbff7814bd773871ee2c5946
[ "MIT" ]
5
2020-06-09T22:09:15.000Z
2022-01-31T17:11:19.000Z
# ENME 489Y: Remote Sensing # Edge detection import numpy as np import matplotlib import matplotlib.pyplot as plt # Define slice of an arbitrary original image f = np.empty((0)) index = np.empty((0)) # Create intensity data, including noise for i in range(2000): index = np.append(index, i) if i <= 950: ...
23.689394
76
0.68692
0
0
0
0
0
0
0
0
1,254
0.401023
3dda1806de2d35a90208c505c2c72da1466cf4a9
1,850
py
Python
alipay/aop/api/domain/AlipayCommerceReceiptBatchqueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayCommerceReceiptBatchqueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayCommerceReceiptBatchqueryModel.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 * class AlipayCommerceReceiptBatchqueryModel(object): def __init__(self): self._level = None self._out_biz_no_list = None @property def level(self): return self._level ...
28.90625
81
0.585405
1,733
0.936757
0
0
717
0.387568
0
0
188
0.101622
3ddaf9735b2cb2b79bcc96e4e4c161028c28ae19
2,632
py
Python
tests/test_timeconversion.py
FObersteiner/pyFuppes
2a8c6e210855598dbf4fb491533bf22706340c9a
[ "MIT" ]
1
2020-06-02T08:02:36.000Z
2020-06-02T08:02:36.000Z
tests/test_timeconversion.py
FObersteiner/pyFuppes
2a8c6e210855598dbf4fb491533bf22706340c9a
[ "MIT" ]
3
2022-03-04T11:43:19.000Z
2022-03-25T00:26:46.000Z
tests/test_timeconversion.py
FObersteiner/pyFuppes
2a8c6e210855598dbf4fb491533bf22706340c9a
[ "MIT" ]
null
null
null
import unittest from datetime import datetime, timezone from pyfuppes import timeconversion class TestTimeconv(unittest.TestCase): @classmethod def setUpClass(cls): # to run before all tests print("testing pyfuppes.timeconversion...") @classmethod def tearDownClass(cls...
32.9
81
0.587006
2,474
0.93997
0
0
215
0.081687
0
0
375
0.142477
3ddb42001698eb4e38741ad5c0c31bf71b836bbd
1,111
py
Python
ucscentralsdk/methodmeta/LstorageCloneMeta.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
ucscentralsdk/methodmeta/LstorageCloneMeta.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
ucscentralsdk/methodmeta/LstorageCloneMeta.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
"""This module contains the meta information of LstorageClone ExternalMethod.""" from ..ucscentralcoremeta import MethodMeta, MethodPropertyMeta method_meta = MethodMeta("LstorageClone", "lstorageClone", "Version142b") prop_meta = { "cookie": MethodPropertyMeta("Cookie", "cookie", "Xs:string", "Version142b", "In...
44.44
122
0.706571
0
0
0
0
0
0
0
0
674
0.606661
3ddd545e8ac1636ac0a7d92a17cca391f2e23803
7,468
py
Python
tool/powermon.py
virajpadte/Power_monitoring_JetsonTX1
3f337adb16ce09072d69147b705a0c705b3ad53c
[ "MIT" ]
null
null
null
tool/powermon.py
virajpadte/Power_monitoring_JetsonTX1
3f337adb16ce09072d69147b705a0c705b3ad53c
[ "MIT" ]
null
null
null
tool/powermon.py
virajpadte/Power_monitoring_JetsonTX1
3f337adb16ce09072d69147b705a0c705b3ad53c
[ "MIT" ]
null
null
null
import sys import glob import serial import ttk import tkFileDialog from Tkinter import * #for plotting we need these: import matplotlib matplotlib.use("TkAgg") import matplotlib.pyplot as plt from drawnow import * class MainView: #CLASS VARIABLES: closing_status = False powerW = [] def __init__(se...
35.561905
138
0.595742
7,116
0.952866
0
0
0
0
0
0
2,121
0.284012
3ddeb574a2024dfb0d06c0c742bbc0a272df7e2d
900
py
Python
shop/tests/products/views/test_product_details_view.py
nikolaynikolov971/NftShop
09a535a6f708f0f6da5addeb8781f9bdcea72cf3
[ "MIT" ]
null
null
null
shop/tests/products/views/test_product_details_view.py
nikolaynikolov971/NftShop
09a535a6f708f0f6da5addeb8781f9bdcea72cf3
[ "MIT" ]
null
null
null
shop/tests/products/views/test_product_details_view.py
nikolaynikolov971/NftShop
09a535a6f708f0f6da5addeb8781f9bdcea72cf3
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.urls import reverse from shop.products.models import Product from tests.base.mixins import ProductTestUtils class ProductDetailsTest(ProductTestUtils, TestCase): def setUp(self): self.client = Client() self.product = self.create_product( ...
30
94
0.66
735
0.816667
0
0
0
0
0
0
80
0.088889
3de34122732924fae3421861027e4399e17b6da8
4,558
py
Python
projetoFTP/servidor/sftps.py
MarciovsRocha/conectividade-sistemas-cyberfisicos
d76b8a540b55eb8a54ae99067b625010e85a2eb8
[ "MIT" ]
null
null
null
projetoFTP/servidor/sftps.py
MarciovsRocha/conectividade-sistemas-cyberfisicos
d76b8a540b55eb8a54ae99067b625010e85a2eb8
[ "MIT" ]
null
null
null
projetoFTP/servidor/sftps.py
MarciovsRocha/conectividade-sistemas-cyberfisicos
d76b8a540b55eb8a54ae99067b625010e85a2eb8
[ "MIT" ]
null
null
null
import socket import threading import os import sys from pathlib import Path #--------------------------------------------------- def ReadLine(conn): line = '' while True: try: byte = conn.recv(1) except: print('O cliente encerrou') return 0 ...
28.4875
72
0.426942
0
0
0
0
0
0
0
0
1,189
0.260688
3de3ed318e614e22c2b9f52348133eddba3a0fee
2,424
py
Python
messages.py
runjak/hoodedFigure
539c9839dd47bc181e592bf4a61eaab361b8d316
[ "MIT" ]
null
null
null
messages.py
runjak/hoodedFigure
539c9839dd47bc181e592bf4a61eaab361b8d316
[ "MIT" ]
null
null
null
messages.py
runjak/hoodedFigure
539c9839dd47bc181e592bf4a61eaab361b8d316
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import random sentences = [ "Going into the #dogpark is not allowed, @%s.", "That's my favourite #dogpark @%s - no one is allowed to go into it!", "That #dogpark you mention is forbidden! Please don't, @%s", "The #dogpark should be secured with electrified barbwire. " "Don...
44.072727
79
0.636139
0
0
0
0
0
0
0
0
1,849
0.76216
3de5ea40f8bf420e08e8aea386566d9bf26093f0
3,595
py
Python
detectron/tests/test_track_losses.py
orestis-z/track-rcnn
6b2405cb8308168106526b57027a1af3fe9df0f3
[ "Apache-2.0" ]
9
2020-10-16T22:20:09.000Z
2022-03-22T11:08:01.000Z
detectron/tests/test_track_losses.py
orestis-z/track-rcnn
6b2405cb8308168106526b57027a1af3fe9df0f3
[ "Apache-2.0" ]
null
null
null
detectron/tests/test_track_losses.py
orestis-z/track-rcnn
6b2405cb8308168106526b57027a1af3fe9df0f3
[ "Apache-2.0" ]
2
2021-10-04T14:27:52.000Z
2022-03-22T11:07:53.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np from scipy import spatial import unittest from caffe2.proto import caffe2_pb2 from caffe2.python import core from caffe2.python import workspace from...
43.313253
115
0.69096
2,828
0.786648
0
0
0
0
0
0
363
0.100974
3de7f52d572f048f38c1b4744268152292a54283
4,497
py
Python
torch/nn/_functions/thnn/upsampling.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
null
null
null
torch/nn/_functions/thnn/upsampling.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
null
null
null
torch/nn/_functions/thnn/upsampling.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
null
null
null
from numbers import Integral import torch from torch.autograd import Function from torch._thnn import type2backend from . import _all_functions from ...modules.utils import _pair from ...functional import _check_bilinear_2d_scale_factor class _UpsamplingBase(Function): def __init__(self, size=None, scale_factor...
34.328244
98
0.610407
4,162
0.925506
0
0
0
0
0
0
342
0.076051
3de882780eafbe1233cbdcdf8b3eb920ea7971b8
7,869
py
Python
Day17/17_trick_shot.py
schca675/my-code-for-advent-of-code-2021
e8bdb986930b444884d37e679a37ed25efe2b34e
[ "Apache-2.0" ]
null
null
null
Day17/17_trick_shot.py
schca675/my-code-for-advent-of-code-2021
e8bdb986930b444884d37e679a37ed25efe2b34e
[ "Apache-2.0" ]
null
null
null
Day17/17_trick_shot.py
schca675/my-code-for-advent-of-code-2021
e8bdb986930b444884d37e679a37ed25efe2b34e
[ "Apache-2.0" ]
null
null
null
# --- Day 17: Trick Shot --- import math import time def get_puzzle_input(filepath): with open(filepath) as f: for line in f: # target area: x=269..292, y =-68..-44 parts = line.rstrip().replace(',', '').split() [x1, x2] = parts[2][2:].split("..") [y1, y2] =...
35.931507
115
0.490532
6,188
0.786377
0
0
0
0
0
0
3,026
0.384547
3de9f24b49937335e24db781a7e382e77643515c
568
py
Python
zip_files.py
VladimirsHisamutdinovs/Advanced_Python_Operations
509c219f70adcbe9b3dedd71bff819494bab9c83
[ "Apache-2.0" ]
null
null
null
zip_files.py
VladimirsHisamutdinovs/Advanced_Python_Operations
509c219f70adcbe9b3dedd71bff819494bab9c83
[ "Apache-2.0" ]
null
null
null
zip_files.py
VladimirsHisamutdinovs/Advanced_Python_Operations
509c219f70adcbe9b3dedd71bff819494bab9c83
[ "Apache-2.0" ]
null
null
null
import zipfile zip_file = zipfile.ZipFile("zip_archive.zip", "w") zip_file.write("textfile_for_zip_01") zip_file.write("textfile_for_zip_02") zip_file.write("textfile_for_zip_03") # print(zipfile.is_zipfile("zip_archive.zip")) # zip_file = zipfile.ZipFile("zip_archive.zip") # print(zip_file.namelist()) ...
24.695652
53
0.748239
0
0
0
0
0
0
0
0
384
0.676056
3deab92507c5a88674b2ab8baa0fe1cd63998a28
21,024
py
Python
omdrivers/lifecycle/iDRAC/iDRACUpdate.py
rajroyce1212/Ansible-iDRAC
4ce00b605ee2e128ad98b572759e860bae3da3dc
[ "Apache-2.0" ]
61
2018-02-21T00:02:20.000Z
2022-01-26T03:47:19.000Z
omdrivers/lifecycle/iDRAC/iDRACUpdate.py
rajroyce1212/Ansible-iDRAC
4ce00b605ee2e128ad98b572759e860bae3da3dc
[ "Apache-2.0" ]
31
2018-03-24T05:43:39.000Z
2022-03-16T07:10:37.000Z
omdrivers/lifecycle/iDRAC/iDRACUpdate.py
rajroyce1212/Ansible-iDRAC
4ce00b605ee2e128ad98b572759e860bae3da3dc
[ "Apache-2.0" ]
25
2018-03-13T10:06:12.000Z
2022-01-26T03:47:21.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # # Copyright © 2018 Dell Inc. or its subsidiaries. All rights reserved. # Dell, EMC, and other trademarks are trademarks of Dell Inc. or its subsidiaries. # Other trademarks may be trademarks of their respective owners. # # Licensed under the Apache License, Ver...
50.176611
137
0.581573
19,280
0.917004
0
0
755
0.03591
0
0
4,482
0.213175
3dec8f27fe9f9465de4b1a61485314e099192b22
3,196
py
Python
playthrough/management/commands/migrate_shogun.py
SciADV-Community/genki
b86811695c428ca93bdab3ea2f68e3a99713d4db
[ "MIT" ]
null
null
null
playthrough/management/commands/migrate_shogun.py
SciADV-Community/genki
b86811695c428ca93bdab3ea2f68e3a99713d4db
[ "MIT" ]
11
2020-10-15T01:19:24.000Z
2022-03-28T04:09:43.000Z
playthrough/management/commands/migrate_shogun.py
SciADV-Community/genki
b86811695c428ca93bdab3ea2f68e3a99713d4db
[ "MIT" ]
1
2021-01-11T19:56:02.000Z
2021-01-11T19:56:02.000Z
import argparse import os import sqlite3 from django.core.management.base import BaseCommand from playthrough.models import Alias, Channel, Game, GameConfig, Guild, RoleTemplate, User class Command(BaseCommand): help = 'Migrates a DB from \'Shogun\' bot (SciADV-Community/playthrough-bot).' @staticmethod ...
44.388889
104
0.59199
3,007
0.940864
0
0
237
0.074155
0
0
888
0.277847
3ded44aff9cb2e2f9d8057ef0b9ba6ae462ea0c0
5,233
py
Python
backend/model/benchmark-metrics/service/ocr.py
agupta54/ulca
c1f570ac254ce2ac73f40c49716458f4f7cbaee2
[ "MIT" ]
3
2022-01-12T06:51:51.000Z
2022-02-23T18:54:33.000Z
backend/model/benchmark-metrics/service/ocr.py
agupta54/ulca
c1f570ac254ce2ac73f40c49716458f4f7cbaee2
[ "MIT" ]
6
2021-08-31T19:21:26.000Z
2022-01-03T05:53:42.000Z
backend/model/benchmark-metrics/service/ocr.py
agupta54/ulca
c1f570ac254ce2ac73f40c49716458f4f7cbaee2
[ "MIT" ]
8
2021-08-12T08:07:49.000Z
2022-01-25T04:40:51.000Z
import logging from datetime import datetime import numpy as np from logging.config import dictConfig from kafkawrapper.producer import Producer from utils.mongo_utils import BenchMarkingProcessRepo from configs.configs import ulca_notifier_input_topic, ulca_notifier_benchmark_completed_event, ulca_notifier_benchmark_f...
55.084211
200
0.608064
3,926
0.750239
0
0
0
0
0
0
1,702
0.325244
3deea7c2a0399d6a1677f78e7cc36afe63de0fc2
1,780
py
Python
keystroke/migrations/0001_initial.py
jstavanja/quiz-biometrics-api
75e0db348668b14a85f94261aac092ae2d5fa9c6
[ "MIT" ]
null
null
null
keystroke/migrations/0001_initial.py
jstavanja/quiz-biometrics-api
75e0db348668b14a85f94261aac092ae2d5fa9c6
[ "MIT" ]
null
null
null
keystroke/migrations/0001_initial.py
jstavanja/quiz-biometrics-api
75e0db348668b14a85f94261aac092ae2d5fa9c6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2018-08-20 16:31 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Cre...
34.901961
115
0.591573
1,588
0.892135
0
0
0
0
0
0
330
0.185393
3deeb28e7a4a40609c5fe55751360abc1b88afba
1,603
py
Python
komposisjon/komposisjon/rektangler_kvadrater.py
knutsenfiksdal/Oving_8
4e5d3a358cfb9127509a86a61c9499f22da9eabc
[ "MIT" ]
null
null
null
komposisjon/komposisjon/rektangler_kvadrater.py
knutsenfiksdal/Oving_8
4e5d3a358cfb9127509a86a61c9499f22da9eabc
[ "MIT" ]
null
null
null
komposisjon/komposisjon/rektangler_kvadrater.py
knutsenfiksdal/Oving_8
4e5d3a358cfb9127509a86a61c9499f22da9eabc
[ "MIT" ]
null
null
null
class Rektangel: def __init__(self, start_x, start_y, bredde, hoyde): self.start_x = start_x self.start_y = start_y self.hoyde = hoyde self.bredde = bredde def areal(self): return self.bredde*self.hoyde # Endrer høyde og bredde på en slik måte at areal forblir det s...
26.278689
75
0.646288
1,211
0.753578
0
0
395
0.2458
0
0
222
0.138146
3defd9479c2f0a53049990dbf13feea2c96391cf
16,024
py
Python
DiscordBot/Commands/DiscordPoints.py
aronjanosch/kirbec-bot
6d44e177c5cf6669564047fbbc8f6e8c342bca28
[ "MIT" ]
null
null
null
DiscordBot/Commands/DiscordPoints.py
aronjanosch/kirbec-bot
6d44e177c5cf6669564047fbbc8f6e8c342bca28
[ "MIT" ]
null
null
null
DiscordBot/Commands/DiscordPoints.py
aronjanosch/kirbec-bot
6d44e177c5cf6669564047fbbc8f6e8c342bca28
[ "MIT" ]
null
null
null
from datetime import datetime import discord import itertools from .utils import formatString, getUsageEmbed, getOopsEmbed # IDEAS # 1. Paying out points (without bets) class DiscordPoints: """ Class that parses Discord Points info and interactions Attributes __________ fire (Fire obj): The fire...
33.949153
119
0.602034
15,851
0.989204
0
0
0
0
2,356
0.147029
8,361
0.52178
3df076848f2032b90ec31c8b5ee8c64134fd5e5c
1,579
py
Python
lunch/admin.py
KrzysztofSakowski/lunch-crawler
6a93d6cfad634fb98f89bc22d68547801865c9ae
[ "Apache-2.0" ]
1
2020-02-17T13:40:08.000Z
2020-02-17T13:40:08.000Z
lunch/admin.py
KrzysztofSakowski/lunch-crawler
6a93d6cfad634fb98f89bc22d68547801865c9ae
[ "Apache-2.0" ]
4
2020-02-11T23:06:14.000Z
2021-06-10T18:07:30.000Z
lunch/admin.py
KrzysztofSakowski/lunch-crawler
6a93d6cfad634fb98f89bc22d68547801865c9ae
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import MenuFacebook, MenuEmail, UserProfile, Occupation, FacebookRestaurant, EmailRestaurant class MenuBaseAdmin(admin.ModelAdmin): list_display = ('id', 'format_date', 'is_lunch', 'message') list_filter = ('created_date', 'is_lunch') list_editable = ('is_lun...
29.240741
105
0.723243
1,122
0.710576
0
0
0
0
0
0
194
0.122863
3df0af937b9149db956b0d8ec02537a403587abe
19,082
py
Python
src/oci/log_analytics/models/query_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/log_analytics/models/query_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/log_analytics/models/query_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
35.600746
245
0.672466
18,542
0.971701
0
0
18,572
0.973273
0
0
13,263
0.695053
3df0f23a4341291aa332900c1b4adf982ac1f716
2,740
py
Python
moist.py
phiriv/moisture_sensor
1e6a5d967ab639c67bae03847bd58ede31bde564
[ "MIT" ]
null
null
null
moist.py
phiriv/moisture_sensor
1e6a5d967ab639c67bae03847bd58ede31bde564
[ "MIT" ]
null
null
null
moist.py
phiriv/moisture_sensor
1e6a5d967ab639c67bae03847bd58ede31bde564
[ "MIT" ]
null
null
null
Script to read temperature data from the DHT11: # Importeer Adafruit DHT bibliotheek. import Adafruit_DHT import time als = True while als: humidity, temperature = Adafruit_DHT.read_retry(Adafruit_DHT.DHT11, 4) #on gpio pin 4 or pin 7 if humidity is not None and temperature is not None: humidity ...
30.10989
104
0.622628
0
0
0
0
0
0
0
0
526
0.191971
3df10878e5646297672b7b72bacac47ff05e414e
4,168
py
Python
route_distances/utils/routes.py
general-synthesis/route-distances
2bc09a607bd7fa488357dcee96325669d8295f90
[ "MIT" ]
null
null
null
route_distances/utils/routes.py
general-synthesis/route-distances
2bc09a607bd7fa488357dcee96325669d8295f90
[ "MIT" ]
null
null
null
route_distances/utils/routes.py
general-synthesis/route-distances
2bc09a607bd7fa488357dcee96325669d8295f90
[ "MIT" ]
null
null
null
""" Module containing helper routines for routes """ from typing import Dict, Any, Set, List, Tuple import numpy as np from route_distances.utils.type_utils import StrDict def calc_depth(tree_dict: StrDict, depth: int = 0) -> int: """ Calculate the depth of a route, recursively :param tree_dict: the ro...
28.744828
84
0.651631
0
0
0
0
0
0
0
0
1,910
0.458253
3df45b763adea0ed603bc91664b6febfe07b4afe
1,920
py
Python
src/yafowil/tests/__init__.py
2silver/yafowil
b9776503f98f145f7aaaa4f61b73e238c92c534c
[ "BSD-3-Clause" ]
8
2015-12-15T21:14:00.000Z
2019-11-11T22:13:18.000Z
src/yafowil/tests/__init__.py
2silver/yafowil
b9776503f98f145f7aaaa4f61b73e238c92c534c
[ "BSD-3-Clause" ]
21
2015-11-21T10:12:12.000Z
2021-06-03T06:51:53.000Z
src/yafowil/tests/__init__.py
2silver/yafowil
b9776503f98f145f7aaaa4f61b73e238c92c534c
[ "BSD-3-Clause" ]
5
2016-11-23T13:41:52.000Z
2020-06-08T18:21:00.000Z
from __future__ import print_function from node.tests import NodeTestCase from yafowil.base import factory from yafowil.compat import IS_PY2 import lxml.etree as etree import sys import unittest import yafowil.common import yafowil.compound import yafowil.persistence import yafowil.table if not IS_PY2: from impor...
25.945946
64
0.752083
257
0.133854
0
0
0
0
0
0
17
0.008854
3df5aa98eb0d85a8d21eb7afce122f2c8fabce6b
1,350
py
Python
tools/foolbox/bim_attack.py
GianmarcoMidena/adversarial-ML-benchmarker
43cfcfdac36da88d37b12d956ea8735fd27ca4a9
[ "MIT" ]
null
null
null
tools/foolbox/bim_attack.py
GianmarcoMidena/adversarial-ML-benchmarker
43cfcfdac36da88d37b12d956ea8735fd27ca4a9
[ "MIT" ]
null
null
null
tools/foolbox/bim_attack.py
GianmarcoMidena/adversarial-ML-benchmarker
43cfcfdac36da88d37b12d956ea8735fd27ca4a9
[ "MIT" ]
null
null
null
from foolbox.attacks import LinfinityBasicIterativeAttack from foolbox.criteria import Misclassification from foolbox.distances import MSE from tools.foolbox.adversarial_attack import AdversarialAttack class BIMAttack(AdversarialAttack): def __init__(self, model, step_size_iter=0.05, max_perturbation=0.3, n_iter...
51.923077
112
0.707407
1,144
0.847407
0
0
0
0
0
0
0
0
3df5e6a39fd0846088495ee87733d03e26f82c02
292
py
Python
Tabuada.py
tobiaspontes/ScriptsPython
21ed779e49adca500ce5815dd100f4ec999a2571
[ "MIT" ]
null
null
null
Tabuada.py
tobiaspontes/ScriptsPython
21ed779e49adca500ce5815dd100f4ec999a2571
[ "MIT" ]
null
null
null
Tabuada.py
tobiaspontes/ScriptsPython
21ed779e49adca500ce5815dd100f4ec999a2571
[ "MIT" ]
null
null
null
# Tabuada em Python def tabuada(x): for i in range(10): print('{} x {} = {}'.format(x, (i + 1), x * (i + 1))) print() if __name__ == '__main__': print(9 ) nro = int(input('Entre com um número: ')) print(f'\n\033[1;32mTabuada do {nro}'+'\n') tabuada(nro)
20.857143
61
0.513699
0
0
0
0
0
0
0
0
102
0.348123
3df87a91ac53ca2678893bfc4dee7db4ace5bf95
3,235
py
Python
radix_tree.py
mouradmourafiq/data-analysis
1df2ca020a554f1fdab7cc9e53115e249cc199ac
[ "BSD-2-Clause" ]
17
2015-04-01T12:11:31.000Z
2022-03-15T16:44:01.000Z
radix_tree.py
mouradmourafiq/data-analysis
1df2ca020a554f1fdab7cc9e53115e249cc199ac
[ "BSD-2-Clause" ]
null
null
null
radix_tree.py
mouradmourafiq/data-analysis
1df2ca020a554f1fdab7cc9e53115e249cc199ac
[ "BSD-2-Clause" ]
17
2015-01-14T14:59:40.000Z
2021-07-01T05:46:14.000Z
# -*- coding: utf-8 -*- ''' Created on Dec 01, 2012 @author: Mourad Mourafiq About: This is an attempt to implement the radix tree algo. Features : -> insert -> remove -> search ''' NOK = "{'':[]}" class Prefixer(): def __init__(self): self.__data = {} def __repr__(self): retu...
27.415254
77
0.483462
3,018
0.932921
0
0
785
0.242658
0
0
409
0.12643
3df8c0e29455e554abfe1f3cc62c34726c6ded0b
1,264
py
Python
Python/PythonOOP/animals.py
JosephAMumford/CodingDojo
505be74d18d7a8f41c4b3576ca050b97f840f0a3
[ "MIT" ]
2
2018-08-18T15:14:45.000Z
2019-10-16T16:14:13.000Z
Python/PythonOOP/animals.py
JosephAMumford/CodingDojo
505be74d18d7a8f41c4b3576ca050b97f840f0a3
[ "MIT" ]
null
null
null
Python/PythonOOP/animals.py
JosephAMumford/CodingDojo
505be74d18d7a8f41c4b3576ca050b97f840f0a3
[ "MIT" ]
6
2018-05-05T18:13:05.000Z
2021-05-20T11:32:48.000Z
class Animal(object): def __init__(self,name,health): self.name = name self.health = 50 def walk(self): self.health = self.health - 1 return self def run(self): self.health = self.health - 5 return self def display_health(self): print "Healt...
22.175439
60
0.630538
640
0.506329
0
0
0
0
0
0
338
0.267405
3dfa41325fc23f6087b7a1ae8181579baa35af0a
17,915
py
Python
ai4water/preprocessing/transformations/_wrapper.py
moonson619/AI4Water-1
285d46824502b6a787e42570b72432f4f6acf45e
[ "MIT" ]
17
2021-05-21T13:01:52.000Z
2022-03-19T15:17:10.000Z
ai4water/preprocessing/transformations/_wrapper.py
moonson619/AI4Water-1
285d46824502b6a787e42570b72432f4f6acf45e
[ "MIT" ]
3
2021-10-31T22:40:28.000Z
2021-11-08T02:28:35.000Z
ai4water/preprocessing/transformations/_wrapper.py
moonson619/AI4Water-1
285d46824502b6a787e42570b72432f4f6acf45e
[ "MIT" ]
7
2021-08-06T07:27:50.000Z
2022-01-26T00:38:32.000Z
from typing import Union, List, Dict import numpy as np import pandas as pd from ai4water.utils.utils import jsonize, deepcopy_dict_without_clone from ai4water.preprocessing.transformations import Transformation class Transformations(object): """ While the [Transformation][ai4water.preprocessing.transforma...
42.252358
121
0.547251
16,459
0.918727
0
0
422
0.023556
0
0
7,008
0.391181
3dfbbd5b64a3c6157f0b5de85518ecc1e0323285
3,684
py
Python
main/tagcn_training.py
Stanislas0/KDD_CUP_2020_MLTrack2_SPEIT
7362104002225055715f05ccfc5ee8f6ef433d50
[ "Apache-2.0" ]
18
2020-09-10T06:48:22.000Z
2022-01-25T18:22:52.000Z
main/tagcn_training.py
Stanislas0/KDD_CUP_2020_MLTrack2_SPEIT
7362104002225055715f05ccfc5ee8f6ef433d50
[ "Apache-2.0" ]
null
null
null
main/tagcn_training.py
Stanislas0/KDD_CUP_2020_MLTrack2_SPEIT
7362104002225055715f05ccfc5ee8f6ef433d50
[ "Apache-2.0" ]
null
null
null
import os import dgl import time import argparse import numpy as np import torch as th import distutils.util import torch.nn.functional as F import utils import models import data_loader os.environ["CUDA_VISIBLE_DEVICES"] = '0' dev = th.device('cuda' if th.cuda.is_available() else 'cpu') if __name__ == '__main__': ...
41.393258
114
0.683496
0
0
0
0
0
0
0
0
540
0.14658
3dfd83b71400b6e832cb757945e612ae86e6bd4c
27,127
py
Python
AltFS.py
g-mc/AltFS
4d83a928cb1f1ec127e9565b578779ec4e659dae
[ "BSD-3-Clause" ]
54
2019-02-27T15:57:27.000Z
2021-10-10T21:51:50.000Z
AltFS.py
g-mc/AltFS
4d83a928cb1f1ec127e9565b578779ec4e659dae
[ "BSD-3-Clause" ]
null
null
null
AltFS.py
g-mc/AltFS
4d83a928cb1f1ec127e9565b578779ec4e659dae
[ "BSD-3-Clause" ]
11
2019-03-01T19:07:25.000Z
2020-12-03T14:56:44.000Z
#!/usr/bin/env python """ BSD 3-Clause License Copyright (c) 2017, SafeBreach Labs All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notic...
41.798151
79
0.629742
24,823
0.915066
499
0.018395
2,370
0.087367
0
0
10,749
0.396247
3dfe1030cd691567d0eb0ceab815ccdf039f3393
269
py
Python
python-crypt-service/services/dbservice.py
Shirish-Singh/crypt-analysis
eed6d00925389ee0973733e6b7397cd460f97f99
[ "Apache-2.0" ]
null
null
null
python-crypt-service/services/dbservice.py
Shirish-Singh/crypt-analysis
eed6d00925389ee0973733e6b7397cd460f97f99
[ "Apache-2.0" ]
null
null
null
python-crypt-service/services/dbservice.py
Shirish-Singh/crypt-analysis
eed6d00925389ee0973733e6b7397cd460f97f99
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from configurations import configuration from pymongo import MongoClient MONGO_HOST= configuration.MONGO_HOST client = MongoClient(MONGO_HOST) class DBConnection(): def getConnection(self): return client.analyticsDB
20.692308
40
0.814126
84
0.312268
0
0
0
0
0
0
0
0
3dffaaba0f49d4e4bcf7fb58f40e51bc3b413470
448
py
Python
simple_amqp_rpc/data.py
rudineirk/py-simple-amqp-rpc
823b6efe271732495d4e3ccdcb9f4d85138c1d42
[ "MIT" ]
null
null
null
simple_amqp_rpc/data.py
rudineirk/py-simple-amqp-rpc
823b6efe271732495d4e3ccdcb9f4d85138c1d42
[ "MIT" ]
1
2021-06-01T22:28:43.000Z
2021-06-01T22:28:43.000Z
simple_amqp_rpc/data.py
rudineirk/py-simple-amqp-rpc
823b6efe271732495d4e3ccdcb9f4d85138c1d42
[ "MIT" ]
null
null
null
from typing import Any, List from dataclasses import dataclass, replace from .consts import OK class Data: def replace(self, **kwargs): return replace(self, **kwargs) @dataclass(frozen=True) class RpcCall(Data): route: str service: str method: str args: List[Any] @dataclass(frozen=Tr...
15.448276
42
0.654018
294
0.65625
0
0
259
0.578125
0
0
0
0
ad000563b867048b766de0b54cb60801221e67a0
598
py
Python
fileparse/python/main.py
mlavergn/benchmarks
4663009772c71d7c94bcd13eec542d1ce33cef72
[ "Unlicense" ]
null
null
null
fileparse/python/main.py
mlavergn/benchmarks
4663009772c71d7c94bcd13eec542d1ce33cef72
[ "Unlicense" ]
null
null
null
fileparse/python/main.py
mlavergn/benchmarks
4663009772c71d7c94bcd13eec542d1ce33cef72
[ "Unlicense" ]
null
null
null
#!/usr/bin/python import timeit setup = ''' import os def FileTest(path): file = open(path, "r") lines = file.readlines() data = [None for i in range(len(lines))] i = 0 for line in lines: data[i] = line.split(',') j = 0 for field in data[i]: data[i][j] = field.strip('\\'\\n') j += 1 i += 1 re...
20.62069
93
0.605351
0
0
0
0
0
0
0
0
421
0.704013
ad005ad94d7f773d61fa5f1363d44b1d458fd462
5,475
py
Python
boris/classification.py
fragaria/BorIS
9585c83f29220d8f63910dabd98641ab41ace6cf
[ "MIT" ]
1
2021-08-10T14:01:26.000Z
2021-08-10T14:01:26.000Z
boris/classification.py
fragaria/BorIS
9585c83f29220d8f63910dabd98641ab41ace6cf
[ "MIT" ]
5
2018-04-04T14:31:34.000Z
2020-06-08T07:50:23.000Z
boris/classification.py
fragaria/BorIS
9585c83f29220d8f63910dabd98641ab41ace6cf
[ "MIT" ]
4
2017-02-06T15:38:34.000Z
2018-03-21T09:40:12.000Z
# -*- coding: utf-8 -*- ''' Created on 25.9.2011 @author: xaralis ''' from model_utils import Choices SEXES = Choices( (1, 'FEMALE', u'žena'), (2, 'MALE', u'muž') ) NATIONALITIES = Choices( (1, 'CZ', u'Česká republika'), (2, 'EU', u'Jiné - EU'), (3, 'NON_EU', u'Jiné - non-EU'), (4, 'UNKNOWN', ...
32.589286
96
0.606575
0
0
0
0
0
0
0
0
3,568
0.630946
9a735bf957ffc30fea6d0bb1fe8f079ce7582eb6
23,569
py
Python
extern/face_expression/face_expression/dataset.py
wangxihao/rgbd-kinect-pose
03180723c99759ba2500bcd42b5fe7a1d26eb507
[ "MIT" ]
1
2022-02-07T06:12:26.000Z
2022-02-07T06:12:26.000Z
extern/face_expression/face_expression/dataset.py
wangxihao/rgbd-kinect-pose
03180723c99759ba2500bcd42b5fe7a1d26eb507
[ "MIT" ]
null
null
null
extern/face_expression/face_expression/dataset.py
wangxihao/rgbd-kinect-pose
03180723c99759ba2500bcd42b5fe7a1d26eb507
[ "MIT" ]
null
null
null
import os import sys import json import pickle import h5py from tqdm import tqdm import numpy as np import torch import cv2 import scipy.spatial import hydra from face_expression import utils from face_expression.third_party.face_mesh_mediapipe import FaceMeshMediaPipe # class VoxCeleb2FaceDataset(torch.utils.data...
37.058176
125
0.566252
11,837
0.502228
0
0
4,375
0.185625
0
0
12,090
0.512962
9a75886d1c5240a727719c8116254cb13ec6d703
1,316
py
Python
session7/OLED_Clock.py
rezafari/raspberry
e6720780f3c65ee1809040fc538f793fe44f0111
[ "MIT" ]
null
null
null
session7/OLED_Clock.py
rezafari/raspberry
e6720780f3c65ee1809040fc538f793fe44f0111
[ "MIT" ]
null
null
null
session7/OLED_Clock.py
rezafari/raspberry
e6720780f3c65ee1809040fc538f793fe44f0111
[ "MIT" ]
null
null
null
###################################################################### # OLED_Clock.py # # This program display date and time on OLED module ###################################################################### import Adafruit_SSD1306 from datetime import datetime import time from PIL import Image from PIL impo...
29.244444
70
0.634498
0
0
0
0
0
0
0
0
401
0.304711
9a75a5f4ae8ec0f7ef5613e16f951ea62c4bd8de
9,601
py
Python
odim/router.py
belda/odim
ea49284c4bfc76ac6cb436577c128b20c2c4004c
[ "MIT" ]
5
2021-01-29T11:00:10.000Z
2021-05-18T23:23:32.000Z
odim/router.py
belda/odim
ea49284c4bfc76ac6cb436577c128b20c2c4004c
[ "MIT" ]
1
2021-11-16T10:22:43.000Z
2021-11-16T10:22:43.000Z
odim/router.py
belda/odim
ea49284c4bfc76ac6cb436577c128b20c2c4004c
[ "MIT" ]
1
2021-02-18T14:45:43.000Z
2021-02-18T14:45:43.000Z
''' Contains the extended FastAPI router, for simplified CRUD from a model ''' from typing import Any, List, Optional, Sequence, Set, Type, Union import fastapi from fastapi import Depends, params from pydantic import BaseModel, create_model from odim import Odim, OkResponse, SearchResponse from odim.dependencies imp...
43.247748
187
0.584939
9,071
0.944797
0
0
0
0
1,273
0.13259
3,517
0.366316
9a760367155f89800e9ffffd081d1132a56544e5
194
py
Python
scripts/item/consume_2432803.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
scripts/item/consume_2432803.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
scripts/item/consume_2432803.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
# Princess No Damage Skin (30-Days) success = sm.addDamageSkin(2432803) if success: sm.chat("The Princess No Damage Skin (30-Days) has been added to your account's damage skin collection.")
38.8
109
0.747423
0
0
0
0
0
0
0
0
131
0.675258
9a768a1c9833791d7a707ef08123594b6480d371
1,184
py
Python
tests/test_product.py
technicapital/stake-python
8d0a985923318ca7b92f23e0c9a8319a75f37ff2
[ "Apache-2.0" ]
null
null
null
tests/test_product.py
technicapital/stake-python
8d0a985923318ca7b92f23e0c9a8319a75f37ff2
[ "Apache-2.0" ]
null
null
null
tests/test_product.py
technicapital/stake-python
8d0a985923318ca7b92f23e0c9a8319a75f37ff2
[ "Apache-2.0" ]
null
null
null
import asyncio import aiohttp import pytest from .client import HttpClient from .constant import Url from .product import Product @pytest.mark.asyncio async def test_show_portfolio(tracing_client): return await tracing_client.equities.list() @pytest.mark.asyncio async def test_find_products_by_name(tracing_cl...
26.909091
76
0.697635
0
0
0
0
1,043
0.880912
980
0.827703
42
0.035473
9a76e7fea3dd34891002703a3d4d4adaf6c009dc
1,346
py
Python
data_utils.py
tar-bin/DeepAA
acdae33a410eec87eb22419fce0adb513fa97219
[ "MIT" ]
1
2021-07-27T09:31:20.000Z
2021-07-27T09:31:20.000Z
data_utils.py
tar-bin/DeepAA
acdae33a410eec87eb22419fce0adb513fa97219
[ "MIT" ]
null
null
null
data_utils.py
tar-bin/DeepAA
acdae33a410eec87eb22419fce0adb513fa97219
[ "MIT" ]
null
null
null
import numpy as np from PIL import Image, ImageOps class BaseImage(object): """ 変換元画像 """ def __init__(self, path): """ 元画像を読み込む :param path: :param array: np.ndarray :param line_height: int :return: """ image = Image.open(path) a...
26.392157
83
0.581724
1,391
0.963296
0
0
0
0
0
0
401
0.277701
9a77a425a1b61dc019f50e24ad07e8460b1a7df9
2,839
py
Python
ledfx/color.py
broccoliboy/LedFx
1c90d5c3ddaf993a072eab92d3e373dd3b0fb45c
[ "MIT" ]
524
2020-12-18T19:34:55.000Z
2022-03-31T14:52:25.000Z
ledfx/color.py
broccoliboy/LedFx
1c90d5c3ddaf993a072eab92d3e373dd3b0fb45c
[ "MIT" ]
119
2020-12-18T21:28:12.000Z
2022-03-31T14:44:02.000Z
ledfx/color.py
broccoliboy/LedFx
1c90d5c3ddaf993a072eab92d3e373dd3b0fb45c
[ "MIT" ]
85
2020-12-18T18:23:16.000Z
2022-03-29T16:37:52.000Z
from collections import namedtuple RGB = namedtuple("RGB", "red, green, blue") COLORS = { "red": RGB(255, 0, 0), "orange-deep": RGB(255, 40, 0), "orange": RGB(255, 120, 0), "yellow": RGB(255, 200, 0), "yellow-acid": RGB(160, 255, 0), "green": RGB(0, 255, 0), "green-forest": RGB(34, 139, 34...
27.833333
79
0.446988
0
0
0
0
0
0
0
0
1,108
0.390278
9a7853c5ab201c882d582391f394325cd2ad7796
1,247
py
Python
src/test/nspawn_test/support/header_test.py
Andrei-Pozolotin/nspawn
9dd3926f1d1a3a0648f6ec14199cbf4069af1c98
[ "Apache-2.0" ]
15
2019-10-10T17:35:48.000Z
2022-01-29T10:41:01.000Z
src/test/nspawn_test/support/header_test.py
Andrei-Pozolotin/nspawn
9dd3926f1d1a3a0648f6ec14199cbf4069af1c98
[ "Apache-2.0" ]
null
null
null
src/test/nspawn_test/support/header_test.py
Andrei-Pozolotin/nspawn
9dd3926f1d1a3a0648f6ec14199cbf4069af1c98
[ "Apache-2.0" ]
2
2019-10-10T17:36:43.000Z
2020-06-20T15:28:33.000Z
from nspawn.support.header import * def test_header(): print() head_dict = { 'etag':'some-hash', 'last-modified':'some-time', 'content-length':'some-size', 'nspawn-digest':'some-text', } assert head_dict[Header.etag] == 'some-hash' assert head_dict[Header.last_modi...
25.44898
58
0.57498
0
0
0
0
0
0
0
0
433
0.347233
9a786a26a6979489803db0c2519bf5cf50427d08
2,042
py
Python
game1.py
akulakov/learnprogramming
ed7d557dabbef697773b4b369c8ed9cd3cdd55a6
[ "Apache-2.0" ]
null
null
null
game1.py
akulakov/learnprogramming
ed7d557dabbef697773b4b369c8ed9cd3cdd55a6
[ "Apache-2.0" ]
null
null
null
game1.py
akulakov/learnprogramming
ed7d557dabbef697773b4b369c8ed9cd3cdd55a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from helpers import sjoin, cjoin from random import shuffle card_types = [ ("tax",1,1), # tax everyone 2 coins => bank ("soldier",2,1), ("sergeant",3,1), ("captain",4,2), ("emperor",1,5), ("prince",1,1), #...
24.023529
65
0.519589
1,315
0.643976
0
0
0
0
0
0
163
0.079824
9a78db38d0f259372303620cba450346c37cd245
683
py
Python
src/plotting/plot_permeability.py
pgniewko/Deep-Rock
b714b98a2c391b4a43c62412769e5732cbd0d07a
[ "BSD-3-Clause" ]
1
2019-11-18T04:51:02.000Z
2019-11-18T04:51:02.000Z
src/plotting/plot_permeability.py
pgniewko/Deep-Rock
b714b98a2c391b4a43c62412769e5732cbd0d07a
[ "BSD-3-Clause" ]
null
null
null
src/plotting/plot_permeability.py
pgniewko/Deep-Rock
b714b98a2c391b4a43c62412769e5732cbd0d07a
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python # # Usage: # python # import sys import numpy as np import matplotlib.pyplot as plt import seaborn as sns sns.set(style="darkgrid") data = np.loadtxt(sys.argv[1]) kappa_LB, kappa_CNN = data.T kappa_LB = 10.0 ** kappa_LB kappa_CNN = 10.0 ** kappa_CNN fig, ax = plt.subplots(1, 1, sharey=True, ...
21.34375
57
0.707174
0
0
0
0
0
0
0
0
136
0.199122
9a79ab000b884a1fa7eeff49e8a3570bf0211367
1,664
py
Python
functions/python/todo-app.py
swiftycloud/swifty.todoapp
1a36c6e6f1af4584a8c0151e15e9ffcf2453f8c1
[ "MIT" ]
5
2018-11-08T17:07:43.000Z
2019-04-23T15:18:31.000Z
functions/python/todo-app.py
swiftycloud/swifty.todoapp
1a36c6e6f1af4584a8c0151e15e9ffcf2453f8c1
[ "MIT" ]
null
null
null
functions/python/todo-app.py
swiftycloud/swifty.todoapp
1a36c6e6f1af4584a8c0151e15e9ffcf2453f8c1
[ "MIT" ]
3
2018-11-08T17:07:47.000Z
2020-11-22T00:20:38.000Z
import bson import json import swifty # # GET /tasks -- list tasks # POST /tasks $BODY -- add new task # GET /tasks/ID -- get info about task # PUT /tasks/ID -- update task (except status) # DELETE /tasks/ID -- remove task # POST /tasks/ID/done -- mark task as done # def toTask(o...
25.6
82
0.477163
0
0
0
0
0
0
0
0
479
0.287861
9a79fb2f2787441274d55999dc0843161af999b5
401
py
Python
dmoj/Uncategorized/tss17a.py
UserBlackBox/competitive-programming
2aa8ffa6df6a386f8e47d084b5fa32d6d741bbbc
[ "Unlicense" ]
null
null
null
dmoj/Uncategorized/tss17a.py
UserBlackBox/competitive-programming
2aa8ffa6df6a386f8e47d084b5fa32d6d741bbbc
[ "Unlicense" ]
null
null
null
dmoj/Uncategorized/tss17a.py
UserBlackBox/competitive-programming
2aa8ffa6df6a386f8e47d084b5fa32d6d741bbbc
[ "Unlicense" ]
null
null
null
# https://dmoj.ca/problem/tss17a # https://dmoj.ca/submission/2226280 import sys n = int(sys.stdin.readline()[:-1]) for i in range(n): instruction = sys.stdin.readline()[:-1].split() printed = False for j in range(3): if instruction.count(instruction[j]) >= 2: print(instruction[j]) ...
26.733333
51
0.578554
0
0
0
0
0
0
0
0
73
0.182045
9a7ad9eea9244d2609a2517f92f7fc289fb240da
1,159
py
Python
todo/views/users_detail.py
josalhor/WebModels
6b9cde3141c53562f40b129e6e1c87448ce9853a
[ "BSD-3-Clause" ]
null
null
null
todo/views/users_detail.py
josalhor/WebModels
6b9cde3141c53562f40b129e6e1c87448ce9853a
[ "BSD-3-Clause" ]
41
2021-03-23T12:58:25.000Z
2021-05-25T11:38:42.000Z
todo/views/users_detail.py
josalhor/WebModels
6b9cde3141c53562f40b129e6e1c87448ce9853a
[ "BSD-3-Clause" ]
null
null
null
from todo.templatetags.todo_tags import is_management from django.contrib.auth.decorators import login_required, user_passes_test from django.http import HttpResponse from django.shortcuts import render from todo.models import Designer, Management, Writer, Editor @login_required @user_passes_test(is_management) def u...
30.5
75
0.667817
0
0
0
0
892
0.769629
0
0
243
0.209664
9a7cfcbc63f3c97c82737bfbbfa13e26624618e7
214
py
Python
src/librhc/cost/__init__.py
arnavthareja/mushr_pixelart_mpc
db6ee6cae9b4cb1d3b213fed06690074372c824b
[ "BSD-3-Clause" ]
5
2019-08-30T08:20:27.000Z
2021-08-01T17:16:16.000Z
src/librhc/cost/__init__.py
arnavthareja/mushr_pixelart_mpc
db6ee6cae9b4cb1d3b213fed06690074372c824b
[ "BSD-3-Clause" ]
1
2020-09-09T13:38:08.000Z
2020-12-15T12:20:26.000Z
src/librhc/cost/__init__.py
arnavthareja/mushr_pixelart_mpc
db6ee6cae9b4cb1d3b213fed06690074372c824b
[ "BSD-3-Clause" ]
4
2019-09-14T21:26:09.000Z
2021-08-27T23:01:41.000Z
# Copyright (c) 2019, The Personal Robotics Lab, The MuSHR Team, The Contributors of MuSHR # License: BSD 3-Clause. See LICENSE.md file in root directory. from .waypoints import Waypoints __all__ = ["Waypoints"]
30.571429
90
0.757009
0
0
0
0
0
0
0
0
164
0.766355
9a7d3e4f21c385675dec5f7b1784429e468d978e
1,401
py
Python
759/Employee Free Time.py
cccccccccccccc/Myleetcode
fb3fa6df7c77feb2d252feea7f3507569e057c70
[ "Apache-2.0" ]
null
null
null
759/Employee Free Time.py
cccccccccccccc/Myleetcode
fb3fa6df7c77feb2d252feea7f3507569e057c70
[ "Apache-2.0" ]
null
null
null
759/Employee Free Time.py
cccccccccccccc/Myleetcode
fb3fa6df7c77feb2d252feea7f3507569e057c70
[ "Apache-2.0" ]
null
null
null
from typing import List import heapq # Definition for an Interval. class Interval: def __init__(self, start: int = None, end: int = None): self.start = start self.end = end class Solution: def employeeFreeTime(self, schedule: '[[Interval]]') -> '[Interval]': allinterval = [] he...
31.840909
104
0.532477
1,169
0.834404
0
0
0
0
0
0
55
0.039258
9a7d9c6b811efb6d15e0d51600e0fd5bb7bf8479
41,312
py
Python
Comms1_internal/Final.py
CoderStellaJ/CG4002
474bda123856d8a88bef5ff787259fcd9ba9f09a
[ "MIT" ]
null
null
null
Comms1_internal/Final.py
CoderStellaJ/CG4002
474bda123856d8a88bef5ff787259fcd9ba9f09a
[ "MIT" ]
10
2020-01-28T14:17:26.000Z
2020-02-05T04:53:06.000Z
Comms1_internal/Final.py
CoderStellaJ/CG4002
474bda123856d8a88bef5ff787259fcd9ba9f09a
[ "MIT" ]
5
2021-01-21T08:00:56.000Z
2021-09-28T05:06:36.000Z
from bluepy import btle import concurrent from concurrent import futures import threading import multiprocessing import time from time_sync import * import eval_client import dashBoardClient from joblib import dump, load import numpy # to count labels and store in dict import operator # to get most predicted label im...
47.052392
188
0.495788
6,449
0.156105
0
0
0
0
0
0
7,671
0.185685
9a7dca2e7b004aae5d55d6951056ac9880930921
3,100
py
Python
tests/test_relations.py
OneRaynyDay/treeno
ce11b8447f471c0b5ea596a211b3855625ec43eb
[ "MIT" ]
1
2021-12-28T19:00:01.000Z
2021-12-28T19:00:01.000Z
tests/test_relations.py
OneRaynyDay/treeno
ce11b8447f471c0b5ea596a211b3855625ec43eb
[ "MIT" ]
null
null
null
tests/test_relations.py
OneRaynyDay/treeno
ce11b8447f471c0b5ea596a211b3855625ec43eb
[ "MIT" ]
null
null
null
import unittest from treeno.base import PrintMode, PrintOptions from treeno.expression import Array, Field, wrap_literal from treeno.orderby import OrderTerm, OrderType from treeno.relation import ( AliasedRelation, Lateral, SampleType, Table, TableQuery, TableSample, Unnest, ValuesQuer...
31
84
0.560968
2,723
0.878387
0
0
0
0
0
0
510
0.164516
9a7dd31031b6e51089b5322681d7a6bf9e613fcf
4,257
py
Python
tests/preprocess/test_har.py
henry1jin/alohamora
e51e2488ecdf3e9692d5bb6b25ebc88622087c20
[ "MIT" ]
5
2020-12-16T03:13:59.000Z
2022-03-06T07:16:39.000Z
tests/preprocess/test_har.py
henry1jin/alohamora
e51e2488ecdf3e9692d5bb6b25ebc88622087c20
[ "MIT" ]
9
2020-09-25T23:25:59.000Z
2022-03-11T23:45:14.000Z
tests/preprocess/test_har.py
henry1jin/alohamora
e51e2488ecdf3e9692d5bb6b25ebc88622087c20
[ "MIT" ]
3
2019-10-16T21:22:07.000Z
2020-07-21T13:38:22.000Z
import random from blaze.chrome.har import har_from_json, Har, HarLog, HarEntry, Request, Response from blaze.config.environment import ResourceType from blaze.preprocess.har import get_har_entry_type, har_entries_to_resources from blaze.util.seq import ordered_uniq from tests.mocks.config import get_config from test...
45.287234
109
0.624383
3,899
0.915903
0
0
0
0
0
0
192
0.045102
9a7f8708794c267295590be4b52b94df73d85efd
1,245
py
Python
Loader.py
JaredDobry/Budgeting-Fool
0f4ab5dea3b0750b7bf018de1d456a5587dbeb17
[ "MIT" ]
null
null
null
Loader.py
JaredDobry/Budgeting-Fool
0f4ab5dea3b0750b7bf018de1d456a5587dbeb17
[ "MIT" ]
null
null
null
Loader.py
JaredDobry/Budgeting-Fool
0f4ab5dea3b0750b7bf018de1d456a5587dbeb17
[ "MIT" ]
null
null
null
from Budget import Budget, Item FILENAME = 'Budget.txt' def scrape_off_char(s, c): out = '' for ch in s: if ch != c: out += ch return out def load_budget(): try: fr = open(FILENAME, 'r') lines = fr.readlines() fr.close() b = Budget()...
28.295455
115
0.480321
0
0
0
0
0
0
0
0
52
0.041767
9a801f3178565c7f1b1008bb487a050d3079d8d5
448
py
Python
rush_hour/test_solution.py
ssebastianj/taip-2014
2a0e62c4bf755ff752136350c246456d65a8c3eb
[ "MIT" ]
null
null
null
rush_hour/test_solution.py
ssebastianj/taip-2014
2a0e62c4bf755ff752136350c246456d65a8c3eb
[ "MIT" ]
null
null
null
rush_hour/test_solution.py
ssebastianj/taip-2014
2a0e62c4bf755ff752136350c246456d65a8c3eb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import pytest from .solution import calc_minimum_travels class CalcMininumTravelsTestCase(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_calc_minimum_travels(self): assert calc_minimum_travels([4, 5, 2, 3, 1])...
23.578947
69
0.638393
346
0.772321
0
0
0
0
0
0
23
0.051339
9a822f57f1242bdc5f799bb28767d02eb1a10fd9
2,573
py
Python
wordle.py
ccattuto/wordle-device
65cbd95165cf6c8e7fae508358d58f7e013f5bc8
[ "CC0-1.0" ]
7
2022-02-01T17:20:29.000Z
2022-02-15T08:09:19.000Z
wordle.py
ccattuto/wordle-device
65cbd95165cf6c8e7fae508358d58f7e013f5bc8
[ "CC0-1.0" ]
1
2022-02-13T15:46:36.000Z
2022-02-13T15:46:36.000Z
wordle.py
ccattuto/wordle-device
65cbd95165cf6c8e7fae508358d58f7e013f5bc8
[ "CC0-1.0" ]
1
2022-02-03T17:33:13.000Z
2022-02-03T17:33:13.000Z
#!/usr/bin/env python import sys from serial.tools import list_ports import serial import tweepy # locate ESP32-C3 USB device port = None for device in list_ports.comports(): if device.vid == 0x303a and device.pid == 0x1001: break if not device: sys.exit(-1) ser = serial.Serial(device.device, baudrat...
24.504762
94
0.638943
102
0.039261
0
0
0
0
0
0
1,008
0.387991
9a8309c0c453e677a70c4041fea94265ebf3f4e3
4,664
py
Python
DeepAlignmentNetwork/menpofit/lk/result.py
chiawei-liu/DeepAlignmentNetwork
52621cd2f697abe372b88c9ea0ee08f0d93b43d8
[ "MIT" ]
220
2019-09-01T01:52:04.000Z
2022-03-28T12:52:07.000Z
DeepAlignmentNetwork/menpofit/lk/result.py
chiawei-liu/DeepAlignmentNetwork
52621cd2f697abe372b88c9ea0ee08f0d93b43d8
[ "MIT" ]
80
2015-01-05T16:17:39.000Z
2020-11-22T13:42:00.000Z
DeepAlignmentNetwork/menpofit/lk/result.py
chiawei-liu/DeepAlignmentNetwork
52621cd2f697abe372b88c9ea0ee08f0d93b43d8
[ "MIT" ]
64
2015-02-02T15:11:38.000Z
2022-02-28T06:19:31.000Z
from menpofit.result import (ParametricIterativeResult, MultiScaleParametricIterativeResult) class LucasKanadeAlgorithmResult(ParametricIterativeResult): r""" Class for storing the iterative result of a Lucas-Kanade Image Alignment optimization algorithm. Parameters -...
44
80
0.670455
4,536
0.972556
0
0
920
0.197256
0
0
3,173
0.680317
9a831450ccec04bdfc6f981e2f3e5d2ad9771f21
6,533
py
Python
source/model.py
BecauseWeCanStudios/LEGOVNO
97654da906e5d8ee999fea6dbc062914cc5710b2
[ "MIT" ]
null
null
null
source/model.py
BecauseWeCanStudios/LEGOVNO
97654da906e5d8ee999fea6dbc062914cc5710b2
[ "MIT" ]
null
null
null
source/model.py
BecauseWeCanStudios/LEGOVNO
97654da906e5d8ee999fea6dbc062914cc5710b2
[ "MIT" ]
null
null
null
import os import keras import skimage.io import keras_contrib.applications from metrics import * from mrcnn import utils from mrcnn import config from imgaug import augmenters as iaa from dataset import Dataset, PoseEstimationDataset import numpy as np import keras.backend as K import mrcnn.model as modellib class Con...
30.386047
123
0.743762
6,210
0.950559
0
0
393
0.060156
0
0
366
0.056023
9a83696d4e899b64faddbb5626cfd880f1149543
442
py
Python
donations/urls.py
nanorepublica/django-donations
349aaf17029f3f9b4723fead3fa28dd85959f14e
[ "BSD-3-Clause" ]
9
2015-10-13T11:41:20.000Z
2020-11-30T04:38:43.000Z
donations/urls.py
nanorepublica/django-donations
349aaf17029f3f9b4723fead3fa28dd85959f14e
[ "BSD-3-Clause" ]
63
2015-10-22T17:41:27.000Z
2021-11-20T12:18:26.000Z
donations/urls.py
nanorepublica/django-donations
349aaf17029f3f9b4723fead3fa28dd85959f14e
[ "BSD-3-Clause" ]
3
2017-08-29T02:44:12.000Z
2020-04-07T23:43:12.000Z
from django.conf.urls import include, url from donations.views import DonateAPI, VerifyAPI app_name = 'donations' api_urls = ([ url(r'^donate/$', DonateAPI.as_view(), name="donate"), url(r'^verify/(?P<pk>[0-9]+)$', VerifyAPI.as_view(), name="verify"), ], "donations") donations = ([ url(r'^api/', include...
23.263158
72
0.651584
0
0
0
0
0
0
0
0
115
0.260181
9a83981c040624137fa42558baa04d53d347c0fc
3,004
py
Python
orc8r/tools/fab/vagrant.py
idoshveki/magma
8022267bd8b8d94913fbb9a0836880361d785446
[ "BSD-3-Clause" ]
2
2020-11-05T18:58:26.000Z
2021-02-09T06:42:49.000Z
orc8r/tools/fab/vagrant.py
idoshveki/magma
8022267bd8b8d94913fbb9a0836880361d785446
[ "BSD-3-Clause" ]
10
2021-03-31T20:19:00.000Z
2022-02-19T07:09:57.000Z
orc8r/tools/fab/vagrant.py
119Vik/magma-1
107a7b374466a837fc0a49b283ba9d6ff1d702e3
[ "BSD-3-Clause" ]
3
2020-08-20T18:45:34.000Z
2020-08-20T20:18:42.000Z
""" Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. """ import os.path from fabric.api import local from fabric.api import env def __ensure_in_vagrant_dir(): """ ...
31.957447
81
0.617843
0
0
0
0
0
0
0
0
1,343
0.447071
9a83eb7c6cde3a0afbb0a6028180ce05131c4869
1,988
py
Python
cp_multiply/examples/make_box_packing_cp.py
gkonjevod/multiply_CP
2410d242a29a340db8184e127d05c5da9d26f1b4
[ "MIT" ]
null
null
null
cp_multiply/examples/make_box_packing_cp.py
gkonjevod/multiply_CP
2410d242a29a340db8184e127d05c5da9d26f1b4
[ "MIT" ]
null
null
null
cp_multiply/examples/make_box_packing_cp.py
gkonjevod/multiply_CP
2410d242a29a340db8184e127d05c5da9d26f1b4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Feb 19 23:38:25 2022 @author: goran """ from ..general_cp import GeneralCP from ..cp_utils import to_degrees, dihedral_angle, normal from math import sqrt, pi, tan, atan2 box_packing_cell_nodes = {'A': (2, 0), 'B': (4, 0), ...
30.121212
94
0.454728
0
0
0
0
0
0
0
0
278
0.139839
9a862a138eaba7a151db1b55e4b4a041ae8dbd8a
11,001
py
Python
kq/queue.py
grofers/kq
1fc96e2a189901b91fdcde7f829b021b6555e217
[ "MIT" ]
null
null
null
kq/queue.py
grofers/kq
1fc96e2a189901b91fdcde7f829b021b6555e217
[ "MIT" ]
2
2018-09-24T15:43:48.000Z
2020-06-23T11:15:17.000Z
kq/queue.py
grofers/kq
1fc96e2a189901b91fdcde7f829b021b6555e217
[ "MIT" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals import functools import logging import time import uuid import dill import kafka from kafka.errors import KafkaError from kq.job import Job class Queue(object): """KQ queue. A queue serializes incoming function calls and places them ...
32.937126
78
0.579947
10,782
0.980093
0
0
957
0.086992
0
0
7,387
0.671484
9a87b0a003cfac44c4b71f5b09ccd17d4a3eced1
8,683
py
Python
python/accel_adxl345/accel_adxl345.py
iorodeo/accel_adxl345
aadbca1c57840f66a61556ff02e72e8b8e4e93e0
[ "Apache-2.0" ]
null
null
null
python/accel_adxl345/accel_adxl345.py
iorodeo/accel_adxl345
aadbca1c57840f66a61556ff02e72e8b8e4e93e0
[ "Apache-2.0" ]
null
null
null
python/accel_adxl345/accel_adxl345.py
iorodeo/accel_adxl345
aadbca1c57840f66a61556ff02e72e8b8e4e93e0
[ "Apache-2.0" ]
null
null
null
""" accel_adxl345.py This modules defines the AccelADXL345 class for streaming data from the ADXL345 accelerometers. """ import time import serial import sys import numpy import struct BUF_EMPTY_NUM = 5 BUF_EMPTY_DT = 0.05 class AccelADXL345(serial.Serial): def __init__(self, **kwarg): # Command ids ...
27.741214
86
0.524012
8,451
0.973281
0
0
0
0
0
0
3,063
0.352758
9a8866fd681b05cff1de0c32ef8dae40aefe5351
831
py
Python
polling_stations/apps/data_collection/management/commands/import_tower_hamlets.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_collection/management/commands/import_tower_hamlets.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_collection/management/commands/import_tower_hamlets.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
null
null
null
from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "E09000030" addresses_name = "local.2018-05-03/Version 2/Democracy_Club__03May2018.tsv" stations_name = "local.2018-05-03/Version 2/Democracy_Club__03May2018.t...
34.625
82
0.683514
745
0.89651
0
0
0
0
0
0
209
0.251504
9a89981de0ecebc2323be5e00e13a157cd8dc62f
8,490
py
Python
pynaja/common/struct.py
xiaoxiamiya/naja
222c3e1135bbd2b9a02181273a8a70201fbdf0f5
[ "Apache-2.0" ]
1
2021-09-07T07:13:53.000Z
2021-09-07T07:13:53.000Z
pynaja/common/struct.py
xiaoxiamiya/naja
222c3e1135bbd2b9a02181273a8a70201fbdf0f5
[ "Apache-2.0" ]
null
null
null
pynaja/common/struct.py
xiaoxiamiya/naja
222c3e1135bbd2b9a02181273a8a70201fbdf0f5
[ "Apache-2.0" ]
null
null
null
import struct from collections import OrderedDict from configparser import RawConfigParser from pynaja.common.async_base import Utils from pynaja.common.error import ConstError class Result(dict): """返回结果类 """ def __init__(self, code=0, data=None, msg=None, details=None): super().__init__(code=...
21.493671
74
0.607538
8,335
0.977369
0
0
273
0.032012
0
0
942
0.11046
9a8b2c9a4fe128befea072dd96f7b456a616ecd8
15,178
py
Python
YOLO/Stronger-yolo-pytorch/port2tf/yolov3.py
ForrestPi/ObjectDetection
54e0821e73f67be5360c36f01229a123c34ab3b3
[ "MIT" ]
12
2020-03-25T01:24:22.000Z
2021-09-18T06:40:16.000Z
YOLO/Stronger-yolo-pytorch/port2tf/yolov3.py
ForrestPi/ObjectDetection
54e0821e73f67be5360c36f01229a123c34ab3b3
[ "MIT" ]
1
2020-04-22T07:52:36.000Z
2020-04-22T07:52:36.000Z
YOLO/Stronger-yolo-pytorch/port2tf/yolov3.py
ForrestPi/ObjectDetection
54e0821e73f67be5360c36f01229a123c34ab3b3
[ "MIT" ]
4
2020-03-25T01:24:26.000Z
2020-09-20T11:29:09.000Z
# coding:utf-8 import numpy as np import tensorflow as tf from layers import * from MobilenetV2 import MobilenetV2,MobilenetV2_dynamic class YOLOV3(object): def __init__(self, training,numcls=20): self.__training = training self.__num_classes = numcls self.__strides=[8,16,32] def build...
80.306878
158
0.566346
15,112
0.990951
0
0
0
0
0
0
3,899
0.255672
9a8ce9049f7230937ae69e4978f32515e2f46236
654
py
Python
saltlint/rules/CmdWaitRecommendRule.py
Poulpatine/salt-lint
304917d95d2730e7df8bd7b5dd29a3bd77c80250
[ "MIT" ]
null
null
null
saltlint/rules/CmdWaitRecommendRule.py
Poulpatine/salt-lint
304917d95d2730e7df8bd7b5dd29a3bd77c80250
[ "MIT" ]
null
null
null
saltlint/rules/CmdWaitRecommendRule.py
Poulpatine/salt-lint
304917d95d2730e7df8bd7b5dd29a3bd77c80250
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020 Warpnet B.V. import re from saltlint.linter.rule import DeprecationRule from saltlint.utils import LANGUAGE_SLS class CmdWaitRecommendRule(DeprecationRule): id = '213' shortdesc = 'SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait' ...
28.434783
100
0.697248
493
0.753823
0
0
0
0
0
0
277
0.423547
9a8d3871c093dea84d65b938bf3c599a010db785
7,818
py
Python
sdks/python/apache_beam/ml/inference/pytorch_test.py
hengfengli/beam
83a8855e5997e0311e6274c03bcb38f94efbf8ef
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
sdks/python/apache_beam/ml/inference/pytorch_test.py
hengfengli/beam
83a8855e5997e0311e6274c03bcb38f94efbf8ef
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
sdks/python/apache_beam/ml/inference/pytorch_test.py
hengfengli/beam
83a8855e5997e0311e6274c03bcb38f94efbf8ef
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
37.228571
80
0.661678
5,973
0.764006
0
0
5,762
0.737017
0
0
1,450
0.185469
9a8deeda4be2011a1d0dba2c5373aa43b91fc628
6,636
py
Python
example/test/L20_snake.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
2
2021-12-18T06:34:26.000Z
2022-01-05T05:08:47.000Z
example/test/L20_snake.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
null
null
null
example/test/L20_snake.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
null
null
null
import pygame import sys import time import random from pygame.locals import * # Pygame Init pygame.init() # Play Surface size = width, height = 800, 800 screen = pygame.display.set_mode(size) pygame.display.set_caption("Snake Change") # Colors red = (255, 0, 0) green = (0, 255, 0) black = (0, 0, 0) white = (255, 25...
25.231939
109
0.518987
0
0
0
0
0
0
0
0
664
0.099461
9a8e3182ccf25a9266ba55ff765c256d44cf7bcc
4,203
py
Python
readgadget/readrockstar.py
danielmarostica/pygadgetreader
977949da7fcb6585f3e0270019d369c6967b317c
[ "BSD-3-Clause" ]
6
2020-09-02T21:11:59.000Z
2021-09-24T16:12:44.000Z
readgadget/readrockstar.py
danielmarostica/pygadgetreader
977949da7fcb6585f3e0270019d369c6967b317c
[ "BSD-3-Clause" ]
1
2021-09-24T14:40:03.000Z
2021-09-25T20:07:13.000Z
readgadget/readrockstar.py
danielmarostica/pygadgetreader
977949da7fcb6585f3e0270019d369c6967b317c
[ "BSD-3-Clause" ]
1
2020-11-18T19:15:39.000Z
2020-11-18T19:15:39.000Z
from .modules.common import * import numpy as np import os from .modules.rs_structs import getRSformat class RockstarFile(object): def __init__(self,binfile,data,galaxies,debug): self.galaxies = galaxies self.binfile = binfile self.debug = debug self.header() self....
30.23741
93
0.578158
1,789
0.425648
0
0
0
0
0
0
1,025
0.243873
9a8e4ada3be3bb52b1edcd6ad889f5b0b8142092
7,019
py
Python
src/backend/preprocess/preprocess_helper.py
scmc/vch-mri
ffd2a7b60d770a76b545ce271f85e12f53cfb3ad
[ "MIT" ]
1
2021-12-01T23:40:20.000Z
2021-12-01T23:40:20.000Z
src/backend/preprocess/preprocess_helper.py
scmc/vch-mri
ffd2a7b60d770a76b545ce271f85e12f53cfb3ad
[ "MIT" ]
5
2021-03-11T03:07:38.000Z
2021-03-11T03:11:43.000Z
src/backend/preprocess/preprocess_helper.py
scmc/vch-mri
ffd2a7b60d770a76b545ce271f85e12f53cfb3ad
[ "MIT" ]
18
2020-12-30T22:04:44.000Z
2021-12-01T23:40:23.000Z
import boto3 from datetime import datetime, date import re import string import pandas as pd from spellchecker import SpellChecker import uuid import psycopg2 from psycopg2 import sql import sys sys.path.append('.') from rule_processing import postgresql def queryTable(conn, table): cmd = """ SELECT * FROM ...
34.747525
105
0.540248
0
0
0
0
0
0
0
0
1,263
0.17994
9a8e57b168ea55c696b5fec3c4c437440c05734d
1,182
py
Python
script_example.py
op8867555/BGmi
22a7b0292f0fe435e87208154826d8f5baeb7b67
[ "MIT" ]
null
null
null
script_example.py
op8867555/BGmi
22a7b0292f0fe435e87208154826d8f5baeb7b67
[ "MIT" ]
null
null
null
script_example.py
op8867555/BGmi
22a7b0292f0fe435e87208154826d8f5baeb7b67
[ "MIT" ]
null
null
null
import datetime from bgmi.script import ScriptBase from bgmi.utils import parse_episode class Script(ScriptBase): class Model(ScriptBase.Model): bangumi_name = "TEST_BANGUMI" cover = "" update_time = "Mon" due_date = datetime.datetime(2017, 9, 30) def get_download_url(self): ...
26.863636
86
0.5
1,090
0.865079
0
0
0
0
0
0
489
0.388095
9a8e626f8a8e604d6b65b5bcce02a4426d19dada
677
py
Python
3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/10. Exercise - Functions Advanced/11_fill_the_box.py
kzborisov/SoftUni
ccb2b8850adc79bfb2652a45124c3ff11183412e
[ "MIT" ]
1
2021-02-07T07:51:12.000Z
2021-02-07T07:51:12.000Z
3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/10. Exercise - Functions Advanced/11_fill_the_box.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/10. Exercise - Functions Advanced/11_fill_the_box.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
from collections import deque def fill_the_box(*args): box_size = args[0] * args[1] * args[2] args = deque(args[3:]) while args: curr_arg = args.popleft() if curr_arg == "Finish": break box_size -= curr_arg if box_size < 0: args.remove("Finish") ...
29.434783
92
0.583456
0
0
0
0
0
0
0
0
192
0.283604
9a8fedf028eb554590720a2eafe70d6a08a4c617
19,617
py
Python
src/the_tale/the_tale/common/utils/views.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/common/utils/views.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/common/utils/views.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
import smart_imports smart_imports.all() # for external code ViewError = utils_exceptions.ViewError class Context(object): def __setattr__(self, name, value): if hasattr(self, name): raise ViewError(code='internal.try_to_reassign_context_value', message=conf.set...
30.18
144
0.62247
19,085
0.967015
0
0
587
0.029743
0
0
2,010
0.101844
9a90d892378e62b46598d590087d4afcc5ce7a6c
269
py
Python
NeoAnalysis_Py2.7/NeoAnalysis/__init__.py
Research-lab-KUMS/NeoAnalysis
32b508dfade3069b1ec5cc7664574b8d3f2d5f57
[ "MIT" ]
23
2017-09-04T13:20:38.000Z
2022-03-08T08:15:17.000Z
NeoAnalysis_Py2.7/NeoAnalysis/__init__.py
Research-lab-KUMS/NeoAnalysis
32b508dfade3069b1ec5cc7664574b8d3f2d5f57
[ "MIT" ]
4
2018-01-05T13:44:29.000Z
2021-09-30T17:08:15.000Z
NeoAnalysis_Py2.7/NeoAnalysis/__init__.py
neoanalysis/NeoAnalysis
c5f25b71e16997f3a05f70b1eead11f99a3b7e2b
[ "MIT" ]
5
2017-11-26T19:40:46.000Z
2021-03-11T17:25:23.000Z
__version__ = '0.10.0' from NeoAnalysis.spikedetection import SpikeDetection from NeoAnalysis.spikesorting import SpikeSorting from NeoAnalysis.analogfilter import AnalogFilter from NeoAnalysis.graphics import Graphics from NeoAnalysis.popuanalysis import PopuAnalysis
38.428571
53
0.877323
0
0
0
0
0
0
0
0
8
0.02974
9a9199cd090e7135e6e6634b2297f724636eb3bf
5,021
py
Python
people.py
sabek/Guess-who
91c3f527d258ec81370e3f49fa9b8d23407af3ce
[ "MIT" ]
null
null
null
people.py
sabek/Guess-who
91c3f527d258ec81370e3f49fa9b8d23407af3ce
[ "MIT" ]
null
null
null
people.py
sabek/Guess-who
91c3f527d258ec81370e3f49fa9b8d23407af3ce
[ "MIT" ]
null
null
null
class HiddenPeople(): """Class for holding information on people""" def __init__(self): self.people = { 'Paul': {'bald': False, 'beard': False, 'eyes': 'brown', 'gender': 'man', 'hair': 'white', 'hat': False, 'glasses': True, 'moustache': False}, ...
74.940299
120
0.466441
5,020
0.999801
0
0
0
0
0
0
2,113
0.420833
9a91a0bb1c2222107ec4d2fbb68724bb0b797301
247
py
Python
paperplane/backends/click/choice.py
abhilash1in/paperplane
1dfda182dc8a70fe08fa2284ea63b434246c394b
[ "MIT" ]
null
null
null
paperplane/backends/click/choice.py
abhilash1in/paperplane
1dfda182dc8a70fe08fa2284ea63b434246c394b
[ "MIT" ]
null
null
null
paperplane/backends/click/choice.py
abhilash1in/paperplane
1dfda182dc8a70fe08fa2284ea63b434246c394b
[ "MIT" ]
null
null
null
import click from typing import Any, Optional from paperplane.backends.click import _prompt def run(prompt: str, choices: list, default: Optional[Any] = None): return _prompt(text=prompt, default=default, type=click.Choice(choices=choices))
30.875
84
0.777328
0
0
0
0
0
0
0
0
0
0
9a95474d7bed8dc0c9bdace087bfb79423d63386
1,012
py
Python
lib/python/treadmill/api/nodeinfo.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
2
2017-10-31T18:48:20.000Z
2018-03-04T20:35:20.000Z
lib/python/treadmill/api/nodeinfo.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
lib/python/treadmill/api/nodeinfo.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
"""Implementation of allocation API. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging from treadmill import discovery from treadmill import context _LOGGER = logging.getLogger(__name__) class AP...
24.095238
66
0.609684
699
0.690711
0
0
0
0
0
0
186
0.183794
9a95d81d2c4081cc80031302b6a6bfe2482c9c94
167
py
Python
new/views.py
Sravan996/django
3a982382d5cfe9bfb498534f1effcf58a3771539
[ "MIT" ]
null
null
null
new/views.py
Sravan996/django
3a982382d5cfe9bfb498534f1effcf58a3771539
[ "MIT" ]
null
null
null
new/views.py
Sravan996/django
3a982382d5cfe9bfb498534f1effcf58a3771539
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.shortcuts import HttpResponse # Create your views here. def index(request): return HttpResponse('Hello World</en>')
20.875
41
0.790419
0
0
0
0
0
0
0
0
43
0.257485
9a969dcb4bdc1a8eee56b110c60c1611472a3520
1,834
py
Python
bob-ross/cluster-paintings.py
h4ckfu/data
bdc02fd5051dfb31e42f8e078832ceead92f9958
[ "CC-BY-4.0" ]
16,124
2015-01-01T06:18:12.000Z
2022-03-31T00:46:52.000Z
bob-ross/cluster-paintings.py
h4ckfu/data
bdc02fd5051dfb31e42f8e078832ceead92f9958
[ "CC-BY-4.0" ]
179
2015-01-07T10:19:57.000Z
2022-02-21T21:19:14.000Z
bob-ross/cluster-paintings.py
h4ckfu/data
bdc02fd5051dfb31e42f8e078832ceead92f9958
[ "CC-BY-4.0" ]
12,163
2015-01-03T14:23:36.000Z
2022-03-31T10:10:23.000Z
""" Clusters Bob Ross paintings by features. By Walter Hickey <[email protected]> See http://fivethirtyeight.com/features/a-statistical-analysis-of-the-work-of-bob-ross/ """ import numpy as np from scipy.cluster.vq import vq, kmeans, whiten import math import csv def main(): # load data into ve...
31.084746
93
0.640676
0
0
0
0
0
0
0
0
745
0.406216
9a96b491ff08bc06ac888649b8beb70e3e05070b
880
py
Python
corvette/__init__.py
philipkiely/corvette
71632f9ed9d628c207c79f6f1b2ee98d911657b7
[ "MIT" ]
null
null
null
corvette/__init__.py
philipkiely/corvette
71632f9ed9d628c207c79f6f1b2ee98d911657b7
[ "MIT" ]
null
null
null
corvette/__init__.py
philipkiely/corvette
71632f9ed9d628c207c79f6f1b2ee98d911657b7
[ "MIT" ]
null
null
null
import os import sys import json from corvette.autoindex import autoindex def main(): if len(sys.argv) == 2: conf_path = sys.argv[1] else: print("Usage: python -m corvette path/to/corvetteconf.json") return dirname = os.path.dirname(__file__) # First load default conf de...
30.344828
71
0.643182
0
0
0
0
0
0
0
0
206
0.234091
9a970d49581e1f0dbf4db3373345dd1070a85ab1
1,965
py
Python
main.py
theoboldt/pitemp
366f2d1459144fa7f5e3e5526ee0a4e334f52d37
[ "Apache-2.0" ]
null
null
null
main.py
theoboldt/pitemp
366f2d1459144fa7f5e3e5526ee0a4e334f52d37
[ "Apache-2.0" ]
null
null
null
main.py
theoboldt/pitemp
366f2d1459144fa7f5e3e5526ee0a4e334f52d37
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sensor import lcd import csv import time import os import datetime import sys import re import circular_buffer lcd.init() last_time = datetime.datetime.now() last_minute = last_time.minute probe_minute_01 = circular_buffer.CircularBuffer(size=30) probe_minute_15 = circular_buffer.CircularBu...
30.230769
110
0.679898
0
0
0
0
0
0
0
0
152
0.077354
9a9716f606a1775600dbcfac690fb2f212514d33
9,988
py
Python
package/github-endpoints.py
wahyu9kdl/wahyu9kdl.github.io
c7c8ee1c3e7a2eb072467cb43e979ef4fc76d6fa
[ "MIT" ]
2
2021-12-05T22:40:52.000Z
2022-01-17T08:48:13.000Z
package/github-endpoints.py
wahyu9kdl/wahyu9kdl.github.io
c7c8ee1c3e7a2eb072467cb43e979ef4fc76d6fa
[ "MIT" ]
1
2022-01-12T13:58:28.000Z
2022-01-12T13:58:28.000Z
package/github-endpoints.py
wahyu9kdl/wahyu9kdl.github.io
c7c8ee1c3e7a2eb072467cb43e979ef4fc76d6fa
[ "MIT" ]
1
2022-01-12T19:20:26.000Z
2022-01-12T19:20:26.000Z
#!/usr/bin/python3 # I don't believe in license. # You can do whatever you want with this program. import os import sys import re import time import requests import random import argparse from urllib.parse import urlparse from functools import partial from colored import fg, bg, attr from multiprocessing.dummy import...
31.507886
135
0.505406
0
0
0
0
0
0
0
0
3,143
0.314678
9a983eb032aad5191f1e045e13d058aec5f59848
7,952
py
Python
information111/info/user/views.py
SNxiaobei/text
637018ff89d992c2ed23f5c90fa2010023bc2ff3
[ "MIT" ]
null
null
null
information111/info/user/views.py
SNxiaobei/text
637018ff89d992c2ed23f5c90fa2010023bc2ff3
[ "MIT" ]
null
null
null
information111/info/user/views.py
SNxiaobei/text
637018ff89d992c2ed23f5c90fa2010023bc2ff3
[ "MIT" ]
null
null
null
from flask import abort from flask import current_app from flask import g from flask import request from flask import session from info import constants from info import db from info.models import Category, News, User from info.utils.response_code import RET from . import profile_blue from flask import render_template...
26.774411
106
0.649774
0
0
0
0
8,297
0.934452
0
0
2,466
0.277734
9a9a15482e95aa7f0388513fb55229cb50c955bb
962
py
Python
code/magicsquares/mgsq/three_by_three.py
gerritjvv/blog
26dbba7b38ed7aae63467720fcac2d95da1a0d7f
[ "MIT" ]
null
null
null
code/magicsquares/mgsq/three_by_three.py
gerritjvv/blog
26dbba7b38ed7aae63467720fcac2d95da1a0d7f
[ "MIT" ]
null
null
null
code/magicsquares/mgsq/three_by_three.py
gerritjvv/blog
26dbba7b38ed7aae63467720fcac2d95da1a0d7f
[ "MIT" ]
null
null
null
""" Solves a 3x3 square programmatically. It is not meant to be a full blown solution for magic squares, but rather a writeup of my thoughts on how it can be solved. """ import statistics def make_pairs(I, mid): """ We take pairs as [ [9, 1], [8, 2], [7, 3], [6, 4]] :param I: :param mid: :return:...
20.041667
83
0.546778
0
0
0
0
0
0
0
0
467
0.485447