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
244306e4fb4d185f414d79c97eb56df5f74b5c62
778
py
Python
lego/apps/feed/signal_handler.py
andrinelo/lego
9b53c8fe538d9107b980a70e2a21fb487cc3b290
[ "MIT" ]
null
null
null
lego/apps/feed/signal_handler.py
andrinelo/lego
9b53c8fe538d9107b980a70e2a21fb487cc3b290
[ "MIT" ]
null
null
null
lego/apps/feed/signal_handler.py
andrinelo/lego
9b53c8fe538d9107b980a70e2a21fb487cc3b290
[ "MIT" ]
null
null
null
from lego.apps.feed.registry import handler_exists from .tasks import add_to_feeds class BaseSignalHandler: def on_create(self, instance): pass def on_update(self, instance): pass def on_delete(self, instance): pass class AsyncSignalHandler(BaseSignalHandler): """ This...
23.575758
64
0.672237
94
778
5.37234
0.351064
0.059406
0.079208
0.124752
0.59802
0.380198
0.380198
0.380198
0.380198
0.380198
0
0
0.239075
778
32
65
24.3125
0.853041
0.077121
0
0.631579
0
0
0.025641
0
0
0
0
0
0
1
0.315789
false
0.157895
0.105263
0
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
24570dc5851c5eccd403c0fb0d6eb52b7b6cfc81
100
py
Python
lib/BarSeqPy/varprint.py
OGalOz/barseqR
360090319717fd3456fbfb5751f6c16be770791d
[ "MIT", "BSD-3-Clause" ]
null
null
null
lib/BarSeqPy/varprint.py
OGalOz/barseqR
360090319717fd3456fbfb5751f6c16be770791d
[ "MIT", "BSD-3-Clause" ]
null
null
null
lib/BarSeqPy/varprint.py
OGalOz/barseqR
360090319717fd3456fbfb5751f6c16be770791d
[ "MIT", "BSD-3-Clause" ]
null
null
null
import os import json import sys """ Functions created in order to assist with documentation """
9.090909
41
0.75
14
100
5.357143
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.19
100
10
42
10
0.925926
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
2464b8bbbc73e04ede0805c1f9198bd95e77c5e3
33
py
Python
triggers/__init__.py
kuroneko1996/cyberlab
36e72b13efbe891c295143a89514296a3480bfea
[ "MIT" ]
4
2017-08-14T04:23:25.000Z
2019-09-12T06:12:37.000Z
triggers/__init__.py
kuroneko1996/cyberlab
36e72b13efbe891c295143a89514296a3480bfea
[ "MIT" ]
40
2017-08-14T07:23:56.000Z
2019-09-10T03:27:46.000Z
triggers/__init__.py
kuroneko1996/cyberlab
36e72b13efbe891c295143a89514296a3480bfea
[ "MIT" ]
3
2017-08-14T04:51:54.000Z
2022-02-13T08:48:23.000Z
__all__ = ["triggers", "message"]
33
33
0.666667
3
33
6
1
0
0
0
0
0
0
0
0
0
0
0
0.090909
33
1
33
33
0.6
0
0
0
0
0
0.441176
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
79ea425bbb6a8fe2cb543789abfd7e717af575c7
201
py
Python
mdpdfbook/mdpdf/__init__.py
geraked/mdpdfbook
ffeb8294f86f8c691dfde5f08bc6bd4c7f4273ab
[ "MIT" ]
1
2021-11-28T02:47:50.000Z
2021-11-28T02:47:50.000Z
mdpdfbook/mdpdf/__init__.py
geraked/mdpdfbook
ffeb8294f86f8c691dfde5f08bc6bd4c7f4273ab
[ "MIT" ]
null
null
null
mdpdfbook/mdpdf/__init__.py
geraked/mdpdfbook
ffeb8294f86f8c691dfde5f08bc6bd4c7f4273ab
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Python command line application to convert Markdown to PDF. .. currentmodule:: mdpdf .. moduleauthor:: Norman Lorrain <normanlorrain@gmail.com> """
18.272727
59
0.691542
24
201
5.791667
0.916667
0
0
0
0
0
0
0
0
0
0
0.005814
0.144279
201
10
60
20.1
0.802326
0.930348
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
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
79f06e6ead39042e9c6243b86d44f53562466f5e
133
py
Python
nicos_sinq/icon/setups/ngi_xingi.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_sinq/icon/setups/ngi_xingi.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_sinq/icon/setups/ngi_xingi.py
ISISComputingGroup/nicos
94cb4d172815919481f8c6ee686f21ebb76f2068
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'nGI XinGI setup at ICON' includes = ['ngi_xingi_gratings', 'ngi_xingi_stage', 'ngi_g0'] excludes = ['ngi_backpack']
22.166667
62
0.729323
18
133
5.055556
0.666667
0.263736
0
0
0
0
0
0
0
0
0
0.008621
0.12782
133
5
63
26.6
0.775862
0
0
0
0
0
0.560606
0
0
0
0
0
0
1
0
false
0
0
0
0
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
79f923b2f78aea7351aa1da283e0a4005802fd9f
116
py
Python
sum.py
jyoti140220/function_logical_quetion_python
50e3da10e0cc02cb78e5d429f2c87c0a171bd693
[ "MIT" ]
null
null
null
sum.py
jyoti140220/function_logical_quetion_python
50e3da10e0cc02cb78e5d429f2c87c0a171bd693
[ "MIT" ]
null
null
null
sum.py
jyoti140220/function_logical_quetion_python
50e3da10e0cc02cb78e5d429f2c87c0a171bd693
[ "MIT" ]
null
null
null
def num_sum(): n= [1, 2, 3, 4, 5] sum=0 i=0 while i<len(n): sum=sum+n[i] i=i+1 print(sum) num_sum()
12.888889
20
0.5
28
116
2
0.5
0.214286
0
0
0
0
0
0
0
0
0
0.095238
0.275862
116
9
21
12.888889
0.571429
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.111111
0.111111
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
0306716ccf751feeca0f2a481101c1b83effd231
181
py
Python
OnlineJudge/announcement/urls/oj.py
FrozenWhalePP/OnlineJudge
aec81292046b4a0896ff164565b490dc37bd91cb
[ "MIT" ]
2
2020-03-07T02:26:00.000Z
2020-06-01T15:03:17.000Z
OnlineJudge/announcement/urls/oj.py
FrozenWhalePP/OnlineJudge
aec81292046b4a0896ff164565b490dc37bd91cb
[ "MIT" ]
null
null
null
OnlineJudge/announcement/urls/oj.py
FrozenWhalePP/OnlineJudge
aec81292046b4a0896ff164565b490dc37bd91cb
[ "MIT" ]
null
null
null
from django.conf.urls import url from ..views.oj import AnnouncementAPI urlpatterns = [ url(r"^announcement/?$", AnnouncementAPI.as_view(), name="announcement_api"), ]
22.625
82
0.707182
21
181
6
0.761905
0
0
0
0
0
0
0
0
0
0
0
0.154696
181
7
83
25.857143
0.823529
0
0
0
0
0
0.183908
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
032d84e8fb0fd25c8ea8f4b45e7bfdf948561b56
4,002
py
Python
server/config/di.py
multi-coop/catalogage-donnees
1d70401ff6c7b01ec051460a253cb105adf65911
[ "MIT" ]
null
null
null
server/config/di.py
multi-coop/catalogage-donnees
1d70401ff6c7b01ec051460a253cb105adf65911
[ "MIT" ]
14
2022-01-25T17:56:52.000Z
2022-01-28T17:47:59.000Z
server/config/di.py
multi-coop/catalogage-donnees
1d70401ff6c7b01ec051460a253cb105adf65911
[ "MIT" ]
null
null
null
""" Dependency injection (DI) setup. Allows decoupling interfaces used by the application from their concrete implementation, which might be configured on init. Uses: https://punq.readthedocs.io/ Usage ----- Register dependencies in `configure()` below. The DI container should be initialized in entrypoints: `...
28.382979
88
0.753123
421
4,002
7.08076
0.31829
0.070446
0.067092
0.038913
0.120765
0.112714
0.095941
0.067763
0.067763
0
0
0.000601
0.168166
4,002
140
89
28.585714
0.894863
0.389555
0
0.040816
0
0
0.061774
0.058043
0
0
0
0.071429
0
1
0.020408
false
0.061224
0.326531
0
0.346939
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
0340a748b25c132f1cde178453e6504f0ac1ded9
218
py
Python
Fundamentals/Exer.034.py
thiagokanagushiku/Python-Exercises
e536ff3c64911d3f25d4b1441c4ef070faab1764
[ "MIT" ]
null
null
null
Fundamentals/Exer.034.py
thiagokanagushiku/Python-Exercises
e536ff3c64911d3f25d4b1441c4ef070faab1764
[ "MIT" ]
null
null
null
Fundamentals/Exer.034.py
thiagokanagushiku/Python-Exercises
e536ff3c64911d3f25d4b1441c4ef070faab1764
[ "MIT" ]
null
null
null
Salario = float(input('Qual é o salário do funcionário? R$')) if Salario >= 1250: Aumento = Salario*1.1 else: Aumento = Salario*1.15 print(f'Quem ganhava R${Salario:.2f} passa a ganhar R${Aumento:.2f} agora.')
31.142857
76
0.678899
36
218
4.111111
0.694444
0.189189
0.202703
0
0
0
0
0
0
0
0
0.06044
0.165138
218
6
77
36.333333
0.752747
0
0
0
0
0
0.463303
0
0
0
0
0
0
1
0
false
0.166667
0
0
0
0.166667
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
0
0
0
1
0
0
0
0
0
3
0340cb4602a60305a0af59fd00a12624b19c8392
5,678
py
Python
tests/test_join.py
dssrt/csvkit
a4f93c78a247dc785068cdbb5f7dca5324c2d30e
[ "MIT" ]
null
null
null
tests/test_join.py
dssrt/csvkit
a4f93c78a247dc785068cdbb5f7dca5324c2d30e
[ "MIT" ]
1
2018-09-21T23:30:21.000Z
2018-09-21T23:30:21.000Z
tests/test_join.py
dssrt/csvkit
a4f93c78a247dc785068cdbb5f7dca5324c2d30e
[ "MIT" ]
1
2018-09-21T23:26:35.000Z
2018-09-21T23:26:35.000Z
#!/usr/bin/env python try: import unittest2 as unittest except ImportError: import unittest from csvkit import join class TestJoin(unittest.TestCase): def setUp(self): self.tab1 = [ ['id', 'name', 'i_work_here'], [u'1', u'Chicago Reader', u'first'], [u'2', u'...
48.529915
96
0.498943
931
5,678
2.949517
0.079484
0.03496
0.050255
0.15295
0.853969
0.812454
0.720685
0.636198
0.61362
0.584122
0
0.039107
0.265939
5,678
116
97
48.948276
0.619722
0.024128
0
0.360825
0
0
0.270905
0
0
0
0
0
0.134021
1
0.103093
false
0
0.041237
0
0.154639
0
0
0
0
null
0
0
0
1
1
1
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
036400c2faa485bd265c12a1e88bebbf342c610b
20,691
py
Python
practice/practice_data/text.py
Soooyeon-Kim/Data-Analysis
fa7bda1b14b981e924d77083157fa3cdb5632a67
[ "MIT" ]
null
null
null
practice/practice_data/text.py
Soooyeon-Kim/Data-Analysis
fa7bda1b14b981e924d77083157fa3cdb5632a67
[ "MIT" ]
null
null
null
practice/practice_data/text.py
Soooyeon-Kim/Data-Analysis
fa7bda1b14b981e924d77083157fa3cdb5632a67
[ "MIT" ]
null
null
null
data = '''Assembly Speaker Chung, distinguished members of this Assembly, ladies and gentlemen: Thank you for the extraordinary privilege to speak in this great chamber and to address your people on behalf of the people of the United States of America. In our short time in your country, Melania and I have been awed ...
149.934783
814
0.792132
3,564
20,691
4.607744
0.326319
0.008221
0.010048
0.004141
0.009378
0.005968
0.002923
0.002923
0
0
0
0.007252
0.180272
20,691
138
815
149.934783
0.959083
0
0
0
0
0.957143
0.999319
0
0
0
0
0
0
1
0
false
0.014286
0
0
0
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
03713d445014adda3d9f1c6066c2a6edb912831c
746
py
Python
tests/test_geo.py
movermeyer/sample-data-utils
769f1b46e60def2675a14bd5872047af6d1ea398
[ "BSD-3-Clause" ]
null
null
null
tests/test_geo.py
movermeyer/sample-data-utils
769f1b46e60def2675a14bd5872047af6d1ea398
[ "BSD-3-Clause" ]
null
null
null
tests/test_geo.py
movermeyer/sample-data-utils
769f1b46e60def2675a14bd5872047af6d1ea398
[ "BSD-3-Clause" ]
1
2018-03-04T21:50:08.000Z
2018-03-04T21:50:08.000Z
from sample_data_utils.geo import country, iso2, iso3, lang, isonum, CONTINENTS, continent def test_continent(): assert continent() in CONTINENTS def test_country(): c = country() assert len(c) == 8 assert len(c[0]) == 2 # iso2 assert len(c[1]) == 3 # iso3 assert len(c[2]) == 3 # iso_num ...
19.128205
90
0.575067
116
746
3.62069
0.310345
0.214286
0.142857
0.061905
0.161905
0.095238
0
0
0
0
0
0.045956
0.270777
746
38
91
19.631579
0.726103
0.058981
0
0.153846
0
0
0
0
0
0
0
0
0.576923
1
0.230769
false
0
0.038462
0
0.269231
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
1
0
1
0
0
0
0
0
0
0
3
300503746a90ab7d62d7feca5e9f72e0ec97f685
552
py
Python
src/fix_code_1.py
Athenian-Computer-Science/strings1-practice-template
80f4a90e0e7f633579bce86cf42d018a95c8e31f
[ "Apache-2.0" ]
null
null
null
src/fix_code_1.py
Athenian-Computer-Science/strings1-practice-template
80f4a90e0e7f633579bce86cf42d018a95c8e31f
[ "Apache-2.0" ]
null
null
null
src/fix_code_1.py
Athenian-Computer-Science/strings1-practice-template
80f4a90e0e7f633579bce86cf42d018a95c8e31f
[ "Apache-2.0" ]
null
null
null
############################# # Collaborators: (enter people or resources who/that helped you) # If none, write none # # ############################# print(More than the act of testing, the act of designing tests is one of the best bug preventers known. The thinking that must be done to create a useful test can disco...
61.333333
399
0.697464
83
552
4.638554
0.73494
0.031169
0.041558
0.119481
0.14026
0
0
0
0
0
0
0
0.15942
552
8
400
69
0.829741
0.148551
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
1
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
1
0
0
0
0
0
0
1
0
3
30105510826f2347cd9962d6696fc882a4988e8e
396
py
Python
numom2b_preprocessing/_meta.py
batflyer/nuMoM2b-preprocessing
e3831d33e06a2620df84655a3c9474794ecc8c44
[ "MIT" ]
2
2021-11-11T22:24:35.000Z
2021-12-17T23:13:49.000Z
numom2b_preprocessing/_meta.py
batflyer/nuMoM2b-preprocessing
e3831d33e06a2620df84655a3c9474794ecc8c44
[ "MIT" ]
5
2019-05-16T20:09:37.000Z
2019-10-14T13:41:18.000Z
numom2b_preprocessing/_meta.py
hayesall/nuMoM2b_preprocessing
e3831d33e06a2620df84655a3c9474794ecc8c44
[ "MIT" ]
null
null
null
# Copyright 2019 Alexander L. Hayes __author__ = "Alexander L. Hayes (@hayesall)" __copyright__ = "Copyright © 2019 Alexander L. Hayes" __license__ = "MIT" __version__ = "0.2.1" __status__ = "Alpha" __maintainer__ = "Alexander L. Hayes (@hayesall)" __email__ = "hayesall@iu.edu" __credits__ = [ "Alexander L. Haye...
23.294118
53
0.684343
44
396
5.454545
0.568182
0.208333
0.3125
0.2875
0
0
0
0
0
0
0
0.033333
0.166667
396
16
54
24.75
0.690909
0.083333
0
0
0
0
0.540166
0
0
0
0
0
0
1
0
false
0
0
0
0
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
3027cfac75874b25ec534d20eb488273d4afd4ff
81
py
Python
hahaa.py
jatinchaudhary/python_dump
5f7d63237fcb96a66bc3c4151599c7849f0f2735
[ "bzip2-1.0.6" ]
null
null
null
hahaa.py
jatinchaudhary/python_dump
5f7d63237fcb96a66bc3c4151599c7849f0f2735
[ "bzip2-1.0.6" ]
null
null
null
hahaa.py
jatinchaudhary/python_dump
5f7d63237fcb96a66bc3c4151599c7849f0f2735
[ "bzip2-1.0.6" ]
null
null
null
k = 1 while True: if k%3 == 0: break print(k) k += 1
10.125
17
0.358025
13
81
2.230769
0.692308
0.137931
0
0
0
0
0
0
0
0
0
0.102564
0.518519
81
7
18
11.571429
0.641026
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
302c0ed6351f3d60d3e22f1a1427fc6b81cb5d65
195
py
Python
python/testData/inspections/PyTypeCheckerInspection/DecoratedFunction.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/inspections/PyTypeCheckerInspection/DecoratedFunction.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/inspections/PyTypeCheckerInspection/DecoratedFunction.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
def decorator(f): return f @decorator def foo(): return 'foo' print(<warning descr="Expected type 'int', got '() -> Union[str, Any]' instead">foo</warning> + 3) # we know type at least
21.666667
122
0.641026
29
195
4.310345
0.724138
0
0
0
0
0
0
0
0
0
0
0.006329
0.189744
195
8
123
24.375
0.78481
0.107692
0
0
0
0
0.343023
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
3
303da7863a7e0afe1961448a50afe2a23ee8e43d
104
py
Python
src/webautomation/python_softwerkskammer_hackergarten_2015-05/demo_selenium00.py
hemmerling/codingdojo
3e8860b78e96ac15cde6a12db3b2431e8b63714f
[ "Apache-2.0" ]
null
null
null
src/webautomation/python_softwerkskammer_hackergarten_2015-05/demo_selenium00.py
hemmerling/codingdojo
3e8860b78e96ac15cde6a12db3b2431e8b63714f
[ "Apache-2.0" ]
null
null
null
src/webautomation/python_softwerkskammer_hackergarten_2015-05/demo_selenium00.py
hemmerling/codingdojo
3e8860b78e96ac15cde6a12db3b2431e8b63714f
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver browser = webdriver.Firefox() browser.get('http://seleniumhq.org/')
20.8
38
0.740385
12
104
6.416667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.125
104
4
39
26
0.846154
0
0
0
0
0
0.22
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
3049a4fe64076b3bd764542c519fd2ab87cbde2c
243
py
Python
Python/List-1/first_last6.py
LucasHenrique-dev/exerc-cios-codingbat
ff92db10387757b9a2e3f72be6b7e51824b1ffa6
[ "MIT" ]
2
2020-12-09T13:36:44.000Z
2021-08-16T01:17:16.000Z
Python/List-1/first_last6.py
LucasHenrique-dev/exerc-cios-codingbat
ff92db10387757b9a2e3f72be6b7e51824b1ffa6
[ "MIT" ]
null
null
null
Python/List-1/first_last6.py
LucasHenrique-dev/exerc-cios-codingbat
ff92db10387757b9a2e3f72be6b7e51824b1ffa6
[ "MIT" ]
null
null
null
""" Dada uma lista numérica "nums", retorne true se o seu primeiro ou último elemento forem um "6". A lista terá um tamanho de pelo menos 1. """ def first_last6(nums): return nums[0] == 6 or nums[-1] == 6 print(first_last6([1, 2, 3]))
20.25
81
0.662551
44
243
3.613636
0.75
0.125786
0
0
0
0
0
0
0
0
0
0.056701
0.201646
243
11
82
22.090909
0.762887
0.559671
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
0.666667
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
304d22177caf3c5fb2952e2bec4ed108fb34bd89
262
py
Python
createtuple.py
gurmeetkhehra/python-practice
abeb5586f8c1e673fd8ff312a4ae0941f2a0194b
[ "Apache-2.0" ]
null
null
null
createtuple.py
gurmeetkhehra/python-practice
abeb5586f8c1e673fd8ff312a4ae0941f2a0194b
[ "Apache-2.0" ]
null
null
null
createtuple.py
gurmeetkhehra/python-practice
abeb5586f8c1e673fd8ff312a4ae0941f2a0194b
[ "Apache-2.0" ]
null
null
null
# 12. Write a Python program to create a tuple. tuple_plane = ('southwest', 'american', 'india', 'jetblue') print (tuple_plane [0]) print (tuple_plane [1]) print (tuple_plane [2]) print (tuple_plane [3]) tuple_plane = ('red lion', 'alaska') print(tuple_plane)
23.818182
59
0.698473
39
262
4.512821
0.538462
0.397727
0.426136
0
0
0
0
0
0
0
0
0.026549
0.137405
262
10
60
26.2
0.752212
0.171756
0
0
0
0
0.2
0
0
0
0
0
0
1
0
false
0
0
0
0
0.714286
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
0
0
0
0
0
0
0
0
1
0
3
30649c238a36f30d107faff87aedb4d596711399
398
py
Python
helpers/generateloc.py
Rabyss/clustering-tests
a6aed51b18ae7db796a45b7a529a93e65b61b067
[ "Apache-2.0" ]
null
null
null
helpers/generateloc.py
Rabyss/clustering-tests
a6aed51b18ae7db796a45b7a529a93e65b61b067
[ "Apache-2.0" ]
null
null
null
helpers/generateloc.py
Rabyss/clustering-tests
a6aed51b18ae7db796a45b7a529a93e65b61b067
[ "Apache-2.0" ]
null
null
null
import random for i in range(1000): if i % 100 == 0: print(random.uniform(-90, 90), random.uniform(-180, 180), sep=', ') elif i % 50 == 0: print(random.uniform(48, 49), random.uniform(3, 4), sep=', ') elif i % 2 == 0: print(random.uniform(45, 47), random.uniform(6, 8), sep=', ') ...
33.166667
75
0.545226
60
398
3.616667
0.483333
0.479263
0.331797
0.262673
0
0
0
0
0
0
0
0.136667
0.246231
398
11
76
36.181818
0.586667
0
0
0
0
0
0.020101
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.4
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
30668c7b52b1eb9f8e7f3b63a84ab6359764ff9c
4,503
py
Python
vise/tests/test_defaults.py
kumagai-group/vise
8adfe61ad8f31767ec562f02f271e2495f357cd4
[ "MIT" ]
16
2020-07-14T13:14:05.000Z
2022-03-04T13:39:30.000Z
vise/tests/test_defaults.py
kumagai-group/vise
8adfe61ad8f31767ec562f02f271e2495f357cd4
[ "MIT" ]
10
2021-03-15T20:47:45.000Z
2021-08-19T00:47:12.000Z
vise/tests/test_defaults.py
kumagai-group/vise
8adfe61ad8f31767ec562f02f271e2495f357cd4
[ "MIT" ]
6
2020-03-03T00:42:39.000Z
2022-02-22T02:34:47.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020. Distributed under the terms of the MIT License. import os import pytest from importlib import reload @pytest.fixture def modified_defaults(tmpdir): os.chdir(tmpdir) tmpdir.join("vise.yaml").write(""" kpoint_density: 0.5 overridden_potcar: O_h dos_step_size: 0...
26.333333
73
0.711748
595
4,503
5.29916
0.352941
0.09705
0.084364
0.079924
0.419283
0.302569
0.200127
0.200127
0.164605
0.164605
0
0.433678
0.204752
4,503
170
74
26.488235
0.446803
0.031979
0
0.272727
0
0
0.772393
0.009646
0
0
0
0
0.034965
1
0.020979
false
0
0.034965
0
0.062937
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
306b188892762e6ac0278a7f131da51701b1aa06
63
py
Python
frappe/__version__.py
jsukrut/Bekredito_frappe
d6f43ff1c34851b652fe1f6023148fbbef54cbfd
[ "MIT" ]
null
null
null
frappe/__version__.py
jsukrut/Bekredito_frappe
d6f43ff1c34851b652fe1f6023148fbbef54cbfd
[ "MIT" ]
null
null
null
frappe/__version__.py
jsukrut/Bekredito_frappe
d6f43ff1c34851b652fe1f6023148fbbef54cbfd
[ "MIT" ]
2
2016-02-22T13:23:04.000Z
2018-03-21T16:28:51.000Z
from __future__ import unicode_literals __version__ = "6.22.4"
21
39
0.809524
9
63
4.666667
1
0
0
0
0
0
0
0
0
0
0
0.071429
0.111111
63
2
40
31.5
0.678571
0
0
0
0
0
0.095238
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
06435a034bc88799f757981dad41800ae6eafcfb
202
py
Python
jnius/__init__.py
Lenbok/pyjnius
19d4ddc45daabdf0301941516187dcf848994389
[ "MIT" ]
1
2020-07-21T19:52:27.000Z
2020-07-21T19:52:27.000Z
jnius/__init__.py
lucius-feng/pyjnius
2c72781092d14922fee57cbd14c4b89d8e04b13f
[ "MIT" ]
null
null
null
jnius/__init__.py
lucius-feng/pyjnius
2c72781092d14922fee57cbd14c4b89d8e04b13f
[ "MIT" ]
null
null
null
''' Pyjnius ======= Accessing Java classes from Python. All the documentation is available at: http://pyjnius.readthedocs.org ''' __version__ = '1.1-dev' from .jnius import * from .reflect import *
14.428571
69
0.70297
26
202
5.307692
0.807692
0
0
0
0
0
0
0
0
0
0
0.011696
0.153465
202
13
70
15.538462
0.795322
0.608911
0
0
0
0
0.098592
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
065b980b05c4f9b0bc541e0d3cf7e5de8b93363b
575
py
Python
src/simulations/__init__.py
gsmcwhirter/simulations
73d8349125d50394ecf126af672c35c703e07aeb
[ "MIT" ]
null
null
null
src/simulations/__init__.py
gsmcwhirter/simulations
73d8349125d50394ecf126af672c35c703e07aeb
[ "MIT" ]
null
null
null
src/simulations/__init__.py
gsmcwhirter/simulations
73d8349125d50394ecf126af672c35c703e07aeb
[ "MIT" ]
3
2016-08-24T15:40:25.000Z
2019-12-14T17:26:57.000Z
""" Base framework for running and analyzing gametheory simulations Modules: :py:mod:`~simulations.base` Handles generic set-up tasks for EventEmitter-derived classes :py:mod:`~simulations.simulation` Handles defining simulations :py:mod:`~simulations.simulation_runner` Handles running...
22.115385
67
0.714783
62
575
6.612903
0.516129
0.073171
0.234146
0.126829
0
0
0
0
0
0
0
0
0.194783
575
25
68
23
0.885529
0.982609
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
1
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
1
0
0
0
0
0
0
3
0670495e6f9371f9764333ee75d888cb4d84f8c4
11,180
py
Python
src/abaqus/Odb/OdbSet.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
7
2022-01-21T09:15:45.000Z
2022-02-15T09:31:58.000Z
src/abaqus/Odb/OdbSet.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
null
null
null
src/abaqus/Odb/OdbSet.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
null
null
null
from abaqusConstants import * from .OdbMeshElement import OdbMeshElement from .OdbMeshElementArray import OdbMeshElementArray from .OdbMeshNode import OdbMeshNode from .OdbMeshNodeArray import OdbMeshNodeArray class OdbSet: """The set objects are used to identify regions of a model. Attributes ----------...
38.287671
139
0.602415
1,267
11,180
5.312549
0.140489
0.055564
0.075769
0.084237
0.720547
0.645372
0.596642
0.549993
0.499183
0.499183
0
0.012926
0.294186
11,180
291
140
38.419244
0.840071
0.76297
0
0.259259
0
0
0
0
0
0
0
0
0
1
0.259259
false
0.259259
0.185185
0
0.740741
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
067b3571553111bcb244671affdb14ec39d6800e
115
py
Python
ex025.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
ex025.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
ex025.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
nome = str(input('Digite seu nome: ')) print(f'Seu nome é {nome}, ele contém Silva?') print('silva'in nome.lower())
38.333333
46
0.678261
20
115
3.9
0.65
0.179487
0
0
0
0
0
0
0
0
0
0
0.121739
115
3
47
38.333333
0.772277
0
0
0
0
0
0.5
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
06800b466b615568f37f986d7ff3422c9438fdfc
3,144
py
Python
ssbio/test/test_protein_structure_utils_mutatepdb.py
JoshuaMeyers/ssbio
624618602437e2c2e4adf90962adcef3af2d5b40
[ "MIT" ]
76
2017-03-06T02:50:38.000Z
2022-02-08T08:08:48.000Z
ssbio/test/test_protein_structure_utils_mutatepdb.py
JoshuaMeyers/ssbio
624618602437e2c2e4adf90962adcef3af2d5b40
[ "MIT" ]
30
2017-03-09T14:54:05.000Z
2021-10-06T10:57:45.000Z
ssbio/test/test_protein_structure_utils_mutatepdb.py
JoshuaMeyers/ssbio
624618602437e2c2e4adf90962adcef3af2d5b40
[ "MIT" ]
21
2017-09-01T23:00:31.000Z
2022-02-23T14:04:30.000Z
import os.path as op import tempfile import unittest from ssbio.protein.structure.utils.cleanpdb import CleanPDB from ssbio.protein.structure.utils.mutatepdb import MutatePDB from ssbio.protein.structure.utils.structureio import StructureIO class TestMutatePDB(unittest.TestCase): """Unit tests for MutatePDB ...
43.068493
105
0.611641
369
3,144
4.945799
0.216802
0.092055
0.111781
0.035068
0.763836
0.705753
0.705753
0.673973
0.673973
0.620274
0
0.005817
0.289122
3,144
73
106
43.068493
0.810738
0.085878
0
0.553191
0
0
0.056564
0.018156
0
0
0
0
0.12766
1
0.042553
false
0
0.12766
0
0.191489
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
06838b6c29b193e964471e51163b02ed6cc72376
82
py
Python
test01.py
javacommons/commonthread
dff8b39d7c86729e4711b669bcec8eab6f146659
[ "Unlicense" ]
null
null
null
test01.py
javacommons/commonthread
dff8b39d7c86729e4711b669bcec8eab6f146659
[ "Unlicense" ]
null
null
null
test01.py
javacommons/commonthread
dff8b39d7c86729e4711b669bcec8eab6f146659
[ "Unlicense" ]
null
null
null
#! python from commonthread import * lg = ThreadLogger() lg.debug('hello!')
13.666667
27
0.658537
9
82
6
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.195122
82
5
28
16.4
0.818182
0.097561
0
0
0
0
0.088235
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
0694d87263588769d7e706e57fffacf0b9ac6add
223
py
Python
ex10.py
BrunoOMelo/Leaning_Python
8775e626e346db2986153a5eec23768f3864479f
[ "MIT" ]
null
null
null
ex10.py
BrunoOMelo/Leaning_Python
8775e626e346db2986153a5eec23768f3864479f
[ "MIT" ]
null
null
null
ex10.py
BrunoOMelo/Leaning_Python
8775e626e346db2986153a5eec23768f3864479f
[ "MIT" ]
null
null
null
#declaring and formatting variable as float. real = float(input('Enter the amount of R$: ')) dolar = float(input('Enter the US$ price: ')) #presenting the conversion print('R$ {:.2f} in US$: {:.2f}'.format(real,real/dolar))
44.6
57
0.690583
34
223
4.529412
0.647059
0.12987
0.194805
0.233766
0
0
0
0
0
0
0
0.010256
0.125561
223
5
57
44.6
0.779487
0.304933
0
0
0
0
0.448052
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
0696aa93ba9d4e6eb39357b7ec7c9685ac1b9d96
367
py
Python
dash/app.py
mykhayloArtymyshyn/stocktinker
9c293181eb56e8b5e00203057c9b09fb689a13c9
[ "MIT" ]
null
null
null
dash/app.py
mykhayloArtymyshyn/stocktinker
9c293181eb56e8b5e00203057c9b09fb689a13c9
[ "MIT" ]
null
null
null
dash/app.py
mykhayloArtymyshyn/stocktinker
9c293181eb56e8b5e00203057c9b09fb689a13c9
[ "MIT" ]
null
null
null
import json import requests from dash import Dash stock_cache = {} external_stylesheets = ["https://codepen.io/chriddyp/pen/bWLwgP.css", "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"] app = Dash(__name__, compress=False, requests_pathname_prefix='/Prod/', external_stylesheets=external_styles...
36.7
142
0.79564
50
367
5.62
0.7
0.202847
0
0
0
0
0
0
0
0
0
0.008798
0.070845
367
9
143
40.777778
0.815249
0
0
0
0
0.142857
0.318801
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
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
06a487ff463f9a1e6edcb147a6625227449f3735
257
py
Python
udemy/curso_criando_apis_com_django_rest_framework/pontos_turisticos/atracoes/api/viewsets.py
flaviogf/Cursos
2b120dbcd24a907121f58482fdcdfa01b164872c
[ "MIT" ]
2
2021-02-20T23:50:07.000Z
2021-08-15T03:04:35.000Z
udemy/curso_criando_apis_com_django_rest_framework/pontos_turisticos/atracoes/api/viewsets.py
flaviogf/Cursos
2b120dbcd24a907121f58482fdcdfa01b164872c
[ "MIT" ]
18
2019-08-07T02:33:00.000Z
2021-03-18T22:52:38.000Z
udemy/curso_criando_apis_com_django_rest_framework/pontos_turisticos/atracoes/api/viewsets.py
flaviogf/Cursos
2b120dbcd24a907121f58482fdcdfa01b164872c
[ "MIT" ]
2
2020-09-28T13:00:09.000Z
2021-12-30T12:21:08.000Z
from rest_framework.viewsets import ModelViewSet from atracoes.api.serializers import AtracaoSerializer from atracoes.models import Atracao class AtracaoViewSet(ModelViewSet): serializer_class = AtracaoSerializer queryset = Atracao.objects.all()
25.7
54
0.828794
27
257
7.814815
0.666667
0.113744
0
0
0
0
0
0
0
0
0
0
0.120623
257
9
55
28.555556
0.933628
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
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
06aaf6e3d2033cc9d1d3d25a76f941c75f7dc4c8
1,013
py
Python
yenviron/yenviron.py
javiermatos/yenviron
5df987a930db56dcf1a87a70a3b4c7c816b18eca
[ "MIT" ]
null
null
null
yenviron/yenviron.py
javiermatos/yenviron
5df987a930db56dcf1a87a70a3b4c7c816b18eca
[ "MIT" ]
null
null
null
yenviron/yenviron.py
javiermatos/yenviron
5df987a930db56dcf1a87a70a3b4c7c816b18eca
[ "MIT" ]
null
null
null
import yaml from . import exceptions class Yenviron(object): def __init__(self, d): if not isinstance(d, dict): raise exceptions.YenvironError('Yenviron requires a dictionary') self.d = d def __getitem__(self, key): try: return self.d.__getitem__(key) ...
22.511111
78
0.624877
120
1,013
4.95
0.416667
0.042088
0.055556
0
0
0
0
0
0
0
0
0
0.274432
1,013
44
79
23.022727
0.808163
0
0
0.066667
0
0
0.051333
0
0
0
0
0
0
1
0.3
false
0
0.066667
0.133333
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
ebed48f9505a0aea6ff90e5fafda27e8a89e0a7c
323
py
Python
eleven/one_nieoh.py
frrad/eopi
ff5d1c40c721edd16480a98e07fb36f47f2416bf
[ "MIT" ]
null
null
null
eleven/one_nieoh.py
frrad/eopi
ff5d1c40c721edd16480a98e07fb36f47f2416bf
[ "MIT" ]
7
2018-06-04T16:28:49.000Z
2018-07-09T01:35:24.000Z
eleven/one_nieoh.py
frrad/eopi
ff5d1c40c721edd16480a98e07fb36f47f2416bf
[ "MIT" ]
null
null
null
def first_of(arr, x): def func(L, U): M = (L+U)//2 if arr[M] == x: if L == M: return M else: return func(L, M) elif arr[M] < x: return func(M+1, U) else: return func(L, M-1) return func(0, len(arr)-...
23.071429
33
0.368421
48
323
2.458333
0.354167
0.338983
0.084746
0.254237
0.271186
0
0
0
0
0
0
0.030488
0.49226
323
13
34
24.846154
0.689024
0
0
0.153846
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0
0
0.538462
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
0
0
0
0
0
0
0
1
0
0
3
ebef7e06abe86284bb98942821d4c79a222a5a60
221
py
Python
DialogflowApi/urls.py
HaruHuey/HaruHueyApis
3223ded277bb7012d4d81624feaa6a72c2c36245
[ "Apache-2.0" ]
1
2019-04-22T09:29:14.000Z
2019-04-22T09:29:14.000Z
DialogflowApi/urls.py
HaruHuey/HaruHueyApis
3223ded277bb7012d4d81624feaa6a72c2c36245
[ "Apache-2.0" ]
7
2019-10-21T19:39:22.000Z
2021-06-10T21:22:35.000Z
DialogflowApi/urls.py
HaruHuey/HaruHueyApis
3223ded277bb7012d4d81624feaa6a72c2c36245
[ "Apache-2.0" ]
null
null
null
# HaruHueyApis/DialogflowApi/urls.py from django.urls import path from DialogflowApi.views import Apis_Views urlpatterns = [ # path('test', test, name='test') path('Apis_Views', Apis_Views, name='Apis_Views') ]
22.1
53
0.733032
29
221
5.448276
0.448276
0.227848
0
0
0
0
0
0
0
0
0
0
0.140271
221
10
54
22.1
0.831579
0.298643
0
0
0
0
0.130719
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
ebefe141e0b10b2529b01fcb9ef87569d843bbc0
473
py
Python
peitho/errors_and_parsers/abc_sysbio/abcsysbio_parser/SDEAndGillespieCUDAParser.py
MichaelPHStumpf/Peitho
a4daa9a3b2d8960079573d08d5baa019b5ac857e
[ "MIT" ]
1
2018-01-05T21:59:49.000Z
2018-01-05T21:59:49.000Z
peitho/errors_and_parsers/abc_sysbio/abcsysbio_parser/SDEAndGillespieCUDAParser.py
MichaelPHStumpf/Peitho
a4daa9a3b2d8960079573d08d5baa019b5ac857e
[ "MIT" ]
null
null
null
peitho/errors_and_parsers/abc_sysbio/abcsysbio_parser/SDEAndGillespieCUDAParser.py
MichaelPHStumpf/Peitho
a4daa9a3b2d8960079573d08d5baa019b5ac857e
[ "MIT" ]
3
2018-01-05T22:00:09.000Z
2018-12-25T13:32:10.000Z
from peitho.errors_and_parsers.abc_sysbio.abcsysbio_parser.CUDAParser import CUDAParser class SdeAndGillespieCUDAParser(CUDAParser): def __init__(self, sbmlFileName, modelName, integrationType, method, inputPath="", outputPath=""): CUDAParser.__init__(self, sbmlFileName, modelName, integrationType, method,...
47.3
112
0.754757
43
473
8.023256
0.604651
0.046377
0.115942
0.168116
0.4
0.4
0.4
0.4
0
0
0
0
0.141649
473
9
113
52.555556
0.849754
0
0
0
0
0
0.002114
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0
0.571429
0
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
1
0
0
0
0
0
0
0
3
ebf5966a0e2730fb2e4acb7303f6ac2e3de93337
669
py
Python
stringer/stringer.py
billdback/stringer
ec3ffae01f0a9419a150739968206cbc4ef99763
[ "MIT" ]
null
null
null
stringer/stringer.py
billdback/stringer
ec3ffae01f0a9419a150739968206cbc4ef99763
[ "MIT" ]
null
null
null
stringer/stringer.py
billdback/stringer
ec3ffae01f0a9419a150739968206cbc4ef99763
[ "MIT" ]
null
null
null
class Stringer: """ Simple class that will convert strings to upper and lower and write the results. """ def __init__(self): """Creates a new stringer.""" pass @staticmethod def to_upper(s): """ Converts the string to upper case. :param s: The string t...
21.580645
84
0.539611
82
669
4.329268
0.378049
0.152113
0.123944
0.101408
0.411268
0.298592
0.298592
0.298592
0.298592
0.298592
0
0
0.367713
669
30
85
22.3
0.839244
0.502242
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.111111
0
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
230fa93348a34b281d40ed0bc6e28c660426e247
444
py
Python
automationtool/modifiers.py
jascrer/PythonAutomationTool
3d1d5b9546af32e46142afbd3cb2e3eb1c80d1bd
[ "MIT" ]
null
null
null
automationtool/modifiers.py
jascrer/PythonAutomationTool
3d1d5b9546af32e46142afbd3cb2e3eb1c80d1bd
[ "MIT" ]
3
2020-07-06T00:28:48.000Z
2020-07-06T00:42:27.000Z
automationtool/modifiers.py
jascrer/PythonAutomationTool
3d1d5b9546af32e46142afbd3cb2e3eb1c80d1bd
[ "MIT" ]
null
null
null
from helpers import Tags # Metainformation tags # Abbreviation tag class class Abbreviation(Tags): def __init__(self, title, attrs): Tags.__init__(self, "abbr", attrs) self.title = title # Address tag class class Address(Tags): def __init__(self, attrs): Tags.__init__(self, "addres...
17.76
45
0.664414
55
444
4.927273
0.309091
0.177122
0.143911
0.166052
0.236162
0.236162
0.236162
0.236162
0
0
0
0
0.225225
444
24
46
18.5
0.787791
0.175676
0
0.181818
0
0
0.033241
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0
0.636364
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
23250ee79519c22e5611a7331f964fd8bcf99843
266
py
Python
MyApplication/MyClass.py
rafaellehmkuhl/PyQt5-Base-Application
3f102709fa3447efdaeb5d676db16d32ef127909
[ "MIT" ]
null
null
null
MyApplication/MyClass.py
rafaellehmkuhl/PyQt5-Base-Application
3f102709fa3447efdaeb5d676db16d32ef127909
[ "MIT" ]
null
null
null
MyApplication/MyClass.py
rafaellehmkuhl/PyQt5-Base-Application
3f102709fa3447efdaeb5d676db16d32ef127909
[ "MIT" ]
null
null
null
from PyQt5.QtCore import Qt from PyQt5.QtWidgets import (QWidget, QLabel, QHBoxLayout, QPushButton, QSlider) import numpy as np class MyClass(QWidget): """Class example""" def __init__(parent=None): super().__init__()
22.166667
58
0.635338
29
266
5.551724
0.758621
0.111801
0
0
0
0
0
0
0
0
0
0.010256
0.266917
266
12
59
22.166667
0.815385
0.048872
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.714286
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
233751cd7964aee201d172fe107b26e74565beb3
1,011
py
Python
modules/sets.py
flaczq/chip-eight-emulator
4962d2f996f691ba3b07a12cf4716f2c5fd06eec
[ "MIT" ]
null
null
null
modules/sets.py
flaczq/chip-eight-emulator
4962d2f996f691ba3b07a12cf4716f2c5fd06eec
[ "MIT" ]
null
null
null
modules/sets.py
flaczq/chip-eight-emulator
4962d2f996f691ba3b07a12cf4716f2c5fd06eec
[ "MIT" ]
null
null
null
import pygame chip_fontset = [ 0xF0, 0x90, 0x90, 0x90, 0xF0, # 0 0x20, 0x60, 0x20, 0x20, 0x70, # 1 0xF0, 0x10, 0xF0, 0x80, 0xF0, # 2 0xF0, 0x10, 0xF0, 0x10, 0xF0, # 3 0x90, 0x90, 0xF0, 0x10, 0x10, # 4 0xF0, 0x80, 0xF0, 0x10, 0xF0, # 5 0xF0, 0x80, 0xF0, 0x90, 0xF0, # 6 0xF0, 0x10,...
25.275
38
0.523244
166
1,011
3.078313
0.228916
0.219178
0.1409
0.062622
0
0
0
0
0
0
0
0.336283
0.329377
1,011
39
39
25.923077
0.417404
0.062315
0
0
0
0
0
0
0
0
0.349727
0
0
1
0
false
0
0.027027
0
0.027027
0
0
0
0
null
1
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
0
0
0
0
0
0
0
0
0
0
3
23709d0ddde2c03a2e805c43406010548d8ffc5f
653
py
Python
logio/migrations/0002_auto_20200329_0906.py
Encrypto-19/loginout19
23e4586591b3ee5c2d42cb98fc62c493010065b8
[ "MIT" ]
null
null
null
logio/migrations/0002_auto_20200329_0906.py
Encrypto-19/loginout19
23e4586591b3ee5c2d42cb98fc62c493010065b8
[ "MIT" ]
8
2021-03-19T02:20:40.000Z
2022-03-12T00:25:56.000Z
logio/migrations/0002_auto_20200329_0906.py
Encrypto-19/loginout19
23e4586591b3ee5c2d42cb98fc62c493010065b8
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-29 09:06 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('logio', '0001_initial'), ] operations = [ migrations.RenameField( model_name='content', old_name='author', new_n...
22.517241
47
0.545176
62
653
5.532258
0.516129
0.12828
0.227405
0.262391
0.38484
0.38484
0.38484
0
0
0
0
0.044289
0.343032
653
28
48
23.321429
0.755245
0.068913
0
0.409091
1
0
0.161716
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
88bdc48320dc49b1412bcb3ac321ae54b70d762a
119
py
Python
structure/use_package.py
kashifali-m398/advanced_python
988f407e986403b3238c9d1ea30b7d6fddf88c84
[ "MIT" ]
98
2018-09-08T22:16:19.000Z
2022-03-27T22:31:49.000Z
structure/use_package.py
kashifali-m398/advanced_python
988f407e986403b3238c9d1ea30b7d6fddf88c84
[ "MIT" ]
1
2020-08-15T14:24:26.000Z
2020-08-15T17:22:15.000Z
structure/use_package.py
kashifali-m398/advanced_python
988f407e986403b3238c9d1ea30b7d6fddf88c84
[ "MIT" ]
26
2018-07-14T01:43:35.000Z
2022-03-24T22:49:59.000Z
# Example: importing from other modules. from package.constants import WEEKDAYS for day in WEEKDAYS: print(day)
14.875
40
0.756303
16
119
5.625
0.8125
0
0
0
0
0
0
0
0
0
0
0
0.184874
119
7
41
17
0.927835
0.319328
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
0
1
0
0
0
0
3
88c17266b92c3574819aff52182e672cf13382e1
527
py
Python
h5Nastran/h5Nastran/h5/nastran/nastran_node.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
293
2015-03-22T20:22:01.000Z
2022-03-14T20:28:24.000Z
h5Nastran/h5Nastran/h5/nastran/nastran_node.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
512
2015-03-14T18:39:27.000Z
2022-03-31T16:15:43.000Z
h5Nastran/h5Nastran/h5/nastran/nastran_node.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
136
2015-03-19T03:26:06.000Z
2022-03-25T22:14:54.000Z
from __future__ import print_function, absolute_import from six import iteritems from h5Nastran.h5nastrannode import H5NastranNode from .input import InputNode from .result import ResultNode class NastranNode(H5NastranNode): def __init__(self, h5n): self._h5n = h5n # type: H5Nastran se...
22.913043
54
0.688805
62
527
5.629032
0.403226
0.100287
0.094556
0
0
0
0
0
0
0
0
0.026895
0.223909
527
22
55
23.954545
0.826406
0.028463
0
0
0
0
0.013752
0
0
0
0
0
0
1
0.214286
false
0
0.357143
0.071429
0.714286
0.071429
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
1
0
1
0
0
3
88d1b41120c171ff36e4fe0549346612774b9c8c
987
py
Python
aux/hlauncher.py
ojss/c3lr
a018c5a793a2c9eedc3f0fefcca0970f0be35ffc
[ "Apache-2.0" ]
3
2022-02-24T07:02:12.000Z
2022-03-20T18:33:58.000Z
aux/hlauncher.py
ojss/c3lr
a018c5a793a2c9eedc3f0fefcca0970f0be35ffc
[ "Apache-2.0" ]
null
null
null
aux/hlauncher.py
ojss/c3lr
a018c5a793a2c9eedc3f0fefcca0970f0be35ffc
[ "Apache-2.0" ]
null
null
null
from hydra_runners.hydrazine import ExperimentConfig, task_function from hydra_zen import launch (jobs,) = launch( ExperimentConfig, task_function, overrides=[ "hydra/launcher=submitit_slurm", "params.use_umap=True", "params.rdim_components=2, 4, 8, 16, 32", "trainer.gpus=1", ...
32.9
67
0.649443
114
987
5.429825
0.561404
0.210016
0.067851
0.042003
0.067851
0
0
0
0
0
0
0.024516
0.214792
987
29
68
34.034483
0.774194
0.122594
0
0
0
0
0.52381
0.469222
0
0
0
0
0
1
0
true
0
0.083333
0
0.083333
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
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
000e51a47b512ddcb067630fd483a54a8261b73d
773
py
Python
rubicon/client/asynchronous/__init__.py
gforsyth/rubicon
b77c0bdfc73d3f5666f76c83240706c10cd2e88c
[ "Apache-2.0" ]
null
null
null
rubicon/client/asynchronous/__init__.py
gforsyth/rubicon
b77c0bdfc73d3f5666f76c83240706c10cd2e88c
[ "Apache-2.0" ]
null
null
null
rubicon/client/asynchronous/__init__.py
gforsyth/rubicon
b77c0bdfc73d3f5666f76c83240706c10cd2e88c
[ "Apache-2.0" ]
null
null
null
from rubicon.client.asynchronous.config import Config from rubicon.client.asynchronous.mixin import ArtifactMixin, DataframeMixin, TagMixin # noqa F401 from rubicon.client.asynchronous.artifact import Artifact from rubicon.client.asynchronous.dataframe import Dataframe from rubicon.client.asynchronous.feature import...
30.92
98
0.791721
84
773
7.238095
0.238095
0.180921
0.279605
0.476974
0
0
0
0
0
0
0
0.004444
0.126779
773
24
99
32.208333
0.896296
0.011643
0
0
0
0
0.090551
0
0
0
0
0
0
1
0
false
0
0.47619
0
0.47619
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
003c719d4c0b0fa8e4814ba3ead46657c3d75e05
424
py
Python
code_scanner/tests/sample/some_useless.py
stargrep/rmm-utils
55725cb117015bbe35653120779c53ff39a999bc
[ "MIT" ]
null
null
null
code_scanner/tests/sample/some_useless.py
stargrep/rmm-utils
55725cb117015bbe35653120779c53ff39a999bc
[ "MIT" ]
null
null
null
code_scanner/tests/sample/some_useless.py
stargrep/rmm-utils
55725cb117015bbe35653120779c53ff39a999bc
[ "MIT" ]
null
null
null
def multiline_example(): # This is a pretty good example # of how you can spread comments # over multiple lines in Python """ If I really hate pressing `enter` and typing all those hash marks, I could just do this instead """ ''' This is another type of triple-single quote comm...
23.555556
56
0.625
61
424
4.327869
0.721311
0.090909
0.05303
0
0
0
0
0
0
0
0
0
0.294811
424
17
57
24.941176
0.882943
0.441038
0
0
0
0
0
0
0
0
0
0
0
1
1
true
0
0
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
1
1
0
0
0
1
0
0
3
cc3fb9ab9625ee619f47159133be2aabaca6ef92
400
py
Python
book/b1/1.5.py
as-you-say/study-python
1fc7b24760bba767dfbbb7fb2e5fc8eca3649eed
[ "MIT" ]
null
null
null
book/b1/1.5.py
as-you-say/study-python
1fc7b24760bba767dfbbb7fb2e5fc8eca3649eed
[ "MIT" ]
null
null
null
book/b1/1.5.py
as-you-say/study-python
1fc7b24760bba767dfbbb7fb2e5fc8eca3649eed
[ "MIT" ]
null
null
null
from decimal import Decimal # 1.5 decimal 모듈 # 정확한 10진법의 부동소수점 숫자가 필요한 경우에 사용. # 부동 소수점 불변 타입인 decimal.Decimal을 사용할 수 있다. # 정수 또는 문자열을 인수로 취한다 - 파이썬 3.1부터 사용할 수 있다. # sum(a for i in range(n)) # a 라는 수를 n 번 곱하기 print(sum(Decimal(0.1) for i in range(10))) # 10진수 비교 print(sum(Decimal(0.1) for i in range(10))) print(D...
21.052632
63
0.655
87
400
3.011494
0.517241
0.061069
0.091603
0.167939
0.343511
0.343511
0.343511
0.343511
0.343511
0.343511
0
0.074303
0.1925
400
18
64
22.222222
0.736842
0.4425
0
0.4
0
0
0.042056
0
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0.8
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
0
0
0
1
0
3
cc404598eba72300a98a02abc35b8ffb3eb182c9
1,544
py
Python
iniciante/python/1864-nossos-dias-nunca-voltarao.py
tfn10/beecrowd
1ebf19ca9a253eb326160f03145d20be33064969
[ "MIT" ]
null
null
null
iniciante/python/1864-nossos-dias-nunca-voltarao.py
tfn10/beecrowd
1ebf19ca9a253eb326160f03145d20be33064969
[ "MIT" ]
null
null
null
iniciante/python/1864-nossos-dias-nunca-voltarao.py
tfn10/beecrowd
1ebf19ca9a253eb326160f03145d20be33064969
[ "MIT" ]
null
null
null
def nossos_dias_nunca_voltarao(): frase = list() paragrafos = """ <p>E aí? Curtiu a Esco<u>l</u>a de <u>I</u>nverno deste ano? Para que esta Escola acontecesse, <u>f</u>oram muitos qu<u>e</u> trabalharam, seja na elaboração dos problemas, na conf<u>i</u>guração do Portal, na logí<u>s</u>tica do eve<u>n</u>t...
102.933333
664
0.70272
298
1,544
3.620805
0.5
0.009268
0.011121
0.042632
0.053753
0.038925
0
0
0
0
0
0
0.175518
1,544
14
665
110.285714
0.847604
0
0
0
0
0.166667
0.83614
0.029793
0
0
0
0
0
1
0.083333
false
0.083333
0.083333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
cc492c3ae3b57c06f980a4031516486dbc4e092b
118
py
Python
Licence 2/I33/TP 1/ex_1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 2/I33/TP 1/ex_1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 2/I33/TP 1/ex_1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
def somme_pair(L): somme = 0 for i in L: if i % 2 == 0: somme += i return somme print(somme_pair([3,2,5,7,4,1]))
16.857143
32
0.59322
27
118
2.518519
0.62963
0.264706
0
0
0
0
0
0
0
0
0
0.097826
0.220339
118
7
32
16.857143
0.641304
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.166667
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
cc49a63125c46622e36a968a9c322c66822c5521
548
py
Python
tests/test_import.py
ChromaticIsobar/chromatictools
746bb68547c383812a5996503328fc1ab40dacb4
[ "MIT" ]
null
null
null
tests/test_import.py
ChromaticIsobar/chromatictools
746bb68547c383812a5996503328fc1ab40dacb4
[ "MIT" ]
1
2022-03-10T14:43:55.000Z
2022-03-10T14:43:55.000Z
tests/test_import.py
ChromaticIsobar/chromatictools
746bb68547c383812a5996503328fc1ab40dacb4
[ "MIT" ]
null
null
null
"""Test import utilities""" from chromatictools import imports import types import unittest class TestImports(unittest.TestCase): """Test import utilities""" def test_import_success(self): """Test module imports correctly""" self.assertTrue(isinstance( imports.import_if_installed("math"), type...
24.909091
62
0.713504
59
548
6.491525
0.508475
0.104439
0.099217
0.16188
0.250653
0.250653
0.250653
0
0
0
0
0
0.173358
548
21
63
26.095238
0.845475
0.229927
0
0.285714
0
0
0.034913
0
0
0
0
0
0.142857
1
0.142857
false
0
0.571429
0
0.785714
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
1
0
1
0
0
3
cc5201ba943fa521338651be8ae0d0705fb0fd1f
4,347
py
Python
api/views.py
soltanoff/systemd_watcher
11550f0760c2c654c4f57e11295ec03b9e8ee181
[ "MIT" ]
5
2018-12-05T09:22:45.000Z
2020-03-17T15:36:21.000Z
api/views.py
soltanoff/systemd_watcher
11550f0760c2c654c4f57e11295ec03b9e8ee181
[ "MIT" ]
10
2018-10-29T09:45:27.000Z
2021-09-22T17:43:45.000Z
api/views.py
soltanoff/systemd_watcher
11550f0760c2c654c4f57e11295ec03b9e8ee181
[ "MIT" ]
null
null
null
from rest_framework import permissions from rest_framework.authentication import SessionAuthentication from rest_framework.response import Response from rest_framework.reverse import reverse from rest_framework.views import APIView from api.models import FavoriteServiceModel from service_monitor import ServiceMonitor ...
34.5
106
0.726938
410
4,347
7.526829
0.17561
0.042774
0.099806
0.17466
0.672715
0.592029
0.58652
0.58652
0.574854
0.485742
0
0
0.177824
4,347
125
107
34.776
0.863458
0
0
0.5
0
0
0.048079
0.009662
0
0
0
0
0
1
0.125
false
0
0.079545
0.102273
0.704545
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
cc7593cd7d9c5b547b3d279bc08487e336ef7902
103
py
Python
backend/microservices/mozilla-tts/config/server.py
MuhamedAbdalla/Automatic-Audio-Book-Based-On-Emotion-Detection
72130ad037b900461af5be6d80b27ab29c81de5e
[ "MIT" ]
3
2021-04-26T00:17:14.000Z
2021-07-04T15:30:09.000Z
backend/microservices/mozilla-tts/config/server.py
MuhamedAbdalla/Automatic-Audio-Book-Based-On-Emotion-Detection
72130ad037b900461af5be6d80b27ab29c81de5e
[ "MIT" ]
null
null
null
backend/microservices/mozilla-tts/config/server.py
MuhamedAbdalla/Automatic-Audio-Book-Based-On-Emotion-Detection
72130ad037b900461af5be6d80b27ab29c81de5e
[ "MIT" ]
null
null
null
import os SECRET_KEY_LENGTH = 32 APP_PATH = os.environ.get('APP_DIRECTORY') or os.path.abspath('.')
25.75
66
0.728155
17
103
4.176471
0.764706
0
0
0
0
0
0
0
0
0
0
0.022222
0.126214
103
4
66
25.75
0.766667
0
0
0
0
0
0.138614
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
cca64894a01e3d3c95464e1700d721597d01623e
287
py
Python
captif_data_structures/helpers.py
captif-nz/captif-data-structures
321a8338841e4986e0f8ab1c66743cba1e0c54c9
[ "MIT" ]
null
null
null
captif_data_structures/helpers.py
captif-nz/captif-data-structures
321a8338841e4986e0f8ab1c66743cba1e0c54c9
[ "MIT" ]
null
null
null
captif_data_structures/helpers.py
captif-nz/captif-data-structures
321a8338841e4986e0f8ab1c66743cba1e0c54c9
[ "MIT" ]
null
null
null
from datetime import datetime def tab_to_comma(contents): return ",".join(contents.split("\t")) def combine_date_time_fields(row, delete=False): row["datetime"] = datetime.combine(row["date"], row["time"]) if delete: del(row["date"], row["time"]) return row
20.5
64
0.655052
39
287
4.692308
0.538462
0.076503
0.10929
0.153005
0
0
0
0
0
0
0
0
0.174216
287
13
65
22.076923
0.772152
0
0
0
0
0
0.094406
0
0
0
0
0
0
1
0.25
false
0
0.125
0.125
0.625
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
ccd4fb59a8aec080171e2eeedf3810d2b7a9b584
1,408
py
Python
jobs/migrations/0005_auto_20201219_0925.py
Platz-Work/platzi-work-backend
367bb3b150ac22f673c4a2e01babecb19f1ee9ec
[ "MIT" ]
null
null
null
jobs/migrations/0005_auto_20201219_0925.py
Platz-Work/platzi-work-backend
367bb3b150ac22f673c4a2e01babecb19f1ee9ec
[ "MIT" ]
13
2020-12-18T01:32:03.000Z
2020-12-19T22:57:35.000Z
jobs/migrations/0005_auto_20201219_0925.py
Platz-Work/platzi-work-backend
367bb3b150ac22f673c4a2e01babecb19f1ee9ec
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2020-12-19 14:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('jobs', '0004_auto_20201219_0923'), ] operations = [ migrations.AlterField( model_name='category', name='name', ...
48.551724
291
0.632102
188
1,408
4.638298
0.287234
0.103211
0.110092
0.075688
0.774083
0.774083
0.735092
0.630734
0.630734
0.588303
0
0.043238
0.227983
1,408
28
292
50.285714
0.75897
0.03196
0
0.545455
1
0
0.399706
0.016899
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
0
0
1
1
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
ae9ff2840884fb69bd06313367d3fe6a9dc67fc8
347
py
Python
configs/ocrnet/ocrnet_hr18_512x1024_280k_cityscapes_rain_ft.py
cocolord/mmsegmentation
45db7269d7aa40f8aac5ddaabf7e1b4b01353ca5
[ "Apache-2.0" ]
null
null
null
configs/ocrnet/ocrnet_hr18_512x1024_280k_cityscapes_rain_ft.py
cocolord/mmsegmentation
45db7269d7aa40f8aac5ddaabf7e1b4b01353ca5
[ "Apache-2.0" ]
null
null
null
configs/ocrnet/ocrnet_hr18_512x1024_280k_cityscapes_rain_ft.py
cocolord/mmsegmentation
45db7269d7aa40f8aac5ddaabf7e1b4b01353ca5
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/ocrnet_hr18.py', '../_base_/datasets/cityscapes_rain.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_40k.py' ] resume_from = 'work_dirs/ocrnet_hr18_512x1024_240k_cityscapes_foggy_ft/iter_240000.pth' runner = dict(type='IterBasedRunner', max_iters=280000) data = d...
38.555556
87
0.752161
47
347
5
0.765957
0.076596
0
0
0
0
0
0
0
0
0
0.091772
0.089337
347
9
88
38.555556
0.651899
0
0
0
0
0
0.623563
0.58046
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
aea02371aefc2afe15f29d63cdd3a5bb8f2c593b
199
py
Python
MainLibPythonTest/unixtimeTest.py
emacslisp/pythonlib
5f299b24c3c4ea56fed48ed71d4a4c826e1cb36b
[ "Apache-2.0" ]
null
null
null
MainLibPythonTest/unixtimeTest.py
emacslisp/pythonlib
5f299b24c3c4ea56fed48ed71d4a4c826e1cb36b
[ "Apache-2.0" ]
null
null
null
MainLibPythonTest/unixtimeTest.py
emacslisp/pythonlib
5f299b24c3c4ea56fed48ed71d4a4c826e1cb36b
[ "Apache-2.0" ]
null
null
null
import MainLibPython dateTimeHelper = MainLibPython.DateTimeHelper() d = dateTimeHelper.datetime_timestamp('2012-03-28 06:53:40') print(d) s = dateTimeHelper.timestamp_datetime(1332888820) print(s)
24.875
60
0.81407
24
199
6.666667
0.625
0.3375
0
0
0
0
0
0
0
0
0
0.130435
0.075377
199
7
61
28.428571
0.73913
0
0
0
0
0
0.095477
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
aeb72bb281fdc94319496254587d3fa1644934b3
451
py
Python
backend/analytics/metrics/heart.py
scarletstudio/runflex
01e9a53afa4be17527089e5892e87a91a8d06bd1
[ "MIT" ]
null
null
null
backend/analytics/metrics/heart.py
scarletstudio/runflex
01e9a53afa4be17527089e5892e87a91a8d06bd1
[ "MIT" ]
null
null
null
backend/analytics/metrics/heart.py
scarletstudio/runflex
01e9a53afa4be17527089e5892e87a91a8d06bd1
[ "MIT" ]
null
null
null
from typing import List from core.models import Run, Track def get_target_heart_rate_time(run: Run, tracks: List[Track]) -> int: """ Calculates percentage of time spent in target heart rate zone during a run. Parameters: run (Run): Data about the run tracks (List[Track]): List of tracking dat...
28.1875
80
0.696231
67
451
4.58209
0.537313
0.107492
0.14658
0.123779
0
0
0
0
0
0
0
0.005764
0.230599
451
15
81
30.066667
0.878963
0.585366
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.5
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
1
0
0
1
0
1
0
0
3
aefca13ef950e6cc4ad50c7510d3c0a3854ae76b
372
py
Python
moment/migrations/0002_auto_20190402_1107.py
PPER/Webgame
7ee8e9b980b80bf107bf8549e62ff036f1e36822
[ "MIT" ]
null
null
null
moment/migrations/0002_auto_20190402_1107.py
PPER/Webgame
7ee8e9b980b80bf107bf8549e62ff036f1e36822
[ "MIT" ]
null
null
null
moment/migrations/0002_auto_20190402_1107.py
PPER/Webgame
7ee8e9b980b80bf107bf8549e62ff036f1e36822
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-04-02 03:07 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('moment', '0001_initial'), ] operations = [ migrations.DeleteModel( name='Choice', ), migrations.DeleteModel...
18.6
46
0.532258
33
372
5.969697
0.757576
0.213198
0.253807
0
0
0
0
0
0
0
0
0.07563
0.360215
372
19
47
19.578947
0.752101
0.115591
0
0.307692
1
0
0.103896
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
4e0d8039df280bcaaa0a994b6b8806afe11080e7
184
py
Python
scripts/npc/talk2152014.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
9
2021-04-26T11:59:29.000Z
2021-12-20T13:15:27.000Z
scripts/npc/talk2152014.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
scripts/npc/talk2152014.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
6
2021-07-14T06:32:05.000Z
2022-02-06T02:32:56.000Z
FATTIE = 2159014 sm.setSpeakerID(FATTIE) sm.sendSayOkay("I'm so hot, I'm probably blinding you. I also like balloons. And now, I won't share my balloons with you, so don't even ask.")
46
142
0.744565
35
184
3.914286
0.714286
0.029197
0
0
0
0
0
0
0
0
0
0.044872
0.152174
184
4
142
46
0.833333
0
0
0
0
0.333333
0.67027
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
4e0db235ebf36e8d87a36b6db9355ba03c525dc4
2,260
py
Python
boto3_type_annotations/boto3_type_annotations/efs/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
119
2018-12-01T18:20:57.000Z
2022-02-02T10:31:29.000Z
boto3_type_annotations/boto3_type_annotations/efs/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
15
2018-11-16T00:16:44.000Z
2021-11-13T03:44:18.000Z
boto3_type_annotations/boto3_type_annotations/efs/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
11
2019-05-06T05:26:51.000Z
2021-09-28T15:27:59.000Z
from typing import Optional from botocore.client import BaseClient from typing import Dict from typing import Union from botocore.paginate import Paginator from botocore.waiter import Waiter from typing import List class Client(BaseClient): def can_paginate(self, operation_name: str = None): pass def...
35.3125
227
0.697788
270
2,260
5.703704
0.240741
0.077273
0.057143
0.048701
0.441558
0.28961
0.1
0
0
0
0
0
0.214602
2,260
63
228
35.873016
0.867606
0
0
0.409091
0
0
0
0
0
0
0
0
0
1
0.409091
false
0.409091
0.159091
0
0.590909
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
4e0dd15a8f41bcd6fdc00344071dc5c2f10265a7
1,254
py
Python
src/schmetterling/hook/bitbucket.py
bjuvensjo/schmetterling
0cdbfe4f379a081d9d4711dd21866b90983365cf
[ "Apache-2.0" ]
null
null
null
src/schmetterling/hook/bitbucket.py
bjuvensjo/schmetterling
0cdbfe4f379a081d9d4711dd21866b90983365cf
[ "Apache-2.0" ]
null
null
null
src/schmetterling/hook/bitbucket.py
bjuvensjo/schmetterling
0cdbfe4f379a081d9d4711dd21866b90983365cf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from vang.bitbucket.enable_webhooks import enable_web_hook from vang.core.core import select_keys from schmetterling.core.log import log_params_return from schmetterling.hook.state import HookState from schmetterling.hook.state import Repo from schmetterling.setup.state import SetupState # TOD...
29.162791
65
0.747209
188
1,254
4.734043
0.281915
0.060674
0.101124
0.089888
0.275281
0.121348
0.121348
0.076404
0.076404
0
0
0.000941
0.152313
1,254
42
66
29.857143
0.836312
0.110048
0
0.142857
0
0
0.044924
0
0
0
0
0.02381
0
1
0.178571
false
0
0.214286
0.107143
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
1
1
0
0
3
4e172dfe722c5db091d0ed1773324ebb999e7b78
171
py
Python
ebuildtester/utils.py
xp-vit/ebuildtester
5e8daf314baa3b62123c87a5a9577f2f82085c7b
[ "BSD-3-Clause" ]
23
2018-04-19T21:09:46.000Z
2022-01-11T14:40:23.000Z
ebuildtester/utils.py
xp-vit/ebuildtester
5e8daf314baa3b62123c87a5a9577f2f82085c7b
[ "BSD-3-Clause" ]
41
2018-02-08T12:41:52.000Z
2022-01-11T18:07:37.000Z
ebuildtester/utils.py
xp-vit/ebuildtester
5e8daf314baa3b62123c87a5a9577f2f82085c7b
[ "BSD-3-Clause" ]
13
2018-02-08T08:35:51.000Z
2021-04-17T10:56:34.000Z
import sys def massage_string(string): """Return a string.""" if sys.version_info[0] < 3: return string else: return string.decode("UTF-8")
15.545455
37
0.596491
23
171
4.347826
0.695652
0.24
0
0
0
0
0
0
0
0
0
0.024194
0.274854
171
10
38
17.1
0.782258
0.093567
0
0
0
0
0.033557
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.666667
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
9d7244ba679e115bc0cff155f1e97d50e40b3506
1,912
py
Python
adnuntius/util.py
Adnuntius/api-tools
ed5345b774c9703bb9af19b870c865a42cc021b3
[ "MIT" ]
1
2022-01-28T13:51:34.000Z
2022-01-28T13:51:34.000Z
adnuntius/util.py
Adnuntius/api-tools
ed5345b774c9703bb9af19b870c865a42cc021b3
[ "MIT" ]
1
2019-08-13T15:05:18.000Z
2019-08-26T03:34:10.000Z
adnuntius/util.py
Adnuntius/api-tools
ed5345b774c9703bb9af19b870c865a42cc021b3
[ "MIT" ]
null
null
null
"""Api utilities for the Adnuntius APIs.""" __copyright__ = "Copyright (c) 2021 Adnuntius AS. All rights reserved." import datetime import uuid import random from dateutil.parser import parse from dateutil.tz import tzutc dns_cache = {} def date_to_string(date): """ Converts a python datetime into the st...
26.191781
109
0.678347
273
1,912
4.695971
0.413919
0.014041
0.023401
0.024961
0
0
0
0
0
0
0
0.012777
0.22228
1,912
72
110
26.555556
0.849361
0.298117
0
0
0
0
0.089063
0.023438
0
0
0
0
0
1
0.212121
false
0.090909
0.151515
0.030303
0.575758
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
9dbe1ad0388773759cfdf2724d4e7196efdca82e
200
py
Python
simplemooc/simplemooc/courses/urls.py
BrenoFroes/Curso-Django
54577daa755c3b463c495d6247ad4ac23b05f196
[ "MIT" ]
null
null
null
simplemooc/simplemooc/courses/urls.py
BrenoFroes/Curso-Django
54577daa755c3b463c495d6247ad4ac23b05f196
[ "MIT" ]
null
null
null
simplemooc/simplemooc/courses/urls.py
BrenoFroes/Curso-Django
54577daa755c3b463c495d6247ad4ac23b05f196
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from simplemooc.courses.views import courses urlpatterns = [ url(r'^$', courses, name='courses'), url(r'^(?P<pk>\d+)/', details, name='details'), ]
25
51
0.66
27
200
4.888889
0.62963
0.060606
0
0
0
0
0
0
0
0
0
0
0.145
200
7
52
28.571429
0.77193
0
0
0
0
0
0.145
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
9df3edf4d0b6ee1ed4fc47357394e6329ff2a0f5
163
py
Python
main.py
nexovec/RPG_clovece_nezlob_se
fbef3a983a955a62867d24171c46f9b2a974f441
[ "MIT" ]
null
null
null
main.py
nexovec/RPG_clovece_nezlob_se
fbef3a983a955a62867d24171c46f9b2a974f441
[ "MIT" ]
null
null
null
main.py
nexovec/RPG_clovece_nezlob_se
fbef3a983a955a62867d24171c46f9b2a974f441
[ "MIT" ]
null
null
null
def move_up(t): print(f"""\033[2A""") def main(): print("yaay1") move_up(2) print("yaay2") pass if __name__ == "__main__": main()
16.3
27
0.509202
22
163
3.318182
0.681818
0.164384
0
0
0
0
0
0
0
0
0
0.060345
0.288344
163
10
28
16.3
0.568966
0
0
0
0
0
0.16129
0
0
0
0
0
0
1
0.222222
false
0.111111
0
0
0.222222
0.333333
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
1
0
0
0
0
0
3
9df793326bc1fc8c44b279adf26349724143e29e
538
py
Python
test/unit/serialization/dataclasses/serialization_dataclasses.py
vishalbelsare/FEDOT
3a6f06b29cf2f173008d119f7cb5dc705a45f695
[ "BSD-3-Clause" ]
null
null
null
test/unit/serialization/dataclasses/serialization_dataclasses.py
vishalbelsare/FEDOT
3a6f06b29cf2f173008d119f7cb5dc705a45f695
[ "BSD-3-Clause" ]
null
null
null
test/unit/serialization/dataclasses/serialization_dataclasses.py
vishalbelsare/FEDOT
3a6f06b29cf2f173008d119f7cb5dc705a45f695
[ "BSD-3-Clause" ]
null
null
null
from dataclasses import dataclass from typing import Any, Dict, TypeVar from fedot.core.serializers import INSTANCE_OR_CALLABLE @dataclass class DumpObjectTestCase: test_input: INSTANCE_OR_CALLABLE test_answer: Dict[str, str] @dataclass class EncoderTestCase: test_input: INSTANCE_OR_CALLABLE test_a...
18.551724
55
0.786245
68
538
5.955882
0.338235
0.123457
0.222222
0.133333
0.469136
0.217284
0.217284
0.217284
0.217284
0
0
0
0.159851
538
28
56
19.214286
0.896018
0
0
0.421053
0
0
0
0
0
0
0
0
0
1
0
true
0
0.157895
0
0.789474
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
3
3b02db1831174726f00ada32322d562cbba7e3b5
3,022
py
Python
msg.py
mfatihaktas/edge-load-balance
b866ca47ba37a605eeba05658b1d302f6855a23f
[ "MIT" ]
null
null
null
msg.py
mfatihaktas/edge-load-balance
b866ca47ba37a605eeba05658b1d302f6855a23f
[ "MIT" ]
null
null
null
msg.py
mfatihaktas/edge-load-balance
b866ca47ba37a605eeba05658b1d302f6855a23f
[ "MIT" ]
null
null
null
import jsonpickle, pprint, enum class Msg(): def __init__(self, _id, payload, src_id=None, src_ip=None, dst_id=None, dst_ip=None): self._id = _id self.payload = payload self.src_id = src_id self.src_ip = src_ip self.dst_id = dst_id self.dst_ip = dst_ip def __repr__(self): return "Msg(id= {} \n\t paylo...
26.508772
186
0.69325
504
3,022
3.781746
0.140873
0.044071
0.040399
0.047744
0.252886
0.156348
0.070304
0.070304
0.070304
0
0
0.003518
0.153541
3,022
113
187
26.743363
0.741595
0
0
0.103448
0
0.011494
0.085705
0
0
0
0
0
0
1
0.241379
false
0
0.011494
0.149425
0.586207
0.022989
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
d1858e3d44de03ec9bff5a83c2dea83647cb1955
7,022
py
Python
rules/ordinal_mappings/propsys.py
deptofdefense/SalSA
7ef771398e3d59597bade95d0a23540de0842e2a
[ "MIT" ]
84
2018-01-07T19:43:45.000Z
2021-12-23T14:17:44.000Z
rules/ordinal_mappings/propsys.py
deptofdefense/SalSA
7ef771398e3d59597bade95d0a23540de0842e2a
[ "MIT" ]
7
2018-04-02T20:24:28.000Z
2019-06-07T21:48:04.000Z
rules/ordinal_mappings/propsys.py
deptofdefense/SalSA
7ef771398e3d59597bade95d0a23540de0842e2a
[ "MIT" ]
18
2017-12-26T19:44:46.000Z
2021-09-13T12:21:02.000Z
mapping = { 3:'GetProxyDllInfo', 4:'ClearPropVariantArray', 5:'ClearVariantArray', 6:'DllCanUnloadNow', 7:'DllGetClassObject', 8:'DllRegisterServer', 9:'DllUnregisterServer', 10:'InitPropVariantFromBooleanVector', 11:'InitPropVariantFromBuffer', 12:'InitPropVariantFromCLSID', 13:'InitPropVariantFromDoubleVector', 14:'I...
31.488789
49
0.841783
476
7,022
12.34874
0.932773
0
0
0
0
0
0
0
0
0
0
0.103413
0.0319
7,022
223
50
31.488789
0.761253
0
0
0
0
0
0.761071
0.61085
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
d1984a15de56187da8f102af669c9b6b850c1fec
1,236
py
Python
model/bhamon_orchestra_model/database/data_storage.py
BenjaminHamon/BuildService
2ca12f9ae74e9cbf732229849f6cd6d13f40151a
[ "MIT" ]
2
2021-01-28T15:56:50.000Z
2021-03-02T06:27:09.000Z
model/bhamon_orchestra_model/database/data_storage.py
BenjaminHamon/BuildService
2ca12f9ae74e9cbf732229849f6cd6d13f40151a
[ "MIT" ]
null
null
null
model/bhamon_orchestra_model/database/data_storage.py
BenjaminHamon/BuildService
2ca12f9ae74e9cbf732229849f6cd6d13f40151a
[ "MIT" ]
null
null
null
import abc import contextlib from typing import Any, List, Optional class DataStorage(abc.ABC): """ Base class for a data storage """ @abc.abstractmethod def get_keys(self, prefix: str) -> List[str]: """ Get all keys """ @abc.abstractmethod def exists(self, key: str) -> bool: """ Return a boolean indicat...
22.888889
92
0.668285
179
1,236
4.597765
0.27933
0.185905
0.194411
0.144593
0.374241
0.374241
0.323208
0.323208
0.221142
0.114216
0
0.00201
0.194984
1,236
53
93
23.320755
0.825126
0.304207
0
0.391304
0
0
0
0
0
0
0
0
0
1
0.391304
false
0
0.130435
0
0.565217
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
d19e21ea1a4c32342bd3b9fb9c597cf8ce3206e8
924
py
Python
tests/test_status_codes.py
bugfree-software/the-internet-solution-python
b5bea3c2b827b9d77688ebadc5510cb04ee18f04
[ "MIT" ]
7
2015-10-06T10:28:12.000Z
2020-05-11T16:15:57.000Z
tests/test_status_codes.py
bugfree-software/the-internet-solution-python
b5bea3c2b827b9d77688ebadc5510cb04ee18f04
[ "MIT" ]
1
2020-02-15T13:57:51.000Z
2020-02-15T13:57:51.000Z
tests/test_status_codes.py
bugfree-software/the-internet-solution-python
b5bea3c2b827b9d77688ebadc5510cb04ee18f04
[ "MIT" ]
2
2017-11-20T04:58:29.000Z
2022-03-02T18:00:18.000Z
from . import TheInternetTestCase from helium.api import Link, find_all from httplib import HTTPConnection from urlparse import urlparse class StatusCodesTest(TheInternetTestCase): def get_page(self): return "http://the-internet.herokuapp.com/status_codes" def test_status_code_200(self): self._test_status_code(2...
30.8
70
0.778139
132
924
5.128788
0.348485
0.206795
0.186115
0.125554
0.209749
0
0
0
0
0
0
0.029593
0.122294
924
30
71
30.8
0.805179
0
0
0
0
0
0.090811
0
0
0
0
0
0.034483
1
0.241379
false
0
0.137931
0.034483
0.517241
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
0
0
1
0
0
0
0
0
0
0
3
d1ee3b28358a6ea20401881ea7f0b41cc1c94e83
664
py
Python
PyOpenWorm/website.py
jaideep-seth/PyOpenWorm
c36baeda9590334ba810296934973da34f0eab78
[ "MIT" ]
1
2019-03-22T12:02:36.000Z
2019-03-22T12:02:36.000Z
PyOpenWorm/website.py
BioComSoftware/PyOpenWorm
32084f3570b4ea7fbdb1a4d20bd469d4af6ab28f
[ "MIT" ]
1
2015-05-23T19:26:57.000Z
2015-05-26T02:04:43.000Z
PyOpenWorm/website.py
BioComSoftware/PyOpenWorm
32084f3570b4ea7fbdb1a4d20bd469d4af6ab28f
[ "MIT" ]
1
2015-06-21T17:34:15.000Z
2015-06-21T17:34:15.000Z
from rdflib.term import URIRef from .document import BaseDocument from .dataObject import DatatypeProperty class Website(BaseDocument): """ A representation of a website """ url = DatatypeProperty() ''' A URL for the website ''' title = DatatypeProperty() ''' The official name for the website ...
23.714286
80
0.700301
78
664
5.705128
0.5
0.026966
0.058427
0
0
0
0
0
0
0
0
0.001866
0.192771
664
27
81
24.592593
0.828358
0.043675
0
0
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.230769
0.153846
0.846154
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
d1faac598af7d9a6ad3b505d31a17d8ff94625d9
397
py
Python
losses/face_losses.py
MrCPlusPlus/MobileFaceNet_Tensorflow_Pretrain
a251b47dad562ffc352c568d5c887ae4c6d1bc55
[ "MIT" ]
7
2018-08-23T07:32:07.000Z
2020-08-06T06:14:12.000Z
losses/face_losses.py
MrCPlusPlus/MobileFaceNet_Tensorflow_Pretrain
a251b47dad562ffc352c568d5c887ae4c6d1bc55
[ "MIT" ]
3
2018-08-25T18:36:43.000Z
2019-03-28T07:24:43.000Z
losses/face_losses.py
MrCPlusPlus/MobileFaceNet_Tensorflow_Pretrain
a251b47dad562ffc352c568d5c887ae4c6d1bc55
[ "MIT" ]
4
2018-08-23T07:32:17.000Z
2020-11-29T05:50:34.000Z
import tensorflow as tf import math # This repo only provide softmax_loss. For more different losses, please review the original git: # https://github.com/xsr-ai/MobileFaceNet_TF or https://github.com/deepinsight/insightface def softmax_loss(logits, label): softmax_loss = tf.reduce_mean(tf.nn.sparse_softmax_cross_...
49.625
114
0.801008
59
397
5.20339
0.694915
0.143322
0.091205
0
0
0
0
0
0
0
0
0
0.115869
397
8
115
49.625
0.874644
0.463476
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
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
0
1
0
0
3
d1fc14c857cda4fa8f64d60e61948f21f35cd46e
12,613
py
Python
src/win/bootDeviceWin_SemcNor.py
ufo2011/NXP-MCUBootUtility
5d1840b1beee997e5453484309f5466ce166bfbe
[ "Apache-2.0" ]
174
2018-12-30T16:20:36.000Z
2022-03-24T03:02:02.000Z
src/win/bootDeviceWin_SemcNor.py
ufo2011/NXP-MCUBootUtility
5d1840b1beee997e5453484309f5466ce166bfbe
[ "Apache-2.0" ]
138
2019-01-02T16:18:44.000Z
2022-03-30T15:57:24.000Z
src/win/bootDeviceWin_SemcNor.py
ufo2011/NXP-MCUBootUtility
5d1840b1beee997e5453484309f5466ce166bfbe
[ "Apache-2.0" ]
86
2018-12-27T13:16:58.000Z
2022-02-03T11:42:35.000Z
# -*- coding: utf-8 -*- ########################################################################### ## Python code generated with wxFormBuilder (version Oct 26 2018) ## http://www.wxformbuilder.org/ ## ## PLEASE DO *NOT* EDIT THIS FILE! ########################################################################### impor...
46.542435
178
0.724966
1,993
12,613
4.331159
0.090316
0.100788
0.125116
0.087118
0.779657
0.73019
0.712465
0.635658
0.455862
0.455862
0
0.028463
0.122572
12,613
270
179
46.714815
0.751514
0.019662
0
0.176829
1
0
0.025977
0
0
0
0
0
0
1
0.036585
false
0.006098
0.012195
0
0.054878
0
0
0
0
null
0
0
0
0
1
1
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
d1fc40ee2a4583b6761fcaccb07bfd77b49ad72d
663
py
Python
guardiancl/console.py
guardiaocl/guardiaocl-servers
86c203656c2e9d1844a17963a4e5c2239b4eda1a
[ "Apache-2.0" ]
null
null
null
guardiancl/console.py
guardiaocl/guardiaocl-servers
86c203656c2e9d1844a17963a4e5c2239b4eda1a
[ "Apache-2.0" ]
null
null
null
guardiancl/console.py
guardiaocl/guardiaocl-servers
86c203656c2e9d1844a17963a4e5c2239b4eda1a
[ "Apache-2.0" ]
null
null
null
import logging import os import sys logger = logging.getLogger(__name__) def clear(): os.system('cls') if os.name == "nt" else sys.stdout.write(os.popen('clear').read()) def log(msg): print("%s" % msg) def info(msg, show_console=False): logger.info(msg) if show_console: print("[info] %s" % m...
20.71875
87
0.625943
97
663
4.154639
0.298969
0.218362
0.069479
0.188586
0.456576
0
0
0
0
0
0
0
0.214178
663
31
88
21.387097
0.773512
0
0
0.166667
0
0
0.075415
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.375
0.208333
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
0
0
1
0
0
0
0
0
0
0
3
d1fc5f5b79e3be5afca075ffc4057d3770ec38f9
1,356
py
Python
subcollections/feeds.py
uq-eresearch/uqam
b15e480e6c6e530c6d50a950ed289fce2ee53ef3
[ "BSD-3-Clause" ]
1
2017-12-14T12:49:39.000Z
2017-12-14T12:49:39.000Z
subcollections/feeds.py
uq-eresearch/uqam
b15e480e6c6e530c6d50a950ed289fce2ee53ef3
[ "BSD-3-Clause" ]
7
2017-11-23T23:34:45.000Z
2017-11-23T23:35:08.000Z
subcollections/feeds.py
uq-eresearch/uqam
b15e480e6c6e530c6d50a950ed289fce2ee53ef3
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.syndication.views import Feed from subcollections.models import Collection from django.shortcuts import get_object_or_404 from django.utils.feedgenerator import Atom1Feed class AllCollectionsFeed(Feed): """ Provides a feed for all collections in the system. """ feed_type = Atom1Fee...
26.076923
62
0.705015
158
1,356
5.936709
0.348101
0.06823
0.085288
0.057569
0.142857
0.100213
0.100213
0.100213
0
0
0
0.008467
0.216077
1,356
51
63
26.588235
0.873942
0.103982
0
0.2
0
0
0.090678
0.027966
0
0
0
0
0
1
0.3
false
0
0.133333
0.3
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
d1fd3181760bf492f3acea9a2366b3fa03847dd6
309
py
Python
products/views.py
VasuGoel/django-pyshop
ed5104b56522d437308ad2903e2fdf78899288ef
[ "MIT" ]
1
2019-09-04T12:06:43.000Z
2019-09-04T12:06:43.000Z
products/views.py
VasuGoel/django-pyshop
ed5104b56522d437308ad2903e2fdf78899288ef
[ "MIT" ]
null
null
null
products/views.py
VasuGoel/django-pyshop
ed5104b56522d437308ad2903e2fdf78899288ef
[ "MIT" ]
1
2019-09-04T12:06:48.000Z
2019-09-04T12:06:48.000Z
from django.http import HttpResponse from django.shortcuts import render from .models import Product # Create your views here. def index(request): products = Product.objects.all() # return HttpResponse('Welcome to the products page!') return render(request, 'index.html', {'products': products})
30.9
64
0.747573
39
309
5.923077
0.641026
0.08658
0
0
0
0
0
0
0
0
0
0
0.152104
309
9
65
34.333333
0.881679
0.245955
0
0
0
0
0.078261
0
0
0
0
0
0
1
0.166667
false
0
0.5
0
0.833333
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
0
1
0
0
3
ae08a8818f1514c7dfccb2044e024108cb09c49f
78
py
Python
main.py
tenaimi/tic-tac-toe
f8a44609430ca370ac6df402b69977cd8017741b
[ "MIT" ]
null
null
null
main.py
tenaimi/tic-tac-toe
f8a44609430ca370ac6df402b69977cd8017741b
[ "MIT" ]
null
null
null
main.py
tenaimi/tic-tac-toe
f8a44609430ca370ac6df402b69977cd8017741b
[ "MIT" ]
null
null
null
from src.game import Game def main(): game = Game() game.start() main()
13
25
0.628205
12
78
4.083333
0.583333
0.326531
0
0
0
0
0
0
0
0
0
0
0.217949
78
6
26
13
0.803279
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
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
ae1b2936a9ee7ceb6b9751edfde18833d316456c
1,703
py
Python
tests/mappers/validators/test_length.py
Arfey/aiohttp_admin2
2b3782389ec9e25809635811b76ef8111b27d8ba
[ "MIT" ]
12
2021-10-15T11:48:12.000Z
2022-03-24T07:31:43.000Z
tests/mappers/validators/test_length.py
Arfey/aiohttp_admin2
2b3782389ec9e25809635811b76ef8111b27d8ba
[ "MIT" ]
2
2021-12-29T16:31:05.000Z
2021-12-30T00:50:40.000Z
tests/mappers/validators/test_length.py
Arfey/aiohttp_admin2
2b3782389ec9e25809635811b76ef8111b27d8ba
[ "MIT" ]
null
null
null
""" In this file we cower corrected work of `length` validator. 1. If we don't have a parameterized validator, do nothing 2. If value more than max_value then raise an error 3. If value less than max_value then all is fine 4. If value less than min_value then raise an error 5. If value more than mi...
25.41791
66
0.669994
266
1,703
4.131579
0.210526
0.087352
0.065514
0.081893
0.712466
0.66515
0.654231
0.654231
0.646042
0.620564
0
0.030943
0.221961
1,703
66
67
25.80303
0.798491
0.428655
0
0.173913
0
0
0
0
0
0
0
0
0
1
0.26087
true
0
0.130435
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
3
ae4ffbc9b13bd09066f356cc79ce8cebfb2f4931
152
py
Python
Workshops/pozitifNegatif.py
brkyydnmz/Python
8cde0421edda6ac5b7fd30e8f20ad7cb6e1708b0
[ "MIT" ]
null
null
null
Workshops/pozitifNegatif.py
brkyydnmz/Python
8cde0421edda6ac5b7fd30e8f20ad7cb6e1708b0
[ "MIT" ]
null
null
null
Workshops/pozitifNegatif.py
brkyydnmz/Python
8cde0421edda6ac5b7fd30e8f20ad7cb6e1708b0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- sayi = int(input("Sayı giriniz:")) if sayi>0: print("Pozitif") elif sayi==0: print("Sıfır") else: print("Negatif")
15.2
34
0.572368
21
152
4.142857
0.761905
0.114943
0.229885
0
0
0
0
0
0
0
0
0.02459
0.197368
152
10
35
15.2
0.688525
0.138158
0
0
0
0
0.246154
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
ae502dc5fc1c9df21af2e0d6f95aa0f9ace582d1
217
py
Python
actors/urls.py
sks444/awesome100
ae9f16d4101ffc2be9140e77cec1f0b67b725af0
[ "MIT" ]
2
2018-10-30T05:30:50.000Z
2020-05-22T14:42:35.000Z
actors/urls.py
sks444/awesome100
ae9f16d4101ffc2be9140e77cec1f0b67b725af0
[ "MIT" ]
34
2018-04-13T11:01:44.000Z
2018-04-18T23:06:20.000Z
actors/urls.py
sks444/awesome100
ae9f16d4101ffc2be9140e77cec1f0b67b725af0
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ # Ignore PycodestyleBear (W605) url('^actors/$', views.ListActor.as_view()), url('^actor/(?P<pk>\d+)/$', views.DetailActor.as_view()), ]
24.111111
61
0.658986
28
217
5.035714
0.714286
0.085106
0
0
0
0
0
0
0
0
0
0.016129
0.142857
217
8
62
27.125
0.741935
0.133641
0
0
0
0
0.155914
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
ae5c70c21f8639e4980b3bee3a59d9934b73bbd4
76
py
Python
Estudo/cursoemvideo/Python/016.0-Aula08-Modulos.py
ndrsilva/ndrsilva
bf2214c9a1ea3a9a107fcdd7fd7cb3443df24e2a
[ "MIT" ]
null
null
null
Estudo/cursoemvideo/Python/016.0-Aula08-Modulos.py
ndrsilva/ndrsilva
bf2214c9a1ea3a9a107fcdd7fd7cb3443df24e2a
[ "MIT" ]
null
null
null
Estudo/cursoemvideo/Python/016.0-Aula08-Modulos.py
ndrsilva/ndrsilva
bf2214c9a1ea3a9a107fcdd7fd7cb3443df24e2a
[ "MIT" ]
null
null
null
#math #ceil #floor #trunc #pow #sqrt #factorial
9.5
14
0.447368
7
76
4.857143
1
0
0
0
0
0
0
0
0
0
0
0
0.460526
76
8
15
9.5
0.829268
0.447368
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
ae79c7d5d2ba2a4ae5be2b8f8b5c0f8823b361d3
287
py
Python
users/serializers.py
inf3rnus/ReNa-Chat-Django-Backend
983f34e0f1e6db99cf6be3a4fbfcf64bf7eaf108
[ "bzip2-1.0.6" ]
1
2020-09-09T23:07:49.000Z
2020-09-09T23:07:49.000Z
users/serializers.py
inf3rnus/ReNa-Chat-Django-Backend
983f34e0f1e6db99cf6be3a4fbfcf64bf7eaf108
[ "bzip2-1.0.6" ]
8
2021-04-08T21:58:27.000Z
2022-03-12T00:44:58.000Z
users/serializers.py
inf3rnus/ReNa-Chat-Django-Backend
983f34e0f1e6db99cf6be3a4fbfcf64bf7eaf108
[ "bzip2-1.0.6" ]
1
2020-12-14T07:10:57.000Z
2020-12-14T07:10:57.000Z
from rest_framework import serializers from rest_framework.serializers import ModelSerializer from . import models class UserSerializer(serializers.ModelSerializer): class Meta: model = models.CustomUser fields = ('pk', 'email', 'username', 'bio', 'profile_picture')
35.875
70
0.749129
30
287
7.066667
0.633333
0.075472
0.160377
0
0
0
0
0
0
0
0
0
0.160279
287
8
70
35.875
0.879668
0
0
0
0
0
0.114583
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.714286
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
0
1
0
0
3
ae7c161fa5f3d00bdd50d66e70266ea0c3e91d14
662
py
Python
pypa/intro.py
sawin0/pypa
7a20598a067fd12674c26a0e8cc321a4eda2112c
[ "MIT" ]
1
2021-06-21T16:07:51.000Z
2021-06-21T16:07:51.000Z
pypa/intro.py
sawin0/pypa
7a20598a067fd12674c26a0e8cc321a4eda2112c
[ "MIT" ]
null
null
null
pypa/intro.py
sawin0/pypa
7a20598a067fd12674c26a0e8cc321a4eda2112c
[ "MIT" ]
null
null
null
print('PyPA \nVersion:1.1.0') print('Hello, I am PyPA. I am command line based personal assistant.') print('I can : ') print('Tell time, date and day.') print('Find meanings of words.') print('Tell current weather.') print('Kill process.') print('Search information on wikipedia.') print('Solve maths for you.') print('...
34.842105
97
0.725076
101
662
4.752475
0.712871
0.0125
0
0
0
0
0
0
0
0
0
0.005093
0.110272
662
18
98
36.777778
0.809847
0
0
0
0
0
0.722054
0
0
0
0
0
0
1
0
true
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
3
ae8daa8838c722a70d4c1b627fd1d834dbc01cb0
351
py
Python
fixtures/app.py
AzatAza/december-api-tests
dd120fd0c479b035dbe84ccd1fb1dd687d84af5d
[ "Apache-2.0" ]
null
null
null
fixtures/app.py
AzatAza/december-api-tests
dd120fd0c479b035dbe84ccd1fb1dd687d84af5d
[ "Apache-2.0" ]
null
null
null
fixtures/app.py
AzatAza/december-api-tests
dd120fd0c479b035dbe84ccd1fb1dd687d84af5d
[ "Apache-2.0" ]
null
null
null
from fixtures.auth.api import Auth from fixtures.register.api import Register from fixtures.requests import Client from fixtures.users.api import User class App: def __init__(self, url): self.url = url self.register = Register(self) self.auth = Auth(self) self.user_info = User(self...
25.071429
42
0.68661
48
351
4.916667
0.354167
0.20339
0
0
0
0
0
0
0
0
0
0
0.233618
351
13
43
27
0.877323
0
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.545455
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
ae9e2e31a0e99e83244d503b4eafc774272fe852
8,562
py
Python
analytics/models.py
12remember/qrl-analytics
17d728225026354a9b2af3bd81cf11cef06279df
[ "MIT" ]
null
null
null
analytics/models.py
12remember/qrl-analytics
17d728225026354a9b2af3bd81cf11cef06279df
[ "MIT" ]
1
2022-03-03T21:55:24.000Z
2022-03-03T21:55:24.000Z
analytics/models.py
12remember/quantascan-backend
17d728225026354a9b2af3bd81cf11cef06279df
[ "MIT" ]
null
null
null
from django.db import models class QrlBlockchainBlocks(models.Model): spider_name = models.CharField(max_length=50000, blank=True, null=True) spider_version = models.CharField(max_length=50000, blank=True, null=True) block_number = models.BigIntegerField(primary_key=True) block_found = models.Boolean...
48.925714
126
0.770848
1,082
8,562
5.810536
0.12939
0.087323
0.126133
0.164944
0.771115
0.736281
0.655002
0.592811
0.471131
0.398918
0
0.024925
0.137818
8,562
174
127
49.206897
0.826741
0.056996
0
0.188976
0
0
0.031634
0.023694
0
0
0
0
0
1
0
false
0
0.007874
0
0.889764
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
88179f566122daae9256b3aef23f62e29fab2f07
663
py
Python
2020/9/part1.py
harnoldhouse-kmacewicz/adventofcode
b2d40f7b20f12a469a0eb43fc0f7a06e7d69be19
[ "Apache-2.0" ]
null
null
null
2020/9/part1.py
harnoldhouse-kmacewicz/adventofcode
b2d40f7b20f12a469a0eb43fc0f7a06e7d69be19
[ "Apache-2.0" ]
null
null
null
2020/9/part1.py
harnoldhouse-kmacewicz/adventofcode
b2d40f7b20f12a469a0eb43fc0f7a06e7d69be19
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 spawn_dict = {} current_position = 25 with open('./input.txt', 'r') as input: list_lines = input.read().split('\n') for i in range(len(list_lines)): spawn_dict[i] = int(list_lines[i]) input.close() for item in spawn_dict: passed = False for x in range(current_positi...
27.625
83
0.60181
90
663
4.233333
0.4
0.314961
0.125984
0.188976
0.204724
0.204724
0.204724
0
0
0
0
0.016632
0.27451
663
24
84
27.625
0.775468
0.025641
0
0
0
0
0.021672
0
0
0
0
0
0
1
0
false
0.166667
0
0
0
0.055556
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
0
0
0
0
1
0
0
0
0
0
3
88225707adaa52ddfe37cf998b1a28ed17d7d717
21
py
Python
script/python/__init__.py
stefan0722/gitflowv2
35f8254e51debcebd09995a812ff90a98687e0a3
[ "Apache-2.0" ]
null
null
null
script/python/__init__.py
stefan0722/gitflowv2
35f8254e51debcebd09995a812ff90a98687e0a3
[ "Apache-2.0" ]
null
null
null
script/python/__init__.py
stefan0722/gitflowv2
35f8254e51debcebd09995a812ff90a98687e0a3
[ "Apache-2.0" ]
null
null
null
__all__ = ["helper"]
10.5
20
0.619048
2
21
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
21
1
21
21
0.5
0
0
0
0
0
0.285714
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
8858014f141ca67be5919cd15740e57c255d174a
52
py
Python
soldajustica/gallery/__init__.py
patrickporto/soldajustica
191299012a8142c8d1c073f025a2ff2d1a2d267c
[ "MIT" ]
null
null
null
soldajustica/gallery/__init__.py
patrickporto/soldajustica
191299012a8142c8d1c073f025a2ff2d1a2d267c
[ "MIT" ]
null
null
null
soldajustica/gallery/__init__.py
patrickporto/soldajustica
191299012a8142c8d1c073f025a2ff2d1a2d267c
[ "MIT" ]
null
null
null
default_app_config = 'gallery.apps.GalleryAppConfig'
52
52
0.865385
6
52
7.166667
1
0
0
0
0
0
0
0
0
0
0
0
0.038462
52
1
52
52
0.86
0
0
0
0
0
0.54717
0.54717
0
0
0
0
0
1
0
false
0
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
8874748cc3222069d55cb57e7a006cf69a0fdfed
208
py
Python
OOP/Exercises/Encapsulation_Exercise/1_wild_cat_zoo/project/lion.py
tankishev/Python
60e511fc901f136b88c681f77f209fe2f8c46447
[ "MIT" ]
2
2022-03-04T11:39:03.000Z
2022-03-13T07:13:23.000Z
OOP/Exercises/Encapsulation_Exercise/1_wild_cat_zoo/project/lion.py
tankishev/Python
60e511fc901f136b88c681f77f209fe2f8c46447
[ "MIT" ]
null
null
null
OOP/Exercises/Encapsulation_Exercise/1_wild_cat_zoo/project/lion.py
tankishev/Python
60e511fc901f136b88c681f77f209fe2f8c46447
[ "MIT" ]
null
null
null
from .animal import Animal class Lion(Animal): _MONEY_FOR_CARE = 50 def __init__(self, name: str, gender: str, age: int) -> None: super().__init__(name, gender, age, Lion._MONEY_FOR_CARE)
20.8
65
0.673077
30
208
4.2
0.633333
0.126984
0.190476
0
0
0
0
0
0
0
0
0.012121
0.206731
208
9
66
23.111111
0.751515
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.8
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
0
0
0
0
0
0
1
0
0
3
88797205733a6b4204cc7c1ce77ac6c550860dea
265
py
Python
retropq/min_bst.py
6851-2021/retroactive-priority-queue
d41c3eaf706c38284950bd51043ad238055d2aea
[ "MIT" ]
null
null
null
retropq/min_bst.py
6851-2021/retroactive-priority-queue
d41c3eaf706c38284950bd51043ad238055d2aea
[ "MIT" ]
null
null
null
retropq/min_bst.py
6851-2021/retroactive-priority-queue
d41c3eaf706c38284950bd51043ad238055d2aea
[ "MIT" ]
null
null
null
from .treap import Treap class MinBST(Treap): def __init__(self): super().__init__(min) def __setitem__(self, key, value): super().__setitem__(key, (value, key)) def __getitem__(self, key): return super().__getitem__(key)[0]
20.384615
46
0.630189
32
265
4.46875
0.5
0.097902
0
0
0
0
0
0
0
0
0
0.004902
0.230189
265
12
47
22.083333
0.696078
0
0
0
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0.125
0.125
0.75
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
887b5cd2b45a70d54d8738de682da73da6b42660
1,150
py
Python
05_oop_inherit/OOP_04.py
teacher144123/AdvancedPython_2019
86c23257f7ef54f59ed5dccedf42bd646300f4ae
[ "MIT" ]
null
null
null
05_oop_inherit/OOP_04.py
teacher144123/AdvancedPython_2019
86c23257f7ef54f59ed5dccedf42bd646300f4ae
[ "MIT" ]
null
null
null
05_oop_inherit/OOP_04.py
teacher144123/AdvancedPython_2019
86c23257f7ef54f59ed5dccedf42bd646300f4ae
[ "MIT" ]
3
2019-03-06T12:12:19.000Z
2019-04-08T06:55:27.000Z
# Parent class class Dog: def __init__(self, name, age): self.name = name self.age = age def description(self): return "{} is {} years old".format(self.name, self.age) def speak(self, sound): return "{} says {}".format(self.name, sound) # Child classes (inherits from Dog ...
23.469388
70
0.648696
152
1,150
4.848684
0.447368
0.065129
0.075984
0.046133
0.056988
0
0
0
0
0
0
0.005519
0.212174
1,150
48
71
23.958333
0.807947
0.213913
0
0.125
0
0
0.130872
0
0
0
0
0
0
1
0.21875
false
0.03125
0
0.15625
0.5625
0.21875
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
888a402fb2c030e612029276cf30a733df41063e
404
py
Python
slaid/models/base.py
mdrio/slaid
67c85f0d1702bced1c089bfb3c20ba1cfbc9c225
[ "MIT" ]
null
null
null
slaid/models/base.py
mdrio/slaid
67c85f0d1702bced1c089bfb3c20ba1cfbc9c225
[ "MIT" ]
null
null
null
slaid/models/base.py
mdrio/slaid
67c85f0d1702bced1c089bfb3c20ba1cfbc9c225
[ "MIT" ]
null
null
null
import abc import numpy as np from slaid.commons import ImageInfo class Model(abc.ABC): image_info = ImageInfo.create('bgr', 'yx', 'first') @abc.abstractmethod def predict(self, array: np.array) -> np.array: pass class Factory(abc.ABC): def __init__(self, filename): self._filename...
17.565217
55
0.653465
52
404
4.942308
0.519231
0.046693
0.155642
0
0
0
0
0
0
0
0
0
0.235149
404
22
56
18.363636
0.831715
0
0
0.285714
0
0
0.024752
0
0
0
0
0
0
1
0.214286
false
0.142857
0.214286
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
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
88b50631091fdfd4a06a98608842b1b3f261c7d0
2,006
py
Python
fraccalc/analytic/functions.py
JerryALee/fraccalc
eea1728232a622872b5eb3b7cffa1558164a67a8
[ "MIT" ]
null
null
null
fraccalc/analytic/functions.py
JerryALee/fraccalc
eea1728232a622872b5eb3b7cffa1558164a67a8
[ "MIT" ]
null
null
null
fraccalc/analytic/functions.py
JerryALee/fraccalc
eea1728232a622872b5eb3b7cffa1558164a67a8
[ "MIT" ]
null
null
null
import numpy as np from ..basic import gamma, gammaRatio class Constant: ''' f(x) = C ''' def __init__(self, C=1): self.C = C def evaluate(self, xq, v=0, a=0): return self.C * (xq - a)**(-v) / gamma(1 - v) def diffint(self, v, a=0): def f(x): retur...
20.469388
127
0.462114
311
2,006
2.871383
0.157556
0.020157
0.06159
0.095185
0.447928
0.430011
0.408735
0.321389
0.246361
0.246361
0
0.012872
0.380359
2,006
98
128
20.469388
0.705551
0.054337
0
0.5
0
0
0
0
0
0
0
0
0
1
0.321429
false
0.017857
0.035714
0.125
0.660714
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
ee22a3439dcfb3194a8a6fbfb2b3a57e3527d3c0
223
py
Python
try.py
himgoyal594/My-Python-Exercise
37ffff35844e68c55b3e08bd24041b8dfbf7f90a
[ "Apache-2.0" ]
null
null
null
try.py
himgoyal594/My-Python-Exercise
37ffff35844e68c55b3e08bd24041b8dfbf7f90a
[ "Apache-2.0" ]
null
null
null
try.py
himgoyal594/My-Python-Exercise
37ffff35844e68c55b3e08bd24041b8dfbf7f90a
[ "Apache-2.0" ]
null
null
null
hours = raw_input('Enter Hours:') try : int(hours) print hours except: print 'plz enter number only' rate = raw_input('Enter Rate:') try: int(rate) print hours except: print 'plz enter number only'
15.928571
33
0.650224
32
223
4.46875
0.375
0.111888
0.181818
0.293706
0.545455
0.545455
0.545455
0.545455
0
0
0
0
0.242152
223
13
34
17.153846
0.846154
0
0
0.666667
0
0
0.29148
0
0
0
0
0
0
0
null
null
0
0
null
null
0.333333
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
ee5b661982cb3a518286e2f2ec55b9de6aaa5fdd
8,000
py
Python
tests/test.py
wenhaoLong/vnpyTrader
ff37e288042b9d9f9350a1c528a53c77d56ae849
[ "MIT" ]
null
null
null
tests/test.py
wenhaoLong/vnpyTrader
ff37e288042b9d9f9350a1c528a53c77d56ae849
[ "MIT" ]
null
null
null
tests/test.py
wenhaoLong/vnpyTrader
ff37e288042b9d9f9350a1c528a53c77d56ae849
[ "MIT" ]
2
2021-03-07T18:13:21.000Z
2021-12-13T10:20:10.000Z
import sys from PyQt5 import QtCore from PyQt5.QtWidgets import * # 参数设置框 class ParamDialog(QDialog): # 报告生成时间 time = 0 # 资金分配量 money_allocation = 0 # 交易合约 contract = "" # 周期 period = 1 # 单位 unit = 0 # 保证金 commission = 0 # 手续费 deposit = 0 # 模型名称 model_na...
35.39823
67
0.628375
1,000
8,000
4.866
0.151
0.244554
0.245993
0.090423
0.655364
0.655364
0.655364
0.648582
0.648582
0.648582
0
0.038309
0.243
8,000
226
68
35.39823
0.765192
0.070375
0
0.291667
0
0
0.019223
0
0
0
0
0
0
1
0.013889
false
0
0.020833
0
0.173611
0
0
0
0
null
1
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ee74c341012182af6f2029352ae0c0962602c293
747
py
Python
metricbeat/tests/system/test_elasticsearch.py
AppCoffee/beats
ade2b1b65b495c2f7f8c9d55c5b82730e66398c9
[ "Apache-2.0" ]
null
null
null
metricbeat/tests/system/test_elasticsearch.py
AppCoffee/beats
ade2b1b65b495c2f7f8c9d55c5b82730e66398c9
[ "Apache-2.0" ]
2
2021-03-25T21:54:40.000Z
2021-06-01T22:23:34.000Z
metricbeat/tests/system/test_elasticsearch.py
qianying1/beats-source
4d96fc78b099447a7afb4882edc015cc03c70df4
[ "Apache-2.0" ]
null
null
null
import os import metricbeat import unittest class Test(metricbeat.BaseTest): COMPOSE_SERVICES = ['elasticsearch'] @unittest.skipUnless(metricbeat.INTEGRATION_TESTS, "integration test") def test_node(self): """ elasticsearch node metricset test """ self.check_metricset("el...
27.666667
77
0.651941
77
747
6.12987
0.363636
0.144068
0.118644
0.165254
0.5
0.5
0.5
0.29661
0.29661
0.29661
0
0.006897
0.223561
747
26
78
28.730769
0.806897
0.097724
0
0.142857
0
0
0.180223
0
0
0
0
0
0
1
0.214286
false
0
0.214286
0.071429
0.642857
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
ee76035a995c55fafcc8c6fdc888d2107de11aad
397
py
Python
src/trash/naive_bayes.py
Adonis-galaxy/AI_Final_Project
98b9a815a2053e85fd07ac47cb7fbac47d7b83a0
[ "MIT" ]
1
2022-01-22T16:11:32.000Z
2022-01-22T16:11:32.000Z
src/trash/naive_bayes.py
Adonis-galaxy/AI_Final_Project
98b9a815a2053e85fd07ac47cb7fbac47d7b83a0
[ "MIT" ]
null
null
null
src/trash/naive_bayes.py
Adonis-galaxy/AI_Final_Project
98b9a815a2053e85fd07ac47cb7fbac47d7b83a0
[ "MIT" ]
null
null
null
from sklearn.datasets import load_iris from sklearn.model_selection import train_test_split from sklearn.naive_bayes import GaussianNB from sklearn.naive_bayes import BernoulliNB from sklearn.naive_bayes import ComplementNB from trash.base import baseline def _naive_bayes(TF_ID): model = ComplementNB(alpha=1....
28.357143
52
0.801008
56
397
5.303571
0.482143
0.185185
0.161616
0.212121
0.272727
0
0
0
0
0
0
0.005848
0.138539
397
13
53
30.538462
0.862573
0
0
0
0
0
0.020202
0
0
0
0
0
0
1
0.090909
false
0
0.545455
0
0.636364
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
1
0
1
0
0
3
c99a8ac6543a6725f1abf3ceb15113ce45d353b2
697
py
Python
tests/test_char_rnn.py
blogle/tensorpack
16eddbe395e960a113f26b25a51a1db2032808fd
[ "Apache-2.0" ]
null
null
null
tests/test_char_rnn.py
blogle/tensorpack
16eddbe395e960a113f26b25a51a1db2032808fd
[ "Apache-2.0" ]
null
null
null
tests/test_char_rnn.py
blogle/tensorpack
16eddbe395e960a113f26b25a51a1db2032808fd
[ "Apache-2.0" ]
1
2021-04-30T15:34:24.000Z
2021-04-30T15:34:24.000Z
from case_script import TestPythonScript import os def random_content(): return ('Lorem ipsum dolor sit amet\n' 'consetetur sadipscing elitr\n' 'sed diam nonumy eirmod tempor invidunt ut labore\n') class CharRNNTest(TestPythonScript): @property def script(self): return '...
24.892857
78
0.628407
86
697
5.05814
0.639535
0.05977
0.091954
0.110345
0
0
0
0
0
0
0
0.005693
0.243902
697
27
79
25.814815
0.819734
0
0
0
0
0
0.243902
0.045911
0
0
0
0
0.052632
1
0.263158
false
0
0.105263
0.105263
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
c9b61ac78957baf54a4df8a587a8a3be0b01c9f5
549
py
Python
tests/test_lz77.py
tjclement/fwtool.py
97849d31851b00acc1e549228c451cc3040b4023
[ "MIT" ]
null
null
null
tests/test_lz77.py
tjclement/fwtool.py
97849d31851b00acc1e549228c451cc3040b4023
[ "MIT" ]
null
null
null
tests/test_lz77.py
tjclement/fwtool.py
97849d31851b00acc1e549228c451cc3040b4023
[ "MIT" ]
null
null
null
from io import BytesIO from fwtool.lz77 import find_longest_match, deflateLz77, inflateLz77 def test_find_longest_match(): assert find_longest_match(b"aaabab", 2) == (-1, -1) assert find_longest_match(b"aaabab", 4) == (-1, -1) assert find_longest_match(b"abaabab", 3) == (3, 3) assert find_longest_match(b"a" * 8*10...
39.214286
68
0.724954
81
549
4.740741
0.493827
0.171875
0.25
0.229167
0.28125
0.221354
0.130208
0
0
0
0
0.082816
0.120219
549
14
69
39.214286
0.712215
0
0
0
0
0
0.047273
0
0
0
0
0
0.416667
1
0.166667
false
0
0.166667
0
0.333333
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
1
0
0
0
0
0
0
0
0
0
3
c9c1ac1f0847514cc96c29cb0cb8bf7a2c5511e5
505
py
Python
iridauploader/parsers/exceptions/directory_error.py
COMBAT-SARS-COV-2/irida-uploader
b9d04d187d6a5a9fdcaef5b27135965ffac99db0
[ "Apache-2.0" ]
7
2019-01-25T16:56:11.000Z
2021-01-12T15:32:08.000Z
iridauploader/parsers/exceptions/directory_error.py
COMBAT-SARS-COV-2/irida-uploader
b9d04d187d6a5a9fdcaef5b27135965ffac99db0
[ "Apache-2.0" ]
80
2019-01-29T14:54:26.000Z
2022-03-25T18:51:51.000Z
iridauploader/parsers/exceptions/directory_error.py
COMBAT-SARS-COV-2/irida-uploader
b9d04d187d6a5a9fdcaef5b27135965ffac99db0
[ "Apache-2.0" ]
9
2019-03-14T09:58:05.000Z
2022-01-06T20:14:45.000Z
class DirectoryError(Exception): """ This error is thrown when the parser cannot access a directory """ def __init__(self, message, directory): """Initialize a IridaResourceError. Args: message: the summary message that's causing the error. """ self._message...
22.954545
66
0.621782
52
505
5.884615
0.519231
0.107843
0.091503
0
0
0
0
0
0
0
0
0
0.30099
505
21
67
24.047619
0.866856
0.318812
0
0.2
0
0
0
0
0
0
0
0
0
1
0.3
false
0
0
0.2
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
0
0
1
1
0
0
3
c9f8f6787704590dafd23b333f5ad4e6888b95c9
258
py
Python
ee/urls.py
adamb70/posthog
54ae8f0e70092f86b4aefbd93b56680dbd28b1c5
[ "MIT" ]
null
null
null
ee/urls.py
adamb70/posthog
54ae8f0e70092f86b4aefbd93b56680dbd28b1c5
[ "MIT" ]
null
null
null
ee/urls.py
adamb70/posthog
54ae8f0e70092f86b4aefbd93b56680dbd28b1c5
[ "MIT" ]
null
null
null
from posthog.api import DefaultRouterPlusPlus from .api import hooks, license def extend_api_router(router: DefaultRouterPlusPlus): router.register(r"license", license.LicenseViewSet) router.register(r"hooks", hooks.HookViewSet, basename="hooks")
28.666667
66
0.794574
30
258
6.766667
0.5
0.08867
0.147783
0
0
0
0
0
0
0
0
0
0.108527
258
8
67
32.25
0.882609
0
0
0
0
0
0.065891
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.6
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
0
1
0
0
3