hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
450f39b5c22b906825de90357c41ab0d1124d23c
1,104
py
Python
Add_Barking_Code_0_0.py
aoltean-Q2S/DS1COM2
006286779989defc2c163c20d67010b306d20ccb
[ "MIT" ]
null
null
null
Add_Barking_Code_0_0.py
aoltean-Q2S/DS1COM2
006286779989defc2c163c20d67010b306d20ccb
[ "MIT" ]
null
null
null
Add_Barking_Code_0_0.py
aoltean-Q2S/DS1COM2
006286779989defc2c163c20d67010b306d20ccb
[ "MIT" ]
1
2019-06-28T19:19:28.000Z
2019-06-28T19:19:28.000Z
import numpy as np from gnuradio import gr class blk(gr.basic_block): # other base classes are basic_block, decim_block, interp_block """Embedded Python Block example - a simple multiply const""" def __init__(self): # only default arguments here """arguments to this function show up as parameters i...
35.612903
108
0.703804
161
1,104
4.639752
0.509317
0.093708
0.149933
0.080321
0.153949
0
0
0
0
0
0
0.012458
0.200181
1,104
30
109
36.8
0.833522
0.220109
0
0
0
0
0.01585
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
45135c7cc148c607a38b204512105d299400dc30
268
py
Python
skills/convert_reddit/utils.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
34
2021-08-18T14:51:44.000Z
2022-03-10T14:14:48.000Z
skills/convert_reddit/utils.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
27
2021-08-30T14:42:09.000Z
2022-03-17T22:11:45.000Z
skills/convert_reddit/utils.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
40
2021-08-22T07:13:32.000Z
2022-03-29T11:45:32.000Z
import re spaces_pat = re.compile(r"\s+") special_symb_pat = re.compile(r"[^A-Za-z0-9 ]") def clear_text(text): text = special_symb_pat.sub("", spaces_pat.sub(" ", text.lower().replace("\n", " "))).strip() text = text.replace("\u2019", "'") return text
24.363636
97
0.619403
41
268
3.878049
0.560976
0.150943
0.150943
0.163522
0
0
0
0
0
0
0
0.026316
0.149254
268
10
98
26.8
0.671053
0
0
0
0
0
0.100746
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
451e7d446ff1997d7e36b1ec60131dd0a6190f6e
335
py
Python
charpter4/4-2_data_normalization.py
lihuinian/Code-of-Python-Practice-of-Data-Analysis-and-Mining
56012909509739c3caee7600ff736dc531d0592a
[ "Apache-2.0" ]
1
2018-04-09T02:47:49.000Z
2018-04-09T02:47:49.000Z
charpter4/4-2_data_normalization.py
lihuinian/Code-of-Python-Practice-of-Data-Analysis-and-Mining
56012909509739c3caee7600ff736dc531d0592a
[ "Apache-2.0" ]
null
null
null
charpter4/4-2_data_normalization.py
lihuinian/Code-of-Python-Practice-of-Data-Analysis-and-Mining
56012909509739c3caee7600ff736dc531d0592a
[ "Apache-2.0" ]
null
null
null
#-*- coding : utf-8 -*- #数据规范化 import pandas as pd import numpy as np datafile = './data/normalization_data.xls'#参数初始化 data = pd.read_excel(datafile,header= None) print((data-data.min())/(data.max()-data.min()))#最小最大规范化 print((data-data.mean())/data.std())#零-均值规范化 print(data/10**np.ceil(np.log10(data.abs().max())))#小数...
27.916667
67
0.695522
54
335
4.277778
0.611111
0.116883
0.112554
0
0
0
0
0
0
0
0
0.016181
0.077612
335
11
68
30.454545
0.731392
0.18209
0
0
0
0
0.108614
0.108614
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
4523aa9608985378b34b6974df7d890924271fee
213
py
Python
2019/08/26-EASY-Evil-numbers/Solutions/malcolm-smith/solution.py
jonathan-vidal/daily-questions
99597896ca57cef4a86a2cb87f7d305bb7160a1e
[ "MIT" ]
12
2019-07-02T22:17:49.000Z
2020-10-08T16:02:04.000Z
2019/08/26-EASY-Evil-numbers/Solutions/malcolm-smith/solution.py
jonathan-vidal/daily-questions
99597896ca57cef4a86a2cb87f7d305bb7160a1e
[ "MIT" ]
2
2019-07-03T12:22:22.000Z
2019-09-04T23:31:38.000Z
2019/08/26-EASY-Evil-numbers/Solutions/malcolm-smith/solution.py
CarletonComputerScienceSociety/daily-questions
79450bd67f33427c61d66050e0ba8a4bf1b31e24
[ "MIT" ]
15
2019-07-02T23:29:07.000Z
2020-05-11T15:53:07.000Z
def isEvilNumber(n): count = 0 for char in str(bin(n)[2:]): if char == '1': count += 1 if count % 2 == 0: return True else: return False print(isEvilNumber(4))
17.75
32
0.488263
29
213
3.586207
0.655172
0
0
0
0
0
0
0
0
0
0
0.05303
0.380282
213
12
33
17.75
0.734848
0
0
0
0
0
0.004673
0
0
0
0
0
0
1
0.1
false
0
0
0
0.3
0.1
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
45276559f346d58e2e42c4f49abaf80de3d87555
4,028
py
Python
esa.py
OCHA-DAP/dap-scrapers
3beb34acfe5bf5f2fd7d2a15857264a1e65bcf08
[ "Unlicense" ]
3
2015-03-30T08:53:41.000Z
2017-05-05T13:37:08.000Z
esa.py
OCHA-DAP/dap-scrapers
3beb34acfe5bf5f2fd7d2a15857264a1e65bcf08
[ "Unlicense" ]
2
2016-03-31T17:26:37.000Z
2016-03-31T17:28:15.000Z
esa.py
OCHA-DAP/dap-scrapers
3beb34acfe5bf5f2fd7d2a15857264a1e65bcf08
[ "Unlicense" ]
2
2016-03-31T17:02:03.000Z
2018-03-12T14:13:27.000Z
import messytables import xypath import dl import re import orm """Value: dsID, region, indID, period, value, source, is_number DataSet: dsID, last_updated, last_scraped, name Indicator: indID, name, units """ spreadsheets = """ http://esa.un.org/unpd/wpp/Excel-Data/EXCEL_FILES/3_Mortality/WPP2012_MORT_F02_CR...
39.881188
113
0.649702
552
4,028
4.512681
0.282609
0.028101
0.03613
0.048173
0.313529
0.289041
0.289041
0.289041
0.2778
0.2778
0
0.030821
0.186445
4,028
100
114
40.28
0.729326
0.023337
0
0
0
0.135135
0.358945
0
0
0
0
0
0.054054
0
null
null
0
0.067568
null
null
0.013514
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
453fc024866e1e29f8a7b015770cbead58b0ab9e
571
py
Python
example_service/service.py
zsiciarz/nameko-zipkin
e4f73bb3fe2754e240779d3a5f5085ba223b1e79
[ "Apache-2.0" ]
1
2019-05-15T14:35:39.000Z
2019-05-15T14:35:39.000Z
example_service/service.py
zsiciarz/nameko-zipkin
e4f73bb3fe2754e240779d3a5f5085ba223b1e79
[ "Apache-2.0" ]
1
2019-09-16T11:56:22.000Z
2019-09-16T11:56:22.000Z
example_service/service.py
zsiciarz/nameko-zipkin
e4f73bb3fe2754e240779d3a5f5085ba223b1e79
[ "Apache-2.0" ]
3
2019-04-15T09:30:36.000Z
2019-06-06T12:08:50.000Z
from nameko.rpc import rpc, RpcProxy from nameko.web.handlers import http from nameko_zipkin import Zipkin class ExampleService: name = 'example_service' zipkin = Zipkin() example_service = RpcProxy('example_service') @rpc def traced_method(self): return 'Find me in Zipkin!' @http('...
24.826087
57
0.656743
66
571
5.530303
0.5
0.153425
0
0
0
0
0
0
0
0
0
0
0.234676
571
22
58
25.954545
0.83524
0
0
0
0
0
0.126095
0
0
0
0
0
0
1
0.117647
false
0
0.176471
0.058824
0.647059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
45432714b2fd6e6f7acc8259e3a3ef5df9db52d1
2,446
py
Python
ims_soft/purchases/forms.py
fouadsan/ims-soft
872f9fedd7d848cf9b2a16d53bcf1925fe042721
[ "MIT" ]
null
null
null
ims_soft/purchases/forms.py
fouadsan/ims-soft
872f9fedd7d848cf9b2a16d53bcf1925fe042721
[ "MIT" ]
null
null
null
ims_soft/purchases/forms.py
fouadsan/ims-soft
872f9fedd7d848cf9b2a16d53bcf1925fe042721
[ "MIT" ]
null
null
null
from django import forms from crispy_forms.helper import FormHelper, Layout from crispy_forms.layout import Field, Submit from django.forms import formset_factory from .models import Purchase from products .models import Product from people.models import Supplier class PurchaseForm(forms.ModelForm): def __init__...
49.918367
134
0.700327
282
2,446
5.964539
0.283688
0.071938
0.083234
0.124851
0.431629
0.431629
0.431629
0.387634
0.373365
0.373365
0
0.0038
0.139411
2,446
48
135
50.958333
0.795249
0.012265
0
0.105263
0
0
0.178542
0
0
0
0
0
0
1
0.026316
false
0
0.184211
0
0.631579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
188506b9de1102d55500f92df90d900a33241741
3,274
py
Python
inference_tools/convert/test_Translator.py
AlgoLab/celluloid
7d4e9d20563a1c140879433b371fd10a1708b362
[ "MIT" ]
null
null
null
inference_tools/convert/test_Translator.py
AlgoLab/celluloid
7d4e9d20563a1c140879433b371fd10a1708b362
[ "MIT" ]
null
null
null
inference_tools/convert/test_Translator.py
AlgoLab/celluloid
7d4e9d20563a1c140879433b371fd10a1708b362
[ "MIT" ]
1
2019-11-09T02:50:03.000Z
2019-11-09T02:50:03.000Z
import unittest import Translator from tatsu.exceptions import FailedParse class MyTestCase(unittest.TestCase): def setUp(self): self.formats = ["SASC", "SPHYR", "SCITE"] self.ASTs = { "SASC" : [['0', '1', '2', '0'], ['2', '0', '0', '0'], ['0', '1', '0', '0'], ['0', '1', '2', '0']], ...
49.606061
115
0.464875
523
3,274
2.860421
0.087954
0.101604
0.068182
0.040107
0.786765
0.769385
0.691845
0.637701
0.566845
0.439171
0
0.127389
0.280696
3,274
65
116
50.369231
0.507856
0
0
0.240741
0
0.166667
0.205559
0
0
0
0
0
0.277778
1
0.12963
false
0
0.055556
0
0.203704
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
188d9651eb6f9f1cdf2d7b03d1367ba19091309a
2,038
py
Python
app/migrations/0002_experiment_process_processstatus.py
tungpatrick/AutoOut
1e849a7f2e2af750b93e4dc55c4dc7d66e563852
[ "MIT" ]
101
2019-08-19T14:38:11.000Z
2021-12-01T07:15:30.000Z
app/migrations/0002_experiment_process_processstatus.py
MateLabs/AutoOut
7472a13313546ff1b4d5786a58e1da2aa91cb6d4
[ "MIT" ]
11
2019-09-03T00:27:10.000Z
2022-03-11T23:56:43.000Z
app/migrations/0002_experiment_process_processstatus.py
tungpatrick/AutoOut
1e849a7f2e2af750b93e4dc55c4dc7d66e563852
[ "MIT" ]
14
2019-08-19T21:58:50.000Z
2020-06-15T16:02:04.000Z
# Generated by Django 2.2.1 on 2019-07-19 10:12 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('app', '0001_initial'), ] operations = [ migrations.CreateModel( na...
39.192308
123
0.568695
195
2,038
5.820513
0.348718
0.035242
0.049339
0.077533
0.58326
0.58326
0.58326
0.58326
0.58326
0.53304
0
0.016598
0.290481
2,038
51
124
39.960784
0.768326
0.02208
0
0.466667
1
0
0.127574
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
18929c7ed60f8ddd73c46118de8ea25fb064a807
207
py
Python
lamdas/lambda.py
onrcayci/python3-notes
64f6708553a54a2b85641690e5e90444a0a68737
[ "MIT" ]
null
null
null
lamdas/lambda.py
onrcayci/python3-notes
64f6708553a54a2b85641690e5e90444a0a68737
[ "MIT" ]
null
null
null
lamdas/lambda.py
onrcayci/python3-notes
64f6708553a54a2b85641690e5e90444a0a68737
[ "MIT" ]
null
null
null
""" Lambda functions Functions without names, kind of similar to arrow functions in JavaScript. """ square = lambda num: num * num print(square(9)) # 81 add = lambda a,b: a + b print(add(3,10)) # 13
18.818182
74
0.666667
33
207
4.181818
0.666667
0.086957
0
0
0
0
0
0
0
0
0
0.04878
0.207729
207
11
75
18.818182
0.792683
0.478261
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
1895084af767f884aed2add34e319675b30ea0ca
1,085
py
Python
critters/migrations/0007_auto_20200425_1500.py
cfletcher1856/acnhcritters
7cf7910d23c80d589ec471822f9cb15826eff4c6
[ "Apache-2.0" ]
null
null
null
critters/migrations/0007_auto_20200425_1500.py
cfletcher1856/acnhcritters
7cf7910d23c80d589ec471822f9cb15826eff4c6
[ "Apache-2.0" ]
5
2021-03-19T03:04:16.000Z
2021-06-10T19:09:33.000Z
critters/migrations/0007_auto_20200425_1500.py
cfletcher1856/acnhcritters
7cf7910d23c80d589ec471822f9cb15826eff4c6
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-25 20:00 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('critters', '0006_auto_20200419_1200'), ] operations = [ migrations.AddField( model_name='bug', ...
31
136
0.606452
118
1,085
5.432203
0.415254
0.049922
0.065523
0.102964
0.570983
0.570983
0.446178
0.446178
0.446178
0.446178
0
0.046658
0.269124
1,085
34
137
31.911765
0.761665
0.041475
0
0.5
1
0
0.128131
0.022158
0
0
0
0
0
1
0
false
0
0.071429
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
18999fc1d5bc45dc4e2999aabbde058bfca6de0d
13,028
py
Python
sdk/python/pulumi_google_native/bigqueryreservation/v1/capacity_commitment.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/bigqueryreservation/v1/capacity_commitment.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/bigqueryreservation/v1/capacity_commitment.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
44.312925
293
0.664569
1,437
13,028
5.693111
0.125261
0.059161
0.081286
0.067229
0.682924
0.607138
0.544188
0.517907
0.492483
0.400807
0
0.000504
0.238947
13,028
293
294
44.464164
0.824609
0.228661
0
0.395833
1
0
0.138436
0.0711
0
0
0
0
0
1
0.145833
false
0.005208
0.036458
0.020833
0.276042
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
189a11df38f7b2b4a18ad306da07cd48d9716ce3
3,996
py
Python
sgactions/dispatch.py
VFXetc/sgactions
e2c6ee14a1f8092e97f57a501650581428a6ac6e
[ "BSD-3-Clause" ]
9
2017-09-27T00:09:49.000Z
2021-08-18T03:22:33.000Z
sgactions/dispatch.py
vfxetc/sgactions
e2c6ee14a1f8092e97f57a501650581428a6ac6e
[ "BSD-3-Clause" ]
null
null
null
sgactions/dispatch.py
vfxetc/sgactions
e2c6ee14a1f8092e97f57a501650581428a6ac6e
[ "BSD-3-Clause" ]
2
2019-07-19T01:21:07.000Z
2021-04-26T17:31:09.000Z
import argparse import os import re import sys import traceback import urlparse from metatools.imports import load_entrypoint from . import utils from . import tickets def parse_url(url): # Parse the URL into scheme, path, and query. m = re.match(r'^(?:(\w+):)?(.*?)(?:/(.*?))?(?:\?(.*))?$', url) scheme...
30.045113
159
0.584084
518
3,996
4.395753
0.351351
0.015371
0.029864
0.014054
0.056214
0.036012
0.019324
0
0
0
0
0.002794
0.283534
3,996
132
160
30.272727
0.792525
0.113614
0
0.069767
0
0.011628
0.154914
0.046446
0
0
0
0
0
0
null
null
0
0.116279
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
18a3da44646715db29e5ae7d82addcf12e8bb373
1,084
py
Python
src/pdc2/scripts/check_names.py
jlanga/smsk_selection
08070c6d4a6fbd9320265e1e698c95ba80f81123
[ "MIT" ]
4
2021-07-18T05:20:20.000Z
2022-01-03T10:22:33.000Z
src/pdc2/scripts/check_names.py
jlanga/smsk_selection
08070c6d4a6fbd9320265e1e698c95ba80f81123
[ "MIT" ]
1
2017-08-21T07:26:13.000Z
2018-11-08T13:59:48.000Z
src/pdc2/scripts/check_names.py
jlanga/smsk_orthofinder
08070c6d4a6fbd9320265e1e698c95ba80f81123
[ "MIT" ]
2
2021-07-18T05:20:26.000Z
2022-03-31T18:23:31.000Z
""" Check data set names for: - Duplicated names - Special characters other than digits, letters and _ - all names look like taxonID@seqID, and file names are the taxonID """ import os,sys from re import match if __name__ =="__main__": if len(sys.argv) != 3: print "usage: python check_names.py DIR file_ending" s...
27.794872
117
0.665129
170
1,084
4.152941
0.464706
0.029745
0.062323
0.073654
0
0
0
0
0
0
0
0.010262
0.190959
1,084
38
118
28.526316
0.794755
0.020295
0
0
0
0
0.228861
0
0
0
0
0
0.074074
0
null
null
0
0.074074
null
null
0.148148
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
18b245406c53e0f7593a49c3580bec322562501c
2,646
py
Python
events/models.py
mrunal2504/unicode-website
a8151c3e6cad594a6518e9529c501aff3165efbb
[ "MIT" ]
6
2018-01-02T13:01:44.000Z
2020-05-08T11:46:39.000Z
events/models.py
mrunal2504/unicode-website
a8151c3e6cad594a6518e9529c501aff3165efbb
[ "MIT" ]
22
2018-12-24T19:10:44.000Z
2022-02-10T10:58:26.000Z
events/models.py
mrunal2504/unicode-website
a8151c3e6cad594a6518e9529c501aff3165efbb
[ "MIT" ]
22
2018-12-26T02:52:57.000Z
2020-10-01T19:09:56.000Z
from django.db import models from django.conf import settings from multiselectfield import MultiSelectField from django.utils.text import slugify from django.db.models.signals import pre_save, post_save from django.core.mail import EmailMessage from django.template.loader import get_template from django.template import...
32.268293
66
0.71542
328
2,646
5.585366
0.365854
0.039301
0.068777
0.091703
0.161026
0.078603
0.04476
0
0
0
0
0.011457
0.175359
2,646
81
67
32.666667
0.828139
0
0
0.03125
0
0
0.070295
0
0
0
0
0
0
1
0.078125
false
0
0.140625
0.03125
0.515625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
18b77aee38602eeb92a9abc530b4defef127e8b8
705
py
Python
panel.py
aelbakry/Swin-Transformer-Semantic-Segmentation
90f76c35ea5b6d112e88336e9eb03e96c4aa8341
[ "Apache-2.0" ]
null
null
null
panel.py
aelbakry/Swin-Transformer-Semantic-Segmentation
90f76c35ea5b6d112e88336e9eb03e96c4aa8341
[ "Apache-2.0" ]
null
null
null
panel.py
aelbakry/Swin-Transformer-Semantic-Segmentation
90f76c35ea5b6d112e88336e9eb03e96c4aa8341
[ "Apache-2.0" ]
null
null
null
from mmseg.models import build_segmentor from mmcv.utils import Config, DictAction, get_git_hash from mmcv.runner import get_dist_info, init_dist, load_checkpoint cfg = Config.fromfile('configs/swin/upernet_swin_base_patch4_window7_512x512_hubmap.py') model = build_segmentor( cfg.model, train_cfg=cfg....
32.045455
124
0.761702
106
705
4.801887
0.584906
0.05501
0.078585
0
0
0
0
0
0
0
0
0.043408
0.117731
705
21
125
33.571429
0.77492
0.089362
0
0
0
0.083333
0.306604
0.099057
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
18bab6260478e72c5ef6031353e1235d0993a8f7
2,489
py
Python
wb/main/models/convert_dataset_jobs_model.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
23
2022-03-17T12:24:09.000Z
2022-03-31T09:13:30.000Z
wb/main/models/convert_dataset_jobs_model.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
18
2022-03-21T08:17:44.000Z
2022-03-30T12:42:30.000Z
wb/main/models/convert_dataset_jobs_model.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
16
2022-03-17T12:24:14.000Z
2022-03-31T12:15:12.000Z
""" OpenVINO DL Workbench Class for ORM model describing a dataset converter job Copyright (c) 2021 Intel Corporation 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.o...
44.446429
120
0.695862
285
2,489
5.887719
0.477193
0.035757
0.023838
0.028605
0.239571
0.239571
0.172825
0.125149
0.071514
0
0
0.004165
0.228204
2,489
55
121
45.254545
0.869339
0.277622
0
0.066667
0
0
0.0973
0.03712
0
0
0
0
0
1
0.066667
false
0
0.2
0.033333
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
18c16dfddf039eb3c24e683082dec5eefde13aac
855
py
Python
src/the_tale/the_tale/game/bills/conf.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/bills/conf.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/bills/conf.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
import smart_imports smart_imports.all() settings = utils_app_settings.app_settings('BILLS', RATIONALE_MIN_LENGTH=100, CHRONICLE_MIN_LENGTH=100 if not django_settings.TESTS_RUNNING else 5, ...
47.5
112
0.407018
72
855
4.402778
0.680556
0.07571
0.07571
0
0
0
0
0
0
0
0
0.069948
0.548538
855
17
113
50.294118
0.751295
0.017544
0
0
0
0
0.011962
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
18cbe79ce0b06e64b18ac99049ca6bbe8ac7e005
429
py
Python
m02_files/l_02_yaml_example.py
williamnie2088/python-52-weeks
780f80acf572c422035b9fa0ba392ef661a14d55
[ "MIT" ]
null
null
null
m02_files/l_02_yaml_example.py
williamnie2088/python-52-weeks
780f80acf572c422035b9fa0ba392ef661a14d55
[ "MIT" ]
null
null
null
m02_files/l_02_yaml_example.py
williamnie2088/python-52-weeks
780f80acf572c422035b9fa0ba392ef661a14d55
[ "MIT" ]
null
null
null
from l_00_inventory import inve- worked: saved inventory equals originntory import yaml with open("m02_files/l_00_inventory.yaml", "w") as yaml_out: yaml_out.write(yaml.dump(inventory)) with open("m02_files/l_00_inventory.yaml", "r") as yaml_in: yaml_inventory = yaml_in.read() print("l_00_inventory.yaml file...
30.642857
75
0.764569
70
429
4.442857
0.457143
0.038585
0.154341
0.154341
0.205788
0.205788
0.205788
0.205788
0
0
0
0.033854
0.104895
429
13
76
33
0.776042
0
0
0
0
0
0.254079
0.135198
0
0
0
0
0
0
null
null
0
0.222222
null
null
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
18d1c7f04090ef6db7c5c3bb98314ef86c7cd355
2,307
py
Python
lunarsky/mcmf.py
bhazelton/lunarsky
4453fca33ad51e7eb1a02ee7f154cd698e5048ca
[ "BSD-3-Clause" ]
1
2021-02-27T11:58:56.000Z
2021-02-27T11:58:56.000Z
lunarsky/mcmf.py
bhazelton/lunarsky
4453fca33ad51e7eb1a02ee7f154cd698e5048ca
[ "BSD-3-Clause" ]
10
2020-01-14T03:09:44.000Z
2022-01-17T18:53:48.000Z
lunarsky/mcmf.py
bhazelton/lunarsky
4453fca33ad51e7eb1a02ee7f154cd698e5048ca
[ "BSD-3-Clause" ]
1
2020-08-26T18:27:19.000Z
2020-08-26T18:27:19.000Z
from astropy.utils.decorators import format_doc from astropy.coordinates.representation import CartesianRepresentation, CartesianDifferential from astropy.coordinates.baseframe import BaseCoordinateFrame, base_doc, frame_transform_graph from astropy.coordinates.attributes import TimeAttribute from astropy.time import ...
32.041667
94
0.765496
288
2,307
5.951389
0.333333
0.051342
0.077013
0.022754
0.105018
0.029172
0.029172
0
0
0
0
0.008226
0.156914
2,307
71
95
32.492958
0.873008
0.206329
0
0
0
0
0.015766
0
0
0
0
0
0
1
0.114286
false
0
0.285714
0
0.628571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
18d862c0239d4c8837e023b316e88e5af40fa5cb
9,463
py
Python
src/spark/internal/init.py
jbalint/spark
caccf1cd9122dd4a7dc0f26a57ee4a649056aa6f
[ "CNRI-Jython" ]
1
2015-05-21T20:00:12.000Z
2015-05-21T20:00:12.000Z
src/spark/internal/init.py
jbalint/spark
caccf1cd9122dd4a7dc0f26a57ee4a649056aa6f
[ "CNRI-Jython" ]
null
null
null
src/spark/internal/init.py
jbalint/spark
caccf1cd9122dd4a7dc0f26a57ee4a649056aa6f
[ "CNRI-Jython" ]
null
null
null
#*****************************************************************************# #* Copyright (c) 2004-2008, SRI International. *# #* All rights reserved. *# #* ...
52.865922
156
0.636056
1,055
9,463
5.601896
0.325118
0.013706
0.01489
0.020305
0.174112
0.147377
0.132149
0.132149
0.132149
0.132149
0
0.002043
0.275811
9,463
178
157
53.162921
0.860353
0.443094
0
0.151163
0
0.011628
0.221424
0
0
0
0
0.005618
0
0
null
null
0
0.116279
null
null
0.104651
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
18d9d88c315c67265b01d39fefa297ab7d132b35
5,298
py
Python
oauth_dropins/wordpress_rest.py
RosemaryOrchard/oauth-dropins
afc556c65795fb658b2321a320a1dd2284a40381
[ "Unlicense" ]
2
2019-09-18T02:01:51.000Z
2020-01-25T21:21:09.000Z
oauth_dropins/wordpress_rest.py
RosemaryOrchard/oauth-dropins
afc556c65795fb658b2321a320a1dd2284a40381
[ "Unlicense" ]
null
null
null
oauth_dropins/wordpress_rest.py
RosemaryOrchard/oauth-dropins
afc556c65795fb658b2321a320a1dd2284a40381
[ "Unlicense" ]
1
2021-01-20T08:14:06.000Z
2021-01-20T08:14:06.000Z
"""WordPress.com OAuth drop-in. API docs: https://developer.wordpress.com/docs/api/ https://developer.wordpress.com/docs/oauth2/ Note that unlike Blogger and Tumblr, WordPress.com's OAuth tokens are *per blog*. It asks you which blog to use on its authorization page. Also, wordpress.com doesn't let you use an oauth ...
33.320755
82
0.694602
730
5,298
4.89863
0.319178
0.046141
0.033557
0.041946
0.126957
0.067673
0.040828
0.018456
0.018456
0
0
0.004932
0.1963
5,298
158
83
33.531646
0.834899
0.085693
0
0.086957
0
0
0.18782
0.029027
0
0
0
0.006329
0.01087
0
null
null
0
0.108696
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
18ddf96a69658dee3e8f341a60151d91bdc388c2
2,065
py
Python
tests/bugs/test-200907231924.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
123
2015-01-12T06:43:22.000Z
2022-03-20T18:06:46.000Z
tests/bugs/test-200907231924.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
103
2015-01-08T18:35:57.000Z
2022-01-18T01:44:14.000Z
tests/bugs/test-200907231924.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
54
2015-02-15T17:12:00.000Z
2022-03-07T23:02:32.000Z
# -*- coding: utf-8 -*- import logging if __name__ == '__main__': logging.basicConfig() _log = logging.getLogger(__name__) import pyxb.binding.generate import pyxb.binding.datatypes as xs import pyxb.binding.basis import pyxb.utils.domutils import os.path xsd='''<?xml version="1.0" encoding="UTF-8"?> <xs:schema xm...
34.416667
99
0.699274
246
2,065
5.760163
0.414634
0.08892
0.081157
0.084686
0.312632
0.206069
0.074806
0.074806
0
0
0
0.015526
0.157869
2,065
59
100
35
0.79931
0.084746
0
0.155556
1
0
0.321125
0.089703
0
0
0
0
0.2
1
0.066667
false
0
0.177778
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
18ecf431b6fa9c1f71b1433bc37bcf9cb889bb20
355
py
Python
tests/test_actions.py
kobbimikk/ruv-dl
3f50a5f161f029539e27d33ab9b562d755d1ab75
[ "MIT" ]
4
2019-08-14T14:11:31.000Z
2020-02-05T07:58:45.000Z
tests/test_actions.py
kobbimikk/ruv-dl
3f50a5f161f029539e27d33ab9b562d755d1ab75
[ "MIT" ]
2
2019-07-31T16:13:38.000Z
2021-11-21T12:34:03.000Z
tests/test_actions.py
kobbimikk/ruv-dl
3f50a5f161f029539e27d33ab9b562d755d1ab75
[ "MIT" ]
1
2021-11-19T16:39:02.000Z
2021-11-19T16:39:02.000Z
import os from click.testing import CliRunner from ruv_dl import mv runner = CliRunner() def test_mv(fs, mocker): os.makedirs('/a/b/c') os.chdir('/a/b') mover_patch = mocker.patch('ruv_dl.Mover') runner.invoke(mv, ['c', 'd']) mover_patch.assert_called_once_with('/a/b/c', '/a/b/d') mover_patc...
22.1875
59
0.673239
59
355
3.847458
0.474576
0.035242
0.026432
0.176211
0
0
0
0
0
0
0
0
0.15493
355
15
60
23.666667
0.756667
0
0
0
0
0
0.101408
0
0
0
0
0
0.181818
1
0.090909
false
0
0.272727
0
0.363636
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
18ee19607cae1ab2dc72675e8e3ca60fac772cb3
16,159
py
Python
tests/test_import_new_tournament/test_process_hh_files/test_process/test_hands/test_extract/test_position_info/test_assign_position_to_name_and_stack.py
michaelcukier/Poker-Hand-Tracker
9adae42fab9f640e6939ba06bd588ab1a2feb90f
[ "MIT" ]
5
2021-02-28T18:33:02.000Z
2022-03-12T01:43:40.000Z
tests/test_import_new_tournament/test_process_hh_files/test_process/test_hands/test_extract/test_position_info/test_assign_position_to_name_and_stack.py
michaelcukier/Poker-Hand-Tracker
9adae42fab9f640e6939ba06bd588ab1a2feb90f
[ "MIT" ]
null
null
null
tests/test_import_new_tournament/test_process_hh_files/test_process/test_hands/test_extract/test_position_info/test_assign_position_to_name_and_stack.py
michaelcukier/Poker-Hand-Tracker
9adae42fab9f640e6939ba06bd588ab1a2feb90f
[ "MIT" ]
2
2021-03-01T03:08:04.000Z
2021-12-31T17:53:46.000Z
import unittest from import_new_tournaments.process_hh_files.process.hands.extract.position_info.assign_position_to_name_and_stack import assign_position_to_name_and_stack class test(unittest.TestCase): def test_assign_position_to_name_and_stack(self): input_seats_list_wth_btn_first = [ ['Sea...
175.641304
464
0.608949
2,230
16,159
4.29148
0.086996
0.126959
0.123302
0.050157
0.614316
0.561651
0.501776
0.272518
0.206688
0.18349
0
0.165705
0.15298
16,159
91
465
177.571429
0.533499
0
0
0.164706
0
0
0.435732
0
0
0
0
0
0.176471
1
0.011765
false
0
0.023529
0
0.047059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
18f6d7c9d734232b5c50f839d868a25808e98ccb
7,305
py
Python
dcmanager/tests/unit/api/v1/controllers/test_sw_update_strategy.py
starlingx-staging/stx-kingbird
9869ad4640e76384fa14f031a59134cd439929a8
[ "Apache-2.0" ]
null
null
null
dcmanager/tests/unit/api/v1/controllers/test_sw_update_strategy.py
starlingx-staging/stx-kingbird
9869ad4640e76384fa14f031a59134cd439929a8
[ "Apache-2.0" ]
null
null
null
dcmanager/tests/unit/api/v1/controllers/test_sw_update_strategy.py
starlingx-staging/stx-kingbird
9869ad4640e76384fa14f031a59134cd439929a8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Ericsson AB # All Rights Reserved. # # 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 ...
42.970588
79
0.668172
951
7,305
4.805468
0.171399
0.075274
0.078775
0.051204
0.695186
0.678118
0.664989
0.664989
0.660394
0.641575
0
0.009478
0.234497
7,305
169
80
43.224852
0.807761
0.088296
0
0.480916
0
0
0.082656
0.010238
0
0
0
0
0.129771
1
0.10687
false
0
0.061069
0
0.175573
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
18f7a4a0ff4f30f637e668ba2b0d563890e00ebb
2,341
py
Python
WinboxExploit.py
rakib2806/WinboxPoC
745beb75a59bd055395d4f7bcca737ce170619db
[ "MIT" ]
null
null
null
WinboxExploit.py
rakib2806/WinboxPoC
745beb75a59bd055395d4f7bcca737ce170619db
[ "MIT" ]
null
null
null
WinboxExploit.py
rakib2806/WinboxPoC
745beb75a59bd055395d4f7bcca737ce170619db
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import socket import sys from extract_user import dump a = [0x68, 0x01, 0x00, 0x66, 0x4d, 0x32, 0x05, 0x00, 0xff, 0x01, 0x06, 0x00, 0xff, 0x09, 0x05, 0x07, 0x00, 0xff, 0x09, 0x07, 0x01, 0x00, 0x00, 0x21, 0x35, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2e, 0x2f, 0x2e, 0x2e, 0x2f, 0x2f...
29.632911
104
0.576677
337
2,341
3.976261
0.329377
0.137313
0.107463
0.095522
0.444776
0.416418
0.416418
0.416418
0.385075
0.385075
0
0.279525
0.280222
2,341
78
105
30.012821
0.515727
0.077317
0
0.192982
0
0
0.064561
0
0
0
0.310265
0
0
1
0
false
0
0.052632
0
0.052632
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
18fa3fbc58d068c48cd2d89b61de34fc09cf9fda
59,994
py
Python
bgasync/api.py
hbock/bgasync
6d86e73026907f90316178fc3563d230adc6c1b5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
bgasync/api.py
hbock/bgasync
6d86e73026907f90316178fc3563d230adc6c1b5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
bgasync/api.py
hbock/bgasync
6d86e73026907f90316178fc3563d230adc6c1b5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
""" bgasync.api - BGAPI classes, constants, and utility functions. """ # This file is auto-generated. Edit at your own risk! from struct import Struct from collections import namedtuple from enum import Enum from .apibase import * class event_system_boot(Decodable): decoded_type = namedtuple('event_system_boot_typ...
37.684673
132
0.700437
7,193
59,994
5.269568
0.050883
0.04981
0.062263
0.093394
0.685548
0.589225
0.453488
0.274298
0.202881
0.138613
0
0.01658
0.180668
59,994
1,591
133
37.70836
0.754532
0.0028
0
0.335878
1
0
0.121489
0.065819
0
0
0.000468
0
0
1
0.083969
false
0.035392
0.002776
0
0.510756
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
18fd3e6c622471d87cde1ff8dac0de51c5012e78
1,675
py
Python
examples/accel/plot.py
kerikun11/AccelDesigner
9cf7da4cfa292393131ed7b8bc210e1559590076
[ "MIT" ]
12
2020-04-25T15:29:37.000Z
2021-01-16T03:36:20.000Z
examples/accel/plot.py
kerikun11/AccelDesigner
9cf7da4cfa292393131ed7b8bc210e1559590076
[ "MIT" ]
null
null
null
examples/accel/plot.py
kerikun11/AccelDesigner
9cf7da4cfa292393131ed7b8bc210e1559590076
[ "MIT" ]
1
2021-09-03T15:06:46.000Z
2021-09-03T15:06:46.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ============================================================================ # from matplotlib.ticker import ScalarFormatter import numpy as np import matplotlib.pyplot as plt # ============================================================================ # # prepare figu...
32.843137
80
0.401194
186
1,675
3.521505
0.5
0.022901
0.00916
0
0
0
0
0
0
0
0
0.014533
0.137313
1,675
50
81
33.5
0.438754
0.385672
0
0
0
0
0.137313
0
0
0
0
0
0
1
0
false
0
0.107143
0
0.107143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
18fe5197de8b27259e31992ee925f2c00a864d7e
1,143
py
Python
cow/api.py
narfman0/cow
b2392749f1be75c5cb6e3147e9e8d6c378a0af6d
[ "MIT" ]
4
2017-04-25T10:31:46.000Z
2018-07-26T17:34:46.000Z
cow/api.py
narfman0/cow
b2392749f1be75c5cb6e3147e9e8d6c378a0af6d
[ "MIT" ]
1
2017-04-07T01:30:12.000Z
2017-04-10T03:23:41.000Z
cow/api.py
narfman0/cow
b2392749f1be75c5cb6e3147e9e8d6c378a0af6d
[ "MIT" ]
null
null
null
from django.conf import settings from rest_framework import serializers, viewsets from .models import Menu, Page, Plugin # lolworthily high, also the max :) MENU_DEPTH = getattr(settings, 'COW_API_MENU_DEPTH', 10) class PageSerializer(serializers.ModelSerializer): class Meta: model = Page fields...
28.575
70
0.689414
126
1,143
6.119048
0.5
0.035019
0.080415
0.090791
0
0
0
0
0
0
0
0.00221
0.208224
1,143
39
71
29.307692
0.849724
0.028871
0
0.074074
0
0
0.064079
0
0
0
0
0
0
1
0.037037
false
0
0.111111
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
18ffc9143fd52cb876ec8ca4a47206bbc28c5435
475
py
Python
back/api/migrations/0009_auto_20200811_1645.py
maltaesousa/geoshop2
624c6d79b5a29b39a898e0d1332fb8de23bd96e4
[ "BSD-3-Clause" ]
null
null
null
back/api/migrations/0009_auto_20200811_1645.py
maltaesousa/geoshop2
624c6d79b5a29b39a898e0d1332fb8de23bd96e4
[ "BSD-3-Clause" ]
155
2020-01-06T09:32:32.000Z
2022-03-31T09:21:39.000Z
back/api/migrations/0009_auto_20200811_1645.py
maltaesousa/geoshop2
624c6d79b5a29b39a898e0d1332fb8de23bd96e4
[ "BSD-3-Clause" ]
3
2020-01-29T15:48:02.000Z
2020-06-04T12:50:24.000Z
# Generated by Django 3.0.8 on 2020-08-11 14:45 import api.helpers from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0008_orderitem_extract_result'), ] operations = [ migrations.AlterField( model_name='orderitem', ...
23.75
107
0.642105
53
475
5.641509
0.716981
0.06689
0
0
0
0
0
0
0
0
0
0.052778
0.242105
475
19
108
25
0.777778
0.094737
0
0
1
0
0.14486
0.067757
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7a06e324f1f9a45c9217a1497baf38d8c441a3f1
2,779
py
Python
antipetros_discordbot/cogs/__init__.py
Giddius/Antipetros_Discord_Bot
2c139a5c0fc410385e936999989513fc1e7ebc8b
[ "MIT" ]
null
null
null
antipetros_discordbot/cogs/__init__.py
Giddius/Antipetros_Discord_Bot
2c139a5c0fc410385e936999989513fc1e7ebc8b
[ "MIT" ]
13
2021-02-19T02:22:28.000Z
2021-02-20T03:19:11.000Z
antipetros_discordbot/cogs/__init__.py
Giddius/Antipetros_Discord_Bot
2c139a5c0fc410385e936999989513fc1e7ebc8b
[ "MIT" ]
2
2020-11-19T10:21:06.000Z
2021-12-14T00:27:45.000Z
# * Local Imports --> # * Local Imports ---------------------------------------------------------------------------------------> from antipetros_discordbot.utility.gidtools_functions import loadjson from antipetros_discordbot.init_userdata.user_data_setup import ParaStorageKeeper import os APPDATA = ParaStorageKeeper....
38.597222
132
0.702771
385
2,779
4.763636
0.25974
0.071974
0.091603
0.062704
0.320065
0.278626
0.243184
0.226281
0.226281
0.205016
0
0.000419
0.142137
2,779
71
133
39.140845
0.768876
0.18244
0
0.108108
0
0
0.124608
0.009861
0
0
0
0
0
1
0.189189
false
0
0.162162
0.027027
0.540541
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7a06f22dab5043f1798d451640e1e111073765a4
2,357
py
Python
data/readaffinity.py
lims1/capstone
58819b05d7692f59ba21c2706ee24eb140bdd28e
[ "Apache-2.0" ]
1
2019-02-23T00:50:54.000Z
2019-02-23T00:50:54.000Z
data/readaffinity.py
lims1/capstone
58819b05d7692f59ba21c2706ee24eb140bdd28e
[ "Apache-2.0" ]
null
null
null
data/readaffinity.py
lims1/capstone
58819b05d7692f59ba21c2706ee24eb140bdd28e
[ "Apache-2.0" ]
null
null
null
import argparse import matplotlib.pyplot as plot import matplotlib.cm as cm import numpy as np import scipy.sparse as sparse import scipy.sparse.csgraph as csgraph if __name__ == "__main__": parser = argparse.ArgumentParser(description = 'Eigencuts Affinity Matrix', \ epilog = 'lol pygencuts', add_help = '...
42.854545
95
0.619431
312
2,357
4.61859
0.397436
0.037474
0.070784
0.031228
0.140874
0.081194
0.06662
0.06662
0.06662
0.06662
0
0.004986
0.234196
2,357
54
96
43.648148
0.793352
0.052185
0
0.093023
0
0
0.258977
0
0
0
0
0
0
0
null
null
0
0.139535
null
null
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7a17ee45b164112c95209416ecad9fa9da0956dc
11,649
py
Python
streams/binary.py
kevdes/videoparser
e8041073f36f343d5fcf02882bbd5e8955b3020a
[ "CC0-1.0" ]
null
null
null
streams/binary.py
kevdes/videoparser
e8041073f36f343d5fcf02882bbd5e8955b3020a
[ "CC0-1.0" ]
null
null
null
streams/binary.py
kevdes/videoparser
e8041073f36f343d5fcf02882bbd5e8955b3020a
[ "CC0-1.0" ]
null
null
null
""" Class to read binary information using various predefined types. """ # # Copyright (c) 2007 Michael van Tellingen <michaelvantellingen@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions #...
35.953704
93
0.560649
1,373
11,649
4.627094
0.272396
0.070518
0.031481
0.034629
0.257516
0.160239
0.095703
0.043129
0.043129
0.019833
0
0.038541
0.331788
11,649
323
94
36.065015
0.777621
0.172375
0
0.117347
0
0
0.09936
0.002807
0
0
0.007634
0.003096
0.005102
0
null
null
0
0.030612
null
null
0.010204
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e131920763895980370a9f9c5c5663b30ed5d513
714
py
Python
Project Files/manage.py
s3llsw0rd/demo_ajax_db_search
00a7e470f094f2941733abc529994d0be575c749
[ "Unlicense" ]
null
null
null
Project Files/manage.py
s3llsw0rd/demo_ajax_db_search
00a7e470f094f2941733abc529994d0be575c749
[ "Unlicense" ]
null
null
null
Project Files/manage.py
s3llsw0rd/demo_ajax_db_search
00a7e470f094f2941733abc529994d0be575c749
[ "Unlicense" ]
null
null
null
""" Base terminal command manager. Define terminal commands here to run actions """ from flask.ext.script import Manager, Server from flask.ext.sqlalchemy import SQLAlchemy # from flask.ext.migrate import Migrate, MigrateCommand from system.init import initialize_app # from system.init.database import create_d...
26.444444
79
0.756303
95
714
5.536842
0.505263
0.051331
0.068441
0
0
0
0
0
0
0
0
0.00974
0.137255
714
26
80
27.461538
0.844156
0.52521
0
0
0
0
0.081761
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e133b09967644911fdf37487c85589d477df9038
10,143
py
Python
backend/tests/users/test_validation.py
mmcardle/projectx
058935273834c683de8db8bb2d720b1ddcd433e8
[ "MIT" ]
4
2021-04-22T08:55:13.000Z
2022-03-23T12:58:43.000Z
backend/tests/users/test_validation.py
mmcardle/projectx
058935273834c683de8db8bb2d720b1ddcd433e8
[ "MIT" ]
3
2021-05-12T11:05:58.000Z
2021-09-12T16:40:31.000Z
backend/tests/users/test_validation.py
mmcardle/projectx
058935273834c683de8db8bb2d720b1ddcd433e8
[ "MIT" ]
1
2021-04-18T08:33:02.000Z
2021-04-18T08:33:02.000Z
import pytest from django.core.exceptions import ValidationError as DjangoValidationError from marshmallow.exceptions import ValidationError from projectx.common.validation import SchemaError, load_data_from_schema from projectx.users import validation from projectx.users.models import User def test_numbervalidator(...
33.039088
118
0.689934
1,146
10,143
5.884817
0.139616
0.033215
0.030842
0.032028
0.667556
0.596975
0.550563
0.494365
0.456851
0.406139
0
0.01157
0.181997
10,143
306
119
33.147059
0.801253
0.005127
0
0.389381
0
0
0.241748
0.029141
0
0
0
0
0.119469
1
0.146018
false
0.261062
0.026549
0.004425
0.176991
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e135340932d01f70fdd74357749f0d2f0fd0636c
1,825
py
Python
backend-service/bot_proxy_server/proxy_service/migrations/0005_auto_20200911_0504.py
sravankumarmatta/Classroom-Bot
2081600c553c003ada4c0dadd2d4715e11c073d2
[ "MIT" ]
3
2020-09-21T15:27:05.000Z
2020-12-13T19:03:29.000Z
backend-service/bot_proxy_server/proxy_service/migrations/0005_auto_20200911_0504.py
sravankumarmatta/Classroom-Bot
2081600c553c003ada4c0dadd2d4715e11c073d2
[ "MIT" ]
40
2020-09-06T08:18:05.000Z
2020-10-20T18:08:23.000Z
backend-service/bot_proxy_server/proxy_service/migrations/0005_auto_20200911_0504.py
sravankumarmatta/Classroom-Bot
2081600c553c003ada4c0dadd2d4715e11c073d2
[ "MIT" ]
8
2020-09-22T03:21:18.000Z
2020-10-17T15:14:49.000Z
# Generated by Django 3.1 on 2020-09-11 05:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('proxy_service', '0004_botserverendpoint'), ] operations = [ migrations.CreateModel( name='CommandRequest', fields=[ ...
44.512195
109
0.500822
145
1,825
6.151724
0.482759
0.050448
0.084081
0.100897
0.270179
0.270179
0.196188
0.196188
0.196188
0.136771
0
0.028269
0.379726
1,825
40
110
45.625
0.759717
0.023562
0
0.147059
1
0
0.162921
0.024719
0
0
0
0
0
1
0
false
0
0.029412
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e140305308072915c39d6964f27c3475aaf9334e
683
py
Python
wecom_base/models/wecom_app_subtype.py
rainbow-studio-solution/wecom
937ea9c15c5ef42ba749c67335ede85544292aad
[ "MulanPSL-1.0" ]
5
2021-12-17T06:44:41.000Z
2022-02-05T03:34:07.000Z
wecom_base/models/wecom_app_subtype.py
rainbow-studio-solution/wecom
937ea9c15c5ef42ba749c67335ede85544292aad
[ "MulanPSL-1.0" ]
null
null
null
wecom_base/models/wecom_app_subtype.py
rainbow-studio-solution/wecom
937ea9c15c5ef42ba749c67335ede85544292aad
[ "MulanPSL-1.0" ]
2
2022-02-06T13:27:56.000Z
2022-02-27T08:06:59.000Z
# -*- coding: utf-8 -*- from odoo import _, api, fields, models class WeComAppType(models.Model): _name = "wecom.app.subtype" _description = "Wecom Application Subtype" _order = "parent_id,sequence" name = fields.Char(string="Name", translate=True, copy=False, required=True,) parent_id = fields...
27.32
84
0.629575
79
683
5.316456
0.556962
0.064286
0.121429
0.15
0.119048
0
0
0
0
0
0
0.005629
0.219619
683
24
85
28.458333
0.782364
0.030747
0
0
0
0
0.209091
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.588235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e14036f34016d41c9c39b3158e6f3510bf952c16
50,313
py
Python
benchmark/run_1yr_fullchem_benchmark.py
sdeastham/gcpy
941fd7b55510cbe4dae8771ad316a4f927490951
[ "NCSA", "Apache-2.0", "MIT" ]
null
null
null
benchmark/run_1yr_fullchem_benchmark.py
sdeastham/gcpy
941fd7b55510cbe4dae8771ad316a4f927490951
[ "NCSA", "Apache-2.0", "MIT" ]
null
null
null
benchmark/run_1yr_fullchem_benchmark.py
sdeastham/gcpy
941fd7b55510cbe4dae8771ad316a4f927490951
[ "NCSA", "Apache-2.0", "MIT" ]
null
null
null
#!/usr/bin/env python """ run_1yr_fullchem_benchmark.py: Driver script for creating benchmark plots and testing gcpy 1-year full-chemistry benchmark capability. Run this script to generate benchmark comparisons between: (1) GCC (aka GEOS-Chem "Classic"...
37.772523
110
0.525451
5,609
50,313
4.39294
0.084864
0.037135
0.033239
0.021388
0.75414
0.705601
0.661891
0.621388
0.583401
0.546104
0
0.005661
0.294278
50,313
1,331
111
37.800902
0.688287
0.291913
0
0.650633
0
0.001266
0.08994
0.008876
0
0
0
0
0
1
0.010127
false
0
0.016456
0
0.031646
0.056962
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e145f7a6858701c5e1b97fdfca1341a4f9f4f49a
1,706
py
Python
actor/urls.py
mulinfro/jaikuengine
7399d27238136d203fa471b6757025a78166fe3d
[ "Apache-2.0" ]
8
2016-01-02T17:15:39.000Z
2017-10-18T01:26:18.000Z
actor/urls.py
mulinfro/jaikuengine
7399d27238136d203fa471b6757025a78166fe3d
[ "Apache-2.0" ]
1
2017-10-18T13:18:33.000Z
2017-10-18T13:18:33.000Z
actor/urls.py
mulinfro/jaikuengine
7399d27238136d203fa471b6757025a78166fe3d
[ "Apache-2.0" ]
4
2016-08-01T14:50:11.000Z
2021-04-03T19:43:06.000Z
# Copyright 2009 Google Inc. # # 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 agreed to in writing, ...
41.609756
84
0.665299
238
1,706
4.689076
0.42437
0.050179
0.078853
0.100358
0.280466
0.244624
0.182796
0.145161
0.137993
0.077061
0
0.013495
0.131301
1,706
40
85
42.65
0.739541
0.378664
0
0
0
0.05
0.641762
0.372605
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e14a26f452864fefabf3f5ee65d851a1ef7d8e11
806
py
Python
wikilabels/utilities/remove_expired_tasks.py
aryan040501/wikilabels
ea110da2b969cc978a0f288c4da6250dc9d67e72
[ "MIT" ]
15
2015-07-16T17:56:43.000Z
2018-08-20T14:59:16.000Z
wikilabels/utilities/remove_expired_tasks.py
aryan040501/wikilabels
ea110da2b969cc978a0f288c4da6250dc9d67e72
[ "MIT" ]
122
2015-06-10T15:58:11.000Z
2018-08-16T14:56:23.000Z
wikilabels/utilities/remove_expired_tasks.py
aryan040501/wikilabels
ea110da2b969cc978a0f288c4da6250dc9d67e72
[ "MIT" ]
27
2015-07-15T22:12:35.000Z
2018-08-06T23:10:28.000Z
""" Remove incomplete tasks from expired worksets. Usage: remove_expired_tasks -h | --help remove_expired_tasks [--config=<path>] Options: -h --help Prints this documentation --config=<path> Path to a config directory to use when connecting to the database [default: config...
21.210526
70
0.669975
106
806
4.933962
0.5
0.07457
0.10325
0
0
0
0
0
0
0
0
0
0.209677
806
37
71
21.783784
0.821036
0.394541
0
0
0
0
0.072917
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.5
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e14af5058375524308a9f67be27ee76263310a5e
1,560
py
Python
src/pyams_table/value.py
Py-AMS/pyams-table
5b94a4cb2fa8874372f5ea40a202940881ba86b9
[ "ZPL-2.1" ]
null
null
null
src/pyams_table/value.py
Py-AMS/pyams-table
5b94a4cb2fa8874372f5ea40a202940881ba86b9
[ "ZPL-2.1" ]
null
null
null
src/pyams_table/value.py
Py-AMS/pyams-table
5b94a4cb2fa8874372f5ea40a202940881ba86b9
[ "ZPL-2.1" ]
null
null
null
# # Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net> # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
30
81
0.762179
185
1,560
6.372973
0.524324
0.040712
0.023749
0.047498
0.100085
0.059372
0
0
0
0
0
0.007587
0.155128
1,560
51
82
30.588235
0.88695
0.452564
0
0.222222
0
0
0.019704
0
0
0
0
0
0
1
0.111111
false
0
0.277778
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e14d530f1071305ddf7c82d89a2b6f2853a85d57
1,352
py
Python
src/openprocurement/tender/competitivedialogue/views/stage2/cancellation_complaint.py
pontostroy/api
5afdd3a62a8e562cf77e2d963d88f1a26613d16a
[ "Apache-2.0" ]
10
2020-02-18T01:56:21.000Z
2022-03-28T00:32:57.000Z
src/openprocurement/tender/competitivedialogue/views/stage2/cancellation_complaint.py
pontostroy/api
5afdd3a62a8e562cf77e2d963d88f1a26613d16a
[ "Apache-2.0" ]
26
2018-07-16T09:30:44.000Z
2021-02-02T17:51:30.000Z
src/openprocurement/tender/competitivedialogue/views/stage2/cancellation_complaint.py
pontostroy/api
5afdd3a62a8e562cf77e2d963d88f1a26613d16a
[ "Apache-2.0" ]
15
2019-08-08T10:50:47.000Z
2022-02-05T14:13:36.000Z
# -*- coding: utf-8 -*- from openprocurement.tender.core.views.cancellation_complaint import TenderCancellationComplaintResource from openprocurement.tender.core.utils import optendersresource from openprocurement.tender.competitivedialogue.constants import STAGE_2_EU_TYPE, STAGE_2_UA_TYPE @optendersresource( na...
48.285714
104
0.817308
129
1,352
8.325581
0.294574
0.044693
0.029795
0.070764
0.484171
0.484171
0.409683
0.409683
0.3054
0.3054
0
0.008921
0.088018
1,352
27
105
50.074074
0.862125
0.066568
0
0.315789
0
0
0.366693
0.225781
0
0
0
0
0
1
0
true
0
0.157895
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
e14dfd44ec71a69d60c2231e562ee67fda8f78ec
11,138
py
Python
tests/app/main/views/test_login.py
AusDTO/dto-digitalmarketplace-admin-frontend
1858a653623999d81bb4fa3e51f7cb4df4b83079
[ "MIT" ]
1
2018-01-04T18:10:28.000Z
2018-01-04T18:10:28.000Z
tests/app/main/views/test_login.py
AusDTO/dto-digitalmarketplace-admin-frontend
1858a653623999d81bb4fa3e51f7cb4df4b83079
[ "MIT" ]
5
2016-12-12T04:58:12.000Z
2019-02-05T21:19:38.000Z
tests/app/main/views/test_login.py
AusDTO/dto-digitalmarketplace-admin-frontend
1858a653623999d81bb4fa3e51f7cb4df4b83079
[ "MIT" ]
3
2017-06-19T07:51:38.000Z
2021-01-12T12:30:22.000Z
from functools import wraps from lxml import html from nose.tools import assert_equal, assert_in import mock import pytest from urllib.parse import urlsplit from dmutils.forms import FakeCsrf from dmutils.user import User from ...helpers import BaseApplicationTest, LoggedInApplicationTest def user_data(role='admin'...
36.638158
98
0.635033
1,301
11,138
5.125288
0.142967
0.033593
0.062388
0.054139
0.685213
0.640222
0.611578
0.60198
0.556989
0.543341
0
0.02989
0.249057
11,138
303
99
36.759076
0.767336
0
0
0.448413
0
0
0.188993
0.071018
0
0
0
0
0.15873
1
0.119048
false
0.055556
0.035714
0.003968
0.18254
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e15163d63262c16c5d2c89f027471d0a73617e61
300
py
Python
hacktheback/messenger/validators.py
hackthevalley/hack-the-back
a418f2d2751656fed76d0b8c95c8e2a060525e78
[ "MIT" ]
null
null
null
hacktheback/messenger/validators.py
hackthevalley/hack-the-back
a418f2d2751656fed76d0b8c95c8e2a060525e78
[ "MIT" ]
null
null
null
hacktheback/messenger/validators.py
hackthevalley/hack-the-back
a418f2d2751656fed76d0b8c95c8e2a060525e78
[ "MIT" ]
null
null
null
from django.core.exceptions import ValidationError from django.utils.translation import gettext as _ from hacktheback.messenger.utils import render_mjml def validate_mjml(value): rendered = render_mjml(value) if rendered is None: raise ValidationError(_("The value is not MJML."))
27.272727
58
0.773333
39
300
5.820513
0.615385
0.088106
0
0
0
0
0
0
0
0
0
0
0.16
300
10
59
30
0.900794
0
0
0
0
0
0.073333
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e1523f9b1cb669b00b673d2ffbc27bda318d05b3
176
py
Python
scripts/LinuxVersion/main.py
Lyniat/AutomatedWallpaperChanger
76093f4f9bd20d8fdfd497f6dfbe93d22b17feac
[ "MIT" ]
null
null
null
scripts/LinuxVersion/main.py
Lyniat/AutomatedWallpaperChanger
76093f4f9bd20d8fdfd497f6dfbe93d22b17feac
[ "MIT" ]
null
null
null
scripts/LinuxVersion/main.py
Lyniat/AutomatedWallpaperChanger
76093f4f9bd20d8fdfd497f6dfbe93d22b17feac
[ "MIT" ]
1
2021-07-19T17:32:04.000Z
2021-07-19T17:32:04.000Z
__author__ = "Marten Scheuck" """This runs the Linux Version of the AWC""" def main(): """Main function to run all the code""" ... if __name__ == "__main__": ...
17.6
44
0.602273
23
176
4.086957
0.826087
0
0
0
0
0
0
0
0
0
0
0
0.232955
176
10
45
17.6
0.696296
0.1875
0
0.4
0
0
0.234043
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e15a471962990f7bcb564e4badc6c0912783b14d
267
py
Python
slack_forms/logging/logging.py
rmorison/slack_forms
4f8bfae889941643d43a6564a5d74e52018d7ee8
[ "ISC" ]
null
null
null
slack_forms/logging/logging.py
rmorison/slack_forms
4f8bfae889941643d43a6564a5d74e52018d7ee8
[ "ISC" ]
null
null
null
slack_forms/logging/logging.py
rmorison/slack_forms
4f8bfae889941643d43a6564a5d74e52018d7ee8
[ "ISC" ]
2
2021-09-21T15:20:52.000Z
2021-09-21T17:39:14.000Z
import sys import logging import json_logging # type: ignore def getLogger(name): json_logging.init_non_web(enable_json=True) log = logging.getLogger(name) log.setLevel(logging.INFO) log.addHandler(logging.StreamHandler(sys.stdout)) return log
22.25
53
0.752809
36
267
5.444444
0.583333
0.112245
0
0
0
0
0
0
0
0
0
0
0.157303
267
11
54
24.272727
0.871111
0.044944
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e15bbf13ac4acc0375c713c83f7a990a1120b692
278
py
Python
MADI/MADI/trabajo/touch.py
LabK3OS/MADI_blocky
95cd44a8ee9c22275fae681870b41bffcc5090a5
[ "Apache-2.0" ]
1
2020-08-27T19:51:26.000Z
2020-08-27T19:51:26.000Z
MADI/MADI/trabajo/touch.py
LabK3OS/MADI_blocky
95cd44a8ee9c22275fae681870b41bffcc5090a5
[ "Apache-2.0" ]
null
null
null
MADI/MADI/trabajo/touch.py
LabK3OS/MADI_blocky
95cd44a8ee9c22275fae681870b41bffcc5090a5
[ "Apache-2.0" ]
null
null
null
import time from machine import Pin from machine import PWM from machine import TouchPad musica_1 = None Touch = None a = None musica_1 = PWM(Pin(25)) Touch= TouchPad(Pin(33)) Touch.config(1000) while True: a = Touch.read() print('Touch: {0}'.format(a)) time.sleep(1)
14.631579
31
0.708633
46
278
4.23913
0.5
0.169231
0.261538
0
0
0
0
0
0
0
0
0.051948
0.169065
278
18
32
15.444444
0.792208
0
0
0
0
0
0.035971
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.071429
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e1736ca0254268f57a57449a6d3fe43aa3dd4e69
540
py
Python
utest/test/api/my_lib_args.py
hugovk/SeleniumLibrary
489178c1beb16a4b90747ed35bad7dac80a1cc24
[ "ECL-2.0", "Apache-2.0" ]
792
2015-09-28T15:22:48.000Z
2022-03-27T21:31:34.000Z
utest/test/api/my_lib_args.py
hugovk/SeleniumLibrary
489178c1beb16a4b90747ed35bad7dac80a1cc24
[ "ECL-2.0", "Apache-2.0" ]
710
2015-08-20T13:31:20.000Z
2022-03-24T15:33:20.000Z
utest/test/api/my_lib_args.py
hugovk/SeleniumLibrary
489178c1beb16a4b90747ed35bad7dac80a1cc24
[ "ECL-2.0", "Apache-2.0" ]
429
2016-10-26T08:26:09.000Z
2022-03-28T23:19:42.000Z
from SeleniumLibrary.base import LibraryComponent, keyword class my_lib_args(LibraryComponent): def __init__(self, ctx, arg1, arg2, *args, **kwargs): LibraryComponent.__init__(self, ctx) self.arg1 = arg1 self.arg2 = arg2 self.args = args self.kwargs = kwargs @keyword(t...
22.5
58
0.605556
67
540
4.686567
0.402985
0.101911
0.070064
0
0
0
0
0
0
0
0
0.02046
0.275926
540
23
59
23.478261
0.782609
0
0
0.111111
0
0
0.014815
0
0
0
0
0
0
1
0.222222
false
0
0.055556
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e17ab05e443318fa78a464c61c2cc5fdc015f1a3
6,172
py
Python
src/cm/views/admin_cm/storage_image.py
cc1-cloud/cc1
8113673fa13b6fe195cea99dedab9616aeca3ae8
[ "Apache-2.0" ]
11
2015-05-06T14:16:54.000Z
2022-02-08T23:21:31.000Z
src/cm/views/admin_cm/storage_image.py
fortress-shell/cc1
8113673fa13b6fe195cea99dedab9616aeca3ae8
[ "Apache-2.0" ]
1
2015-10-30T21:08:11.000Z
2015-10-30T21:08:11.000Z
src/cm/views/admin_cm/storage_image.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...
31.171717
141
0.728451
841
6,172
5.151011
0.280618
0.024238
0.038781
0.021006
0.26108
0.16759
0.118652
0.07687
0.042475
0.042475
0
0.002569
0.180169
6,172
197
142
31.329949
0.853557
0.116008
0
0.280488
0
0
0.060079
0
0
0
0
0.005076
0
0
null
null
0
0.170732
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e17cd3dbb8d32d1235cfe41f50b615aeb758ed61
3,734
py
Python
umassaccess/umapp/views.py
ReverseTheKirs/umass-access
f441d8e6b20dc1f642540971e0f8885cc617a235
[ "MIT" ]
1
2018-04-10T22:47:39.000Z
2018-04-10T22:47:39.000Z
umassaccess/umapp/views.py
ReverseTheKirs/umass-access
f441d8e6b20dc1f642540971e0f8885cc617a235
[ "MIT" ]
null
null
null
umassaccess/umapp/views.py
ReverseTheKirs/umass-access
f441d8e6b20dc1f642540971e0f8885cc617a235
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.template import Context, loader from django.core.exceptions import ObjectDoesNotExist from django.http import HttpResponse, JsonResponse fr...
31.378151
213
0.700857
484
3,734
5.233471
0.456612
0.023687
0.015397
0.030794
0.114489
0.052112
0.036321
0.036321
0
0
0
0.003783
0.150509
3,734
118
214
31.644068
0.794767
0.039368
0
0.2375
0
0
0.143186
0
0
0
0
0
0
0
null
null
0
0.15
null
null
0.0125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e18501a152a2c23ca698622c84fa2cef25c10e1b
7,313
py
Python
main_app/migrations/0001_initial.py
RTUITLab/ArtWay-Backend
ea33a9d7543d881dbcc39b37a47f20b1b2f496e6
[ "Apache-2.0" ]
null
null
null
main_app/migrations/0001_initial.py
RTUITLab/ArtWay-Backend
ea33a9d7543d881dbcc39b37a47f20b1b2f496e6
[ "Apache-2.0" ]
5
2021-11-26T09:42:04.000Z
2022-03-12T01:01:13.000Z
main_app/migrations/0001_initial.py
RTUITLab/ArtWay-Backend
ea33a9d7543d881dbcc39b37a47f20b1b2f496e6
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.6 on 2021-11-27 17:38 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
57.132813
193
0.610283
729
7,313
5.91358
0.207133
0.14289
0.037114
0.040826
0.635815
0.635815
0.616562
0.574113
0.563442
0.534911
0
0.009271
0.247778
7,313
127
194
57.582677
0.774405
0.006153
0
0.483333
1
0
0.212084
0.024498
0
0
0
0
0
1
0
false
0
0.033333
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e187a81b98a5671456da666f31a23918c824e4a5
2,241
py
Python
src/messengers/facebook_messenger/facebook_messenger_notification_listener.py
debendda/multimessenger
0b20c4a511cb06c85309306d513c8942ae7adbeb
[ "MIT" ]
null
null
null
src/messengers/facebook_messenger/facebook_messenger_notification_listener.py
debendda/multimessenger
0b20c4a511cb06c85309306d513c8942ae7adbeb
[ "MIT" ]
null
null
null
src/messengers/facebook_messenger/facebook_messenger_notification_listener.py
debendda/multimessenger
0b20c4a511cb06c85309306d513c8942ae7adbeb
[ "MIT" ]
null
null
null
import asyncio import fbchat import queue from messengers.facebook_messenger.facebook_messenger_notifications import FacebookMessengerNotifications class FacebookNotificationListener(): def __init__(self) -> None: self.client = fbchat.Client self.session = fbchat.Session self.listener = fbc...
36.737705
105
0.639447
249
2,241
5.582329
0.329317
0.047482
0.051799
0.031655
0.073381
0.040288
0
0
0
0
0
0.005481
0.267291
2,241
61
106
36.737705
0.841048
0.012494
0
0.04
0
0
0.009038
0
0
0
0
0
0
1
0.12
false
0.08
0.08
0
0.24
0.06
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e1895b13835d4b3a5589c04e4b1a76aec8bfcc95
421
py
Python
examples/api_login.py
kingrollsdice/p2pcam
b4f1124b081e2ae8d525dac434fec9704ec8458a
[ "MIT" ]
3
2021-05-14T20:36:48.000Z
2021-06-14T10:04:01.000Z
examples/api_login.py
kingrollsdice/p2pcam
b4f1124b081e2ae8d525dac434fec9704ec8458a
[ "MIT" ]
null
null
null
examples/api_login.py
kingrollsdice/p2pcam
b4f1124b081e2ae8d525dac434fec9704ec8458a
[ "MIT" ]
1
2021-09-21T11:49:48.000Z
2021-09-21T11:49:48.000Z
import argparse import json import p2pcam.api as api parser = argparse.ArgumentParser() parser.add_argument("phone_id") parser.add_argument("username") parser.add_argument("password") def main(): args = parser.parse_args() login_resp = api.login(args.username, args.password, phone_id=args.phone_id) wi...
22.157895
80
0.729216
61
421
4.868852
0.491803
0.090909
0.171717
0
0
0
0
0
0
0
0
0.005495
0.135392
421
18
81
23.388889
0.81044
0
0
0
0
0
0.109264
0.049881
0
0
0
0
0
1
0.083333
false
0.166667
0.25
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e18e1288b55a6e36d069a8e69ca9a9d37d63295d
1,716
py
Python
examples/mutations-simple-counter.py
johnpaulguzman/py-gql
5a2d180537218e1c30c65b2a933fb4fe197785ae
[ "MIT" ]
6
2019-04-30T10:48:09.000Z
2021-08-19T15:57:53.000Z
examples/mutations-simple-counter.py
johnpaulguzman/py-gql
5a2d180537218e1c30c65b2a933fb4fe197785ae
[ "MIT" ]
6
2019-04-08T12:39:08.000Z
2020-08-10T15:00:18.000Z
examples/mutations-simple-counter.py
johnpaulguzman/py-gql
5a2d180537218e1c30c65b2a933fb4fe197785ae
[ "MIT" ]
2
2021-04-14T07:06:15.000Z
2021-08-19T15:58:46.000Z
# -*- coding: utf-8 -*- """ Simple mutations example: incrementing and decrementing a global counter. """ from py_gql import build_schema, graphql_blocking ROOT = {"counter": 0} schema = build_schema( """ type Query { counter: Int } type Mutation { increment(amount: Int = 1): Int ...
21.185185
73
0.55711
172
1,716
5.5
0.348837
0.110994
0.133192
0.171247
0.408034
0.408034
0.356237
0.356237
0.263214
0.263214
0
0.011129
0.2669
1,716
80
74
21.45
0.740859
0.078089
0
0.136364
0
0
0.257471
0
0
0
0
0
0.136364
1
0.045455
false
0
0.022727
0
0.113636
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e191cf7e5ab36b4d3c4a051bbca45516dd4d971f
3,586
py
Python
var/spack/repos/builtin/packages/py-sphinx/package.py
mt-empty/spack
4573261de5b32bb22289752b9023aa767b50b700
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-03-05T10:54:32.000Z
2021-03-05T14:14:52.000Z
var/spack/repos/builtin/packages/py-sphinx/package.py
mt-empty/spack
4573261de5b32bb22289752b9023aa767b50b700
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
32
2020-12-15T17:29:20.000Z
2022-03-21T15:08:31.000Z
var/spack/repos/builtin/packages/py-sphinx/package.py
mt-empty/spack
4573261de5b32bb22289752b9023aa767b50b700
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-07-19T20:31:27.000Z
2021-07-19T21:14:14.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PySphinx(PythonPackage): """Sphinx Documentation Generator.""" homepage = "https://sp...
59.766667
95
0.691857
438
3,586
5.607306
0.283105
0.091612
0.12215
0.185668
0.311075
0.311075
0.296824
0.172231
0.111971
0.028502
0
0.198445
0.103458
3,586
59
96
60.779661
0.565474
0.117959
0
0
0
0
0.529206
0.360952
0
0
0
0
0
1
0
false
0
0.02381
0
0.095238
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e191e5f0e79dc332ac1d933a83543896c787f971
3,212
py
Python
callsignlookuptools/__main__.py
miaowware/callsignlookuptools
d4fa15c82c37e48b9a3945b337170b05691a3824
[ "BSD-3-Clause" ]
null
null
null
callsignlookuptools/__main__.py
miaowware/callsignlookuptools
d4fa15c82c37e48b9a3945b337170b05691a3824
[ "BSD-3-Clause" ]
4
2021-04-22T02:26:42.000Z
2021-12-28T20:04:40.000Z
callsignlookuptools/__main__.py
miaowware/callsignlookuptools
d4fa15c82c37e48b9a3945b337170b05691a3824
[ "BSD-3-Clause" ]
null
null
null
""" callsignlookuptools commandline interface --- Copyright 2021 classabbyamp, 0x5c Released under the terms of the BSD 3-Clause license. """ from sys import stderr from typing import Optional from callsignlookuptools import __info__ from callsignlookuptools.common.enums import DataSource from callsignlookuptools.cl...
34.170213
113
0.635118
399
3,212
4.984962
0.298246
0.040221
0.032177
0.045249
0.471594
0.425842
0.39266
0.353444
0.353444
0.353444
0
0.003628
0.227584
3,212
93
114
34.537634
0.798065
0.159091
0
0.339286
0
0.017857
0.258283
0.030873
0
0
0
0
0
1
0.107143
false
0.160714
0.125
0
0.232143
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e191f8e45132787d57f28d77f54d85cd23b56630
1,024
py
Python
fluentcms_publishing/pagetypes/redirectnode/models.py
sigmacms/fluentcms-publishing
734412a7cb0c697cbe53fedc2c1fdaffd9251ba6
[ "MIT" ]
null
null
null
fluentcms_publishing/pagetypes/redirectnode/models.py
sigmacms/fluentcms-publishing
734412a7cb0c697cbe53fedc2c1fdaffd9251ba6
[ "MIT" ]
null
null
null
fluentcms_publishing/pagetypes/redirectnode/models.py
sigmacms/fluentcms-publishing
734412a7cb0c697cbe53fedc2c1fdaffd9251ba6
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from parler.models import TranslatedFields from fluent_pages.models import Page from fluent_utils.softdeps.any_urlfield import AnyUrlField from fluentcms_publishing.models import PublishingModel class RedirectNode(Page, Publishing...
32
107
0.71582
120
1,024
5.9
0.566667
0.067797
0.080508
0
0
0
0
0
0
0
0
0.014599
0.197266
1,024
31
108
33.032258
0.846715
0.106445
0
0
0
0
0.184855
0
0
0
0
0
0
1
0
false
0
0.315789
0
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e19412685f1999f50d060f03d79f83636fcd5e31
609
py
Python
rain_no.py
langphil/rain_notifier_rpi
e7e1a033511cf7b4e2d8554119716e8e1ffae6cb
[ "MIT" ]
2
2015-08-19T18:21:50.000Z
2016-06-03T08:07:03.000Z
rain_no.py
langphil/rain_notifier_rpi
e7e1a033511cf7b4e2d8554119716e8e1ffae6cb
[ "MIT" ]
null
null
null
rain_no.py
langphil/rain_notifier_rpi
e7e1a033511cf7b4e2d8554119716e8e1ffae6cb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Import the library functions we need import time import wiringpi2 as wiringpi wiringpi.wiringPiSetup() # Setup the LedBorg GPIO pins PIN_RED = 0 PIN_GREEN = 2 PIN_BLUE = 3 wiringpi.pinMode(PIN_RED, wiringpi.GPIO.OUTPUT) wiringpi.pinMode(PIN_GREEN, wiringpi.GPIO.OUTPUT) wiringpi.pinMode(PIN_BLU...
21.75
75
0.771757
99
609
4.656566
0.434343
0.039046
0.117137
0.112798
0.156182
0.156182
0
0
0
0
0
0.024809
0.139573
609
27
76
22.555556
0.854962
0.295567
0
0
0
0
0.026005
0
0
0
0
0
0
0
null
null
0
0.117647
null
null
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e1a2b4b45d6cfb7ddf11ae6a79c1e152337ee3f9
947
py
Python
fmcapi/api_objects/object_services/siurlfeeds.py
realvitya/fmcapi
38fb9a8da2d9ebbadf4ed4cb559244646b3bf3be
[ "BSD-3-Clause" ]
null
null
null
fmcapi/api_objects/object_services/siurlfeeds.py
realvitya/fmcapi
38fb9a8da2d9ebbadf4ed4cb559244646b3bf3be
[ "BSD-3-Clause" ]
null
null
null
fmcapi/api_objects/object_services/siurlfeeds.py
realvitya/fmcapi
38fb9a8da2d9ebbadf4ed4cb559244646b3bf3be
[ "BSD-3-Clause" ]
null
null
null
from fmcapi.api_objects.apiclasstemplate import APIClassTemplate import logging class SIUrlFeeds(APIClassTemplate): """ The SIUrlFeeds Object in the FMC. """ VALID_JSON_DATA = [ "id", "name", "type", "checksumURL", "feedURL", "updateFrequency", ...
24.282051
75
0.608237
101
947
5.49505
0.415842
0.093694
0.081081
0.081081
0.232432
0.232432
0.232432
0.232432
0.158559
0
0
0
0.282999
947
38
76
24.921053
0.817379
0.034847
0
0.107143
0
0
0.293987
0
0
0
0
0
0
1
0.142857
false
0.107143
0.071429
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e1a965a804861c974be538e302acf38246af45b2
548
py
Python
sensirion_sensorbridge_i2c_sfm/sfm3019/sfm3019_constants.py
Sensirion/python-sensorbridge-i2c-sfm
669b2296c5e0e9d39ad96d6238068ab1fc36d1b3
[ "BSD-3-Clause" ]
3
2020-04-13T15:08:08.000Z
2020-10-09T12:39:18.000Z
sensirion_sensorbridge_i2c_sfm/sfm3019/sfm3019_constants.py
Sensirion/python-sensorbridge-i2c-sfm
669b2296c5e0e9d39ad96d6238068ab1fc36d1b3
[ "BSD-3-Clause" ]
1
2020-06-17T23:49:44.000Z
2021-11-03T14:28:11.000Z
sensirion_sensorbridge_i2c_sfm/sfm3019/sfm3019_constants.py
Sensirion/python-sensorbridge-i2c-sfm
669b2296c5e0e9d39ad96d6238068ab1fc36d1b3
[ "BSD-3-Clause" ]
null
null
null
from enum import Enum class MeasurementMode(Enum): O2 = 0, Air = 1, AirO2Mix = 2, SFM3019_DEFAULT_I2C_FREQUENCY = 400e3 SFM3019_DEFAULT_VOLTAGE = 3.3 FLOW_UNIT_PREFIX = { 3: 'n', 4: 'u', 5: 'm', 6: 'c', 7: 'd', 8: '', 9: 'd', 10: 'h', 11: 'K', 12: 'M', 13: 'G...
12.177778
37
0.403285
81
548
2.604938
0.617284
0.132701
0
0
0
0
0
0
0
0
0
0.15625
0.357664
548
44
38
12.454545
0.443182
0
0
0
0
0
0.093066
0
0
0
0
0
0
1
0
false
0
0.027027
0
0.135135
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e1aa546411da6bfc3fae1c1fdcd7d45e40c01e1f
713
py
Python
Algorithms in Python for CS 4th sem DAA/6.py
MyCollegeForums/4thSemISE
7c8b64c594a081954e2a011e1dcac71638d5f9b5
[ "Apache-2.0" ]
null
null
null
Algorithms in Python for CS 4th sem DAA/6.py
MyCollegeForums/4thSemISE
7c8b64c594a081954e2a011e1dcac71638d5f9b5
[ "Apache-2.0" ]
1
2018-02-06T10:51:31.000Z
2018-02-06T10:51:31.000Z
Algorithms in Python for CS 4th sem DAA/6.py
MyCollegeForums/4thSemISE
7c8b64c594a081954e2a011e1dcac71638d5f9b5
[ "Apache-2.0" ]
3
2018-02-06T10:46:32.000Z
2018-04-23T13:41:07.000Z
import random import time def merge(a,b): m=[] c=0 while len(a) and len(b): if a[0]<b[0]: m.append(a.pop(0)) else: c+=len(a) m.append(b.pop(0)) if len(a) == 0: m+=b if len(b) == 0: m+=a return m,c def sort(arr): if len(arr) <= 1: return arr,0 ...
19.27027
40
0.524544
131
713
2.854962
0.374046
0.032086
0.016043
0
0
0
0
0
0
0
0
0.035088
0.280505
713
36
41
19.805556
0.693957
0
0
0
0
0
0.110799
0
0
0
0
0
0
0
null
null
0
0.057143
null
null
0.114286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e1bfac6ea67f490fb98b8c3dfdea5ed5f92fe637
438
py
Python
Proyect_support.py
MartinImoberdorf/MyTimetableZoom2022
94ad715b8781ac66e83906ebd78d51cb27a671f8
[ "Unlicense" ]
null
null
null
Proyect_support.py
MartinImoberdorf/MyTimetableZoom2022
94ad715b8781ac66e83906ebd78d51cb27a671f8
[ "Unlicense" ]
null
null
null
Proyect_support.py
MartinImoberdorf/MyTimetableZoom2022
94ad715b8781ac66e83906ebd78d51cb27a671f8
[ "Unlicense" ]
null
null
null
import sys import tkinter as tk import tkinter.ttk as ttk from tkinter.constants import * import Proyect def main(*args): '''Main entry point for the application.''' global root root = tk.Tk() root.protocol( 'WM_DELETE_WINDOW' , root.destroy) # Creates a toplevel widget. global _top1, _w1 ...
21.9
53
0.682648
59
438
4.79661
0.610169
0.091873
0
0
0
0
0
0
0
0
0
0.017493
0.216895
438
20
54
21.9
0.80758
0.148402
0
0
0
0
0.065217
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e1c2994ed6caed57b35d5bc8634437dfe03ea602
1,313
py
Python
docs/demos/theme_explorer/spinner.py
sthagen/facultyai-dash-bootstrap-components
2dd5eaf1c1494b2077bcee82eb7968ec2e23af46
[ "Apache-2.0" ]
50
2018-09-23T08:57:28.000Z
2019-02-02T19:59:35.000Z
docs/demos/theme_explorer/spinner.py
sthagen/dash-bootstrap-components
d79ad7f8fdf4c26165038e6989e24f2ac17663b1
[ "Apache-2.0" ]
99
2018-09-21T11:06:29.000Z
2019-02-04T09:04:07.000Z
docs/demos/theme_explorer/spinner.py
sthagen/dash-bootstrap-components
d79ad7f8fdf4c26165038e6989e24f2ac17663b1
[ "Apache-2.0" ]
3
2018-09-25T02:16:24.000Z
2018-12-22T20:56:31.000Z
import dash_bootstrap_components as dbc from dash import html from .util import make_subheading spinner = html.Div( [ make_subheading("Spinner", "spinner"), html.Div( [ dbc.Spinner(color=col) for col in [ "primary", ...
24.773585
60
0.329018
87
1,313
4.91954
0.413793
0.065421
0.070093
0.079439
0.665888
0.511682
0.308411
0.308411
0.308411
0.308411
0
0.006944
0.56131
1,313
52
61
25.25
0.736111
0
0
0.62
0
0
0.102818
0
0
0
0
0
0
1
0
false
0
0.06
0
0.06
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e1c5d1bde3013d525521fb619ba78461c774f9b7
856
py
Python
club/migrations/0016_auto_20191222_2321.py
DSC-RPI/dsc-portal
bf2d0c067d10dd199317ccc00863d85db0d07094
[ "MIT" ]
2
2020-01-29T20:14:35.000Z
2020-02-15T23:01:42.000Z
club/migrations/0016_auto_20191222_2321.py
DSC-RPI/dsc-portal
bf2d0c067d10dd199317ccc00863d85db0d07094
[ "MIT" ]
62
2019-11-26T17:47:58.000Z
2022-01-13T02:05:51.000Z
club/migrations/0016_auto_20191222_2321.py
DSC-RPI/dsc-portal
bf2d0c067d10dd199317ccc00863d85db0d07094
[ "MIT" ]
1
2020-01-23T17:12:38.000Z
2020-01-23T17:12:38.000Z
# Generated by Django 3.0.1 on 2019-12-23 04:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('club', '0015_event_attendance_code'), ] operations = [ migrations.AddField( model_name='member', name='grade', ...
35.666667
254
0.608645
100
856
5.11
0.68
0.082192
0.078278
0.097847
0.113503
0
0
0
0
0
0
0.032159
0.23715
856
23
255
37.217391
0.750383
0.05257
0
0.117647
1
0
0.285538
0.032138
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e1c61ae859b22d84f59fb6bc92b08ce85671bf23
1,645
py
Python
tests/unit_tests/test_commands/test_dump_if_command.py
ismaelJimenez/mamba_server
e6e2343291a0df24f226bde0d13e5bfa74cc3650
[ "MIT" ]
null
null
null
tests/unit_tests/test_commands/test_dump_if_command.py
ismaelJimenez/mamba_server
e6e2343291a0df24f226bde0d13e5bfa74cc3650
[ "MIT" ]
null
null
null
tests/unit_tests/test_commands/test_dump_if_command.py
ismaelJimenez/mamba_server
e6e2343291a0df24f226bde0d13e5bfa74cc3650
[ "MIT" ]
null
null
null
from tempfile import mkdtemp from os.path import join, exists from shutil import rmtree from mamba.core.testing.utils import get_testenv, cmd_exec, cmd_exec_output class TestClass: project_name = 'testproject' def setup_class(self): """ setup_class called once for the class """ pass def...
33.571429
75
0.635866
224
1,645
4.450893
0.263393
0.066199
0.088265
0.090271
0.561685
0.509529
0.509529
0.457372
0.359077
0.359077
0
0.002449
0.255319
1,645
49
76
33.571429
0.811429
0.096049
0
0.457143
0
0
0.158003
0
0
0
0
0
0.342857
1
0.2
false
0.057143
0.114286
0
0.371429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e1c8c0d6794914e8ed77be4d90226040726c7f10
2,936
py
Python
albt/printmsg.py
geothird/albt
2159f5462f7b71cf8c21affbe1f45baa3f653a02
[ "MIT" ]
2
2017-06-05T15:00:28.000Z
2017-06-05T16:06:47.000Z
albt/printmsg.py
geothird/albt
2159f5462f7b71cf8c21affbe1f45baa3f653a02
[ "MIT" ]
1
2021-03-25T21:40:30.000Z
2021-03-25T21:40:30.000Z
albt/printmsg.py
geothird/albt
2159f5462f7b71cf8c21affbe1f45baa3f653a02
[ "MIT" ]
1
2018-12-10T15:47:28.000Z
2018-12-10T15:47:28.000Z
import click class PrintMsg(object): """ Print messages """ debug = True @staticmethod def creating(msg, cmd_color='green', color='white', bold=False): """ Print creating :param cmd_color: :param msg: :param color: :param bold: :return: ...
24.264463
74
0.51703
305
2,936
4.878689
0.140984
0.096774
0.080645
0.102151
0.647849
0.5625
0.424731
0.381048
0.356183
0.275538
0
0
0.354223
2,936
120
75
24.466667
0.78481
0.24455
0
0.361111
0
0
0.070866
0
0
0
0
0
0
1
0.25
false
0
0.027778
0
0.361111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e1cb074a82213d19132d1daf49757e1e5edce633
675
py
Python
src/campaigns/migrations/0011_campaignlocationshift_shift_leader.py
mrts/foodbank-campaign
fbb059f3ebe44dccde4895964242b105421a69d1
[ "MIT" ]
1
2021-03-20T10:14:21.000Z
2021-03-20T10:14:21.000Z
src/campaigns/migrations/0011_campaignlocationshift_shift_leader.py
mrts/foodbank-campaign
fbb059f3ebe44dccde4895964242b105421a69d1
[ "MIT" ]
4
2018-03-24T21:49:02.000Z
2021-01-13T21:31:44.000Z
src/campaigns/migrations/0011_campaignlocationshift_shift_leader.py
mrts/foodbank-campaign
fbb059f3ebe44dccde4895964242b105421a69d1
[ "MIT" ]
3
2018-04-15T16:34:46.000Z
2019-11-13T16:38:05.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-11-01 22:34 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('volunteers', '0010_shiftleader'), ('campaigns', '00...
28.125
117
0.653333
74
675
5.783784
0.689189
0.056075
0.065421
0.102804
0
0
0
0
0
0
0
0.070881
0.226667
675
23
118
29.347826
0.749042
0.100741
0
0
1
0
0.203642
0.072848
0
0
0
0
0
1
0
false
0
0.1875
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bed0eb8855e6b1cec6df32b7dd2b5a04c3c71841
539
py
Python
conda_verify/errors.py
mandeep/conda-verify
a7ba93c2cbdac80886c4ed1f6502842a0baf97d0
[ "BSD-3-Clause" ]
null
null
null
conda_verify/errors.py
mandeep/conda-verify
a7ba93c2cbdac80886c4ed1f6502842a0baf97d0
[ "BSD-3-Clause" ]
null
null
null
conda_verify/errors.py
mandeep/conda-verify
a7ba93c2cbdac80886c4ed1f6502842a0baf97d0
[ "BSD-3-Clause" ]
null
null
null
from collections import namedtuple class PackageError(Exception): """Exception to be raised when user wants to exit on error.""" class RecipeError(Exception): """Exception to be raised when user wants to exit on error.""" class Error(namedtuple('Error', ['file', 'code', 'message'])): """Error class cr...
29.944444
77
0.675325
72
539
4.944444
0.5
0.033708
0.11236
0.123596
0.331461
0.331461
0.331461
0.331461
0.331461
0.331461
0
0
0.189239
539
17
78
31.705882
0.814645
0.434137
0
0
0
0
0.102113
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bed4c23e8d36e90f5b3d123d8f6dbb0555e4113e
10,901
py
Python
referentiel/models/supervisor.py
ZuluPro/snafu
dbd79da4617db315ba7e76a0af6805cc3b1cbae2
[ "BSD-3-Clause" ]
1
2017-12-13T20:28:32.000Z
2017-12-13T20:28:32.000Z
referentiel/models/supervisor.py
ZuluPro/snafu
dbd79da4617db315ba7e76a0af6805cc3b1cbae2
[ "BSD-3-Clause" ]
null
null
null
referentiel/models/supervisor.py
ZuluPro/snafu
dbd79da4617db315ba7e76a0af6805cc3b1cbae2
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from sendim.exceptions import UnableToConnectNagios import warnings warnings.filterwarnings("ignore",category=UserWarning, module='urllib2') class SupervisorType(models.Model) : name = models.CharField(max_length=30) class Meta: app_label = 'referentiel' def __unicode__(self): ...
33.033333
200
0.661407
1,471
10,901
4.790619
0.201903
0.021853
0.011069
0.012771
0.301547
0.226905
0.16092
0.122463
0.097346
0.078189
0
0.008023
0.188148
10,901
329
201
33.133739
0.788249
0.054674
0
0.272727
0
0.012987
0.162533
0.021425
0
0
0
0
0
0
null
null
0.025974
0.064935
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bed6c5f660bebe99a4e958289f23606c1d62ef3f
4,689
py
Python
src/Books/book.py
cclauss/pydantic-books-example
73e11157bf6712c5bcf79e264738729681811692
[ "Apache-2.0" ]
4
2021-11-02T08:27:45.000Z
2021-12-07T01:30:08.000Z
src/Books/book.py
cclauss/pydantic-books-example
73e11157bf6712c5bcf79e264738729681811692
[ "Apache-2.0" ]
null
null
null
src/Books/book.py
cclauss/pydantic-books-example
73e11157bf6712c5bcf79e264738729681811692
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from datetime import date from typing import Optional from pydantic import BaseModel, validator class Author(BaseModel): name: str @validator("name") def author_name_must_not_be_an_empty_string(cls, v): if not v: raise ValueError("name must not be ...
29.677215
189
0.617829
538
4,689
5.243494
0.202602
0.054591
0.038284
0.027295
0.595534
0.526409
0.479617
0.457285
0.423254
0.411202
0
0.014456
0.247601
4,689
157
190
29.866242
0.785147
0.643634
0
0.341463
0
0
0.12761
0
0
0
0
0
0
1
0.170732
false
0
0.097561
0
0.707317
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bed98391179e70ae1bcd01c810c585909886c02c
20,199
py
Python
prophyc/tests/test_prophyc.py
aurzenligl/prophy
4e60162b3871aa7c43a38f273c2840ce4cf758f7
[ "MIT" ]
14
2015-02-19T22:00:37.000Z
2020-11-30T03:03:55.000Z
prophyc/tests/test_prophyc.py
aurzenligl/prophy
4e60162b3871aa7c43a38f273c2840ce4cf758f7
[ "MIT" ]
31
2015-06-22T11:11:10.000Z
2021-05-12T06:35:47.000Z
prophyc/tests/test_prophyc.py
aurzenligl/prophy
4e60162b3871aa7c43a38f273c2840ce4cf758f7
[ "MIT" ]
16
2015-06-12T06:48:06.000Z
2019-11-26T22:48:13.000Z
import os main_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) empty_python_output = """\ # -*- encoding: utf-8 -*- # This file has been generated by prophyc. import sys import prophy """ def test_showing_version(call_prophyc): ret, out, err = call_prophyc(["--version"]) ...
27.369919
106
0.596911
2,673
20,199
4.316498
0.099514
0.090484
0.055209
0.051482
0.709048
0.65488
0.621685
0.570029
0.545762
0.511267
0
0.013218
0.235952
20,199
737
107
27.407056
0.7344
0
0
0.508333
1
0.02
0.496213
0.081489
0
0
0
0
0.178333
1
0.045
false
0.001667
0.015
0
0.073333
0.008333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
beddfffba488d9380ecc1b24a4ed2d7af5e0fbf2
1,071
py
Python
pyregion/tests/test_ds9_attr_parser.py
stefanor/pyregion
7e4378c5b41323f158cb208eea532faaf3e2745a
[ "MIT" ]
21
2015-03-10T19:47:14.000Z
2021-05-12T03:55:56.000Z
pyregion/tests/test_ds9_attr_parser.py
stefanor/pyregion
7e4378c5b41323f158cb208eea532faaf3e2745a
[ "MIT" ]
100
2015-02-06T18:53:14.000Z
2021-09-09T20:43:11.000Z
pyregion/tests/test_ds9_attr_parser.py
stefanor/pyregion
7e4378c5b41323f158cb208eea532faaf3e2745a
[ "MIT" ]
22
2015-03-18T05:16:19.000Z
2021-11-23T15:34:59.000Z
from ..ds9_attr_parser import get_ds9_attr_parser, get_attr, Ds9AttrParser def test_attr(): p = get_ds9_attr_parser() assert p.parseString("color=green")[0] == ("color", "green") assert p.parseString("font=\"123 123\"")[0] == ("font", '"123 123"') assert p.parseString("color")[0] == ("color",) ass...
31.5
74
0.570495
140
1,071
4.192857
0.285714
0.059625
0.153322
0.117547
0.074957
0
0
0
0
0
0
0.055556
0.210084
1,071
33
75
32.454545
0.638298
0
0
0.083333
0
0
0.200747
0
0
0
0
0
0.458333
1
0.125
false
0
0.041667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
bedf219d8b7c5ee8bb0b1219a38a794833f83d8e
701
py
Python
plugins/instapy_plugin.py
guppythegod/InstaBot
dbd75a25610df1aada8c08afcacf09972a5845cd
[ "MIT" ]
null
null
null
plugins/instapy_plugin.py
guppythegod/InstaBot
dbd75a25610df1aada8c08afcacf09972a5845cd
[ "MIT" ]
null
null
null
plugins/instapy_plugin.py
guppythegod/InstaBot
dbd75a25610df1aada8c08afcacf09972a5845cd
[ "MIT" ]
null
null
null
from instapy import instapy class InstapyClient: def __init__(self, username, password, niches, comments, comment_percentage, like_percentage): self.username = username self.password = password self.niches = niches self.like_percentage = like_percentage session = instapy(us...
35.05
98
0.686163
78
701
5.948718
0.371795
0.12069
0.086207
0
0
0
0
0
0
0
0
0.005566
0.231098
701
20
99
35.05
0.855288
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1875
false
0.25
0.0625
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
bee3e79a8f48eb194a5b19d5b778e36cfa488038
580
py
Python
pola/migrations/0004_auto_20151029_2011.py
MatPerowicz/pola-backend
ffa4e155fc7b8b7dca26d7537759d1eebfc6beca
[ "BSD-3-Clause" ]
null
null
null
pola/migrations/0004_auto_20151029_2011.py
MatPerowicz/pola-backend
ffa4e155fc7b8b7dca26d7537759d1eebfc6beca
[ "BSD-3-Clause" ]
null
null
null
pola/migrations/0004_auto_20151029_2011.py
MatPerowicz/pola-backend
ffa4e155fc7b8b7dca26d7537759d1eebfc6beca
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('pola', '0003_auto_20151025_1159'), ] operations = [ migrations.AddField( model_name='stats', name='n...
23.2
49
0.596552
58
580
5.637931
0.586207
0.110092
0.140673
0.165138
0.519878
0.519878
0.311927
0.311927
0.311927
0.311927
0
0.060827
0.291379
580
24
50
24.166667
0.734793
0.036207
0
0.444444
0
0
0.152603
0.127469
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bee7442c3a7238f6edaf47d011fcc33544557019
1,923
py
Python
tests/test_chi_ssa_51.py
MAYANK25402/city-scrapers
08f92ec5b68682a8120eee1a13c4a03fe0335b9e
[ "MIT" ]
255
2018-03-06T20:12:03.000Z
2022-03-05T03:06:45.000Z
tests/test_chi_ssa_51.py
MAYANK25402/city-scrapers
08f92ec5b68682a8120eee1a13c4a03fe0335b9e
[ "MIT" ]
514
2018-02-02T16:12:50.000Z
2022-03-21T20:07:35.000Z
tests/test_chi_ssa_51.py
MAYANK25402/city-scrapers
08f92ec5b68682a8120eee1a13c4a03fe0335b9e
[ "MIT" ]
342
2018-02-03T04:05:37.000Z
2022-03-18T16:34:58.000Z
from datetime import datetime from os.path import dirname, join import pytest from city_scrapers_core.constants import COMMISSION, PASSED from city_scrapers_core.utils import file_response from freezegun import freeze_time from city_scrapers.spiders.chi_ssa_51 import ChiSsa51Spider test_response = file_response( ...
23.45122
74
0.716589
259
1,923
5.127413
0.312741
0.107681
0.126506
0.150602
0.259036
0.259036
0.259036
0.259036
0
0
0
0.038601
0.137806
1,923
81
75
23.740741
0.762364
0
0
0.156863
0
0
0.160686
0.018721
0
0
0
0
0.235294
1
0.235294
false
0.039216
0.137255
0
0.372549
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
bee8b0569d860e1d659333dabddee90cca8eaab7
518
py
Python
backend/classes/migrations/0003_auto_20210505_2312.py
HillalRoy/Studenthut
6aba8208e8f6d2650196c5a0220b62fee2eae108
[ "Apache-2.0" ]
1
2021-05-01T16:52:30.000Z
2021-05-01T16:52:30.000Z
backend/classes/migrations/0003_auto_20210505_2312.py
HillalRoy/Studenthut
6aba8208e8f6d2650196c5a0220b62fee2eae108
[ "Apache-2.0" ]
null
null
null
backend/classes/migrations/0003_auto_20210505_2312.py
HillalRoy/Studenthut
6aba8208e8f6d2650196c5a0220b62fee2eae108
[ "Apache-2.0" ]
1
2021-04-29T15:11:47.000Z
2021-04-29T15:11:47.000Z
# Generated by Django 3.1.7 on 2021-05-05 17:42 import backend.classes.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('classes', '0002_auto_20210505_2309'), ] operations = [ migrations.AlterField( model_name='classes'...
25.9
155
0.658301
60
518
5.583333
0.733333
0.083582
0.119403
0
0
0
0
0
0
0
0
0.085
0.227799
518
19
156
27.263158
0.7525
0.086873
0
0
1
0
0.082803
0.048832
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bef4d39a7ed0f163b0f73b97cc8940c6bd1ceff9
9,077
py
Python
windows/juggler/pyhook/hookit.py
same-moon/smutils
4277ab1d118e89503a0253f8c7e3fa2858033286
[ "MIT" ]
null
null
null
windows/juggler/pyhook/hookit.py
same-moon/smutils
4277ab1d118e89503a0253f8c7e3fa2858033286
[ "MIT" ]
null
null
null
windows/juggler/pyhook/hookit.py
same-moon/smutils
4277ab1d118e89503a0253f8c7e3fa2858033286
[ "MIT" ]
null
null
null
import os, collections, threading, Queue, time import win32api import win32com.client import pythoncom, pyHook """ MessageName: key down Message: 256 Time: 112416317 Window: 197094 WindowName: Emacs/Python <ruttbe@LAGER> hookit.py Ascii: 120 x Key: X KeyID: 88 ScanCode: 45 Extended: 0 Injected: 0 Alt 0 Transition 0 "...
31.085616
123
0.548419
1,003
9,077
4.882353
0.244267
0.016337
0.014294
0.01164
0.228303
0.157239
0.09516
0.09516
0.09516
0.09516
0
0.013945
0.320591
9,077
291
124
31.19244
0.78012
0.18332
0
0.162304
0
0
0.092855
0.014035
0
0
0
0
0.020942
0
null
null
0.005236
0.020942
null
null
0.052356
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bef57239eca8d31264c3731642071ee63ca0f439
161
py
Python
Contest/ABC135/c/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/ABC135/c/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/ABC135/c/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 n, p, *a = map(int, open(0).read().split()) c = 0 for a, b in zip(a, a[n:]): c += min(p+a, b) p = a - max(min(b-p, a), 0) print(c)
23
43
0.490683
38
161
2.078947
0.552632
0.101266
0.075949
0
0
0
0
0
0
0
0
0.032
0.223602
161
7
44
23
0.6
0.130435
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
befb1e9bd4c916691a865e6e5994a98930bbc692
2,731
py
Python
ipwb/backends.py
machawk1/ipwb
0313f9219f20939102eae17ab29d9c0ed4abdd60
[ "MIT" ]
null
null
null
ipwb/backends.py
machawk1/ipwb
0313f9219f20939102eae17ab29d9c0ed4abdd60
[ "MIT" ]
null
null
null
ipwb/backends.py
machawk1/ipwb
0313f9219f20939102eae17ab29d9c0ed4abdd60
[ "MIT" ]
null
null
null
import dataclasses from typing import Optional from urllib.parse import urlparse import ipfshttpclient4ipwb import requests from ipwb import util @dataclasses.dataclass(frozen=True) class BackendError(Exception): backend_name: str def __str__(self): return 'Cannot load index file from {self.backend...
27.31
78
0.668986
365
2,731
4.923288
0.372603
0.035058
0.026711
0.03005
0.176962
0.159154
0.122426
0.122426
0.122426
0.052309
0
0.001946
0.247528
2,731
99
79
27.585859
0.872506
0.27316
0
0.181818
0
0
0.1
0
0
0
0
0.010101
0
1
0.109091
false
0
0.109091
0.018182
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
befd7aab8f5a9a01ca2dda56bca25f3d3e13eb96
2,502
py
Python
tests/formatters/srum.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
tests/formatters/srum.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
tests/formatters/srum.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for the SRUM ESE database event formatters.""" from __future__ import unicode_literals import unittest from plaso.formatters import srum from tests.formatters import test_lib class SRUMApplicationResourceUsageEventFormatterTest( test_lib.EventFormatterTes...
29.435294
78
0.761791
211
2,502
8.805687
0.298578
0.113025
0.054898
0.032293
0.632939
0.632939
0.632939
0.609257
0.55436
0.55436
0
0.000474
0.156275
2,502
84
79
29.785714
0.879678
0.238609
0
0.666667
0
0
0.050811
0
0
0
0
0.011905
0.071429
1
0.142857
false
0
0.095238
0
0.309524
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
befffdc64060a4688fb2c37f1bf3975d79ccdd5a
12,498
py
Python
tests/ClientTestCase.py
DLR-SC/python-webdav-lib
e4d1bda80d073bd791fa288e74dc9d0af73baa54
[ "Apache-2.0" ]
9
2018-01-08T16:24:24.000Z
2021-09-17T12:36:43.000Z
tests/ClientTestCase.py
DLR-SC/python-webdav-lib
e4d1bda80d073bd791fa288e74dc9d0af73baa54
[ "Apache-2.0" ]
null
null
null
tests/ClientTestCase.py
DLR-SC/python-webdav-lib
e4d1bda80d073bd791fa288e74dc9d0af73baa54
[ "Apache-2.0" ]
3
2018-07-22T19:03:29.000Z
2021-03-06T21:20:47.000Z
# Copyright 2008 German Aerospace Center (DLR) # # 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...
42.510204
114
0.583213
1,257
12,498
5.76611
0.247414
0.067881
0.028974
0.0258
0.315259
0.256898
0.232616
0.226545
0.202539
0.188466
0
0.01182
0.289246
12,498
293
115
42.65529
0.80412
0.154505
0
0.261468
0
0.004587
0.211952
0.002551
0
0
0
0
0.050459
0
null
null
0.022936
0.03211
null
null
0.137615
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
83016a91a16bf4c20630d3c2adf0b09a65770f7f
997
py
Python
Brain_Waves_Analysis/Training_Data_Acquisition/src/GUI.py
ViniciusALS/Cerebro
473866662fc93512b90d234f0cee8fea256b22e3
[ "MIT" ]
3
2020-11-05T15:36:22.000Z
2021-01-25T20:54:32.000Z
Brain_Waves_Analysis/Training_Data_Acquisition/src/GUI.py
ViniciusALS/Cerebro
473866662fc93512b90d234f0cee8fea256b22e3
[ "MIT" ]
2
2021-01-27T07:42:58.000Z
2021-01-27T07:53:28.000Z
Brain_Waves_Analysis/Training_Data_Acquisition/src/GUI.py
ViniciusALS/Cerebro
473866662fc93512b90d234f0cee8fea256b22e3
[ "MIT" ]
null
null
null
from PIL import Image import matplotlib.pyplot as plt import matplotlib.image as mpimg class GUI: __gui_image = {} __gui_image["moveBothHands"] = Image.open("Brain_Waves_Analysis/Training_Data_Acquisition/src/resources/moveBoth.png") __gui_image["moveLeftHand"] = Image.open("Brain_Waves_Analysis/Training_Data_A...
26.945946
120
0.77332
134
997
5.470149
0.432836
0.065484
0.076398
0.103683
0.338336
0.338336
0.338336
0.338336
0.338336
0.338336
0
0.004515
0.111334
997
36
121
27.694444
0.822799
0.086259
0
0
0
0
0.367841
0.318282
0
0
0
0
0
1
0.227273
false
0
0.136364
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8301dca49bf908fe586b36a57dad438405e4b254
946
py
Python
tests/test_basics.py
danjong99/project_spring_2020
4a276b7516e05fd0126435fc9929b19e2443522d
[ "MIT" ]
null
null
null
tests/test_basics.py
danjong99/project_spring_2020
4a276b7516e05fd0126435fc9929b19e2443522d
[ "MIT" ]
null
null
null
tests/test_basics.py
danjong99/project_spring_2020
4a276b7516e05fd0126435fc9929b19e2443522d
[ "MIT" ]
null
null
null
from bk_packages.basic_methods import t, convert_to_float, unique, rowSum, rowMean def test_t(): input_list = [[1,2,3],[4,5,6],[7,8,9],[10,11,12]] obs = t(input_list) exp = [[1, 4, 7, 10], [2, 5, 8, 11], [3, 6, 9, 12]] assert obs == exp def test_convertTofloat(): input_list = ['1','2','3','4','5'...
28.666667
82
0.538055
200
946
2.44
0.185
0.184426
0.036885
0.04918
0.397541
0.229508
0.229508
0.229508
0.229508
0.229508
0
0.186828
0.213531
946
32
83
29.5625
0.469086
0
0
0.307692
0
0
0.01164
0
0
0
0
0
0.192308
1
0.192308
false
0
0.038462
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
83026577d3f6ea7b3f00c06ab8cfe7300d02eaed
1,862
py
Python
lifeloopweb/logging.py
jaimecruz21/lifeloopweb
ba0ffe1ea94ba3323a4e9c66c9506a338cae3212
[ "MIT" ]
null
null
null
lifeloopweb/logging.py
jaimecruz21/lifeloopweb
ba0ffe1ea94ba3323a4e9c66c9506a338cae3212
[ "MIT" ]
null
null
null
lifeloopweb/logging.py
jaimecruz21/lifeloopweb
ba0ffe1ea94ba3323a4e9c66c9506a338cae3212
[ "MIT" ]
null
null
null
# pylint: disable=abstract-method import logging from logging.handlers import RotatingFileHandler from lifeloopweb import config, exception CONF = config.CONF CRITICAL = logging.CRITICAL FATAL = logging.FATAL ERROR = logging.ERROR WARNING = logging.WARNING WARN = logging.WARNING INFO = logging.INFO DEBUG = logging.D...
26.225352
73
0.693878
227
1,862
5.46696
0.356828
0.045125
0.029009
0
0
0
0
0
0
0
0
0.001324
0.188507
1,862
70
74
26.6
0.819987
0.044039
0
0
0
0
0.122116
0.025324
0
0
0
0.014286
0
1
0.125
false
0
0.0625
0.041667
0.270833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
8303e39c04e924cde4d8fa8d53dbf9892851dae2
486
py
Python
ex042.py
89Alberth/Aprendendo-a-programar
37ae0a60369a0b39c733ba15220efecf674b6447
[ "MIT" ]
null
null
null
ex042.py
89Alberth/Aprendendo-a-programar
37ae0a60369a0b39c733ba15220efecf674b6447
[ "MIT" ]
null
null
null
ex042.py
89Alberth/Aprendendo-a-programar
37ae0a60369a0b39c733ba15220efecf674b6447
[ "MIT" ]
null
null
null
r1 = float(input('Digite o valor da primeira reta: ')) r2 = float(input('Digite o valor da segunda reta: ')) r3 = float(input('Digite o valor da terceira reta: ')) if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r1 + r2: print('Os segmentos acima podem formar um triângulo.') if r1 == r2 == r3: print('Equilát...
34.714286
60
0.611111
73
486
4.068493
0.410959
0.053872
0.161616
0.171717
0.242424
0.242424
0
0
0
0
0
0.052342
0.253086
486
14
60
34.714286
0.76584
0
0
0.153846
0
0
0.445585
0
0
0
0
0
0
1
0
false
0
0
0
0
0.384615
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
830d2d164a0481284317c73523d4ba38cc25c308
898
py
Python
aibox/utils.py
Aakash-kaushik/aibox
84065a97072013f34188f6db148d1feec076ab01
[ "BSD-3-Clause" ]
null
null
null
aibox/utils.py
Aakash-kaushik/aibox
84065a97072013f34188f6db148d1feec076ab01
[ "BSD-3-Clause" ]
null
null
null
aibox/utils.py
Aakash-kaushik/aibox
84065a97072013f34188f6db148d1feec076ab01
[ "BSD-3-Clause" ]
null
null
null
# from https://gist.github.com/yashbonde/62df9d16858a43775c22a6af00a8d707 import os import io from PIL import Image def fetch(url): # efficient loading of URLS import os, tempfile, hashlib, requests fp = os.path.join(tempfile.gettempdir(), hashlib.md5(url.encode("utf-8")).hexdigest()) if os.path.isf...
24.944444
90
0.639198
138
898
4.057971
0.456522
0.053571
0.071429
0.092857
0
0
0
0
0
0
0
0.037627
0.230512
898
35
91
25.657143
0.772793
0.144766
0
0.173913
0
0
0.022251
0
0
0
0
0
0
1
0.130435
false
0
0.217391
0
0.521739
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
830f376a2d611d93d922ae7eff9eb43e34a40082
2,678
py
Python
server/app/utils/validators.py
SheetWithoutShit/sws-server
16b7154188f08b33f84d88caea217673cf989b2b
[ "MIT" ]
null
null
null
server/app/utils/validators.py
SheetWithoutShit/sws-server
16b7154188f08b33f84d88caea217673cf989b2b
[ "MIT" ]
57
2020-08-01T14:58:59.000Z
2020-09-20T13:27:16.000Z
server/app/utils/validators.py
SpentlessInc/spentless-server
16b7154188f08b33f84d88caea217673cf989b2b
[ "MIT" ]
null
null
null
"""This module provides validators for models data.""" import re EMAIL_REGEX = re.compile(r"^[a-zA-Z0-9_.]+@[a-zA-Z0-9_.]{2,}\.[a-zA-Z0-9_.]+$") def validate_email(email): """ Validate user email value. * Consist of case-insensitive alphanumeric characters. * Periods or underscores are allowed. ...
28.489362
79
0.651232
353
2,678
4.892351
0.283286
0.104227
0.044586
0.060799
0.409959
0.259988
0.224088
0.189346
0.189346
0.099016
0
0.009369
0.242718
2,678
93
80
28.795699
0.842209
0.164302
0
0.309091
0
0.018182
0.264611
0.02301
0
0
0
0
0
1
0.090909
false
0.218182
0.018182
0
0.327273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
83106a9899c6b1d691ad0a19a8dd8c11ec6415e3
841
py
Python
NiaPy/tests/test_abc.py
jacebrowning/NiaPy
0ef670785105459600379db739000418c28207ed
[ "MIT" ]
null
null
null
NiaPy/tests/test_abc.py
jacebrowning/NiaPy
0ef670785105459600379db739000418c28207ed
[ "MIT" ]
null
null
null
NiaPy/tests/test_abc.py
jacebrowning/NiaPy
0ef670785105459600379db739000418c28207ed
[ "MIT" ]
null
null
null
from unittest import TestCase from NiaPy.algorithms.basic import ArtificialBeeColonyAlgorithm class MyBenchmark(object): def __init__(self): self.Lower = -5.12 self.Upper = 5.12 @classmethod def function(cls): def evaluate(D, sol): val = 0.0 for i in rang...
24.028571
63
0.62069
96
841
5.291667
0.458333
0.062992
0.051181
0.145669
0.133858
0.133858
0.133858
0
0
0
0
0.043261
0.285375
841
34
64
24.735294
0.801997
0
0
0
0
0
0.009512
0
0
0
0
0
0.083333
1
0.25
false
0
0.083333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
831249ce5fb303cd1e7b29c43df2f46bab7dfcf9
898
py
Python
helpers.py
robbiemu/Greedy-Algorithms-Minimum-Spanning-Trees-and-Dynamic-Programming
a43004642c0b7f7270ec3f7a141dd2b48db34947
[ "MIT" ]
null
null
null
helpers.py
robbiemu/Greedy-Algorithms-Minimum-Spanning-Trees-and-Dynamic-Programming
a43004642c0b7f7270ec3f7a141dd2b48db34947
[ "MIT" ]
null
null
null
helpers.py
robbiemu/Greedy-Algorithms-Minimum-Spanning-Trees-and-Dynamic-Programming
a43004642c0b7f7270ec3f7a141dd2b48db34947
[ "MIT" ]
null
null
null
from collections import namedtuple, defaultdict Edge = namedtuple('Edge', ['left', 'right', 'cost']) Adjacency = namedtuple('Adjacency', ['to', 'cost']) PrioritizedItem = namedtuple('PrioritizedItem', ['priority', 'item']) def indices(l): return [i for i in range(len(l))] def process_weighted_edges(data): v = []...
29.933333
74
0.658129
138
898
4.23913
0.434783
0.05641
0.05812
0.061538
0
0
0
0
0
0
0
0.00664
0.16147
898
30
75
29.933333
0.770252
0
0
0
0
0
0.086763
0
0
0
0
0
0
1
0.208333
false
0
0.041667
0.083333
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8312a81c6560ca4dbd849c67b087a377a9a637f7
4,232
py
Python
tests/fixtures/importexport.py
shashankkoppar/incubator-superset
db7386910e0f4c9acc231dde50ac72d65aa72b0f
[ "Apache-2.0" ]
null
null
null
tests/fixtures/importexport.py
shashankkoppar/incubator-superset
db7386910e0f4c9acc231dde50ac72d65aa72b0f
[ "Apache-2.0" ]
null
null
null
tests/fixtures/importexport.py
shashankkoppar/incubator-superset
db7386910e0f4c9acc231dde50ac72d65aa72b0f
[ "Apache-2.0" ]
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 u...
30.666667
120
0.568526
485
4,232
4.820619
0.51134
0.025663
0.033362
0.041061
0.16852
0.153978
0.092387
0.092387
0.092387
0.04876
0
0.097727
0.272212
4,232
137
121
30.890511
0.661364
0.182183
0
0.150442
0
0.00885
0.434795
0.113564
0
0
0
0
0
1
0
true
0
0.026549
0
0.026549
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
8317877cae138e7d853be36cd6a73f53d79cc7c9
1,824
py
Python
src/bio2bel_bkms/reference.py
bio2bel/bkms
ddb77546e53fd19cd383840d4b972afbe8fba4d5
[ "Apache-2.0" ]
null
null
null
src/bio2bel_bkms/reference.py
bio2bel/bkms
ddb77546e53fd19cd383840d4b972afbe8fba4d5
[ "Apache-2.0" ]
null
null
null
src/bio2bel_bkms/reference.py
bio2bel/bkms
ddb77546e53fd19cd383840d4b972afbe8fba4d5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- abstract = """BACKGROUND: The systematic, complete and correct reconstruction of genome-scale metabolic networks or metabolic pathways is one of the most challenging tasks in systems biology research. An essential requirement is the access to the complete biochemical knowledge - especially on...
62.896552
119
0.815789
247
1,824
6.024292
0.534413
0.053763
0.010753
0.037634
0.166667
0.166667
0.166667
0.166667
0.166667
0
0
0.008951
0.142544
1,824
28
120
65.142857
0.942455
0.011513
0
0
0
0.05
0.951667
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
83190d635b23727c4e487b8d78e13a90d9626346
366
py
Python
stdlib/pickle_qs.py
bpuderer/python-snippets27
8d51ff34c48bee1247575536d8ed506eafde8631
[ "MIT" ]
3
2015-11-20T14:30:53.000Z
2015-12-19T05:55:19.000Z
stdlib/pickle_qs.py
bpuderer/python-snippets27
8d51ff34c48bee1247575536d8ed506eafde8631
[ "MIT" ]
null
null
null
stdlib/pickle_qs.py
bpuderer/python-snippets27
8d51ff34c48bee1247575536d8ed506eafde8631
[ "MIT" ]
1
2016-01-05T20:54:49.000Z
2016-01-05T20:54:49.000Z
import pickle amps = [{'make': 'Peavey', 'model': 'Classic 20', 'output': 15}, {'make': 'Peavey', 'model': 'Rage 108', 'output': 12}, {'make': 'Crate', 'model': 'GX 212', 'output': 120}] with open('save.p', 'wb') as f: print "wrote save.p" pickle.dump(amps, f) with open('save.p', 'rb') as f: pickled_amps...
28.153846
172
0.590164
55
366
3.890909
0.545455
0.070093
0.140187
0.121495
0
0
0
0
0
0
0
0.049505
0.172131
366
12
173
30.5
0.656766
0
0
0
0
0
0.311475
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
831c9c0670135780b0f3c77d4adde7678967cda8
53,865
py
Python
datastore/lib/bdkd/datastore/datastore.py
sirca/bdkd_datastore
2fc4f3d7976d326c0c8ae46d72475aaaa1fdf78d
[ "Apache-2.0" ]
3
2016-03-12T03:09:18.000Z
2017-04-23T12:47:49.000Z
datastore/lib/bdkd/datastore/datastore.py
sirca/bdkd_datastore
2fc4f3d7976d326c0c8ae46d72475aaaa1fdf78d
[ "Apache-2.0" ]
3
2015-12-03T00:32:55.000Z
2016-02-03T23:31:07.000Z
datastore/lib/bdkd/datastore/datastore.py
sirca/bdkd_datastore
2fc4f3d7976d326c0c8ae46d72475aaaa1fdf78d
[ "Apache-2.0" ]
1
2019-04-08T07:43:17.000Z
2019-04-08T07:43:17.000Z
# Copyright 2015 Nicta # # 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 agreed to in writing, softwa...
39.203057
121
0.594468
6,355
53,865
4.847207
0.095201
0.03545
0.009349
0.008635
0.318076
0.252987
0.200656
0.15972
0.146117
0.105506
0
0.003459
0.323698
53,865
1,373
122
39.23161
0.842131
0.052743
0
0.30042
0
0
0.064643
0.002201
0
0
0
0
0
0
null
null
0.002101
0.017857
null
null
0.005252
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
831d60f4f0d9c3b0b741db2c2d2ffa3a376d1e77
10,170
py
Python
src/Honeybee_Import IES.py
rdzeldenrust/Honeybee
e91e58badc1c9b082596d2cf97baeccdb6d7d0af
[ "CC-BY-3.0" ]
1
2016-03-04T09:47:42.000Z
2016-03-04T09:47:42.000Z
src/Honeybee_Import IES.py
rdzeldenrust/Honeybee
e91e58badc1c9b082596d2cf97baeccdb6d7d0af
[ "CC-BY-3.0" ]
null
null
null
src/Honeybee_Import IES.py
rdzeldenrust/Honeybee
e91e58badc1c9b082596d2cf97baeccdb6d7d0af
[ "CC-BY-3.0" ]
null
null
null
# By Mostapha Sadeghipour Roudsari # Sadeghipour@gmail.com # Honeybee started by Mostapha Sadeghipour Roudsari is licensed # under a Creative Commons Attribution-ShareAlike 3.0 Unported License. """ Import IES files - Provided by Honeybee 0.0.55 Args: _iesFilePath: Filepath to a valid IES file ...
37.527675
246
0.586431
1,146
10,170
5.157068
0.296684
0.030795
0.026227
0.027073
0.168359
0.109983
0.096447
0.082234
0.05753
0.05753
0
0.012764
0.314356
10,170
271
247
37.527675
0.834791
0.090069
0
0.207865
0
0
0.092162
0
0
0
0
0
0
0
null
null
0.011236
0.050562
null
null
0.011236
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8322e2f5265e2a8865e70de23b0bbce172a02e82
2,437
py
Python
generic/platf_p4netfpga/netfpga_runtime/simple_test.py
rubensfig/p4se
a427072f99222c8abc3a4864116a8c1665553130
[ "Apache-2.0" ]
16
2018-10-05T10:17:08.000Z
2022-03-15T03:44:29.000Z
generic/platf_p4netfpga/netfpga_runtime/simple_test.py
rubensfig/p4se
a427072f99222c8abc3a4864116a8c1665553130
[ "Apache-2.0" ]
3
2018-09-28T14:09:10.000Z
2020-03-19T22:09:21.000Z
generic/platf_p4netfpga/netfpga_runtime/simple_test.py
rubensfig/p4se
a427072f99222c8abc3a4864116a8c1665553130
[ "Apache-2.0" ]
11
2018-05-10T16:47:24.000Z
2022-02-15T12:46:19.000Z
#!/usr/bin/python # Copyright 2019-present Open Networking Foundation # # Contributed and sponsored by Deutsche Telekom AG. # Originally developed as part of the D-Nets 6 P4 Service Edge project # in collaboration with Technische Universitaet Darmstadt. # Authors: Leonhard Nobach, Jeremias Blendin, Ralf Kundel # # Li...
23.892157
113
0.743127
378
2,437
4.656085
0.478836
0.03125
0.05
0.0625
0.149432
0.064205
0.064205
0.064205
0.064205
0.048864
0
0.038961
0.146902
2,437
101
114
24.128713
0.8076
0.436192
0
0.108108
0
0
0.091798
0.023326
0
0
0
0
0
0
null
null
0
0.135135
null
null
0.108108
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
832af0464c377f143bced58ed0555d6231b4b1ea
6,724
py
Python
tests/auditors/test_auditors_json.py
indeedsecurity/ava-ce
4483b301034a096b716646a470a6642b3df8ce61
[ "Apache-2.0" ]
2
2019-03-26T15:37:48.000Z
2020-01-03T03:47:30.000Z
tests/auditors/test_auditors_json.py
indeedsecurity/ava-ce
4483b301034a096b716646a470a6642b3df8ce61
[ "Apache-2.0" ]
2
2021-03-25T21:27:09.000Z
2021-06-01T21:20:04.000Z
tests/auditors/test_auditors_json.py
indeedsecurity/ava-ce
4483b301034a096b716646a470a6642b3df8ce61
[ "Apache-2.0" ]
null
null
null
import pytest import json from copy import copy from ava.actives.sql_injection import SqlInjectionCheck, SqlInjectionDifferentialCheck, SqlInjectionTimingCheck from ava.auditors.json import _JsonValueHandler, _JsonDifferentialHandler, _JsonTimingHandler, _JsonBlindHandler from ava.auditors.json import JsonAuditor from ...
34.659794
112
0.605889
651
6,724
6.09831
0.141321
0.060453
0.056423
0.084635
0.698237
0.676826
0.613602
0.613602
0.603275
0.603275
0
0.00158
0.246877
6,724
193
113
34.839378
0.782385
0.037329
0
0.603175
0
0
0.11013
0
0
0
0
0
0.190476
1
0.150794
false
0
0.055556
0.039683
0.293651
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
832fd91885c57a46f411323503dc37f2812ec5b2
501
py
Python
hackerrank/Algorithms/Weighted Uniform Strings/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerrank/Algorithms/Weighted Uniform Strings/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerrank/Algorithms/Weighted Uniform Strings/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
import unittest import solution class TestQ(unittest.TestCase): def test_case_0(self): self.assertEqual( solution.weightedUniformStrings('abccddde', [1, 3, 12, 5, 9, 10]), ['Yes', 'Yes', 'Yes', 'Yes', 'No', 'No'] ) def test_case_1(self): self.assertEqual( ...
22.772727
79
0.546906
55
501
4.763636
0.509091
0.091603
0.083969
0.206107
0.374046
0
0
0
0
0
0
0.044444
0.281437
501
21
80
23.857143
0.683333
0
0
0.133333
0
0
0.115768
0
0
0
0
0
0.133333
1
0.133333
false
0
0.133333
0
0.333333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8332cc79afc1c8bdfad6caf160c9e145bae4cd39
8,696
py
Python
project/server.py
miraz12/TDDD97
e2b0c1a94327ebf6704d9b5faf1c7d770df288dd
[ "MIT" ]
null
null
null
project/server.py
miraz12/TDDD97
e2b0c1a94327ebf6704d9b5faf1c7d770df288dd
[ "MIT" ]
null
null
null
project/server.py
miraz12/TDDD97
e2b0c1a94327ebf6704d9b5faf1c7d770df288dd
[ "MIT" ]
null
null
null
from geventwebsocket.handler import WebSocketHandler from gevent.pywsgi import WSGIServer from flask import Flask, request, jsonify import database_helper import os import sys import random import binascii import json import hashlib from flask_bcrypt import Bcrypt import time app = Flask(__name__) bcrypt = Bcrypt(app)...
32.939394
106
0.643859
1,008
8,696
5.458333
0.230159
0.049618
0.076336
0.063613
0.339149
0.300618
0.23137
0.186478
0.146856
0.127226
0
0.003418
0.226196
8,696
263
107
33.064639
0.814237
0.074402
0
0.25641
0
0
0.170234
0.017422
0
0
0
0
0
1
0.087179
false
0.123077
0.061538
0.015385
0.292308
0.010256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
83344a3e1e01d54d4763ea9df557df87ea90893a
1,495
py
Python
setup.py
mvoitko/fastapi-migrations
9813bc7328893bf251483c1660b06376ec58e1f0
[ "MIT" ]
1
2020-10-01T13:32:30.000Z
2020-10-01T13:32:30.000Z
setup.py
mvoitko/fastapi-migrations
9813bc7328893bf251483c1660b06376ec58e1f0
[ "MIT" ]
null
null
null
setup.py
mvoitko/fastapi-migrations
9813bc7328893bf251483c1660b06376ec58e1f0
[ "MIT" ]
null
null
null
''' Fastapi migrations -------------- # TODO: description here ''' from setuptools import setup version = open('__version__').read() long_description = open('README.md', 'r').read() requirements = open('requirements.txt', 'r').read().splitlines() dev_requirements = open('requirements.dev.txt', 'r').read().splitlines()...
33.222222
77
0.665552
152
1,495
6.407895
0.592105
0.104723
0.043121
0.077002
0.141684
0.141684
0.098563
0
0
0
0
0.000816
0.180602
1,495
44
78
33.977273
0.794286
0.038796
0
0
0
0
0.469559
0
0
0
0
0.022727
0
1
0
false
0
0.027027
0
0.027027
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1