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
9c84b3551295c2df23f14398e5daebfbae59d83f
473
py
Python
unittest/unittest_outcomes.py
all3g/pieces
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
34
2016-10-31T02:05:24.000Z
2018-11-08T14:33:13.000Z
unittest/unittest_outcomes.py
join-us/python-programming
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
2
2017-05-11T03:00:31.000Z
2017-11-01T23:37:37.000Z
unittest/unittest_outcomes.py
join-us/python-programming
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
21
2016-08-19T09:05:45.000Z
2018-11-08T14:33:16.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # ok : The test pass # FAIL : The test does not pass, and raises an AssertionError exception. # ERROR : The test raises an exception other than AssertionError. import unittest class OutcomesTest(unittest.TestCase): def testPass(self): return def testFa...
18.92
73
0.659619
58
473
5.241379
0.672414
0.069079
0
0
0
0
0
0
0
0
0
0.002747
0.230444
473
24
74
19.708333
0.832418
0.414376
0
0
0
0
0.069853
0
0
0
0
0
0
1
0.3
false
0.1
0.1
0.1
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
1
0
1
0
0
1
0
0
3
9c8db48a3fe84b5e7662794124c718bdbdb5d9f8
525
py
Python
largest integer.py
sundar369/coding
d5e99623f055a39604351752d494c1c8817d6d91
[ "MIT" ]
null
null
null
largest integer.py
sundar369/coding
d5e99623f055a39604351752d494c1c8817d6d91
[ "MIT" ]
null
null
null
largest integer.py
sundar369/coding
d5e99623f055a39604351752d494c1c8817d6d91
[ "MIT" ]
null
null
null
#optimizal m, n = map (int, input ().strip ().split (",")) a = [] for i in range (m): a.append (list (map (int, input ().strip ().split (",")))) high = [0] * m for i in range (m): high[i] = a[i][-1] ans = [] for i in range (m * n): h = max (high) ans.append (str (h)) if len (a[high.index (h)]) != 0:...
27.631579
62
0.466667
86
525
2.848837
0.337209
0.220408
0.244898
0.179592
0.457143
0.138776
0.138776
0
0
0
0
0.016043
0.287619
525
19
63
27.631579
0.639037
0.017143
0
0.111111
0
0
0.003876
0
0
0
0
0
0
1
0
false
0
0
0
0
0.055556
0
0
0
null
1
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
0
0
0
0
0
0
0
0
3
9ca66d64d3532d0a143cf6883a6390598230727e
158
py
Python
url-shortener/app/utils.py
dalamilla/fastapi-projects
e996911efb81df28a0b8bec48263669586493274
[ "MIT" ]
null
null
null
url-shortener/app/utils.py
dalamilla/fastapi-projects
e996911efb81df28a0b8bec48263669586493274
[ "MIT" ]
null
null
null
url-shortener/app/utils.py
dalamilla/fastapi-projects
e996911efb81df28a0b8bec48263669586493274
[ "MIT" ]
null
null
null
import socket def check_domain(domain: str): try: socket.gethostbyname(domain) except socket.gaierror: return False return True
15.8
36
0.664557
18
158
5.777778
0.722222
0
0
0
0
0
0
0
0
0
0
0
0.272152
158
9
37
17.555556
0.904348
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.571429
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
0
0
0
0
1
0
0
3
9ca8739808520cfbf6d0c17850a4fcc56686b961
165
py
Python
python/Basic/for_loop.py
davidgjy/arch-lib
b4402b96d2540995a848e6c5f600b2d99847ded6
[ "Apache-2.0" ]
null
null
null
python/Basic/for_loop.py
davidgjy/arch-lib
b4402b96d2540995a848e6c5f600b2d99847ded6
[ "Apache-2.0" ]
null
null
null
python/Basic/for_loop.py
davidgjy/arch-lib
b4402b96d2540995a848e6c5f600b2d99847ded6
[ "Apache-2.0" ]
null
null
null
print('My name is') for i in range(5): print('Master HaKu Five Times (' + str(i) + ')') total = 0 for num in range(101): total = total + num print(total)
18.333333
50
0.593939
28
165
3.5
0.642857
0.142857
0
0
0
0
0
0
0
0
0
0.04
0.242424
165
8
51
20.625
0.744
0
0
0
0
0
0.22293
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
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
0
0
0
0
0
1
0
3
9caa4b498a0eb93b5de1f5297eef5ffec1e85e7d
206
py
Python
src/pprint_params.py
CeibaSheep/Person_reID_baseline_pytorch
3745831b998f0d9e23f7a66285b21d3ae92eede9
[ "MIT" ]
null
null
null
src/pprint_params.py
CeibaSheep/Person_reID_baseline_pytorch
3745831b998f0d9e23f7a66285b21d3ae92eede9
[ "MIT" ]
null
null
null
src/pprint_params.py
CeibaSheep/Person_reID_baseline_pytorch
3745831b998f0d9e23f7a66285b21d3ae92eede9
[ "MIT" ]
null
null
null
from pprint import pprint def pprint_params(params_list, group_names): print ('\n#### SETTINGS') for idx, p in enumerate(params_list): print ('\n## ' + group_names[idx]) pprint(p)
22.888889
44
0.631068
28
206
4.464286
0.571429
0.16
0
0
0
0
0
0
0
0
0
0
0.228155
206
8
45
25.75
0.786164
0
0
0
0
0
0.097087
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0.833333
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
0
0
0
0
0
1
0
3
9cb356b1464fa2420258a918411cb095286ddb8b
118
py
Python
bspump/cache/__init__.py
thatch/BitSwanPump
98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f
[ "BSD-3-Clause" ]
17
2019-02-14T09:26:03.000Z
2022-03-11T09:23:52.000Z
bspump/cache/__init__.py
thatch/BitSwanPump
98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f
[ "BSD-3-Clause" ]
91
2019-05-06T18:59:02.000Z
2022-01-11T06:22:32.000Z
bspump/cache/__init__.py
thatch/BitSwanPump
98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f
[ "BSD-3-Clause" ]
10
2019-04-23T08:48:58.000Z
2022-02-13T14:24:28.000Z
from .cachedict import CacheDict from .lrucachedict import LRUCacheDict __all__ = ( 'CacheDict', 'LRUCacheDict', )
14.75
38
0.762712
11
118
7.818182
0.454545
0
0
0
0
0
0
0
0
0
0
0
0.144068
118
7
39
16.857143
0.851485
0
0
0
0
0
0.177966
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
0
1
0
0
0
0
3
9cee9f72907f3e9deef0bb5a0c5c9c9f74e55678
327
py
Python
srfnef/corrections/psf/__init__.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/corrections/psf/__init__.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/corrections/psf/__init__.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 ''' @author: Minghao Guo @contact: mh.guo0111@gmail.com @software: nef @file: __init__.py @date: 5/7/2019 @desc: ''' from .fitted_x import FittedX from .fitted_y import FittedY from .fitted_z import FittedZ from .point_source import PointSource from .psf_fit import PsfFit from .psf_correct import PsfC...
20.4375
37
0.7737
51
327
4.764706
0.745098
0.123457
0
0
0
0
0
0
0
0
0
0.038462
0.125382
327
15
38
21.8
0.811189
0.382263
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
140b293f5131065f2eb817fac0f594cb87da4bfa
1,908
py
Python
test/test_stemmer.py
mismaah/dhivehi-nlp
5faa31141a446933e0949bdc29dd9905a1548b90
[ "MIT" ]
9
2021-04-18T17:55:19.000Z
2022-01-25T03:47:53.000Z
test/test_stemmer.py
mismaah/dhivehi-nlp
5faa31141a446933e0949bdc29dd9905a1548b90
[ "MIT" ]
null
null
null
test/test_stemmer.py
mismaah/dhivehi-nlp
5faa31141a446933e0949bdc29dd9905a1548b90
[ "MIT" ]
1
2021-06-04T10:42:41.000Z
2021-06-04T10:42:41.000Z
import unittest from dhivehi_nlp import stemmer class test_stemmer(unittest.TestCase): def test_stemmer_one_word_0(self): self.assertEqual(stemmer.stem("ކަމެއްކަން"), "ކަމެއް") def test_stemmer_one_word_1(self): self.assertEqual(stemmer.stem("ކަމެއްކަމަކީ"), "ކަމެއް") def test_stemmer_on...
28.477612
164
0.397275
519
1,908
1.7842
0.1079
0.051836
0.058315
0.051836
0.816415
0.693305
0.686825
0.660907
0.609071
0.609071
0
0.006809
0.384172
1,908
66
165
28.909091
0.604255
0
0
0.109091
0
0.018182
0.230608
0
0
0
0
0
0.145455
1
0.145455
false
0
0.036364
0
0.2
0
0
0
1
null
0
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
14145e3d8928e22358647160e04c08634021543c
101
py
Python
cursoemvideo/modulos/ex111/teste.py
mrqssjeff/project-python
b3b08f2acfe825640a5ee92cf9d6fa45ab580384
[ "MIT" ]
null
null
null
cursoemvideo/modulos/ex111/teste.py
mrqssjeff/project-python
b3b08f2acfe825640a5ee92cf9d6fa45ab580384
[ "MIT" ]
null
null
null
cursoemvideo/modulos/ex111/teste.py
mrqssjeff/project-python
b3b08f2acfe825640a5ee92cf9d6fa45ab580384
[ "MIT" ]
null
null
null
from utilidadescev import moeda preço = float(input('Digite o preço: ')) moeda.resumo(preço, 15, 23)
25.25
40
0.742574
15
101
5
0.8
0
0
0
0
0
0
0
0
0
0
0.045455
0.128713
101
4
41
25.25
0.806818
0
0
0
0
0
0.156863
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
0
1
0
0
0
0
3
141b51e86c23c420d6f4de22894f145da4c52864
55
py
Python
vedatad/models/backbones/__init__.py
carpedkm/vedatad
55f8dced57f698ee9fc0da9bcf471d171e718d0c
[ "Apache-2.0" ]
36
2021-05-22T04:36:22.000Z
2022-03-17T06:42:54.000Z
vedatad/models/backbones/__init__.py
carpedkm/vedatad
55f8dced57f698ee9fc0da9bcf471d171e718d0c
[ "Apache-2.0" ]
16
2021-07-26T07:43:53.000Z
2022-03-30T08:48:58.000Z
vedatad/models/backbones/__init__.py
carpedkm/vedatad
55f8dced57f698ee9fc0da9bcf471d171e718d0c
[ "Apache-2.0" ]
15
2021-07-06T12:51:53.000Z
2022-03-09T14:11:19.000Z
from .resnet3d import ResNet3d __all__ = ['ResNet3d']
13.75
30
0.745455
6
55
6.166667
0.666667
0
0
0
0
0
0
0
0
0
0
0.06383
0.145455
55
3
31
18.333333
0.723404
0
0
0
0
0
0.145455
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
0
0
1
0
0
0
0
3
143a6e8d4cf85bf60b459ad1b58bf21a3147d543
2,308
py
Python
tests/_apis/test_ChampionMasteryApiV3.py
physicsninja/Riot-Watcher
2cd51c2cade112d018dd515f282e248940429ea0
[ "MIT" ]
null
null
null
tests/_apis/test_ChampionMasteryApiV3.py
physicsninja/Riot-Watcher
2cd51c2cade112d018dd515f282e248940429ea0
[ "MIT" ]
null
null
null
tests/_apis/test_ChampionMasteryApiV3.py
physicsninja/Riot-Watcher
2cd51c2cade112d018dd515f282e248940429ea0
[ "MIT" ]
null
null
null
import sys if sys.version_info > (3, 0): from unittest.mock import MagicMock else: from mock import MagicMock from riotwatcher._apis import ChampionMasteryApiV3 class TestChampionMasteryApiV3(object): def test_by_summoner(self): mock_base_api = MagicMock() expected_return = object() ...
30.368421
120
0.663778
260
2,308
5.488462
0.211538
0.067274
0.092502
0.058865
0.762439
0.701472
0.701472
0.656622
0.656622
0.656622
0
0.025146
0.259099
2,308
75
121
30.773333
0.809357
0
0
0.517857
0
0.053571
0.123971
0
0
0
0
0
0.107143
1
0.053571
false
0
0.071429
0
0.142857
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
144b9fdb8927a7b7ba13d497e34191794bae3730
126
py
Python
pype/hosts/houdini/startup/scripts/123.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
pype/hosts/houdini/startup/scripts/123.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
pype/hosts/houdini/startup/scripts/123.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
from avalon import api, houdini import hou def main(): print("Installing Avalon ...") api.install(houdini) main()
11.454545
34
0.666667
16
126
5.25
0.6875
0
0
0
0
0
0
0
0
0
0
0
0.206349
126
10
35
12.6
0.84
0
0
0
0
0
0.166667
0
0
0
0
0
0
1
0.166667
true
0
0.333333
0
0.5
0.166667
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
1
0
1
0
0
0
0
3
1459e5e8d3b11dd09905a9b5a95884d5ded8ef9a
96
py
Python
panimg/contrib/oct_converter/readers/__init__.py
nlessmann/rse-panimg
c0a2481308ef03677b4786aec775b6e318139495
[ "Apache-2.0" ]
5
2021-05-12T11:14:19.000Z
2022-03-28T14:03:27.000Z
panimg/contrib/oct_converter/readers/__init__.py
nlessmann/rse-panimg
c0a2481308ef03677b4786aec775b6e318139495
[ "Apache-2.0" ]
37
2021-03-19T08:15:33.000Z
2022-03-28T08:44:55.000Z
panimg/contrib/oct_converter/readers/__init__.py
nlessmann/rse-panimg
c0a2481308ef03677b4786aec775b6e318139495
[ "Apache-2.0" ]
4
2021-03-23T09:52:25.000Z
2021-11-09T12:48:05.000Z
from .fds import FDS from .e2e import E2E from .fda import FDA __all__ = ["FDS", "E2E", "FDA"]
16
31
0.666667
16
96
3.75
0.375
0
0
0
0
0
0
0
0
0
0
0.038462
0.1875
96
5
32
19.2
0.730769
0
0
0
0
0
0.09375
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
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
0
0
1
0
0
0
0
3
149e9d3f15dfb4664e87fde8f1601b8c582c79b0
160
py
Python
hackerrank/interview preparation kit/arrays/minimum-swaps-2/main.py
austinmccalley/challenge-sites
a0bb8d36894e7b298ffe8a2f0d3bd1a34ff3224f
[ "MIT" ]
null
null
null
hackerrank/interview preparation kit/arrays/minimum-swaps-2/main.py
austinmccalley/challenge-sites
a0bb8d36894e7b298ffe8a2f0d3bd1a34ff3224f
[ "MIT" ]
null
null
null
hackerrank/interview preparation kit/arrays/minimum-swaps-2/main.py
austinmccalley/challenge-sites
a0bb8d36894e7b298ffe8a2f0d3bd1a34ff3224f
[ "MIT" ]
null
null
null
# Complete the minimumSwaps function below. def minimumSwaps(arr): # Correct lists cl = list(range(1, len(arr)+1)) print(minimumSwaps([4,3,1,2]))
20
43
0.6625
23
160
4.608696
0.782609
0
0
0
0
0
0
0
0
0
0
0.046154
0.1875
160
8
44
20
0.769231
0.34375
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.333333
0.333333
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
0
0
0
0
0
3
14b0b8299c8b5f6da4ca33450a7198d73ef2a431
4,361
py
Python
MediaCatalog/MediaCatalog/settings.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
null
null
null
MediaCatalog/MediaCatalog/settings.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
7
2020-06-06T01:06:19.000Z
2022-02-10T11:15:14.000Z
MediaCatalog/MediaCatalog/settings.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
1
2020-11-04T03:21:24.000Z
2020-11-04T03:21:24.000Z
""" Django settings for MediaCatalog project. Generated by 'django-admin startproject' using Django 3.0. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os...
26.919753
95
0.687686
454
4,361
6.475771
0.449339
0.066327
0.052381
0.059524
0.154762
0.143878
0.090816
0.090816
0.040816
0
0
0.016143
0.176106
4,361
162
96
26.919753
0.802115
0.251548
0
0
1
0
0.591654
0.472025
0
0
0
0
0
1
0
false
0.0625
0.010417
0
0.010417
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
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
1adecf6c1a1bd29907adff206ea8f3f783d3cbb5
1,272
py
Python
rummy/player/player.py
sarcoma/Python-Rummy
6c01a5b8ea3f446f3d26aa2004cb4aa3bfe525c8
[ "MIT" ]
19
2018-01-10T13:56:17.000Z
2021-01-01T22:32:49.000Z
rummy/player/player.py
sarcoma/Cards
6c01a5b8ea3f446f3d26aa2004cb4aa3bfe525c8
[ "MIT" ]
20
2018-10-01T14:54:07.000Z
2020-10-05T11:06:18.000Z
rummy/player/player.py
sarcoma/Cards
6c01a5b8ea3f446f3d26aa2004cb4aa3bfe525c8
[ "MIT" ]
9
2018-10-01T19:56:10.000Z
2020-09-10T13:16:36.000Z
# -*- coding: utf-8 -*- from abc import ABCMeta from rummy.game.melds import Melds from rummy.player.hand import Hand class Player(metaclass=ABCMeta): __metaclass__ = ABCMeta def __init__(self, num): self.num = num self.game_score = 0 self.hand = Hand() self.melds = Melds() ...
22.714286
72
0.639937
176
1,272
4.380682
0.272727
0.072633
0.072633
0.041505
0.095979
0.095979
0.095979
0.095979
0.095979
0
0
0.003171
0.256289
1,272
55
73
23.127273
0.811839
0.016509
0
0
0
0
0.007206
0
0
0
0
0
0
1
0.351351
false
0
0.081081
0.162162
0.648649
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
1aee6badb3bda1567d67eab97aa56114e2ff8611
494
py
Python
python/user.py
FAUSheppy/web-remote-scipts
aab398e44ece6c907ba46535e2ba2f2cc21965f5
[ "MIT" ]
null
null
null
python/user.py
FAUSheppy/web-remote-scipts
aab398e44ece6c907ba46535e2ba2f2cc21965f5
[ "MIT" ]
null
null
null
python/user.py
FAUSheppy/web-remote-scipts
aab398e44ece6c907ba46535e2ba2f2cc21965f5
[ "MIT" ]
null
null
null
import flask_login as fl class UserInDatabase(): def __init__(self, name, password): self.name = name self.password = password class User(fl.UserMixin): def __init__(self, name): self.id = name self.name = "user" + str(id) self.password = self.name + "_secret" ...
22.454545
55
0.615385
58
494
5
0.431034
0.137931
0.075862
0.103448
0
0
0
0
0
0
0
0
0.265182
494
22
55
22.454545
0.798898
0
0
0
0
0
0.054545
0
0
0
0
0
0
1
0.25
false
0.1875
0.0625
0.0625
0.5625
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
1af7c277eb5aa5220254bb7403c9cd4afb487444
9,277
py
Python
Blackjack-RL/DP_agent.py
Siokhan/BlackJack-RL-Agent
9f1da26b00a8c6e02fce82e3c457e434c59cafa7
[ "MIT" ]
1
2020-07-25T11:20:16.000Z
2020-07-25T11:20:16.000Z
Blackjack-RL/DP_agent.py
Siokhan/BlackJack-RL-Agent
9f1da26b00a8c6e02fce82e3c457e434c59cafa7
[ "MIT" ]
null
null
null
Blackjack-RL/DP_agent.py
Siokhan/BlackJack-RL-Agent
9f1da26b00a8c6e02fce82e3c457e434c59cafa7
[ "MIT" ]
null
null
null
import numpy as np #generate state space, initial policy, transition probababilities and rewards (0 on each action, 21 -> +1, bust -> -1) def generate_blackjack_environment(): #state space comprises of possible hand values all anything below going bust and going bust, #legal hand values go from 4 to 21 ...
55.885542
136
0.611405
1,813
9,277
3.043023
0.10866
0.185608
0.248505
0.292913
0.477796
0.424144
0.383723
0.359978
0.306145
0.305238
0
0.155876
0.215803
9,277
166
137
55.885542
0.602474
0.258273
0
0.155963
1
0
0.035193
0.006618
0
0
0
0
0
1
0.055046
false
0
0.009174
0
0.119266
0.091743
0
0
0
null
0
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
0
0
0
0
0
0
3
21027fe8a6d15cc82017343e492f3e6660b0efba
4,912
py
Python
leetcode/M0518_Coin_Change_2.py
jjmoo/daily
fb8cf0e64606a2a76a6141bb0e9ccd143c30f07c
[ "MIT" ]
1
2020-03-27T16:42:02.000Z
2020-03-27T16:42:02.000Z
leetcode/M0518_Coin_Change_2.py
jjmoo/daily
fb8cf0e64606a2a76a6141bb0e9ccd143c30f07c
[ "MIT" ]
null
null
null
leetcode/M0518_Coin_Change_2.py
jjmoo/daily
fb8cf0e64606a2a76a6141bb0e9ccd143c30f07c
[ "MIT" ]
null
null
null
from typing import List from utils import Benchmark class Solution: def change(self, amount: int, coins: List[int]) -> int: if 0 == amount: return 1 if not coins or amount < 0: return 0 dp = [[0] * len(coins) for _ in range(amount + 1)] for j in range(len(coins)): dp[0][...
47.230769
1,686
0.588151
785
4,912
3.677707
0.513376
0.021822
0.015587
0.024939
0.181157
0.174922
0.16938
0.164531
0.164531
0.164531
0
0.337939
0.263233
4,912
103
1,687
47.68932
0.459796
0.172638
0
0.305085
0
0
0.010404
0.00545
0
0
0
0
0
1
0.101695
false
0
0.033898
0
0.237288
0.101695
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
210d2108a3bbf6d56516e4ee32f982edf7732d7d
247
py
Python
projects/models.py
Michellemukami/portfolio1
8c661112a43664e0b8f3b89d08b5052523c5e4c3
[ "MIT" ]
null
null
null
projects/models.py
Michellemukami/portfolio1
8c661112a43664e0b8f3b89d08b5052523c5e4c3
[ "MIT" ]
5
2020-06-05T22:54:41.000Z
2021-09-08T01:17:21.000Z
projects/models.py
Michellemukami/portfolio1
8c661112a43664e0b8f3b89d08b5052523c5e4c3
[ "MIT" ]
null
null
null
from django.db import models class Project(models.Model): title = models.CharField(max_length=60) post = models.TextField() project_image = models.ImageField(upload_to='project/', blank=True) url= models.CharField(max_length=100)
30.875
71
0.740891
33
247
5.424242
0.69697
0.167598
0.201117
0.268156
0
0
0
0
0
0
0
0.023585
0.1417
247
7
72
35.285714
0.820755
0
0
0
0
0
0.032389
0
0
0
0
0
0
1
0
false
0
0.166667
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
21171b259880aa89454ce918146c2205ca16881c
91
py
Python
mocap2d/__init__.py
k2sebeom/unity-2dmocap
b81df8f44114cf887d71a6ba6796e0a36b946b0b
[ "MIT" ]
10
2020-10-10T16:57:47.000Z
2022-03-25T05:23:39.000Z
mocap2d/__init__.py
k2sebeom/unity-2dmocap
b81df8f44114cf887d71a6ba6796e0a36b946b0b
[ "MIT" ]
1
2022-02-19T10:37:23.000Z
2022-02-19T10:37:23.000Z
mocap2d/__init__.py
k2sebeom/unity-2dmocap
b81df8f44114cf887d71a6ba6796e0a36b946b0b
[ "MIT" ]
1
2022-02-02T05:32:14.000Z
2022-02-02T05:32:14.000Z
from mocap2d.mocap2d import BoneDetector __all__ = ["BoneDetector"] __version__ = '0.1.2'
18.2
40
0.758242
11
91
5.545455
0.818182
0
0
0
0
0
0
0
0
0
0
0.0625
0.120879
91
4
41
22.75
0.7
0
0
0
0
0
0.186813
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
0
1
0
0
0
0
3
211f16265ffe17099e5d5e86d8932375e38a647f
8,875
py
Python
waitlisted/models/reservations_response.py
waitlisted/waitlisted-python
87c51fd793fe80b61464e4c5c49b81648cc50827
[ "Apache-2.0" ]
1
2017-03-01T01:31:21.000Z
2017-03-01T01:31:21.000Z
waitlisted/models/reservations_response.py
waitlisted/waitlisted-python
87c51fd793fe80b61464e4c5c49b81648cc50827
[ "Apache-2.0" ]
null
null
null
waitlisted/models/reservations_response.py
waitlisted/waitlisted-python
87c51fd793fe80b61464e4c5c49b81648cc50827
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Waitlisted API Waitlisted API OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obt...
24.652778
172
0.57307
942
8,875
5.250531
0.166667
0.048524
0.210271
0.064699
0.457744
0.287505
0.156894
0.068742
0.013748
0
0
0.001883
0.341634
8,875
359
173
24.721448
0.8446
0.406761
0
0.251969
1
0
0.070416
0
0
0
0
0
0
1
0.204724
false
0
0.023622
0
0.354331
0.007874
0
0
0
null
0
1
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
1
0
0
0
0
0
0
0
3
2121c7bc5594d2a7ff8eb90ed632e71df085fb51
415
py
Python
test/test_select.py
fridex/json2sql
a0851dd79827a684319b03fb899e129f81ff2d3a
[ "Apache-2.0" ]
null
null
null
test/test_select.py
fridex/json2sql
a0851dd79827a684319b03fb899e129f81ff2d3a
[ "Apache-2.0" ]
1
2017-10-02T13:17:24.000Z
2017-11-07T14:02:44.000Z
test/test_select.py
fridex/json2sql
a0851dd79827a684319b03fb899e129f81ff2d3a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # ###################################################################### # Copyright (C) 2017 Fridolin Pokorny, fridolin.pokorny@gmail.com # This file is part of json2sql package. # ###################################################################### """Tests for SELECT SQL statement.""" from...
31.923077
72
0.472289
37
415
5.297297
0.783784
0.153061
0.142857
0.173469
0.265306
0
0
0
0
0
0
0.016216
0.108434
415
12
73
34.583333
0.513514
0.457831
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
1
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
1
0
1
0
0
0
0
3
2130d9e449603e22d25cb473b7ad0a5d9611fc58
170
py
Python
Algorithms/Warmup/Solve Me First/solution.py
subhangi2731/ds-algo-solutions
9209412314e9807202afda8a74e34c0f2ef75396
[ "MIT" ]
48
2020-12-04T17:48:47.000Z
2022-02-26T17:56:52.000Z
Algorithms/Warmup/Solve Me First/solution.py
subhangi2731/ds-algo-solutions
9209412314e9807202afda8a74e34c0f2ef75396
[ "MIT" ]
465
2020-12-04T02:12:56.000Z
2021-12-07T16:09:51.000Z
Algorithms/Warmup/Solve Me First/solution.py
subhangi2731/ds-algo-solutions
9209412314e9807202afda8a74e34c0f2ef75396
[ "MIT" ]
199
2020-12-04T02:39:56.000Z
2021-12-07T10:10:50.000Z
def solveMeFirst(a,b): return a+b # input first value num1 = int(input()) # input second value num2 = int(input()) res = solveMeFirst(num1,num2) # print sum print (res)
18.888889
29
0.7
27
170
4.407407
0.555556
0.033613
0
0
0
0
0
0
0
0
0
0.027972
0.158824
170
9
30
18.888889
0.804196
0.270588
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0.166667
0.333333
0.166667
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
0
0
0
1
0
0
0
3
21358f53f2a34bfacf037f0a5852103b16c47108
13,443
py
Python
TodaySalary/salary/views.py
babamba/sideAppServer
607d61cbea9d05fe902b9f8e772bbd9f7baca28c
[ "MIT" ]
null
null
null
TodaySalary/salary/views.py
babamba/sideAppServer
607d61cbea9d05fe902b9f8e772bbd9f7baca28c
[ "MIT" ]
11
2020-06-05T20:13:15.000Z
2022-02-26T10:02:03.000Z
TodaySalary/salary/views.py
babamba/sideAppServer
607d61cbea9d05fe902b9f8e772bbd9f7baca28c
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework import status from rest_framework.views import APIView from rest_framework.response import Response from . import models, serializers from TodaySalary.users import serializers as user_serializers from TodaySalary.notifications import views as notification_views fr...
36.430894
110
0.565201
1,332
13,443
5.504505
0.116366
0.045008
0.038871
0.042962
0.78287
0.743863
0.706901
0.681942
0.669394
0.651118
0
0.007981
0.347541
13,443
369
111
36.430894
0.827956
0.26445
0
0.552448
0
0
0.009512
0
0
0
0
0
0
1
0.076923
false
0
0.062937
0
0.300699
0.013986
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
213bf17674a489af7524e8c1ff9d4ec988480906
279
py
Python
registration_app/forms.py
GoRoSfan/langchanger-prod
d1b16fb2cfd269d4b54f44665a7881b4868fb74d
[ "MIT" ]
1
2020-05-28T10:53:14.000Z
2020-05-28T10:53:14.000Z
registration_app/forms.py
GoRoSfan/langchanger-prod
d1b16fb2cfd269d4b54f44665a7881b4868fb74d
[ "MIT" ]
18
2020-03-22T15:45:29.000Z
2022-03-12T00:18:51.000Z
registration_app/forms.py
GoRoSfan/langchanger-prod
d1b16fb2cfd269d4b54f44665a7881b4868fb74d
[ "MIT" ]
3
2020-05-25T15:50:49.000Z
2020-05-29T12:41:35.000Z
from django import forms from django.core.exceptions import ValidationError from django.contrib.auth.models import User class CreateUserForm(forms.ModelForm): class Meta: model = User class ChangeUserForm(forms.ModelForm): class Meta: model = User
16.411765
50
0.734767
33
279
6.212121
0.515152
0.146341
0.185366
0.22439
0.312195
0.312195
0
0
0
0
0
0
0.204301
279
16
51
17.4375
0.923423
0
0
0.444444
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.777778
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
0
0
0
1
0
0
0
0
3
214087bc4dc0abe4c859ea2df37f6a3b54d083b6
784
py
Python
test/integration/test_command_line.py
jimporter/mopack
e912be11528645f5463e7873b5470c420b698418
[ "BSD-3-Clause" ]
null
null
null
test/integration/test_command_line.py
jimporter/mopack
e912be11528645f5463e7873b5470c420b698418
[ "BSD-3-Clause" ]
17
2020-07-23T20:28:36.000Z
2022-03-04T04:33:55.000Z
test/integration/test_command_line.py
jimporter/mopack
e912be11528645f5463e7873b5470c420b698418
[ "BSD-3-Clause" ]
1
2020-11-04T03:51:20.000Z
2020-11-04T03:51:20.000Z
from . import * class HelpTest(SubprocessTestCase): def test_help(self): output = self.assertPopen(['mopack', 'help']) self.assertRegex(output, r'^usage: mopack \[-h\] \[--version\]') def test_help_subcommand(self): output = self.assertPopen(['mopack', 'help', 'resolve']) self...
35.636364
78
0.647959
85
784
5.894118
0.341176
0.055888
0.111776
0.199601
0.528942
0.467066
0.331337
0.163673
0
0
0
0
0.178571
784
21
79
37.333333
0.77795
0
0
0.133333
0
0
0.252551
0
0
0
0
0
0.533333
1
0.266667
false
0
0.066667
0
0.466667
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
1
0
1
0
0
0
0
0
0
0
3
2146bf865dbf4269e80d367e94dd37edef017131
1,469
py
Python
src/ProiectFinal_BDOO/sesiuneAutentificat.py
acd8/proiectBDOO
9c9d5de6ff4be66f26747dd8834c607bf094efba
[ "MIT" ]
null
null
null
src/ProiectFinal_BDOO/sesiuneAutentificat.py
acd8/proiectBDOO
9c9d5de6ff4be66f26747dd8834c607bf094efba
[ "MIT" ]
null
null
null
src/ProiectFinal_BDOO/sesiuneAutentificat.py
acd8/proiectBDOO
9c9d5de6ff4be66f26747dd8834c607bf094efba
[ "MIT" ]
null
null
null
import os import stergereBilet def meniuAutentificat(utilizator): print "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" os.system('cls') print " Bun venit " + utilizator print "__________________________...
44.515152
112
0.513955
145
1,469
4.213793
0.337931
0.160393
0.235679
0.307692
0.081833
0.081833
0.081833
0.081833
0.081833
0.081833
0
0.007463
0.36147
1,469
32
113
45.90625
0.643923
0
0
0
0
0.035714
0.526603
0.165757
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.357143
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
1
0
0
0
0
0
0
0
0
3
215fc28bf175113314221b3dcc17bfe427121560
687
py
Python
Python-Basics/Working with Dates and Time/formatting_time.py
shravan20/mycaptain-ai-certification
d8a700d3bb2059fc7e359e8e1ff23ed0c154299e
[ "MIT" ]
null
null
null
Python-Basics/Working with Dates and Time/formatting_time.py
shravan20/mycaptain-ai-certification
d8a700d3bb2059fc7e359e8e1ff23ed0c154299e
[ "MIT" ]
null
null
null
Python-Basics/Working with Dates and Time/formatting_time.py
shravan20/mycaptain-ai-certification
d8a700d3bb2059fc7e359e8e1ff23ed0c154299e
[ "MIT" ]
null
null
null
from datetime import date from datetime import time from datetime import datetime def main(): #get current datetime now = datetime.now() print(now.strftime('Current year is %Y')) #%y %a %b %d == year,weekday,month,dayOfMonth print(now.strftime('Current year is %Y')) print(now.strftime('Curren...
25.444444
51
0.653566
93
687
4.741935
0.333333
0.145125
0.290249
0.260771
0.290249
0.290249
0.290249
0.154195
0
0
0
0
0.199418
687
27
52
25.444444
0.801818
0.187773
0
0.133333
0
0
0.277477
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.266667
0.533333
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
0
0
0
0
0
0
1
0
3
216bd3977c8128f5754645dbddfc2f41aceac6fe
193
py
Python
src/operations.py
BNeutral/SamplePythonMicroservice
9edee7997cbb113b91127ce948a563ddaac899bb
[ "MIT" ]
null
null
null
src/operations.py
BNeutral/SamplePythonMicroservice
9edee7997cbb113b91127ce948a563ddaac899bb
[ "MIT" ]
null
null
null
src/operations.py
BNeutral/SamplePythonMicroservice
9edee7997cbb113b91127ce948a563ddaac899bb
[ "MIT" ]
null
null
null
''' Supported operations on user balances ''' from enum import Enum, IntEnum class Operation(IntEnum, Enum): ''' The supported operations. ''' deposit = 1 withdraw = 2
16.083333
37
0.632124
21
193
5.809524
0.761905
0.311475
0
0
0
0
0
0
0
0
0
0.014085
0.264249
193
12
38
16.083333
0.84507
0.326425
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
1
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
3
dcc3271bcc47612660a61303c0a392117a89ce98
2,565
py
Python
main_sat.py
KwiatPiotr/eSquaro-solver
122528abf0e3d8992b6de94502f14c1451e2bad6
[ "Apache-2.0" ]
null
null
null
main_sat.py
KwiatPiotr/eSquaro-solver
122528abf0e3d8992b6de94502f14c1451e2bad6
[ "Apache-2.0" ]
null
null
null
main_sat.py
KwiatPiotr/eSquaro-solver
122528abf0e3d8992b6de94502f14c1451e2bad6
[ "Apache-2.0" ]
null
null
null
from z3 import * def print_model(model, var): for i in range(x_len + 1): buff = '' for j in range(y_len + 1): buff += '1' if model[var[i][j]] else '0' print(buff) print('--------------------------------------') grid = [ [2, 3, 1, 0, 0], [1, 3, 2, 1, 2], [2, 3, 2, 2, 3], ...
31.280488
95
0.387135
478
2,565
2.048117
0.08159
0.257406
0.168539
0.183861
0.698672
0.689479
0.658836
0.62002
0.62002
0.609806
0
0.058241
0.330604
2,565
81
96
31.666667
0.511939
0.021832
0
0.15873
0
0
0.016793
0.015194
0
0
0
0
0
1
0.015873
false
0
0.015873
0
0.031746
0.111111
0
0
0
null
1
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
dcc341451b57be4987402f6dc8c5235ca17e2ca4
372
py
Python
tkinter/bind-keys-test/bind-key-to-draw-canvas/main-2.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
140
2017-02-21T22:49:04.000Z
2022-03-22T17:51:58.000Z
tkinter/bind-keys-test/bind-key-to-draw-canvas/main-2.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
5
2017-12-02T19:55:00.000Z
2021-09-22T23:18:39.000Z
tkinter/bind-keys-test/bind-key-to-draw-canvas/main-2.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
79
2017-01-25T10:53:33.000Z
2022-03-11T16:13:57.000Z
import tkinter as tk import random def myfunction(event): x1 = random.randint(0, 400) y1 = random.randint(0, 400) x2 = random.randint(0, 400) y2 = random.randint(0, 400) canvas.create_line(x1, y1, x2, y2) root = tk.Tk() root.title('Picasso') canvas = tk.Canvas(root, width=400, height=400) canvas....
18.6
47
0.666667
58
372
4.258621
0.465517
0.210526
0.226721
0.275304
0
0
0
0
0
0
0
0.098039
0.177419
372
19
48
19.578947
0.70915
0
0
0
0
0
0.021505
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.214286
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
dcc923ec11e93b40ea510331bbc0f45c0f66aacb
405
py
Python
apps/core/models/__init__.py
bispojr/observatorio-ufj-covid19
8667fae1367b95a7dfa8558fbac3b1b0b708af8d
[ "MIT" ]
3
2020-04-02T21:59:19.000Z
2020-12-03T12:37:26.000Z
apps/core/models/__init__.py
bispojr/observatorio-ufj-covid19
8667fae1367b95a7dfa8558fbac3b1b0b708af8d
[ "MIT" ]
68
2020-03-28T22:40:08.000Z
2020-07-08T18:04:07.000Z
apps/core/models/__init__.py
bispojr/observatorio-ufj-covid19
8667fae1367b95a7dfa8558fbac3b1b0b708af8d
[ "MIT" ]
5
2020-03-28T21:35:30.000Z
2020-06-10T01:28:14.000Z
from .graficos import Graficos from .boletimEpidemiologico import BoletimEpidemiologico from .home import Home from .comparacao import Comparacao from .como_sao_criados import ComoSaoCriados from .sobre import Sobre from .na_midia import NaMidia from .colabore import Colabore from .tendencias import Tendencias from .eq...
33.75
56
0.854321
52
405
6.576923
0.403846
0
0
0
0
0
0
0
0
0
0
0
0.116049
405
12
57
33.75
0.955307
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
dcd542fc91a5d834770e9ce10f63b7b1e599501c
182
py
Python
plant/models/family.py
Kradukman/beesUlb
1234658af3aff7d2f580212c01d8acec96167078
[ "MIT" ]
null
null
null
plant/models/family.py
Kradukman/beesUlb
1234658af3aff7d2f580212c01d8acec96167078
[ "MIT" ]
null
null
null
plant/models/family.py
Kradukman/beesUlb
1234658af3aff7d2f580212c01d8acec96167078
[ "MIT" ]
null
null
null
from odoo import api, fields, models, _ class PlantFamily(models.Model): _name = "plant.family" _description = "Plant Family" name = fields.Char('Name', required=True)
22.75
45
0.692308
22
182
5.590909
0.727273
0.178862
0
0
0
0
0
0
0
0
0
0
0.186813
182
8
45
22.75
0.831081
0
0
0
0
0
0.153005
0
0
0
0
0
0
1
0
false
0
0.2
0
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
0
0
0
0
0
1
0
0
3
dce7c06d5f2a17cb4051cff8d83ba5a04c30a9b0
72
py
Python
pyhp/__init__.py
cr/pyHP49
b7c4f8e89037dfc9908c78333457ca08e9696ef1
[ "Unlicense" ]
1
2021-05-17T15:59:11.000Z
2021-05-17T15:59:11.000Z
pyhp/__init__.py
cr/pyHP49
b7c4f8e89037dfc9908c78333457ca08e9696ef1
[ "Unlicense" ]
null
null
null
pyhp/__init__.py
cr/pyHP49
b7c4f8e89037dfc9908c78333457ca08e9696ef1
[ "Unlicense" ]
1
2017-06-22T07:00:18.000Z
2017-06-22T07:00:18.000Z
__all__ = [ "hp49", "com", "hpstr", "cmd", "protocol" ] from . import *
24
55
0.555556
8
72
4.5
1
0
0
0
0
0
0
0
0
0
0
0.033898
0.180556
72
2
56
36
0.576271
0
0
0
0
0
0.319444
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
0
0
1
0
0
0
0
3
dced08b972e3944ed61300e7542a77532d4721b3
4,183
py
Python
parsing_scripts/modules/Master.py
ashish-singh-bist/booking_project
e32e4fb7e2a4a3dbc8b82382eaa9a61f6e5893ad
[ "MIT" ]
null
null
null
parsing_scripts/modules/Master.py
ashish-singh-bist/booking_project
e32e4fb7e2a4a3dbc8b82382eaa9a61f6e5893ad
[ "MIT" ]
null
null
null
parsing_scripts/modules/Master.py
ashish-singh-bist/booking_project
e32e4fb7e2a4a3dbc8b82382eaa9a61f6e5893ad
[ "MIT" ]
null
null
null
from Helper import Helper from HttpRequests import HttpRequests from MongoDatabase import MongoDatabase from RedisCache import RedisCache from Config import Config #from Database import Database import re import json class Master(object): def __init__(self): self.obj_helper = Helper() self.obj_req = HttpRequ...
48.639535
342
0.643557
544
4,183
4.632353
0.235294
0.071429
0.032143
0.042857
0.315873
0.253571
0.205556
0.122619
0.101984
0.083333
0
0.006167
0.185991
4,183
86
343
48.639535
0.733921
0.816639
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.5
0
0.642857
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
0
0
0
1
0
1
0
0
3
dcf33fbbfb6d8b0b32fd4779cda9b0f212632b32
482
py
Python
ubcs_auxiliary/examples/hdf5.py
vstadnytskyi/auxiliary
3916af3a147f72071388278385d484b9eacbc66b
[ "BSD-3-Clause" ]
null
null
null
ubcs_auxiliary/examples/hdf5.py
vstadnytskyi/auxiliary
3916af3a147f72071388278385d484b9eacbc66b
[ "BSD-3-Clause" ]
1
2019-10-16T16:40:27.000Z
2019-10-16T16:40:27.000Z
ubcs_auxiliary/examples/hdf5.py
vstadnytskyi/auxiliary
3916af3a147f72071388278385d484b9eacbc66b
[ "BSD-3-Clause" ]
1
2020-01-18T05:57:41.000Z
2020-01-18T05:57:41.000Z
def write_safely(): """ an example of how to write to hdf5 file safely. """ from h5py import File from tempfile import gettempdir root = gettempdir() import os f = File(os.join.path(root,'test.hdf5'),'r') def check_if_hdf5_is_open(): pass def check_memory_leak(): from memory_p...
20.956522
51
0.643154
67
482
4.447761
0.641791
0.053691
0
0
0
0
0
0
0
0
0
0.033803
0.263485
482
22
52
21.909091
0.805634
0.09751
0
0
0
0
0.073986
0
0
0
0
0
0
1
0.266667
false
0.066667
0.266667
0
0.533333
0.066667
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
dcf9e4e282703b8be5b4bf937632b97305022f5a
43,013
py
Python
VRG/src/generate.py
satyakisikdar/Attributed-VRG
502375d6a62eb84563c2fb6786e2c257edc32e0c
[ "MIT" ]
null
null
null
VRG/src/generate.py
satyakisikdar/Attributed-VRG
502375d6a62eb84563c2fb6786e2c257edc32e0c
[ "MIT" ]
null
null
null
VRG/src/generate.py
satyakisikdar/Attributed-VRG
502375d6a62eb84563c2fb6786e2c257edc32e0c
[ "MIT" ]
null
null
null
import abc import logging import math import random from collections import Counter from typing import List, Dict, Tuple, Set, Union, Any import networkx as nx import numpy as np from VRG.src.LightMultiGraph import LightMultiGraph from VRG.src.NonTerminal import NonTerminal from VRG.src.Rule import VRGRule, NCERule f...
51.084323
156
0.616232
5,598
43,013
4.488925
0.071454
0.028692
0.045366
0.024712
0.73835
0.710096
0.701063
0.696287
0.689602
0.674281
0
0.004287
0.300374
43,013
841
157
51.145065
0.830758
0.226443
0
0.665421
0
0.005607
0.074839
0.010771
0
0
0
0.002378
0.042991
1
0.050467
false
0.003738
0.024299
0
0.140187
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0d1b358f6916af67d97a77d9f385991107cd66ae
11,319
py
Python
mini_cad/arq_dxf.py
zecruel/sand_box
cf3f0350dbd634f32b2c3dfcf95e39cbe19e3f3e
[ "MIT" ]
null
null
null
mini_cad/arq_dxf.py
zecruel/sand_box
cf3f0350dbd634f32b2c3dfcf95e39cbe19e3f3e
[ "MIT" ]
null
null
null
mini_cad/arq_dxf.py
zecruel/sand_box
cf3f0350dbd634f32b2c3dfcf95e39cbe19e3f3e
[ "MIT" ]
null
null
null
class ponto: def __init__(self, x = 0.0, y = 0.0, z = 0.0): self.x = x self.y = y self.z = z def ini_dxf(blocos=''): buffer = '' buffer += '999\n' buffer += 'Criado por ZeCruel\n' #------------ Cabecalho ------------------- buffer += '999\n' buffer += '----------------- Cabecalho -------------...
24.185897
93
0.484583
1,653
11,319
3.292801
0.092559
0.375528
0.121257
0.09774
0.76557
0.682161
0.628146
0.595811
0.575969
0.549697
0
0.065339
0.25497
11,319
468
94
24.185897
0.580102
0.064847
0
0.752451
0
0
0.171794
0.010912
0
0
0
0
0
0
null
null
0
0
null
null
0.002451
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
0d3366d78ebb9011785817b9f04918c08c773bc9
767
py
Python
intrepyd/iec611312py/functionblock.py
bobosoft/intrepyd
13f0912b31f86f9bcc50f52ef4ad870e33f0cf65
[ "BSD-3-Clause" ]
2
2021-04-25T17:38:03.000Z
2022-03-20T20:48:50.000Z
intrepyd/iec611312py/functionblock.py
bobosoft/intrepyd
13f0912b31f86f9bcc50f52ef4ad870e33f0cf65
[ "BSD-3-Clause" ]
1
2016-11-30T22:25:00.000Z
2017-01-16T22:43:39.000Z
intrepyd/iec611312py/functionblock.py
bobosoft/intrepyd
13f0912b31f86f9bcc50f52ef4ad870e33f0cf65
[ "BSD-3-Clause" ]
null
null
null
""" This module implements the main store of a FunctionBlock """ from intrepyd.iec611312py.datatype import Datatype class FunctionBlock(Datatype): """ Holds function block parsed data """ def __init__(self, name, input_vars, output_vars, local_vars, statements): Datatype.__init__(self, name) ...
23.242424
78
0.676662
90
767
5.422222
0.344444
0.098361
0.114754
0.110656
0
0
0
0
0
0
0
0.010417
0.249022
767
32
79
23.96875
0.836806
0.116037
0
0.2
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.05
0.2
0.55
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
b49832ddc431aafc47146dd558f17970390738e1
28
py
Python
python/testData/refactoring/introduceVariable/substringInExpressionStatement.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/refactoring/introduceVariable/substringInExpressionStatement.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/refactoring/introduceVariable/substringInExpressionStatement.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
a = "two" "one %s three" % a
14
18
0.5
6
28
2.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.25
28
2
18
14
0.666667
0
0
0
0
0
0.517241
0
0
0
0
0
0
1
0
false
0
0
0
0
0
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
0
0
0
0
0
0
0
3
b4a3665785e7df971247fc3ee25ca560eb3b683d
1,360
py
Python
src/fate_of_dice/common/dice/dice.py
bonczeq/FateOfDice
ce1704ac490f55bc600c0963958d4175104e85e5
[ "MIT" ]
null
null
null
src/fate_of_dice/common/dice/dice.py
bonczeq/FateOfDice
ce1704ac490f55bc600c0963958d4175104e85e5
[ "MIT" ]
null
null
null
src/fate_of_dice/common/dice/dice.py
bonczeq/FateOfDice
ce1704ac490f55bc600c0963958d4175104e85e5
[ "MIT" ]
null
null
null
from random import randrange import operator class Dice: @classmethod def roll(cls, min_value: int, max_value: int, step: int = 1): dice_value = cls.__rand_value__(min_value, max_value, step) return cls(dice_value) def __init__(self, value: int): self.value: int = value def _...
24.727273
67
0.638235
181
1,360
4.331492
0.19337
0.137755
0.153061
0.17602
0.214286
0.214286
0.214286
0.214286
0.140306
0.140306
0
0.00198
0.257353
1,360
54
68
25.185185
0.774257
0
0
0.052632
0
0
0
0
0
0
0
0
0
1
0.394737
false
0
0.052632
0.289474
0.842105
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
1
0
0
0
1
0
0
0
3
b4de149bf85f39c1ad0a99f859d77310ec9b7d32
447
py
Python
ois_api_client/v2_0/dto/QueryTransactionListRequest.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
7
2020-10-22T08:15:29.000Z
2022-01-27T07:59:39.000Z
ois_api_client/v2_0/dto/QueryTransactionListRequest.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
ois_api_client/v2_0/dto/QueryTransactionListRequest.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
from dataclasses import dataclass from .DateTimeIntervalParam import DateTimeIntervalParam from .BasicRequest import BasicRequest @dataclass class QueryTransactionListRequest(BasicRequest): """Request type of the POST /queryTransactionList REST operation :param page: The queried page count :param ins_dat...
27.9375
85
0.787472
50
447
7
0.64
0.057143
0
0
0
0
0
0
0
0
0
0
0.167785
447
15
86
29.8
0.94086
0.402685
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.428571
0
0.857143
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
1
0
1
0
0
3
b4e4f11b589e8120cf235738dcc7263294a22b20
385
py
Python
{{cookiecutter.directory_name}}/utils/models.py
walison17/cookiecutter-django
b3e3af9e012fa6be1424c01bfd6e695b06bae12f
[ "BSD-3-Clause" ]
12
2018-08-28T12:00:02.000Z
2020-03-13T23:19:00.000Z
{{cookiecutter.directory_name}}/utils/models.py
walison17/cookiecutter-django
b3e3af9e012fa6be1424c01bfd6e695b06bae12f
[ "BSD-3-Clause" ]
1
2019-10-16T22:08:09.000Z
2019-10-16T22:08:09.000Z
{{cookiecutter.directory_name}}/utils/models.py
walison17/cookiecutter-django
b3e3af9e012fa6be1424c01bfd6e695b06bae12f
[ "BSD-3-Clause" ]
4
2018-08-28T14:01:29.000Z
2020-01-07T11:51:48.000Z
#!coding:utf-8 from __future__ import unicode_literals from django.db import models from django.utils import timezone class Base(models.Model): """Model Base para todos os outros models do projeto.""" class Meta: abstract = True created = models.DateTimeField('Criado em', default=timezone.now) ...
24.0625
69
0.72987
51
385
5.392157
0.666667
0.072727
0
0
0
0
0
0
0
0
0
0.003155
0.176623
385
15
70
25.666667
0.864353
0.166234
0
0
0
0
0.063492
0
0
0
0
0.066667
0
1
0
false
0
0.375
0
0.875
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
1
0
1
0
0
3
b4f9a45a2973af691f64e6997e60433fb266e535
6,411
py
Python
tests/api/test_app_index.py
rob-opsi/freight
9b8e58ce80f6a2ad21769806bdb7f32e68713ce2
[ "Apache-2.0" ]
null
null
null
tests/api/test_app_index.py
rob-opsi/freight
9b8e58ce80f6a2ad21769806bdb7f32e68713ce2
[ "Apache-2.0" ]
null
null
null
tests/api/test_app_index.py
rob-opsi/freight
9b8e58ce80f6a2ad21769806bdb7f32e68713ce2
[ "Apache-2.0" ]
1
2020-07-03T00:52:08.000Z
2020-07-03T00:52:08.000Z
from __future__ import absolute_import import json from freight.models import App from freight.testutils import TestCase class AppIndexBase(TestCase): path = '/api/0/apps/' def setUp(self): self.user = self.create_user() self.repo = self.create_repo() super(AppIndexBase, self).setUp...
37.057803
112
0.555608
694
6,411
5.008646
0.12536
0.027618
0.048331
0.069045
0.789413
0.743383
0.710299
0.691887
0.656789
0.628596
0
0.010762
0.275308
6,411
172
113
37.273256
0.737409
0
0
0.622517
0
0.006623
0.277648
0.044143
0
0
0
0
0.238411
1
0.07947
false
0
0.02649
0
0.13245
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
3703c95b148b94dcc381efb756f202f49f7c7d6c
1,733
py
Python
customvc.py
chrisphamdev/chrispbirb
d7a28836bf9b49766dc08ad4851256fe8c026bce
[ "Unlicense" ]
null
null
null
customvc.py
chrisphamdev/chrispbirb
d7a28836bf9b49766dc08ad4851256fe8c026bce
[ "Unlicense" ]
null
null
null
customvc.py
chrisphamdev/chrispbirb
d7a28836bf9b49766dc08ad4851256fe8c026bce
[ "Unlicense" ]
1
2021-06-25T01:25:07.000Z
2021-06-25T01:25:07.000Z
import discord from discord.ext.commands import Bot from discord.ext import commands import asyncio import time from discord import client class allVoiceChannel: #keeps track of all CustomVoiceChannel instances def __init__(self): self.all_voice_channels = [] #add CustomVoiceChannel instance to ...
25.865672
62
0.654357
222
1,733
4.797297
0.297297
0.046009
0.078873
0.131455
0.24507
0.161502
0.161502
0.161502
0.161502
0.161502
0
0.00318
0.274091
1,733
67
63
25.865672
0.843402
0.116561
0
0.093023
0
0
0
0
0
0
0
0
0
1
0.302326
false
0
0.139535
0.116279
0.651163
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
370872acc171f6a389e6109ca5998c47c77416b1
308
py
Python
algorithm/sort/selection_sort/test_selection_sort.py
burdier/structifysPython
d9615714fcb2d1e3bf0ae5c5cae5652ecfb95637
[ "MIT" ]
2
2020-02-10T00:49:09.000Z
2020-02-10T01:23:38.000Z
algorithm/sort/selection_sort/test_selection_sort.py
burdier/structifysPython
d9615714fcb2d1e3bf0ae5c5cae5652ecfb95637
[ "MIT" ]
4
2020-02-10T01:22:10.000Z
2020-06-30T04:44:55.000Z
algorithm/sort/selection_sort/test_selection_sort.py
burdier/structifysPython
d9615714fcb2d1e3bf0ae5c5cae5652ecfb95637
[ "MIT" ]
2
2020-02-09T17:19:23.000Z
2020-02-13T04:16:48.000Z
import pytest from selection_sort import selection_sort @pytest.mark.parametrize("test_input,expected", [([3,2,4], [2,3,4]), ([333,44,5,6], [5,6,44,333]), ([32,4,2,1], [1,2,4,32])]) def test_selection_sort_success(test_input,expected): result = selection_sort(test_input) assert result == expected
38.5
125
0.704545
52
308
4
0.442308
0.25
0.163462
0
0
0
0
0
0
0
0
0.108696
0.103896
308
7
126
44
0.644928
0
0
0
0
0
0.061688
0
0
0
0
0
0.166667
1
0.166667
false
0
0.333333
0
0.5
0
0
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
0
0
1
0
0
0
0
3
3711f2f2f90ea1c94a099e6dc29335cfa3c0115f
4,099
py
Python
tests/ber_test.py
spochic/gep3
656a8f466fded3b2cde7b77020e768818b484ad9
[ "MIT" ]
null
null
null
tests/ber_test.py
spochic/gep3
656a8f466fded3b2cde7b77020e768818b484ad9
[ "MIT" ]
null
null
null
tests/ber_test.py
spochic/gep3
656a8f466fded3b2cde7b77020e768818b484ad9
[ "MIT" ]
null
null
null
"""ber_test.py """ # Standard library imports import unittest as _unittest # Third party imports # Local application imports from common.ber import _decode_tag, _decode_length, _decode_value, parse, parse_dol, find, encode_length class _TestMethods(_unittest.TestCase): def test__decode_tag(self): self.as...
54.653333
146
0.550134
338
4,099
6.467456
0.218935
0.192132
0.144099
0.036597
0.406679
0.279048
0.250686
0.250686
0.138609
0.138609
0
0.27862
0.243474
4,099
74
147
55.391892
0.426314
0.020249
0
0.103448
0
0
0.26853
0.119291
0
0
0
0
0.482759
1
0.12069
false
0
0.034483
0
0.172414
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
3
372048e5f0e6aaa138700afae0bce86d25cc893e
8,233
py
Python
marvel/api/parameter.py
Matthew-Jemielity/marvelpy
f05ba884643e5398b2b3a417405cd8e14936afce
[ "MIT" ]
null
null
null
marvel/api/parameter.py
Matthew-Jemielity/marvelpy
f05ba884643e5398b2b3a417405cd8e14936afce
[ "MIT" ]
null
null
null
marvel/api/parameter.py
Matthew-Jemielity/marvelpy
f05ba884643e5398b2b3a417405cd8e14936afce
[ "MIT" ]
null
null
null
class Parameter: def __init__(self, parameters=[]): self.__parameters = [] for parameter in parameters: self.add(parameter) def add(self, parameter): # parameter must be {"key": "value"} try: if list(parameter.keys())[0] is not str( list(...
26.472669
78
0.571481
824
8,233
5.440534
0.173544
0.049967
0.062458
0.030337
0.340843
0.273701
0.097926
0.081419
0.081419
0.026099
0
0.001208
0.296004
8,233
310
79
26.558065
0.772257
0.012146
0
0.100457
0
0
0.146371
0
0
0
0
0
0
1
0.39726
false
0.004566
0.004566
0.383562
0.799087
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
2e94927a927c58eb74fff160c5417a1bcd0dde7f
1,241
py
Python
music/models.py
Ashutoshkrs/music_app
45a6a52be0232c8de99136dedd9a9c0e7fdfef3c
[ "MIT" ]
1
2018-11-01T03:36:17.000Z
2018-11-01T03:36:17.000Z
music/models.py
Ashutoshkrs/music_app
45a6a52be0232c8de99136dedd9a9c0e7fdfef3c
[ "MIT" ]
null
null
null
music/models.py
Ashutoshkrs/music_app
45a6a52be0232c8de99136dedd9a9c0e7fdfef3c
[ "MIT" ]
20
2018-10-26T14:46:35.000Z
2020-10-18T05:27:18.000Z
from django.db import models from django.contrib.auth.models import User class Album(models.Model): artist = models.CharField(max_length=250) title = models.CharField(max_length=200) genre = models.CharField(max_length=100) albums_logo = models.ImageField(upload_to="music/static/music/images/",blank...
31.025
98
0.722804
165
1,241
5.224242
0.315152
0.12181
0.146172
0.194896
0.540603
0.438515
0.382831
0.382831
0.382831
0.382831
0
0.017341
0.163578
1,241
39
99
31.820513
0.813102
0
0
0.214286
0
0
0.044391
0.041969
0
0
0
0
0
1
0.142857
false
0
0.071429
0.142857
1
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
1
1
0
0
3
2c0d82bf28ae30c5a07c8b649d0313d85d2d16a9
109
py
Python
1609.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
3
2021-09-21T18:50:20.000Z
2021-12-14T13:07:31.000Z
1609.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
1609.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
for i in range(int(input())): n=int(input()) l=list(map(int,input().split())) print(len(set(l)))
21.8
36
0.559633
19
109
3.210526
0.736842
0.393443
0
0
0
0
0
0
0
0
0
0
0.174312
109
4
37
27.25
0.677778
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
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
0
0
0
0
0
0
0
3
2c13c1b0b4e7d86fc08c7cc56cf6c266e4a45a88
151
py
Python
scripts/rule_system/POTATO/potato/graph_extractor/rule.py
GKingA/offensive_text
271e2ea7858a85b35a309ecddbe161392a5a381e
[ "MIT" ]
2
2021-08-30T09:59:45.000Z
2021-09-15T00:38:54.000Z
scripts/rule_system/POTATO/potato/graph_extractor/rule.py
GKingA/offensive_text
271e2ea7858a85b35a309ecddbe161392a5a381e
[ "MIT" ]
5
2021-09-07T14:18:10.000Z
2021-09-20T11:15:02.000Z
scripts/rule_system/POTATO/potato/graph_extractor/rule.py
GKingA/offensive_text
271e2ea7858a85b35a309ecddbe161392a5a381e
[ "MIT" ]
null
null
null
class Rule: def __init__(self, rule): self.positive_samples = rule[0] self.negative_samples = rule[1] self.label = rule[2]
25.166667
39
0.609272
20
151
4.3
0.6
0.255814
0
0
0
0
0
0
0
0
0
0.027523
0.278146
151
5
40
30.2
0.761468
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0
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
0
0
0
0
0
0
0
3
2c1775fd9bd31dd83f0e1c521f53c77737c382bc
4,367
py
Python
apps/comment/migrations/0001_initial.py
sunyune/myblog
495dbad4c46e93abfdcb2eaf1da0f0361ac66bc7
[ "Apache-2.0" ]
null
null
null
apps/comment/migrations/0001_initial.py
sunyune/myblog
495dbad4c46e93abfdcb2eaf1da0f0361ac66bc7
[ "Apache-2.0" ]
10
2020-06-06T01:43:38.000Z
2022-03-12T00:23:20.000Z
apps/comment/migrations/0001_initial.py
sunyune/myblog
495dbad4c46e93abfdcb2eaf1da0f0361ac66bc7
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2 on 2020-04-09 22:27 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('article', '0001_initial'), ] operations = [ migrations.CreateModel( name='Com...
58.226667
209
0.624227
453
4,367
5.807947
0.187638
0.121247
0.058533
0.09198
0.775371
0.775371
0.63816
0.622577
0.622577
0.622577
0
0.007438
0.230364
4,367
74
210
59.013514
0.775364
0.009847
0
0.477612
1
0
0.208237
0.068487
0
0
0
0
0
1
0
false
0
0.029851
0
0.089552
0
0
0
0
null
0
0
0
0
1
0
0
0
1
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
3
2c19ea09be241f9c5a763e6924a4afe8a08a5c43
478
py
Python
model/training.py
pulkitkatdare/baby-ai-game
e00e35d40a0d873f63098527751c3db87ccfae41
[ "BSD-3-Clause" ]
null
null
null
model/training.py
pulkitkatdare/baby-ai-game
e00e35d40a0d873f63098527751c3db87ccfae41
[ "BSD-3-Clause" ]
null
null
null
model/training.py
pulkitkatdare/baby-ai-game
e00e35d40a0d873f63098527751c3db87ccfae41
[ "BSD-3-Clause" ]
null
null
null
from collections import namedtuple, deque from torch.autograd import Variable import torch def selectAction(obs): """ Select the next action to be performed in an episode @state tuple containing (image, mission, advice) """ # TODO print('selectAction: implement me!') image = obs['image'] ...
21.727273
56
0.661088
59
478
5.355932
0.661017
0.075949
0
0
0
0
0
0
0
0
0
0.005405
0.225941
478
21
57
22.761905
0.848649
0.223849
0
0
0
0
0.168091
0
0
0
0
0.047619
0
1
0.090909
false
0
0.363636
0
0.545455
0.272727
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
1
0
1
0
0
3
2c21f9a6b44a22cf2624f1720217636adb002950
130
py
Python
ch6/6_7.py
hajin-kim/2020-HighSchool-Python-Tutoring
352025a954bff37d21cc3d59e7d5e0f0269a1f17
[ "MIT" ]
null
null
null
ch6/6_7.py
hajin-kim/2020-HighSchool-Python-Tutoring
352025a954bff37d21cc3d59e7d5e0f0269a1f17
[ "MIT" ]
null
null
null
ch6/6_7.py
hajin-kim/2020-HighSchool-Python-Tutoring
352025a954bff37d21cc3d59e7d5e0f0269a1f17
[ "MIT" ]
null
null
null
num1 = int( input("첫 번째 숫자 입력: ") ) num2 = int( input("두 번째 숫자 입력: ") ) if num1 + num2 > 11: print(num1 + num2) print("종료")
16.25
35
0.538462
23
130
3.043478
0.565217
0.228571
0.171429
0
0
0
0
0
0
0
0
0.083333
0.261538
130
7
36
18.571429
0.645833
0
0
0
0
0
0.20155
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
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
0
0
0
0
0
0
0
3
25860d91dcfeb1f26ba7110fa69c9af0f29e4cc4
160
py
Python
main.py
feliamunda/Flask_API
3f6e37f84a3de4989e4d4daea75c068393b2ff67
[ "Apache-2.0" ]
null
null
null
main.py
feliamunda/Flask_API
3f6e37f84a3de4989e4d4daea75c068393b2ff67
[ "Apache-2.0" ]
null
null
null
main.py
feliamunda/Flask_API
3f6e37f84a3de4989e4d4daea75c068393b2ff67
[ "Apache-2.0" ]
null
null
null
from app import create_app from config import config enviroment = config['development'] app = create_app(enviroment) if __name__ == "__main__": app.run()
17.777778
34
0.74375
21
160
5.190476
0.52381
0.165138
0
0
0
0
0
0
0
0
0
0
0.15625
160
9
35
17.777778
0.807407
0
0
0
0
0
0.118012
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
0
1
0
0
0
0
3
258ccd51f3666f63296cc4ea268b55e79f266feb
619
py
Python
03_boucles/02_mystere_carre.py
elemprog-python/elemprog-exercices-corriges
0b530312a9a92c17b61ef154e96d7d8d89eb54b7
[ "MIT" ]
null
null
null
03_boucles/02_mystere_carre.py
elemprog-python/elemprog-exercices-corriges
0b530312a9a92c17b61ef154e96d7d8d89eb54b7
[ "MIT" ]
null
null
null
03_boucles/02_mystere_carre.py
elemprog-python/elemprog-exercices-corriges
0b530312a9a92c17b61ef154e96d7d8d89eb54b7
[ "MIT" ]
null
null
null
# Exercice 3.2 : Fonction mystère def somme_carres(m : int, n : int) -> int: """Précondition: m <= n Retourne la somme des carrés des entiers dans l'invervalle [m;n]. """ # la somme des carrés s : int = 0 # entier courant dans l'intervalle i : int = m while i <= n: ...
20.633333
70
0.573506
100
619
3.47
0.43
0.253602
0.342939
0.092219
0
0
0
0
0
0
0
0.074074
0.3021
619
29
71
21.344828
0.729167
0.300485
0
0
0
0
0
0
0
0
0
0
0.5
1
0.071429
false
0
0
0
0.142857
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
3
25a0b1c9a5600404734f5635a846c43ccf3f5dfa
58,667
py
Python
mapry/py/generate/fromjsonable.py
Parquery/mapry
93515307f9eba8447fe64b0ac7cc68b2d07205a7
[ "MIT" ]
11
2019-06-26T05:56:41.000Z
2021-03-28T16:44:16.000Z
mapry/py/generate/fromjsonable.py
Parquery/mapry
93515307f9eba8447fe64b0ac7cc68b2d07205a7
[ "MIT" ]
4
2019-10-18T14:43:59.000Z
2020-04-02T19:12:07.000Z
mapry/py/generate/fromjsonable.py
Parquery/mapry
93515307f9eba8447fe64b0ac7cc68b2d07205a7
[ "MIT" ]
3
2019-06-17T07:39:03.000Z
2020-04-01T14:01:23.000Z
"""Generate the code that parses the object graph from a JSONable structure.""" import textwrap from typing import ( # pylint: disable=unused-import Dict, List, Mapping, MutableMapping, Set, Union) from icontract import ensure import mapry import mapry.py.generate import mapry.py.jinja2_env import mapry.py.namin...
32.756561
79
0.598684
7,377
58,667
4.56039
0.047987
0.023483
0.028892
0.02158
0.754622
0.714345
0.682599
0.659562
0.643541
0.611616
0
0.006051
0.270442
58,667
1,790
80
32.77486
0.779958
0.156306
0
0.516634
1
0
0.028864
0
0
0
0
0
0
1
0.041096
false
0.003914
0.04501
0
0.129159
0
0
0
0
null
0
0
0
0
1
0
0
0
1
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
3
25a9731b971f905893817f081a712f382a50c9f7
650
py
Python
app/views.py
RoboCupULaval/WatchBots
f8c90f2630afea6ebdce5af5b210aecedd1bd292
[ "MIT" ]
null
null
null
app/views.py
RoboCupULaval/WatchBots
f8c90f2630afea6ebdce5af5b210aecedd1bd292
[ "MIT" ]
null
null
null
app/views.py
RoboCupULaval/WatchBots
f8c90f2630afea6ebdce5af5b210aecedd1bd292
[ "MIT" ]
null
null
null
from flask import render_template, send_from_directory, jsonify from tinydb import Query from app import app, sio, db @app.route('/') @app.route('/index') def index(): return render_template('index.html') @app.route('/img/<path:path>') def send_img(path): return send_from_directory('static/img', path) @app....
23.214286
63
0.701538
96
650
4.583333
0.34375
0.090909
0.115909
0.068182
0.15
0.15
0
0
0
0
0
0
0.132308
650
27
64
24.074074
0.780142
0
0
0
0
0
0.183077
0
0
0
0
0
0
1
0.238095
false
0
0.142857
0.142857
0.571429
0.047619
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
25c822806ffa64586bc51eddebbe89c999774f8e
89
py
Python
backend/app/pokedex/apps.py
BAXTOR95/pokedex
527154ad025bb116bfaa7b086682d5247f0d0d46
[ "MIT" ]
13
2020-09-25T03:26:57.000Z
2022-03-28T11:01:20.000Z
backend/app/pokedex/apps.py
BAXTOR95/pokedex
527154ad025bb116bfaa7b086682d5247f0d0d46
[ "MIT" ]
40
2020-10-04T22:56:59.000Z
2021-09-17T09:33:04.000Z
backend/app/pokedex/apps.py
BAXTOR95/pokedex
527154ad025bb116bfaa7b086682d5247f0d0d46
[ "MIT" ]
5
2021-01-11T12:22:58.000Z
2021-07-23T18:07:01.000Z
from django.apps import AppConfig class PokedexConfig(AppConfig): name = 'pokedex'
14.833333
33
0.752809
10
89
6.7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.168539
89
5
34
17.8
0.905405
0
0
0
0
0
0.078652
0
0
0
0
0
0
1
0
false
0
0.333333
0
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
0
0
0
1
0
0
0
0
3
25daa38234d61c612bac1fc92ddd322de255e82e
65
py
Python
plugin/src/test/resources/refactoring/pushdown/existingmethod.after.py
consulo/consulo-python
586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d
[ "Apache-2.0" ]
null
null
null
plugin/src/test/resources/refactoring/pushdown/existingmethod.after.py
consulo/consulo-python
586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d
[ "Apache-2.0" ]
11
2017-02-27T22:35:32.000Z
2021-12-24T08:07:40.000Z
plugin/src/test/resources/refactoring/pushdown/existingmethod.after.py
consulo/consulo-python
586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d
[ "Apache-2.0" ]
null
null
null
class Foo: class Boo(): def foo(self): print "rrrrr"
13
21
0.553846
9
65
4
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.307692
65
5
21
13
0.8
0
0
0
0
0
0.075758
0
0
0
0
0
0
0
null
null
0
0
null
null
0.25
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
1
0
0
0
0
0
0
0
0
3
25e4d8d86b2144c4f0bb832bd7738770e2e5dbc4
662
py
Python
IFSensor/api/v1/timer.py
andrevdl/IFSensor
f77059f7e0c49e3ba39a524a6918206d203153b9
[ "MIT" ]
null
null
null
IFSensor/api/v1/timer.py
andrevdl/IFSensor
f77059f7e0c49e3ba39a524a6918206d203153b9
[ "MIT" ]
null
null
null
IFSensor/api/v1/timer.py
andrevdl/IFSensor
f77059f7e0c49e3ba39a524a6918206d203153b9
[ "MIT" ]
null
null
null
from flask.views import MethodView # test import time from datetime import datetime class TimerAPI(MethodView): def get(self, id): return {"id": id, "name": "clean-up", "device_group": {"id": id, "group": {"id": 24, "name": "Binnen"}}, "sensor_group": {"id": 23, "name": "Kas", "store_interval": 60, "group...
73.555556
525
0.602719
93
662
4.225806
0.602151
0.071247
0.040712
0.066158
0.096692
0
0
0
0
0
0
0.034843
0.132931
662
9
525
73.555556
0.649826
0.006042
0
0
0
0
0.351598
0
0
0
0
0
0
1
0.166667
false
0
0.5
0.166667
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
0
0
0
3
d308c87833c2b8cb456edd9f4b7dd33132dbd391
399
py
Python
ltoussaint/fib.py
ltoosaint24/lambdata
cbb1d89962ca5cc17eec211ccc6110083a1b888c
[ "MIT" ]
null
null
null
ltoussaint/fib.py
ltoosaint24/lambdata
cbb1d89962ca5cc17eec211ccc6110083a1b888c
[ "MIT" ]
null
null
null
ltoussaint/fib.py
ltoosaint24/lambdata
cbb1d89962ca5cc17eec211ccc6110083a1b888c
[ "MIT" ]
null
null
null
import pandas as pd import numpy as numy import random import scrapeasy class fibb: def __init__(fib,n): fib.a,fib.b = 0,1 while fib.a< n: print(fib.a, end= ' ') fib.a, fib.b = fib.b, fib.a +fib.b print() def fib2(fib,n): result = [] fib.a,fib.b = 0,1 while fib.a<n...
18.136364
43
0.566416
74
399
3
0.337838
0.18018
0.220721
0.216216
0.36036
0.36036
0.36036
0.36036
0.36036
0.36036
0
0.017544
0.285714
399
21
44
19
0.761404
0
0
0.333333
0
0
0.002646
0
0
0
0
0
0
0
null
null
0
0.222222
null
null
0.111111
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
1
0
0
0
0
0
0
0
0
3
d309a0f9fa7955cb046f1e3b4caa592fb6732a68
100
py
Python
_build/jupyter_execute/chapters/hmm/hmm_parallel.py
ssm-jax/ssm-book
f3bfa29a1c474b7dc85792a563df0f29736a44c6
[ "MIT" ]
10
2022-03-22T21:28:03.000Z
2022-03-29T17:42:06.000Z
_build/jupyter_execute/chapters/hmm/hmm_parallel.py
ssm-jax/ssm-book
f3bfa29a1c474b7dc85792a563df0f29736a44c6
[ "MIT" ]
null
null
null
_build/jupyter_execute/chapters/hmm/hmm_parallel.py
ssm-jax/ssm-book
f3bfa29a1c474b7dc85792a563df0f29736a44c6
[ "MIT" ]
1
2022-03-23T02:15:23.000Z
2022-03-23T02:15:23.000Z
#!/usr/bin/env python # coding: utf-8 # # Parallel HMM smoothing # # {cite}`Hassan2021` # # #
10
27
0.59
12
100
4.916667
1
0
0
0
0
0
0
0
0
0
0
0.064103
0.22
100
9
28
11.111111
0.692308
0.79
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
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
0
0
0
0
0
0
3
d31fa26fb7b9e13c865e365439f7d674f5d4c97c
117
py
Python
tests/inline_test_resources/3/importB.py
thesynman/pybricksdev
6f34cfb7a5f26628fe3cedae1ce51ee6024f57b9
[ "MIT" ]
null
null
null
tests/inline_test_resources/3/importB.py
thesynman/pybricksdev
6f34cfb7a5f26628fe3cedae1ce51ee6024f57b9
[ "MIT" ]
null
null
null
tests/inline_test_resources/3/importB.py
thesynman/pybricksdev
6f34cfb7a5f26628fe3cedae1ce51ee6024f57b9
[ "MIT" ]
null
null
null
def func1(param): print('hi') print('ho') class Class1: def __init__(self): self.myvar = 'foo'
13
26
0.555556
15
117
4.066667
0.8
0
0
0
0
0
0
0
0
0
0
0.02381
0.282051
117
8
27
14.625
0.702381
0
0
0
0
0
0.059829
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.5
0.333333
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
0
0
0
0
0
3
d32ba5f2f37065d9a79cc2ed5019fd033bcec185
119
py
Python
training_routine/routine_registry.py
steff456/MLBase
65324bdc4174ebd665b8b86cfbb79e92c00ca90e
[ "MIT" ]
null
null
null
training_routine/routine_registry.py
steff456/MLBase
65324bdc4174ebd665b8b86cfbb79e92c00ca90e
[ "MIT" ]
null
null
null
training_routine/routine_registry.py
steff456/MLBase
65324bdc4174ebd665b8b86cfbb79e92c00ca90e
[ "MIT" ]
null
null
null
"""Define the registry for the training routines.""" from utils.registry import Registry EXAMPLE_ROUTINE = Registry()
23.8
52
0.781513
15
119
6.133333
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.12605
119
4
53
29.75
0.884615
0.386555
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
0
0
1
0
0
0
0
3
d32bc8b4fceac050091e48f420f1c7934e7690e9
756
py
Python
profile_generator/model/sigmoid_test.py
nethy/profile-generator
9bc54bed36b84b45902d75a273739480b4ff2204
[ "MIT" ]
null
null
null
profile_generator/model/sigmoid_test.py
nethy/profile-generator
9bc54bed36b84b45902d75a273739480b4ff2204
[ "MIT" ]
null
null
null
profile_generator/model/sigmoid_test.py
nethy/profile-generator
9bc54bed36b84b45902d75a273739480b4ff2204
[ "MIT" ]
null
null
null
from unittest import TestCase from .sigmoid import _gradient_of_inverse_contrast_exp, exp class SigmoidTest(TestCase): def test_gradient_of_inverse_contrast_exp(self) -> None: self.assertAlmostEqual(_gradient_of_inverse_contrast_exp(0), 1) self.assertAlmostEqual(_gradient_of_inverse_contrast_exp(...
37.8
82
0.73545
99
756
5.262626
0.30303
0.322457
0.163148
0.239923
0.506718
0.399232
0.287908
0.287908
0
0
0
0.088468
0.162698
756
19
83
39.789474
0.734597
0
0
0
0
0
0
0
0
0
0
0
0.571429
1
0.142857
false
0
0.142857
0
0.357143
0
0
0
0
null
1
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
1
0
0
0
0
0
0
0
0
0
3
d33ef002ac8158e15df77a937a6134c892957c22
110
py
Python
SDEedit_common.py
MartinHvidberg/Esri_stuff
1048313cfead4b255ff113e7dbd1024b3e41b1b0
[ "Apache-2.0" ]
null
null
null
SDEedit_common.py
MartinHvidberg/Esri_stuff
1048313cfead4b255ff113e7dbd1024b3e41b1b0
[ "Apache-2.0" ]
null
null
null
SDEedit_common.py
MartinHvidberg/Esri_stuff
1048313cfead4b255ff113e7dbd1024b3e41b1b0
[ "Apache-2.0" ]
null
null
null
class SDEfc: """A SDE feature class""" def __init__(self, server, ): self.data = []
15.714286
33
0.5
12
110
4.25
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.354545
110
6
34
18.333333
0.71831
0.172727
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
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
1
0
0
0
0
0
0
0
3
d34d9c1fc1cd46c96e64780459223e7e9d18b837
236
py
Python
src/azanium/__main__.py
WormBase/db-migration
72fd2bf5ddcff75d82ca39be36ab509e32f42560
[ "MIT" ]
null
null
null
src/azanium/__main__.py
WormBase/db-migration
72fd2bf5ddcff75d82ca39be36ab509e32f42560
[ "MIT" ]
30
2016-06-24T15:46:05.000Z
2022-03-09T11:37:33.000Z
src/azanium/__main__.py
WormBase/db-migration
72fd2bf5ddcff75d82ca39be36ab509e32f42560
[ "MIT" ]
null
null
null
import click from . import install from . import notifications from . import root_command from . import runcommand cli = click.CommandCollection(sources=[ install, notifications, runcommand ]) cli = root_command(obj={})
14.75
39
0.733051
26
236
6.576923
0.461538
0.233918
0
0
0
0
0
0
0
0
0
0
0.186441
236
15
40
15.733333
0.890625
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.454545
0
0.454545
0
1
0
0
null
1
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
3
d364e489a57570cd1ec3929387c3745524f52383
1,184
py
Python
src/final.py
DanielMartinAlarcon/Arsenic-and-Fluoride-Mexico
c4f466567abf1cccb36427f5051959e7d2260ff3
[ "MIT" ]
3
2019-07-16T21:06:00.000Z
2021-11-08T11:29:16.000Z
src/final.py
DanielMartinAlarcon/Arsenic-and-Fluoride-Mexico
c4f466567abf1cccb36427f5051959e7d2260ff3
[ "MIT" ]
2
2021-02-11T16:17:02.000Z
2021-06-01T23:58:39.000Z
src/final.py
DanielMartinAlarcon/Arsenic-and-Fluoride-Mexico
c4f466567abf1cccb36427f5051959e7d2260ff3
[ "MIT" ]
null
null
null
import luigi from sys import path path.insert(0, '/app/src/data_tasks') path.insert(0, '/app/src/visualization') from extract_maps import ProcessExternalFiles from extract_samples import CleanAndExportSamples from bubbles import AllSitesMap from bubbles import AllContaminantsMap from bubbles import EachContaminantMap...
28.878049
59
0.764358
118
1,184
7.59322
0.415254
0.049107
0.075893
0.03125
0.037946
0
0
0
0
0
0
0.004158
0.1875
1,184
40
60
29.6
0.927235
0
0
0.058824
0
0
0.034658
0.018597
0
0
0
0
0
1
0.088235
false
0.058824
0.411765
0
0.529412
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
1
0
1
0
0
3
d366c3e9689ddcef821e6f2f368bcdef64c40ff7
750
py
Python
Python-3/basic_examples/strings/string_translate.py
ghiloufibelgacem/jornaldev
b9b27f9f7da595892520314b4ed1d2675556310a
[ "MIT" ]
1,139
2018-05-09T11:54:36.000Z
2022-03-31T06:52:50.000Z
Python-3/basic_examples/strings/string_translate.py
ghiloufibelgacem/jornaldev
b9b27f9f7da595892520314b4ed1d2675556310a
[ "MIT" ]
56
2018-06-20T03:52:53.000Z
2022-02-09T22:57:41.000Z
Python-3/basic_examples/strings/string_translate.py
ghiloufibelgacem/jornaldev
b9b27f9f7da595892520314b4ed1d2675556310a
[ "MIT" ]
2,058
2018-05-09T09:32:17.000Z
2022-03-29T13:19:42.000Z
s = 'ABCDBCA' translation = s.maketrans({ord('A'): 'a', ord('B'): ord('b')}) print(s.translate(translation)) translation = s.maketrans('A', 'a') print(s.translate(translation)) translation = s.maketrans('ABCD', 'abcd') print(s.translate(translation)) # translation = s.maketrans('AB', 'a') # ValueError: the first ...
34.090909
111
0.657333
107
750
4.607477
0.35514
0.146045
0.255578
0.210953
0.501014
0.286004
0.286004
0
0
0
0
0.003012
0.114667
750
21
112
35.714286
0.739458
0.348
0
0.363636
0
0
0.080745
0
0
0
0
0
0
1
0
false
0
0
0
0
0.545455
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
0
0
0
0
0
0
1
0
3
d3691313d08213f6d97ea3689681e8873c979f7e
496
py
Python
optiml/opti/unconstrained/stochastic/__init__.py
AF207/optiml
f8860d90d4f5b6d35a3ed0ef3c1d014a2b517a72
[ "MIT" ]
1
2021-04-06T13:59:03.000Z
2021-04-06T13:59:03.000Z
optiml/opti/unconstrained/stochastic/__init__.py
AF207/optiml
f8860d90d4f5b6d35a3ed0ef3c1d014a2b517a72
[ "MIT" ]
null
null
null
optiml/opti/unconstrained/stochastic/__init__.py
AF207/optiml
f8860d90d4f5b6d35a3ed0ef3c1d014a2b517a72
[ "MIT" ]
null
null
null
__all__ = ['StochasticOptimizer', 'StochasticMomentumOptimizer', 'StochasticGradientDescent', 'Adam', 'AMSGrad', 'AdaMax', 'AdaGrad', 'AdaDelta', 'RProp', 'RMSProp'] from ._base import StochasticOptimizer, StochasticMomentumOptimizer from .gradient_descent import StochasticGradientDescent from .amsgrad imp...
35.428571
111
0.790323
49
496
7.877551
0.326531
0.238342
0
0
0
0
0
0
0
0
0
0
0.125
496
13
112
38.153846
0.889401
0
0
0
0
0
0.231855
0.104839
0
0
0
0
0
1
0
false
0
0.818182
0
0.818182
0
0
0
0
null
1
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
1
0
0
3
d3712a71ed54d666d8a484be6202ce8ca197e301
37
py
Python
contest/__init__.py
dfannin/loggy
9bb0eb7167966615666f1d15106dad72fcd8daa9
[ "BSD-3-Clause" ]
2
2017-01-28T17:54:33.000Z
2017-05-13T11:46:18.000Z
contest/__init__.py
dfannin/loggy
9bb0eb7167966615666f1d15106dad72fcd8daa9
[ "BSD-3-Clause" ]
null
null
null
contest/__init__.py
dfannin/loggy
9bb0eb7167966615666f1d15106dad72fcd8daa9
[ "BSD-3-Clause" ]
null
null
null
__all__ = ["Contest","Contest_NAQP"]
18.5
36
0.702703
4
37
5.25
0.75
0
0
0
0
0
0
0
0
0
0
0
0.081081
37
1
37
37
0.617647
0
0
0
0
0
0.513514
0
0
0
0
0
0
1
0
false
0
0
0
0
0
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
0
0
0
0
0
0
0
3
d374b0dca53aed65475ce0e669e9f19ed74690aa
63
py
Python
Python3/1001.py
siq5arthur/uri-online-judge
e23bbca25404fa5fdc9c6af2882237e577d24682
[ "MIT" ]
null
null
null
Python3/1001.py
siq5arthur/uri-online-judge
e23bbca25404fa5fdc9c6af2882237e577d24682
[ "MIT" ]
null
null
null
Python3/1001.py
siq5arthur/uri-online-judge
e23bbca25404fa5fdc9c6af2882237e577d24682
[ "MIT" ]
null
null
null
x = int(input()) y = int(input()) print("X = {}".format(x+y))
12.6
27
0.507937
11
63
2.909091
0.545455
0.5
0
0
0
0
0
0
0
0
0
0
0.15873
63
4
28
15.75
0.603774
0
0
0
0
0
0.095238
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
0
0
0
0
0
0
0
3
d377def9b69eaca940c2c1540d5f6afb63df7d05
427
py
Python
probability/measure/indicator.py
jedhsu/probability
cd94726315cd6d9e537925cdd2f13cf7911dbb92
[ "Apache-2.0" ]
null
null
null
probability/measure/indicator.py
jedhsu/probability
cd94726315cd6d9e537925cdd2f13cf7911dbb92
[ "Apache-2.0" ]
null
null
null
probability/measure/indicator.py
jedhsu/probability
cd94726315cd6d9e537925cdd2f13cf7911dbb92
[ "Apache-2.0" ]
null
null
null
""" *Indicator Function* Dirac delta function. """ from typing import Generic, Hashable, Literal, Mapping, TypeVar from sympy import Symbol from .space import AbstractSpace T = TypeVar("T", bound=Hashable) class IndicatorFunction( Mapping[AbstractSpace, Literal[0, 1]], Generic[T], ): # [TODO] ...
14.724138
63
0.655738
49
427
5.632653
0.632653
0
0
0
0
0
0
0
0
0
0
0.009091
0.227166
427
28
64
15.25
0.827273
0.203747
0
0
0
0
0.006192
0
0
0
0
0.035714
0
1
0.090909
false
0.090909
0.272727
0
0.545455
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
1
0
0
3
d39437cc8a02c102d1c5782e353f675362c7ad3a
111
py
Python
batch/mysql_setting.py
happou31/dora-stat
1405fff5d77fc01c4af7811388bc1003a840545d
[ "MIT" ]
null
null
null
batch/mysql_setting.py
happou31/dora-stat
1405fff5d77fc01c4af7811388bc1003a840545d
[ "MIT" ]
null
null
null
batch/mysql_setting.py
happou31/dora-stat
1405fff5d77fc01c4af7811388bc1003a840545d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- host = 'localhost' port = 3306 db = 'dora' user = 'root' passwd = '' charset = 'utf8'
12.333333
23
0.558559
14
111
4.428571
1
0
0
0
0
0
0
0
0
0
0
0.068966
0.216216
111
8
24
13.875
0.643678
0.189189
0
0
0
0
0.238636
0
0
0
0
0
0
1
0
false
0.166667
0
0
0
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
0
1
0
0
0
0
0
3
d39e14688b2511c7a151ae915850dd883b3c4b53
3,898
py
Python
examples/ner/eval.py
patelrajnath/luke
a7a3190267603ba51e1bc038e10ed4d89166e102
[ "Apache-2.0" ]
null
null
null
examples/ner/eval.py
patelrajnath/luke
a7a3190267603ba51e1bc038e10ed4d89166e102
[ "Apache-2.0" ]
null
null
null
examples/ner/eval.py
patelrajnath/luke
a7a3190267603ba51e1bc038e10ed4d89166e102
[ "Apache-2.0" ]
null
null
null
from seqeval.metrics.sequence_labeling import get_entities def f1_score_span(y_true, y_pred, average='micro', suffix=False): """Compute the F1 score. The F1 score can be interpreted as a weighted average of the precision and recall, where an F1 score reaches its best value at 1 and worst score at 0. ...
36.429907
103
0.607748
624
3,898
3.660256
0.160256
0.032837
0.059107
0.039405
0.764886
0.743433
0.728546
0.677758
0.677758
0.646235
0
0.014305
0.246793
3,898
107
104
36.429907
0.763624
0.593894
0
0.64
0
0
0.010957
0
0
0
0
0
0
1
0.12
false
0
0.04
0
0.28
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
6c94c5f33a3cdd9598501d195952a022fbff1681
354
py
Python
jsonml/datautil.py
deng0515001/jsonml
a28c3a4b102c37243b63d39ff4a5de1e8a414c21
[ "Apache-2.0" ]
1
2020-09-21T09:02:14.000Z
2020-09-21T09:02:14.000Z
jsonml/datautil.py
deng0515001/jsonml
a28c3a4b102c37243b63d39ff4a5de1e8a414c21
[ "Apache-2.0" ]
null
null
null
jsonml/datautil.py
deng0515001/jsonml
a28c3a4b102c37243b63d39ff4a5de1e8a414c21
[ "Apache-2.0" ]
null
null
null
def str2int(value, default): try: return int(value) except Exception as e: return default def str2float(value, default): try: return float(value) except Exception as e: return default def str2bool(value, default): try: return bool(value) except Except...
16.090909
30
0.610169
42
354
5.142857
0.357143
0.166667
0.208333
0.291667
0.527778
0.527778
0.527778
0.361111
0
0
0
0.0125
0.322034
354
21
31
16.857143
0.8875
0
0
0.6
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
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
0
0
0
0
0
1
0
0
3
6c94cfd2214138325a3da67be059dc1291e7c61e
142
py
Python
demo/call-back.py
sage-code/python
719569e05678708fb724c5eb838be8f148f55bb8
[ "MIT" ]
null
null
null
demo/call-back.py
sage-code/python
719569e05678708fb724c5eb838be8f148f55bb8
[ "MIT" ]
null
null
null
demo/call-back.py
sage-code/python
719569e05678708fb724c5eb838be8f148f55bb8
[ "MIT" ]
null
null
null
def test(bar, a, b): return bar(a, b) r1 = test(lambda x,y: x + y, 2,3) r2 = test(lambda x,y: x * y, 2,3) print("r1:",r1) print("r2:",r2)
15.777778
33
0.542254
33
142
2.333333
0.424242
0.103896
0.12987
0.311688
0.415584
0.415584
0.415584
0.415584
0
0
0
0.088496
0.204225
142
8
34
17.75
0.59292
0
0
0
0
0
0.042254
0
0
0
0
0
0
1
0.166667
false
0
0
0.166667
0.333333
0.333333
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
3
6c95ad2de0c2c21b7fcbdaa679a1563363a7a012
207
py
Python
src/nnicotine/models/revnet.py
KIT-MBS/nnicotine
3681391d05d0a2d92e16431f5bc985cd6ff606fd
[ "MIT" ]
2
2021-03-28T02:02:30.000Z
2021-09-09T23:27:39.000Z
src/nnicotine/models/revnet.py
KIT-MBS/nnicotine
3681391d05d0a2d92e16431f5bc985cd6ff606fd
[ "MIT" ]
null
null
null
src/nnicotine/models/revnet.py
KIT-MBS/nnicotine
3681391d05d0a2d92e16431f5bc985cd6ff606fd
[ "MIT" ]
null
null
null
import torch.nn as nn from ..modules import PositionalEncoding, OuterConcatenation class RevNet(nn.Module): def __init__(self): return def forward(self, x): y = x return y
17.25
60
0.647343
26
207
5
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.275362
207
11
61
18.818182
0.866667
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.125
0.875
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
1
0
0
0
1
0
0
0
3
6c95b03d83c4027fd5ebe68ef18ba4152672d137
3,800
py
Python
Project 2 Modeling of Meteorological factors of COVID-19/regression_tree/regression_tree.py
ericlee0920/2021-Data-Science-Projects
141d581457882a7762eee0f2e27a2ab5f27143af
[ "MIT" ]
null
null
null
Project 2 Modeling of Meteorological factors of COVID-19/regression_tree/regression_tree.py
ericlee0920/2021-Data-Science-Projects
141d581457882a7762eee0f2e27a2ab5f27143af
[ "MIT" ]
null
null
null
Project 2 Modeling of Meteorological factors of COVID-19/regression_tree/regression_tree.py
ericlee0920/2021-Data-Science-Projects
141d581457882a7762eee0f2e27a2ab5f27143af
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeRegressor from sklearn.tree import export_graphviz from sklearn import metrics import statsmodels.api as sm class RegressionTree: def __init__(self, d...
33.628319
116
0.607105
526
3,800
4.220532
0.302281
0.033784
0.05045
0.018919
0.104505
0.085586
0.067568
0.067568
0.067568
0.067568
0
0.008073
0.282895
3,800
112
117
33.928571
0.806606
0.279211
0
0
0
0
0.100703
0
0
0
0
0
0
1
0.237288
false
0
0.220339
0.135593
0.610169
0.050847
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
6ca2ed5cc6de5597733c1e38477ca4bfb3caef35
408
py
Python
tests/languages/docker_test.py
Acidburn0zzz/pre-commit
acc28efe2f9d5242565d3cdbaa7b624b6435808c
[ "MIT" ]
1
2017-05-15T18:55:12.000Z
2017-05-15T18:55:12.000Z
tests/languages/docker_test.py
Acidburn0zzz/pre-commit
acc28efe2f9d5242565d3cdbaa7b624b6435808c
[ "MIT" ]
null
null
null
tests/languages/docker_test.py
Acidburn0zzz/pre-commit
acc28efe2f9d5242565d3cdbaa7b624b6435808c
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import unicode_literals import mock from pre_commit.languages import docker from pre_commit.util import CalledProcessError def test_docker_is_running_process_error(): with mock.patch( 'pre_commit.languages.docker.cmd_output', side_effect=Cal...
25.5
52
0.772059
52
408
5.634615
0.557692
0.09215
0.109215
0
0
0
0
0
0
0
0
0.002933
0.164216
408
15
53
27.2
0.856305
0
0
0
0
0
0.093137
0.093137
0
0
0
0
0.090909
1
0.090909
true
0
0.454545
0
0.545455
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
1
0
1
0
0
3
6cc6b3b63ed770ce5e202cb3fcd0d47a9dd78ace
317
py
Python
codewof/utils/LoaderFactory.py
lucyturn3r/codewof
acb2860c4b216013ffbba5476d5fac1616c78454
[ "MIT" ]
null
null
null
codewof/utils/LoaderFactory.py
lucyturn3r/codewof
acb2860c4b216013ffbba5476d5fac1616c78454
[ "MIT" ]
null
null
null
codewof/utils/LoaderFactory.py
lucyturn3r/codewof
acb2860c4b216013ffbba5476d5fac1616c78454
[ "MIT" ]
null
null
null
"""Factory for creating loader objects.""" from codewof.management.commands._QuestionsLoader import QuestionsLoader class LoaderFactory: """Factory for creating loader objects.""" def create_questions_loader(self, **kwargs): """Create questions loader.""" return QuestionsLoader(**kwargs)
26.416667
72
0.725552
31
317
7.322581
0.612903
0.088106
0.15859
0.211454
0.273128
0
0
0
0
0
0
0
0.164038
317
11
73
28.818182
0.856604
0.309148
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
1
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
1
0
0
0
0
1
0
0
3
6cca342b47e4bf75296bccf76cb190355bef6e58
736
py
Python
cosmos/ingestion/ingest/process/postprocess/xgboost_model/inference.py
ilmcconnell/Cosmos
84245034727c30e20ffddee9e02c7e96f3aa115e
[ "Apache-2.0" ]
30
2019-03-14T08:24:34.000Z
2022-03-09T06:05:44.000Z
cosmos/ingestion/ingest/process/postprocess/xgboost_model/inference.py
ilmcconnell/Cosmos
84245034727c30e20ffddee9e02c7e96f3aa115e
[ "Apache-2.0" ]
78
2019-02-07T22:14:48.000Z
2022-03-09T05:59:18.000Z
cosmos/ingestion/ingest/process/postprocess/xgboost_model/inference.py
ilmcconnell/Cosmos
84245034727c30e20ffddee9e02c7e96f3aa115e
[ "Apache-2.0" ]
11
2019-03-02T01:20:06.000Z
2022-03-25T07:25:46.000Z
from ingest.process.postprocess.xgboost_model.featurizer import load_data_objs import yaml import joblib import xgboost import numpy as np import logging logger = logging.getLogger(__name__) logger.setLevel(logging.ERROR) def run_inference(model, classes, page_objs): # TODO: WRITE TEST CASE if len(page_objs)...
26.285714
78
0.720109
110
736
4.581818
0.509091
0.079365
0.047619
0
0
0
0
0
0
0
0
0.006623
0.179348
736
27
79
27.259259
0.827815
0.028533
0
0
0
0
0.070225
0
0
0
0
0.037037
0
1
0.052632
false
0.052632
0.315789
0
0.473684
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
1
0
0
0
0
3
6ce0dae0feebaee0f18b948bfe18c1a97b44315f
278
py
Python
sfdo_template_helpers/admin/permissions.py
oddbird/sfdo-template-helpers
11a95ee64e3f54824d4039e34d0f172aa8d01e4b
[ "BSD-3-Clause" ]
4
2019-05-08T16:11:03.000Z
2021-12-24T19:35:48.000Z
sfdo_template_helpers/admin/permissions.py
oddbird/sfdo-template-helpers
11a95ee64e3f54824d4039e34d0f172aa8d01e4b
[ "BSD-3-Clause" ]
12
2018-11-28T23:29:51.000Z
2020-03-31T21:57:11.000Z
sfdo_template_helpers/admin/permissions.py
oddbird/sfdo-template-helpers
11a95ee64e3f54824d4039e34d0f172aa8d01e4b
[ "BSD-3-Clause" ]
5
2018-11-28T21:19:07.000Z
2021-06-26T17:52:04.000Z
from rest_framework import permissions class IsAPIUser(permissions.BasePermission): """Permission check for API permission. (Currently just checks if user is a superuser.) """ def has_permission(self, request, view): return request.user.is_superuser
23.166667
51
0.730216
33
278
6.060606
0.787879
0.06
0
0
0
0
0
0
0
0
0
0
0.194245
278
11
52
25.272727
0.892857
0.305755
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
6ce1f7f5fd92dd66a901a4f664e9cf1f98691388
151
py
Python
authentication-test.py
alexpech12/dracula-line-a-minute
50c9d2a4bb2be3002439daa0b4b6a68825d8c70d
[ "MIT" ]
null
null
null
authentication-test.py
alexpech12/dracula-line-a-minute
50c9d2a4bb2be3002439daa0b4b6a68825d8c70d
[ "MIT" ]
null
null
null
authentication-test.py
alexpech12/dracula-line-a-minute
50c9d2a4bb2be3002439daa0b4b6a68825d8c70d
[ "MIT" ]
null
null
null
from dracula_account_api import api try: api.verify_credentials() print("Authentication OK") except: print("Error during authentication")
18.875
40
0.748344
18
151
6.111111
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.165563
151
7
41
21.571429
0.873016
0
0
0
0
0
0.291391
0
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
0.333333
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
0
0
0
0
0
0
3
6cff22ab48f8963254851c321c519bab74f1621e
133
py
Python
button/list-pushed.py
Rembut/ev3devDemos
8a69e75981802d3b20eb960c5a954103eb6b40b1
[ "MIT" ]
null
null
null
button/list-pushed.py
Rembut/ev3devDemos
8a69e75981802d3b20eb960c5a954103eb6b40b1
[ "MIT" ]
null
null
null
button/list-pushed.py
Rembut/ev3devDemos
8a69e75981802d3b20eb960c5a954103eb6b40b1
[ "MIT" ]
null
null
null
from ev3dev2.button import Button from time import sleep btn = Button() while True: print(btn.buttons_pressed) sleep(0.5)
13.3
33
0.721805
20
133
4.75
0.7
0
0
0
0
0
0
0
0
0
0
0.037383
0.195489
133
9
34
14.777778
0.850467
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.166667
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
0
0
1
0
0
0
0
3
9f084572d529c135847444753ec42bb1893eda01
2,968
py
Python
cardClass.py
TerryDuan/PokerGame
59c2dc01ae500f0e8d66059a0503ed4a21daa19e
[ "MIT" ]
null
null
null
cardClass.py
TerryDuan/PokerGame
59c2dc01ae500f0e8d66059a0503ed4a21daa19e
[ "MIT" ]
null
null
null
cardClass.py
TerryDuan/PokerGame
59c2dc01ae500f0e8d66059a0503ed4a21daa19e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Apr 9 22:21:46 2020 @author: terry """ from cardGraph import cardPic class Card: SUITFACE = {'h':'♥', 's':'♠', 'c':'♣', 'd':'♦'} def __init__(self, rank : str, suit : str): self.rank = rank.upper() ...
29.098039
98
0.557278
378
2,968
4.248677
0.312169
0.064757
0.08406
0.106476
0.517435
0.492528
0.443337
0.401619
0.363014
0.363014
0
0.019259
0.300202
2,968
101
99
29.386139
0.752046
0.247642
0
0.072727
0
0
0.010046
0
0
0
0
0
0
1
0.272727
false
0
0.018182
0.218182
0.509091
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
9f13b7f0dc71962300ebdd33bd7fed643b30e537
3,828
py
Python
test/testJava.py
Ahhhhmed/homology
40c2ee2d2cc076b1f6b61f80421fe3175dd1659c
[ "MIT" ]
null
null
null
test/testJava.py
Ahhhhmed/homology
40c2ee2d2cc076b1f6b61f80421fe3175dd1659c
[ "MIT" ]
24
2018-03-05T13:13:14.000Z
2018-06-16T19:01:46.000Z
test/testJava.py
Ahhhhmed/homology
40c2ee2d2cc076b1f6b61f80421fe3175dd1659c
[ "MIT" ]
null
null
null
from test.stdlib_test import TestStdlib class TestC(TestStdlib): def setUp(self): self.language = "Java" def testFlow(self): self.verifySingleSnippet("forin#int$i%collection", """ for(int i: collection){ } [{cursor_marker}] """) def testObject(self): self.verifySingleSnippet("cl...
17.013333
109
0.625653
472
3,828
5.019068
0.17161
0.111439
0.260025
0.269312
0.642887
0.593499
0.522161
0.522161
0.402702
0.286619
0
0.005956
0.166667
3,828
224
110
17.089286
0.736677
0
0
0.464286
0
0
0.628527
0.177638
0
0
0
0
0
1
0.041667
false
0
0.005952
0
0.059524
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
9f2b392c58c9639e26222009dc9edb5fd6dc94c5
400
py
Python
nbtutor/ipython/factories/basic_heap_object_factory.py
vincentxavier/nbtutor
c1da217c44a84bd13b190c72eb0ef1ba66bbc90a
[ "BSD-3-Clause" ]
423
2016-11-24T12:51:16.000Z
2022-03-09T13:11:16.000Z
nbtutor/ipython/factories/basic_heap_object_factory.py
vincentxavier/nbtutor
c1da217c44a84bd13b190c72eb0ef1ba66bbc90a
[ "BSD-3-Clause" ]
52
2016-11-20T12:40:46.000Z
2022-03-31T17:48:43.000Z
nbtutor/ipython/factories/basic_heap_object_factory.py
vincentxavier/nbtutor
c1da217c44a84bd13b190c72eb0ef1ba66bbc90a
[ "BSD-3-Clause" ]
41
2017-01-18T15:11:01.000Z
2022-03-09T13:07:35.000Z
from ..models.heap_object import HeapObject from .base_heap_object_factory import HeapObjectFactory class BasicHeapObjectFactory(HeapObjectFactory): def get_value(self) -> str: return str(self._object) def create(self) -> HeapObject: heap_obj = HeapObject(self.get_id(), self.get_type(), self....
30.769231
88
0.7175
49
400
5.612245
0.489796
0.076364
0
0
0
0
0
0
0
0
0
0
0.185
400
12
89
33.333333
0.843558
0
0
0
0
0
0.0125
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0.111111
0.777778
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
9f39bff8610afb89be9181d14bbc9a7f43caaf5f
647
py
Python
impl/recommender/tablecreator.py
dustywind/bachelor-thesis
be06aaeb1b4d73f727a19029a3416a9b8043194d
[ "MIT" ]
null
null
null
impl/recommender/tablecreator.py
dustywind/bachelor-thesis
be06aaeb1b4d73f727a19029a3416a9b8043194d
[ "MIT" ]
null
null
null
impl/recommender/tablecreator.py
dustywind/bachelor-thesis
be06aaeb1b4d73f727a19029a3416a9b8043194d
[ "MIT" ]
null
null
null
import sqlite3 from . import DbConnection class TableCreator(object): """abstract class to unify the process of table-creation :param sqlite3_connection: an opened instance of a database connection :type sqlite3_connection: sqlite3.Connection """ def __init__(self, db_connection_str): s...
24.884615
74
0.703246
76
647
5.723684
0.578947
0.137931
0.137931
0.131034
0
0
0
0
0
0
0
0.008048
0.231839
647
25
75
25.88
0.867203
0.395672
0
0
0
0
0
0
0
0
0
0
0
1
0.3
false
0.1
0.2
0.1
0.7
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
1
0
0
3
9f3db89b05ece20e0f391c85bd2d00974b4bddc7
137
py
Python
surfPow/__init__.py
Micascisto/sharad-tools
979242c783ef849e72b13621c09c42752da7953c
[ "MIT" ]
null
null
null
surfPow/__init__.py
Micascisto/sharad-tools
979242c783ef849e72b13621c09c42752da7953c
[ "MIT" ]
null
null
null
surfPow/__init__.py
Micascisto/sharad-tools
979242c783ef849e72b13621c09c42752da7953c
[ "MIT" ]
null
null
null
'''tool for extracting suface power from SHARAD radargrams ''' __author__ = "Brandon S. Tober" __all__ = ["nadir"] from . import nadir
17.125
58
0.715328
17
137
5.294118
0.882353
0
0
0
0
0
0
0
0
0
0
0
0.167883
137
8
59
17.125
0.789474
0.40146
0
0
0
0
0.276316
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
0
1
0
0
0
0
3
9f4133397ee7b81293fcf889b1bbc59f8e233179
1,206
py
Python
launcher.py
gcp825/gcp_public
3208249658b227de4a3d5e054de8df42042429a5
[ "Apache-2.0" ]
null
null
null
launcher.py
gcp825/gcp_public
3208249658b227de4a3d5e054de8df42042429a5
[ "Apache-2.0" ]
null
null
null
launcher.py
gcp825/gcp_public
3208249658b227de4a3d5e054de8df42042429a5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # Generic Launcher script for any dataflow job in the repo. # Assumes: # i) You have a package folder at the top level of the repo (e.g. skating_etl) # ii) Within that folder you have a .py executable with the same name as the package, and that this code contains your dataflow pipeline # iii...
44.666667
139
0.753731
203
1,206
4.453202
0.482759
0.02323
0.017699
0.028761
0.048673
0.048673
0.048673
0
0
0
0
0.003043
0.182421
1,206
26
140
46.384615
0.913793
0.856551
0
0
0
0
0.025641
0
0
0
0
0
0
1
0
false
0
0.6
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
9f4f2b7d318e72a8ddf91359bcbfc9700490a03e
431
py
Python
tests/basics/fun_kwargs.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
13,648
2015-01-01T01:34:51.000Z
2022-03-31T16:19:53.000Z
tests/basics/fun_kwargs.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
7,092
2015-01-01T07:59:11.000Z
2022-03-31T23:52:18.000Z
tests/basics/fun_kwargs.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
4,942
2015-01-02T11:48:50.000Z
2022-03-31T19:57:10.000Z
def f1(a): print(a) f1(123) f1(a=123) try: f1(b=123) except TypeError: print("TypeError") def f2(a, b): print(a, b) f2(1, 2) f2(a=3, b=4) f2(b=5, a=6) f2(7, b=8) try: f2(9, a=10) except TypeError: print("TypeError") def f3(a, b, *args): print(a, b, args) f3(1, b=3) try: f3(1, a=3) ...
11.972222
23
0.552204
85
431
2.8
0.258824
0.252101
0.336134
0.487395
0.268908
0
0
0
0
0
0
0.131098
0.238979
431
35
24
12.314286
0.594512
0
0
0.413793
0
0
0.083527
0
0
0
0
0
0
1
0.103448
false
0
0
0
0.103448
0.241379
0
0
0
null
1
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
0
0
0
0
0
0
0
0
3
9f76c78f079a30ec4ec2ba75e1da91151696319a
302
py
Python
Task/Search-a-list/Python/search-a-list-2.py
LaudateCorpus1/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
5
2021-01-29T20:08:05.000Z
2022-03-22T06:16:05.000Z
Task/Search-a-list/Python/search-a-list-2.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
null
null
null
Task/Search-a-list/Python/search-a-list-2.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
>>> haystack=["Zig","Zag","Wally","Ronald","Bush","Krusty","Charlie","Bush","Bozo"] >>> haystack.index('Bush') 4 >>> haystack.index('Washington') Traceback (most recent call last): File "<pyshell#95>", line 1, in <module> haystack.index('Washington') ValueError: list.index(x): x not in list >>>
30.2
83
0.652318
40
302
4.925
0.7
0.19797
0.233503
0
0
0
0
0
0
0
0
0.014815
0.10596
302
9
84
33.555556
0.714815
0
0
0
0
0
0.258278
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
1
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
1
0
0
0
0
0
0
0
0
3
9f77b17d5d3229671e4b65b62e72e5a24e4b4f54
1,170
py
Python
sdk/python/pulumi_tailscale/config/vars.py
pulumi/pulumi-tailscale
fb0ad24b45afe8cf8e573533abd94316d15c06b5
[ "ECL-2.0", "Apache-2.0" ]
8
2021-11-03T16:16:43.000Z
2022-03-09T11:07:33.000Z
sdk/python/pulumi_tailscale/config/vars.py
pulumi/pulumi-tailscale
fb0ad24b45afe8cf8e573533abd94316d15c06b5
[ "ECL-2.0", "Apache-2.0" ]
30
2021-11-09T15:38:43.000Z
2022-03-29T18:47:36.000Z
sdk/python/pulumi_tailscale/config/vars.py
pulumi/pulumi-tailscale
fb0ad24b45afe8cf8e573533abd94316d15c06b5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# 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, overload from .. import...
30
125
0.671795
150
1,170
5.073333
0.506667
0.063075
0.059133
0.070959
0.224704
0.09067
0
0
0
0
0
0.001116
0.234188
1,170
38
126
30.789474
0.848214
0.447863
0
0.176471
1
0
0.051327
0
0
0
0
0
0
1
0.176471
false
0
0.352941
0
0.764706
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
1
0
1
0
0
3
9f8d57bafd719c72e1bee419a67ef39affdaa0c8
587
py
Python
tests/test_managers/test_experiment_job.py
vfdev-5/polyaxon-cli
9232c3b614d3025b9e31c79fbe632cd35fcfcc64
[ "MIT" ]
null
null
null
tests/test_managers/test_experiment_job.py
vfdev-5/polyaxon-cli
9232c3b614d3025b9e31c79fbe632cd35fcfcc64
[ "MIT" ]
null
null
null
tests/test_managers/test_experiment_job.py
vfdev-5/polyaxon-cli
9232c3b614d3025b9e31c79fbe632cd35fcfcc64
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from unittest import TestCase from polyaxon_cli.managers.experiment_job import ExperimentJobManager from polyaxon_cli.schemas.experiment import ExperimentJobConfig class TestExperimentJobManager(TestCase): def test_default_...
36.6875
72
0.804089
61
587
7.47541
0.606557
0.22807
0.065789
0
0
0
0
0
0
0
0
0.001984
0.141397
587
15
73
39.133333
0.902778
0.035775
0
0
0
0
0.024823
0
0
0
0
0
0.4
1
0.1
false
0
0.4
0
0.6
0.1
0
0
0
null
1
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
1
0
0
3
9fb17652fe98a136c860038077be95cc7586de8b
59
py
Python
bin/test_kafka.py
tigranza/docker-project
c0792577fc8cb172aac6c2a3c14984d09da9f3ea
[ "Apache-2.0" ]
null
null
null
bin/test_kafka.py
tigranza/docker-project
c0792577fc8cb172aac6c2a3c14984d09da9f3ea
[ "Apache-2.0" ]
null
null
null
bin/test_kafka.py
tigranza/docker-project
c0792577fc8cb172aac6c2a3c14984d09da9f3ea
[ "Apache-2.0" ]
null
null
null
import kafka client = kafka.KafkaClient('localhost:9092')
14.75
44
0.779661
7
59
6.571429
0.857143
0
0
0
0
0
0
0
0
0
0
0.075472
0.101695
59
4
44
14.75
0.792453
0
0
0
0
0
0.237288
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
0
0
1
0
0
0
0
3
9fc94bfcad498b9d63089bed66077cb628b453ef
286
py
Python
tests-proxy/test_util/thread_safe_counter.py
plater-inc/proxy
f277fd8b3b5bf19b29c8f07055b65ed34c9a8dda
[ "MIT" ]
null
null
null
tests-proxy/test_util/thread_safe_counter.py
plater-inc/proxy
f277fd8b3b5bf19b29c8f07055b65ed34c9a8dda
[ "MIT" ]
null
null
null
tests-proxy/test_util/thread_safe_counter.py
plater-inc/proxy
f277fd8b3b5bf19b29c8f07055b65ed34c9a8dda
[ "MIT" ]
null
null
null
import threading class Counter(object): def __init__(self): self._value = 0 self._lock = threading.Lock() def increment(self): with self._lock: self._value += 1 def value(self): with self._lock: return self._value
17.875
37
0.566434
33
286
4.606061
0.454545
0.177632
0.157895
0.210526
0
0
0
0
0
0
0
0.010582
0.339161
286
15
38
19.066667
0.793651
0
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0
0.545455
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
1
0
0
0
0
1
0
0
3
4c8c4ea4e7e5179b934e65b52e39752f13fbca51
58
py
Python
day_1/taking_int_input.py
anishLearnsToCode/ml-workshop-wac-3
062568c9229d9da61c83b0ae343e7834d8e81916
[ "MIT" ]
2
2021-02-02T16:42:58.000Z
2021-11-28T15:42:53.000Z
day_1/taking_int_input.py
anishLearnsToCode/ml-workshop-wac-3
062568c9229d9da61c83b0ae343e7834d8e81916
[ "MIT" ]
null
null
null
day_1/taking_int_input.py
anishLearnsToCode/ml-workshop-wac-3
062568c9229d9da61c83b0ae343e7834d8e81916
[ "MIT" ]
null
null
null
number = float(input()) print(type(number)) print(number)
14.5
23
0.724138
8
58
5.25
0.625
0
0
0
0
0
0
0
0
0
0
0
0.086207
58
3
24
19.333333
0.792453
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
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
0
0
0
0
0
1
0
3