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
2f4adf626e0639100f39276c7a36ef5fa92541f9
1,185
py
Python
parse_xlsx.py
UoA-eResearch/OPIMD
63d2279eea8de7db53b01c50e8e35b483ab572c4
[ "MIT" ]
null
null
null
parse_xlsx.py
UoA-eResearch/OPIMD
63d2279eea8de7db53b01c50e8e35b483ab572c4
[ "MIT" ]
2
2021-03-03T06:11:30.000Z
2021-03-05T02:57:02.000Z
parse_xlsx.py
UoA-eResearch/OPIMD
63d2279eea8de7db53b01c50e8e35b483ab572c4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pandas as pd import json df = pd.read_excel("OPIMD Calc_checked_03Feb21AL.xlsx", sheet_name=None) obj = {} dz = df["OPIMD15ACCESSDATAZONERANK"] dz = dz.dropna(subset=["datazone"]) dz.datazone = dz.datazone.astype(int) dz.index = dz.datazone obj["dz"] = dz.OPIMDAccPopRank_AL.to_dict() ...
25.212766
72
0.709705
170
1,185
4.876471
0.429412
0.050663
0.043426
0
0
0
0
0
0
0
0
0.011353
0.108017
1,185
47
73
25.212766
0.772942
0.017722
0
0
0
0
0.18299
0.044674
0
0
0
0
0
1
0
false
0
0.057143
0
0.057143
0.028571
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
0
1
0
2f4c73bdc5e9b2d9296a2574b70a67727f97ee93
1,806
py
Python
forvo.py
edoput/ForvoDownloader
d2d034ee5d9f22cd4faad76444172490a0ff23e2
[ "MIT" ]
9
2018-09-03T22:36:53.000Z
2021-11-09T11:59:14.000Z
forvo.py
EdoPut/ForvoDownloader
d2d034ee5d9f22cd4faad76444172490a0ff23e2
[ "MIT" ]
null
null
null
forvo.py
EdoPut/ForvoDownloader
d2d034ee5d9f22cd4faad76444172490a0ff23e2
[ "MIT" ]
2
2015-01-27T15:09:26.000Z
2017-01-29T04:39:22.000Z
import requests import urllib def ForvoRequest(QUERY, LANG, apikey, ACT='word-pronunciations', FORMAT='mp3', free= True): # action, default is 'word-pronunciations', query, language, apikey, TRUE if free api(default), FALSE if commercial # Return a list of link to mp3 pronunciations for the word QUERY in L...
31.137931
121
0.516058
217
1,806
4.271889
0.447005
0.030205
0.022654
0.028047
0.040992
0.040992
0
0
0
0
0
0.007162
0.381506
1,806
57
122
31.684211
0.822739
0.354928
0
0.129032
0
0
0.109852
0.01918
0
0
0
0.017544
0
1
0.032258
false
0
0.064516
0
0.193548
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
2f4c98ccb6eda3b00afce725dc8baea135ce04d6
422
py
Python
fibonacci/fibonacci.py
nateGeorge/whiteboard_practice_problems
c54f9bcf5f743b3f3e9cd4e34fff3b6afcef6c36
[ "MIT" ]
null
null
null
fibonacci/fibonacci.py
nateGeorge/whiteboard_practice_problems
c54f9bcf5f743b3f3e9cd4e34fff3b6afcef6c36
[ "MIT" ]
null
null
null
fibonacci/fibonacci.py
nateGeorge/whiteboard_practice_problems
c54f9bcf5f743b3f3e9cd4e34fff3b6afcef6c36
[ "MIT" ]
null
null
null
def fib(x): if not isinstance(x, int): print "argument must be an integer" return if x == 0: return 0 a, b = 0, 1 for i in range(x-1): a, b = b, a + b return b def fib_rec(x): if not isinstance(x, int): raise ValueError("argument must be an integer") # an...
23.444444
87
0.537915
73
422
3.068493
0.438356
0.026786
0.09375
0.142857
0.383929
0.178571
0
0
0
0
0
0.02952
0.35782
422
17
88
24.823529
0.797048
0.06872
0
0.125
0
0
0.138107
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
2f4cad023005927c7b37c2c98bbb63ef5319fadc
1,336
py
Python
python/src/main/python/pyalink/alink/common/sql/sql_query_utils.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/common/sql/sql_query_utils.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/common/sql/sql_query_utils.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
import re __all__ = ['register_table_name', 'sql_query'] batch_table_name_map = dict() stream_table_name_map = dict() def register_table_name(op, name: str, op_type: str): if op_type == "batch": batch_table_name_map[name] = op elif op_type == "stream": stream_table_name_map[name] = op el...
28.425532
65
0.654192
188
1,336
4.303191
0.281915
0.144623
0.163164
0.111248
0.217553
0.173053
0.173053
0.173053
0.111248
0.111248
0
0.002962
0.241766
1,336
46
66
29.043478
0.795656
0
0
0.216216
0
0
0.098802
0
0
0
0
0
0
1
0.081081
false
0
0.081081
0
0.189189
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
0
0
1
0
2f4d2891267d928eb5b2260208cbd4b134295605
3,790
py
Python
salt/utils/win_chcp.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
9,425
2015-01-01T05:59:24.000Z
2022-03-31T20:44:05.000Z
salt/utils/win_chcp.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
33,507
2015-01-01T00:19:56.000Z
2022-03-31T23:48:20.000Z
salt/utils/win_chcp.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
5,810
2015-01-01T19:11:45.000Z
2022-03-31T02:37:20.000Z
""" Functions for working with the codepage on Windows systems """ import logging from contextlib import contextmanager from salt.exceptions import CodePageError log = logging.getLogger(__name__) try: import pywintypes import win32console HAS_WIN32 = True except ImportError: HAS_WIN32 = False # A...
25.608108
88
0.61715
470
3,790
4.806383
0.231915
0.061089
0.053121
0.048694
0.656043
0.604692
0.588756
0.533865
0.533865
0.533865
0
0.007675
0.312401
3,790
147
89
25.782313
0.859171
0.341953
0
0.565217
0
0
0.087803
0
0
0
0
0
0
1
0.057971
false
0
0.086957
0
0.26087
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
0
0
1
0
2f4d57d728b00fc588f9af5da19650e009e95339
827
py
Python
application/server.py
comov/fucked-up_schedule
3e6a2972f46686829b655798cd641cd82559db24
[ "MIT" ]
null
null
null
application/server.py
comov/fucked-up_schedule
3e6a2972f46686829b655798cd641cd82559db24
[ "MIT" ]
null
null
null
application/server.py
comov/fucked-up_schedule
3e6a2972f46686829b655798cd641cd82559db24
[ "MIT" ]
null
null
null
from flask import Flask, render_template from application.settings import STATIC from application.storage import storage app = Flask(__name__, static_url_path=STATIC) @app.route('/') def hello_world(): storage_dataset = storage.load_data() labels = [] datasets = {} for label, dataset in storage_dat...
25.84375
50
0.562273
92
827
4.923913
0.456522
0.033113
0.02649
0
0
0
0
0
0
0
0
0
0.308343
827
31
51
26.677419
0.791958
0
0
0
0
0
0.076179
0
0
0
0
0
0
1
0.04
false
0
0.12
0
0.2
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
0
0
1
0
2f4e64d9de5293438f0fe185689a4d11efc8c4c9
1,857
py
Python
cli_fun/commands/fun.py
e4r7hbug/cli-fun
43f9a1bf788745783a24f315d80ceb969ff853e4
[ "MIT" ]
null
null
null
cli_fun/commands/fun.py
e4r7hbug/cli-fun
43f9a1bf788745783a24f315d80ceb969ff853e4
[ "MIT" ]
null
null
null
cli_fun/commands/fun.py
e4r7hbug/cli-fun
43f9a1bf788745783a24f315d80ceb969ff853e4
[ "MIT" ]
null
null
null
"""Fun section of CLI command.""" import json import logging import time from pprint import pformat, pprint import click from fabric.colors import red @click.group() def cli(): """My fun program!""" pass @cli.command() def progress(): """Sample progress bar.""" i = range(0, 200) logging.debug('...
22.925926
70
0.611739
253
1,857
4.43083
0.438735
0.071365
0.046387
0.06066
0.066905
0.066905
0.066905
0.066905
0.066905
0.066905
0
0.01151
0.204631
1,857
80
71
23.2125
0.747461
0.107701
0
0.076923
0
0
0.151459
0
0
0
0
0
0
1
0.153846
false
0.019231
0.115385
0
0.269231
0.134615
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
0
1
0
2f4ee2585931ea1270d6eb83cfe79d8eaf1f4d33
1,851
py
Python
tests/algorithms/descriptor_generator/test_colordescriptor.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
82
2015-01-07T15:33:29.000Z
2021-08-11T18:34:05.000Z
tests/algorithms/descriptor_generator/test_colordescriptor.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
230
2015-04-08T14:36:51.000Z
2022-03-14T17:55:30.000Z
tests/algorithms/descriptor_generator/test_colordescriptor.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
65
2015-01-04T15:00:16.000Z
2021-11-19T18:09:11.000Z
import unittest import unittest.mock as mock import pytest from smqtk.algorithms.descriptor_generator import DescriptorGenerator from smqtk.algorithms.descriptor_generator.colordescriptor.colordescriptor \ import ColorDescriptor_Image_csift # arbitrary leaf class from smqtk.utils.configuration import configurati...
42.068182
79
0.690438
211
1,851
5.729858
0.379147
0.090984
0.082713
0.084367
0.263027
0.105873
0
0
0
0
0
0.02276
0.240411
1,851
43
80
43.046512
0.837127
0.010805
0
0
0
0
0.106069
0.046473
0
0
0
0
0.324324
1
0.054054
false
0
0.162162
0
0.243243
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
0
0
1
0
2f54a4c20f5d809def78444ea740f895640d9cbe
557
py
Python
conservation/migrations/0020_auto_20190418_1715.py
ropable/wastd
295c60760548d177859de9c0bebdae93342767d0
[ "MIT" ]
3
2020-07-23T06:37:43.000Z
2022-01-27T09:40:40.000Z
conservation/migrations/0020_auto_20190418_1715.py
ropable/wastd
295c60760548d177859de9c0bebdae93342767d0
[ "MIT" ]
337
2018-07-12T05:56:29.000Z
2022-03-30T02:40:41.000Z
conservation/migrations/0020_auto_20190418_1715.py
ropable/wastd
295c60760548d177859de9c0bebdae93342767d0
[ "MIT" ]
2
2020-02-24T00:05:46.000Z
2020-07-15T07:02:29.000Z
# Generated by Django 2.1.7 on 2019-04-18 09:15 from django.db import migrations, models import django.db.models.deletion import django_fsm class Migration(migrations.Migration): dependencies = [ ('conservation', '0019_auto_20190410_1329'), ] operations = [ migrations.RenameModel( ...
23.208333
52
0.642729
53
557
6.603774
0.679245
0.045714
0.137143
0.16
0
0
0
0
0
0
0
0.075426
0.262118
557
23
53
24.217391
0.776156
0.08079
0
0.235294
1
0
0.229412
0.147059
0
0
0
0
0
1
0
false
0
0.176471
0
0.352941
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
2f57b78b84caa4984e3516eb70876b6001368c78
1,141
py
Python
src/news/migrations/0005_news_base_fields.py
Little-Pogchamp-Team/kinopoisk_on_django
06e1b5ee14c7e77dd5b69140732461a02bf44566
[ "MIT" ]
10
2021-01-10T09:39:16.000Z
2022-02-05T06:40:47.000Z
src/news/migrations/0005_news_base_fields.py
Little-Pogchamp-Team/kinopoisk_on_django
06e1b5ee14c7e77dd5b69140732461a02bf44566
[ "MIT" ]
null
null
null
src/news/migrations/0005_news_base_fields.py
Little-Pogchamp-Team/kinopoisk_on_django
06e1b5ee14c7e77dd5b69140732461a02bf44566
[ "MIT" ]
1
2021-01-11T17:04:06.000Z
2021-01-11T17:04:06.000Z
# Generated by Django 3.1.5 on 2021-04-28 16:22 import ckeditor.fields from django.db import migrations, models import django_minio_backend.models class Migration(migrations.Migration): dependencies = [ ('news', '0004_profile_info'), ] operations = [ migrations.AddField( mod...
28.525
179
0.595092
113
1,141
5.831858
0.530973
0.060698
0.078907
0.103187
0.218513
0.218513
0
0
0
0
0
0.030941
0.291849
1,141
39
180
29.25641
0.784653
0.039439
0
0.393939
1
0
0.080439
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.181818
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
2f57fea89f96d0ae41ee6422418756f6c9d832f5
1,433
py
Python
src/utils/common.py
Conni2461/admission_handler
6ea2a696100c046fd5d5ede468febd9072f3763f
[ "MIT" ]
1
2022-02-11T04:29:18.000Z
2022-02-11T04:29:18.000Z
src/utils/common.py
Conni2461/admission_handler
6ea2a696100c046fd5d5ede468febd9072f3763f
[ "MIT" ]
null
null
null
src/utils/common.py
Conni2461/admission_handler
6ea2a696100c046fd5d5ede468febd9072f3763f
[ "MIT" ]
null
null
null
import socket from threading import Thread, Timer class Invokeable: def __init__(self, signal, *args, **kwargs): self._signal = signal self._args = args self._kwargs = kwargs @property def signal(self): return self._signal @property def kwargs(self): retur...
22.390625
59
0.5806
176
1,433
4.545455
0.329545
0.0375
0.04125
0.01
0
0
0
0
0
0
0
0.010848
0.292394
1,433
63
60
22.746032
0.778107
0
0
0.122449
0
0
0.009072
0
0
0
0
0
0
1
0.244898
false
0
0.040816
0.061224
0.469388
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
2f585f0414875528a6779f295b93677e10c21cf1
5,206
py
Python
app/models.py
lilianwaweru/Oa_Online
58644f5dd4ae1f396b43a2da980a9c464a9bfdd4
[ "MIT" ]
null
null
null
app/models.py
lilianwaweru/Oa_Online
58644f5dd4ae1f396b43a2da980a9c464a9bfdd4
[ "MIT" ]
null
null
null
app/models.py
lilianwaweru/Oa_Online
58644f5dd4ae1f396b43a2da980a9c464a9bfdd4
[ "MIT" ]
4
2019-04-30T09:07:22.000Z
2019-07-02T08:51:22.000Z
from . import db from werkzeug.security import generate_password_hash, check_password_hash from flask_login import UserMixin from . import login_manager from datetime import datetime @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id)) class User(UserMixin, db.Model): __tabl...
37.185714
82
0.680177
768
5,206
4.46875
0.136719
0.202797
0.253497
0.289044
0.687354
0.61014
0.475524
0.460373
0.421911
0.398601
0
0.044845
0.169036
5,206
139
83
37.453237
0.748497
0
0
0.38843
1
0
0.049366
0
0
0
0
0
0
1
0.041322
false
0.07438
0.041322
0.024793
0.958678
0
0
0
0
null
1
1
1
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
1
0
0
0
0
0
5
2f59a50ee0f4047fe095b3e0f94aa7691fc20820
2,139
py
Python
tests/server/datasets/test_dao.py
davidkartchner/rubrix
33faa006d7498a806a9fd594036d4a42c7d70da2
[ "Apache-2.0" ]
1
2022-01-06T09:05:06.000Z
2022-01-06T09:05:06.000Z
tests/server/datasets/test_dao.py
davidkartchner/rubrix
33faa006d7498a806a9fd594036d4a42c7d70da2
[ "Apache-2.0" ]
null
null
null
tests/server/datasets/test_dao.py
davidkartchner/rubrix
33faa006d7498a806a9fd594036d4a42c7d70da2
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021-present, the Recognai S.L. team. # # 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 ...
36.254237
81
0.777466
295
2,139
5.461017
0.39322
0.043451
0.069522
0.039106
0.303538
0.226567
0.226567
0.226567
0.155183
0.103042
0
0.004894
0.140252
2,139
58
82
36.87931
0.871126
0.276765
0
0.176471
0
0
0.050294
0.030699
0
0
0
0
0.088235
1
0.058824
false
0
0.235294
0
0.294118
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
0
0
1
0
2f59b443158d106a76a2bebe88570da44bbc0fe9
5,838
py
Python
tests/tests_rotated_array_search.py
quervernetzt/find-value-in-rotated-sorted-array
b391b1502fd326a57973621500e984bf6f7df44a
[ "MIT" ]
null
null
null
tests/tests_rotated_array_search.py
quervernetzt/find-value-in-rotated-sorted-array
b391b1502fd326a57973621500e984bf6f7df44a
[ "MIT" ]
null
null
null
tests/tests_rotated_array_search.py
quervernetzt/find-value-in-rotated-sorted-array
b391b1502fd326a57973621500e984bf6f7df44a
[ "MIT" ]
null
null
null
import unittest from solution.rotated_array_search import RotatedArraySearch class TestCasesRotatedArraySearch(unittest.TestCase): def input_list_is_none_return_minus_one(self: object) -> None: # Arrange rotated_array_search: RotatedArraySearch = RotatedArraySearch() input_list: list = Non...
33.94186
107
0.601918
655
5,838
5.045802
0.087023
0.111649
0.152496
0.088956
0.92708
0.920424
0.908926
0.88351
0.881089
0.870197
0
0.034623
0.243063
5,838
172
108
33.94186
0.713284
0.11408
0
0.690476
0
0
0
0
0
0
0
0
0.166667
1
0.154762
false
0
0.02381
0
0.190476
0
0
0
0
null
0
0
0
1
1
1
1
1
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
6
2f5b87677f26662c1ce0c7a5ee5aaf173034c184
3,637
py
Python
tests/1_local/test_keygroup.py
aporlowski/cloudmesh-cloud
247479361300f97bbb8b7b1f4c99308358e9e2b2
[ "Apache-2.0" ]
5
2019-05-06T01:27:55.000Z
2020-03-12T09:50:08.000Z
tests/1_local/test_keygroup.py
aporlowski/cloudmesh-cloud
247479361300f97bbb8b7b1f4c99308358e9e2b2
[ "Apache-2.0" ]
137
2019-04-06T12:35:29.000Z
2020-05-05T10:02:36.000Z
tests/1_local/test_keygroup.py
aporlowski/cloudmesh-cloud
247479361300f97bbb8b7b1f4c99308358e9e2b2
[ "Apache-2.0" ]
27
2019-04-05T22:03:41.000Z
2021-03-05T00:05:00.000Z
############################################################### # pytest -v --capture=no tests/test_keygroup.py # pytest -v tests/test_keygroup.py ############################################################### #import pytest import os from cloudmesh.common.variables import Variables from cloudmesh.common.Benchmark i...
25.978571
63
0.56915
434
3,637
4.656682
0.267281
0.064325
0.037605
0.023751
0.409203
0.316675
0.290945
0.251361
0.166254
0.166254
0
0.002348
0.297498
3,637
139
64
26.165468
0.78865
0.071487
0
0.526316
0
0
0.152327
0.015515
0
0
0
0.007194
0
1
0.078947
false
0
0.315789
0
0.421053
0.026316
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
2f5cb793e2e748f1c572ea256bcf2c1a860ee543
2,344
py
Python
blinpy/tests/test_models.py
solbes/blinpy
89b4f26066c383fc07ca6b1cbfdc8a61397f3f08
[ "MIT" ]
3
2021-02-11T14:00:08.000Z
2021-10-13T20:41:21.000Z
blinpy/tests/test_models.py
solbes/blinpy
89b4f26066c383fc07ca6b1cbfdc8a61397f3f08
[ "MIT" ]
null
null
null
blinpy/tests/test_models.py
solbes/blinpy
89b4f26066c383fc07ca6b1cbfdc8a61397f3f08
[ "MIT" ]
null
null
null
import pytest import pandas as pd import numpy as np from blinpy import models data = pd.DataFrame( {'x': np.array( [0.0, 1.0, 1.0, 2.0, 1.8, 3.0, 4.0, 5.2, 6.5, 8.0, 10.0]), 'y': np.array([5.0, 5.0, 5.1, 5.3, 5.5, 5.7, 6.0, 6.3, 6.7, 7.1, 7.5])} ) def test_linear_model(): # 1) ...
22.980392
80
0.50128
326
2,344
3.490798
0.245399
0.05536
0.035149
0.101054
0.625659
0.596661
0.568541
0.541301
0.495606
0.434095
0
0.139169
0.322526
2,344
101
81
23.207921
0.577456
0.046502
0
0.5
0
0
0.036355
0
0
0
0
0
0.0625
1
0.025
false
0
0.05
0
0.075
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
0
0
1
0
2f5daa6050352bd82f556af83e14e2830de366ac
3,226
py
Python
packages/gtmapi/lmsrvlabbook/tests/test_jobstatus_queries.py
gigabackup/gigantum-client
70fe6b39b87b1c56351f2b4c551b6f1693813e4f
[ "MIT" ]
60
2018-09-26T15:46:00.000Z
2021-10-10T02:37:14.000Z
packages/gtmapi/lmsrvlabbook/tests/test_jobstatus_queries.py
gigabackup/gigantum-client
70fe6b39b87b1c56351f2b4c551b6f1693813e4f
[ "MIT" ]
1,706
2018-09-26T16:11:22.000Z
2021-08-20T13:37:59.000Z
packages/gtmapi/lmsrvlabbook/tests/test_jobstatus_queries.py
griffinmilsap/gigantum-client
70fe6b39b87b1c56351f2b4c551b6f1693813e4f
[ "MIT" ]
11
2019-03-14T13:23:51.000Z
2022-01-25T01:29:16.000Z
import pprint import time import json from gtmcore.dispatcher import Dispatcher, jobs from lmsrvlabbook.tests.fixtures import fixture_working_dir class TestLabBookServiceQueries(object): def test_query_finished_task(self, fixture_working_dir): """Test listing labbooks""" d = Dispatcher() ...
31.320388
103
0.532548
323
3,226
5.19195
0.235294
0.050686
0.14192
0.166965
0.733453
0.697674
0.660107
0.597496
0.597496
0.583184
0
0.004223
0.33943
3,226
102
104
31.627451
0.782731
0.040918
0
0.54878
0
0
0.395515
0
0
0
0
0
0.243902
1
0.036585
false
0
0.060976
0
0.109756
0.02439
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
2f5e89412b184aa3f2abac3805b9bf927e055845
204
py
Python
valid.py
whitereaper25/test_2
47212fc977bcd36e8879ada22f319691073accb1
[ "Apache-2.0" ]
null
null
null
valid.py
whitereaper25/test_2
47212fc977bcd36e8879ada22f319691073accb1
[ "Apache-2.0" ]
null
null
null
valid.py
whitereaper25/test_2
47212fc977bcd36e8879ada22f319691073accb1
[ "Apache-2.0" ]
null
null
null
import re def verify(phn_no): design = "[789]\d{9}$" if re.match(design,phn_no): return "yes" else: return "No" n = int(input()) for i in range(n): print(verify(input()))
18.545455
31
0.553922
32
204
3.46875
0.71875
0.09009
0
0
0
0
0
0
0
0
0
0.026846
0.269608
204
11
32
18.545455
0.718121
0
0
0
0
0
0.078049
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.4
0.1
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
0
1
0
2f6096fad4d8b4fcb9ab49eab731fdc3465207c6
1,632
py
Python
MAPLEAF/Rocket/sampleStatefulRocketComponent.py
henrystoldt/MAPLEAF
af970d3e8200832f5e70d537b15ad38dd74fa551
[ "MIT" ]
15
2020-09-11T19:25:07.000Z
2022-03-12T16:34:53.000Z
MAPLEAF/Rocket/sampleStatefulRocketComponent.py
henrystoldt/MAPLEAF
af970d3e8200832f5e70d537b15ad38dd74fa551
[ "MIT" ]
null
null
null
MAPLEAF/Rocket/sampleStatefulRocketComponent.py
henrystoldt/MAPLEAF
af970d3e8200832f5e70d537b15ad38dd74fa551
[ "MIT" ]
3
2021-12-24T19:39:53.000Z
2022-03-29T01:06:28.000Z
from MAPLEAF.Motion import ForceMomentSystem, Inertia, Vector from MAPLEAF.Rocket import RocketComponent __all__ = [ "SampleStatefulComponent" ] class SampleStatefulComponent(RocketComponent): def __init__(self, componentDictReader, rocket, stage): self.rocket = rocket self.stage = stage s...
42.947368
128
0.694853
176
1,632
6.397727
0.539773
0.039964
0.033748
0
0
0
0
0
0
0
0
0.017433
0.226716
1,632
38
129
42.947368
0.874802
0.210784
0
0
0
0
0.032006
0.017955
0
0
0
0
0
1
0.192308
false
0
0.076923
0.038462
0.461538
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
0
0
1
0
2f610ddfbb4015ca897145b09e2fa1a4b5263289
866
py
Python
Array/Final450/Sort_Array_Of_0s_1s_2s.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Array/Final450/Sort_Array_Of_0s_1s_2s.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Array/Final450/Sort_Array_Of_0s_1s_2s.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
from Utils.Array import input_array ZERO, ONE, TWO = 0, 1, 2 # Time -> O(n) # Space -> O(1) inplace def sort_by_counting(A): cnt_0 = cnt_1 = cnt_2 = 0 # Count the number of 0s, 1s and 2s in the array for num in A: if num == ZERO: cnt_0 += 1 elif num == ONE: cnt_...
16.339623
52
0.469977
159
866
2.396226
0.289308
0.036745
0.031496
0.031496
0.03937
0.023622
0
0
0
0
0
0.132797
0.426097
866
52
53
16.653846
0.633803
0.19515
0
0.107143
0
0
0.012739
0
0
0
0
0
0
1
0.035714
false
0
0.035714
0
0.071429
0.035714
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
0
1
0
2f6154e27302aac990c76151fe6022aab6340e63
8,601
py
Python
public/yum-3.2.28/callback.py
chillaxor/blogbin
211202d513fa80a3d22fb3963f36a01a8dec5b68
[ "MIT" ]
8
2021-11-26T06:19:06.000Z
2022-01-11T01:30:11.000Z
initrd/usr/share/yum-cli/callback.py
OpenCloudOS/OpenCloudOS-tools
06b12aab3182f4207d78a5d8733be03f0d7b69a4
[ "MulanPSL-1.0" ]
5
2021-02-02T08:17:10.000Z
2022-02-27T06:53:42.000Z
public/yum-3.2.28/callback.py
chillaxor/blogbin
211202d513fa80a3d22fb3963f36a01a8dec5b68
[ "MIT" ]
2
2021-12-21T08:36:02.000Z
2021-12-21T08:55:38.000Z
#!/usr/bin/python -t # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it...
36.914163
87
0.482153
886
8,601
4.560948
0.27088
0.006929
0.053452
0.059886
0.340757
0.261321
0.168275
0.13264
0.13264
0.13264
0
0.013039
0.420416
8,601
232
88
37.073276
0.797593
0.10429
0
0.354651
0
0
0.05485
0.004548
0
0
0
0
0
0
null
null
0.046512
0.034884
null
null
0.02907
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
2f61d9c0592b835198eb2ed4703fc9cefded5f37
1,911
py
Python
miradar_node/scripts/ppi_visualizer.py
QibiTechInc/miradar_ros1_pkgs
65b339147c2a1a990696d77e75b58f5fba84dc22
[ "Apache-2.0" ]
null
null
null
miradar_node/scripts/ppi_visualizer.py
QibiTechInc/miradar_ros1_pkgs
65b339147c2a1a990696d77e75b58f5fba84dc22
[ "Apache-2.0" ]
null
null
null
miradar_node/scripts/ppi_visualizer.py
QibiTechInc/miradar_ros1_pkgs
65b339147c2a1a990696d77e75b58f5fba84dc22
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import rospy from miradar_node.msg import PPI, PPIData from visualization_msgs.msg import MarkerArray, Marker from geometry_msgs.msg import Point import dynamic_reconfigure.client class PPIVisualizer: def __init__(self): self.pub = rospy.Publisher("/miradar/markers", MarkerArray, qu...
32.948276
83
0.591837
222
1,911
4.977477
0.382883
0.049774
0.021719
0.043439
0.139367
0.139367
0.079638
0.079638
0
0
0
0.015521
0.291994
1,911
57
84
33.526316
0.801183
0.010989
0
0.088889
0
0
0.057173
0
0
0
0
0
0
1
0.044444
false
0
0.111111
0
0.177778
0.022222
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
0
1
0
2f62350af98cfe5e5bc543e35cb2ce81345228a2
3,561
py
Python
app/dashboard.py
nidheesh6/earlyearthquake
d0ab976629f126206afcd3dc15a76c66992f8a9e
[ "Apache-2.0" ]
null
null
null
app/dashboard.py
nidheesh6/earlyearthquake
d0ab976629f126206afcd3dc15a76c66992f8a9e
[ "Apache-2.0" ]
null
null
null
app/dashboard.py
nidheesh6/earlyearthquake
d0ab976629f126206afcd3dc15a76c66992f8a9e
[ "Apache-2.0" ]
null
null
null
import dash from dash.dependencies import Input, Output import dash_core_components as dcc import dash_html_components as html import psycopg2 import json import pandas as pd import time app = dash.Dash(__name__) #app.css.config.serve_locally=False #app.css.append_css( # {'external_url': 'https://codepen.io/amyosh...
30.965217
193
0.48975
380
3,561
4.455263
0.521053
0.024808
0.023036
0.016539
0.050797
0
0
0
0
0
0
0.031436
0.33895
3,561
114
194
31.236842
0.687766
0.045493
0
0.032609
0
0.01087
0.244964
0.021919
0
0
0
0
0
1
0.021739
false
0.01087
0.086957
0
0.141304
0.021739
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
0
1
0
2f63b5c96ba7f532ebe24f05547c39f51d21dc62
1,291
py
Python
ddlc/database.py
UltiRequiem/ddlc_api
ab542b6b9b1979421531dcce636cfe30d18d3a9d
[ "MIT" ]
5
2021-11-19T18:57:27.000Z
2022-03-19T23:53:45.000Z
ddlc/database.py
UltiRequiem/ddlc_api
ab542b6b9b1979421531dcce636cfe30d18d3a9d
[ "MIT" ]
5
2021-11-07T02:43:26.000Z
2022-03-06T03:16:28.000Z
ddlc/database.py
UltiRequiem/ddlc_api
ab542b6b9b1979421531dcce636cfe30d18d3a9d
[ "MIT" ]
3
2021-11-19T18:57:28.000Z
2021-11-19T19:02:39.000Z
import pymongo from .config import DB_PASSWORD, DB_USER, CLUSTER_NAME, SUBDOMAIN, DB_NAME from .exceptions import CharacterNotFound, PoemAuthorNotFound class DatabaseService: def __init__(self): client = pymongo.MongoClient( f"mongodb+srv://{DB_USER}:{DB_PASSWORD}@{CLUSTER_NAME}.{SUBDOMAIN}.m...
28.065217
101
0.652982
153
1,291
5.287582
0.313725
0.037083
0.049444
0.044499
0.076638
0.076638
0
0
0
0
0
0
0.235476
1,291
45
102
28.688889
0.819656
0
0
0
0
0
0.088304
0.066615
0
0
0
0
0
1
0.258065
false
0.064516
0.096774
0.096774
0.548387
0.032258
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
1
0
0
1
0
0
3
2f6638f61b3058472b08244c7bbaf61f509b9975
4,525
py
Python
scripts/main_experiment.py
wsavran/relm_pycsep_reproducibility
29294dc37627e74b4fcc4d05add1efc5950ded82
[ "BSD-3-Clause" ]
null
null
null
scripts/main_experiment.py
wsavran/relm_pycsep_reproducibility
29294dc37627e74b4fcc4d05add1efc5950ded82
[ "BSD-3-Clause" ]
null
null
null
scripts/main_experiment.py
wsavran/relm_pycsep_reproducibility
29294dc37627e74b4fcc4d05add1efc5950ded82
[ "BSD-3-Clause" ]
null
null
null
# imports from collections import defaultdict import numpy as np import matplotlib.pyplot as pyplot # pycsep imports import csep from csep.utils import stats, plots # experiment imports from experiment_utilities import ( load_zechar_catalog, plot_consistency_test_comparison, read_zechar_csv_t...
31.206897
113
0.651271
556
4,525
5.016187
0.25
0.057368
0.01972
0.03227
0.328075
0.242739
0.223378
0.223378
0.20545
0.20545
0
0.006605
0.230497
4,525
144
114
31.423611
0.794371
0.076022
0
0.242718
0
0.009709
0.183085
0.107641
0
0
0
0
0
1
0
false
0
0.067961
0
0.067961
0.116505
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
0
1
0
2f677c0ab09b208476f962949003f247df030535
10,284
py
Python
kakuro.py
PanPapag/Kakuro
c2de75fff059fdb479c6c435205cf864bd057510
[ "MIT" ]
5
2020-01-01T19:12:34.000Z
2020-05-16T08:57:08.000Z
kakuro.py
PanPapag/Kakuro
c2de75fff059fdb479c6c435205cf864bd057510
[ "MIT" ]
1
2020-04-26T09:51:55.000Z
2020-04-26T10:41:25.000Z
kakuro.py
PanPapag/Kakuro
c2de75fff059fdb479c6c435205cf864bd057510
[ "MIT" ]
null
null
null
import os import re import sys import time import puzzles from csp import * from search import * from utils import * class Kakuro(CSP): def __init__(self, puzzle): self.puzzle = puzzle self.rows_size = len(puzzle) self.cols_size = len(puzzle[0]) self.variables = self.get_variables(...
40.809524
115
0.50564
1,165
10,284
4.345064
0.13133
0.011853
0.041486
0.01778
0.593244
0.531411
0.469972
0.424338
0.365863
0.337021
0
0.010034
0.379813
10,284
251
116
40.972112
0.783631
0.082653
0
0.397059
0
0
0.041454
0.006378
0.009804
0
0
0
0
1
0.063725
false
0
0.039216
0
0.20098
0.073529
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
0
1
0
2f6b470e4d68764c82c5e960377985365be6d841
49
py
Python
AD-HOC/2416.py
jeconiassantos/uriissues
f6c32f8632b9940a4886240ea5d22300922dc79a
[ "MIT" ]
null
null
null
AD-HOC/2416.py
jeconiassantos/uriissues
f6c32f8632b9940a4886240ea5d22300922dc79a
[ "MIT" ]
null
null
null
AD-HOC/2416.py
jeconiassantos/uriissues
f6c32f8632b9940a4886240ea5d22300922dc79a
[ "MIT" ]
null
null
null
C, N = map(int, input().split(' ')) print(C % N)
16.333333
35
0.510204
9
49
2.777778
0.777778
0.16
0
0
0
0
0
0
0
0
0
0
0.183673
49
2
36
24.5
0.625
0
0
0
0
0
0.020408
0
0
0
0
0
0
1
0
true
0
0
0
0
0.5
1
1
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
1
0
0
0
0
1
0
5
2f6b78883c06f33b085d614b2c51070339de771d
2,682
py
Python
plot.py
nsi88/ctg-plot
c623fb76d72429f0411d42ff1e380a7a46d8c04f
[ "MIT" ]
null
null
null
plot.py
nsi88/ctg-plot
c623fb76d72429f0411d42ff1e380a7a46d8c04f
[ "MIT" ]
null
null
null
plot.py
nsi88/ctg-plot
c623fb76d72429f0411d42ff1e380a7a46d8c04f
[ "MIT" ]
null
null
null
import csv import os import sys import matplotlib.pyplot as plt from metrics.index import metrics from plot_package.helpers import ascendence_label, descendence_label, with_sign if len(sys.argv) != 2: print(f"{__file__} sample_name.csv") sys.exit(1) sample_name = sys.argv[1] # set size plt.figure(figsize=(...
28.531915
99
0.688292
381
2,682
4.692913
0.330709
0.061521
0.036353
0.018456
0.11689
0.11689
0.030201
0.030201
0
0
0
0.016887
0.183072
2,682
93
100
28.83871
0.799178
0.218867
0
0.15873
0
0
0.116369
0.052632
0
0
0
0.010753
0
1
0
false
0
0.095238
0
0.095238
0.015873
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
2f6b87929186c7b4d57d3ad6750b0986257cf867
662
py
Python
list_prime.py
zm6/Python-Practice
c2080e1104cd7cee4af8ebc3e3f4941fc7466586
[ "MIT" ]
null
null
null
list_prime.py
zm6/Python-Practice
c2080e1104cd7cee4af8ebc3e3f4941fc7466586
[ "MIT" ]
null
null
null
list_prime.py
zm6/Python-Practice
c2080e1104cd7cee4af8ebc3e3f4941fc7466586
[ "MIT" ]
null
null
null
#!/user/bin/env python # -*- coding:utf-8 -*- # 作者:zm6 # 创建:2021-03-19 # 更新:2021-03-19 # 用意:打印N以内的质数 import time # 比较代码运行时间 def list_prime(n): num = 0 for i in range(2, n + 1): is_prime = 1 #预设质数为是 for j in range(2, i - 1): if i % j == 0: is_prime = 0 #设置质数为否 ...
16.55
54
0.493958
97
662
3.237113
0.556701
0.066879
0.050955
0
0
0
0
0
0
0
0
0.066351
0.362538
662
39
55
16.974359
0.677725
0.188822
0
0
0
0
0.076336
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.15
0.15
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
0
1
0
2f6cee267527184d028d64eb983074f84ea9f058
2,246
py
Python
foyer/tests/test_forcefield.py
rmatsum836/foyer
c150d6f4c34e9ca7c5e4012e4406fb4ebab588cb
[ "MIT" ]
1
2020-11-08T23:51:29.000Z
2020-11-08T23:51:29.000Z
foyer/tests/test_forcefield.py
rmatsum836/foyer
c150d6f4c34e9ca7c5e4012e4406fb4ebab588cb
[ "MIT" ]
null
null
null
foyer/tests/test_forcefield.py
rmatsum836/foyer
c150d6f4c34e9ca7c5e4012e4406fb4ebab588cb
[ "MIT" ]
null
null
null
import glob import os from pkg_resources import resource_filename import mbuild as mb import parmed as pmd import pytest from foyer import Forcefield from foyer.tests.utils import get_fn FF_DIR = resource_filename('foyer', 'forcefields') FORCEFIELDS = glob.glob(os.path.join(FF_DIR, '*.xml')) def test_load_files()...
31.194444
72
0.684328
344
2,246
4.34593
0.232558
0.053512
0.060201
0.056187
0.638796
0.632776
0.632776
0.632776
0.632776
0.527759
0
0.031798
0.18789
2,246
71
73
31.633803
0.787829
0
0
0.509434
0
0
0.06545
0
0
0
0
0
0.377358
1
0.09434
false
0
0.150943
0
0.245283
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
0
0
1
0
2f6d26b42b45ea8ec8df168ee13e107fabe9add1
407
py
Python
Back/ns_portal/database/main_db/troles_model.py
anthonyHenryNS/NsPortal
dcb4b4e0a70c1c3431d5438d97e80f5d05c8e10e
[ "MIT" ]
1
2019-01-22T15:16:43.000Z
2019-01-22T15:16:43.000Z
Back/ns_portal/database/main_db/troles_model.py
NaturalSolutions/NsPortal
bcd07fdf015948a82f4d0c3c9a02f513b2d99f5d
[ "MIT" ]
16
2015-09-28T14:46:13.000Z
2020-04-20T10:34:25.000Z
Back/ns_portal/database/main_db/troles_model.py
anthonyHenryNS/NsPortal
dcb4b4e0a70c1c3431d5438d97e80f5d05c8e10e
[ "MIT" ]
10
2015-05-06T08:05:09.000Z
2020-01-27T13:39:47.000Z
from ns_portal.database.meta import ( Main_Db_Base ) from sqlalchemy import ( Column, Integer, String ) class TRoles(Main_Db_Base): __tablename__ = 'TRoles' TRol_PK_ID = Column( Integer, primary_key=True ) TRol_Label = Column( String(250), nullable=Fals...
15.653846
37
0.594595
44
407
5.181818
0.613636
0.052632
0.087719
0.201754
0
0
0
0
0
0
0
0.021818
0.324324
407
25
38
16.28
0.807273
0
0
0.181818
0
0
0.014742
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.318182
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
2f6fd35b1512af4a2c444f8b5323ece8c562f37c
2,869
py
Python
src/authorization/validators.py
dmitrijbozhkov/cloudcourseproject
3e62a5fafef418c1c058587abc5615b03fc2325a
[ "Apache-2.0" ]
null
null
null
src/authorization/validators.py
dmitrijbozhkov/cloudcourseproject
3e62a5fafef418c1c058587abc5615b03fc2325a
[ "Apache-2.0" ]
7
2021-02-08T20:41:23.000Z
2022-03-12T00:21:37.000Z
src/authorization/validators.py
dmitrijbozhkov/cloudcourseproject
3e62a5fafef418c1c058587abc5615b03fc2325a
[ "Apache-2.0" ]
null
null
null
""" Form validators for authorization """ import re from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField from wtforms.validators import DataRequired, Length, ValidationError, Email, EqualTo from cloudcourseproject.src.model import User def password_validator(password): """ Va...
42.191176
117
0.684559
323
2,869
6.043344
0.291022
0.050205
0.032275
0.029201
0.553791
0.553791
0.553791
0.529201
0.485143
0.485143
0
0.008787
0.206692
2,869
67
118
42.820896
0.848858
0.102475
0
0.461538
0
0
0.274455
0
0
0
0
0
0
1
0.096154
false
0.442308
0.096154
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2f705c1639774ae7481bbdfb1680d2106c872e2a
1,418
py
Python
app/pipelines/load_data/load_marketing_data/__init__.py
mediaimprove/mara-example-project-1
d1cab4cf079e78a4c0f73edac73200fac4112f34
[ "MIT" ]
22
2020-10-07T21:32:07.000Z
2022-03-21T19:21:36.000Z
app/pipelines/load_data/load_marketing_data/__init__.py
mediaimprove/mara-example-project-1
d1cab4cf079e78a4c0f73edac73200fac4112f34
[ "MIT" ]
4
2020-07-16T15:22:46.000Z
2020-10-28T15:18:32.000Z
app/pipelines/load_data/load_marketing_data/__init__.py
mediaimprove/mara-example-project-1
d1cab4cf079e78a4c0f73edac73200fac4112f34
[ "MIT" ]
4
2020-10-08T10:30:04.000Z
2022-03-19T09:21:51.000Z
import pathlib from mara_pipelines.commands.sql import ExecuteSQL, Copy from mara_pipelines.pipelines import Pipeline, Task from mara_pipelines import config pipeline = Pipeline( id="load_marketing_data", description="Jobs related with loading marketing leads data from the backend database", max_number_of...
32.227273
108
0.61213
154
1,418
5.337662
0.441558
0.06326
0.062044
0.053528
0.143552
0
0
0
0
0
0
0.000987
0.285614
1,418
43
109
32.976744
0.810464
0
0
0.055556
0
0
0.311707
0.089563
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
0
0
1
0
2f710ce3e46ffdc56061d382495ca8df6e25a15b
320
py
Python
apps/urls.py
cijianciqing/myWX_l_ningmo
df4c80554b0f3c58060352fc0d5fc6c649f805c8
[ "Apache-2.0" ]
null
null
null
apps/urls.py
cijianciqing/myWX_l_ningmo
df4c80554b0f3c58060352fc0d5fc6c649f805c8
[ "Apache-2.0" ]
null
null
null
apps/urls.py
cijianciqing/myWX_l_ningmo
df4c80554b0f3c58060352fc0d5fc6c649f805c8
[ "Apache-2.0" ]
null
null
null
from django.urls import path,include from .views import menu, image, weixinFile urlpatterns = [ path('menu/list', menu.get_menu), path('menu/user', menu.UserMenu.as_view()), path('image', image.ImageView.as_view()), path('saveWX', weixinFile.saveWX), path('getRecentWX', weixinFile.getRecentWX), ]
26.666667
48
0.696875
40
320
5.5
0.5
0.072727
0.090909
0
0
0
0
0
0
0
0
0
0.14375
320
12
49
26.666667
0.80292
0
0
0
0
0
0.125392
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
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
0
0
1
0
2f7149167478c04bd0604548dfe0f8ebb31e11a2
1,178
py
Python
mayan/apps/django_gpg/links.py
garrans/mayan-edms
e95e90cc47447a1ae72629271652824aa9868572
[ "Apache-2.0" ]
null
null
null
mayan/apps/django_gpg/links.py
garrans/mayan-edms
e95e90cc47447a1ae72629271652824aa9868572
[ "Apache-2.0" ]
null
null
null
mayan/apps/django_gpg/links.py
garrans/mayan-edms
e95e90cc47447a1ae72629271652824aa9868572
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.utils.translation import ugettext_lazy as _ from navigation import Link from .permissions import ( permission_key_delete, permission_key_receive, permission_key_view, permission_keyserver_query ) link_private_keys = Link( icon='fa fa-key', permissions=...
31.837838
77
0.749576
155
1,178
5.296774
0.264516
0.126675
0.095006
0.116931
0.274056
0.244823
0.181486
0.181486
0.181486
0.181486
0
0
0.119694
1,178
36
78
32.722222
0.791707
0
0
0.096774
0
0
0.241935
0.103565
0
0
0
0
0
1
0
false
0
0.16129
0
0.16129
0.032258
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
0
1
0
2f73b6858df8269c4f5f2480de3342f864156c6c
1,489
py
Python
rosalind/splc/splc.py
TecKnow/learning
71d1ddf9d580027ecc62a067581da378a9e85f6d
[ "BSD-3-Clause" ]
null
null
null
rosalind/splc/splc.py
TecKnow/learning
71d1ddf9d580027ecc62a067581da378a9e85f6d
[ "BSD-3-Clause" ]
null
null
null
rosalind/splc/splc.py
TecKnow/learning
71d1ddf9d580027ecc62a067581da378a9e85f6d
[ "BSD-3-Clause" ]
null
null
null
""" Problem : RNA Splicing URL : http://rosalind.info/problems/splc/ Author : David P. Perkins """ import fasta def getCodingRegion(DNAString, introns): #print("DNA String", DNAString, "introns", introns) codingString = list() workingString = DNAString while workingString: for curI...
29.78
85
0.601746
161
1,489
5.490683
0.52795
0.036199
0.058824
0
0
0
0
0
0
0
0
0.007353
0.269308
1,489
49
86
30.387755
0.805147
0.200134
0
0
0
0
0.036441
0.024576
0
0
0
0
0
1
0.0625
false
0
0.09375
0
0.21875
0.03125
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
0
1
0
2f74e4a6873c5b5dffd070a88fe2c8e9d487f559
191
py
Python
common/helpers.py
denisov-vlad/mtuci-masters
6fa68adb156ba4b43b4995d365f450654df70fa3
[ "MIT" ]
null
null
null
common/helpers.py
denisov-vlad/mtuci-masters
6fa68adb156ba4b43b4995d365f450654df70fa3
[ "MIT" ]
null
null
null
common/helpers.py
denisov-vlad/mtuci-masters
6fa68adb156ba4b43b4995d365f450654df70fa3
[ "MIT" ]
null
null
null
import os def encode(s): if isinstance(s, bytes): return s.decode('utf-8', 'ignore') else: return str(s) path_joiner = os.path.join path_basename = os.path.basename
17.363636
42
0.633508
29
191
4.103448
0.655172
0.10084
0
0
0
0
0
0
0
0
0
0.006849
0.235602
191
11
43
17.363636
0.808219
0
0
0
0
0
0.057292
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.5
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
2f75db3882d66a7931843a46ed92b1bea9dfaf2f
6,448
py
Python
tests/integration/test_interrupt_fields.py
jvanstraten/vhdmmio
f166b07074a9159311a01af88497df91c19e09d1
[ "Apache-2.0" ]
4
2019-07-01T14:41:38.000Z
2021-11-28T12:54:49.000Z
tests/integration/test_interrupt_fields.py
jvanstraten/vhdmmio
f166b07074a9159311a01af88497df91c19e09d1
[ "Apache-2.0" ]
4
2019-08-23T15:05:24.000Z
2020-12-16T10:02:20.000Z
tests/integration/test_interrupt_fields.py
jvanstraten/vhdmmio
f166b07074a9159311a01af88497df91c19e09d1
[ "Apache-2.0" ]
1
2021-07-16T13:41:21.000Z
2021-07-16T13:41:21.000Z
"""Interrupt field tests.""" from copy import deepcopy from unittest import TestCase from ..testbench import RegisterFileTestbench class TestInterruptFields(TestCase): """Interrupt field tests""" def test_fields(self): """test interrupt fields""" fields = [] types = { typ:...
38.380952
89
0.498759
628
6,448
5.078025
0.173567
0.076827
0.075886
0.110379
0.618062
0.566008
0.525557
0.358733
0.358733
0.314205
0
0.032567
0.352357
6,448
167
90
38.610778
0.731082
0.015664
0
0.455782
0
0
0.165033
0.003636
0
0
0.024344
0
0.217687
1
0.013605
false
0
0.020408
0
0.040816
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
0
0
1
0
2f762c138bc0fd2f04d2c1539f4eca93c9446723
1,745
py
Python
app.py
corsmith/openshift-webhook-webex-teams-translator
fc20d4cdf2ca0959d2875048e6c5e5a1477ccec5
[ "BSD-3-Clause" ]
null
null
null
app.py
corsmith/openshift-webhook-webex-teams-translator
fc20d4cdf2ca0959d2875048e6c5e5a1477ccec5
[ "BSD-3-Clause" ]
null
null
null
app.py
corsmith/openshift-webhook-webex-teams-translator
fc20d4cdf2ca0959d2875048e6c5e5a1477ccec5
[ "BSD-3-Clause" ]
null
null
null
import tornado.ioloop import tornado.web import tornado.options from tornado.log import gen_log ''' Alert Manager Documentation: https://prometheus.io/docs/alerting/configuration/ Sample alertmanager message: { "version": "4", "groupKey": <string>, // key identifying the group of alerts (e.g. to deduplicate)...
27.698413
177
0.638395
190
1,745
5.778947
0.6
0.03643
0.03643
0.04918
0
0
0
0
0
0
0
0.009986
0.196562
1,745
62
178
28.145161
0.773181
0
0
0
0
0.034483
0.232692
0.027885
0
0
0
0
0
1
0.103448
false
0
0.137931
0.034483
0.344828
0.068966
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
0
1
0
2f76d7407f4890886daf9577fd641a2214d9abc6
1,848
py
Python
backend/serializers.py
richardswei/werk
b08b1ffc2d3aaf61f2cfb07ecc259a35eea77e91
[ "MIT" ]
null
null
null
backend/serializers.py
richardswei/werk
b08b1ffc2d3aaf61f2cfb07ecc259a35eea77e91
[ "MIT" ]
8
2020-03-21T01:57:31.000Z
2021-09-22T18:46:07.000Z
backend/serializers.py
richardswei/werkit
b08b1ffc2d3aaf61f2cfb07ecc259a35eea77e91
[ "MIT" ]
null
null
null
from rest_framework import serializers from backend.models import TodoItem, Note from django.contrib.auth import authenticate, get_user_model class TodoItemSerializer(serializers.ModelSerializer): class Meta: model = TodoItem fields = ('id', 'created', 'updated', 'due', 'title', 'description', 'pr...
33.6
113
0.679113
195
1,848
6.276923
0.394872
0.063725
0.029412
0.05719
0.271242
0.088235
0.088235
0.088235
0.088235
0.088235
0
0
0.202922
1,848
54
114
34.222222
0.830957
0.112013
0
0.189189
0
0
0.14652
0
0
0
0
0.018519
0
1
0.054054
false
0.108108
0.081081
0
0.486486
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
1
0
0
0
0
0
2
2f7707e7a77d86241b0db0b4c74b1a925d1c197b
695
py
Python
projects/demos/location2.py
readysetstem/readysetstem-api
01e1360f4a28a6783ee1e0fa1bc239dd999de6be
[ "Apache-2.0" ]
1
2018-02-23T20:20:45.000Z
2018-02-23T20:20:45.000Z
projects/demos/location2.py
readysetstem/readysetstem-api
01e1360f4a28a6783ee1e0fa1bc239dd999de6be
[ "Apache-2.0" ]
1
2016-10-25T18:00:15.000Z
2016-10-25T18:00:15.000Z
projects/demos/location2.py
readysetstem/readysetstem-api
01e1360f4a28a6783ee1e0fa1bc239dd999de6be
[ "Apache-2.0" ]
null
null
null
from rstem.led_matrix import FrameBuffer from rstem.mcpi import minecraft, control import time control.show() mc = minecraft.Minecraft.create() SCALE = 25 fb = FrameBuffer() count = 0 FLASH_COUNT = 3 flash_lit = True while True: pos = mc.player.getTilePos() x = round(pos.x/SCALE + (fb.width-1)/2) x_out_of_bound...
19.305556
61
0.683453
130
695
3.507692
0.353846
0.070175
0.096491
0.052632
0.065789
0
0
0
0
0
0
0.033333
0.179856
695
35
62
19.857143
0.766667
0
0
0.074074
0
0
0
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
0
0
1
0
2f793c352ccb3c8ed1a615cf95be1f974da7e115
10,833
py
Python
distributed_train.py
ShivamShrirao/contrastive-unpaired-translation
e81611a5bd8b7aee6aedab10aadf9e22a0804a63
[ "BSD-3-Clause" ]
null
null
null
distributed_train.py
ShivamShrirao/contrastive-unpaired-translation
e81611a5bd8b7aee6aedab10aadf9e22a0804a63
[ "BSD-3-Clause" ]
null
null
null
distributed_train.py
ShivamShrirao/contrastive-unpaired-translation
e81611a5bd8b7aee6aedab10aadf9e22a0804a63
[ "BSD-3-Clause" ]
null
null
null
import os from os.path import join as osp import numpy as np from tqdm import tqdm import wandb import torch import torch.nn as nn import torch.optim as optim from torch.cuda import amp import torch.distributed as dist from torch.nn.parallel import DistributedDataParallel as DDP from torch import autograd from torch...
48.361607
141
0.63925
1,510
10,833
4.362914
0.16755
0.020644
0.031573
0.044627
0.386157
0.346995
0.234214
0.20932
0.194596
0.184274
0
0.00775
0.2377
10,833
223
142
48.578475
0.790022
0.137173
0
0.07362
0
0
0.042065
0.002361
0
0
0
0
0
1
0.055215
false
0
0.110429
0
0.196319
0.02454
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
0
1
0
2f79b110e6695d3ccede296e521acb7c60c79294
889
py
Python
src/backend/common/models/notifications/tests/verification_test.py
bovlb/the-blue-alliance
29389649d96fe060688f218d463e642dcebfd6cc
[ "MIT" ]
null
null
null
src/backend/common/models/notifications/tests/verification_test.py
bovlb/the-blue-alliance
29389649d96fe060688f218d463e642dcebfd6cc
[ "MIT" ]
null
null
null
src/backend/common/models/notifications/tests/verification_test.py
bovlb/the-blue-alliance
29389649d96fe060688f218d463e642dcebfd6cc
[ "MIT" ]
null
null
null
from backend.common.consts.notification_type import NotificationType from backend.common.models.notifications.verification import ( VerificationNotification, ) def test_str(): notification = VerificationNotification("https://thebluealliance.com/", "password") assert "{'verification_key': " in str(notifica...
34.192308
87
0.786277
90
889
7.566667
0.333333
0.041116
0.180617
0.246696
0.356828
0.356828
0.356828
0.249633
0
0
0
0
0.11811
889
25
88
35.56
0.868622
0
0
0.176471
0
0
0.163105
0
0
0
0
0
0.294118
1
0.235294
false
0.176471
0.117647
0
0.352941
0
0
0
0
null
0
1
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
1
0
1
0
0
0
0
0
4
2f7b986c2b053cb63e12ef06cb1f0c6623d1ab5a
4,043
py
Python
Generator.py
pawelmakarov/ORM
1a17599b31ce6d73b08c8fa424e0a4201abfb3d3
[ "MIT" ]
null
null
null
Generator.py
pawelmakarov/ORM
1a17599b31ce6d73b08c8fa424e0a4201abfb3d3
[ "MIT" ]
null
null
null
Generator.py
pawelmakarov/ORM
1a17599b31ce6d73b08c8fa424e0a4201abfb3d3
[ "MIT" ]
null
null
null
class Generator(object): def __init__(self): self.tables = [] self.alters = [] self.triggers = [] def write_to_file(self, output_file): with open(output_file, 'w') as sql_file: sql_file.write('{0}{1}'.format('\n'.join(table for table in self.tables), '\n')) ...
43.010638
108
0.594855
514
4,043
4.445525
0.200389
0.06302
0.066958
0.017068
0.23151
0.18512
0.099344
0.099344
0.088403
0
0
0.012321
0.257235
4,043
93
109
43.473118
0.748585
0
0
0.053333
0
0.013333
0.183527
0.020777
0
0
0
0
0
1
0.173333
false
0
0.013333
0
0.293333
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
0
0
1
0
2f7d4b66c546d9cc934e15934759dad2ba2d7078
1,967
py
Python
src/zope/error/interfaces.py
zopefoundation/zope.error
8dc7b77a60388bdfb5b2a4606ed8b400db06d3ef
[ "ZPL-2.1" ]
null
null
null
src/zope/error/interfaces.py
zopefoundation/zope.error
8dc7b77a60388bdfb5b2a4606ed8b400db06d3ef
[ "ZPL-2.1" ]
9
2016-03-24T07:48:35.000Z
2018-10-19T13:28:04.000Z
src/zope/error/interfaces.py
zopefoundation/zope.error
8dc7b77a60388bdfb5b2a4606ed8b400db06d3ef
[ "ZPL-2.1" ]
1
2015-04-03T08:42:41.000Z
2015-04-03T08:42:41.000Z
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # 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. # TH...
32.783333
79
0.627351
213
1,967
5.690141
0.586854
0.016502
0.05198
0.042079
0.067657
0.067657
0.067657
0
0
0
0
0.007106
0.213015
1,967
59
80
33.338983
0.77584
0.605999
0
0
0
0
0.034335
0
0
0
0
0
0
1
0.5
false
0
0.1
0
0.8
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
1
0
0
2
2f7fed0d5af3b96a037248f18b9e9cf73c47b30c
7,847
py
Python
python/sacconfig.py
Cadair/VivaTalk
d9bd5b0c0fca7756c07cbe1adb2f809cd00e9dae
[ "MIT" ]
null
null
null
python/sacconfig.py
Cadair/VivaTalk
d9bd5b0c0fca7756c07cbe1adb2f809cd00e9dae
[ "MIT" ]
null
null
null
python/sacconfig.py
Cadair/VivaTalk
d9bd5b0c0fca7756c07cbe1adb2f809cd00e9dae
[ "MIT" ]
null
null
null
import os import ConfigParser mu0 = 1.25663706e-6 class SACConfig(object): def __init__(self, cfg_file=os.path.dirname(__file__) + '/sac_config.cfg'): self.cfg_file = cfg_file self.cfg = ConfigParser.SafeConfigParser() self.cfg.read(self.cfg_file) def _get_value(self, section, optio...
29.836502
79
0.521601
857
7,847
4.522754
0.110852
0.055728
0.049536
0.057018
0.272962
0.171569
0.131579
0.024252
0.024252
0
0
0.00468
0.264815
7,847
262
80
29.950382
0.667187
0.108704
0
0.223881
0
0
0.100587
0
0
0
0
0
0
0
null
null
0
0.00995
null
null
0.144279
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
2f80a6cd8804248e492bd75be4cdf855bd46b3e3
1,606
py
Python
location/models.py
swallville/driverBackEnd
3599e5a2e58304e08502b10a3856b77a05c7fd16
[ "MIT" ]
null
null
null
location/models.py
swallville/driverBackEnd
3599e5a2e58304e08502b10a3856b77a05c7fd16
[ "MIT" ]
3
2021-03-30T12:53:49.000Z
2021-09-22T18:44:52.000Z
location/models.py
swallville/driverBackEnd
3599e5a2e58304e08502b10a3856b77a05c7fd16
[ "MIT" ]
null
null
null
from django.contrib.gis.db import models from django.db.models import Q from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy as _ # Create your models here. class Location (models.Model): name = models.CharField( max_length=100, verbose_name='Name of...
30.301887
105
0.619552
178
1,606
5.438202
0.404494
0.102273
0.07438
0.099174
0.117769
0.117769
0.117769
0
0
0
0
0.013571
0.265878
1,606
52
106
30.884615
0.807464
0.014944
0
0.071429
0
0
0.161392
0
0
0
0
0
0
1
0.071429
false
0
0.095238
0.02381
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
0
0
0
0
0
1
0
2f80bcfa95cb3fbe5e797d073a38bc12a4dae7f4
842
py
Python
sitemap_urls_auditor/logger/main_logger.py
alena-kono/sitemap-urls-auditor
b9f1651c48fd8e4131eca8ee44122ffa54a4576e
[ "MIT" ]
null
null
null
sitemap_urls_auditor/logger/main_logger.py
alena-kono/sitemap-urls-auditor
b9f1651c48fd8e4131eca8ee44122ffa54a4576e
[ "MIT" ]
null
null
null
sitemap_urls_auditor/logger/main_logger.py
alena-kono/sitemap-urls-auditor
b9f1651c48fd8e4131eca8ee44122ffa54a4576e
[ "MIT" ]
null
null
null
"""Module configures project's main logger.""" import logging from loguru import logger def disable_usp_logging() -> None: """Disable logging of ultimate-sitemap-parser (usp) library. Usp package initializes default logging.Logger() each time it imports something from its core submodules. Therefor...
24.764706
78
0.709026
108
842
5.407407
0.564815
0.082192
0.077055
0.071918
0
0
0
0
0
0
0
0.009009
0.209026
842
33
79
25.515152
0.867868
0.447743
0
0
0
0
0.007229
0
0
0
0
0
0
1
0.2
false
0
0.3
0
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
2f8142cd627ecd115f6acdab00511ac3d94dfb10
14,213
py
Python
matroska_cache/dep/scopes.py
kolypto/py-matroska-cache
b40030f97d463aac8e3a6f4b0e0e9f081dfc92b1
[ "MIT" ]
null
null
null
matroska_cache/dep/scopes.py
kolypto/py-matroska-cache
b40030f97d463aac8e3a6f4b0e0e9f081dfc92b1
[ "MIT" ]
null
null
null
matroska_cache/dep/scopes.py
kolypto/py-matroska-cache
b40030f97d463aac8e3a6f4b0e0e9f081dfc92b1
[ "MIT" ]
null
null
null
from __future__ import annotations import warnings from typing import Any, List, Callable, Tuple, Union, Collection, FrozenSet, Optional, Iterable, Set from .base import DependencyBase, dataclass from .tag import Tag ExtractorFunc = Callable[[Any], Optional[dict]] class Scopes: """ Generate dependencies that ...
42.810241
139
0.642651
1,711
14,213
5.251315
0.229106
0.017807
0.014023
0.010017
0.186867
0.162159
0.123317
0.123317
0.123317
0.116416
0
0.00069
0.286569
14,213
331
140
42.939577
0.885404
0.602617
0
0.166667
0
0.010417
0.140249
0.038382
0
0
0
0
0
1
0.09375
false
0
0.052083
0.010417
0.364583
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
0
0
1
0
2f8296613ef32d75696e51924c20cb22faf6bba2
812
py
Python
dataporten/middleware.py
frafra/django-dataporten
4236017611e08d08bd810be0beae1b994cb5fc67
[ "MIT" ]
4
2019-01-06T17:56:07.000Z
2021-03-21T19:16:35.000Z
dataporten/middleware.py
frafra/django-dataporten
4236017611e08d08bd810be0beae1b994cb5fc67
[ "MIT" ]
9
2019-10-21T17:23:53.000Z
2021-06-10T21:06:25.000Z
dataporten/middleware.py
frafra/django-dataporten
4236017611e08d08bd810be0beae1b994cb5fc67
[ "MIT" ]
2
2019-04-29T11:48:59.000Z
2020-01-06T09:54:55.000Z
import logging import requests import requests_cache from django.conf import settings from django.http import HttpResponse, HttpRequest try: from django.utils.deprecation import MiddlewareMixin except ImportError: MiddlewareMixin = object from .api import usergroups from .models import DataportenUser # Cach...
26.193548
60
0.758621
87
812
6.873563
0.563218
0.050167
0.076923
0
0
0
0
0
0
0
0
0.01203
0.181034
812
30
61
27.066667
0.887218
0.035714
0
0
0
0
0.028169
0
0
0
0
0
0
1
0.043478
false
0
0.391304
0
0.478261
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
2f853129c44d31a1158c0bd481a49cd736cdcaa4
7,326
py
Python
sm4.py
cclauss/Pythonista-sm
ef5c6527f36334a2b4dc3f0a92f957161aa3bdd3
[ "Apache-2.0" ]
3
2021-08-23T02:49:09.000Z
2021-08-24T01:48:14.000Z
sm4.py
cclauss/Pythonista-sm
ef5c6527f36334a2b4dc3f0a92f957161aa3bdd3
[ "Apache-2.0" ]
null
null
null
sm4.py
cclauss/Pythonista-sm
ef5c6527f36334a2b4dc3f0a92f957161aa3bdd3
[ "Apache-2.0" ]
1
2021-08-23T03:02:39.000Z
2021-08-23T03:02:39.000Z
# -*-coding:utf-8-*- import base64 import copy from .func import xor, rotl, get_uint32_be, put_uint32_be, bytes_to_list, list_to_bytes, padding, un_padding BOXES_TABLE = [ 0xd6, 0x90, 0xe9, 0xfe, 0xcc, 0xe1, 0x3d, 0xb7, 0x16, 0xb6, 0x14, 0xc2, 0x28, 0xfb, 0x2c, 0x05, 0x2b, 0x67, 0x9a, 0x76, 0x2a,...
15.822894
108
0.632678
1,181
7,326
3.77138
0.367485
0.028738
0.028289
0.035025
0.316345
0.236641
0.201841
0.134037
0.121688
0.118096
0
0.189908
0.210074
7,326
462
109
15.857143
0.579748
0.104559
0
0.08794
0
0.002513
0.027401
0.009852
0
0
0.213054
0
0
1
0.030151
false
0
0.007538
0
0.067839
0.005025
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
0
1
0
2f86b378e72ad44c8909918ac3d29f4b3f63ef71
617
py
Python
question_bank/unique-paths/unique-paths.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
9
2020-08-12T10:01:00.000Z
2022-01-05T04:37:48.000Z
question_bank/unique-paths/unique-paths.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
1
2021-02-16T10:19:31.000Z
2021-02-16T10:19:31.000Z
question_bank/unique-paths/unique-paths.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
4
2020-08-12T10:13:31.000Z
2021-11-05T01:26:58.000Z
# -*- coding: utf-8 -*- # @Author : LG """ 执行用时:40 ms, 在所有 Python3 提交中击败了74.47% 的用户 内存消耗:13.8 MB, 在所有 Python3 提交中击败了7.95% 的用户 解题思路: 只能向右或向下前进。 则当前格的路径数等于左侧格的路径数+上侧格的路径数 dp[i][j] = dp[i-1][j] + dp[i][j-1] 例子: 1 1 1 1 1 1 1 2 3 4 5 6 1 3 6 10 15 21 ...
22.851852
54
0.458671
109
617
2.577982
0.458716
0.049822
0.053381
0.05694
0.124555
0.124555
0.099644
0.099644
0.099644
0.099644
0
0.145119
0.385737
617
26
55
23.730769
0.596306
0.552674
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
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
0
0
1
0
2f8851b9c216915fb1f4051cf734644949f0036e
1,207
py
Python
crusoe_observe/ansible/roles/mlData/files/build-ml.py
CSIRT-MU/CRUSOE
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
[ "MIT" ]
3
2021-11-09T09:55:17.000Z
2022-02-19T02:58:27.000Z
crusoe_observe/ansible/roles/mlData/files/build-ml.py
CSIRT-MU/CRUSOE
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
[ "MIT" ]
null
null
null
crusoe_observe/ansible/roles/mlData/files/build-ml.py
CSIRT-MU/CRUSOE
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
[ "MIT" ]
null
null
null
import sys import structlog from osrest import Tcpml import services_component def build_os(dataset_path, model_path, logger): logger.info(f"Loading OS dataset from \"{dataset_path}\".") dataset = Tcpml.load_dataset(dataset_path) logger.info(f"Building OS model.") model = Tcpml.build_model(dataset) ...
30.948718
85
0.697597
176
1,207
4.505682
0.238636
0.090794
0.06053
0.050441
0.204288
0.138714
0
0
0
0
0
0.007944
0.1657
1,207
38
86
31.763158
0.779543
0
0
0
0
0
0.295775
0.13256
0
0
0
0
0
1
0.1
false
0
0.133333
0
0.233333
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
0
0
1
0
2f88bf2c5f6df294804820f97f5c583aad4fe844
129
py
Python
ted_lm/to_run/evaluate.py
mvdwerve/NLP-Classifier
5494a789c9b87476ec4253e00e3349462f08d3d2
[ "MIT" ]
null
null
null
ted_lm/to_run/evaluate.py
mvdwerve/NLP-Classifier
5494a789c9b87476ec4253e00e3349462f08d3d2
[ "MIT" ]
null
null
null
ted_lm/to_run/evaluate.py
mvdwerve/NLP-Classifier
5494a789c9b87476ec4253e00e3349462f08d3d2
[ "MIT" ]
null
null
null
version https://git-lfs.github.com/spec/v1 oid sha256:b28da294230f24c172729139b1988b8008f6fb2c259b1c3425772b2c80cfb9dd size 2688
32.25
75
0.883721
13
129
8.769231
1
0
0
0
0
0
0
0
0
0
0
0.422764
0.046512
129
3
76
43
0.504065
0
0
0
0
0
0
0
0
1
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
5
2f8911a3ffc8a10cc46f6545eeb625b8d7a7c1f6
4,049
py
Python
converter.py
TheSpiritXIII/Qt-Creator-TmTheme
3eba37c3712da9964e775a750732b6fda7cb6536
[ "Apache-2.0" ]
1
2022-01-02T19:55:18.000Z
2022-01-02T19:55:18.000Z
converter.py
TheSpiritXIII/Qt-Creator-TmTheme
3eba37c3712da9964e775a750732b6fda7cb6536
[ "Apache-2.0" ]
null
null
null
converter.py
TheSpiritXIII/Qt-Creator-TmTheme
3eba37c3712da9964e775a750732b6fda7cb6536
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys import xml.etree.ElementTree as ET def parse_value(element): if element.tag == "string": return element.text elif element.tag == "dict": return parse_dict(element) elif element.tag == "array": return parse_array(element) else: exception = "Unknown tag `" + element.tag + "`...
29.992593
97
0.667078
500
4,049
5.3
0.27
0.076981
0.037358
0.036226
0.17434
0.123019
0.097358
0.097358
0.097358
0.067925
0
0.003545
0.163991
4,049
134
98
30.216418
0.779321
0.065942
0
0.152381
0
0
0.240795
0
0
0
0
0
0
1
0.066667
false
0
0.019048
0
0.152381
0.009524
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
0
1
0
2f8acf77c5feae7c80644d1d8292864bc245ea00
1,768
py
Python
panamsquad/urls.py
the-mandarine/mypanamsquad
b34c1c6169a3b7496e171b9536472a1ede0bdc84
[ "Beerware" ]
null
null
null
panamsquad/urls.py
the-mandarine/mypanamsquad
b34c1c6169a3b7496e171b9536472a1ede0bdc84
[ "Beerware" ]
null
null
null
panamsquad/urls.py
the-mandarine/mypanamsquad
b34c1c6169a3b7496e171b9536472a1ede0bdc84
[ "Beerware" ]
null
null
null
"""panamsquad URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
40.181818
79
0.70871
270
1,768
4.555556
0.27037
0.052033
0.045528
0.019512
0.150407
0.150407
0.11626
0.060976
0
0
0
0.005976
0.14819
1,768
43
80
41.116279
0.810757
0.426471
0
0
0
0
0.166998
0.023857
0
0
0
0
0
1
0
false
0
0.416667
0
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
0
0
0
1
0
0
0
0
1
2f8c9b6939590e2c0b5c1ffc1236673c73cfa389
1,015
py
Python
setup.py
yamahigashi/sphinx-git-lowdown
3df8ba2bb44c987f9510d45cd31198cfc5249f14
[ "Apache-2.0" ]
null
null
null
setup.py
yamahigashi/sphinx-git-lowdown
3df8ba2bb44c987f9510d45cd31198cfc5249f14
[ "Apache-2.0" ]
null
null
null
setup.py
yamahigashi/sphinx-git-lowdown
3df8ba2bb44c987f9510d45cd31198cfc5249f14
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup setup( name='sphinx-git-lowdown', version='0.0.1', url='https://github.com/yamahigashi/sphinx-git-lowdown', # download_url='http://pypi.python.org/pypi/sphinx-git-lowdown', license='Apache', author='yamahigashi', author_email='yamahigas...
30.757576
68
0.634483
107
1,015
5.906542
0.616822
0.071203
0.126582
0.075949
0
0
0
0
0
0
0
0.011222
0.209852
1,015
32
69
31.71875
0.776808
0.125123
0
0
0
0
0.510181
0.023756
0
0
0
0
0
1
0
true
0
0.038462
0
0.038462
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
2f8e310bf9e77d36d1ba6cf080e2e966d1ebdb66
63
py
Python
gira_homeserver_api/devices/value_device.py
leoyn/gira-homeserver-api
7d642413a56078f694518d9189b4b7cc9776482d
[ "MIT" ]
5
2020-03-17T12:45:50.000Z
2022-03-07T10:55:50.000Z
gira_homeserver_api/devices/value_device.py
leoyn/gira-homeserver-api
7d642413a56078f694518d9189b4b7cc9776482d
[ "MIT" ]
3
2020-04-17T09:53:45.000Z
2021-01-25T22:14:14.000Z
gira_homeserver_api/devices/value_device.py
leoyn/gira-homeserver-api
7d642413a56078f694518d9189b4b7cc9776482d
[ "MIT" ]
1
2020-04-17T06:51:50.000Z
2020-04-17T06:51:50.000Z
from .device import Device class ValueDevice(Device): pass
15.75
26
0.761905
8
63
6
0.75
0
0
0
0
0
0
0
0
0
0
0
0.174603
63
4
27
15.75
0.923077
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
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
1
1
1
0
1
0
0
6
2f8eec6be049e9fe4a729f243ebe752e635be903
1,756
py
Python
rfim2d/tests/test_param_dict.py
lxh3/rfim2d
5283d0df492ad20ecef30b17803437ca9155f8b3
[ "MIT" ]
null
null
null
rfim2d/tests/test_param_dict.py
lxh3/rfim2d
5283d0df492ad20ecef30b17803437ca9155f8b3
[ "MIT" ]
null
null
null
rfim2d/tests/test_param_dict.py
lxh3/rfim2d
5283d0df492ad20ecef30b17803437ca9155f8b3
[ "MIT" ]
null
null
null
from rfim2d import param_dict key_dict = { 'A': ['Sigma', 'a', 'b'], 'dMdh': ['hMax', 'eta', 'a', 'b', 'c'], 'joint': ['rScale', 'rc', 'sScale', 'etaScale', 'df', 'lambdaH', 'B', 'C', 'F'], 'Sigma': ['rScale', 'rc', 'sScale', 'df', 'B', 'C'], 'eta': ['rScale', 'rc', 'etaScale', 'lambd...
30.807018
83
0.600228
249
1,756
4.004016
0.261044
0.126379
0.060181
0.080241
0.211635
0.081244
0
0
0
0
0
0.01763
0.192483
1,756
56
84
31.357143
0.685473
0
0
0
0
0
0.151481
0
0
0
0
0
0.136364
1
0.113636
false
0
0.022727
0
0.159091
0.022727
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
0
1
0
2f8f9cde054908beafa4eaad551bd52319f17a78
80
py
Python
main.py
Zerex1/Test
eb1030a90961c18d7aac5f3ca63e3a540756349b
[ "MIT" ]
null
null
null
main.py
Zerex1/Test
eb1030a90961c18d7aac5f3ca63e3a540756349b
[ "MIT" ]
7
2022-02-19T16:54:51.000Z
2022-02-20T21:52:54.000Z
main.py
Scarloran/Error
07a1d70fb69b0c8ae45f500c92ad04eb59ed26f5
[ "MIT" ]
null
null
null
print('hi all') print('hii') print('hello world') print('hi') print('hello')
8.888889
20
0.625
12
80
4.166667
0.5
0.28
0
0
0
0
0
0
0
0
0
0
0.125
80
8
21
10
0.714286
0
0
0
0
0
0.3375
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
0
0
null
1
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
1
0
0
0
0
1
0
5
2f8fc48275f4387b3e97bc8ce0893dd23b2af531
2,250
py
Python
core.py
sure-fire/derbypi
681e266d40fa238effe5de54bd4bbff963db028e
[ "MIT" ]
1
2016-10-31T17:34:40.000Z
2016-10-31T17:34:40.000Z
core.py
sure-fire/derbypi
681e266d40fa238effe5de54bd4bbff963db028e
[ "MIT" ]
null
null
null
core.py
sure-fire/derbypi
681e266d40fa238effe5de54bd4bbff963db028e
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2015 Aaron Soto # Released under the MIT license # Incorporates libraries from AdaFruit, also released under the MIT license # TODO functions: # display_progress(percentage,[title]) - display a progress bar (0-1,1-100) / check for float # display_error(message,[ti...
33.088235
107
0.651556
326
2,250
4.432515
0.453988
0.031142
0.022837
0.035294
0.035986
0
0
0
0
0
0
0.009928
0.194222
2,250
68
108
33.088235
0.787093
0.452444
0
0
0
0
0.146744
0.017312
0
0
0
0.014706
0
0
null
null
0
0.177778
null
null
0.022222
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
1
0
0
0
0
0
0
0
0
2
2f90a5c7e193988dc43d8564c22a87b2b8ba9258
753
py
Python
populator/exercise_splitter.py
Calvibert/workout-generator
0c905a2132be4e0f440d8ecbfaba71592c0fe9e2
[ "MIT" ]
null
null
null
populator/exercise_splitter.py
Calvibert/workout-generator
0c905a2132be4e0f440d8ecbfaba71592c0fe9e2
[ "MIT" ]
null
null
null
populator/exercise_splitter.py
Calvibert/workout-generator
0c905a2132be4e0f440d8ecbfaba71592c0fe9e2
[ "MIT" ]
null
null
null
# Upper-lower splitter for the exercise list import sys import exercise_populator_config as conf print('Enter the file name: ') filename = sys.stdin.readline() filename = filename[0:len(filename)-1] f = open(filename, 'r') upper = conf.CONST_MUSCLES['upper'] lower = conf.CONST_MUSCLES['lower'] uex = [] lex = [] fo...
16.733333
44
0.648074
119
753
4.016807
0.378151
0.075314
0.062762
0.075314
0.104603
0.104603
0.104603
0.104603
0
0
0
0.004983
0.200531
753
44
45
17.113636
0.789037
0.055777
0
0.193548
0
0
0.077574
0
0
0
0
0
0
1
0
false
0
0.064516
0
0.064516
0.096774
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
0
1
0
2f9197c39f4c2b4b9b35a18f55ab839142699e80
4,893
py
Python
fbpmp/pcf/mpc/emp.py
benliugithub/fbpcs
7af984264428058645847135026d474d7e28144e
[ "MIT" ]
null
null
null
fbpmp/pcf/mpc/emp.py
benliugithub/fbpcs
7af984264428058645847135026d474d7e28144e
[ "MIT" ]
null
null
null
fbpmp/pcf/mpc/emp.py
benliugithub/fbpcs
7af984264428058645847135026d474d7e28144e
[ "MIT" ]
null
null
null
#!/usr/bin/env/python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import asyncio import logging import os import pathlib import shutil from typing import Dict, List from fbpmp.pcf impo...
35.977941
95
0.625179
598
4,893
4.961538
0.35786
0.032356
0.020222
0.019211
0.097068
0.06269
0.04786
0.04786
0.04786
0.04786
0
0.006014
0.286327
4,893
135
96
36.244444
0.843643
0.168404
0
0.086957
0
0
0.141203
0.070979
0
0
0
0.007407
0
1
0.032609
false
0
0.119565
0.01087
0.206522
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
0
0
1
0
2f939a72fbb64e7dc423500b36e371b897a8fc9b
2,168
py
Python
01_Plots/plot_time_differences.py
awareseven/Reproducibility-and-Replicability-of-Web-Measurement-Studies
38953c70a9ab03e1d29e4f9c6da13ffcaaeac84b
[ "Apache-2.0" ]
3
2022-01-27T07:36:24.000Z
2022-02-22T09:32:53.000Z
01_Plots/plot_time_differences.py
awareseven/Reproducibility-and-Replicability-of-Web-Measurement-Studies
38953c70a9ab03e1d29e4f9c6da13ffcaaeac84b
[ "Apache-2.0" ]
null
null
null
01_Plots/plot_time_differences.py
awareseven/Reproducibility-and-Replicability-of-Web-Measurement-Studies
38953c70a9ab03e1d29e4f9c6da13ffcaaeac84b
[ "Apache-2.0" ]
1
2022-02-02T08:21:39.000Z
2022-02-02T08:21:39.000Z
import matplotlib.font_manager as font_manager import matplotlib.pyplot as plt import pandas as pd import os # Read the data path = os.path.join(os.getcwd(), "results") df = pd.read_csv(os.path.join(path, "tracker_AND_cookies.csv")) x = df["day"] y1 = df["total_tracker"] y2 = df["tracker_distinct"] y3 = df["is_sessio...
37.37931
100
0.683579
324
2,168
4.475309
0.388889
0.055172
0.074483
0.091034
0.317931
0.235172
0.202069
0.151034
0.095172
0.095172
0
0.031539
0.151753
2,168
57
101
38.035088
0.756933
0.096402
0
0
0
0
0.261026
0.028718
0
0
0
0
0
1
0
false
0
0.097561
0
0.097561
0.073171
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
0
1
0
2f9b8862aa5b57db0e4c23d664291957a9fbe6a4
379
py
Python
task_function.py
feihong/asyncio-tasks-talk
a4ef4e7246906d89aab81db69b7cba0c76258288
[ "CC-BY-4.0" ]
1
2016-09-10T02:47:26.000Z
2016-09-10T02:47:26.000Z
task_function.py
feihong/asyncio-tasks-talk
a4ef4e7246906d89aab81db69b7cba0c76258288
[ "CC-BY-4.0" ]
null
null
null
task_function.py
feihong/asyncio-tasks-talk
a4ef4e7246906d89aab81db69b7cba0c76258288
[ "CC-BY-4.0" ]
null
null
null
import asyncio async def long_task(writer): total = 100 for i in range(1, total+1): writer.write(type='progress', value=i, total=total) print(i) await asyncio.sleep(0.05) class Writer: def write(self, **kwargs): print(kwargs) coroutine = long_task(Writer()) asyncio.ensu...
18.95
59
0.664908
53
379
4.641509
0.641509
0.065041
0.113821
0
0
0
0
0
0
0
0
0.026756
0.211082
379
19
60
19.947368
0.795987
0
0
0
0
0
0.021108
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.153846
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
2f9feffcaa4a8285a2abe800ba2837e256eb6e2b
2,636
py
Python
nebula_utils/nebula_utils/persist_compute/utils.py
threathunterX/python_lib
e2d4052de04c82cb7bccd08042f28db824cab442
[ "Apache-2.0" ]
2
2019-03-17T04:03:08.000Z
2019-05-01T09:42:23.000Z
nebula_utils/nebula_utils/persist_compute/utils.py
threathunterX/python_lib
e2d4052de04c82cb7bccd08042f28db824cab442
[ "Apache-2.0" ]
null
null
null
nebula_utils/nebula_utils/persist_compute/utils.py
threathunterX/python_lib
e2d4052de04c82cb7bccd08042f28db824cab442
[ "Apache-2.0" ]
4
2019-06-24T05:47:24.000Z
2020-09-29T05:00:31.000Z
# -*- coding: utf-8 -*- Group_Key_To_Dimension = dict( c_ip = 'ip', uid = 'user', page = 'page', did = 'did', # c_ipc = 'ipc', ) Avail_Dimensions = tuple(Group_Key_To_Dimension.values()) # dimension : variable_name(获取点击量的变量名) Click_Variable_Names = dict( ip='ip__visit__dynamic_count__1h__slot'...
28.967033
167
0.60091
389
2,636
3.645244
0.213368
0.074048
0.062059
0.080395
0.248942
0.171368
0.126939
0.126939
0.126939
0.126939
0
0.017822
0.233687
2,636
90
168
29.288889
0.684158
0.194234
0
0.04
0
0.04
0.297767
0.20794
0
0
0
0
0.04
1
0.04
false
0
0
0
0.06
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
0
0
1
0
85ca2de785e536315d8103867a6f6f3babb8d84b
346
py
Python
a301/scripts/check_nearir.py
Pearl-Ayem/ATSC_Notebook_Data
c075d166c235ac4e68a4b77750e02b2a5e77abd0
[ "MIT" ]
null
null
null
a301/scripts/check_nearir.py
Pearl-Ayem/ATSC_Notebook_Data
c075d166c235ac4e68a4b77750e02b2a5e77abd0
[ "MIT" ]
null
null
null
a301/scripts/check_nearir.py
Pearl-Ayem/ATSC_Notebook_Data
c075d166c235ac4e68a4b77750e02b2a5e77abd0
[ "MIT" ]
null
null
null
from pyhdf.SD import SD, SDC from pathlib import Path import numpy as np import a301 m5_file = a301.data_dir / Path('myd05_l2_10_7.hdf') the_file = SD(str(m5_file), SDC.READ) wv_nearir_data = the_file.select('Water_Vapor_Near_Infrared').get() the_file.end positive = wv_nearir_data > 0. print(f'found {np.sum(positive.f...
24.714286
67
0.768786
63
346
3.968254
0.634921
0.084
0.096
0
0
0
0
0
0
0
0
0.04902
0.115607
346
13
68
26.615385
0.767974
0
0
0
0
0
0.252907
0.139535
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.1
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
85cb5db8536dff080788a2b44e8c7498ab0bd3f3
2,649
py
Python
course_grader/dao/message.py
uw-it-aca/gradepage
7059d715cc112ad0ecb0e5012f716e525ee7b3bc
[ "Apache-2.0" ]
1
2017-01-29T09:52:06.000Z
2017-01-29T09:52:06.000Z
course_grader/dao/message.py
uw-it-aca/gradepage
7059d715cc112ad0ecb0e5012f716e525ee7b3bc
[ "Apache-2.0" ]
287
2017-03-09T00:17:20.000Z
2022-01-08T00:36:34.000Z
course_grader/dao/message.py
uw-it-aca/gradepage
7059d715cc112ad0ecb0e5012f716e525ee7b3bc
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from course_grader.dao import current_datetime, display_datetime from course_grader.dao.term import ( next_gradable_term, previous_gradable_term, submission_deadline_warning, is_grading_period_open) from persistent_message.m...
35.797297
76
0.710834
327
2,649
5.348624
0.256881
0.133791
0.144654
0.074328
0.281875
0.173242
0.13665
0.098342
0.058319
0
0
0.014045
0.193658
2,649
73
77
36.287671
0.804775
0.030955
0
0.157895
0
0
0.117395
0.047582
0
0
0
0
0
1
0.070175
false
0
0.052632
0
0.210526
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
0
0
1
0
85cb84708ec1159fcbafba9f83ab692e7fdf9668
4,541
py
Python
swn/file.py
wkitlasten/surface-water-network
fd36ad5ee3fbd7a1107f0c4c376c4af1295b5b1b
[ "BSD-3-Clause" ]
18
2019-12-04T14:59:47.000Z
2021-12-21T12:34:28.000Z
swn/file.py
jonathanqv/surface-water-network
362217c897345042464564440be08b34f6f0915d
[ "BSD-3-Clause" ]
17
2020-04-15T04:49:49.000Z
2022-03-04T05:22:17.000Z
swn/file.py
jonathanqv/surface-water-network
362217c897345042464564440be08b34f6f0915d
[ "BSD-3-Clause" ]
6
2020-05-07T23:56:12.000Z
2022-01-08T16:56:32.000Z
"""File reading/writing helpers.""" __all__ = ["topnet2ts", "gdf_to_shapefile"] import geopandas import pandas as pd from swn.logger import get_logger, logging def topnet2ts(nc_path, varname, mult=None, log_level=logging.INFO): """Read TopNet data from a netCDF file into a pandas.DataFrame timeseries. Use...
32.435714
78
0.602731
579
4,541
4.594128
0.381693
0.015789
0.015038
0.008271
0.013534
0
0
0
0
0
0
0.012741
0.291346
4,541
139
79
32.669065
0.81386
0.245761
0
0.046512
0
0
0.179933
0
0
0
0
0
0.011628
1
0.023256
false
0
0.104651
0
0.139535
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
0
0
1
0
85cc4f7ba3e6215d40e3cc9668b7b4fc514ab919
5,752
py
Python
assignment4/src/clean_documents.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
assignment4/src/clean_documents.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
assignment4/src/clean_documents.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ data clean for books (clean_documents.py) note - this is the same as in assignment 1 for the most part """ import re from ast import literal_eval from os.path import basename, splitext, exists from typing import Optional, List from utils import get_glob, file_path_relative from variables im...
39.129252
107
0.619784
734
5,752
4.592643
0.211172
0.033225
0.019282
0.010679
0.143578
0.077722
0.04509
0.029071
0.029071
0.029071
0
0.005176
0.29468
5,752
146
108
39.39726
0.825733
0.052156
0
0.017857
0
0
0.074478
0.017372
0
0
0
0
0
1
0.017857
false
0
0.098214
0
0.142857
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
0
0
1
0
85ccd6d8d9bc17b243d312e04343cd6c75bdd27f
6,041
py
Python
miniproject/api/organization/views.py
dandy7373/HR_web
65dd80159c7e3113961d55ef126b7df75c7bda13
[ "MIT" ]
null
null
null
miniproject/api/organization/views.py
dandy7373/HR_web
65dd80159c7e3113961d55ef126b7df75c7bda13
[ "MIT" ]
null
null
null
miniproject/api/organization/views.py
dandy7373/HR_web
65dd80159c7e3113961d55ef126b7df75c7bda13
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework.generics import RetrieveAPIView,CreateAPIView from rest_framework.permissions import AllowAny from rest_framework.response import Response from rest_framework.status import HTTP_200_OK, HTTP_400_BAD_REQUEST,HTTP_201_CREATED from rest_framework.views import APIView...
37.290123
140
0.608343
675
6,041
5.30963
0.17037
0.07673
0.027902
0.047433
0.40904
0.301618
0.275391
0.260882
0.196429
0.153181
0
0.014393
0.275451
6,041
162
141
37.290123
0.804432
0
0
0.355705
0
0
0.066203
0
0
0
0
0
0
1
0.053691
false
0.013423
0.067114
0
0.315436
0.134228
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
0
1
0
85ccf00c2aab76068a1c4fc3ab1b4c929b9cff1a
9,378
py
Python
nutils/cli.py
JochenHinz/nutils
ac18dd6825b107e2e4c186ebb1598dbf0fff0f77
[ "MIT" ]
null
null
null
nutils/cli.py
JochenHinz/nutils
ac18dd6825b107e2e4c186ebb1598dbf0fff0f77
[ "MIT" ]
null
null
null
nutils/cli.py
JochenHinz/nutils
ac18dd6825b107e2e4c186ebb1598dbf0fff0f77
[ "MIT" ]
null
null
null
# Copyright (c) 2014 Evalf # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, s...
44.028169
187
0.683301
1,204
9,378
5.273256
0.375415
0.00945
0.018743
0.006143
0.055442
0.044101
0.044101
0.041266
0.01197
0.01197
0
0.026173
0.17701
9,378
212
188
44.235849
0.795672
0.161122
0
0.121019
0
0.025478
0.276237
0.115557
0
0
0
0
0.006369
1
0.044586
false
0
0.012739
0
0.101911
0.070064
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
0
1
0
85ceb804c95eaa5e6ed011f7728feba8c174befd
6,336
py
Python
experiments/alpha_analysis.py
oeg-upm/tada-entity
6e538129229bed49bf1aa960fcd97a8468eca765
[ "Apache-2.0" ]
3
2019-06-11T10:19:25.000Z
2022-02-28T22:58:29.000Z
experiments/alpha_analysis.py
oeg-upm/tada-entity
6e538129229bed49bf1aa960fcd97a8468eca765
[ "Apache-2.0" ]
7
2019-02-04T08:57:54.000Z
2021-11-01T12:42:03.000Z
experiments/alpha_analysis.py
oeg-upm/tada-entity
6e538129229bed49bf1aa960fcd97a8468eca765
[ "Apache-2.0" ]
null
null
null
""" This script analyses optimal alphas for each class and draws them in a box and whisker plot """ import pandas as pd import argparse import seaborn as sns import matplotlib.pyplot as plt import itertools def shorten_uri(class_uri, base="http://dbpedia.org/ontology/", pref="dbo:"): return class_uri.replace(base...
34.622951
114
0.574337
812
6,336
4.316502
0.280788
0.012839
0.029101
0.01826
0.297575
0.24194
0.210556
0.137518
0.077033
0.077033
0
0.011847
0.280619
6,336
182
115
34.813187
0.75713
0.283617
0
0.121212
0
0
0.145305
0
0
0
0
0
0
1
0.070707
false
0
0.050505
0.010101
0.151515
0.070707
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
0
1
0
85cf779b9a1cc2e9b35950583be014be08b8ba73
1,009
py
Python
p039m/combination_sum.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
1
2020-02-20T12:04:46.000Z
2020-02-20T12:04:46.000Z
p039m/combination_sum.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
p039m/combination_sum.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
from typing import List class Solution: def combinationSum(self, candidates: List[int], target: int) -> List[List[int]]: candidates.sort() ans = [] def helper(path: List[int], target: int, start: int) -> None: if target < 0: return if target == 0: ...
27.27027
84
0.489594
123
1,009
4.01626
0.357724
0.020243
0.018219
0.064777
0
0
0
0
0
0
0
0.05052
0.333003
1,009
36
85
28.027778
0.683507
0.004955
0
0.068966
0
0
0.022954
0
0
0
0
0
0.034483
1
0.068966
false
0
0.034483
0
0.241379
0.034483
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
0
1
0
85cff0c0609514a2aa77da41be4f85d685342405
12,197
py
Python
sdk/python/pulumi_proxmox/ct/container.py
meyskens/pulumi-proxmox
bf48570690350be68fa554e1cec376212eb449ab
[ "ECL-2.0", "Apache-2.0" ]
16
2021-01-11T11:26:19.000Z
2022-01-23T02:32:34.000Z
sdk/python/pulumi_proxmox/ct/container.py
meyskens/pulumi-proxmox
bf48570690350be68fa554e1cec376212eb449ab
[ "ECL-2.0", "Apache-2.0" ]
2
2021-01-29T08:15:46.000Z
2021-10-17T16:33:19.000Z
sdk/python/pulumi_proxmox/ct/container.py
meyskens/pulumi-proxmox
bf48570690350be68fa554e1cec376212eb449ab
[ "ECL-2.0", "Apache-2.0" ]
4
2021-04-06T00:36:05.000Z
2021-12-16T14:25:07.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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 from .. import _utilitie...
44.677656
145
0.649832
1,257
12,197
6.08751
0.133652
0.089127
0.071093
0.10873
0.669106
0.595269
0.58207
0.572399
0.563513
0.563513
0
0.000108
0.242847
12,197
272
146
44.841912
0.828479
0.280151
0
0.329193
1
0
0.16003
0.047198
0
0
0
0
0
1
0.111801
false
0.006211
0.043478
0.012422
0.267081
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
85d0ab0de0a1394f2406e3a5b3e99179d2c59390
486
py
Python
tests/test/stateful/conftest.py
ActorForth/brownie
ef0d5af3bb48edcd11abf985626fc99dbc577c7d
[ "MIT" ]
1,595
2020-06-01T19:41:53.000Z
2022-03-31T16:09:54.000Z
tests/test/stateful/conftest.py
ActorForth/brownie
ef0d5af3bb48edcd11abf985626fc99dbc577c7d
[ "MIT" ]
532
2020-05-30T12:06:17.000Z
2022-03-31T22:33:41.000Z
tests/test/stateful/conftest.py
ActorForth/brownie
ef0d5af3bb48edcd11abf985626fc99dbc577c7d
[ "MIT" ]
303
2020-06-17T00:38:34.000Z
2022-03-31T10:59:48.000Z
#!/usr/bin/python3 import pytest from hypothesis import settings # derandomizing prevents flaky test outcomes # we are testing hypothesis itself, not testing with hypothesis settings.register_profile("derandomize", derandomize=True) @pytest.fixture def SMTestBase(devnetwork): settings.load_profile("derandomize"...
19.44
63
0.709877
56
486
6.035714
0.660714
0.106509
0.112426
0
0
0
0
0
0
0
0
0.002618
0.213992
486
24
64
20.25
0.882199
0.251029
0
0.153846
0
0
0.080332
0
0
0
0
0
0
1
0.230769
false
0.153846
0.153846
0
0.461538
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
1
0
0
0
0
0
2
85d1bb79ecc810612d2ce67b9924416144e6d28f
7,706
py
Python
singleimagemodel.py
severinaklingler/kaggle-ocular-disease
a6641f6005d1a7f2399b4de9e804ab3ac7f20dd2
[ "Apache-2.0" ]
null
null
null
singleimagemodel.py
severinaklingler/kaggle-ocular-disease
a6641f6005d1a7f2399b4de9e804ab3ac7f20dd2
[ "Apache-2.0" ]
null
null
null
singleimagemodel.py
severinaklingler/kaggle-ocular-disease
a6641f6005d1a7f2399b4de9e804ab3ac7f20dd2
[ "Apache-2.0" ]
null
null
null
from logging import getLevelName import numpy as np import os import tensorflow as tf import pathlib import pandas as pd import re import matplotlib.pyplot as plt from tensorflow.keras.models import Model from tensorflow.keras.layers import Input from tensorflow.keras.layers import Dense from tensorflow.keras.layers im...
32.514768
139
0.706982
1,077
7,706
4.82637
0.278552
0.020777
0.029242
0.028857
0.166603
0.075798
0.029627
0.029627
0.01693
0
0
0.012197
0.170127
7,706
237
140
32.514768
0.800625
0.007527
0
0.010929
0
0
0.080565
0.015041
0
0
0
0.004219
0
1
0.098361
false
0
0.10929
0.016393
0.284153
0.032787
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
0
1
0
85d25582e5cd6979f09e8f1ee727114f02ab78b7
1,377
py
Python
graph/models.py
insung151/piro
aecbf8ce27e6e47856e2afd4a6e9e406bffa7a40
[ "MIT" ]
null
null
null
graph/models.py
insung151/piro
aecbf8ce27e6e47856e2afd4a6e9e406bffa7a40
[ "MIT" ]
null
null
null
graph/models.py
insung151/piro
aecbf8ce27e6e47856e2afd4a6e9e406bffa7a40
[ "MIT" ]
null
null
null
import datetime from django.db import models from django.utils import timezone # from .backends import update_data class Member(models.Model): github_username = models.CharField(max_length=100, unique=True) def save(self, *args, **kwargs): self.slug = self.github_username super(Member, self...
28.102041
102
0.664488
170
1,377
5.188235
0.429412
0.063492
0.034014
0.054422
0.166667
0.166667
0
0
0
0
0
0.004625
0.21496
1,377
49
103
28.102041
0.811286
0.042121
0
0.15625
0
0
0.007593
0
0
0
0
0
0
1
0.21875
false
0.03125
0.09375
0.125
0.71875
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
1
1
0
0
3
85d2e42b2d5769672b5d6fd5964f344d0f20bc08
546
py
Python
gore/models/project.py
akx/gentry
f4205f5a14054231d064657347862a15ecf4c0e0
[ "MIT" ]
4
2017-07-26T13:23:06.000Z
2019-02-21T14:55:34.000Z
gore/models/project.py
akx/gentry
f4205f5a14054231d064657347862a15ecf4c0e0
[ "MIT" ]
26
2017-08-02T08:52:06.000Z
2022-03-04T15:13:26.000Z
gore/models/project.py
akx/gentry
f4205f5a14054231d064657347862a15ecf4c0e0
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from gentry.utils import make_absolute_uri class Project(models.Model): slug = models.SlugField() name = models.CharField(max_length=128) date_added = models.DateTimeField(default=timezone.now, editable=False) def __str__(self): ...
26
95
0.661172
72
546
4.861111
0.625
0.057143
0.085714
0
0
0
0
0
0
0
0
0.006993
0.214286
546
20
96
27.3
0.808858
0
0
0
0
0
0.058608
0.047619
0
0
0
0
0
1
0.133333
false
0
0.2
0.066667
0.8
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
85d2ee56a1605c4085ef6834b7da596c8770a900
17,167
py
Python
features/steps/prs_steps.py
spidezad/python-pptx
eab3f55b84b54906876d5486172d5d0c457d55f8
[ "BSD-2-Clause" ]
1
2021-05-17T06:33:32.000Z
2021-05-17T06:33:32.000Z
features/steps/prs_steps.py
spidezad/python-pptx
eab3f55b84b54906876d5486172d5d0c457d55f8
[ "BSD-2-Clause" ]
null
null
null
features/steps/prs_steps.py
spidezad/python-pptx
eab3f55b84b54906876d5486172d5d0c457d55f8
[ "BSD-2-Clause" ]
null
null
null
import os from datetime import datetime, timedelta from behave import given, when, then from hamcrest import ( assert_that, equal_to, has_item, is_, is_not, greater_than, less_than ) from StringIO import StringIO from pptx import packaging from pptx import Presentation from pptx.constants import MSO_AUTO_SHAPE_T...
33.926877
74
0.732044
2,609
17,167
4.551552
0.110387
0.037137
0.037221
0.042105
0.531368
0.449853
0.382316
0.312337
0.269137
0.233684
0
0.01776
0.147201
17,167
505
75
33.994059
0.793374
0.021029
0
0.220994
0
0
0.178284
0.0025
0
0
0
0
0.107735
1
0.176796
false
0.002762
0.024862
0.002762
0.20442
0.002762
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
0
1
0
85d564c27e33a35fe1a491c27c616e6e1a78f815
2,604
py
Python
DailyProgrammer/DP20160818B.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
2
2020-12-23T18:59:22.000Z
2021-04-14T13:16:09.000Z
DailyProgrammer/DP20160818B.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
DailyProgrammer/DP20160818B.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
""" [2016-08-18] Challenge #279 [Intermediate] Text Reflow https://www.reddit.com/r/dailyprogrammer/comments/4ybbcz/20160818_challenge_279_intermediate_text_reflow/ #Description: Text reflow means to break up lines of text so that they fit within a certain width. It is useful in e.g. mobile browsers. When you zoom in...
40.061538
119
0.720814
431
2,604
4.322506
0.313225
0.032206
0.05314
0.027375
0.630703
0.594203
0.594203
0.565217
0.565217
0.565217
0
0.013487
0.231183
2,604
64
120
40.6875
0.917083
0.97235
0
0
0
0
0.125
0
0
0
0
0
0
1
0.25
true
0.25
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
4
85d71db4dff31a27689c64809381f6863f31ac08
3,177
py
Python
PomodoroTimer/Python/main2.py
zcribe/SmallProjectsCollection
fbd6bc9884468eba7519728e295b36b24043af27
[ "MIT" ]
null
null
null
PomodoroTimer/Python/main2.py
zcribe/SmallProjectsCollection
fbd6bc9884468eba7519728e295b36b24043af27
[ "MIT" ]
null
null
null
PomodoroTimer/Python/main2.py
zcribe/SmallProjectsCollection
fbd6bc9884468eba7519728e295b36b24043af27
[ "MIT" ]
null
null
null
from time import time, sleep from math import floor import argparse import csv import datetime # Constants TIME_WORK = 25 TIME_REST = 5 TIME_REST_LONG = 30 ONE_MINUTE = 60 SESSIONS_WORK_MAX = 4 LOOP_LIMIT = 9999 # Console parser = argparse.ArgumentParser(description='===== Pomodoro timer CLI =====') parser.add_argume...
33.09375
115
0.664463
407
3,177
4.948403
0.297297
0.083913
0.059086
0.029791
0.146971
0.069017
0.027805
0.027805
0.027805
0
0
0.008052
0.21813
3,177
95
116
33.442105
0.802738
0.006925
0
0.027397
0
0
0.166931
0
0
0
0
0
0
1
0.082192
false
0
0.068493
0.013699
0.191781
0.027397
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
0
1
0
85d8b4fdcc862d0733f6de5e3fdf2b8f4d3ba6b3
2,454
py
Python
PinVidderer/PinVidderer.py
Gestas/PinVidderer
c980906cd77bf9a8cb66be022676e57e9a54702e
[ "MIT" ]
null
null
null
PinVidderer/PinVidderer.py
Gestas/PinVidderer
c980906cd77bf9a8cb66be022676e57e9a54702e
[ "MIT" ]
null
null
null
PinVidderer/PinVidderer.py
Gestas/PinVidderer
c980906cd77bf9a8cb66be022676e57e9a54702e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import signal import click from .client import Client from .utils import Utils utils = Utils() signal.signal(signal.SIGINT, utils.signal_handler) class Config(object): def __init__(self): self.loglevel = None pass_config = click.make_pass_decorator(Config, ensure=True) @click....
25.831579
119
0.698859
329
2,454
5.094225
0.303951
0.078759
0.118138
0.093079
0.363962
0.318616
0.294749
0.207041
0.207041
0.207041
0
0.000483
0.156887
2,454
94
120
26.106383
0.80957
0.117767
0
0.274194
0
0.016129
0.18609
0
0
0
0
0
0
1
0.129032
false
0.129032
0.064516
0
0.209677
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
85db5b6d5b5a64186bb3b9c04d0a279e4a5f0c0a
998
py
Python
hw1/1.6/encrpyt_equals_decrypt.py
rocke97/crypto
89c4e595adf74558e12ceb1762025fd2f0275fec
[ "MIT" ]
null
null
null
hw1/1.6/encrpyt_equals_decrypt.py
rocke97/crypto
89c4e595adf74558e12ceb1762025fd2f0275fec
[ "MIT" ]
null
null
null
hw1/1.6/encrpyt_equals_decrypt.py
rocke97/crypto
89c4e595adf74558e12ceb1762025fd2f0275fec
[ "MIT" ]
null
null
null
from itertools import count from string import ascii_lowercase plain_text = 'july' results_file = open('results.txt', 'w') letters_to_numbers = dict(zip(ascii_lowercase, count(0))) numbers_to_letters = dict(zip(count(0), ascii_lowercase)) plain_text_numbers = [letters_to_numbers[letter] for letter in plain_text] for i...
52.526316
111
0.728457
149
998
4.66443
0.355705
0.168345
0.103597
0.066187
0.141007
0.077698
0.077698
0.077698
0
0
0
0.010896
0.172345
998
19
112
52.526316
0.830508
0.196393
0
0
0
0
0.0875
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0.2
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
0
1
0
85db89656ff34bccb3df57eb36eff9c756872dce
2,663
py
Python
generator.py
mann1/DD_SIM_Template
84c7787b6b3c52f08e7031114894c98416c02fcf
[ "MIT" ]
null
null
null
generator.py
mann1/DD_SIM_Template
84c7787b6b3c52f08e7031114894c98416c02fcf
[ "MIT" ]
null
null
null
generator.py
mann1/DD_SIM_Template
84c7787b6b3c52f08e7031114894c98416c02fcf
[ "MIT" ]
null
null
null
import os, pickle import numpy as np import tensorflow as tf def read_pickle(file_name): with (open(file_name, "rb")) as openfile: while True: try: objects = pickle.load(openfile) except EOFError: break return objects class Generator(tf.keras.uti...
32.876543
108
0.613969
341
2,663
4.542522
0.258065
0.051646
0.042608
0.036152
0.179471
0.151065
0.151065
0.107166
0.107166
0.058102
0
0.002626
0.285017
2,663
81
109
32.876543
0.810924
0.124296
0
0
0
0
0.057855
0
0
0
0
0
0.020408
1
0.122449
false
0
0.061224
0
0.265306
0.081633
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
0
1
0
85db99fa2aa9b948ffca4017b69512e862fe9571
5,096
py
Python
src/mlb/schedule/schedule_view.py
benbrandt22/MagTagMLB
1ec347743bc7df9339fb8e3de0f86ea037b7694f
[ "MIT" ]
null
null
null
src/mlb/schedule/schedule_view.py
benbrandt22/MagTagMLB
1ec347743bc7df9339fb8e3de0f86ea037b7694f
[ "MIT" ]
null
null
null
src/mlb/schedule/schedule_view.py
benbrandt22/MagTagMLB
1ec347743bc7df9339fb8e3de0f86ea037b7694f
[ "MIT" ]
null
null
null
from mlb.models.game_detail import GameDetail import time import board import displayio from adafruit_display_text import label from adafruit_display_shapes.roundrect import RoundRect import fonts.fonts as FONTS from mlb.schedule.schedule_view_model import ScheduleViewModel from time_utils import day_of_week, month_nam...
38.315789
114
0.649333
661
5,096
4.748865
0.229955
0.048742
0.047786
0.065945
0.191144
0.178401
0.136668
0.050972
0.050972
0.02676
0
0.054526
0.258634
5,096
133
115
38.315789
0.776337
0.038462
0
0.021053
0
0
0.062551
0.047629
0
0
0.019624
0
0
1
0.031579
false
0
0.094737
0
0.157895
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
0
0
1
0
85dc9bd56f92f2f2d3c556c7f4e9a56721c6e747
1,307
py
Python
bootcamp/chapter-1/strings.py
pushkar2112/Python-practice
75f88eaa2b4f3c47570b1a11e0e221436551ce89
[ "Apache-2.0" ]
1
2021-11-23T08:36:43.000Z
2021-11-23T08:36:43.000Z
bootcamp/chapter-1/strings.py
pushkar2112/Python-practice
75f88eaa2b4f3c47570b1a11e0e221436551ce89
[ "Apache-2.0" ]
1
2021-07-18T12:39:40.000Z
2021-09-08T09:48:16.000Z
bootcamp/chapter-1/strings.py
pushkar2112/Python-practice
75f88eaa2b4f3c47570b1a11e0e221436551ce89
[ "Apache-2.0" ]
null
null
null
# Strings are used in Python to record text information, such as names. # Strings in Python are actually a sequence, which basically means Python keeps track # of every element in the string as a sequence. # For example, Python understands the string "hello' to be a sequence of letters in a specific order. # This me...
25.627451
102
0.719204
211
1,307
4.454976
0.50237
0.034043
0.03617
0
0
0
0
0
0
0
0
0.01322
0.189748
1,307
51
103
25.627451
0.87441
0.658761
0
0
0
0
0.362998
0
0
0
0
0
0
1
0
false
0
0
0
0
0.75
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
85dcdeab8f386b3045fce501c4a13cd8e441b56a
1,138
py
Python
FindFT_NyquistFreq.py
PrabhjotKaurGosal/AudioAnalysisScripts
a752f62b2634022c1c2737b21998da218cef4dff
[ "MIT" ]
null
null
null
FindFT_NyquistFreq.py
PrabhjotKaurGosal/AudioAnalysisScripts
a752f62b2634022c1c2737b21998da218cef4dff
[ "MIT" ]
null
null
null
FindFT_NyquistFreq.py
PrabhjotKaurGosal/AudioAnalysisScripts
a752f62b2634022c1c2737b21998da218cef4dff
[ "MIT" ]
null
null
null
# This code finds the Fourier Tranform of a signal and the Nyquist frequency import matplotlib.pyplot as plt import numpy as np import librosa import librosa as lr from scipy import signal from scipy.fft import fft, ifft import math import matplotlib.pyplot as plt if __name__ == "__main__": # Read the audio ...
33.470588
81
0.681019
182
1,138
4.126374
0.43956
0.027963
0.043941
0.063915
0.122503
0
0
0
0
0
0
0.029801
0.203866
1,138
34
81
33.470588
0.799117
0.146749
0
0.076923
0
0
0.123316
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0.038462
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
85dddc830d151d3b583e5d23116cb924afd1cfe8
2,106
py
Python
src/platform_controller/scripts/controlTiltMotors.py
ahmohamed1/activeStereoVisionPlatform
6c928ca242e4de68c7b15a8748bff1d9f7fa1382
[ "MIT" ]
null
null
null
src/platform_controller/scripts/controlTiltMotors.py
ahmohamed1/activeStereoVisionPlatform
6c928ca242e4de68c7b15a8748bff1d9f7fa1382
[ "MIT" ]
null
null
null
src/platform_controller/scripts/controlTiltMotors.py
ahmohamed1/activeStereoVisionPlatform
6c928ca242e4de68c7b15a8748bff1d9f7fa1382
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import actionlib from control_msgs.msg import * from std_msgs.msg import Float64 from sensor_msgs.msg import JointState PI = 3.14159265359 class TiltMotorController: def __init__(self): self.leftMotor_publisher = rospy.Publisher('/left_motor_tilt/command', Float64, queue_size =...
23.931818
104
0.746439
266
2,106
5.733083
0.304511
0.036721
0.060328
0.04459
0.157377
0.154754
0.120656
0.120656
0.072131
0.072131
0
0.032009
0.139601
2,106
87
105
24.206897
0.809603
0.062678
0
0.08
0
0
0.078623
0.02518
0
0
0
0
0
1
0.18
false
0
0.1
0.04
0.34
0.02
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
0
1
0
85dde154e71416994a5fa1e8b1afe91eea13927c
14,888
py
Python
py/Parser.py
Sqazine/ComputeDuck
d307d88a24601d433aa7507ea90000207a34e1f0
[ "Apache-2.0" ]
2
2021-12-05T12:38:26.000Z
2022-03-09T02:24:44.000Z
py/Parser.py
Sqazine/ComputeDuck
d307d88a24601d433aa7507ea90000207a34e1f0
[ "Apache-2.0" ]
null
null
null
py/Parser.py
Sqazine/ComputeDuck
d307d88a24601d433aa7507ea90000207a34e1f0
[ "Apache-2.0" ]
null
null
null
from ast import Lambda from enum import IntEnum from typing import Any from Ast import Stmt from Ast import Expr from Token import Token, TokenType from Utils import Assert from Ast import AstType, ArrayExpr, BoolExpr, ExprStmt, FunctionCallExpr, FunctionStmt, GroupExpr, IdentifierExpr, IfStmt, IndexExpr, InfixExpr, ...
39.076115
273
0.637493
1,401
14,888
6.698787
0.146324
0.044539
0.08098
0.029728
0.324347
0.233138
0.16292
0.130954
0.088652
0.031966
0
0.002244
0.251612
14,888
380
274
39.178947
0.840065
0.002955
0
0.163522
0
0
0.06108
0
0
0
0
0
0.009434
1
0.122642
false
0
0.025157
0.015723
0.374214
0.003145
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
0
1
0
85e03a75a96c393560650c8bb391a58fe00c64f1
302
py
Python
code/color.py
Archkitten/sleep
dd81d8fe379d8e37c58b101d78fe258588d6c1bc
[ "MIT" ]
null
null
null
code/color.py
Archkitten/sleep
dd81d8fe379d8e37c58b101d78fe258588d6c1bc
[ "MIT" ]
null
null
null
code/color.py
Archkitten/sleep
dd81d8fe379d8e37c58b101d78fe258588d6c1bc
[ "MIT" ]
null
null
null
# COLORS black = "\033[30m" red = "\033[31m" green = "\033[32m" yellow = "\033[33m" blue = "\033[34m" magenta = "\033[35m" cyan = "\033[36m" white = "\033[37m" nc = "\n" # COLOR TESTING def test(): print(red + "test") print(blue + "test2") print(green + "test3" + "\n" + cyan + "test4" + white)
17.764706
56
0.566225
44
302
3.886364
0.636364
0.105263
0
0
0
0
0
0
0
0
0
0.17623
0.192053
302
16
57
18.875
0.52459
0.066225
0
0
0
0
0.311828
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.076923
0.230769
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
0
1
0
85e1dc6359b959fbe3bde169c1c1df0d7df72888
253
py
Python
database/urls.py
shrishtickling/train_coding
ba2918ce13379940f359e2ae253987691a00f3a9
[ "Apache-2.0" ]
null
null
null
database/urls.py
shrishtickling/train_coding
ba2918ce13379940f359e2ae253987691a00f3a9
[ "Apache-2.0" ]
null
null
null
database/urls.py
shrishtickling/train_coding
ba2918ce13379940f359e2ae253987691a00f3a9
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views app_name = 'database' urlpatterns = [ path('update/', views.update), path('update2/', views.update2), path('update3/', views.update3), path('upload-user/', views.create_user_dataset) ]
19.461538
51
0.675889
31
253
5.419355
0.548387
0
0
0
0
0
0
0
0
0
0
0.018957
0.166008
253
12
52
21.083333
0.777251
0
0
0
0
0
0.170635
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
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
0
0
1
0
85e2f348622632176aeb4fc8c874b128321e99b9
135
py
Python
CodeWars/7 Kyu/Unlucky Days.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
CodeWars/7 Kyu/Unlucky Days.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
CodeWars/7 Kyu/Unlucky Days.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
from datetime import datetime def unlucky_days(year): return sum(datetime(year, month, 13).weekday() == 4 for month in range(1,13))
33.75
80
0.733333
22
135
4.454545
0.772727
0
0
0
0
0
0
0
0
0
0
0.051724
0.140741
135
4
80
33.75
0.793103
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
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
1
0
0
1
1
0
0
0
5
85e2fec7419e462992cdef82f856f348913b6d84
714
py
Python
backend/errors.py
cryptSky/hlsa_task7
40365033e24ec147640f828cccc69f3711eedfc0
[ "MIT" ]
1
2021-05-20T06:04:13.000Z
2021-05-20T06:04:13.000Z
backend/errors.py
cryptSky/hlsa_task7
40365033e24ec147640f828cccc69f3711eedfc0
[ "MIT" ]
null
null
null
backend/errors.py
cryptSky/hlsa_task7
40365033e24ec147640f828cccc69f3711eedfc0
[ "MIT" ]
null
null
null
from werkzeug.exceptions import HTTPException class InternalServerError(HTTPException): pass class SchemaValidationError(HTTPException): pass class UserNotFoundError(HTTPException): pass class EmailAlreadyExistError(HTTPException): pass errors = { "InternalServerError": { "message": "Oops someth...
21.636364
74
0.648459
57
714
8.122807
0.561404
0.146868
0.142549
0.082073
0
0
0
0
0
0
0
0.022263
0.245098
714
33
75
21.636364
0.836735
0
0
0.259259
0
0
0.352448
0.06014
0
0
0
0
0
1
0
false
0.148148
0.037037
0
0.185185
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
85e31f8319151021136e63792aab66a8fe4825ad
421
py
Python
scripts/read_radar.py
jdiasn/raincoat
b0249c88f1a5ca22a720285e87be4b06b67705b5
[ "MIT" ]
1
2020-04-22T05:41:08.000Z
2020-04-22T05:41:08.000Z
scripts/read_radar.py
jdiasn/raincoat
b0249c88f1a5ca22a720285e87be4b06b67705b5
[ "MIT" ]
null
null
null
scripts/read_radar.py
jdiasn/raincoat
b0249c88f1a5ca22a720285e87be4b06b67705b5
[ "MIT" ]
4
2019-01-01T11:33:14.000Z
2021-01-04T20:34:43.000Z
from raincoat.radarFunctions import getVarTimeRange, getRadarVar import pandas as pd data = getRadarVar('../samplefiles/radar/181202_000000_P09_ZEN_compact.nc', '2001.01.01. 00:00:00', 'Ze') start = pd.to_datetime('2018-12-02 00:00:00', format='%Y-%m-%d %H:%M:%S') stop = pd.to_datetime...
35.083333
75
0.655582
68
421
3.970588
0.544118
0.074074
0.044444
0.118519
0.266667
0.266667
0.118519
0.118519
0.118519
0
0
0.171831
0.15677
421
11
76
38.272727
0.588732
0
0
0
0
0
0.35
0.12619
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
0
0
1
0
85e397373b9dc700b3ec2e1bd8bc94f48fdddec5
1,527
py
Python
gecko/geckolib/driver/protocol/reminders.py
mmillmor/home_assistant-components
625f97413bd6516a2358220a80819b85cc8072c6
[ "Apache-2.0" ]
null
null
null
gecko/geckolib/driver/protocol/reminders.py
mmillmor/home_assistant-components
625f97413bd6516a2358220a80819b85cc8072c6
[ "Apache-2.0" ]
null
null
null
gecko/geckolib/driver/protocol/reminders.py
mmillmor/home_assistant-components
625f97413bd6516a2358220a80819b85cc8072c6
[ "Apache-2.0" ]
1
2022-03-07T20:04:05.000Z
2022-03-07T20:04:05.000Z
""" Gecko REQRM/RMREQ handlers """ import logging import struct from .packet import GeckoPacketProtocolHandler REQRM_VERB = b"REQRM" RMREQ_VERB = b"RMREQ" _LOGGER = logging.getLogger(__name__) class GeckoRemindersProtocolHandler(GeckoPacketProtocolHandler): @staticmethod def request(seq, **kwargs): ...
30.54
87
0.606418
171
1,527
5.233918
0.385965
0.12067
0.150838
0.160894
0.331844
0.165363
0.046927
0.046927
0.046927
0.046927
0
0.074208
0.276359
1,527
49
88
31.163265
0.735747
0.050426
0
0.108108
0
0.054054
0.120666
0.110957
0
0
0
0
0
1
0.135135
false
0
0.081081
0.081081
0.351351
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
85e52bfde40a74e45c8231c717edf8c32b7d97fa
376
py
Python
components/studio/apps/migrations/0005_auto_20210209_1244.py
aitmlouk/stackn
c8029394a15b03796a4864938f9db251b65c7354
[ "Apache-2.0" ]
25
2020-05-08T22:24:54.000Z
2022-03-11T18:16:58.000Z
components/studio/apps/migrations/0005_auto_20210209_1244.py
aitmlouk/stackn
c8029394a15b03796a4864938f9db251b65c7354
[ "Apache-2.0" ]
75
2020-05-08T22:15:59.000Z
2021-11-22T10:00:04.000Z
components/studio/apps/migrations/0005_auto_20210209_1244.py
aitmlouk/stackn
c8029394a15b03796a4864938f9db251b65c7354
[ "Apache-2.0" ]
12
2020-11-04T13:09:46.000Z
2022-03-14T16:22:40.000Z
# Generated by Django 2.2.13 on 2021-02-09 12:44 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('apps', '0004_auto_20210209_1243'), ] operations = [ migrations.RenameField( model_name='appinstance', old_name='lab_session...
19.789474
48
0.598404
41
376
5.292683
0.804878
0
0
0
0
0
0
0
0
0
0
0.120301
0.292553
376
18
49
20.888889
0.695489
0.12234
0
0
1
0
0.182927
0.070122
0
0
0
0
0
1
0
false
0
0.083333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
85e79f4d2b450460c3e188d3ec311565e5eee0d2
30,714
py
Python
SoundServer.py
yoyoberenguer/SoundServer
3a824a8f519f205d5f4c277d314cb92732a157b1
[ "MIT" ]
null
null
null
SoundServer.py
yoyoberenguer/SoundServer
3a824a8f519f205d5f4c277d314cb92732a157b1
[ "MIT" ]
null
null
null
SoundServer.py
yoyoberenguer/SoundServer
3a824a8f519f205d5f4c277d314cb92732a157b1
[ "MIT" ]
null
null
null
# encoding: utf-8 __version__ = "1.0.1" try: import pygame from pygame import mixer except ImportError: raise ImportError("\n<pygame> library is missing on your system." "\nTry: \n C:\\pip install pygame on a window command prompt.") from time import time class SoundObje...
39.226054
119
0.513088
3,516
30,714
4.34215
0.092435
0.013362
0.013755
0.007926
0.449008
0.407873
0.399555
0.383245
0.373354
0.363726
0
0.008125
0.418929
30,714
782
120
39.276215
0.847313
0.297454
0
0.581948
0
0.002375
0.091607
0
0
0
0
0.001279
0.021378
1
0.071259
false
0
0.011876
0
0.135392
0.011876
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
0
1
0
85e90c8a65010ce9ecba5749d22457498fa4d999
2,931
py
Python
tests/extmethods/run.py
dariobig/pyangbind
db0808f719bb963dac85606fddd65a1930a84aef
[ "Apache-2.0" ]
1
2020-04-01T05:45:41.000Z
2020-04-01T05:45:41.000Z
tests/extmethods/run.py
dariobig/pyangbind
db0808f719bb963dac85606fddd65a1930a84aef
[ "Apache-2.0" ]
null
null
null
tests/extmethods/run.py
dariobig/pyangbind
db0808f719bb963dac85606fddd65a1930a84aef
[ "Apache-2.0" ]
3
2016-11-01T23:51:35.000Z
2018-05-23T10:09:08.000Z
#!/usr/bin/env python import os import sys import getopt TESTNAME = "extmethods" class extmethodcls(object): def commit(self, *args, **kwargs): return "COMMIT_CALLED" def presave(self, *args, **kwargs): return "PRESAVE_CALLED" def postsave(self, *args, **kwargs): return "POSTSAVE_CALLED" def ...
29.019802
76
0.604572
375
2,931
4.610667
0.314667
0.040486
0.041643
0.057837
0.122036
0.064777
0.039329
0.039329
0
0
0
0.004986
0.247356
2,931
100
77
29.31
0.778785
0.018083
0
0.026316
0
0
0.258345
0.018081
0
0
0
0
0.078947
1
0.078947
false
0.013158
0.052632
0.065789
0.210526
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
0
0
1
0
85eb93c822a019fc750d57de9e82b6de5c0352f3
790
py
Python
scripts/solved/031_TRAN.py
akikuno/rosalind
7015dc63e493d870e5789e99f2ee523a9b1f5ab9
[ "MIT" ]
null
null
null
scripts/solved/031_TRAN.py
akikuno/rosalind
7015dc63e493d870e5789e99f2ee523a9b1f5ab9
[ "MIT" ]
null
null
null
scripts/solved/031_TRAN.py
akikuno/rosalind
7015dc63e493d870e5789e99f2ee523a9b1f5ab9
[ "MIT" ]
null
null
null
# https://rosalind.info/problems/tran/ file = "data/tran.txt" def read_fasta(file: str): """ Args file: path of fasta file """ with open(file) as f: fa = f.read().splitlines() prev = True header = [] seq = [] for f in fa: if ">" in f: header.append(f[1:...
16.458333
43
0.501266
104
790
3.778846
0.509615
0.068702
0.066158
0
0
0
0
0
0
0
0
0.031683
0.360759
790
47
44
16.808511
0.746535
0.08481
0
0.129032
0
0
0.047009
0
0
0
0
0
0
1
0.032258
false
0
0.032258
0
0.096774
0.032258
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
0
1
0