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
02c745fa7f2cf373aa67b69a94481e287d094de3
197
py
Python
swift/codegen/codegen.py
redsun82/codeql
cbdd4927cee593b715d8469240ce1d31edaaef9b
[ "MIT" ]
null
null
null
swift/codegen/codegen.py
redsun82/codeql
cbdd4927cee593b715d8469240ce1d31edaaef9b
[ "MIT" ]
4
2022-03-10T10:47:29.000Z
2022-03-10T10:53:59.000Z
swift/codegen/codegen.py
redsun82/codeql
cbdd4927cee593b715d8469240ce1d31edaaef9b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Driver script to run all checked in code generation """ from lib import generator import dbschemegen if __name__ == "__main__": generator.run(dbschemegen.generate)
21.888889
59
0.746193
26
197
5.346154
0.846154
0
0
0
0
0
0
0
0
0
0
0.005988
0.152284
197
8
60
24.625
0.826347
0.375635
0
0
1
0
0.068966
0
0
0
0
0
0
1
0
true
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
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
b8294b2cc95cb7fa109ae568f34d54fde683e040
28
py
Python
Daemon/__init__.py
TanyaAdams1/WechatEncrypt
e3437a465275de51c2f2b26ca46d249ed3a48d97
[ "Apache-2.0" ]
1
2017-08-09T06:58:44.000Z
2017-08-09T06:58:44.000Z
Daemon/__init__.py
TanyaAdams1/WechatEncrypt
e3437a465275de51c2f2b26ca46d249ed3a48d97
[ "Apache-2.0" ]
null
null
null
Daemon/__init__.py
TanyaAdams1/WechatEncrypt
e3437a465275de51c2f2b26ca46d249ed3a48d97
[ "Apache-2.0" ]
null
null
null
from Daemon.daemon import *
14
27
0.785714
4
28
5.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.142857
28
1
28
28
0.916667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
b8313d21c2cfcc2b2e804e222da97a21fa726e74
129
py
Python
CODE/web_server/server/pams/serializers/__init__.py
andrewbartels1/Marine-Mammal-Acoustics
9f833d97ac26ecd51b4c4e276a815ab9d2b67bb6
[ "MIT" ]
1
2022-03-29T12:24:11.000Z
2022-03-29T12:24:11.000Z
CODE/web_server/server/pams/serializers/__init__.py
andrewbartels1/Marine-Mammal-Acoustics
9f833d97ac26ecd51b4c4e276a815ab9d2b67bb6
[ "MIT" ]
null
null
null
CODE/web_server/server/pams/serializers/__init__.py
andrewbartels1/Marine-Mammal-Acoustics
9f833d97ac26ecd51b4c4e276a815ab9d2b67bb6
[ "MIT" ]
null
null
null
from .audio_clip import AudioClipSerializer from .buoy import BuoySerializer from .classification import ClassificationSerializer
43
52
0.891473
13
129
8.769231
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.085271
129
3
52
43
0.966102
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b87eb0e4a24c0a4d7ccc5106e9816db13a0dea10
96
py
Python
software/temcagt/temcagt/imaging/montaging/__init__.py
htem/GridTapeStage
0b4764bc4ea8d64970ea481a32d6c7383d301989
[ "RSA-MD" ]
2
2020-02-07T10:34:23.000Z
2021-09-24T02:28:10.000Z
software/temcagt/temcagt/imaging/montaging/__init__.py
htem/GridTapeStage
0b4764bc4ea8d64970ea481a32d6c7383d301989
[ "RSA-MD" ]
null
null
null
software/temcagt/temcagt/imaging/montaging/__init__.py
htem/GridTapeStage
0b4764bc4ea8d64970ea481a32d6c7383d301989
[ "RSA-MD" ]
null
null
null
#!/usr/bin/env python from . import planning from . import roi __all__ = ['planning', 'roi']
12
29
0.666667
13
96
4.615385
0.692308
0.333333
0
0
0
0
0
0
0
0
0
0
0.177083
96
7
30
13.714286
0.759494
0.208333
0
0
0
0
0.146667
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
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
1
0
1
0
0
5
b88aa2536213b9d299f145b6bdf523515e255df2
55
py
Python
nxcl/experimental/__init__.py
yuneg11/NXCL
98a0f39071d7ae97aaf9dc5f1284faecfb7663ce
[ "MIT" ]
null
null
null
nxcl/experimental/__init__.py
yuneg11/NXCL
98a0f39071d7ae97aaf9dc5f1284faecfb7663ce
[ "MIT" ]
1
2022-03-26T19:50:17.000Z
2022-03-26T19:51:41.000Z
nxcl/experimental/__init__.py
yuneg11/NXCL
98a0f39071d7ae97aaf9dc5f1284faecfb7663ce
[ "MIT" ]
null
null
null
from . import utils from .experiment import Experiment
18.333333
34
0.818182
7
55
6.428571
0.571429
0
0
0
0
0
0
0
0
0
0
0
0.145455
55
2
35
27.5
0.957447
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b22a9d71656938b0116963544f36de04f13c867b
184
py
Python
s3netcdfapi/data/__init__.py
meracan/s3-netcdf-api
920d09ef7b1a205230ea2c76eabcb4853616992c
[ "MIT" ]
1
2020-08-30T01:47:45.000Z
2020-08-30T01:47:45.000Z
s3netcdfapi/data/__init__.py
meracan/s3-netcdf-api
920d09ef7b1a205230ea2c76eabcb4853616992c
[ "MIT" ]
null
null
null
s3netcdfapi/data/__init__.py
meracan/s3-netcdf-api
920d09ef7b1a205230ea2c76eabcb4853616992c
[ "MIT" ]
null
null
null
from .getData import getData,_getData,getDimData from .getIndex import getIndex from .interpolation import _checkBounds,timeSeries,mesh from .utils import cleanObject,swapAxe,swapAxes
36.8
55
0.858696
22
184
7.090909
0.590909
0
0
0
0
0
0
0
0
0
0
0
0.086957
184
4
56
46
0.928571
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b253f6a95e4a6ada2a9892c4c193238df42e44de
1,563
py
Python
pythonAlgorithm/dp/painthouse.py
Sky-zzt/lintcodePractice
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
[ "MIT" ]
1
2020-09-15T07:58:55.000Z
2020-09-15T07:58:55.000Z
pythonAlgorithm/dp/painthouse.py
Sky-zzt/lintcodePractice
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
[ "MIT" ]
null
null
null
pythonAlgorithm/dp/painthouse.py
Sky-zzt/lintcodePractice
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
[ "MIT" ]
null
null
null
# f[i][0] = min{f[i-1][1] + cost[i-1][0], f[i-1][2] + cost[i-1][0]} # f[i][1] = min{f[i-1][0] + cost[i-1][1], f[i-1][2] + cost[i-1][1]} # f[i][2] = min{f[i-1][0] + cost[i-1][2], f[i-1][1] + cost[i-1][2]} ''' 序列型做法 class Solution: """ @param costs: n x 3 cost matrix @return: An integer, the minimum cost to paint all houses """ def minCost(self, cost): # write your code here l = len(cost) if (l==0): return 0 f = [[0] * 3 for _ in range(l+1)] f[0][0] = f[0][1] = f[0][2] = 0 for i in range(1,l+1): for j in range(3): f[i][j]=sys.maxsize for k in range(3): if k != j: f[i][j] = min(f[i][j], f[i - 1][k] + cost[i - 1][j]) return min(f[l][0],f[l][1],f[l][2]) ''' #坐标型做法 import sys class Solution: """ @param costs: n x 3 cost matrix @return: An integer, the minimum cost to paint all houses """ def minCost(self, cost): # write your code here l = len(cost) if (l==0): return 0 f = [[0] * 3 for _ in range(l)] f[0][0] = cost[0][0] f[0][1] = cost[0][1] f[0][2] = cost[0][2] for i in range(1,l): for j in range(3): f[i][j]=sys.maxsize for k in range(3): if k != j: f[i][j] = min(f[i][j], f[i - 1][k] + cost[i][j]) return min(f[l-1][0],f[l-1][1],f[l-1][2]) s=Solution() print(s.minCost([[14,2,11],[11,14,5],[14,3,10]]))
29.490566
76
0.425464
294
1,563
2.255102
0.170068
0.051282
0.040724
0.027149
0.843137
0.779789
0.73454
0.666667
0.627451
0.627451
0
0.089479
0.349328
1,563
52
77
30.057692
0.562439
0.59309
0
0
0
0
0
0
0
0
0
0.038462
0
1
0.055556
false
0
0.055556
0
0.222222
0.055556
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
5
b2541cb6c2dcb9115d8393480dc400217f164d87
58
py
Python
callsmusic/queues/__init__.py
PercyOfficial/yakariTG-vc-music-play-bot
839d79b1374b5b887623124681ebfe6ccc5968f4
[ "Apache-2.0" ]
null
null
null
callsmusic/queues/__init__.py
PercyOfficial/yakariTG-vc-music-play-bot
839d79b1374b5b887623124681ebfe6ccc5968f4
[ "Apache-2.0" ]
null
null
null
callsmusic/queues/__init__.py
PercyOfficial/yakariTG-vc-music-play-bot
839d79b1374b5b887623124681ebfe6ccc5968f4
[ "Apache-2.0" ]
1
2021-09-19T09:49:29.000Z
2021-09-19T09:49:29.000Z
from .queues import put, get, is_empty, task_done, clear
29
57
0.758621
10
58
4.2
1
0
0
0
0
0
0
0
0
0
0
0
0.155172
58
1
58
58
0.857143
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b27e0fa582206c96749cf69bf2121bdd8d94aef9
248
py
Python
UpperProvince.py
PaulEG/Various-Projects
871c25c8cb14309144a94681e5b844f79f8dc69b
[ "Artistic-2.0" ]
null
null
null
UpperProvince.py
PaulEG/Various-Projects
871c25c8cb14309144a94681e5b844f79f8dc69b
[ "Artistic-2.0" ]
null
null
null
UpperProvince.py
PaulEG/Various-Projects
871c25c8cb14309144a94681e5b844f79f8dc69b
[ "Artistic-2.0" ]
null
null
null
MARV 2 21 0 180 1800 910 MARV 5 01 0 0 0 0 MARV 5 02 0 0 x 0 MARV 5 14 0 90 1000 855 MARV 5 67 0 180 1800 910 MARV 6 16 + 0 18 x 160 MARV 6 46 + 0 0 0 x MARV 9 01 0 x x 0 MARV 9 06 0 180 1800 910 MARV 9 09 0 180 1800 920 MARV 9 12 0 180 1800 910
20.666667
24
0.665323
77
248
2.142857
0.337662
0.072727
0.242424
0.266667
0.272727
0
0
0
0
0
0
0.694611
0.326613
248
11
25
22.545455
0.293413
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
1
1
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
1
0
0
0
0
0
0
0
0
5
b28db7e19965ed1c9bd67357d7ca1550d6668641
59
py
Python
models/__init__.py
ryujaehun/pytorch_imagnet
f7d51bb6afa7cf7a10b5822b0e4db987e283184a
[ "MIT" ]
1
2020-03-28T12:41:24.000Z
2020-03-28T12:41:24.000Z
models/__init__.py
ryujaehun/pytorch_imagnet
f7d51bb6afa7cf7a10b5822b0e4db987e283184a
[ "MIT" ]
null
null
null
models/__init__.py
ryujaehun/pytorch_imagnet
f7d51bb6afa7cf7a10b5822b0e4db987e283184a
[ "MIT" ]
null
null
null
from __future__ import absolute_import #from .vgg import *
19.666667
38
0.813559
8
59
5.375
0.625
0
0
0
0
0
0
0
0
0
0
0
0.135593
59
2
39
29.5
0.843137
0.305085
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b29ac1835532e254574dc324f3eb9a33caede576
239
py
Python
commandlib/__init__.py
crdoconnor/commandlib
749e55e810f0e6dfa7dcc6afc51df6c7b7ec10ad
[ "MIT" ]
16
2018-01-26T03:05:28.000Z
2021-12-10T18:47:03.000Z
commandlib/__init__.py
crdoconnor/commandlib
749e55e810f0e6dfa7dcc6afc51df6c7b7ec10ad
[ "MIT" ]
2
2018-05-04T15:00:19.000Z
2018-10-06T18:43:16.000Z
commandlib/__init__.py
crdoconnor/commandlib
749e55e810f0e6dfa7dcc6afc51df6c7b7ec10ad
[ "MIT" ]
2
2016-09-05T15:21:12.000Z
2019-01-18T14:54:04.000Z
from commandlib.command import Command, run, python from commandlib.command_path import CommandPath, python_bin from commandlib.deprecated import Commands from commandlib.exceptions import CommandError __version__ = "DEVELOPMENT_VERSION"
34.142857
59
0.861925
28
239
7.107143
0.535714
0.281407
0.211055
0
0
0
0
0
0
0
0
0
0.096234
239
6
60
39.833333
0.921296
0
0
0
0
0
0.079498
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0
1
0
0
null
1
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
1
0
0
0
0
5
b2a13e1e1102655508043f1d3c4b321f27afd880
144
py
Python
data/preprocessing/__init__.py
omiderfanmanesh/dengue-infections-prediction
6b4e4aa4af6f6e2cc581fd7828634bbfdc446340
[ "Apache-2.0" ]
null
null
null
data/preprocessing/__init__.py
omiderfanmanesh/dengue-infections-prediction
6b4e4aa4af6f6e2cc581fd7828634bbfdc446340
[ "Apache-2.0" ]
null
null
null
data/preprocessing/__init__.py
omiderfanmanesh/dengue-infections-prediction
6b4e4aa4af6f6e2cc581fd7828634bbfdc446340
[ "Apache-2.0" ]
1
2021-06-05T10:05:44.000Z
2021-06-05T10:05:44.000Z
# Copyright (c) 2021, Omid Erfanmanesh, All rights reserved. from .encoders import Encoders from .pca import PCA from .scalers import Scalers
24
61
0.777778
20
144
5.6
0.65
0
0
0
0
0
0
0
0
0
0
0.033058
0.159722
144
5
62
28.8
0.892562
0.402778
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
a28bc43dc7c22344e15b33e0dbec9472f40737b7
1,345
py
Python
src/mongo_manager/mongo_utils.py
muerterauda/mongo_manager
af6133508605feb78745c06f13462f12613de50e
[ "MIT" ]
null
null
null
src/mongo_manager/mongo_utils.py
muerterauda/mongo_manager
af6133508605feb78745c06f13462f12613de50e
[ "MIT" ]
null
null
null
src/mongo_manager/mongo_utils.py
muerterauda/mongo_manager
af6133508605feb78745c06f13462f12613de50e
[ "MIT" ]
null
null
null
def aggregate_match(diccionario: dict) -> dict: return {'$match': diccionario} def aggregate_group(diccionario: dict) -> dict: return {'$group': diccionario} def aggregate_project(diccionario: dict) -> dict: return {'$project': diccionario} def aggregate_unwind(valor: str) -> dict: return {'$unwind': valor} def aggregate_sort(diccionario: dict) -> dict: return {'$sort': diccionario} def mongo_lower(valor: str) -> dict: return {'$toLower': valor} def mongo_push(valor: dict) -> dict: return {'$push': valor} def mongo_upper(valor: str) -> dict: return {'$toUpper': valor} def mongo_avg(valor: str) -> dict: return {'$avg': valor} def mongo_sum(valor: int) -> dict: return {'$sum': valor} def mongo_in(valor: list) -> dict: return {'$in': valor} def mongo_nin(valor: list) -> dict: return {'$nin': valor} def mongo_gt(valor: int) -> dict: return {'$gt': valor} def mongo_gte(valor: int) -> dict: return {'$gte': valor} def mongo_lt(valor: list) -> dict: return {'$lt': valor} def mongo_and(valor: list) -> dict: return {'$and': valor} def mongo_or(valor: list) -> dict: return {'$or': valor} def mongo_concat(valor: list) -> dict: return {'$concat': valor} def mongo_exists(existe: bool = True) -> dict: return {'$exists': existe}
17.933333
49
0.63197
172
1,345
4.831395
0.197674
0.22864
0.203369
0.137184
0
0
0
0
0
0
0
0
0.19777
1,345
74
50
18.175676
0.770158
0
0
0
0
0
0.073606
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
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
1
1
0
0
5
a2d3acf95f380f1ec5633bda09c646c23af3d9f7
216
py
Python
insta/tests.py
kitili/insta
530402c1df75469b988843bd4b4b95410beeddcc
[ "Unlicense", "MIT" ]
null
null
null
insta/tests.py
kitili/insta
530402c1df75469b988843bd4b4b95410beeddcc
[ "Unlicense", "MIT" ]
null
null
null
insta/tests.py
kitili/insta
530402c1df75469b988843bd4b4b95410beeddcc
[ "Unlicense", "MIT" ]
null
null
null
from django.test import TestCase from . models import Comment class CommentTestClass(TestCase): def setUp(self): self.new_comment = Comment(comment= "comment") self.new_comment.save()
19.636364
54
0.680556
25
216
5.8
0.56
0.289655
0.193103
0
0
0
0
0
0
0
0
0
0.231481
216
11
55
19.636364
0.873494
0
0
0
0
0
0.032258
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
1
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
1
0
1
0
0
5
a2e2faf05c0d2844cf41ee29f5b6ccc5b2fcfc12
59
py
Python
exam/__init__.py
fiveio/easy-codef-py
97bd6831909e4d31af0ec7ed479b63fc977cd302
[ "MIT" ]
1
2019-09-17T00:47:08.000Z
2019-09-17T00:47:08.000Z
exam/__init__.py
fiveio/easy-codef-py
97bd6831909e4d31af0ec7ed479b63fc977cd302
[ "MIT" ]
null
null
null
exam/__init__.py
fiveio/easy-codef-py
97bd6831909e4d31af0ec7ed479b63fc977cd302
[ "MIT" ]
null
null
null
from .devconfig import public_key, client_id, client_secret
59
59
0.864407
9
59
5.333333
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.084746
59
1
59
59
0.888889
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0c0fe87459b09213169aa8199dba3c8e59982e5c
194
py
Python
data_structure/string/__init__.py
id-shiv/utillib
fc1186ac9cc505b884ff7cfdeccbea2bddf78d8a
[ "MIT" ]
null
null
null
data_structure/string/__init__.py
id-shiv/utillib
fc1186ac9cc505b884ff7cfdeccbea2bddf78d8a
[ "MIT" ]
null
null
null
data_structure/string/__init__.py
id-shiv/utillib
fc1186ac9cc505b884ff7cfdeccbea2bddf78d8a
[ "MIT" ]
null
null
null
import re def sub_string(string, start, end): """ Retrieve substring of a string between specified start and end """ return re.search('%s(.*)%s' % (start, end), string).group(1)
27.714286
66
0.639175
28
194
4.392857
0.678571
0.130081
0
0
0
0
0
0
0
0
0
0.006494
0.206186
194
7
67
27.714286
0.792208
0.319588
0
0
0
0
0.068376
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
0c1b1b0991d18df9fa97e80c648cbfd13b9c60c5
128
py
Python
sanic_openapi/__init__.py
artcg/sanic-openapi
ad6064427ca7310dc17d52729b516184d65ab1e3
[ "MIT" ]
null
null
null
sanic_openapi/__init__.py
artcg/sanic-openapi
ad6064427ca7310dc17d52729b516184d65ab1e3
[ "MIT" ]
1
2021-03-16T06:45:56.000Z
2021-03-16T06:45:56.000Z
sanic_openapi/__init__.py
artcg/sanic-openapi
ad6064427ca7310dc17d52729b516184d65ab1e3
[ "MIT" ]
null
null
null
from .swagger import oas3_blueprint, swagger_blueprint __version__ = "0.6.2" __all__ = ["swagger_blueprint", "oas3_blueprint"]
25.6
54
0.78125
16
128
5.5
0.625
0.295455
0
0
0
0
0
0
0
0
0
0.043478
0.101563
128
4
55
32
0.721739
0
0
0
0
0
0.28125
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.666667
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
1
0
0
1
0
5
0c223ed0d1c5619049d8c5936f293ab76d76a1f0
188
py
Python
Set 8/PR2.py
rcsiit1/python-practicals
76558dcbff2a6ae81ef4a5cb1d14c43a11c98faf
[ "Apache-2.0" ]
1
2018-11-17T08:01:16.000Z
2018-11-17T08:01:16.000Z
Set 8/PR2.py
rcsiit1/python-practicals
76558dcbff2a6ae81ef4a5cb1d14c43a11c98faf
[ "Apache-2.0" ]
null
null
null
Set 8/PR2.py
rcsiit1/python-practicals
76558dcbff2a6ae81ef4a5cb1d14c43a11c98faf
[ "Apache-2.0" ]
1
2018-10-14T19:31:42.000Z
2018-10-14T19:31:42.000Z
class Circle(): def __init__(self,radius): self.radius = radius def area(self): return 3.14*self.radius**2 #driver code circle = Circle(10) print(circle.area())
15.666667
34
0.62766
26
188
4.384615
0.576923
0.263158
0
0
0
0
0
0
0
0
0
0.041667
0.234043
188
11
35
17.090909
0.75
0.058511
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0
0.142857
0.571429
0.142857
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
1
0
0
0
1
1
0
0
5
0c60e06f73d5a1daa76247e966c180d723b49f4e
93
py
Python
__init__.py
wjarvis2/DS-Unit-3-Sprint-1-Software-Engineering
9dd40d394e690ec7a7109f74497d2d8fbc8edfe9
[ "MIT" ]
null
null
null
__init__.py
wjarvis2/DS-Unit-3-Sprint-1-Software-Engineering
9dd40d394e690ec7a7109f74497d2d8fbc8edfe9
[ "MIT" ]
null
null
null
__init__.py
wjarvis2/DS-Unit-3-Sprint-1-Software-Engineering
9dd40d394e690ec7a7109f74497d2d8fbc8edfe9
[ "MIT" ]
null
null
null
""" Imports for acme inventory management systems """ import unittest as ut import random
11.625
45
0.752688
12
93
5.833333
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.182796
93
7
46
13.285714
0.921053
0.483871
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
a76952256c0ef0090f9dbc553677414812eddc4e
455
py
Python
authlib/oauth2/rfc7591/__init__.py
jonathanunderwood/authlib
3834a2a80876a87cdaab4240d77185179970c3ab
[ "BSD-3-Clause" ]
1
2021-12-09T07:11:05.000Z
2021-12-09T07:11:05.000Z
authlib/oauth2/rfc7591/__init__.py
jonathanunderwood/authlib
3834a2a80876a87cdaab4240d77185179970c3ab
[ "BSD-3-Clause" ]
null
null
null
authlib/oauth2/rfc7591/__init__.py
jonathanunderwood/authlib
3834a2a80876a87cdaab4240d77185179970c3ab
[ "BSD-3-Clause" ]
2
2021-05-24T20:34:12.000Z
2022-03-26T07:46:17.000Z
from .claims import ClientMetadataClaims from .endpoint import ClientRegistrationEndpoint from .errors import ( InvalidRedirectURIError, InvalidClientMetadataError, InvalidSoftwareStatementError, UnapprovedSoftwareStatementError, ) __all__ = [ 'ClientMetadataClaims', 'ClientRegistrationEndpoint', 'InvalidRedirectURIError', 'InvalidClientMetadataError', 'InvalidSoftwareStatementError', 'UnapprovedSoftwareStatementError', ]
30.333333
72
0.810989
22
455
16.590909
0.545455
0.268493
0.427397
0.60274
0
0
0
0
0
0
0
0
0.123077
455
14
73
32.5
0.914787
0
0
0
0
0
0.342857
0.298901
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0
1
0
1
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
5
a76f2eb7305aff5a0c6c757fd60cfc7b74ae479d
90
py
Python
api/admin.py
kaito1002/django-rest-init
8ece6311ea84c46e74a0ac0b7f42983f40a72c34
[ "MIT" ]
null
null
null
api/admin.py
kaito1002/django-rest-init
8ece6311ea84c46e74a0ac0b7f42983f40a72c34
[ "MIT" ]
46
2021-12-11T20:39:41.000Z
2022-03-28T02:27:31.000Z
api/admin.py
kaito1002/django-rest-init
8ece6311ea84c46e74a0ac0b7f42983f40a72c34
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Sample admin.site.register(Sample)
15
32
0.811111
13
90
5.615385
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.122222
90
5
33
18
0.924051
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
a78f90533b85d340888f08d73b69308109676204
117
py
Python
src/2_array_diff.py
famavott/codewars-katas
fdc5574bcd13adc194975ac94ab90c59ee3aa398
[ "MIT" ]
null
null
null
src/2_array_diff.py
famavott/codewars-katas
fdc5574bcd13adc194975ac94ab90c59ee3aa398
[ "MIT" ]
null
null
null
src/2_array_diff.py
famavott/codewars-katas
fdc5574bcd13adc194975ac94ab90c59ee3aa398
[ "MIT" ]
null
null
null
"""Second attempt at array diff kata.""" def array_diff(a, b): """.""" return [x for x in a if x not in b]
16.714286
40
0.564103
22
117
2.954545
0.681818
0.276923
0
0
0
0
0
0
0
0
0
0
0.264957
117
6
41
19.5
0.755814
0.307692
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
1
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
1
0
0
0
0
1
0
0
5
a7be8db369e3e235932cea2661b9b0cb51437b07
18
py
Python
django101/demo.py
Minkov/python-web-basics
072249f6b26fd4d1829e4525b753c4cc778d75e1
[ "MIT" ]
7
2022-01-16T12:14:38.000Z
2022-03-18T11:27:06.000Z
django101/demo.py
Minkov/python-web-basics
072249f6b26fd4d1829e4525b753c4cc778d75e1
[ "MIT" ]
null
null
null
django101/demo.py
Minkov/python-web-basics
072249f6b26fd4d1829e4525b753c4cc778d75e1
[ "MIT" ]
8
2022-01-16T17:16:25.000Z
2022-03-02T13:51:00.000Z
print('It works')
9
17
0.666667
3
18
4
1
0
0
0
0
0
0
0
0
0
0
0
0.111111
18
1
18
18
0.75
0
0
0
0
0
0.444444
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
a7bea858f515057bab750d3a0023775cd7784b67
22
py
Python
ex1_sd2.py
jlaw8504/lp3thw
e3e5c559a0d851547acda6387eb5ff9034549e48
[ "BSD-3-Clause" ]
null
null
null
ex1_sd2.py
jlaw8504/lp3thw
e3e5c559a0d851547acda6387eb5ff9034549e48
[ "BSD-3-Clause" ]
null
null
null
ex1_sd2.py
jlaw8504/lp3thw
e3e5c559a0d851547acda6387eb5ff9034549e48
[ "BSD-3-Clause" ]
null
null
null
print("This is fun")
7.333333
20
0.636364
4
22
3.5
1
0
0
0
0
0
0
0
0
0
0
0
0.181818
22
2
21
11
0.777778
0
0
0
0
0
0.52381
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
38f999daea2652864bfef2cb6766693139f4def7
254
py
Python
tests/test_main.py
malachite-sprite/psychic-engine
04a99ce3c792641d7cc311599c10b948a671361f
[ "MIT" ]
null
null
null
tests/test_main.py
malachite-sprite/psychic-engine
04a99ce3c792641d7cc311599c10b948a671361f
[ "MIT" ]
null
null
null
tests/test_main.py
malachite-sprite/psychic-engine
04a99ce3c792641d7cc311599c10b948a671361f
[ "MIT" ]
null
null
null
from sources import main import cocos class TestMain(): def setup(self): cocos.director.director.init() def teardown(self): cocos.director.director.pop() def test_vanilla(self): #main.main(None) pass
15.875
38
0.614173
30
254
5.166667
0.6
0.116129
0.219355
0.322581
0
0
0
0
0
0
0
0
0.283465
254
15
39
16.933333
0.851648
0.059055
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.111111
0.222222
0
0.666667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
ac02128b01223ae0eb053a985f1f2809ce462a0e
41
py
Python
python/trim/trim1.py
jtraver/dev
c7cd2181594510a8fa27e7325566ed2d79371624
[ "MIT" ]
null
null
null
python/trim/trim1.py
jtraver/dev
c7cd2181594510a8fa27e7325566ed2d79371624
[ "MIT" ]
null
null
null
python/trim/trim1.py
jtraver/dev
c7cd2181594510a8fa27e7325566ed2d79371624
[ "MIT" ]
null
null
null
#!/usr/bin/python print " this".strip()
10.25
21
0.634146
6
41
4.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.121951
41
3
22
13.666667
0.722222
0.390244
0
0
0
0
0.208333
0
0
0
0
0
0
0
null
null
0
0
null
null
1
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
1
0
0
0
0
0
0
1
0
5
ac217c799d8a8852ff0a5bb9c7c48973a655a922
142
py
Python
missions/Vanilla/1.3 The First Bomb.py
thecnoNSMB/ktane-mission-solver
237d969a8acd21533b5fb18cc5a47dd03ba1cc7d
[ "MIT" ]
1
2022-01-04T03:47:34.000Z
2022-01-04T03:47:34.000Z
missions/Vanilla/1.3 The First Bomb.py
thecnoNSMB/ktane-mission-solver
237d969a8acd21533b5fb18cc5a47dd03ba1cc7d
[ "MIT" ]
4
2021-04-13T07:03:37.000Z
2021-12-15T11:34:05.000Z
missions/Vanilla/1.3 The First Bomb.py
thecnoNSMB/ktane-mission-solver
237d969a8acd21533b5fb18cc5a47dd03ba1cc7d
[ "MIT" ]
null
null
null
from ktane.directors import BombSolver from ktane.vanilla import Keypad, TheButton, Wires BombSolver(Keypad(), TheButton(), Wires()).solve()
28.4
50
0.78169
17
142
6.529412
0.588235
0.162162
0.36036
0
0
0
0
0
0
0
0
0
0.098592
142
4
51
35.5
0.867188
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
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
1
0
1
0
0
0
0
5
ac321b0acf9d38479f652ec43104711ff39ce744
142
py
Python
yandex_response.py
Stratocast3r/telegram-google-calendar-bot
165c0b5ccba3e81e19e79816ca2e53dd2c3ed530
[ "MIT" ]
4
2020-11-01T01:33:13.000Z
2021-04-25T16:28:14.000Z
yandex_response.py
Stratocast3r/telegram-google-calendar-bot
165c0b5ccba3e81e19e79816ca2e53dd2c3ed530
[ "MIT" ]
null
null
null
yandex_response.py
Stratocast3r/telegram-google-calendar-bot
165c0b5ccba3e81e19e79816ca2e53dd2c3ed530
[ "MIT" ]
null
null
null
''' import json class YandexSpeechResponse(object): def __init__(self, json_string): self.__dict__ = json.loads(json_string) '''
17.75
47
0.697183
16
142
5.5625
0.6875
0.224719
0
0
0
0
0
0
0
0
0
0
0.176056
142
8
48
17.75
0.760684
0.943662
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
ac3b6104c5eb99adba1fe85ace7ff9797b35d675
90
py
Python
theseus/segmentation/models/unet/__init__.py
kaylode/shrec22-pothole
700d1632de686214e42a2f56aeaceab30c8b9a3f
[ "MIT" ]
1
2022-03-19T11:52:53.000Z
2022-03-19T11:52:53.000Z
theseus/segmentation/models/unet/__init__.py
kaylode/shrec22-pothole
700d1632de686214e42a2f56aeaceab30c8b9a3f
[ "MIT" ]
null
null
null
theseus/segmentation/models/unet/__init__.py
kaylode/shrec22-pothole
700d1632de686214e42a2f56aeaceab30c8b9a3f
[ "MIT" ]
1
2022-03-19T11:53:10.000Z
2022-03-19T11:53:10.000Z
from .effunet import EfficientUNet from .resunet import ResidUNet from .r2u import R2UNet
22.5
34
0.833333
12
90
6.25
0.666667
0
0
0
0
0
0
0
0
0
0
0.025641
0.133333
90
3
35
30
0.935897
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
3bb08a348697b99c8765a5c1ee2fef5eb8dccde7
96
py
Python
pbo1-project/Controllers/__init__.py
hifra01/PBO1-Project
82b9abbdf1cab4da18e0f9514e92d298d9661b26
[ "MIT" ]
null
null
null
pbo1-project/Controllers/__init__.py
hifra01/PBO1-Project
82b9abbdf1cab4da18e0f9514e92d298d9661b26
[ "MIT" ]
null
null
null
pbo1-project/Controllers/__init__.py
hifra01/PBO1-Project
82b9abbdf1cab4da18e0f9514e92d298d9661b26
[ "MIT" ]
null
null
null
from .AdminController import AdminController from .CustomerController import CustomerController
48
50
0.895833
8
96
10.75
0.5
0
0
0
0
0
0
0
0
0
0
0
0.083333
96
2
50
48
0.977273
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
1
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
1
0
0
0
0
5
3bc4256505d8193e4982b4b0f65b963d56bcc578
1,551
py
Python
projects/twitter-automation/automation.py
yasserbelhimer/H4ckT0b3rF3st-2k20
cd2c81052c9b92325d42bfa74d94ef5034c03d16
[ "MIT" ]
27
2020-10-04T14:11:54.000Z
2021-05-14T03:51:43.000Z
projects/twitter-automation/automation.py
yasserbelhimer/H4ckT0b3rF3st-2k20
cd2c81052c9b92325d42bfa74d94ef5034c03d16
[ "MIT" ]
56
2020-10-06T06:38:54.000Z
2020-11-25T10:22:40.000Z
projects/twitter-automation/automation.py
yasserbelhimer/H4ckT0b3rF3st-2k20
cd2c81052c9b92325d42bfa74d94ef5034c03d16
[ "MIT" ]
63
2020-10-04T12:46:09.000Z
2021-01-10T16:35:53.000Z
from webdriver_manager.firefox import GeckoDriverManager from selenium import webdriver import time #setting driver for mozilla browser driver = webdriver.Firefox(executable_path=GeckoDriverManager().install()) driver.get('https://twitter.com/login') email = "your email" # put ur email here password = "your password" # put ur password here loginField = driver.find_element_by_xpath('/html/body/div/div/div/div[2]/main/div/div/div[1]/form/div/div[1]/label/div/div[2]/div/input') passwordField = driver.find_element_by_xpath('/html/body/div/div/div/div[2]/main/div/div/div[1]/form/div/div[2]/label/div/div[2]/div/input') loginButton = driver.find_element_by_xpath('/html/body/div/div/div/div[2]/main/div/div/div[1]/form/div/div[3]/div/div') #start automation by sending login credentials loginField.send_keys(email) passwordField.send_keys(password) time.sleep(1) loginButton.click() # automating posting tweet tweet = "Hello Everyone! This is a tweet that I am sending from a selenium automated script written in Python ( It feels really awesome (: ) . \n - Amdjedbens" tweetInputField = driver.find_element_by_xpath( '/html/body/div/div/div/div[2]/main/div/div/div/div/div/div[2]/div/div[2]/div[1]/div/div/div/div[2]/div[1]/div/div/div/div/div/div/div/div/div/div[1]/div/div/div/div[2]/div') tweetInputField.send_keys(tweet) time.sleep(1) tweetButton = driver.find_element_by_xpath( '/html/body/div/div/div/div[2]/main/div/div/div/div/div/div[2]/div/div[2]/div[1]/div/div/div/div[2]/div[4]/div/div/div[2]/div[3]') tweetButton.click()
41.918919
176
0.756931
269
1,551
4.289963
0.286245
0.306759
0.280763
0.218371
0.431542
0.420277
0.385615
0.385615
0.370884
0.344021
0
0.020223
0.075435
1,551
36
177
43.083333
0.784519
0.092199
0
0.090909
0
0.272727
0.535994
0.395581
0
0
0
0
0
1
0
false
0.136364
0.136364
0
0.136364
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
1
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
5
ce06d181f1d0616add90f8337e286b923af20cc0
241
py
Python
tests/objects/test_account.py
bill-ash/qbodbc
7d2b537588408ee48f42a55fdbdb4cd0f0205375
[ "MIT" ]
1
2021-06-10T10:00:50.000Z
2021-06-10T10:00:50.000Z
tests/objects/test_account.py
bill-ash/qbodbc
7d2b537588408ee48f42a55fdbdb4cd0f0205375
[ "MIT" ]
null
null
null
tests/objects/test_account.py
bill-ash/qbodbc
7d2b537588408ee48f42a55fdbdb4cd0f0205375
[ "MIT" ]
1
2021-06-10T10:00:27.000Z
2021-06-10T10:00:27.000Z
# import pytest # from qbodbc.objects import Account # account = Account(name='Accounts Payable', # description='Account for vendor bills.' # ) # account._connection # account.json() # assert account.name == 'Accounts Payable'
20.083333
45
0.697095
26
241
6.423077
0.615385
0.167665
0.227545
0.311377
0
0
0
0
0
0
0
0
0.182573
241
11
46
21.909091
0.847716
0.917012
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
1
1
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
5
ce1163ca7431fdbc083f63292d04f2bec064cfed
110
py
Python
muonic_gui/analysis/__init__.py
NetzwerkTeilchenwelt/muonic_gui_BUW
4e13eaa6da303207b5a5abfa92a6b725d7af04e0
[ "MIT" ]
null
null
null
muonic_gui/analysis/__init__.py
NetzwerkTeilchenwelt/muonic_gui_BUW
4e13eaa6da303207b5a5abfa92a6b725d7af04e0
[ "MIT" ]
null
null
null
muonic_gui/analysis/__init__.py
NetzwerkTeilchenwelt/muonic_gui_BUW
4e13eaa6da303207b5a5abfa92a6b725d7af04e0
[ "MIT" ]
null
null
null
""" scripts and classes used for data analysis """ from .analyzer import * from .fit import fit, gaussian_fit
18.333333
42
0.745455
16
110
5.0625
0.75
0
0
0
0
0
0
0
0
0
0
0
0.163636
110
5
43
22
0.880435
0.381818
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
cbf85ddae67183016fe2aa9059eac3d8489e2907
53
py
Python
pygemmes/_plots/__init__.py
DaluS/GEMMES
10d4a062004ce5b7fd26eb8c4937d940b7d097d5
[ "MIT" ]
4
2021-06-28T07:11:34.000Z
2022-01-11T13:43:17.000Z
pygemmes/_plots/__init__.py
DaluS/GEMMES
10d4a062004ce5b7fd26eb8c4937d940b7d097d5
[ "MIT" ]
167
2021-06-28T07:10:21.000Z
2022-03-18T17:30:40.000Z
pygemmes/_plots/__init__.py
DaluS/GEMMES
10d4a062004ce5b7fd26eb8c4937d940b7d097d5
[ "MIT" ]
3
2021-06-28T07:19:12.000Z
2022-03-03T02:44:15.000Z
from ._plots import Var, phasespace, AllPhaseSpace
13.25
50
0.792453
6
53
6.833333
1
0
0
0
0
0
0
0
0
0
0
0
0.150943
53
3
51
17.666667
0.911111
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0211518ee43cb41f3e63884dfa53c390c88dd451
106
py
Python
snippets/apiCallWithPython.py
MoneytechGroup/PaymentServicesAPIv1
3667fa94b2dbfe75ab4ed8f3268feaa81d25a8b1
[ "Apache-2.0" ]
null
null
null
snippets/apiCallWithPython.py
MoneytechGroup/PaymentServicesAPIv1
3667fa94b2dbfe75ab4ed8f3268feaa81d25a8b1
[ "Apache-2.0" ]
null
null
null
snippets/apiCallWithPython.py
MoneytechGroup/PaymentServicesAPIv1
3667fa94b2dbfe75ab4ed8f3268feaa81d25a8b1
[ "Apache-2.0" ]
null
null
null
from requests.auth import HTTPBasicAuth requests.get(BASE_URL + ENDPOINT, auth=HTTPBasicAuth(USER, PASS))
35.333333
65
0.820755
14
106
6.142857
0.785714
0
0
0
0
0
0
0
0
0
0
0
0.084906
106
3
65
35.333333
0.886598
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
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
1
1
1
0
0
0
0
5
0238732912d50cca682c5973d66d0dd4d83127dc
102
py
Python
pythonlispe/examples/called_in_lispe.py
wlxiong/lispe
37aa3efbffb2845b6fc34c9cf95ef5ce7fd49003
[ "BSD-3-Clause" ]
169
2020-12-30T15:04:19.000Z
2022-03-24T01:52:03.000Z
pythonlispe/examples/called_in_lispe.py
wlxiong/lispe
37aa3efbffb2845b6fc34c9cf95ef5ce7fd49003
[ "BSD-3-Clause" ]
3
2021-01-28T23:49:01.000Z
2022-02-25T16:41:09.000Z
pythonlispe/examples/called_in_lispe.py
wlxiong/lispe
37aa3efbffb2845b6fc34c9cf95ef5ce7fd49003
[ "BSD-3-Clause" ]
6
2020-11-30T17:31:49.000Z
2022-02-25T12:59:19.000Z
# This Python function is loaded from within LispE call_python.lisp def testing(i): return i+10
14.571429
67
0.745098
17
102
4.411765
0.882353
0
0
0
0
0
0
0
0
0
0
0.02439
0.196078
102
6
68
17
0.890244
0.637255
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
024bd5f81ca2314bfdeacf570902eaea5e9f759d
486
py
Python
xai_court/models/modules/attention/__init__.py
michaeljneely/court-of-xai
37eded49f46b3a05ad56986c1a9bb22eee3ac4b1
[ "MIT" ]
4
2021-05-07T09:40:11.000Z
2022-03-27T18:19:07.000Z
xai_court/models/modules/attention/__init__.py
michaeljneely/court-of-xai
37eded49f46b3a05ad56986c1a9bb22eee3ac4b1
[ "MIT" ]
1
2021-05-10T09:31:05.000Z
2021-05-10T09:31:05.000Z
xai_court/models/modules/attention/__init__.py
michaeljneely/court-of-xai
37eded49f46b3a05ad56986c1a9bb22eee3ac4b1
[ "MIT" ]
1
2021-06-06T18:45:39.000Z
2021-06-06T18:45:39.000Z
from xai_court.models.modules.attention.activations import AttentionActivationFunction from xai_court.models.modules.attention.attention import Attention, AttentionAnalysisMethods from xai_court.models.modules.attention.additive import AdditiveAttentionBasic, AdditiveAttentionQuery from xai_court.models.modules.attention.multiplicative import ScaledMultiplicativeAttention, ScaledMultiplicativeAttentionQuery from xai_court.models.modules.attention.self import MultiHeadSelfAttention
81
127
0.90535
48
486
9.0625
0.375
0.08046
0.137931
0.206897
0.390805
0.390805
0
0
0
0
0
0
0.047325
486
5
128
97.2
0.939525
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
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
1
0
1
0
1
0
0
5
0256aa8ef85071211bd530ad0b36e051575520f4
72
py
Python
exercises/phone-number/phone_number.py
akashsara/python
6778e437487ad0e813959fe8a5e8fd37302704f5
[ "MIT" ]
2
2018-11-24T01:00:38.000Z
2019-02-05T07:32:44.000Z
exercises/phone-number/phone_number.py
akashsara/python
6778e437487ad0e813959fe8a5e8fd37302704f5
[ "MIT" ]
1
2019-12-17T18:24:34.000Z
2019-12-18T12:16:52.000Z
exercises/phone-number/phone_number.py
akashsara/python
6778e437487ad0e813959fe8a5e8fd37302704f5
[ "MIT" ]
1
2021-12-29T19:26:23.000Z
2021-12-29T19:26:23.000Z
class Phone(object): def __init__(self, phone_number): pass
18
37
0.652778
9
72
4.666667
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.25
72
3
38
24
0.777778
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.333333
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
02586ab7e66eed63bd24606e5f4bb67189a58d2e
49
py
Python
operant/__init__.py
williamhogman/operant
69fd07b5e4300ed27458b133acec5df186246172
[ "BSD-2-Clause" ]
1
2015-01-24T10:54:47.000Z
2015-01-24T10:54:47.000Z
operant/__init__.py
williamhogman/operant
69fd07b5e4300ed27458b133acec5df186246172
[ "BSD-2-Clause" ]
null
null
null
operant/__init__.py
williamhogman/operant
69fd07b5e4300ed27458b133acec5df186246172
[ "BSD-2-Clause" ]
null
null
null
"""Operant, a gamification library for python"""
24.5
48
0.734694
6
49
6
1
0
0
0
0
0
0
0
0
0
0
0
0.122449
49
1
49
49
0.837209
0.857143
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
0270995f978cdf59efc35c82a3cd83940bf35098
51
py
Python
chapter-5/dynamic imports/module_a.py
lucasbyAI/Modular-Programming-with-Python
387bff88e256eb2a4c3be2207908be274270be90
[ "MIT" ]
38
2016-06-07T07:52:00.000Z
2022-02-08T21:29:02.000Z
chapter-5/dynamic imports/module_a.py
lucasbyAI/Modular-Programming-with-Python
387bff88e256eb2a4c3be2207908be274270be90
[ "MIT" ]
null
null
null
chapter-5/dynamic imports/module_a.py
lucasbyAI/Modular-Programming-with-Python
387bff88e256eb2a4c3be2207908be274270be90
[ "MIT" ]
35
2016-06-17T07:39:25.000Z
2022-02-02T18:18:49.000Z
def say_hello(): print("Hello from module_a")
12.75
32
0.666667
8
51
4
0.875
0
0
0
0
0
0
0
0
0
0
0
0.196078
51
3
33
17
0.780488
0
0
0
0
0
0.38
0
0
0
0
0
0
1
0.5
true
0
0
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
1
0
5
5a043c4fec256fb852a9a4194b4e5b973d2e7b90
4,618
py
Python
src/tests/test_logging.py
uwmisl/poretitioner
0ff9f67a3b25fdcb460b11c970b2ed366da07da7
[ "MIT" ]
2
2021-03-11T21:27:16.000Z
2021-03-18T00:58:22.000Z
src/tests/test_logging.py
uwmisl/poretitioner
0ff9f67a3b25fdcb460b11c970b2ed366da07da7
[ "MIT" ]
12
2021-02-19T19:36:05.000Z
2021-03-24T15:38:02.000Z
src/tests/test_logging.py
uwmisl/poretitioner
0ff9f67a3b25fdcb460b11c970b2ed366da07da7
[ "MIT" ]
null
null
null
""" ======================== test_logging.py ======================== This module tests application metadata reading, namely getting the application name and version. """ import logging from src.poretitioner.logger import configure_root_logger, getLogger, verbosity_to_log_level ################################# # # Test verbosity_to_log_level # ################################# def logger_large_verbosity_goes_to_debug_test(): """Test that large verbosity cap to DEBUG.""" assert verbosity_to_log_level(10000) == logging.DEBUG def logger_zero_verbosity_goes_to_error_test(): """Test that large verbosity cap to DEBUG.""" assert verbosity_to_log_level(0) == logging.ERROR ################################# # # Test configure_root_logger # ################################# def logger_zero_verbosity_logs_error_test(caplog): """Test that zero verbosity logs error messages. Parameters ---------- caplog : CapLog Pytest capture log. Provided automatically by PyTest. """ configure_root_logger(verbosity=0, debug=False) log = getLogger() log.error("Testing error message") assert len(caplog.records) == 1 def logger_zero_verbosity_logs_fatals_test(caplog): """Test that zero verbosity logs fatal messages. Parameters ---------- caplog : CapLog Pytest capture log. Provided automatically by PyTest. """ configure_root_logger(verbosity=0, debug=False) log = getLogger() log.fatal("Testing fatal message") assert len(caplog.records) == 1 def logger_zero_verbosity_does_not_log_warnings_test(caplog): """Test that zero verbosity does NOT log warning messages. Parameters ---------- caplog : CapLog Pytest capture log. Provided automatically by PyTest. """ configure_root_logger(verbosity=0, debug=False) log = getLogger() log.warning("Test warning message") assert len(caplog.records) == 0 def logger_zero_verbosity_does_not_log_debug_test(caplog): """Test that zero verbosity does NOT log debug messages. Parameters ---------- caplog : CapLog Pytest capture log. Provided automatically by PyTest. """ configure_root_logger(verbosity=0, debug=False) log = getLogger() log.debug("Test debug message") assert len(caplog.records) == 0 def logger_one_verbosity_logs_warnings_test(caplog): """Test that one verbosity (-v) logs warning messages. Parameters ---------- caplog : CapLog Pytest capture log. Provided automatically by PyTest. """ configure_root_logger(verbosity=1, debug=False) log = getLogger() log.warning("Test warning message") assert len(caplog.records) == 1 def logger_one_verbosity_still_logs_errors_test(caplog): """Test that one verbosity (-v) still logs error messages. Parameters ---------- caplog : CapLog Pytest capture log. Provided automatically by PyTest. """ configure_root_logger(verbosity=1, debug=False) log = getLogger() log.error("Error") assert len(caplog.records) == 1 def logger_two_verbosity_logs_info_test(caplog): """Test that two verbosity (-vv) logs info messages. Parameters ---------- caplog : CapLog Pytest capture log. Provided automatically by PyTest. """ configure_root_logger(verbosity=2, debug=False) log = getLogger() log.info("Info") assert len(caplog.records) == 1 def logger_two_verbosity_still_logs_warnings_test(caplog): """Test that two verbosity (-vv) still logs warning messages. Parameters ---------- caplog : CapLog Pytest capture log. Provided automatically by PyTest. """ configure_root_logger(verbosity=2, debug=False) log = getLogger() log.warning("Warning") assert len(caplog.records) == 1 def logger_three_verbosity_logs_debug_test(caplog): """Test that three verbosity (-vvv) logs debug messages. Parameters ---------- caplog : CapLog Pytest capture log. Provided automatically by PyTest. """ configure_root_logger(verbosity=3, debug=False) log = getLogger() log.debug("Debug") assert len(caplog.records) == 1 def logger_three_verbosity_still_logs_warnings_test(caplog): """Test that three verbosity (-vvv) still logs errors messages. Parameters ---------- caplog : CapLog Pytest capture log. Provided automatically by PyTest. """ configure_root_logger(verbosity=3, debug=False) log = getLogger() log.warning("Warning") assert len(caplog.records) == 1
24.433862
92
0.658943
536
4,618
5.479478
0.130597
0.053115
0.07763
0.061287
0.833504
0.818863
0.806265
0.71808
0.674157
0.592782
0
0.007027
0.198787
4,618
188
93
24.56383
0.786757
0.390429
0
0.607143
0
0
0.053356
0
0
0
0
0
0.214286
1
0.214286
false
0
0.035714
0
0.25
0
0
0
0
null
0
0
0
1
1
1
1
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
5
5a5211ef2ffeb5ff5b8b7778aebb696dab99e4b9
230
py
Python
Emmanuel ANENE/Phase 1/Python Basic 1/Day11/task8.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Emmanuel ANENE/Phase 1/Python Basic 1/Day11/task8.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Emmanuel ANENE/Phase 1/Python Basic 1/Day11/task8.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
''' Write a Python program to get the system time. Note : The system time is important for debugging, network information, random number seeds, or something as simple as program performance. ''' import time as t print(t.ctime())
28.75
139
0.76087
36
230
4.861111
0.777778
0.102857
0.148571
0
0
0
0
0
0
0
0
0
0.165217
230
8
140
28.75
0.911458
0.808696
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
5
5a69b7a4179db347d8568cd72300072a1c9a22f3
315
py
Python
EnvSettings.py
LHoBiz/ols_engine
9bdbd827f7be17aee95d416255a7f483472c4315
[ "MIT" ]
1
2022-01-05T07:38:06.000Z
2022-01-05T07:38:06.000Z
EnvSettings.py
LHoBiz/ols_engine
9bdbd827f7be17aee95d416255a7f483472c4315
[ "MIT" ]
null
null
null
EnvSettings.py
LHoBiz/ols_engine
9bdbd827f7be17aee95d416255a7f483472c4315
[ "MIT" ]
null
null
null
import os path = os.environ['PATH'] pgdal= 'C:\\OSGeo4W64\\share\\gdal;' os.environ['GDAL_DATA']='C:\\OSGeo4W64\\share\\gdal\\gdal-data' os.environ['GDAL_DRIVER_PATH']='C:\\OSGeo4W64\\share\\gdal\\gdalplugins' os.environ['PROJ_LIB']='C:\\OSGeo4W64\\share\\gdal\\projlib' os.environ['PATH'] = "%s;%s" % (pgdal, path)
45
72
0.685714
47
315
4.510638
0.340426
0.212264
0.283019
0.358491
0
0
0
0
0
0
0
0.04
0.047619
315
7
73
45
0.666667
0
0
0
0
0
0.582278
0.436709
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
1
1
1
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
5
ce45b3d0bfbab57eca5d62ee76b4b3aebb88a5a1
167
py
Python
django_orphaned/app_settings.py
BergSoft/django-orphaned
86628682669cb61b68df70d2456e073bd945fa52
[ "MIT-0" ]
null
null
null
django_orphaned/app_settings.py
BergSoft/django-orphaned
86628682669cb61b68df70d2456e073bd945fa52
[ "MIT-0" ]
null
null
null
django_orphaned/app_settings.py
BergSoft/django-orphaned
86628682669cb61b68df70d2456e073bd945fa52
[ "MIT-0" ]
null
null
null
from django.conf import settings from django.utils.importlib import import_module ORPHANED_APPS_MEDIABASE_DIRS = getattr(settings, 'ORPHANED_APPS_MEDIABASE_DIRS',{})
33.4
83
0.850299
22
167
6.136364
0.590909
0.148148
0.311111
0.37037
0
0
0
0
0
0
0
0
0.077844
167
4
84
41.75
0.876623
0
0
0
0
0
0.167665
0.167665
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
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
1
0
0
0
0
5
cea3bc8080104d69cbf67e1338990ae9a6432679
423
py
Python
butterfree/configs/db/__init__.py
fossabot/butterfree
8a7da8c540b51c6560b2825cb926c40a351f202b
[ "Apache-2.0" ]
208
2020-07-17T18:46:10.000Z
2022-03-21T12:44:12.000Z
butterfree/configs/db/__init__.py
fossabot/butterfree
8a7da8c540b51c6560b2825cb926c40a351f202b
[ "Apache-2.0" ]
124
2020-07-17T19:42:47.000Z
2021-07-21T00:38:05.000Z
butterfree/configs/db/__init__.py
fossabot/butterfree
8a7da8c540b51c6560b2825cb926c40a351f202b
[ "Apache-2.0" ]
30
2020-07-17T20:24:09.000Z
2022-03-17T00:50:37.000Z
"""This module holds database configurations to be used by clients.""" from butterfree.configs.db.abstract_config import AbstractWriteConfig from butterfree.configs.db.cassandra_config import CassandraConfig from butterfree.configs.db.kafka_config import KafkaConfig from butterfree.configs.db.metastore_config import MetastoreConfig __all__ = ["AbstractWriteConfig", "CassandraConfig", "KafkaConfig", "MetastoreConfig"]
47
86
0.841608
47
423
7.404255
0.531915
0.16092
0.241379
0.264368
0
0
0
0
0
0
0
0
0.080378
423
8
87
52.875
0.894602
0.1513
0
0
0
0
0.169972
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
cea8de0b3b79a18ca38234f587beec16799e852d
348
py
Python
Media/nyts/Scripts/SampleCharacterCreation.py
dmacka/MultiverseClientServer
b64d7d754a0b2b1a3e5acabd4d6ebb80ab1d9379
[ "MIT" ]
5
2020-04-29T19:14:57.000Z
2022-02-18T08:48:37.000Z
Media/nyts/Scripts/SampleCharacterCreation.py
dmacka/MultiverseClientServer
b64d7d754a0b2b1a3e5acabd4d6ebb80ab1d9379
[ "MIT" ]
null
null
null
Media/nyts/Scripts/SampleCharacterCreation.py
dmacka/MultiverseClientServer
b64d7d754a0b2b1a3e5acabd4d6ebb80ab1d9379
[ "MIT" ]
2
2021-03-09T06:53:30.000Z
2021-03-27T12:02:39.000Z
import nytsCharacterCreation class SampleCharacterCreationContext(nytsCharacterCreation.nytsCharacterCreationContext): def __init__(self): nytsCharacterCreation.nytsCharacterCreationContext.__init__(self) class SampleCharacterSelectionContext(nytsCharacterCreation.nytsCharacterSelectionContext): def __init__(self): pass
34.8
91
0.83908
21
348
13.333333
0.52381
0.085714
0.078571
0
0
0
0
0
0
0
0
0
0.109195
348
9
92
38.666667
0.903226
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.285714
false
0.142857
0.142857
0
0.714286
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
5
ceb6c922f854c2aa4e1ec01614cfccd3dc5c099b
165
py
Python
main.py
Charlos16v/proyecto-ufer
fe0bc9dc6808e130dcde98602424ce0283ea2687
[ "MIT" ]
null
null
null
main.py
Charlos16v/proyecto-ufer
fe0bc9dc6808e130dcde98602424ce0283ea2687
[ "MIT" ]
null
null
null
main.py
Charlos16v/proyecto-ufer
fe0bc9dc6808e130dcde98602424ce0283ea2687
[ "MIT" ]
null
null
null
from src.services.config.ufer_conf import UFER_DEPTH, UFER_DOMAIN from src.services.scrapper.get_all_values import get_all_data get_all_data(UFER_DOMAIN,UFER_DEPTH)
41.25
65
0.878788
29
165
4.62069
0.482759
0.134328
0.223881
0
0
0
0
0
0
0
0
0
0.060606
165
4
66
41.25
0.864516
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
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
1
0
1
0
0
0
0
5
ceb73b626a9435f7142a37c3b12da212b8f2cd20
10,058
py
Python
perde-tests/tests/test_simple.py
YushiOMOTE/perde
beeb3208ea2d6edcc4df2b5d74834fadd2807fbc
[ "MIT" ]
19
2020-10-29T11:38:19.000Z
2022-03-13T03:14:21.000Z
perde-tests/tests/test_simple.py
YushiOMOTE/perde
beeb3208ea2d6edcc4df2b5d74834fadd2807fbc
[ "MIT" ]
19
2020-10-29T08:02:10.000Z
2020-12-22T06:25:48.000Z
perde-tests/tests/test_simple.py
YushiOMOTE/perde
beeb3208ea2d6edcc4df2b5d74834fadd2807fbc
[ "MIT" ]
1
2021-05-06T07:38:20.000Z
2021-05-06T07:38:20.000Z
from dataclasses import dataclass import sys import enum import typing import pytest import perde import datetime import decimal import uuid from util import FORMATS, FORMATS_EXCEPT, repack, repack_as @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_number(m): repack(m, -10) repack(m, 0) repack(m, 10) repack_as(m, int, -10) repack_as(m, int, 0) repack_as(m, int, 10) @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_string(m): repack(m, "") repack(m, "hage") repack(m, "コンテナ") repack_as(m, str, "") repack_as(m, str, "hage") repack_as(m, str, "コンテナ") @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_float(m): repack(m, -1.2) repack(m, 0.0) repack(m, 1.3) repack_as(m, float, -1.2) repack_as(m, float, 0.0) repack_as(m, float, 1.3) @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_bool(m): repack(m, True) repack(m, False) repack_as(m, bool, True) repack_as(m, bool, False) @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_bytes(m): repack_as(m, bytes, b"1234") repack_as(m, bytes, b"") @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_bytearray(m): repack_as(m, bytearray, bytearray(b"1234")) repack_as(m, bytearray, bytearray(b"")) @pytest.mark.parametrize("m", FORMATS) def test_dict(m): repack(m, {"a": 10}) repack(m, {}) repack(m, {"a": {"b": 10}}) repack_as(m, dict, {"a": 10}) repack_as(m, dict, {}) repack_as(m, dict, {"a": {"b": 10}}) repack_as(m, typing.Dict, {"a": 10}) repack_as(m, typing.Dict[str, int], {"a": 10}) repack_as(m, typing.Dict[str, int], {}) repack_as(m, typing.Dict[str, typing.Dict[str, int]], {"a": {"b": 10}}) repack_as(m, typing.Dict[str, typing.Any], {"xxx": 3.3}) @pytest.mark.skipif(sys.version_info < (3, 9), reason="requires 3.9") @pytest.mark.parametrize("m", FORMATS) def test_dict39(m): repack_as(m, dict[str, int], {"a": 10}) repack_as(m, dict[str, int], {}) repack_as(m, dict[str, dict[str, int]], {"a": {"b": 10}}) repack_as(m, dict[str, typing.Any], {"xxx": 3.3}) repack_as(m, dict[str], {"xxx": 3.3}) @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_list(m): repack(m, [1, 2, 3]) repack(m, [1]) repack(m, []) repack_as(m, list, [1, 2, 3]) repack_as(m, list, [1]) repack_as(m, list, []) repack_as(m, typing.List, [1, 2, 3]) repack_as(m, typing.List[int], [1, 2, 3]) repack_as(m, typing.List[int], [1]) repack_as(m, typing.List[int], []) repack_as(m, typing.List[typing.Any], ["a", "b", "c"]) repack_as(m, typing.List[typing.Any], ["a", "b"]) repack_as(m, typing.List[typing.Any], ["a"]) repack_as(m, typing.List[typing.Any], []) @pytest.mark.skipif(sys.version_info < (3, 9), reason="requires 3.9") @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_list39(m): repack_as(m, list[int], [1, 2, 3]) repack_as(m, list[int], [1]) repack_as(m, list[int], []) repack_as(m, list[typing.Any], ["a", "b", "c"]) repack_as(m, list[typing.Any], ["a", "b"]) repack_as(m, list[typing.Any], ["a"]) repack_as(m, list[typing.Any], []) @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_set(m): repack_as(m, set, {1, 2, 3}) repack_as(m, set, {"a", "b", "c"}) repack_as(m, set, set()) repack_as(m, typing.Set, {1, 2, 3}) repack_as(m, typing.Set[int], {1, 2, 3}) repack_as(m, typing.Set[str], {"a", "b", "c"}) repack_as(m, typing.Set[str], set()) repack_as(m, typing.Set[typing.Any], {"a", "b", "c"}) repack_as(m, typing.Set[typing.Any], set()) @pytest.mark.skipif(sys.version_info < (3, 9), reason="requires 3.9") @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_set39(m): repack_as(m, set[int], {1, 2, 3}) repack_as(m, set[str], {"a", "b", "c"}) repack_as(m, set[str], set()) repack_as(m, set[typing.Any], {"a", "b", "c"}) repack_as(m, set[typing.Any], set()) @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_frozen_set(m): repack_as(m, frozenset, {1, 2, 3}) repack_as(m, frozenset, {"a", "b", "c"}) repack_as(m, frozenset, frozenset()) repack_as(m, typing.FrozenSet, {1, 2, 3}) repack_as(m, typing.FrozenSet[int], {1, 2, 3}) repack_as(m, typing.FrozenSet[str], {"a", "b", "c"}) repack_as(m, typing.FrozenSet[str], frozenset()) repack_as(m, typing.FrozenSet[typing.Any], {"a", "b"}) repack_as(m, typing.FrozenSet[typing.Any], {"a"}) repack_as(m, typing.FrozenSet[typing.Any], frozenset()) @pytest.mark.skipif(sys.version_info < (3, 9), reason="requires 3.9") @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_frozenset39(m): repack_as(m, frozenset[int], {1, 2, 3}) repack_as(m, frozenset[str], {"a", "b", "c"}) repack_as(m, frozenset[str], frozenset()) repack_as(m, frozenset[typing.Any], {"a", "b"}) repack_as(m, frozenset[typing.Any], {"a"}) repack_as(m, frozenset[typing.Any], frozenset()) @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_tuple(m): repack_as(m, tuple, ("hage", -100, 3.14)) repack_as(m, tuple, (33, {"a": 10})) repack_as(m, tuple, ("hage",)) repack_as(m, tuple, ()) repack_as(m, typing.Tuple, (3, "abc", "def")) repack_as(m, typing.Tuple[int, str, bytes], (3, "abc", b"def")) repack_as(m, typing.Tuple[str, dict], ("hage", {"a": -10})) repack_as(m, typing.Tuple[str], ("foo",)) repack_as(m, typing.Tuple[int], ()) repack_as(m, typing.Tuple[int, str, typing.Any], (3, "abc", "def")) repack_as(m, typing.Tuple[int, typing.Any, bytes], (3, "abc", b"def")) repack_as(m, typing.Tuple[typing.Any, str, bytes], (3, "abc", b"def")) @pytest.mark.skipif(sys.version_info < (3, 9), reason="requires 3.9") @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_tuple39(m): repack_as(m, tuple[int, str, bytes], (3, "abc", b"def")) repack_as(m, tuple[str, dict], ("hage", {"a": -10})) repack_as(m, tuple[str], ("foo",)) repack_as(m, tuple[int], ()) repack_as(m, tuple[int, str, typing.Any], (3, "abc", "def")) repack_as(m, tuple[int, typing.Any, bytes], (3, "abc", b"def")) repack_as(m, tuple[typing.Any, str, bytes], (3, "abc", b"def")) @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_class(m): @dataclass class A: a: int b: str c: bytes @dataclass class B: x: A b: str repack_as(m, A, A(100, "hage", b"hoge")) repack_as(m, B, B(A(-1, "", b"33"), "foo")) @dataclass class C: x: typing.Any b: str repack_as(m, C, C(3, "hello")) @dataclass class V: pass repack_as(m, V, V()) # As `toml` cannot have table before values. @pytest.mark.parametrize("m", FORMATS) def test_class2(m): @dataclass class A: a: int b: str c: bytes @dataclass class B: x: str y: A repack_as(m, A, A(100, "hage", b"hoge")) repack_as(m, B, B("foo", A(-1, "", b"33"))) @dataclass class C: x: typing.Any b: str repack_as(m, C, C(3, "hello")) @dataclass class V: pass repack_as(m, V, V()) @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_enum(m): class E(enum.Enum): X = 1 Y = "hage" Z = 3.3 repack_as(m, E, E.X) repack_as(m, E, E.Y) repack_as(m, E, E.Z) @perde.attr(as_value=True) class EV(enum.Enum): X = 1 Y = "hage" Z = 3.3 repack_as(m, EV, EV.X) repack_as(m, EV, EV.Y) repack_as(m, EV, EV.Z) class IE(enum.IntEnum): X = 1 Y = 4 Z = 5 repack_as(m, IE, IE.X) repack_as(m, IE, IE.Y) repack_as(m, IE, IE.Z) @perde.attr(as_value=True) class IEV(enum.IntEnum): X = 1 Y = 4 Z = 5 repack_as(m, IEV, IEV.X) repack_as(m, IEV, IEV.Y) repack_as(m, IEV, IEV.Z) @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_flag(m): class E(enum.Flag): X = enum.auto() Y = enum.auto() Z = X | Y repack_as(m, E, E.X) repack_as(m, E, E.Y) repack_as(m, E, E.Z) @perde.attr(as_value=True) class EV(enum.Flag): X = enum.auto() Y = enum.auto() Z = X | Y repack_as(m, EV, EV.X) repack_as(m, EV, EV.Y) repack_as(m, EV, EV.Z) class IE(enum.IntFlag): X = enum.auto() Y = enum.auto() Z = X | Y repack_as(m, IE, IE.X) repack_as(m, IE, IE.Y) repack_as(m, IE, IE.Z) @perde.attr(as_value=True) class IEV(enum.IntFlag): X = enum.auto() Y = enum.auto() Z = X | Y repack_as(m, IEV, IEV.X) repack_as(m, IEV, IEV.Y) repack_as(m, IEV, IEV.Z) @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_optional(m): repack_as(m, typing.Optional, 3.3) repack_as(m, typing.Optional[int], 3) repack_as(m, typing.Optional[str], "lel") @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_union(m): repack_as(m, typing.Union, 3) repack_as(m, typing.Union[int, str, bytes], 3) repack_as(m, typing.Union[int, str, bytes], b"abyte") repack_as(m, typing.Union[int, str, bytes], "hage") @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_any(m): repack_as(m, typing.Any, 3) repack_as(m, typing.Any, "abc") repack_as(m, typing.Any, [1, 2, 3]) @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_datetime(m): now = datetime.datetime.now() repack_as(m, datetime.datetime, now) repack_as(m, datetime.date, now.date()) repack_as(m, datetime.time, now.time()) @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_decimal(m): repack_as(m, decimal.Decimal, decimal.Decimal("3.1314134")) @pytest.mark.parametrize("m", FORMATS_EXCEPT("toml")) def test_uuid(m): repack_as(m, uuid.UUID, uuid.uuid1())
26.821333
75
0.587791
1,641
10,058
3.478976
0.062767
0.200385
0.223857
0.115607
0.860921
0.787353
0.708881
0.616921
0.529515
0.351025
0
0.02443
0.206403
10,058
374
76
26.893048
0.690804
0.004176
0
0.4
0
0
0.041242
0
0
0
0
0
0
1
0.088136
false
0.00678
0.033898
0
0.305085
0
0
0
0
null
1
1
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
5
0c72d2d4f65917d7f9749d3fd3a48b245dc1eb17
124
py
Python
pytest_direnv/direnv_export/__main__.py
brent-moffit/pytest-direnv
cdd44a19386c25d5b464d517f39f692b6fee46ae
[ "MIT" ]
null
null
null
pytest_direnv/direnv_export/__main__.py
brent-moffit/pytest-direnv
cdd44a19386c25d5b464d517f39f692b6fee46ae
[ "MIT" ]
null
null
null
pytest_direnv/direnv_export/__main__.py
brent-moffit/pytest-direnv
cdd44a19386c25d5b464d517f39f692b6fee46ae
[ "MIT" ]
null
null
null
import os # Print the environment var dictionary to STDOUT so they can be read by the plugin print(repr(dict(os.environ)))
24.8
82
0.774194
22
124
4.363636
0.863636
0
0
0
0
0
0
0
0
0
0
0
0.16129
124
4
83
31
0.923077
0.645161
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
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
1
0
0
1
0
5
0c75c24ec70075932dc3a76b7726c06275a5a64d
41
py
Python
tests/__init__.py
dongyi1996/whiteboxgui
7c4a7fcc4efb4e53dabe9770b330afe56e8a3060
[ "MIT" ]
88
2021-01-21T19:36:44.000Z
2022-02-27T14:35:04.000Z
tests/__init__.py
dongyi1996/whiteboxgui
7c4a7fcc4efb4e53dabe9770b330afe56e8a3060
[ "MIT" ]
2
2021-06-11T00:57:33.000Z
2021-08-03T02:21:43.000Z
tests/__init__.py
giswqs/whiteboxgui
fffa0353e543836b8144ff7425b66f08a9351073
[ "MIT" ]
15
2021-01-23T05:30:57.000Z
2021-12-27T15:29:17.000Z
"""Unit test package for whiteboxgui."""
20.5
40
0.707317
5
41
5.8
1
0
0
0
0
0
0
0
0
0
0
0
0.121951
41
1
41
41
0.805556
0.829268
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
0c987d88a4c8f5d00d909c53cd60bfd911c2e473
100
py
Python
nabu/postprocessing/speaker_verificaion_scorers/__init__.py
Darleen2019/Nabu-MSSS
5e862cbf846d45b8a317f87588533f3fde9f0726
[ "MIT" ]
18
2017-10-16T13:12:46.000Z
2022-02-15T01:20:00.000Z
nabu/postprocessing/speaker_verificaion_scorers/__init__.py
Darleen2019/Nabu-MSSS
5e862cbf846d45b8a317f87588533f3fde9f0726
[ "MIT" ]
null
null
null
nabu/postprocessing/speaker_verificaion_scorers/__init__.py
Darleen2019/Nabu-MSSS
5e862cbf846d45b8a317f87588533f3fde9f0726
[ "MIT" ]
9
2017-10-03T18:10:10.000Z
2020-11-13T08:26:31.000Z
"""@package speaker_verification_scorers""" from . import scorer, scorer_factory, equal_error_rate
25
54
0.81
12
100
6.333333
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.09
100
3
55
33.333333
0.835165
0.37
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0cab4483cd68ce93efaaba16cf0a49523593de43
26
py
Python
authors/apps/ratings/admin.py
hoslack/jua-kali_Backend
e0e92aa0287c4a17b303fdde941f457b28c51223
[ "BSD-3-Clause" ]
2
2018-07-14T21:31:21.000Z
2018-08-05T23:46:06.000Z
authors/apps/ratings/admin.py
andela/ah-scorpion
6b6b31ca0a42dc577e9740d54b8c579de1a603fe
[ "BSD-3-Clause" ]
36
2018-07-25T11:46:06.000Z
2021-06-10T20:33:42.000Z
authors/apps/ratings/admin.py
hoslack/jua-kali_Backend
e0e92aa0287c4a17b303fdde941f457b28c51223
[ "BSD-3-Clause" ]
3
2018-09-04T17:43:53.000Z
2018-11-18T10:14:59.000Z
# Register to admin here.
13
25
0.730769
4
26
4.75
1
0
0
0
0
0
0
0
0
0
0
0
0.192308
26
1
26
26
0.904762
0.884615
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
0cc5756282597aad5be6c964758b354ed7e17f41
122
py
Python
backend/challenges/admin.py
toto9602/Dustar
1195fa84dda4b4ec64e3130679d80da8e5d52393
[ "MIT" ]
null
null
null
backend/challenges/admin.py
toto9602/Dustar
1195fa84dda4b4ec64e3130679d80da8e5d52393
[ "MIT" ]
null
null
null
backend/challenges/admin.py
toto9602/Dustar
1195fa84dda4b4ec64e3130679d80da8e5d52393
[ "MIT" ]
1
2021-11-27T06:40:09.000Z
2021-11-27T06:40:09.000Z
from django.contrib import admin from .models import Challenge # Register your models here. admin.site.register(Challenge)
30.5
32
0.827869
17
122
5.941176
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.106557
122
4
33
30.5
0.926606
0.213115
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0cdd4c338ebcfd5c1bf734c326d6316a7bf4d993
4,013
py
Python
xsrc/ratt/bin/rattlib/output.py
johnttaylor/foxtail
86e4e1d19d5e8f9c1d1064cf0939f4bf62615400
[ "BSD-3-Clause" ]
null
null
null
xsrc/ratt/bin/rattlib/output.py
johnttaylor/foxtail
86e4e1d19d5e8f9c1d1064cf0939f4bf62615400
[ "BSD-3-Clause" ]
null
null
null
xsrc/ratt/bin/rattlib/output.py
johnttaylor/foxtail
86e4e1d19d5e8f9c1d1064cf0939f4bf62615400
[ "BSD-3-Clause" ]
null
null
null
""" Utility functions for outputting messages/information that get sent to stdout as well as the log file """ import config g_verbose = False g_debug = False g_fdout = None g_logout = None g_ident_string = "" #------------------------------------------------------------------------------ def write(string, log_only=False, always_log=False): """ Write/appends 'string' to the output stream. Note: 'log_only' and 'always_log' must be false to output the string to the console. """ if (g_fdout != None and log_only == False and always_log == False): g_fdout.write(string) if (g_logout != None): g_logout.write(bytes(string,'utf-8')) # def writeline(string, log_only=False, always_log=False): """ Write/appends 'string' to the output stream AND adds a trailine newline. Note: 'log_only' and 'always_log' must be false to output the string to the console. """ if (g_fdout != None and log_only == False and always_log == False): g_fdout.write(string + "\n") if (g_logout != None): g_logout.write(bytes(string + "\n", 'utf-8')) # def write_verbose(string, log_only=False): """ Same as write(), except the output is only 'enabled' when verbose output has been enabled. """ if (g_verbose or config.g_verbose_logs): write(string,log_only,config.g_verbose_logs) # def writeline_verbose(string, log_only=False): """ Same as writeline(), except the output is only 'enabled' when verbose output has been enabled. """ if (g_verbose or config.g_verbose_logs): writeline(string,log_only,config.g_verbose_logs) # def write_debug(string, log_only=False): """ Same as write(), except the output is only 'enabled' when debug output has been enabled. """ if (g_debug or config.g_debug_logs): write(string,log_only,config.g_debug_logs) # def writeline_debug(string, log_only=False): """ Same as writeline(), except the output is only 'enabled' when debug output has been enabled. """ if (g_debug or config.g_debug_logs): writeline(string,log_only,config.g_debug_logs) #------------------------------------------------------------------------------ def write_entry(module_name, function_name="", format_string=config.g_entry_banner, indent_prefix=config.indent_prefix): """ Writes the formated string - with the specified module/function name. The format string should assume that indent string is the first argument, the module_name is the second argument, and function_name is the third argument. The write_entry() and write_exit() calls MUST always been done pairs! """ global g_ident_string writeline(format_string.format(g_ident_string, module_name, function_name)) g_ident_string += indent_prefix def write_exit(module_name, function_name="", format_string=config.g_exit_banner, indent_prefix=config.indent_prefix): """ Writes the formated string - with the specified module/funciton name. The format string should assume that indent string is the first argument, the module_name is the second argument, and function_name is the third argument The write_entry() and write_exit() calls MUST always been done pairs! """ global g_ident_string g_ident_string = g_ident_string[:-len(indent_prefix)] writeline(format_string.format(g_ident_string, module_name, function_name)) #------------------------------------------------------------------------------ def set_verbose_mode(enabled): """ Enables/Disabled verbose output """ global g_verbose g_verbose = enabled # def set_debug_mode(enabled): """ Enables/Disabled debug output """ global g_debug g_debug = enabled # def set_output_fd(out_fd, log_fd): """ Sets/defines the opened file objects for console and log output """ global g_fdout global g_logout g_fdout = out_fd g_logout = log_fd
31.849206
120
0.653626
550
4,013
4.547273
0.169091
0.039184
0.051979
0.043183
0.758896
0.758896
0.7493
0.728509
0.642943
0.614154
0
0.000623
0.200598
4,013
125
121
32.104
0.77899
0.430351
0
0.255319
0
0
0.006873
0
0
0
0
0
0
1
0.234043
false
0
0.021277
0
0.255319
0
0
0
0
null
0
0
0
0
1
1
1
0
1
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
5
0ce36b280ba13d5f561a4dcf355d231d72f47da2
121
py
Python
tests/test_permissions.py
Pipoline/cryptopay
e15d2b2702f467aa25cb75364aa463715d578bbb
[ "MIT" ]
5
2019-11-03T11:10:05.000Z
2022-03-02T11:37:29.000Z
tests/test_permissions.py
Pipoline/cryptopay
e15d2b2702f467aa25cb75364aa463715d578bbb
[ "MIT" ]
4
2019-12-30T21:54:36.000Z
2022-02-28T02:53:54.000Z
tests/test_permissions.py
Pipoline/cryptopay
e15d2b2702f467aa25cb75364aa463715d578bbb
[ "MIT" ]
null
null
null
import cryptopay def test_custom_secret_key(): client = cryptopay.Client('custom_secret_key') assert client
12.1
50
0.743802
15
121
5.666667
0.6
0.282353
0.352941
0
0
0
0
0
0
0
0
0
0.181818
121
9
51
13.444444
0.858586
0
0
0
0
0
0.144068
0
0
0
0
0
0.25
1
0.25
false
0
0.25
0
0.5
0
1
0
0
null
1
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
1
0
0
0
0
0
0
0
5
0b28f574258bccb99d4f686b3438b38a5c487f9e
565
py
Python
pirates/leveleditor/worldData/CaveDWorld.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
pirates/leveleditor/worldData/CaveDWorld.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
pirates/leveleditor/worldData/CaveDWorld.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
from pandac.PandaModules import Point3, VBase3 objectStruct = {'Objects': {'1172099793.11sdnaik': {'Type': 'Region','Name': 'default','Objects': {'1172100047.36sdnaik': {'Type': 'Island','File': 'CaveDIsland','Hpr': Point3(0.0, 0.0, 0.0),'Pos': Point3(-200.868, 63.646, 0.0),'Scale': VBase3(1.0, 1.0, 1.0),'Visual': {'Model': 'models/islands/pir_m_are_isl_perdida'}}},'Visual': {}}},'Layers': {},'ObjectIds': {'1172099793.11sdnaik': '["Objects"]["1172099793.11sdnaik"]','1172100047.36sdnaik': '["Objects"]["1172099793.11sdnaik"]["Objects"]["1172100047.36sdnaik"]'}}
282.5
518
0.670796
70
565
5.357143
0.557143
0.032
0.032
0.032
0.016
0
0
0
0
0
0
0.213483
0.054867
565
2
518
282.5
0.488764
0
0
0
0
0
0.560071
0.243816
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
0b5acaf5ec2c1fb9cf8d39c20bdfdd56113e5c25
118
py
Python
src/__main__.py
anexplore/filedownloader
6ebb32bbb818624318a490ecda84c3c0d03910cd
[ "Apache-2.0" ]
null
null
null
src/__main__.py
anexplore/filedownloader
6ebb32bbb818624318a490ecda84c3c0d03910cd
[ "Apache-2.0" ]
null
null
null
src/__main__.py
anexplore/filedownloader
6ebb32bbb818624318a490ecda84c3c0d03910cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from . import file_downloader if __name__ == '__main__': file_downloader.download_file()
19.666667
35
0.686441
14
118
5
0.785714
0.4
0
0
0
0
0
0
0
0
0
0.010101
0.161017
118
5
36
23.6
0.69697
0.177966
0
0
0
0
0.084211
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
1
0
1
0
0
0
0
5
0b88d65795aa6ff34c6cc00327306a330e6c03a1
151
py
Python
docs/src/callbackg.py
aristanetworks/ctypegen
379f8e5c712c8deb0ed27cbf005d7706fa11e6e8
[ "Apache-2.0" ]
17
2018-06-12T10:07:42.000Z
2022-03-23T14:03:33.000Z
docs/src/callbackg.py
aristanetworks/ctypegen
379f8e5c712c8deb0ed27cbf005d7706fa11e6e8
[ "Apache-2.0" ]
4
2018-10-29T17:55:34.000Z
2021-10-08T07:19:12.000Z
docs/src/callbackg.py
aristanetworks/ctypegen
379f8e5c712c8deb0ed27cbf005d7706fa11e6e8
[ "Apache-2.0" ]
7
2018-12-20T19:35:45.000Z
2021-05-18T03:42:17.000Z
#!/usr/bin/env python from CTypeGen import generate, PythonType generate(["libcallback.so"], "callbackgen.py", [PythonType("Callback")], ["callme"])
30.2
84
0.721854
17
151
6.411765
0.882353
0
0
0
0
0
0
0
0
0
0
0
0.086093
151
4
85
37.75
0.789855
0.13245
0
0
1
0
0.323077
0
0
0
0
0
0
1
0
true
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
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
0b9629e8309fa83339a17dc3e86b228404ce6a9b
73
py
Python
tests/rpi_animations/test_picture.py
Anski-D/rpi_animations_old
b019a301ba777d76e3cedc6b86359570e2c2f18b
[ "MIT" ]
null
null
null
tests/rpi_animations/test_picture.py
Anski-D/rpi_animations_old
b019a301ba777d76e3cedc6b86359570e2c2f18b
[ "MIT" ]
null
null
null
tests/rpi_animations/test_picture.py
Anski-D/rpi_animations_old
b019a301ba777d76e3cedc6b86359570e2c2f18b
[ "MIT" ]
null
null
null
from rpi_animations.picture import Picture class TestPicture: pass
12.166667
42
0.794521
9
73
6.333333
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.178082
73
5
43
14.6
0.95
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
5
0bb01041021aaac640de4a44979a9a6832d49c57
375
py
Python
Pytest/test/test_xfail.py
koichi210/Python
9bc0be009bec15499540c1bf9ae802ffe1acfe10
[ "MIT" ]
null
null
null
Pytest/test/test_xfail.py
koichi210/Python
9bc0be009bec15499540c1bf9ae802ffe1acfe10
[ "MIT" ]
null
null
null
Pytest/test/test_xfail.py
koichi210/Python
9bc0be009bec15499540c1bf9ae802ffe1acfe10
[ "MIT" ]
null
null
null
from main.calc import Calc import pytest def test_multiple_01(): assert Calc(9, 2).multiple() == 18 def test_multiple_02(): assert Calc(9, 2).multiple() == -18 @pytest.mark.xfail def test_multiple_03(): assert Calc(9, 2).multiple() == -18 # expect assert @pytest.mark.xfail def test_multiple_04(): assert Calc(9, 2).multiple() == 18 # expect assert
22.058824
58
0.672
57
375
4.280702
0.333333
0.114754
0.245902
0.196721
0.704918
0.704918
0.278689
0.278689
0
0
0
0.078176
0.181333
375
16
59
23.4375
0.716612
0.074667
0
0.5
0
0
0
0
0
0
0
0
0.333333
1
0.333333
true
0
0.166667
0
0.5
0
0
0
0
null
0
1
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
1
1
0
0
0
0
0
0
5
0bc221d4247303178b79072cefd8c7ae4b96743a
97
py
Python
hierarchy1/movie_app/admin.py
cs-fullstack-fall-2018/django-template-hierarchy1-psanon19
8e59a5ff3e0cc8ac05f79942734a37c446ca154c
[ "Apache-2.0" ]
null
null
null
hierarchy1/movie_app/admin.py
cs-fullstack-fall-2018/django-template-hierarchy1-psanon19
8e59a5ff3e0cc8ac05f79942734a37c446ca154c
[ "Apache-2.0" ]
null
null
null
hierarchy1/movie_app/admin.py
cs-fullstack-fall-2018/django-template-hierarchy1-psanon19
8e59a5ff3e0cc8ac05f79942734a37c446ca154c
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import MovieModel admin.site.register(MovieModel)
19.4
32
0.835052
13
97
6.230769
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.103093
97
5
33
19.4
0.931034
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b2df919f92b91119c6975be6448c89c9971c861b
55
py
Python
lint/files/lint-example.py
ryancurrah/salt-lint-example
88eb0fbcede79e2bd2b50ca4982245c6653994bf
[ "Apache-2.0" ]
1
2016-06-17T22:50:49.000Z
2016-06-17T22:50:49.000Z
lint/files/lint-example.py
ryancurrah/salt-lint-example
88eb0fbcede79e2bd2b50ca4982245c6653994bf
[ "Apache-2.0" ]
null
null
null
lint/files/lint-example.py
ryancurrah/salt-lint-example
88eb0fbcede79e2bd2b50ca4982245c6653994bf
[ "Apache-2.0" ]
null
null
null
import re WHITESPACE_PLZ='ll' print WHITESPACE_PLZ
6.875
20
0.781818
8
55
5.125
0.75
0.634146
0
0
0
0
0
0
0
0
0
0
0.163636
55
8
20
6.875
0.891304
0
0
0
0
0
0.035714
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
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
1
0
0
0
1
0
0
0
0
5
b2e67121914cfe3c8860d41e76946ebebf1ac535
28
py
Python
a.py
kzlknight/big_project
289863e465f53829c0289dbcb9962ecedb6d5cbd
[ "MIT" ]
null
null
null
a.py
kzlknight/big_project
289863e465f53829c0289dbcb9962ecedb6d5cbd
[ "MIT" ]
null
null
null
a.py
kzlknight/big_project
289863e465f53829c0289dbcb9962ecedb6d5cbd
[ "MIT" ]
null
null
null
print('aaa') print('bbbbb')
9.333333
14
0.642857
4
28
4.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.071429
28
2
15
14
0.692308
0
0
0
0
0
0.285714
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
b2e6a4fa126e2c18df1be135326b29fe7a67dd7e
54
py
Python
components/rikeripsum/rikeripsum/__init__.py
Nicolas570/chris_db
a13853269847a0cbfa2be9ff7a4330ee1a38db21
[ "MIT" ]
null
null
null
components/rikeripsum/rikeripsum/__init__.py
Nicolas570/chris_db
a13853269847a0cbfa2be9ff7a4330ee1a38db21
[ "MIT" ]
null
null
null
components/rikeripsum/rikeripsum/__init__.py
Nicolas570/chris_db
a13853269847a0cbfa2be9ff7a4330ee1a38db21
[ "MIT" ]
null
null
null
import rikeripsum def main(): rikeripsum.main()
9
21
0.685185
6
54
6.166667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.203704
54
5
22
10.8
0.860465
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
0
0
0
5
b2f57b54707be7a72dd59cbc37915d61d692e9d5
2,639
py
Python
tests/files/test_constraint.py
DaRealFreak/saucenao
28a1abc4fba6b7efdda54b140ba0c164e0b9c11a
[ "MIT" ]
30
2018-04-04T19:58:39.000Z
2021-11-24T16:25:51.000Z
tests/files/test_constraint.py
DaRealFreak/saucenao
28a1abc4fba6b7efdda54b140ba0c164e0b9c11a
[ "MIT" ]
6
2019-04-02T04:53:47.000Z
2020-09-25T09:50:15.000Z
tests/files/test_constraint.py
DaRealFreak/saucenao
28a1abc4fba6b7efdda54b140ba0c164e0b9c11a
[ "MIT" ]
4
2018-04-04T05:07:20.000Z
2020-03-10T14:19:03.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import unittest from saucenao.files.constraint import Constraint class TestConstraint(unittest.TestCase): """ test cases for the constraints in the files submodule """ def test_constraint(self): """Test the initializing function of Constraint :return: """ constraint = Constraint(value='Value', cmp_func=self) self.assertEqual(constraint.value, 'Value') self.assertEqual(constraint.cmp_func, self) def test_value_bigger(self): """Test compare function cmp_value_bigger :return: """ self.assertEqual(Constraint.cmp_value_bigger(1, 2), False) self.assertEqual(Constraint.cmp_value_bigger(2, 2), False) self.assertEqual(Constraint.cmp_value_bigger(2, 1), True) def test_value_bigger_or_equal(self): """Test compare function cmp_value_bigger :return: """ self.assertEqual(Constraint.cmp_value_bigger_or_equal(1, 2), False) self.assertEqual(Constraint.cmp_value_bigger_or_equal(2, 2), True) self.assertEqual(Constraint.cmp_value_bigger_or_equal(2, 1), True) def test_value_smaller(self): """Test compare function cmp_value_bigger :return: """ self.assertEqual(Constraint.cmp_value_smaller(1, 2), True) self.assertEqual(Constraint.cmp_value_smaller(2, 2), False) self.assertEqual(Constraint.cmp_value_smaller(2, 1), False) def test_value_smaller_or_equal(self): """Test compare function cmp_value_bigger :return: """ self.assertEqual(Constraint.cmp_value_smaller_or_equal(1, 2), True) self.assertEqual(Constraint.cmp_value_smaller_or_equal(2, 2), True) self.assertEqual(Constraint.cmp_value_smaller_or_equal(2, 1), False) def test_value_equals(self): """Test compare function cmp_value_bigger :return: """ self.assertEqual(Constraint.cmp_value_equals(1, 2), False) self.assertEqual(Constraint.cmp_value_equals(2, 2), True) self.assertEqual(Constraint.cmp_value_equals(2, 1), False) def test_value_not_equals(self): """Test compare function cmp_value_bigger :return: """ self.assertEqual(Constraint.cmp_value_not_equals(1, 2), True) self.assertEqual(Constraint.cmp_value_not_equals(2, 2), False) self.assertEqual(Constraint.cmp_value_not_equals(2, 1), True) if __name__ == '__main__': suite = unittest.TestLoader().loadTestsFromTestCase(TestConstraint) unittest.TextTestRunner(verbosity=2).run(suite)
32.9875
76
0.68094
324
2,639
5.265432
0.160494
0.112544
0.293083
0.311841
0.712192
0.712192
0.657093
0.639508
0.504103
0.38687
0
0.018243
0.210686
2,639
79
77
33.405063
0.800768
0.167109
0
0
0
0
0.00888
0
0
0
0
0
0.588235
1
0.205882
false
0
0.058824
0
0.294118
0
0
0
0
null
0
1
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
1
0
1
0
0
0
0
0
0
0
5
b2f88fb5a88ef86a1f1f2bc8aeb3dd1e5d107998
711
py
Python
Aulas/Mundo 1/010.py
JoaoEmanuell/Meus-Estudos-Python
f6f6eeb6016919e594613785ffe7136d74241ada
[ "MIT" ]
2
2021-07-29T18:58:02.000Z
2021-10-29T21:11:22.000Z
Aulas/Mundo 1/010.py
JoaoEmanuell/Meus-Estudos-Python
f6f6eeb6016919e594613785ffe7136d74241ada
[ "MIT" ]
null
null
null
Aulas/Mundo 1/010.py
JoaoEmanuell/Meus-Estudos-Python
f6f6eeb6016919e594613785ffe7136d74241ada
[ "MIT" ]
null
null
null
print('\033[1;31mDigite 2 digitos e veja as 4 operações possiveis com eles!\033[m') n1 = int(input('\033[36mPrimeiro digito \033[m')) n2 = int(input('\033[33mSegundo digito \033[m')) print('A \033[1;31msoma\033[m entre \033[36m{}\033[m com \033[33m{}\033[m da \033[35m{}\033[m!'.format(n1,n2,n1+n2)) print('') print('A \033[1;31msubtração\033[m entre \033[36m{}\033[m com \033[33m{}\033[m da \033[35m{}\033[m!'.format(n1,n2,n1-n2)) print(' ') print('A \033[1;31mmultiplicação\033[m entre \033[36m{}\033[m com \033[33m{}\033[m da \033[35m{}\033[m!'.format(n1,n2,n1*n2)) print(' ') print('A \033[1;31mdivisão\033[m entre \033[36m{}\033[m com \033[33m{}\033[m da \033[35m{:.3f}\033[m'.format(n1,n2,n1/n2))
71.1
126
0.652602
144
711
3.222222
0.236111
0.163793
0.077586
0.086207
0.596983
0.596983
0.596983
0.55819
0.55819
0.55819
0
0.275969
0.092827
711
10
127
71.1
0.443411
0
0
0.3
0
0.4
0.715505
0.109531
0
0
0
0
0
1
0
false
0
0
0
0
0.8
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
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
b2fade2b2ae9fe6cfc57c1ffdc59acdbf3db57f9
129
py
Python
model/SLIM/slim/__init__.py
egivental/resetInterpretability
cb1d62bb89512c3469c641f2082f24c813ab2b26
[ "Apache-2.0" ]
null
null
null
model/SLIM/slim/__init__.py
egivental/resetInterpretability
cb1d62bb89512c3469c641f2082f24c813ab2b26
[ "Apache-2.0" ]
null
null
null
model/SLIM/slim/__init__.py
egivental/resetInterpretability
cb1d62bb89512c3469c641f2082f24c813ab2b26
[ "Apache-2.0" ]
null
null
null
from .SLIMCoefficientConstraints import SLIMCoefficientConstraints from .create_slim_IP import * from .helper_functions import *
32.25
66
0.868217
13
129
8.384615
0.615385
0
0
0
0
0
0
0
0
0
0
0
0.093023
129
3
67
43
0.931624
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
65012e85e588c2fa06329c1d3f408db73f99c55d
418
py
Python
tests/inputs/loops/outputs/34-module-in-loop-store.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
4
2019-10-06T18:01:24.000Z
2020-07-03T05:27:35.000Z
tests/inputs/loops/outputs/34-module-in-loop-store.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
5
2021-06-07T15:50:04.000Z
2021-06-07T15:50:06.000Z
tests/inputs/loops/outputs/34-module-in-loop-store.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
null
null
null
import pytropos.internals.values as pv from pytropos.internals.values.builtin_values import * from pytropos.internals.values.python_values.builtin_mutvalues import * from pytropos.internals.values.python_values.wrappers import * from pytropos.internals.values.python_values.python_values import PythonValue, PT from pytropos.libs_checking.numpy import * exitcode = 1 store = { 'np': numpy_module, '_': pv.Top, }
29.857143
81
0.811005
55
418
6
0.4
0.257576
0.348485
0.327273
0.409091
0.409091
0.409091
0
0
0
0
0.00266
0.100478
418
13
82
32.153846
0.875
0
0
0
0
0
0.007177
0
0
0
0
0
0
1
0
false
0
0.545455
0
0.545455
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
1
0
1
0
0
5
65176f7dabff734bd0cdbba7be96e97026937ea1
9
py
Python
T13-00/program.py
maa76/SSof-Project1920
9b4ad9ac41a648c425fcfcd49cd52ff84e528bde
[ "MIT" ]
2
2019-11-20T19:26:07.000Z
2019-11-22T00:42:23.000Z
T13-00/program.py
maa76/SSof-Project1920
9b4ad9ac41a648c425fcfcd49cd52ff84e528bde
[ "MIT" ]
2
2019-11-28T05:21:24.000Z
2019-11-28T05:21:58.000Z
T13-00/program.py
maa76/SSof-Project1920
9b4ad9ac41a648c425fcfcd49cd52ff84e528bde
[ "MIT" ]
25
2019-11-27T01:40:56.000Z
2019-12-04T23:38:59.000Z
a(xpto)
3
7
0.555556
2
9
2.5
1
0
0
0
0
0
0
0
0
0
0
0
0.222222
9
2
8
4.5
0.714286
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
3302bc3fd6df82feddf7476dde5e6c8ffc5f0951
41
py
Python
tori/data/exception.py
shiroyuki/Tori
143b99075bf9e8d469d117f056516ab847234c8c
[ "MIT" ]
null
null
null
tori/data/exception.py
shiroyuki/Tori
143b99075bf9e8d469d117f056516ab847234c8c
[ "MIT" ]
6
2015-01-19T20:21:40.000Z
2015-01-19T20:28:42.000Z
tori/data/exception.py
shiroyuki/Tori
143b99075bf9e8d469d117f056516ab847234c8c
[ "MIT" ]
null
null
null
class DirectoryException(Exception): pass
41
41
0.878049
4
41
9
1
0
0
0
0
0
0
0
0
0
0
0
0.04878
41
1
41
41
0.923077
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
1
0
0
1
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
1
1
0
0
0
0
0
5
33203a05de5e76d77888d68010ec4c7d733e0585
82
py
Python
Week01/q0.py
HowardNTUST/HackNTU_Data_2017
ad8e753a16719b6f9396d88b313a5757f5ed4794
[ "MIT" ]
null
null
null
Week01/q0.py
HowardNTUST/HackNTU_Data_2017
ad8e753a16719b6f9396d88b313a5757f5ed4794
[ "MIT" ]
null
null
null
Week01/q0.py
HowardNTUST/HackNTU_Data_2017
ad8e753a16719b6f9396d88b313a5757f5ed4794
[ "MIT" ]
1
2019-02-24T17:41:45.000Z
2019-02-24T17:41:45.000Z
x = np.linspace(-1,1,11) plt.plot(x, x**2+1, "g^", x, x**3, 'ro', x, x**2+1, 'b');
41
57
0.45122
22
82
1.681818
0.545455
0.162162
0.162162
0.216216
0
0
0
0
0
0
0
0.126761
0.134146
82
2
57
41
0.394366
0
0
0
0
0
0.060241
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
1
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
3348ea66b318399123ae5f462a3fd6560adcd38b
222
py
Python
colab/apps/object_feeds/admin.py
caseywstark/colab
e05293e45a657eda19d733bf05624a1613a7a9b7
[ "MIT" ]
1
2015-11-05T11:49:32.000Z
2015-11-05T11:49:32.000Z
colab/apps/object_feeds/admin.py
caseywstark/colab
e05293e45a657eda19d733bf05624a1613a7a9b7
[ "MIT" ]
null
null
null
colab/apps/object_feeds/admin.py
caseywstark/colab
e05293e45a657eda19d733bf05624a1613a7a9b7
[ "MIT" ]
null
null
null
from django.contrib import admin from object_feeds.models import Feed, Subscription, Update, Action admin.site.register(Feed) admin.site.register(Subscription) admin.site.register(Update) admin.site.register(Action)
31.714286
67
0.810811
30
222
5.966667
0.466667
0.201117
0.379888
0
0
0
0
0
0
0
0
0
0.094595
222
6
68
37
0.890547
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
0
0
0
null
1
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
1
0
1
0
0
0
0
5
33528cccf6a2a24721ce9897d18386f5c219dab4
53
py
Python
curious_agent/pipelines/__init__.py
kingspp/curious_agent
01b3c6568f263d60cb8a7e9c3b048d93b64443d4
[ "MIT" ]
1
2020-12-20T15:24:31.000Z
2020-12-20T15:24:31.000Z
curious_agent/pipelines/__init__.py
kingspp/curious_agent
01b3c6568f263d60cb8a7e9c3b048d93b64443d4
[ "MIT" ]
8
2019-11-10T16:53:26.000Z
2019-11-23T03:26:34.000Z
curious_agent/pipelines/__init__.py
kingspp/curious_agent
01b3c6568f263d60cb8a7e9c3b048d93b64443d4
[ "MIT" ]
null
null
null
from curious_agent.pipelines.pipeline import Pipeline
53
53
0.90566
7
53
6.714286
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.056604
53
1
53
53
0.94
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
335e6acaeca004502807ba12e11d8e3bbb475433
18
py
Python
dataloaders/__init__.py
lxchtan/Dialogue-Generation
b1432052f33f0b109dd162630889945fb1fde740
[ "MIT" ]
2
2021-08-02T13:57:00.000Z
2021-12-01T04:14:24.000Z
dataloaders/__init__.py
lxchtan/Dialogue-Generation
b1432052f33f0b109dd162630889945fb1fde740
[ "MIT" ]
null
null
null
dataloaders/__init__.py
lxchtan/Dialogue-Generation
b1432052f33f0b109dd162630889945fb1fde740
[ "MIT" ]
null
null
null
from . import gpt2
18
18
0.777778
3
18
4.666667
1
0
0
0
0
0
0
0
0
0
0
0.066667
0.166667
18
1
18
18
0.866667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
6826c4396bb5d2cf416e940d65b777b016860bbd
36
py
Python
homeassistant/components/seven_segments/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/seven_segments/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/seven_segments/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The seven_segments component."""
18
35
0.722222
4
36
6.25
1
0
0
0
0
0
0
0
0
0
0
0
0.083333
36
1
36
36
0.757576
0.805556
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
68567fa27704c7b55ab1cfc25b94f3a562002b63
149
py
Python
chibi_dl/site/crunchyroll/exceptions.py
dem4ply/chibi_dl
c6783315460580e784b7ff7479c668e1097ae293
[ "WTFPL" ]
1
2020-01-30T03:59:08.000Z
2020-01-30T03:59:08.000Z
chibi_dl/site/crunchyroll/exceptions.py
dem4ply/chibi_dl
c6783315460580e784b7ff7479c668e1097ae293
[ "WTFPL" ]
null
null
null
chibi_dl/site/crunchyroll/exceptions.py
dem4ply/chibi_dl
c6783315460580e784b7ff7479c668e1097ae293
[ "WTFPL" ]
null
null
null
class Cannot_login( Exception ): pass class Cannot_find_subtitles( Exception ): pass class Episode_not_have_media( Exception ): pass
13.545455
42
0.731544
18
149
5.722222
0.611111
0.378641
0.349515
0
0
0
0
0
0
0
0
0
0.208054
149
10
43
14.9
0.872881
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
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
1
1
0
0
0
0
0
5
6892bb27b558ed7b04cb72777fdf38e8d17ae79a
126
py
Python
src/start.py
procrastination-team/boombox.api
7ace839bfdd4c5fe0eaa5b7cbcef4f627673859b
[ "MIT" ]
null
null
null
src/start.py
procrastination-team/boombox.api
7ace839bfdd4c5fe0eaa5b7cbcef4f627673859b
[ "MIT" ]
11
2021-11-24T18:49:17.000Z
2021-12-21T14:31:57.000Z
src/start.py
procrastination-team/boombox.api
7ace839bfdd4c5fe0eaa5b7cbcef4f627673859b
[ "MIT" ]
null
null
null
from app import run_server from utils import environments as env if __name__ == "__main__": run_server(env.SERVICE_PORT)
21
37
0.777778
19
126
4.578947
0.736842
0.206897
0
0
0
0
0
0
0
0
0
0
0.15873
126
5
38
25.2
0.820755
0
0
0
0
0
0.063492
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
5
689aeaadb826be6057fdb161954d97eba2c1fa2b
13,485
py
Python
OpenGLCffi/GLES1/gles1.py
cydenix/OpenGLCffi
c78f51ae5e6b655eb2ea98f072771cf69e2197f3
[ "MIT" ]
null
null
null
OpenGLCffi/GLES1/gles1.py
cydenix/OpenGLCffi
c78f51ae5e6b655eb2ea98f072771cf69e2197f3
[ "MIT" ]
null
null
null
OpenGLCffi/GLES1/gles1.py
cydenix/OpenGLCffi
c78f51ae5e6b655eb2ea98f072771cf69e2197f3
[ "MIT" ]
null
null
null
from OpenGLCffi.GLES1 import params @params(api='gles1', prms=['pname', 'params']) def glFogfv(pname, params): pass @params(api='gles1', prms=['buffer']) def glIsBuffer(buffer): pass @params(api='gles1', prms=['m']) def glMultMatrixx(m): pass @params(api='gles1', prms=['plane', 'equation']) def glGetClipPlanef(plane): pass @params(api='gles1', prms=['pname', 'param']) def glFogx(pname, param): pass @params(api='gles1', prms=['size', 'type', 'stride', 'pointer']) def glVertexPointer(size, type, stride, pointer): pass @params(api='gles1', prms=['pname', 'param']) def glFogf(pname, param): pass @params(api='gles1', prms=['cap']) def glIsEnabled(cap): pass @params(api='gles1', prms=['fail', 'zfail', 'zpass']) def glStencilOp(fail, zfail, zpass): pass @params(api='gles1', prms=['n', 'f']) def glDepthRangex(n, f): pass @params(api='gles1', prms=['pname', 'params']) def glGetPointerv(pname): pass @params(api='gles1', prms=['target', 'level', 'internalformat', 'x', 'y', 'width', 'height', 'border']) def glCopyTexImage2D(target, level, internalformat, x, y, width, height, border): pass @params(api='gles1', prms=['light', 'pname', 'params']) def glLightxv(light, pname, params): pass @params(api='gles1', prms=['pname', 'data']) def glGetBooleanv(pname): pass @params(api='gles1', prms=['target', 'pname', 'param']) def glTexParameterf(target, pname, param): pass @params(api='gles1', prms=['target', 'pname', 'param']) def glTexParameteri(target, pname, param): pass @params(api='gles1', prms=['red', 'green', 'blue', 'alpha']) def glColor4ub(red, green, blue, alpha): pass @params(api='gles1', prms=['name']) def glGetString(name): pass @params(api='gles1', prms=['n', 'textures']) def glDeleteTextures(n, textures): pass @params(api='gles1', prms=['target', 'pname', 'params']) def glGetTexEnvfv(target, pname): pass @params(api='gles1', prms=['mode']) def glCullFace(mode): pass @params(api='gles1', prms=['target', 'pname', 'params']) def glGetBufferParameteriv(target, pname): pass @params(api='gles1', prms=['pname', 'params']) def glLightModelfv(pname, params): pass @params(api='gles1', prms=['angle', 'x', 'y', 'z']) def glRotatex(angle, x, y, z): pass @params(api='gles1', prms=['angle', 'x', 'y', 'z']) def glRotatef(angle, x, y, z): pass @params(api='gles1', prms=['target', 'pname', 'params']) def glGetTexEnvxv(target, pname): pass @params(api='gles1', prms=['func', 'ref']) def glAlphaFunc(func, ref): pass @params(api='gles1', prms=['func', 'ref', 'mask']) def glStencilFunc(func, ref, mask): pass @params(api='gles1', prms=['n', 'buffers']) def glDeleteBuffers(n, buffers): pass @params(api='gles1', prms=['x', 'y', 'width', 'height']) def glScissor(x, y, width, height): pass @params(api='gles1', prms=['pname', 'params']) def glGetFixedv(pname): pass @params(api='gles1', prms=['face', 'pname', 'params']) def glMaterialfv(face, pname, params): pass @params(api='gles1', prms=['pname', 'params']) def glPointParameterfv(pname, params): pass @params(api='gles1', prms=[]) def glGetError(): pass @params(api='gles1', prms=['target', 'pname', 'params']) def glGetTexEnviv(target, pname): pass @params(api='gles1', prms=['pname', 'param']) def glPixelStorei(pname, param): pass @params(api='gles1', prms=['flag']) def glDepthMask(flag): pass @params(api='gles1', prms=['target', 'level', 'xoffset', 'yoffset', 'x', 'y', 'width', 'height']) def glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height): pass @params(api='gles1', prms=['size']) def glPointSize(size): pass @params(api='gles1', prms=['mode', 'first', 'count']) def glDrawArrays(mode, first, count): pass @params(api='gles1', prms=['mask']) def glClear(mask): pass @params(api='gles1', prms=['x', 'y', 'z']) def glTranslatef(x, y, z): pass @params(api='gles1', prms=['x', 'y', 'z']) def glTranslatex(x, y, z): pass @params(api='gles1', prms=['face', 'pname', 'param']) def glMaterialf(face, pname, param): pass @params(api='gles1', prms=['face', 'pname', 'param']) def glMaterialx(face, pname, param): pass @params(api='gles1', prms=['light', 'pname', 'param']) def glLightx(light, pname, param): pass @params(api='gles1', prms=['light', 'pname', 'param']) def glLightf(light, pname, param): pass @params(api='gles1', prms=['value', 'invert']) def glSampleCoverage(value, invert): pass @params(api='gles1', prms=['target', 'pname', 'param']) def glTexEnvf(target, pname, param): pass @params(api='gles1', prms=['target', 'pname', 'param']) def glTexEnvi(target, pname, param): pass @params(api='gles1', prms=['target', 'pname', 'param']) def glTexEnvx(target, pname, param): pass @params(api='gles1', prms=['pname', 'param']) def glLightModelf(pname, param): pass @params(api='gles1', prms=['pname', 'param']) def glLightModelx(pname, param): pass @params(api='gles1', prms=['red', 'green', 'blue', 'alpha']) def glColor4x(red, green, blue, alpha): pass @params(api='gles1', prms=['red', 'green', 'blue', 'alpha']) def glColor4f(red, green, blue, alpha): pass @params(api='gles1', prms=['x', 'y', 'width', 'height']) def glViewport(x, y, width, height): pass @params(api='gles1', prms=['pname', 'params']) def glPointParameterxv(pname, params): pass @params(api='gles1', prms=['target', 'texture']) def glBindTexture(target, texture): pass @params(api='gles1', prms=['target', 'buffer']) def glBindBuffer(target, buffer): pass @params(api='gles1', prms=['value', 'invert']) def glSampleCoveragex(value, invert): pass @params(api='gles1', prms=['pname', 'param']) def glPointParameterf(pname, param): pass @params(api='gles1', prms=['x', 'y', 'width', 'height', 'format', 'type', 'pixels']) def glReadPixels(x, y, width, height, format, type, pixels): pass @params(api='gles1', prms=['mode']) def glShadeModel(mode): pass @params(api='gles1', prms=['n', 'buffers']) def glGenBuffers(n): pass @params(api='gles1', prms=['light', 'pname', 'params']) def glGetLightxv(light, pname): pass @params(api='gles1', prms=['red', 'green', 'blue', 'alpha']) def glClearColorx(red, green, blue, alpha): pass @params(api='gles1', prms=['pname', 'param']) def glFogxv(pname, param): pass @params(api='gles1', prms=['func']) def glDepthFunc(func): pass @params(api='gles1', prms=['pname', 'param']) def glPointParameterx(pname, param): pass @params(api='gles1', prms=['array']) def glEnableClientState(array): pass @params(api='gles1', prms=['func', 'ref']) def glAlphaFuncx(func, ref): pass @params(api='gles1', prms=['pname', 'data']) def glGetFloatv(pname): pass @params(api='gles1', prms=['pname', 'data']) def glGetIntegerv(pname): pass @params(api='gles1', prms=['target', 'level', 'internalformat', 'width', 'height', 'border', 'format', 'type', 'pixels']) def glTexImage2D(target, level, internalformat, width, height, border, format, type, pixels): pass @params(api='gles1', prms=['m']) def glMultMatrixf(m): pass @params(api='gles1', prms=['width']) def glLineWidth(width): pass @params(api='gles1', prms=['n', 'f']) def glDepthRangef(n, f): pass @params(api='gles1', prms=['width']) def glLineWidthx(width): pass @params(api='gles1', prms=['type', 'stride', 'pointer']) def glNormalPointer(type, stride, pointer): pass @params(api='gles1', prms=['light', 'pname', 'params']) def glLightfv(light, pname, params): pass @params(api='gles1', prms=['target', 'pname', 'params']) def glTexParameteriv(target, pname, params): pass @params(api='gles1', prms=['l', 'r', 'b', 't', 'n', 'f']) def glFrustumx(l, r, b, t, n, f): pass @params(api='gles1', prms=['l', 'r', 'b', 't', 'n', 'f']) def glFrustumf(l, r, b, t, n, f): pass @params(api='gles1', prms=[]) def glFlush(): pass @params(api='gles1', prms=['s']) def glClearStencil(s): pass @params(api='gles1', prms=['pname', 'param']) def glLightModelxv(pname, param): pass @params(api='gles1', prms=['texture']) def glIsTexture(texture): pass @params(api='gles1', prms=['factor', 'units']) def glPolygonOffset(factor, units): pass @params(api='gles1', prms=['mode']) def glMatrixMode(mode): pass @params(api='gles1', prms=[]) def glFinish(): pass @params(api='gles1', prms=['target', 'level', 'xoffset', 'yoffset', 'width', 'height', 'format', 'type', 'pixels']) def glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels): pass @params(api='gles1', prms=['opcode']) def glLogicOp(opcode): pass @params(api='gles1', prms=['mode', 'count', 'type', 'indices']) def glDrawElements(mode, count, type, indices): pass @params(api='gles1', prms=['texture']) def glClientActiveTexture(texture): pass @params(api='gles1', prms=['array']) def glDisableClientState(array): pass @params(api='gles1', prms=['plane', 'equation']) def glGetClipPlanex(plane): pass @params(api='gles1', prms=['depth']) def glClearDepthx(depth): pass @params(api='gles1', prms=['d']) def glClearDepthf(d): pass @params(api='gles1', prms=['texture', 's', 't', 'r', 'q']) def glMultiTexCoord4x(texture, s, t, r, q): pass @params(api='gles1', prms=['target', 's', 't', 'r', 'q']) def glMultiTexCoord4f(target, s, t, r, q): pass @params(api='gles1', prms=['red', 'green', 'blue', 'alpha']) def glColorMask(red, green, blue, alpha): pass @params(api='gles1', prms=['face', 'pname', 'param']) def glMaterialxv(face, pname, param): pass @params(api='gles1', prms=['factor', 'units']) def glPolygonOffsetx(factor, units): pass @params(api='gles1', prms=['m']) def glLoadMatrixx(m): pass @params(api='gles1', prms=['m']) def glLoadMatrixf(m): pass @params(api='gles1', prms=['target', 'pname', 'params']) def glTexParameterfv(target, pname, params): pass @params(api='gles1', prms=['target', 'pname', 'params']) def glTexParameterxv(target, pname, params): pass @params(api='gles1', prms=['target', 'pname', 'param']) def glTexParameterx(target, pname, param): pass @params(api='gles1', prms=['size']) def glPointSizex(size): pass @params(api='gles1', prms=['target', 'level', 'internalformat', 'width', 'height', 'border', 'imageSize', 'data']) def glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data): pass @params(api='gles1', prms=[]) def glLoadIdentity(): pass @params(api='gles1', prms=['face', 'pname', 'params']) def glGetMaterialxv(face, pname): pass @params(api='gles1', prms=['target', 'pname', 'params']) def glTexEnvxv(target, pname, params): pass @params(api='gles1', prms=['face', 'pname', 'params']) def glGetMaterialfv(face, pname): pass @params(api='gles1', prms=['l', 'r', 'b', 't', 'n', 'f']) def glOrthox(l, r, b, t, n, f): pass @params(api='gles1', prms=['l', 'r', 'b', 't', 'n', 'f']) def glOrthof(l, r, b, t, n, f): pass @params(api='gles1', prms=['cap']) def glEnable(cap): pass @params(api='gles1', prms=[]) def glPushMatrix(): pass @params(api='gles1', prms=['target', 'pname', 'params']) def glGetTexParameterxv(target, pname): pass @params(api='gles1', prms=['n', 'textures']) def glGenTextures(n): pass @params(api='gles1', prms=['target', 'mode']) def glHint(target, mode): pass @params(api='gles1', prms=['x', 'y', 'z']) def glScalef(x, y, z): pass @params(api='gles1', prms=['x', 'y', 'z']) def glScalex(x, y, z): pass @params(api='gles1', prms=['target', 'pname', 'params']) def glGetTexParameteriv(target, pname): pass @params(api='gles1', prms=['cap']) def glDisable(cap): pass @params(api='gles1', prms=['light', 'pname', 'params']) def glGetLightfv(light, pname): pass @params(api='gles1', prms=[]) def glPopMatrix(): pass @params(api='gles1', prms=['texture']) def glActiveTexture(texture): pass @params(api='gles1', prms=['target', 'pname', 'params']) def glTexEnvfv(target, pname, params): pass @params(api='gles1', prms=['target', 'offset', 'size', 'data']) def glBufferSubData(target, offset, size, data): pass @params(api='gles1', prms=['size', 'type', 'stride', 'pointer']) def glTexCoordPointer(size, type, stride, pointer): pass @params(api='gles1', prms=['target', 'pname', 'params']) def glTexEnviv(target, pname, params): pass @params(api='gles1', prms=['sfactor', 'dfactor']) def glBlendFunc(sfactor, dfactor): pass @params(api='gles1', prms=['red', 'green', 'blue', 'alpha']) def glClearColor(red, green, blue, alpha): pass @params(api='gles1', prms=['mask']) def glStencilMask(mask): pass @params(api='gles1', prms=['nx', 'ny', 'nz']) def glNormal3f(nx, ny, nz): pass @params(api='gles1', prms=['target', 'level', 'xoffset', 'yoffset', 'width', 'height', 'format', 'imageSize', 'data']) def glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data): pass @params(api='gles1', prms=['target', 'pname', 'params']) def glGetTexParameterfv(target, pname): pass @params(api='gles1', prms=['target', 'size', 'data', 'usage']) def glBufferData(target, size, data, usage): pass @params(api='gles1', prms=['size', 'type', 'stride', 'pointer']) def glColorPointer(size, type, stride, pointer): pass @params(api='gles1', prms=['nx', 'ny', 'nz']) def glNormal3x(nx, ny, nz): pass @params(api='gles1', prms=['plane', 'equation']) def glClipPlanex(plane, equation): pass @params(api='gles1', prms=['p', 'eqn']) def glClipPlanef(p, eqn): pass @params(api='gles1', prms=['mode']) def glFrontFace(mode): pass
18.677285
121
0.647979
1,763
13,485
4.956324
0.128191
0.148318
0.230716
0.296635
0.741588
0.730602
0.688373
0.570611
0.406271
0.214122
0
0.013328
0.120875
13,485
721
122
18.70319
0.723745
0
0
0.598152
0
0
0.180079
0
0
0
0
0
0
1
0.332564
false
0.337182
0.002309
0
0.334873
0
0
0
0
null
0
1
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
1
0
1
0
0
0
0
0
5
68af9d504d0d3e0ac7ce5f550458106177cf2b26
514
py
Python
packages/pycom/v1.18.2/esp32/stubs/utime.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
18
2019-07-11T13:31:09.000Z
2022-01-27T06:38:40.000Z
packages/pycom/v1.18.2/esp32/stubs/utime.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
9
2019-09-01T21:44:49.000Z
2022-02-04T20:55:08.000Z
packages/pycom/v1.18.2/esp32/stubs/utime.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
6
2019-10-08T05:31:21.000Z
2021-04-22T10:21:01.000Z
""" Module: 'utime' on WiPy 07a52e4 """ # MCU: (sysname='WiPy', nodename='WiPy', release='1.18.2', version='07a52e4-dirty on 2019-07-26', machine='WiPy with ESP32') # Stubber: 1.2.0 def gmtime(): pass def localtime(): pass def mktime(): pass def sleep(): pass def sleep_ms(): pass def sleep_us(): pass def ticks_add(): pass def ticks_cpu(): pass def ticks_diff(): pass def ticks_ms(): pass def ticks_us(): pass def time(): pass def timezone(): pass
11.422222
124
0.601167
75
514
4.026667
0.48
0.278146
0.198676
0
0
0
0
0
0
0
0
0.069409
0.243191
514
44
125
11.681818
0.706941
0.330739
0
0.5
0
0
0
0
0
0
0
0
0
1
0.5
true
0.5
0
0
0.5
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
1
1
0
0
0
0
0
5
d799ecee29bf9ab027cd817b2ad1e0fc41de1b24
179
py
Python
src/twitter_app/util/twitter_api_v1_1/__init__.py
silverag-corgi/twitter-lib-for-me
ee5e85ecbe87d91b7c7638225a806d4185fb6fd9
[ "MIT" ]
null
null
null
src/twitter_app/util/twitter_api_v1_1/__init__.py
silverag-corgi/twitter-lib-for-me
ee5e85ecbe87d91b7c7638225a806d4185fb6fd9
[ "MIT" ]
1
2022-03-18T09:24:31.000Z
2022-03-26T23:34:44.000Z
src/twitter_app/util/twitter_api_v1_1/__init__.py
silverag-corgi/twitter-lib-for-me
ee5e85ecbe87d91b7c7638225a806d4185fb6fd9
[ "MIT" ]
1
2022-03-27T10:12:46.000Z
2022-03-27T10:12:46.000Z
''' Twitter API 共通パッケージ https://developer.twitter.com/en/docs/api-reference-index ''' from .premium import * from .standard import * from .twitter_api_auth_util import *
19.888889
58
0.726257
24
179
5.291667
0.666667
0.15748
0
0
0
0
0
0
0
0
0
0
0.150838
179
8
59
22.375
0.835526
0.430168
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d7a25b52b6e2d247ec79cbf62f95bdb5f9e75e57
216
py
Python
src/folder2/hello.py
lalithkumart-corp/python-codebase
a5457e3357b2cef05a75260f601151f74c6d072b
[ "MIT" ]
null
null
null
src/folder2/hello.py
lalithkumart-corp/python-codebase
a5457e3357b2cef05a75260f601151f74c6d072b
[ "MIT" ]
null
null
null
src/folder2/hello.py
lalithkumart-corp/python-codebase
a5457e3357b2cef05a75260f601151f74c6d072b
[ "MIT" ]
null
null
null
class Hello: def init(self, msg): print('Invoked init method of class HELLO') self.message = msg print('Message obtained ', self.message) def getMsg(self): print(self.message)
27
51
0.611111
27
216
4.888889
0.481481
0.25
0
0
0
0
0
0
0
0
0
0
0.282407
216
7
52
30.857143
0.851613
0
0
0
0
0
0.236111
0
0
0
0
0
0
1
0.285714
false
0
0
0
0.428571
0.428571
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
1
0
0
0
0
0
1
0
5
d7d2c9dca375f7fabf7757423414282c2ff46d65
127
py
Python
auction/users/admin.py
Gliger13/auction_site
0358dbdee1a41da1d68cb158bccadf54aad465dd
[ "MIT" ]
1
2020-06-16T20:02:55.000Z
2020-06-16T20:02:55.000Z
auction/users/admin.py
Gliger13/auction_site
0358dbdee1a41da1d68cb158bccadf54aad465dd
[ "MIT" ]
null
null
null
auction/users/admin.py
Gliger13/auction_site
0358dbdee1a41da1d68cb158bccadf54aad465dd
[ "MIT" ]
2
2020-06-03T13:12:26.000Z
2020-06-25T21:56:05.000Z
from django.contrib import admin from users.models import User, Avatar admin.site.register(User) admin.site.register(Avatar)
18.142857
37
0.811024
19
127
5.421053
0.578947
0.174757
0.330097
0
0
0
0
0
0
0
0
0
0.102362
127
6
38
21.166667
0.903509
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
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
1
0
1
0
0
0
0
5
d7fe0ae0859af42cfd4512b8cf72a2af729df34e
135
py
Python
APP/Api/__init__.py
johnkabage/book-a-meal-API
8bcae5f0da06409cd73647ddabcd1bdb3cb4e4ba
[ "MIT" ]
null
null
null
APP/Api/__init__.py
johnkabage/book-a-meal-API
8bcae5f0da06409cd73647ddabcd1bdb3cb4e4ba
[ "MIT" ]
null
null
null
APP/Api/__init__.py
johnkabage/book-a-meal-API
8bcae5f0da06409cd73647ddabcd1bdb3cb4e4ba
[ "MIT" ]
null
null
null
from flask import Flask from flask_restful import Api from ..instance.config import app_config from .v1.auth.views import Login, SignUp
33.75
40
0.82963
22
135
5
0.590909
0.163636
0
0
0
0
0
0
0
0
0
0.008403
0.118519
135
4
41
33.75
0.915966
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
041138c7e425ce4acf1e907f8f1ea2333efcf6e1
388
py
Python
flask_rebar/swagger_generation/swagger_generator/__init__.py
l-vincent-l/flask-rebar
b44488e4ddab52883aa3b10e28d24136f36866ca
[ "MIT" ]
null
null
null
flask_rebar/swagger_generation/swagger_generator/__init__.py
l-vincent-l/flask-rebar
b44488e4ddab52883aa3b10e28d24136f36866ca
[ "MIT" ]
1
2020-12-15T14:48:26.000Z
2020-12-15T15:22:48.000Z
flask_rebar/swagger_generation/swagger_generator/__init__.py
l-vincent-l/flask-rebar
b44488e4ddab52883aa3b10e28d24136f36866ca
[ "MIT" ]
1
2020-12-15T14:43:46.000Z
2020-12-15T14:43:46.000Z
# hack to reintroduce backward-compatibility as SwaggerV2Generator used to live in swagger_generator.py from flask_rebar.swagger_generation.swagger_generator_base import SwaggerGenerator from flask_rebar.swagger_generation.swagger_generator_v2 import ( SwaggerV2Generator, ) # noqa from flask_rebar.swagger_generation.swagger_generator_v3 import ( SwaggerV3Generator, ) # noqa
38.8
103
0.845361
46
388
6.847826
0.521739
0.203175
0.133333
0.2
0.447619
0.447619
0.447619
0
0
0
0
0.014493
0.110825
388
9
104
43.111111
0.898551
0.286082
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.428571
0
0.428571
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
04309ca52b5a657aecf4bea1c88b970b9e9be988
245
py
Python
src/mdp/__init__.py
Gnosling/RLASP
e4da8c72e295fbebeebe3bc20857fb1cd4e5814a
[ "MIT" ]
null
null
null
src/mdp/__init__.py
Gnosling/RLASP
e4da8c72e295fbebeebe3bc20857fb1cd4e5814a
[ "MIT" ]
null
null
null
src/mdp/__init__.py
Gnosling/RLASP
e4da8c72e295fbebeebe3bc20857fb1cd4e5814a
[ "MIT" ]
null
null
null
from .markov_decision_procedure import MarkovDecisionProcedure from .blocksworld import BlocksWorld, BlocksWorldBuilder from .vacuum_cleaner_world import VacuumCleanerWorld, VacuumCleanerWorldBuilder from .sokoban import Sokoban, SokobanBuilder
49
79
0.893878
23
245
9.347826
0.652174
0
0
0
0
0
0
0
0
0
0
0
0.077551
245
4
80
61.25
0.951327
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
045982a6fc80db56ede05fc38486e1d00fdd996f
73
py
Python
plugins/test.py
turalaksel/cadnano2.1
5e5b0e9085755c2e810346d3e580994bf4fad174
[ "MIT" ]
23
2018-11-26T12:00:22.000Z
2022-03-27T14:38:43.000Z
plugins/test.py
turalaksel/cadnano2.1
5e5b0e9085755c2e810346d3e580994bf4fad174
[ "MIT" ]
23
2018-12-20T20:04:42.000Z
2022-03-04T03:58:23.000Z
plugins/test.py
turalaksel/cadnano2.1
5e5b0e9085755c2e810346d3e580994bf4fad174
[ "MIT" ]
23
2018-07-04T02:06:00.000Z
2022-03-27T14:31:00.000Z
import cadnano print("Plugin loaded, has access to cadnano: %s"%cadnano)
24.333333
57
0.767123
11
73
5.090909
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.123288
73
2
58
36.5
0.875
0
0
0
0
0
0.547945
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
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
1
0
0
1
0
5
f0852d9aba86a7d3eadca004998af8d90e23ef06
151
py
Python
dict_json/__init__.py
bkuehlhorn/dict-json
98298dcdb09c12ef434104c167d30d2174d95e40
[ "BSD-2-Clause" ]
null
null
null
dict_json/__init__.py
bkuehlhorn/dict-json
98298dcdb09c12ef434104c167d30d2174d95e40
[ "BSD-2-Clause" ]
null
null
null
dict_json/__init__.py
bkuehlhorn/dict-json
98298dcdb09c12ef434104c167d30d2174d95e40
[ "BSD-2-Clause" ]
null
null
null
import pkg_resources from . import dict_json # noqa: F401 __all__ = ["dict_json"] __version__ = pkg_resources.get_distribution("dict-json").version
21.571429
65
0.774834
20
151
5.2
0.6
0.230769
0.288462
0
0
0
0
0
0
0
0
0.022556
0.119205
151
6
66
25.166667
0.759399
0.066225
0
0
0
0
0.129496
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
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
1
0
0
0
0
5
f0ba0fb473fb151210ad80ddb535d5ad13693da0
121
py
Python
approximate_complexity_calculator/__init__.py
michalpawlowicz/Approximate-complexity-calculator
ab72b7547198b36b8ecbc74d4f9cbb04ec467aff
[ "MIT" ]
1
2018-07-03T16:48:32.000Z
2018-07-03T16:48:32.000Z
approximate_complexity_calculator/__init__.py
michalpawlowicz/Approximate-complexity-calculator
ab72b7547198b36b8ecbc74d4f9cbb04ec467aff
[ "MIT" ]
null
null
null
approximate_complexity_calculator/__init__.py
michalpawlowicz/Approximate-complexity-calculator
ab72b7547198b36b8ecbc74d4f9cbb04ec467aff
[ "MIT" ]
null
null
null
from .Algorithm import Algorithm from .ComplexityCalculator import ComplexityClasses, Complexity, approximate_complexity
40.333333
87
0.884298
11
121
9.636364
0.636364
0
0
0
0
0
0
0
0
0
0
0
0.082645
121
2
88
60.5
0.954955
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
f0bc214c9c9a2991b280a53c745e473507d5055c
14,544
py
Python
tests/munki/test_api_views.py
synthetic-intelligence/zentral
774104cea90b7f3d6f2aac655859c1b1f034f8dd
[ "Apache-2.0" ]
null
null
null
tests/munki/test_api_views.py
synthetic-intelligence/zentral
774104cea90b7f3d6f2aac655859c1b1f034f8dd
[ "Apache-2.0" ]
null
null
null
tests/munki/test_api_views.py
synthetic-intelligence/zentral
774104cea90b7f3d6f2aac655859c1b1f034f8dd
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from functools import reduce import operator from django.contrib.auth.models import Group, Permission from django.db.models import Q from django.urls import reverse from django.utils.crypto import get_random_string from django.utils.http import http_date from django.test import TestCase from rest_framework.authtoken.models import Token from accounts.models import User from zentral.conf import settings from zentral.contrib.inventory.models import EnrollmentSecret, MetaBusinessUnit from zentral.contrib.munki.models import Configuration, Enrollment class APIViewsTestCase(TestCase): @classmethod def setUpTestData(cls): cls.service_account = User.objects.create( username=get_random_string(12), email="{}@zentral.io".format(get_random_string(12)), is_service_account=True ) cls.user = User.objects.create_user("godzilla", "godzilla@zentral.io", get_random_string(12)) cls.group = Group.objects.create(name=get_random_string(12)) cls.service_account.groups.set([cls.group]) cls.user.groups.set([cls.group]) Token.objects.get_or_create(user=cls.service_account) cls.mbu = MetaBusinessUnit.objects.create(name=get_random_string(12)) cls.mbu.create_enrollment_business_unit() def force_configuration(self): return Configuration.objects.create(name=get_random_string(12)) def force_enrollment(self): configuration = self.force_configuration() enrollment_secret = EnrollmentSecret.objects.create(meta_business_unit=self.mbu) return Enrollment.objects.create(configuration=configuration, secret=enrollment_secret) def set_permissions(self, *permissions): if permissions: permission_filter = reduce(operator.or_, ( Q(content_type__app_label=app_label, codename=codename) for app_label, codename in ( permission.split(".") for permission in permissions ) )) self.group.permissions.set(list(Permission.objects.filter(permission_filter))) else: self.group.permissions.clear() def login(self, *permissions): self.set_permissions(*permissions) self.client.force_login(self.user) def get(self, url, data=None, include_token=True): kwargs = {} if data is not None: kwargs["data"] = data if include_token: kwargs["HTTP_AUTHORIZATION"] = f"Token {self.service_account.auth_token.key}" return self.client.get(url, **kwargs) # list configurations def test_get_configurations_unauthorized(self): response = self.get(reverse("munki_api:configurations"), include_token=False) self.assertEqual(response.status_code, 401) def test_get_configurations_permission_denied(self): response = self.get(reverse("munki_api:configurations")) self.assertEqual(response.status_code, 403) def test_get_configurations(self): configuration = self.force_configuration() self.set_permissions("munki.view_configuration") response = self.get(reverse("munki_api:configurations")) self.assertEqual(response.status_code, 200) self.assertIn( {'auto_failed_install_incidents': False, 'auto_reinstall_incidents': False, 'collected_condition_keys': [], 'created_at': configuration.created_at.isoformat(), 'description': '', 'id': configuration.pk, 'inventory_apps_full_info_shard': 100, 'managed_installs_sync_interval_days': 7, 'name': configuration.name, 'principal_user_detection_domains': [], 'principal_user_detection_sources': [], 'updated_at': configuration.updated_at.isoformat(), 'version': 0}, response.json() ) # get configuration def test_get_configuration_unauthorized(self): configuration = self.force_configuration() response = self.get(reverse("munki_api:configuration", args=(configuration.pk,)), include_token=False) self.assertEqual(response.status_code, 401) def test_get_configuration_permission_denied(self): configuration = self.force_configuration() response = self.get(reverse("munki_api:configuration", args=(configuration.pk,))) self.assertEqual(response.status_code, 403) def test_get_configuration(self): configuration = self.force_configuration() self.set_permissions("munki.view_configuration") response = self.get(reverse("munki_api:configuration", args=(configuration.pk,))) self.assertEqual( {'auto_failed_install_incidents': False, 'auto_reinstall_incidents': False, 'collected_condition_keys': [], 'created_at': configuration.created_at.isoformat(), 'description': '', 'id': configuration.pk, 'inventory_apps_full_info_shard': 100, 'managed_installs_sync_interval_days': 7, 'name': configuration.name, 'principal_user_detection_domains': [], 'principal_user_detection_sources': [], 'updated_at': configuration.updated_at.isoformat(), 'version': 0}, response.json() ) # list enrollments def test_get_enrollments_unauthorized(self): response = self.get(reverse("munki_api:enrollments"), include_token=False) self.assertEqual(response.status_code, 401) def test_get_enrollments_permission_denied(self): response = self.get(reverse("munki_api:enrollments")) self.assertEqual(response.status_code, 403) def test_get_enrollments(self): enrollment = self.force_enrollment() self.set_permissions("munki.view_enrollment") response = self.get(reverse('munki_api:enrollments')) self.assertEqual(response.status_code, 200) fqdn = settings["api"]["fqdn"] self.assertIn( {'id': enrollment.pk, 'configuration': enrollment.configuration.pk, 'enrolled_machines_count': 0, 'secret': { 'id': enrollment.secret.pk, 'secret': enrollment.secret.secret, 'meta_business_unit': self.mbu.pk, 'tags': [], 'serial_numbers': None, 'udids': None, 'quota': None, 'request_count': 0 }, 'version': 1, 'package_download_url': f'https://{fqdn}/api/munki/enrollments/{enrollment.pk}/package/', 'created_at': enrollment.created_at.isoformat(), 'updated_at': enrollment.updated_at.isoformat()}, response.json() ) # get enrollment def test_get_enrollment_unauthorized(self): enrollment = self.force_enrollment() response = self.get(reverse("munki_api:enrollment", args=(enrollment.pk,)), include_token=False) self.assertEqual(response.status_code, 401) def test_get_enrollment_permission_denied(self): enrollment = self.force_enrollment() response = self.get(reverse("munki_api:enrollment", args=(enrollment.pk,))) self.assertEqual(response.status_code, 403) def test_get_enrollment_not_found(self): self.set_permissions("munki.view_enrollment") response = self.get(reverse("munki_api:enrollment", args=(1213028133,))) self.assertEqual(response.status_code, 404) def test_get_enrollment(self): self.set_permissions("munki.view_enrollment") enrollment = self.force_enrollment() response = self.get(reverse("munki_api:enrollment", args=(enrollment.pk,))) self.assertEqual(response.status_code, 200) fqdn = settings["api"]["fqdn"] self.assertEqual( response.json(), {'id': enrollment.pk, 'configuration': enrollment.configuration.pk, 'enrolled_machines_count': 0, 'secret': { 'id': enrollment.secret.pk, 'secret': enrollment.secret.secret, 'meta_business_unit': self.mbu.pk, 'tags': [], 'serial_numbers': None, 'udids': None, 'quota': None, 'request_count': 0 }, 'version': 1, 'package_download_url': f'https://{fqdn}/api/munki/enrollments/{enrollment.pk}/package/', 'created_at': enrollment.created_at.isoformat(), 'updated_at': enrollment.updated_at.isoformat()}, ) # get enrollment package def test_get_enrollment_package_unauthorized(self): enrollment = self.force_enrollment() response = self.get(reverse("munki_api:enrollment_package", args=(enrollment.pk,)), include_token=False) self.assertEqual(response.status_code, 401) def test_get_enrollment_package_token_permission_denied(self): enrollment = self.force_enrollment() response = self.get(reverse("munki_api:enrollment_package", args=(enrollment.pk,))) self.assertEqual(response.status_code, 403) def test_get_enrollment_package_user_permission_denied(self): enrollment = self.force_enrollment() self.login() response = self.client.get(reverse("munki_api:enrollment_package", args=(enrollment.pk,))) self.assertEqual(response.status_code, 403) def test_get_enrollment_package_not_found(self): self.force_enrollment() self.set_permissions("munki.view_enrollment") response = self.get(reverse("munki_api:enrollment_package", args=(1213028133,))) self.assertEqual(response.status_code, 404) def test_get_enrollment_package_token(self): enrollment = self.force_enrollment() self.set_permissions("munki.view_enrollment") response = self.get(reverse("munki_api:enrollment_package", args=(enrollment.pk,))) self.assertEqual(response.status_code, 200) self.assertEqual(response['Content-Type'], "application/octet-stream") self.assertEqual(response['Content-Disposition'], 'attachment; filename="zentral_munki_enroll.pkg"') self.assertEqual(response['Last-Modified'], http_date(enrollment.updated_at.timestamp())) self.assertEqual(response['ETag'], f'W/"munki.enrollment-{enrollment.pk}-1"') def test_get_enrollment_package_user(self): enrollment = self.force_enrollment() self.login("munki.view_enrollment") response = self.client.get(reverse("munki_api:enrollment_package", args=(enrollment.pk,))) self.assertEqual(response.status_code, 200) self.assertEqual(response['Content-Type'], "application/octet-stream") self.assertEqual(response['Content-Disposition'], 'attachment; filename="zentral_munki_enroll.pkg"') self.assertEqual(response['Last-Modified'], http_date(enrollment.updated_at.timestamp())) self.assertEqual(response['ETag'], f'W/"munki.enrollment-{enrollment.pk}-1"') def test_get_enrollment_package_user_not_modified_etag_header(self): enrollment = self.force_enrollment() etag = f'W/"munki.enrollment-{enrollment.pk}-1"' last_modified = http_date(enrollment.updated_at.timestamp()) req_headers = {"HTTP_IF_NONE_MATCH": etag} self.login("munki.view_enrollment") response = self.client.get(reverse("munki_api:enrollment_package", args=(enrollment.pk,)), **req_headers) self.assertEqual(response.status_code, 304) self.assertEqual(response['Last-Modified'], last_modified) self.assertEqual(response['ETag'], etag) def test_get_enrollment_package_user_not_modified_if_modified_since_header(self): enrollment = self.force_enrollment() etag = f'W/"munki.enrollment-{enrollment.pk}-1"' last_modified = http_date(enrollment.updated_at.timestamp()) req_headers = {"HTTP_IF_MODIFIED_SINCE": http_date(enrollment.updated_at.timestamp())} self.login("munki.view_enrollment") response = self.client.get(reverse("munki_api:enrollment_package", args=(enrollment.pk,)), **req_headers) self.assertEqual(response.status_code, 304) self.assertEqual(response['Last-Modified'], last_modified) self.assertEqual(response['ETag'], etag) def test_get_enrollment_package_user_not_modified_both_headers(self): enrollment = self.force_enrollment() etag = f'W/"munki.enrollment-{enrollment.pk}-1"' last_modified = http_date(enrollment.updated_at.timestamp()) req_headers = {"HTTP_IF_NONE_MATCH": etag, "HTTP_IF_MODIFIED_SINCE": http_date(enrollment.updated_at.timestamp())} self.login("munki.view_enrollment") response = self.client.get(reverse("munki_api:enrollment_package", args=(enrollment.pk,)), **req_headers) self.assertEqual(response.status_code, 304) self.assertEqual(response['Last-Modified'], last_modified) self.assertEqual(response['ETag'], etag) def test_get_enrollment_package_user_etag_mismatch(self): enrollment = self.force_enrollment() etag = f'W/"munki.enrollment-{enrollment.pk}-1"' last_modified = http_date(enrollment.updated_at.timestamp()) req_headers = {"HTTP_IF_NONE_MATCH": "YOLO"} self.login("munki.view_enrollment") response = self.client.get(reverse("munki_api:enrollment_package", args=(enrollment.pk,)), **req_headers) self.assertEqual(response.status_code, 200) self.assertEqual(response['Last-Modified'], last_modified) self.assertEqual(response['ETag'], etag) def test_get_enrollment_package_user_if_modified_since_too_old(self): enrollment = self.force_enrollment() etag = f'W/"munki.enrollment-{enrollment.pk}-1"' last_modified = http_date(enrollment.updated_at.timestamp()) req_headers = {"HTTP_IF_MODIFIED_SINCE": http_date(datetime(2001, 1, 1).timestamp())} self.login("munki.view_enrollment") response = self.client.get(reverse("munki_api:enrollment_package", args=(enrollment.pk,)), **req_headers) self.assertEqual(response.status_code, 200) self.assertEqual(response['Last-Modified'], last_modified) self.assertEqual(response['ETag'], etag)
46.765273
113
0.670105
1,590
14,544
5.879245
0.116981
0.068999
0.103338
0.046213
0.783055
0.771395
0.7684
0.749465
0.727856
0.720796
0
0.011361
0.213215
14,544
310
114
46.916129
0.805558
0.006326
0
0.613383
0
0
0.182888
0.120172
0
0
0
0
0.167286
1
0.111524
false
0
0.052045
0.003717
0.178439
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
f0f87e39d5b9430978a56dbed8b250364a30a7d5
96
py
Python
zvt/recorders/eastmoney/quotes/__init__.py
Evergreen2020/zvt
446a2512d716a38a12164b6d4468a6c9de01b986
[ "MIT" ]
22
2020-10-22T14:24:32.000Z
2022-03-30T22:19:14.000Z
zvt/recorders/eastmoney/quotes/__init__.py
Evergreen2020/zvt
446a2512d716a38a12164b6d4468a6c9de01b986
[ "MIT" ]
2
2019-12-20T13:12:30.000Z
2020-01-03T06:24:30.000Z
zvt/recorders/eastmoney/quotes/__init__.py
Evergreen2020/zvt
446a2512d716a38a12164b6d4468a6c9de01b986
[ "MIT" ]
6
2021-01-14T20:50:06.000Z
2022-01-11T23:12:43.000Z
# -*- coding: utf-8 -*- from zvt.recorders.eastmoney.quotes.china_stock_kdata_recorder import *
32
71
0.760417
13
96
5.384615
1
0
0
0
0
0
0
0
0
0
0
0.011494
0.09375
96
2
72
48
0.793103
0.21875
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
500db782842ece6267511276b424ccc20ddf9681
232
py
Python
bot/utils/exceptions.py
AEnterprise/kanelbulle
1aecf49570d74d1412be07f6e4bcae42f3883b69
[ "MIT" ]
4
2018-09-23T10:13:16.000Z
2018-10-31T19:07:53.000Z
bot/utils/exceptions.py
trilleplay/paperplane
bc9f06f5312762154c404a9bb0316f6884437c98
[ "MIT" ]
5
2018-09-30T08:34:54.000Z
2018-10-27T09:04:53.000Z
bot/utils/exceptions.py
trilleplay/paperplane
bc9f06f5312762154c404a9bb0316f6884437c98
[ "MIT" ]
2
2018-09-29T22:32:43.000Z
2019-07-18T15:15:51.000Z
class Forbidden(Exception): pass class NotFound(Exception): pass class Unknown(Exception): pass class Unavailable(Exception): pass class RateLimit(Exception): pass class InvalidPlatform(Exception): pass
12.888889
33
0.719828
24
232
6.958333
0.375
0.467066
0.538922
0
0
0
0
0
0
0
0
0
0.202586
232
17
34
13.647059
0.902703
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
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
1
1
0
0
0
0
0
5
502e166fe7a7513d5e2ac888ecbf7007f9581565
115
py
Python
others/sumitrust2019/sumitrust2019a.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
others/sumitrust2019/sumitrust2019a.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
others/sumitrust2019/sumitrust2019a.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
M1, D1 = map(int, input().split()) M2, D2 = map(int, input().split()) if D2 == 1: print(1) else: print(0)
14.375
34
0.530435
20
115
3.05
0.65
0.196721
0.360656
0.52459
0
0
0
0
0
0
0
0.089888
0.226087
115
7
35
16.428571
0.595506
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0.333333
1
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
1
0
0
0
0
0
0
5
5034d6ee38f3c448f92fcc30291f96d84d73fefa
110
py
Python
biopymlff/test/water.py
saandre15/biopymlff
ec90370a8c03c51426bd24477034c9413bdcdb04
[ "MIT" ]
null
null
null
biopymlff/test/water.py
saandre15/biopymlff
ec90370a8c03c51426bd24477034c9413bdcdb04
[ "MIT" ]
null
null
null
biopymlff/test/water.py
saandre15/biopymlff
ec90370a8c03c51426bd24477034c9413bdcdb04
[ "MIT" ]
null
null
null
import unittest class Water_Test(unittest.TestCase): def test_01_water_clusters(self): pass
15.714286
37
0.709091
14
110
5.285714
0.785714
0
0
0
0
0
0
0
0
0
0
0.023529
0.227273
110
6
38
18.333333
0.847059
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0.25
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
503d5743bccac45e2926faaf964f1ab7eb241146
108
py
Python
src/hbcomp/profile/__init__.py
zgoda/hbcomp
0b787a05f2cd512c44363daaa560ec74cc9d6261
[ "MIT" ]
null
null
null
src/hbcomp/profile/__init__.py
zgoda/hbcomp
0b787a05f2cd512c44363daaa560ec74cc9d6261
[ "MIT" ]
null
null
null
src/hbcomp/profile/__init__.py
zgoda/hbcomp
0b787a05f2cd512c44363daaa560ec74cc9d6261
[ "MIT" ]
null
null
null
from flask import Blueprint profile_bp = Blueprint('profile', __name__) from . import views # noqa: F401
18
43
0.75
14
108
5.428571
0.714286
0.421053
0
0
0
0
0
0
0
0
0
0.033333
0.166667
108
5
44
21.6
0.811111
0.092593
0
0
0
0
0.072917
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
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
1
0
0
1
0
5
50502cf41d5c56b2909897b7c5372963c81796cf
624
py
Python
publication_backbone/models/rubric_model.py
Excentrics/publication-backbone
65c9820308b09a6ae1086c265f8d49e36f3724b9
[ "BSD-3-Clause" ]
6
2016-05-19T14:59:51.000Z
2020-03-19T10:08:29.000Z
publication_backbone/models/rubric_model.py
Excentrics/publication-backbone
65c9820308b09a6ae1086c265f8d49e36f3724b9
[ "BSD-3-Clause" ]
null
null
null
publication_backbone/models/rubric_model.py
Excentrics/publication-backbone
65c9820308b09a6ae1086c265f8d49e36f3724b9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ This overrides the Rubric with the class loaded from the PUBLICATION_BACKBONE_RUBRIC_MODEL setting if it exists. """ from django.conf import settings from publication_backbone.utils.loader import load_class #============================================================================== # Extensibility #============================================================================== RUBRIC_MODEL = getattr(settings, 'PUBLICATION_BACKBONE_RUBRIC_MODEL', 'publication_backbone.models.defaults.rubricator.rubric.Rubric') Rubric = load_class(RUBRIC_MODEL, 'PUBLICATION_BACKBONE_RUBRIC_MODEL')
36.705882
79
0.602564
59
624
6.118644
0.508475
0.263158
0.207756
0.249307
0
0
0
0
0
0
0
0.001742
0.080128
624
16
80
39
0.627178
0.488782
0
0
0
0
0.413681
0.413681
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
1
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
505b874d547de6b0ec15d3ef4d8293d083f379a5
98
py
Python
hangman/guessword/admin.py
Hakob/hangman
7eed5eedc7f145fec4b3c7be2bec2178eb74d12b
[ "MIT" ]
null
null
null
hangman/guessword/admin.py
Hakob/hangman
7eed5eedc7f145fec4b3c7be2bec2178eb74d12b
[ "MIT" ]
null
null
null
hangman/guessword/admin.py
Hakob/hangman
7eed5eedc7f145fec4b3c7be2bec2178eb74d12b
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import WordsModel admin.site.register(WordsModel)
16.333333
32
0.826531
13
98
6.230769
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.112245
98
5
33
19.6
0.931034
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
ac8f19135118de93f4a1bac3e0d1e2aa160f7793
160
py
Python
test/test.py
ootsutsukee/AdvProPython-assignment-2-coingesko-
59817016c2bd2c3b7a414b5ce3a130bf27571d65
[ "MIT" ]
null
null
null
test/test.py
ootsutsukee/AdvProPython-assignment-2-coingesko-
59817016c2bd2c3b7a414b5ce3a130bf27571d65
[ "MIT" ]
null
null
null
test/test.py
ootsutsukee/AdvProPython-assignment-2-coingesko-
59817016c2bd2c3b7a414b5ce3a130bf27571d65
[ "MIT" ]
null
null
null
import unittest class TestBeautifulSoup(unittest.TestCase): def test_beaSoup(self): self.assertEqual(len(0), 0) self.assertEqual(len(1), 1)
26.666667
43
0.69375
20
160
5.5
0.65
0.272727
0.327273
0
0
0
0
0
0
0
0
0.030769
0.1875
160
6
44
26.666667
0.815385
0
0
0
0
0
0
0
0
0
0
0
0.4
1
0.2
false
0
0.2
0
0.6
0
1
0
0
null
1
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
5
acb7d6e2789ada44bbf95f43d3e1450147bf906e
296
py
Python
py3wirecard/entities/notification.py
robertons/py3wirecard
8a9b541a67ee96d75b1c864762fce7148cccb8b4
[ "MIT" ]
2
2019-09-05T20:20:44.000Z
2020-01-14T18:20:45.000Z
py3wirecard/entities/notification.py
robertons/py3wirecard
8a9b541a67ee96d75b1c864762fce7148cccb8b4
[ "MIT" ]
1
2020-01-15T12:27:56.000Z
2020-01-16T12:26:13.000Z
py3wirecard/entities/notification.py
robertons/py3wirecard
8a9b541a67ee96d75b1c864762fce7148cccb8b4
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- from py3wirecard.entities.lib.wireentity import * class Notification(WireEntity): @String(max=16) def id(self): pass @String() def target(self): pass @String() def media(self): pass @String() def token(self):pass @ObjectList(type=str) def events(self):pass
14.8
49
0.689189
41
296
4.97561
0.609756
0.196078
0.205882
0.25
0
0
0
0
0
0
0
0.015873
0.148649
296
19
50
15.578947
0.793651
0.070946
0
0.25
0
0
0
0
0
0
0
0
0
1
0.416667
false
0.416667
0.083333
0
0.583333
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
acd81204480e08b603b361ba48bf23df8ae73f13
41
py
Python
test/lmp/util/log/__init__.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/util/log/__init__.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/util/log/__init__.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
"""Test :py:mod:`lmp.util.log` entry."""
20.5
40
0.585366
7
41
3.428571
1
0
0
0
0
0
0
0
0
0
0
0
0.073171
41
1
41
41
0.631579
0.829268
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
4a000b8e52df1eced1b39146dd91133024a39afd
157
py
Python
emmett_mongorest/__init__.py
gi0baro/emmett-mongorest
814658b3d8051ad649f1bc7cffb32354b3b7a97c
[ "BSD-3-Clause" ]
null
null
null
emmett_mongorest/__init__.py
gi0baro/emmett-mongorest
814658b3d8051ad649f1bc7cffb32354b3b7a97c
[ "BSD-3-Clause" ]
3
2020-12-27T12:29:12.000Z
2022-02-27T10:34:33.000Z
emmett_mongorest/__init__.py
gi0baro/emmett-mongorest
814658b3d8051ad649f1bc7cffb32354b3b7a97c
[ "BSD-3-Clause" ]
null
null
null
from .ext import MongoREST from .helpers import MongoQuery from .rest import MongoRESTModule from .parsers import Parser from .serializers import Serializer
26.166667
35
0.840764
20
157
6.6
0.6
0
0
0
0
0
0
0
0
0
0
0
0.127389
157
5
36
31.4
0.963504
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5