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
35e81f406c452eff8517e327c640a5e254df9585
55
py
Python
dassl/data/__init__.py
zhaoxin94/Dassl.pytorch
c0690f3669c561f2ed7410c22fc65eaef30dfd22
[ "MIT" ]
1
2021-07-25T10:19:02.000Z
2021-07-25T10:19:02.000Z
dassl/data/__init__.py
zhaoxin94/Dassl.pytorch
c0690f3669c561f2ed7410c22fc65eaef30dfd22
[ "MIT" ]
null
null
null
dassl/data/__init__.py
zhaoxin94/Dassl.pytorch
c0690f3669c561f2ed7410c22fc65eaef30dfd22
[ "MIT" ]
null
null
null
from .data_manager import DataManager, DatasetWrapper
18.333333
53
0.854545
6
55
7.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.109091
55
2
54
27.5
0.938776
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
ea157a3053242bf3581397f9a170caf3dd59d4f3
182
py
Python
configurations/wsgi.py
andriyor/django-configurations
141d8ef2c4165d2686f8316827eda49f0eefb1b4
[ "BSD-3-Clause" ]
566
2015-12-17T09:49:24.000Z
2022-03-29T16:46:48.000Z
configurations/wsgi.py
andriyor/django-configurations
141d8ef2c4165d2686f8316827eda49f0eefb1b4
[ "BSD-3-Clause" ]
176
2015-12-17T11:22:44.000Z
2022-03-24T10:21:22.000Z
configurations/wsgi.py
andriyor/django-configurations
141d8ef2c4165d2686f8316827eda49f0eefb1b4
[ "BSD-3-Clause" ]
90
2015-12-20T14:23:55.000Z
2022-03-05T09:24:10.000Z
from . import importer importer.install() from django.core.wsgi import get_wsgi_application # noqa: E402 # this is just for the crazy ones application = get_wsgi_application()
20.222222
65
0.774725
26
182
5.269231
0.692308
0.10219
0.262774
0
0
0
0
0
0
0
0
0.019608
0.159341
182
8
66
22.75
0.875817
0.230769
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
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
0
0
1
0
1
0
0
5
ea1ca83538780809c550d34ad4d1702d05df7e37
23
py
Python
update.py
adamsjlcode/PiClock
050ffc95313958e088fadeae8c7274d070b0750b
[ "MIT" ]
null
null
null
update.py
adamsjlcode/PiClock
050ffc95313958e088fadeae8c7274d070b0750b
[ "MIT" ]
null
null
null
update.py
adamsjlcode/PiClock
050ffc95313958e088fadeae8c7274d070b0750b
[ "MIT" ]
null
null
null
print("Nothing to do.")
23
23
0.695652
4
23
4
1
0
0
0
0
0
0
0
0
0
0
0
0.086957
23
1
23
23
0.761905
0
0
0
0
0
0.583333
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
ea788253d58cf0dea0f733a289eaf60f783ec9b4
63
py
Python
xpandas/transformers/bag_of_features_transformer/__init__.py
kiraly-group/xpandas
120ffd258e9eb68a287830dcbad09a11ab737291
[ "BSD-3-Clause" ]
27
2017-10-23T21:37:30.000Z
2021-09-18T18:02:10.000Z
xpandas/transformers/bag_of_features_transformer/__init__.py
kiraly-group/xpandas
120ffd258e9eb68a287830dcbad09a11ab737291
[ "BSD-3-Clause" ]
6
2018-12-14T14:58:57.000Z
2021-01-10T23:38:07.000Z
xpandas/transformers/bag_of_features_transformer/__init__.py
kiraly-group/xpandas
120ffd258e9eb68a287830dcbad09a11ab737291
[ "BSD-3-Clause" ]
7
2018-01-20T09:28:41.000Z
2021-07-28T02:58:26.000Z
from .bag_of_features_transformer import BagOfWordsTransformer
31.5
62
0.920635
7
63
7.857143
1
0
0
0
0
0
0
0
0
0
0
0
0.063492
63
1
63
63
0.932203
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
ea7db5cf12f3ab32ae3c201716e4ba8de2c5fad3
204
py
Python
mofatic/query/nested.py
deknowny/mofatic
222af1ba5aa2ebdb24b448540c12705c7fd645f9
[ "MIT" ]
1
2021-07-04T19:41:30.000Z
2021-07-04T19:41:30.000Z
mofatic/query/nested.py
deknowny/mofatic
222af1ba5aa2ebdb24b448540c12705c7fd645f9
[ "MIT" ]
1
2021-07-04T22:53:02.000Z
2021-08-01T22:14:00.000Z
mofatic/query/nested.py
deknowny/mofatic
222af1ba5aa2ebdb24b448540c12705c7fd645f9
[ "MIT" ]
null
null
null
import typing from mofatic.query.base import BaseFieldRule class NestedFieldRule(BaseFieldRule[BaseFieldRule]): def represent(self) -> typing.Any: return {self.name: self.value.represent()}
25.5
52
0.754902
23
204
6.695652
0.695652
0
0
0
0
0
0
0
0
0
0
0
0.142157
204
8
53
25.5
0.88
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0.2
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
5
ea8c9ee63dc58bf04ab2ce44f78a1e2266fd2c48
88
py
Python
jatime/errors.py
poyo46/jatime
8b1b7600c3c6ca73994eaccd2db986b9aa72b874
[ "Apache-2.0" ]
null
null
null
jatime/errors.py
poyo46/jatime
8b1b7600c3c6ca73994eaccd2db986b9aa72b874
[ "Apache-2.0" ]
null
null
null
jatime/errors.py
poyo46/jatime
8b1b7600c3c6ca73994eaccd2db986b9aa72b874
[ "Apache-2.0" ]
null
null
null
class InvalidValueError(Exception): pass class NotFoundError(Exception): pass
12.571429
35
0.75
8
88
8.25
0.625
0.393939
0
0
0
0
0
0
0
0
0
0
0.181818
88
6
36
14.666667
0.916667
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
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
57985cc43c0b24022f6bc707b7f98bf07de3e12f
256
py
Python
tests/run/pure_py_cimports.py
johannes-mueller/cython
b75af38ce5c309cd84c1835220932e53e9a9adb6
[ "Apache-2.0" ]
6,663
2015-01-02T06:06:43.000Z
2022-03-31T10:35:02.000Z
tests/run/pure_py_cimports.py
johannes-mueller/cython
b75af38ce5c309cd84c1835220932e53e9a9adb6
[ "Apache-2.0" ]
3,094
2015-01-01T15:44:13.000Z
2022-03-31T19:49:57.000Z
tests/run/pure_py_cimports.py
scoder/cython
ddaaa7b8bfe9885b7bed432cd0a5ab8191d112cd
[ "Apache-2.0" ]
1,425
2015-01-12T07:21:27.000Z
2022-03-30T14:10:40.000Z
# mode: run # tag: pure, import, cimport from cython.cimports.libc import math from cython.cimports.libc.math import ceil def libc_math_ceil(x): """ >>> libc_math_ceil(1.5) [2, 2] """ return [int(n) for n in [ceil(x), math.ceil(x)]]
18.285714
52
0.628906
42
256
3.738095
0.52381
0.152866
0.229299
0.280255
0
0
0
0
0
0
0
0.019802
0.210938
256
13
53
19.692308
0.757426
0.265625
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.5
0
1
0
0
0
0
null
0
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
0
1
0
1
0
0
5
57b0b0f23808534ebaaeb75fd420175277b8cd09
231
py
Python
bittrex/exceptions.py
thiezn/bittrex-python
56aa0f16bfc61bf4c833364c98b27c38325c792d
[ "MIT" ]
1
2022-02-06T01:24:20.000Z
2022-02-06T01:24:20.000Z
bittrex/exceptions.py
alimogh/bittrex-python
56aa0f16bfc61bf4c833364c98b27c38325c792d
[ "MIT" ]
null
null
null
bittrex/exceptions.py
alimogh/bittrex-python
56aa0f16bfc61bf4c833364c98b27c38325c792d
[ "MIT" ]
1
2022-02-06T01:24:22.000Z
2022-02-06T01:24:22.000Z
class ResponseError(Exception): """Raised when the bittrex API returns an error in the message response""" class RequestError(Exception): """Raised when the request towards the bittrex API is incorrect or fails"""
28.875
50
0.727273
30
231
5.6
0.7
0.178571
0.22619
0.261905
0
0
0
0
0
0
0
0
0.194805
231
7
51
33
0.903226
0.597403
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
5
57d85e2b36e74179031c73b6e0b5ba14c5f6700d
37
py
Python
visualization/tests.py
bikramtuladhar/covid-19-procurement-explorer-admin
9bba473c8b83c8651e3178b6fba01af74d8b27dc
[ "BSD-3-Clause" ]
null
null
null
visualization/tests.py
bikramtuladhar/covid-19-procurement-explorer-admin
9bba473c8b83c8651e3178b6fba01af74d8b27dc
[ "BSD-3-Clause" ]
null
null
null
visualization/tests.py
bikramtuladhar/covid-19-procurement-explorer-admin
9bba473c8b83c8651e3178b6fba01af74d8b27dc
[ "BSD-3-Clause" ]
null
null
null
# Delete this line once tests added.
18.5
36
0.756757
6
37
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.189189
37
1
37
37
0.933333
0.918919
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
57da3bf7af396fa556203c497651d4f0dfa79524
729
py
Python
plugins/box/komand_box/actions/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/box/komand_box/actions/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/box/komand_box/actions/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT from .add_user_to_group.action import AddUserToGroup from .create_user.action import CreateUser from .delete_file.action import DeleteFile from .delete_folder.action import DeleteFolder from .delete_user.action import DeleteUser from .download_file.action import DownloadFile from .get_enterprise_groups.action import GetEnterpriseGroups from .get_file.action import GetFile from .get_folder.action import GetFolder from .get_user_groups.action import GetUserGroups from .lock_file.action import LockFile from .unlock_file.action import UnlockFile from .upload_file.action import UploadFile from .user_info.action import UserInfo from .user_info_from_login.action import UserInfoFromLogin
42.882353
61
0.861454
103
729
5.893204
0.407767
0.29654
0.158155
0
0
0
0
0
0
0
0
0
0.09465
729
16
62
45.5625
0.919697
0.050754
0
0
1
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
17c7d319b062420c05102beeb74d650503e8739e
59
py
Python
pysparkcli/core/utils/__init__.py
qburst/pysparkcli
f28737566473a42a1a11e8ff01f7c2480ac78165
[ "MIT" ]
2
2019-12-31T08:16:38.000Z
2021-01-13T16:09:57.000Z
pysparkcli/core/utils/__init__.py
qburst/pysparkcli
f28737566473a42a1a11e8ff01f7c2480ac78165
[ "MIT" ]
16
2019-12-30T07:21:26.000Z
2021-06-02T03:09:58.000Z
pysparkcli/core/utils/__init__.py
qburst/pysparkcli
f28737566473a42a1a11e8ff01f7c2480ac78165
[ "MIT" ]
8
2019-11-27T09:18:25.000Z
2021-11-24T17:53:47.000Z
from .handle_zip_files import HandleZipFiles, BuildZipNames
59
59
0.898305
7
59
7.285714
1
0
0
0
0
0
0
0
0
0
0
0
0.067797
59
1
59
59
0.927273
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
a4e8699c02e6cd71c82785316e88aaef7f81e1a3
123
py
Python
python/testData/folding/importBlock.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/folding/importBlock.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/folding/importBlock.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
"""This is a module-level docstring.""" <fold text='import ...'>import os import sys</fold> print os.path print sys.name
15.375
39
0.691057
20
123
4.25
0.7
0
0
0
0
0
0
0
0
0
0
0
0.138211
123
7
40
17.571429
0.801887
0
0
0
0
0
0.119048
0
0
0
0
0
0
0
null
null
0
0.5
null
null
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
1
0
0
0
1
0
0
1
0
5
a4ed4d25a71992189213aafbf72c86d1c38a5934
226
py
Python
utils/metrics.py
rosaann/kaggle-hpa
b59ddd3232d01484dea446bedcee9dfe0f461bac
[ "BSD-2-Clause" ]
2
2019-04-17T21:53:06.000Z
2019-10-09T14:57:00.000Z
utils/metrics.py
rosaann/kaggle-hpa
b59ddd3232d01484dea446bedcee9dfe0f461bac
[ "BSD-2-Clause" ]
null
null
null
utils/metrics.py
rosaann/kaggle-hpa
b59ddd3232d01484dea446bedcee9dfe0f461bac
[ "BSD-2-Clause" ]
null
null
null
import numpy as np import sklearn.metrics def f1_score(actual, predicted, average='macro'): actual = np.array(actual) predicted = np.array(predicted) return sklearn.metrics.f1_score(actual, predicted, average=average)
25.111111
69
0.769912
31
226
5.548387
0.483871
0.261628
0.151163
0.255814
0.337209
0
0
0
0
0
0
0.010101
0.123894
226
8
70
28.25
0.858586
0
0
0
0
0
0.022124
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
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
0
0
1
0
1
0
0
5
a4f9072d7352d24e658031f629ac77210bd345a1
157
py
Python
demos/fortnightly/libs/baseclass/toolbar.py
Jonypr-code/KivyMD
3ac5ba86430d9002baef678b47f0d7873b66b7bd
[ "MIT" ]
1,111
2015-07-15T02:31:09.000Z
2022-03-29T17:22:02.000Z
demos/fortnightly/libs/baseclass/toolbar.py
AllSafeCybercurity/kivyMD
85c51f3e7a26ca170d639e73899df5d465ee8941
[ "MIT" ]
706
2015-06-10T22:24:13.000Z
2022-03-31T16:22:39.000Z
demos/fortnightly/libs/baseclass/toolbar.py
AllSafeCybercurity/kivyMD
85c51f3e7a26ca170d639e73899df5d465ee8941
[ "MIT" ]
561
2015-07-15T04:57:23.000Z
2022-03-31T17:14:31.000Z
from kivymd.theming import ThemableBehavior from kivymd.uix.boxlayout import MDBoxLayout class FortnightlyToolbar(ThemableBehavior, MDBoxLayout): pass
22.428571
56
0.840764
16
157
8.25
0.6875
0.151515
0
0
0
0
0
0
0
0
0
0
0.11465
157
6
57
26.166667
0.94964
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.25
0.5
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
5
350b1162bc6eb3fa29e3e430b612072995b84282
104
py
Python
algorithms/DeepFashion/src/DeepFashion_test.py
algorithmia-algorithms/qa-algorithm-scripts
ac2ae204e473bb788fad989d41f56adf7a326a32
[ "MIT" ]
null
null
null
algorithms/DeepFashion/src/DeepFashion_test.py
algorithmia-algorithms/qa-algorithm-scripts
ac2ae204e473bb788fad989d41f56adf7a326a32
[ "MIT" ]
null
null
null
algorithms/DeepFashion/src/DeepFashion_test.py
algorithmia-algorithms/qa-algorithm-scripts
ac2ae204e473bb788fad989d41f56adf7a326a32
[ "MIT" ]
null
null
null
from . import DeepFashion def test_DeepFashion(): assert DeepFashion.apply("Jane") == "hello Jane"
20.8
52
0.721154
12
104
6.166667
0.75
0
0
0
0
0
0
0
0
0
0
0
0.153846
104
4
53
26
0.840909
0
0
0
0
0
0.134615
0
0
0
0
0
0.333333
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
353333259a48b592d305f04f3bd6c69132e4e31c
72
py
Python
beefdeets/__init__.py
teaearlgraycold/beefdeets
653997fc41e6b1f2d49e291879f368e6dd21873d
[ "MIT" ]
null
null
null
beefdeets/__init__.py
teaearlgraycold/beefdeets
653997fc41e6b1f2d49e291879f368e6dd21873d
[ "MIT" ]
null
null
null
beefdeets/__init__.py
teaearlgraycold/beefdeets
653997fc41e6b1f2d49e291879f368e6dd21873d
[ "MIT" ]
null
null
null
"""beefdeets site.""" from .app import app from .deadbeef import Player
18
28
0.736111
10
72
5.3
0.7
0
0
0
0
0
0
0
0
0
0
0
0.138889
72
3
29
24
0.854839
0.208333
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
35387cd94f8a0c79fc40a0c9b6571b0aa22144f6
129
py
Python
scxmlProcessor/ConfigProcessing.py
cesarcolle/ScxmlGenerator
d41ca560bb9c93f2320fedccebc0aade2ad85b53
[ "MIT" ]
null
null
null
scxmlProcessor/ConfigProcessing.py
cesarcolle/ScxmlGenerator
d41ca560bb9c93f2320fedccebc0aade2ad85b53
[ "MIT" ]
null
null
null
scxmlProcessor/ConfigProcessing.py
cesarcolle/ScxmlGenerator
d41ca560bb9c93f2320fedccebc0aade2ad85b53
[ "MIT" ]
null
null
null
import json import scxml.node class ConfigProcessing: def __init__(self, path): scxml.node.Transition pass
14.333333
29
0.682171
15
129
5.6
0.8
0.214286
0
0
0
0
0
0
0
0
0
0
0.255814
129
9
30
14.333333
0.875
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0.166667
0.333333
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
1
1
0
0
0
0
5
104f2ff6ebac5dc7604d3676950b411a14eb1e9c
147
py
Python
python-lophi/lophi/sensors/network/virtual.py
patriotemeritus/LO-PHI
8f92c4efb94061cb08b7e9b0ff96346565c12653
[ "BSD-3-Clause" ]
28
2016-02-26T00:54:16.000Z
2022-02-24T12:21:15.000Z
python-lophi/lophi/sensors/network/virtual.py
patriotemeritus/LO-PHI
8f92c4efb94061cb08b7e9b0ff96346565c12653
[ "BSD-3-Clause" ]
2
2016-03-15T21:49:09.000Z
2016-07-12T22:11:39.000Z
python-lophi/lophi/sensors/network/virtual.py
patriotemeritus/LO-PHI
8f92c4efb94061cb08b7e9b0ff96346565c12653
[ "BSD-3-Clause" ]
9
2016-06-08T14:42:28.000Z
2021-11-11T03:51:34.000Z
from lophi.sensors.network import NetworkSensor class NetworkSensorVirtual(NetworkSensor): """ Virtual network sensor for SUTs """
24.5
47
0.727891
14
147
7.642857
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.197279
147
6
48
24.5
0.90678
0.210884
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
10af02d7c53cd524e245f446415aab39f7253a5a
36
py
Python
QueryLogic/__init__.py
fijitheislandboy/StarChildPub
9cf42dfecd8f298b7a52ed9f572c4b4a34ac4230
[ "MIT" ]
null
null
null
QueryLogic/__init__.py
fijitheislandboy/StarChildPub
9cf42dfecd8f298b7a52ed9f572c4b4a34ac4230
[ "MIT" ]
null
null
null
QueryLogic/__init__.py
fijitheislandboy/StarChildPub
9cf42dfecd8f298b7a52ed9f572c4b4a34ac4230
[ "MIT" ]
null
null
null
# Fiji Marcelin # computingID:fm4cg
18
19
0.777778
4
36
7
1
0
0
0
0
0
0
0
0
0
0
0.032258
0.138889
36
2
19
18
0.870968
0.861111
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
529e147cb28b1b43626de392d98f7d4c8e223fb6
3,138
py
Python
groupdocs_comparison_cloud/__init__.py
groupdocs-comparison-cloud/groupdocs-comparison-cloud-python
f970b22fae7a791d07b756c2d418217fd368c289
[ "MIT" ]
null
null
null
groupdocs_comparison_cloud/__init__.py
groupdocs-comparison-cloud/groupdocs-comparison-cloud-python
f970b22fae7a791d07b756c2d418217fd368c289
[ "MIT" ]
null
null
null
groupdocs_comparison_cloud/__init__.py
groupdocs-comparison-cloud/groupdocs-comparison-cloud-python
f970b22fae7a791d07b756c2d418217fd368c289
[ "MIT" ]
1
2021-02-02T18:41:48.000Z
2021-02-02T18:41:48.000Z
from __future__ import absolute_import # flake8: noqa # import apis from groupdocs_comparison_cloud.apis.compare_api import CompareApi, ComparisonsRequest, PostChangesRequest, PutChangesDocumentRequest from groupdocs_comparison_cloud.apis.file_api import FileApi, CopyFileRequest, DeleteFileRequest, DownloadFileRequest, MoveFileRequest, UploadFileRequest from groupdocs_comparison_cloud.apis.folder_api import FolderApi, CopyFolderRequest, CreateFolderRequest, DeleteFolderRequest, GetFilesListRequest, MoveFolderRequest from groupdocs_comparison_cloud.apis.info_api import InfoApi, GetDocumentInfoRequest from groupdocs_comparison_cloud.apis.storage_api import StorageApi, GetDiscUsageRequest, GetFileVersionsRequest, ObjectExistsRequest, StorageExistsRequest from groupdocs_comparison_cloud.apis.review_api import ReviewApi, GetRevisionsRequest, ApplyRevisionsRequest # import related types from groupdocs_comparison_cloud.auth import Auth from groupdocs_comparison_cloud.api_client import ApiClient from groupdocs_comparison_cloud.api_exception import ApiException from groupdocs_comparison_cloud.configuration import Configuration # import models from groupdocs_comparison_cloud.models.apply_revisions_options import ApplyRevisionsOptions from groupdocs_comparison_cloud.models.change_info import ChangeInfo from groupdocs_comparison_cloud.models.comparison_options import ComparisonOptions from groupdocs_comparison_cloud.models.diagram_master_setting import DiagramMasterSetting from groupdocs_comparison_cloud.models.disc_usage import DiscUsage from groupdocs_comparison_cloud.models.error import Error from groupdocs_comparison_cloud.models.error_details import ErrorDetails from groupdocs_comparison_cloud.models.file_info import FileInfo from groupdocs_comparison_cloud.models.file_versions import FileVersions from groupdocs_comparison_cloud.models.files_list import FilesList from groupdocs_comparison_cloud.models.files_upload_result import FilesUploadResult from groupdocs_comparison_cloud.models.format import Format from groupdocs_comparison_cloud.models.formats_result import FormatsResult from groupdocs_comparison_cloud.models.info_result import InfoResult from groupdocs_comparison_cloud.models.items_style import ItemsStyle from groupdocs_comparison_cloud.models.link import Link from groupdocs_comparison_cloud.models.metadata import Metadata from groupdocs_comparison_cloud.models.object_exist import ObjectExist from groupdocs_comparison_cloud.models.page_info import PageInfo from groupdocs_comparison_cloud.models.rectangle import Rectangle from groupdocs_comparison_cloud.models.revision_info import RevisionInfo from groupdocs_comparison_cloud.models.settings import Settings from groupdocs_comparison_cloud.models.size import Size from groupdocs_comparison_cloud.models.storage_exist import StorageExist from groupdocs_comparison_cloud.models.storage_file import StorageFile from groupdocs_comparison_cloud.models.style_change_info import StyleChangeInfo from groupdocs_comparison_cloud.models.file_version import FileVersion from groupdocs_comparison_cloud.models.updates_options import UpdatesOptions
64.040816
165
0.907266
367
3,138
7.446866
0.283379
0.180754
0.319795
0.389316
0.458105
0.128796
0
0
0
0
0
0.00034
0.061823
3,138
48
166
65.375
0.927989
0.018802
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
52c321725ae1676513936fad4815c1721fdfbb0d
89
py
Python
bento/common/__init__.py
dereklarson/bento
dd2443e292430fcc8f6e94400e7f91617f689cd7
[ "MIT" ]
7
2020-07-27T19:21:26.000Z
2021-08-29T11:38:42.000Z
bento/common/__init__.py
dereklarson/bento
dd2443e292430fcc8f6e94400e7f91617f689cd7
[ "MIT" ]
11
2020-07-27T02:10:17.000Z
2020-09-04T03:17:42.000Z
bento/common/__init__.py
dereklarson/bento
dd2443e292430fcc8f6e94400e7f91617f689cd7
[ "MIT" ]
1
2020-10-03T07:25:34.000Z
2020-10-03T07:25:34.000Z
# common utilities package # TODO Would be sensible to make this a separate PyPI package
29.666667
61
0.797753
14
89
5.071429
0.928571
0
0
0
0
0
0
0
0
0
0
0
0.179775
89
2
62
44.5
0.972603
0.94382
0
null
0
null
0
0
null
0
0
0.5
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
0
0
0
0
0
5
52cab1bcceb3cc9cb4e09a72be58040072f329d6
154
py
Python
tests/fibonacci/test_fib6.py
erikopa/classic-cs-problems
9b9974afbacec36045ca3259da5a35a40b2cb953
[ "MIT" ]
null
null
null
tests/fibonacci/test_fib6.py
erikopa/classic-cs-problems
9b9974afbacec36045ca3259da5a35a40b2cb953
[ "MIT" ]
null
null
null
tests/fibonacci/test_fib6.py
erikopa/classic-cs-problems
9b9974afbacec36045ca3259da5a35a40b2cb953
[ "MIT" ]
null
null
null
import pytest from src.fibonacci.fib5 import fib5 def test_fib6_iterative_with_generator(): assert fib5(5) == 5 assert fib5(50) == 12586269025
17.111111
41
0.74026
22
154
5
0.727273
0.181818
0
0
0
0
0
0
0
0
0
0.15748
0.175325
154
8
42
19.25
0.708661
0
0
0
0
0
0
0
0
0
0
0
0.4
1
0.2
true
0
0.4
0
0.6
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
52f30f55a1d10b8b2a84d426fc656e8113d9f794
702
py
Python
dashboard/views.py
Ltmyth/newrepo
93f97af5f491e0b7d4ed7474b919810ebd721f3f
[ "MIT" ]
1
2018-06-29T08:04:38.000Z
2018-06-29T08:04:38.000Z
dashboard/views.py
Ltmyth/newrepo
93f97af5f491e0b7d4ed7474b919810ebd721f3f
[ "MIT" ]
3
2020-02-12T01:09:29.000Z
2021-06-10T20:33:31.000Z
dashboard/views.py
Ltmyth/newrepo
93f97af5f491e0b7d4ed7474b919810ebd721f3f
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.decorators import login_required import africastalking # Create your views here. @login_required def index(request): #return HttpResponse("Dashboard home page.") return render(request, "includes/newbes.html") @login_required def sms(request): return render(request,'sms/send.html') def airtime(request): return HttpResponse("Dashboard Airtime home page.") def voice(request): return HttpResponse("Dashboard Voice home page.") def payments(request): return HttpResponse("Dashboard Payments home page.") @login_required def profile(request): return render(request, "accounts/profile.html")
24.206897
57
0.790598
89
702
6.191011
0.382022
0.141561
0.181488
0.246824
0
0
0
0
0
0
0
0
0.109687
702
28
58
25.071429
0.8816
0.094017
0
0.157895
0
0
0.216772
0.033228
0
0
0
0
0
1
0.315789
false
0
0.210526
0.315789
0.842105
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
0
0
1
1
0
0
5
eaa73bc1b5c13abf9ad627486e0d5a4fa28b590a
59
py
Python
cluster_tools/label_multisets/__init__.py
constantinpape/cluster_tools
a7e88545b58f8315723bc47583916e1900a7892d
[ "MIT" ]
28
2018-12-09T22:11:52.000Z
2022-02-01T16:48:23.000Z
cluster_tools/label_multisets/__init__.py
constantinpape/cluster_tools
a7e88545b58f8315723bc47583916e1900a7892d
[ "MIT" ]
16
2019-01-27T10:59:33.000Z
2022-01-11T09:09:24.000Z
cluster_tools/label_multisets/__init__.py
constantinpape/cluster_tools
a7e88545b58f8315723bc47583916e1900a7892d
[ "MIT" ]
11
2018-12-09T22:11:56.000Z
2021-08-08T20:10:13.000Z
from .label_multiset_workflow import LabelMultisetWorkflow
29.5
58
0.915254
6
59
8.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.067797
59
1
59
59
0.945455
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
eab465d17ac96459a7514f699822e2ee80a156e3
694
py
Python
Src/Hosts/Silverlight/Tests/tests/regressions/test_issubclass.py
jdhardy/dlr
dca078fbf9d103fad4dcabda76795a23d82106bc
[ "Apache-2.0" ]
null
null
null
Src/Hosts/Silverlight/Tests/tests/regressions/test_issubclass.py
jdhardy/dlr
dca078fbf9d103fad4dcabda76795a23d82106bc
[ "Apache-2.0" ]
null
null
null
Src/Hosts/Silverlight/Tests/tests/regressions/test_issubclass.py
jdhardy/dlr
dca078fbf9d103fad4dcabda76795a23d82106bc
[ "Apache-2.0" ]
null
null
null
import unittest import clr import System class IsSubClassRegression(unittest.TestCase): def x(self): return 2 def y(self): return 'abc' def test_same_class(self): self.assertFalse(self.x().GetType().IsSubclassOf(System.Int32)) self.assertFalse(self.y().GetType().IsSubclassOf(System.String)) def test_nonparent_class(self): self.assertFalse(self.y().GetType().IsSubclassOf(System.Array)) self.assertFalse(self.y().GetType().IsSubclassOf(System.Int32)) def test_ancestor(self): self.assert_(self.y().GetType().IsSubclassOf(System.Object)) self.assert_(self.y().GetType().IsSubclassOf(System.Object))
27.76
72
0.680115
82
694
5.670732
0.317073
0.245161
0.322581
0.258065
0.567742
0.488172
0.488172
0.197849
0
0
0
0.008757
0.177233
694
24
73
28.916667
0.805604
0
0
0.117647
0
0
0.004329
0
0
0
0
0
0.352941
1
0.294118
false
0
0.176471
0.117647
0.647059
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
1
0
0
0
1
0
0
0
5
eac62aa4c24742933b51606187d3c06f45fc22c0
66
py
Python
tests/test_appname_cmd.py
LedgerHQ/ledger-app-neo3
48e1e0dec3e4801fc3ab1b07c4fe4ed86735a642
[ "MIT" ]
null
null
null
tests/test_appname_cmd.py
LedgerHQ/ledger-app-neo3
48e1e0dec3e4801fc3ab1b07c4fe4ed86735a642
[ "MIT" ]
5
2021-09-13T16:41:52.000Z
2022-01-12T16:00:21.000Z
tests/test_appname_cmd.py
isabella232/app-neo3
c48ec5032143fe606d694372c2cfc02082b2ce03
[ "MIT" ]
3
2021-09-01T11:40:09.000Z
2022-03-06T06:45:13.000Z
def test_app_name(cmd): assert cmd.get_app_name() == "NEO N3"
22
41
0.681818
12
66
3.416667
0.75
0.341463
0
0
0
0
0
0
0
0
0
0.018182
0.166667
66
2
42
33
0.727273
0
0
0
0
0
0.090909
0
0
0
0
0
0.5
1
0.5
false
0
0
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
1
0
1
0
0
0
0
0
0
0
5
d80308a9e7c99e9d94e30b79ac6a3595bf0fd3f2
33
py
Python
emulator/manic_miner/__init__.py
rola93/pgTK90
2111f1968a29979d9b850f840ab86a1ae0673180
[ "MIT" ]
null
null
null
emulator/manic_miner/__init__.py
rola93/pgTK90
2111f1968a29979d9b850f840ab86a1ae0673180
[ "MIT" ]
null
null
null
emulator/manic_miner/__init__.py
rola93/pgTK90
2111f1968a29979d9b850f840ab86a1ae0673180
[ "MIT" ]
null
null
null
from .interface import ManicMiner
33
33
0.878788
4
33
7.25
1
0
0
0
0
0
0
0
0
0
0
0
0.090909
33
1
33
33
0.966667
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
d81c7932164f33afc52bf9f7c9f49a7f94916ef0
43
py
Python
lookout/core/api/service_data_pb2.py
Guillemdb/lookout-sdk-ml
47f96120cb415dd15c98906ee161cd9085257d73
[ "Apache-2.0" ]
3
2018-12-05T16:06:47.000Z
2019-04-18T10:10:14.000Z
lookout/core/api/service_data_pb2.py
Guillemdb/lookout-sdk-ml
47f96120cb415dd15c98906ee161cd9085257d73
[ "Apache-2.0" ]
39
2018-11-22T21:37:57.000Z
2019-05-21T12:09:02.000Z
lookout/core/api/service_data_pb2.py
Guillemdb/lookout-sdk-ml
47f96120cb415dd15c98906ee161cd9085257d73
[ "Apache-2.0" ]
12
2018-11-06T15:10:39.000Z
2021-01-28T11:39:21.000Z
from lookout.sdk.service_data_pb2 import *
21.5
42
0.837209
7
43
4.857143
1
0
0
0
0
0
0
0
0
0
0
0.025641
0.093023
43
1
43
43
0.846154
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
d8339875c484b1aca7b02f38331216770db98480
40
py
Python
lumapps/latest/client/exceptions.py
lumapps/lumapps-sdk
f20a05534cdac803ff0676eb94fb0c5891cf5a36
[ "MIT" ]
8
2018-12-17T15:46:22.000Z
2021-11-16T16:18:26.000Z
lumapps/latest/client/exceptions.py
lumapps/lumapps-sdk
f20a05534cdac803ff0676eb94fb0c5891cf5a36
[ "MIT" ]
118
2019-01-03T10:35:59.000Z
2022-03-17T16:43:05.000Z
lumapps/latest/client/exceptions.py
lumapps/lumapps-sdk
f20a05534cdac803ff0676eb94fb0c5891cf5a36
[ "MIT" ]
10
2018-11-23T13:57:22.000Z
2021-09-30T20:55:40.000Z
class InvalidLogin(Exception): pass
13.333333
30
0.75
4
40
7.5
1
0
0
0
0
0
0
0
0
0
0
0
0.175
40
2
31
20
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
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
d834bc4c5ef1f269c30525f606fa59187ec9362b
812
py
Python
plugins/dnh.py
MrRizoel/RiZoeLVCstream
66686932eb8715ec4b0872d593c2c401af7a4417
[ "MIT" ]
null
null
null
plugins/dnh.py
MrRizoel/RiZoeLVCstream
66686932eb8715ec4b0872d593c2c401af7a4417
[ "MIT" ]
null
null
null
plugins/dnh.py
MrRizoel/RiZoeLVCstream
66686932eb8715ec4b0872d593c2c401af7a4417
[ "MIT" ]
null
null
null
import os from config import ASSISTANT_NAME HELP_TEXT =f"**SETTINGS** \n\n`1) Add this Bot to your Group and Make it Admin` \n2) **Add** @{ASSISTANT_NAME} **to your Group** \n\n**COMMANDS** \n\n- `/vplay` **: Reply to Video or File That You Want To stream In Vc.** \n- `/stop` **: Stop the stream**" START_TEXT = '👋 `Hey My Name Is` **RiZoeL X Stream** \n\n`Lets Enjoy Cinematic View of Group Video Player With Your Friends ❤️😊`' ABOUT_TEXT = '**👩‍💻 INFORMATION** \n\n`🤖 This bot was created to stream video in telegram group video chats using several methods from WebRTC.` \n\n`💡 Powered by PyTgcalls the Async client API for the Telegram Group Calls, and Pyrogram the telegram MTProto API Client Library and Framework in Pure Python for Users and Bots.` \n\n**This bot licensed under GNU-GPL 3.0 License**'
116
378
0.714286
145
812
4.027586
0.613793
0.023973
0.037671
0
0
0
0
0
0
0
0
0.005874
0.16133
812
6
379
135.333333
0.838473
0
0
0
0
0.6
0.8867
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
dc20c582122a995448c77d5f9e50de119933acf1
219
py
Python
Statistics/Stats/Variance_Sample_Proportion.py
jasmansingh84/PyStatisticalcalci
cc310f53472cb0a314849379c3c472ebd709c4b7
[ "MIT" ]
null
null
null
Statistics/Stats/Variance_Sample_Proportion.py
jasmansingh84/PyStatisticalcalci
cc310f53472cb0a314849379c3c472ebd709c4b7
[ "MIT" ]
null
null
null
Statistics/Stats/Variance_Sample_Proportion.py
jasmansingh84/PyStatisticalcalci
cc310f53472cb0a314849379c3c472ebd709c4b7
[ "MIT" ]
null
null
null
from Statistics.Stats.proportion import proportion from Statistics.Stats.variance import variance def variance_sample_proportion(numbers): variance_value = proportion(numbers) return variance(variance_value)
24.333333
50
0.826484
25
219
7.08
0.44
0.158192
0.214689
0
0
0
0
0
0
0
0
0
0.118721
219
8
51
27.375
0.917098
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
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
0
0
1
0
1
0
0
5
dc405a4571d6edf19c5cb95225eff73956e5a154
529
py
Python
vaultier/acls/migrations/__init__.py
witoon-acom/vaultier
54d7c1db54f60da60a0a61e9233e57cf28ea032a
[ "BSD-3-Clause" ]
null
null
null
vaultier/acls/migrations/__init__.py
witoon-acom/vaultier
54d7c1db54f60da60a0a61e9233e57cf28ea032a
[ "BSD-3-Clause" ]
null
null
null
vaultier/acls/migrations/__init__.py
witoon-acom/vaultier
54d7c1db54f60da60a0a61e9233e57cf28ea032a
[ "BSD-3-Clause" ]
1
2020-09-18T10:05:32.000Z
2020-09-18T10:05:32.000Z
from south.modelsinspector import add_introspection_rules add_introspection_rules([], ["^vaultier\.business\.fields\." "ObjectReferenceTypeField"]) add_introspection_rules([], ["^acls\.business\.fields\.RoleLevelField"]) add_introspection_rules([], ["^libs\.lowercasefield\.lowercasefield\." "LowerCaseCharField"]) add_introspection_rules([], ["^acls\.business\.fields\.AclDirectionField"]) add_introspection_rules([], ["^accounts\.business\.fields\.MemberStatusField"])
58.777778
79
0.699433
42
529
8.52381
0.452381
0.268156
0.351955
0.139665
0.217877
0.217877
0
0
0
0
0
0
0.139887
529
8
80
66.125
0.786813
0
0
0
0
0
0.448015
0.413989
0
0
0
0
0
1
0
true
0
0.125
0
0.125
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
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
dc48028f5b24768f00f1247d06955aa39ebea6ae
34
py
Python
run_client.py
zhmzlzn/Network-Pj-BookReader
891d395f2db464f4d4e7b84dd03c3cddebbafd30
[ "MIT" ]
6
2019-11-28T10:47:46.000Z
2021-11-04T08:22:56.000Z
run_client.py
zhmzlzn/python-BookReader
891d395f2db464f4d4e7b84dd03c3cddebbafd30
[ "MIT" ]
null
null
null
run_client.py
zhmzlzn/python-BookReader
891d395f2db464f4d4e7b84dd03c3cddebbafd30
[ "MIT" ]
4
2019-12-17T15:29:22.000Z
2021-05-28T16:39:51.000Z
import client client.init_client()
17
20
0.852941
5
34
5.6
0.6
0
0
0
0
0
0
0
0
0
0
0
0.058824
34
2
20
17
0.875
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
dc6e5464ff4fa3579e26b6443dc60fbb9299e596
183
py
Python
api.py
akindone/AdslProxy
58401acb08b86aacd2c7f3491f0ae536f47751d7
[ "MIT" ]
3
2019-04-29T00:26:05.000Z
2021-01-08T06:39:36.000Z
api.py
akindone/AdslProxy
58401acb08b86aacd2c7f3491f0ae536f47751d7
[ "MIT" ]
null
null
null
api.py
akindone/AdslProxy
58401acb08b86aacd2c7f3491f0ae536f47751d7
[ "MIT" ]
3
2019-12-23T08:26:44.000Z
2022-03-16T17:24:08.000Z
# coding=utf-8 from adslproxy.api import server from adslproxy.db import RedisClient if __name__ == '__main__': redis = RedisClient(host='', password='') server(redis=redis)
22.875
45
0.721311
23
183
5.391304
0.695652
0.209677
0
0
0
0
0
0
0
0
0
0.006452
0.153005
183
7
46
26.142857
0.793548
0.065574
0
0
0
0
0.047337
0
0
0
0
0
0
1
0
false
0.2
0.4
0
0.4
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
5
dc713225e596272522b99e2a9fa46080a95b4b60
55
py
Python
topycal/__init__.py
brianrusso/topycal
0aefd26ebf9131f51157b749cc67a9ec2b30bc11
[ "BSD-3-Clause" ]
null
null
null
topycal/__init__.py
brianrusso/topycal
0aefd26ebf9131f51157b749cc67a9ec2b30bc11
[ "BSD-3-Clause" ]
null
null
null
topycal/__init__.py
brianrusso/topycal
0aefd26ebf9131f51157b749cc67a9ec2b30bc11
[ "BSD-3-Clause" ]
null
null
null
from .lda import TopycalLDA from .nmf import TopycalNMF
27.5
27
0.836364
8
55
5.75
0.75
0
0
0
0
0
0
0
0
0
0
0
0.127273
55
2
28
27.5
0.958333
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
dc7a27c5241e2f96892282a123915934ef0e623e
175
py
Python
pincer/middleware/voice_settings_update.py
ashu96902/Pincer
102ac4ff998cbb3c57a86b252439f69895650cf3
[ "MIT" ]
null
null
null
pincer/middleware/voice_settings_update.py
ashu96902/Pincer
102ac4ff998cbb3c57a86b252439f69895650cf3
[ "MIT" ]
null
null
null
pincer/middleware/voice_settings_update.py
ashu96902/Pincer
102ac4ff998cbb3c57a86b252439f69895650cf3
[ "MIT" ]
null
null
null
# Copyright Pincer 2021-Present # Full MIT License can be found in `LICENSE` at the project root. """sent when the client's voice settings update""" # TODO: Implement event
25
65
0.742857
27
175
4.814815
0.925926
0
0
0
0
0
0
0
0
0
0
0.027586
0.171429
175
6
66
29.166667
0.868966
0.92
0
null
0
null
0
0
null
0
0
0.166667
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
0
0
0
0
0
5
dc8295195e960fda1a48674ed6767405029315b7
2,951
py
Python
SDK/backports.ssl_match_hostname-3.4.0.2/setup.py
Gr1ph00n/staticwebanalyzer
8bf6337a77192b85913d75778830ccbb9006081f
[ "MIT" ]
1
2019-12-04T11:04:45.000Z
2019-12-04T11:04:45.000Z
cmb_phase_plane/build/backports.ssl-match-hostname/setup.py
mathnathan/notebooks
63ae2f17fd8e1cd8d80fef8ee3b0d3d11d45cd28
[ "MIT" ]
null
null
null
cmb_phase_plane/build/backports.ssl-match-hostname/setup.py
mathnathan/notebooks
63ae2f17fd8e1cd8d80fef8ee3b0d3d11d45cd28
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This setup.py was generated automatically by Pyron. # For details, see http://pypi.python.org/pypi/pyron/ from setuptools import setup, find_packages setup( name = 'backports.ssl_match_hostname', version = '3.4.0.2', description = 'The ssl.match_hostname() function from Python 3.4', long_description = '\nThe Secure Sockets layer is only actually *secure*\nif you check the hostname in the certificate returned\nby the server to which you are connecting,\nand verify that it matches to hostname\nthat you are trying to reach.\n\nBut the matching logic, defined in `RFC2818`_,\ncan be a bit tricky to implement on your own.\nSo the ``ssl`` package in the Standard Library of Python 3.2\nand greater now includes a ``match_hostname()`` function\nfor performing this check instead of requiring every application\nto implement the check separately.\n\nThis backport brings ``match_hostname()`` to users\nof earlier versions of Python.\nSimply make this distribution a dependency of your package,\nand then use it like this::\n\n from backports.ssl_match_hostname import match_hostname, CertificateError\n ...\n sslsock = ssl.wrap_socket(sock, ssl_version=ssl.PROTOCOL_SSLv3,\n cert_reqs=ssl.CERT_REQUIRED, ca_certs=...)\n try:\n match_hostname(sslsock.getpeercert(), hostname)\n except CertificateError, ce:\n ...\n\nNote that the ``ssl`` module is only included in the Standard Library\nfor Python 2.6 and later;\nusers of Python 2.5 or earlier versions\nwill also need to install the ``ssl`` distribution\nfrom the Python Package Index to use code like that shown above.\n\nBrandon Craig Rhodes is merely the packager of this distribution;\nthe actual code inside comes verbatim from Python 3.4.\n\nHistory\n-------\n* This function was introduced in python-3.2\n* It was updated for python-3.4a1 for a CVE \n (backports-ssl_match_hostname-3.4.0.1)\n* It was updated from RFC2818 to RFC 6125 compliance in order to fix another\n security flaw for python-3.3.3 and python-3.4a5\n (backports-ssl_match_hostname-3.4.0.2)\n\n\n.. _RFC2818: http://tools.ietf.org/html/rfc2818.html\n\n', author = 'Brandon Craig Rhodes', author_email = 'brandon@rhodesmill.org', url = 'http://bitbucket.org/brandon/backports.ssl_match_hostname', classifiers = ['Development Status :: 5 - Production/Stable', 'License :: OSI Approved :: Python Software Foundation License', 'Programming Language :: Python :: 2.4', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.0', 'Programming Language :: Python :: 3.1', 'Topic :: Security :: Cryptography'], package_dir = {'': 'src'}, packages = find_packages('src'), include_package_data = True, install_requires = [], entry_points = '', )
128.304348
1,861
0.725517
443
2,951
4.760722
0.44921
0.061641
0.082978
0.05927
0.027501
0.027501
0.027501
0.027501
0
0
0
0.027755
0.157574
2,951
22
1,862
134.136364
0.820595
0.042359
0
0
1
0.0625
0.856839
0.110206
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
f4c83c0361fb5522434941e46a7612bd210452ae
170
py
Python
aioqvapay/v1/exceptions.py
leynier/aioqvapay
42cd0dc1d447ceb6dcb6f3be9408e5cfd3dfe9d1
[ "MIT" ]
8
2021-08-28T21:32:12.000Z
2021-08-31T13:49:47.000Z
aioqvapay/v2/exceptions.py
leynier/aioqvapay
42cd0dc1d447ceb6dcb6f3be9408e5cfd3dfe9d1
[ "MIT" ]
19
2021-08-28T21:49:02.000Z
2021-09-18T20:50:35.000Z
aioqvapay/v2/exceptions.py
leynier/aioqvapay
42cd0dc1d447ceb6dcb6f3be9408e5cfd3dfe9d1
[ "MIT" ]
null
null
null
class QvaPayException(Exception): def __init__(self, status_code: int, *args: object) -> None: super().__init__(*args) self.status_code = status_code
34
64
0.676471
20
170
5.2
0.65
0.288462
0.269231
0
0
0
0
0
0
0
0
0
0.2
170
4
65
42.5
0.764706
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
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
f4f6f4af4a2b614bd1a76cce7c262a3fecd5f554
22
py
Python
GameSystem/Battle.py
NoOneZero/arena
6828ea3c9e852cbffb09ba1f94b9a672d5b4645d
[ "Apache-2.0" ]
null
null
null
GameSystem/Battle.py
NoOneZero/arena
6828ea3c9e852cbffb09ba1f94b9a672d5b4645d
[ "Apache-2.0" ]
null
null
null
GameSystem/Battle.py
NoOneZero/arena
6828ea3c9e852cbffb09ba1f94b9a672d5b4645d
[ "Apache-2.0" ]
null
null
null
class Battle: pass
11
13
0.681818
3
22
5
1
0
0
0
0
0
0
0
0
0
0
0
0.272727
22
2
14
11
0.9375
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
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
5206b96be6f87e99e8ae820bdd788444f4d255d9
220
py
Python
mmseg/core/seg/__init__.py
weiyx16/mmsegmentation
6d35d76195f173fbc6b119a7d7815e67d78024c6
[ "Apache-2.0" ]
103
2022-02-20T17:12:54.000Z
2022-03-30T07:09:48.000Z
mmseg/core/seg/__init__.py
weiyx16/mmsegmentation
6d35d76195f173fbc6b119a7d7815e67d78024c6
[ "Apache-2.0" ]
13
2022-02-15T20:05:18.000Z
2022-02-15T20:05:21.000Z
mmseg/core/seg/__init__.py
weiyx16/mmsegmentation
6d35d76195f173fbc6b119a7d7815e67d78024c6
[ "Apache-2.0" ]
17
2022-02-22T06:29:50.000Z
2022-03-30T05:03:06.000Z
# Copyright (c) OpenMMLab. All rights reserved. from .builder import build_pixel_sampler from .sampler import BasePixelSampler, OHEMPixelSampler __all__ = ['build_pixel_sampler', 'BasePixelSampler', 'OHEMPixelSampler']
36.666667
73
0.813636
23
220
7.434783
0.608696
0.116959
0.19883
0
0
0
0
0
0
0
0
0
0.1
220
5
74
44
0.863636
0.204545
0
0
0
0
0.294798
0
0
0
0
0
0
1
0
false
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
0
0
1
0
1
0
0
5
52119d5cd53a8b998bde4ffb44281da47860c9bf
49
py
Python
numpy/distutils/tests/swig_ext/__init__.py
ivanov/numpy
6d2665626e40f346bb5af8d780579f5a429ff9ba
[ "BSD-3-Clause" ]
null
null
null
numpy/distutils/tests/swig_ext/__init__.py
ivanov/numpy
6d2665626e40f346bb5af8d780579f5a429ff9ba
[ "BSD-3-Clause" ]
null
null
null
numpy/distutils/tests/swig_ext/__init__.py
ivanov/numpy
6d2665626e40f346bb5af8d780579f5a429ff9ba
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division, absolute_import
24.5
48
0.877551
6
49
6.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.102041
49
1
49
49
0.863636
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
525669b7020e678b83395dbf97de31e054f0f293
64
py
Python
ormcache/__init__.py
dcramer/django-orm-cache
9a47ace9f81a9b738769e12a4c588909284f42ab
[ "BSD-2-Clause" ]
12
2015-01-15T01:38:03.000Z
2021-02-04T07:34:18.000Z
ormcache/__init__.py
dcramer/django-orm-cache
9a47ace9f81a9b738769e12a4c588909284f42ab
[ "BSD-2-Clause" ]
1
2017-12-13T12:02:14.000Z
2021-06-15T14:44:06.000Z
ormcache/__init__.py
dcramer/django-orm-cache
9a47ace9f81a9b738769e12a4c588909284f42ab
[ "BSD-2-Clause" ]
2
2016-08-09T16:32:52.000Z
2017-06-08T09:03:18.000Z
from manager import CacheManager from models import CachedModel
21.333333
32
0.875
8
64
7
0.75
0
0
0
0
0
0
0
0
0
0
0
0.125
64
2
33
32
1
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
5257975f408bac92addca35486a72c57b6307650
789
bzl
Python
src/rules_typescript_proto_dependencies.bzl
zaycev/rules_typescript_proto
c6ee53325bdcb251c71f2d14d28a25e9db73fd4e
[ "Apache-2.0" ]
28
2019-10-21T15:39:27.000Z
2022-03-16T16:15:03.000Z
src/rules_typescript_proto_dependencies.bzl
zaycev/rules_typescript_proto
c6ee53325bdcb251c71f2d14d28a25e9db73fd4e
[ "Apache-2.0" ]
40
2019-10-21T14:11:24.000Z
2022-03-11T12:47:29.000Z
src/rules_typescript_proto_dependencies.bzl
zaycev/rules_typescript_proto
c6ee53325bdcb251c71f2d14d28a25e9db73fd4e
[ "Apache-2.0" ]
36
2019-11-05T20:21:14.000Z
2022-03-23T18:34:56.000Z
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") def rules_typescript_proto_dependencies(): """ Installs rules_typescript_proto dependencies. Usage: # WORKSPACE load("@rules_typescript_proto//:index.bzl", "rules_typescript_proto_dependencies") rules_typescript_proto_dependencies() """ yarn_install( name = "rules_typescript_proto_deps", package_json = "@rules_typescript_proto//:package.json", # Don't use managed directories because these are internal to the library and the # dependencies shouldn't need to be installed by the user. symlink_node_modules = False, yarn_lock = "@rules_typescript_proto//:yarn.lock", )
34.304348
89
0.713561
95
789
5.589474
0.515789
0.225989
0.301318
0.241055
0
0
0
0
0
0
0
0
0.181242
789
22
90
35.863636
0.821981
0.411914
0
0
0
0
0.475638
0.419954
0
0
0
0
0
1
0.111111
true
0
0
0
0.111111
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
1
0
0
0
0
0
0
5
5275ce28d5f56f057c6f32bbfee60d840733532c
29
py
Python
data/preprocessing/depthFilling/__init__.py
Mirevi/face-synthesizer-JVRB
3c5774b1c5c981131df21b299389f568502b8ecf
[ "BSD-3-Clause" ]
null
null
null
data/preprocessing/depthFilling/__init__.py
Mirevi/face-synthesizer-JVRB
3c5774b1c5c981131df21b299389f568502b8ecf
[ "BSD-3-Clause" ]
null
null
null
data/preprocessing/depthFilling/__init__.py
Mirevi/face-synthesizer-JVRB
3c5774b1c5c981131df21b299389f568502b8ecf
[ "BSD-3-Clause" ]
null
null
null
from .depth_filling import *
14.5
28
0.793103
4
29
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.137931
29
1
29
29
0.88
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
52805f597262903082f0d39457010809a3065505
47
py
Python
tests/test_core.py
bspiritxp/jcutils
9d61ad19042760b5de05a1bcad575b77964b4de3
[ "MIT" ]
null
null
null
tests/test_core.py
bspiritxp/jcutils
9d61ad19042760b5de05a1bcad575b77964b4de3
[ "MIT" ]
null
null
null
tests/test_core.py
bspiritxp/jcutils
9d61ad19042760b5de05a1bcad575b77964b4de3
[ "MIT" ]
null
null
null
import time from jcutil.core import map_async
11.75
33
0.829787
8
47
4.75
0.875
0
0
0
0
0
0
0
0
0
0
0
0.148936
47
3
34
15.666667
0.95
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
bfe94457d732986427b8ee875a56dd321585bf2b
10,336
py
Python
Ui_all_res_list.py
jasha64/TicketAdvisor
f45bfd34a8f5a9da9da5832d9c8a4fe79ecd0600
[ "MIT" ]
null
null
null
Ui_all_res_list.py
jasha64/TicketAdvisor
f45bfd34a8f5a9da9da5832d9c8a4fe79ecd0600
[ "MIT" ]
null
null
null
Ui_all_res_list.py
jasha64/TicketAdvisor
f45bfd34a8f5a9da9da5832d9c8a4fe79ecd0600
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'all_res_list.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets all_res_list = [('枣庄', 1014.0, ('K372-K373', 717.0, 717, 528, ('上海', '16:03', '16:03'), ('枣庄西', '00:51', '00:53')), ('K1050-K1051', 297.0, 297, 341, ('枣庄东', '00:29', '00:38'), ('青岛北', '06:10', '06:10'))), ('徐州', 1019.0, ('Z216-Z217', 649.0, 649, 331, ('上海', '18:37', '18:37'), ('徐州', '00:08', '00:29')), ('K1050-K1051', 370.0, 370, 454, ('徐州', '22:36', '22:48'), ('青岛北', '06:10', '06:10'))), ('阜阳', 1174.0, ('K8386-K8387', 581.0, 581, 597, ('上海', '23:13', '23:13'), ('阜阳', '09:10', '09:10')), ('K1050-K1051', 593.0, 593, 719, ('阜阳', '18:11', '18:28'), ('青岛北', '06:10', '06:10'))), ('济南', 1290.0, ('Z268-Z269', 968.0, 968, 580, ('上海', '14:55', '14:55'), ('济南', '00:35', '00:44')), ('K1214-K1215', 322.0, 322, 265, ('济南东', '04:28', '04:42'), ('青岛北', '08:53', '08:53'))), ('合肥', 1381.0, ('K1106-K1107', 567.0, 567, 405, ('上海', '15:04', '15:04'), ('合肥', '21:49', '22:02')), ('K1050-K1051', 814.0, 814, 913, ('合肥', '14:57', '15:16'), ('青岛北', '06:10', '06:10'))), ('芜湖', 1381.0, ('K8418-K8419', 426.0, 426, 365, ('上海', '20:16', '20:16'), ('芜湖', '02:21', '02:27')), ('K1050-K1051', 955.0, 955, 1051, ('芜湖', '12:39', '12:45'), ('青岛北', '06:10', '06:10'))), ('宣城', 1509.0, ('K8418-K8419', 490.0, 490, 436, ('上海', '20:16', '20:16'), ('宣城', '03:32', '03:37')), ('K1050-K1051', 1019.0, 1019, 1115, ('宣城', '11:35', '11:38'), ('青岛北', '06:10', '06:10'))), ('聊城', 1541.0, ('K850', 1092.0, 1092, 961, ('上海', '12:34', '12:34'), ('聊城', '04:35', '04:54')), ('K1214-K1215', 449.0, 449, 399, ('聊城', '02:14', '02:42'), ('青岛北', '08:53', '08:53'))), ('德州', 1582.0, ('Z172-Z173', 1086.0, 1086, 602, ('上海', '19:04', '19:04'), ('德州', '05:06', '05:09')), ('K881-K884', 496.0, 496, 382, ('德州', '02:55', '02:59'), ('青岛北', '09:17', '09:17'))), ('商丘', 1638.0, ('Z252-Z253', 795.0, 795, 475, ('上海', '15:52', '15:52'), ('商丘', '23:47', '23:49')), ('K1025-K1028', 843.0, 843, 648, ('商丘', '20:34', '20:38'), ('青岛北', '07:22', '07:25'))), ('菏泽', 1669.0, ('K1012-K1013', 1061.0, 1061, 837, ('上海', '11:41', '11:41'), ('菏泽', '01:38', '01:42')), ('5025-5028', 608.0, 608, 523, ('菏泽', '22:14', '22:22'), ('青岛北', '06:57', '07:03'))), ('衡水', 1706.0, ('Z268-Z269', 1148.0, 1148, 711, ('上海', '14:55', '14:55'), ('衡水', '02:46', '02:55')), ('K881-K884', 558.0, 558, 443, ('衡水', '01:54', '02:01'), ('青岛北', '09:17', '09:17'))), ('邯郸', 1853.0, ('K234-K235', 1245.0, 1245, 1026, ('上海', '11:10', '11:10'), ('邯郸', '04:16', '04:34')), ('K1214-K1215', 608.0, 608, 557, ('邯郸', '23:36', '23:42'), ('青岛北', '08:53', '08:53'))), ('石家庄', 1970.0, ('Z196-Z197', 1280.0, 1280, 683, ('上海', '18:51', '18:51'), ('石家庄北', '06:14', '06:24')), ('K881-K884', 690.0, 690, 556, ('石家庄北', '00:01', '00:22'), ('青岛北', '09:17', '09:17'))), ('天津', 2040.0, ('Z4022', 1315.0, 1315, 705, ('上海', '19:24', '19:24'), ('天津西', '07:09', '07:14')), ('Z7', 725.0, 725, 424, ('天津西', '23:31', '23:33'), ('青岛北', '06:35', '06:35'))), ('郑州', 2044.0, ('Z216-Z217', 998.0, 998, 521, ('上海', '18:37', '18:37'), ('郑州', '03:18', '03:26')), ('K1025-K1028', 1046.0, 1046, 793, ('郑州', '18:09', '18:20'), ('青岛北', '07:22', '07:25'))), ('唐山', 2288.0, ('Z172-Z173', 1439.0, 1439, 817, ('上海', '19:04', '19:04'), ('唐山', '08:41', '08:45')), ('K1053-K1056', 849.0, 849, 677, ('唐山', '03:42', '03:49'), ('青岛北', '14:59', '14:59'))), ('洛阳', 2292.0, ('Z216-Z217', 1122.0, 1122, 610, ('上海', '18:37', '18:37'), ('洛阳', '04:47', '05:04')), ('K1025-K1028', 1170.0, 1170, 907, ('洛阳', '16:15', '16:18'), ('青岛北', '07:22', '07:25'))), ('北京', 2336.0, ('Z4022', 1463.0, 1463, 819, ('上海', '19:24', '19:24'), ('北京', '09:03', '09:03')), ('Z7', 873.0, 873, 505, ('北京', '22:10', '22:10'), ('青岛北', '06:35', '06:35'))), ('太原', 2420.0, ('Z196-Z197', 1505.0, 1505, 817, ('上海', '18:51', '18:51'), ('太原', '08:28', '08:28')), ('K881-K884', 915.0, 915, 699, ('太原', '21:38', '21:38'), ('青岛北', '09:17', '09:17'))), ('山海关', 2630.0, ('Z172-Z173', 1603.0, 1603, 954, ('上海', '19:04', '19:04'), ('山海关', '10:58', '11:04')), ('K955-K958', 1027.0, 1027, 865, ('山海关', '01:54', '02:00'), ('青岛北', '16:19', '16:19'))), ('渭南', 2954.0, ('Z92-Z93', 1453.0, 1453, 833, ('上海', '18:44', '18:44'), ('渭南', '08:37', '08:39')), ('K1025-K1028', 1501.0, 1501, 1218, ('渭南', '11:04', '11:06'), ('青岛北', '07:22', '07:25'))), ('锦州', 2979.0, ('Z172-Z173', 1768.0, 1768, 1029, ('上海', '19:04', '19:04'), ('锦州南', '12:13', '12:22')), ('K1053-K1056', 1211.0, 1211, 949, ('锦州', '23:10', '23:16'), ('青岛北', '14:59', '14:59'))), ('西安', 3066.0, ('Z92-Z93', 1509.0, 1509, 885, ('上海', '18:44', '18:44'), ('西安', '09:29', '09:29')), ('K1025-K1028', 1557.0, 1557, 1267, ('西安', '10:15', '10:25'), ('青岛北', '07:22', '07:25'))), ('宝鸡', 3379.0, ('T116-T117', 1649.0, 1649, 1120, ('上海', '15:32', '15:32'), ('宝鸡', '10:12', '10:20')), ('K1025-K1028', 1730.0, 1730, 1416, ('宝鸡', '07:46', '07:54'), ('青岛北', '07:22', '07:25'))), ('沈阳', 3435.0, ('Z172-Z173', 1991.0, 1991, 1141, ('上海', '19:04', '19:04'), ('沈阳北', '14:05', '14:11')), ('K969-K972', 1444.0, 1444, 1131, ('沈阳', '21:53', '22:08'), ('青岛北', '16:44', '16:44'))), ('天水', 3689.0, ('T116-T117', 1804.0, 1804, 1222, ('上海', '15:32', '15:32'), ('天水', '11:54', '12:02')), ('K1025-K1028', 1885.0, 1885, 1583, ('天水', '04:59', '05:07'), ('青岛北', '07:22', '07:25'))), ('四平', 3805.0, ('Z172-Z173', 2176.0, 2176, 1237, ('上海', '19:04', '19:04'), ('四平', '15:41', '15:43')), ('K1053-K1056', 1629.0, 1629, 1285, ('四平', '17:34', '17:37'), ('青岛北', '14:59', '14:59'))), ('长春', 4035.0, ('Z172-Z173', 2291.0, 2291, 1297, ('上海', '19:04', '19:04'), ('长春', '16:41', '16:49')), ('K1053-K1056', 1744.0, 1744, 1382, ('长春', '15:57', '16:21'), ('青岛北', '14:59', '14:59'))), ('吉林', 4331.0, ('K516-K517', 2459.0, 2459, 1954, ('上海', '09:16', '09:16'), ('吉林', '17:50', '17:50')), ('K1053-K1056', 1872.0, 1872, 1500, ('吉林', '13:59', '14:17'), ('青岛北', '14:59', '14:59'))), ('兰州', 4385.0, ('T116-T117', 2152.0, 2152, 1472, ('上海', '15:32', '15:32'), ('兰州', '16:04', '16:04')), ('K1025-K1028', 2233.0, 2233, 1886, ('兰州', '23:56', '23:56'), ('青岛北', '07:22', '07:25')))] class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(800, 600) Form.setWindowIcon(QtGui.QIcon('12306.png')) self.tableWidget = QtWidgets.QTableWidget(Form) self.tableWidget.setGeometry(QtCore.QRect(10, 30, 781, 521)) self.tableWidget.setObjectName("tableWidget") self.tableWidget.setColumnCount(16) self.tableWidget.setColumnWidth(0, 82) # 地名 self.tableWidget.setColumnWidth(1, 65) # 代价 self.tableWidget.setColumnWidth(2, 105) # 前车车次 self.tableWidget.setColumnWidth(3, 43) # 里程 self.tableWidget.setColumnWidth(4, 43) # 时间 self.tableWidget.setColumnWidth(5, 82) # 发站 self.tableWidget.setColumnWidth(6, 48) # 发时 self.tableWidget.setColumnWidth(7, 82) # 中转站 self.tableWidget.setColumnWidth(8, 48) # 到时 self.tableWidget.setColumnWidth(9, 105) # 后车车次 self.tableWidget.setColumnWidth(10, 43) # 里程 self.tableWidget.setColumnWidth(11, 43) # 时间 self.tableWidget.setColumnWidth(12, 82) # 中转站 self.tableWidget.setColumnWidth(13, 48) # 发时 self.tableWidget.setColumnWidth(14, 82) # 到站 self.tableWidget.setColumnWidth(15, 48) # 到时 self.tableWidget.setHorizontalHeaderLabels(['城市', '代价', '前车车次', '里程', '时间', '发站', '发时', '中转站', '到时', '后车车次', '里程', '时间', '中转站', '发时', '到站', '到时']) # added self.tableWidget.setRowCount(0) self.label = QtWidgets.QLabel(Form) self.label.setGeometry(QtCore.QRect(10, 10, 431, 16)) self.label.setObjectName("label") self.pushButton = QtWidgets.QPushButton(Form) self.pushButton.setGeometry(QtCore.QRect(690, 560, 101, 28)) self.pushButton.setObjectName("pushButton") self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) self.set_table_content(self.tableWidget, all_res_list) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "查看所有方案")) self.label.setText(_translate("Form", "本系统计算了如下的中转城市,各个城市的计算结果如下表所示:")) self.pushButton.setText(_translate("Form", "查询选定城市")) def set_table_content(self, table, data): table.setRowCount(len(data)) # ('枣庄', 1014.0, # ('K372-K373', 717.0, 717, 528, ('上海', '16:03', '16:03'), ('枣庄西', '00:51', '00:53')), # ('K1050-K1051', 297.0, 297, 341, ('枣庄东', '00:29', '00:38'), ('青岛北', '06:10', '06:10'))) # ['城市', '代价', '前车车次', '里程', '时间', '发站', '发时', '中转站', '到时', # '后车车次', '里程', '时间', '中转站', '发时', '到站', '到时'] for i in range(len(data)): table.setItem(i, 0, QtWidgets.QTableWidgetItem(str(data[i][0]))) table.setItem(i, 1, QtWidgets.QTableWidgetItem(str(data[i][1]))) table.setItem(i, 2, QtWidgets.QTableWidgetItem(str(data[i][2][0]))) table.setItem(i, 3, QtWidgets.QTableWidgetItem(str(data[i][2][2]))) table.setItem(i, 4, QtWidgets.QTableWidgetItem(str(data[i][2][3]))) table.setItem(i, 5, QtWidgets.QTableWidgetItem(str(data[i][2][4][0]))) table.setItem(i, 6, QtWidgets.QTableWidgetItem(str(data[i][2][4][2]))) table.setItem(i, 7, QtWidgets.QTableWidgetItem(str(data[i][2][5][0]))) table.setItem(i, 8, QtWidgets.QTableWidgetItem(str(data[i][2][5][1]))) table.setItem(i, 9, QtWidgets.QTableWidgetItem(str(data[i][3][0]))) table.setItem(i, 10, QtWidgets.QTableWidgetItem(str(data[i][3][2]))) table.setItem(i, 11, QtWidgets.QTableWidgetItem(str(data[i][3][3]))) table.setItem(i, 12, QtWidgets.QTableWidgetItem(str(data[i][3][4][0]))) table.setItem(i, 13, QtWidgets.QTableWidgetItem(str(data[i][3][4][2]))) table.setItem(i, 14, QtWidgets.QTableWidgetItem(str(data[i][3][5][0]))) table.setItem(i, 15, QtWidgets.QTableWidgetItem(str(data[i][3][5][1]))) if __name__ == '__main__': import sys app = QtWidgets.QApplication(sys.argv) MainWindow = QtWidgets.QMainWindow() ui = Ui_Form() ui.setupUi(MainWindow) MainWindow.show() sys.exit(app.exec_())
112.347826
5,880
0.53483
1,638
10,336
3.359585
0.252747
0.062693
0.084318
0.09304
0.30656
0.143195
0.096675
0.045793
0.045793
0.045793
0
0.286466
0.154315
10,336
91
5,881
113.582418
0.343096
0.051954
0
0
1
0
0.236974
0.002969
0
0
0
0
0
1
0.042857
false
0
0.028571
0
0.085714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1
1
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
8703fe2d45f9d9e5d898ed5302304e208c9da355
127
py
Python
DjangoTry/testDJ/main/admin.py
PavelKoksharov/QR-BOOK
8b05cecd7a3cffcec281f2e17da398ad9e4c5de5
[ "MIT" ]
null
null
null
DjangoTry/testDJ/main/admin.py
PavelKoksharov/QR-BOOK
8b05cecd7a3cffcec281f2e17da398ad9e4c5de5
[ "MIT" ]
null
null
null
DjangoTry/testDJ/main/admin.py
PavelKoksharov/QR-BOOK
8b05cecd7a3cffcec281f2e17da398ad9e4c5de5
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Books,Comments admin.site.register(Books) admin.site.register(Comments)
18.142857
34
0.818898
18
127
5.777778
0.555556
0.173077
0.326923
0
0
0
0
0
0
0
0
0
0.094488
127
6
35
21.166667
0.904348
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
8750a016ee5308d5714981f59ffc11b20b492823
200
py
Python
conclave/task_runner_config.py
DasAng/paraworld
fe202fadfaac6884370a8f27e29e113b13565e63
[ "MIT" ]
null
null
null
conclave/task_runner_config.py
DasAng/paraworld
fe202fadfaac6884370a8f27e29e113b13565e63
[ "MIT" ]
null
null
null
conclave/task_runner_config.py
DasAng/paraworld
fe202fadfaac6884370a8f27e29e113b13565e63
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field @dataclass class TaskRunnerConfig: onlyRunScenarioTags: list[str] = field(default_factory=list) featureFiles: list[str] = field(default_factory=list)
28.571429
64
0.79
22
200
7.090909
0.590909
0.089744
0.153846
0.24359
0.384615
0.384615
0
0
0
0
0
0
0.125
200
6
65
33.333333
0.891429
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.2
0
0.8
0
1
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
0
0
1
0
0
5
5e66e2d4eb8a778a53986eac39aea2e64fa399b8
385
py
Python
openproblems/tasks/dimensionality_reduction/methods/__init__.py
scottgigante-immunai/openproblems
d093c1a2f21715d98e07ec760eff2c8f50c68373
[ "MIT" ]
null
null
null
openproblems/tasks/dimensionality_reduction/methods/__init__.py
scottgigante-immunai/openproblems
d093c1a2f21715d98e07ec760eff2c8f50c68373
[ "MIT" ]
null
null
null
openproblems/tasks/dimensionality_reduction/methods/__init__.py
scottgigante-immunai/openproblems
d093c1a2f21715d98e07ec760eff2c8f50c68373
[ "MIT" ]
null
null
null
from .densmap import densmap_logCPM_1kHVG from .densmap import densmap_pca_logCPM_1kHVG from .neuralee import neuralee_default from .neuralee import neuralee_logCPM_1kHVG from .pca import pca_logCPM_1kHVG from .phate import phate_default from .phate import phate_logCPM_1kHVG from .scvis import scvis_logCM_1kHVG from .tsne import tsne_logCPM_1kHVG from .umap import umap_logCPM_1kHVG
35
45
0.87013
59
385
5.355932
0.220339
0.243671
0.28481
0.151899
0
0
0
0
0
0
0
0.023188
0.103896
385
10
46
38.5
0.892754
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
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
0
1
0
1
0
1
0
0
5
5e7250c603be5a053ba79500bd13b6a0a1664661
71
py
Python
gym_alttp_gridworld/envs/__init__.py
mtrazzi/gym-alttp-gridworld
c01b324fe51373181f1f68bcce3736bb16c489fa
[ "BSD-3-Clause" ]
18
2018-07-29T04:44:58.000Z
2021-03-16T06:02:56.000Z
gym_alttp_gridworld/envs/__init__.py
mtrazzi/gym-alttp-gridworld
c01b324fe51373181f1f68bcce3736bb16c489fa
[ "BSD-3-Clause" ]
null
null
null
gym_alttp_gridworld/envs/__init__.py
mtrazzi/gym-alttp-gridworld
c01b324fe51373181f1f68bcce3736bb16c489fa
[ "BSD-3-Clause" ]
1
2020-07-16T08:54:53.000Z
2020-07-16T08:54:53.000Z
from gym_alttp_gridworld.envs.treacherous_turn import LinkToThePastEnv
35.5
70
0.915493
9
71
6.888889
1
0
0
0
0
0
0
0
0
0
0
0
0.056338
71
1
71
71
0.925373
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
5e846758632733c70e99ef2432e37bb41d3289ea
43
py
Python
Week 7/opdracht_27.py
zowie93/ISCRIPT
fa3e5122be8ef47b23c23554ec9e1c04b37da562
[ "MIT" ]
null
null
null
Week 7/opdracht_27.py
zowie93/ISCRIPT
fa3e5122be8ef47b23c23554ec9e1c04b37da562
[ "MIT" ]
null
null
null
Week 7/opdracht_27.py
zowie93/ISCRIPT
fa3e5122be8ef47b23c23554ec9e1c04b37da562
[ "MIT" ]
null
null
null
""" Opdracht 27 - Vliegtuig coordinaten """
14.333333
35
0.697674
4
43
7.5
1
0
0
0
0
0
0
0
0
0
0
0.054054
0.139535
43
3
36
14.333333
0.756757
0.813953
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
5e895ba5672d27a337c4baf3e86432d07d7c89f8
133
py
Python
python/numpy1.py
chaojie-fu/robotics_tutorial
12affebfe6cb3810cc1e8fde4c674ed077b926a5
[ "MIT" ]
1
2021-12-23T13:05:26.000Z
2021-12-23T13:05:26.000Z
python/numpy1.py
cyoahs/robotics_tutorial
3aed846c5e95eb32dbcdeebac0b22e54cd74ea02
[ "MIT" ]
null
null
null
python/numpy1.py
cyoahs/robotics_tutorial
3aed846c5e95eb32dbcdeebac0b22e54cd74ea02
[ "MIT" ]
1
2020-04-06T11:25:51.000Z
2020-04-06T11:25:51.000Z
import numpy as np a = np.array([[1, 2], [3, 4]]) print(a) print(a[0, 0]) a = np.arange(6).reshape([2,3]) print(a) print(a[:, 1])
12.090909
31
0.548872
29
133
2.517241
0.517241
0.328767
0.30137
0.328767
0
0
0
0
0
0
0
0.09009
0.165414
133
10
32
13.3
0.567568
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.571429
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
5e8bab2e3fac801eb033ace1e1ea65790c08ac61
150
py
Python
ehmatthes-pcc_2e-078318e/beyond_pcc/ai_player/alien_invasion_with_sounds/sound_effects.py
charliechocho/py-crash-course
b42b8a4c1cb8d76e8316f55c1565ff42d920ee63
[ "Apache-2.0" ]
12
2020-10-22T14:03:27.000Z
2022-03-28T08:14:22.000Z
ehmatthes-pcc_2e-078318e/beyond_pcc/ai_player/alien_invasion_with_sounds/sound_effects.py
charliechocho/py-crash-course
b42b8a4c1cb8d76e8316f55c1565ff42d920ee63
[ "Apache-2.0" ]
null
null
null
ehmatthes-pcc_2e-078318e/beyond_pcc/ai_player/alien_invasion_with_sounds/sound_effects.py
charliechocho/py-crash-course
b42b8a4c1cb8d76e8316f55c1565ff42d920ee63
[ "Apache-2.0" ]
9
2020-12-22T10:22:12.000Z
2022-03-28T08:14:53.000Z
import pygame pygame.mixer.init() bullet_sound = pygame.mixer.Sound('sounds/laser1.wav') alien_sound = pygame.mixer.Sound('sounds/Explosion_02.wav')
25
59
0.786667
22
150
5.227273
0.545455
0.286957
0.278261
0.365217
0.469565
0
0
0
0
0
0
0.021429
0.066667
150
6
59
25
0.8
0
0
0
0
0
0.264901
0.152318
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
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
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
5eb5fda6b68a454923c2865e13f24ddbb02d1a37
149
py
Python
dispatch/__init__.py
harrybrwn/dispatch
77aac949adb2229a609e4d1a7380478fdf5f1f7f
[ "Apache-2.0" ]
null
null
null
dispatch/__init__.py
harrybrwn/dispatch
77aac949adb2229a609e4d1a7380478fdf5f1f7f
[ "Apache-2.0" ]
null
null
null
dispatch/__init__.py
harrybrwn/dispatch
77aac949adb2229a609e4d1a7380478fdf5f1f7f
[ "Apache-2.0" ]
null
null
null
from .dispatch import Command, Group, helptext, command, subcommand, handle from .flags import Option, FlagSet from .exceptions import UserException
37.25
75
0.818792
18
149
6.777778
0.722222
0
0
0
0
0
0
0
0
0
0
0
0.120805
149
3
76
49.666667
0.931298
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
5ec0ddd857f33731c218c8a0a30092320c9621d7
170
py
Python
src/shop/admin.py
earth-emoji/love
3617bd47c396803c411e136b3e1de87c18e03890
[ "BSD-2-Clause" ]
null
null
null
src/shop/admin.py
earth-emoji/love
3617bd47c396803c411e136b3e1de87c18e03890
[ "BSD-2-Clause" ]
7
2021-03-19T10:46:09.000Z
2022-03-12T00:28:55.000Z
src/shop/admin.py
earth-emoji/love
3617bd47c396803c411e136b3e1de87c18e03890
[ "BSD-2-Clause" ]
null
null
null
from django.contrib import admin from shop.models import Basket, Order, OrderItem admin.site.register(Basket) admin.site.register(Order) admin.site.register(OrderItem)
21.25
48
0.817647
24
170
5.791667
0.5
0.194245
0.366906
0
0
0
0
0
0
0
0
0
0.088235
170
7
49
24.285714
0.896774
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
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
5ed3a205b0c4c47714a492a26cfd37eaafc38848
51
py
Python
tests/_tests_scripts/core_contrib_data.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
2
2019-04-19T21:34:31.000Z
2019-05-02T22:50:25.000Z
tests/_tests_scripts/core_contrib_data.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
1
2021-01-07T16:13:45.000Z
2021-01-21T09:27:54.000Z
tests/_tests_scripts/core_contrib_data.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
1
2020-12-02T18:42:31.000Z
2020-12-02T18:42:31.000Z
# flake8: noqa from catalyst.contrib.data import *
17
35
0.764706
7
51
5.571429
1
0
0
0
0
0
0
0
0
0
0
0.022727
0.137255
51
2
36
25.5
0.863636
0.235294
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
0d7ee585bc36fb107738a0ce766a58f427b12ec7
34
py
Python
email/email_ballots/email_ballot.py
Andrew-Talley/mock-trial-tab
493b0b843d34c732dec724e8ab51f355835a3f46
[ "MIT" ]
1
2020-10-10T20:24:53.000Z
2020-10-10T20:24:53.000Z
email/email_ballots/email_ballot.py
Andrew-Talley/mock-trial-tab
493b0b843d34c732dec724e8ab51f355835a3f46
[ "MIT" ]
1
2020-10-10T20:30:20.000Z
2020-10-10T20:30:20.000Z
email/email_ballots/email_ballot.py
Andrew-Talley/mock-trial-tab
493b0b843d34c732dec724e8ab51f355835a3f46
[ "MIT" ]
null
null
null
def email_ballots(ballots): pass
17
27
0.794118
5
34
5.2
0.8
0
0
0
0
0
0
0
0
0
0
0
0.117647
34
2
28
17
0.866667
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0.5
0
0
0.5
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
1
0
1
0
0
0
0
0
5
0da93d659e9f6b28f532ee8d189522a78c254251
90
py
Python
Movies/MoviesApp/admin.py
cs-fullstack-fall-2018/django-template-hierarchy1-CalebC94
66289b4c4db4b11d4273b6820e8140bed2fac24f
[ "Apache-2.0" ]
null
null
null
Movies/MoviesApp/admin.py
cs-fullstack-fall-2018/django-template-hierarchy1-CalebC94
66289b4c4db4b11d4273b6820e8140bed2fac24f
[ "Apache-2.0" ]
null
null
null
Movies/MoviesApp/admin.py
cs-fullstack-fall-2018/django-template-hierarchy1-CalebC94
66289b4c4db4b11d4273b6820e8140bed2fac24f
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import Movies admin.site.register(Movies)
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
0dc09337c534d0619aaabe7065ef7852aaa071b3
438
py
Python
slixmpp/plugins/xep_0186/__init__.py
marconfus/slixmpp
bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa
[ "BSD-3-Clause" ]
null
null
null
slixmpp/plugins/xep_0186/__init__.py
marconfus/slixmpp
bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa
[ "BSD-3-Clause" ]
1
2021-02-24T07:58:40.000Z
2021-02-24T07:58:40.000Z
slixmpp/plugins/xep_0186/__init__.py
marconfus/slixmpp
bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa
[ "BSD-3-Clause" ]
null
null
null
""" Slixmpp: The Slick XMPP Library Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout This file is part of Slixmpp. See the file LICENSE for copying permission. """ from slixmpp.plugins.base import register_plugin from slixmpp.plugins.xep_0186 import stanza from slixmpp.plugins.xep_0186.stanza import Invisible, Visible from slixmpp.plugins.xep_0186.invisible_command import XEP_0186 register_plugin(XEP_0186)
25.764706
63
0.780822
65
438
5.138462
0.553846
0.10479
0.215569
0.188623
0.224551
0
0
0
0
0
0
0.064865
0.155251
438
16
64
27.375
0.837838
0.372146
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.8
0
0.8
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0de21490aa305c37347ffbccdbb039bcc951dcb9
200
py
Python
fuzzy/fuzzy_logical_relationship.py
mikesligo/FYP-fuzzy-time-series
dc325bef0e3e43b499f63e703b7f9819cc6a8452
[ "MIT" ]
2
2015-06-10T09:02:12.000Z
2016-08-12T11:08:11.000Z
fuzzy/fuzzy_logical_relationship.py
mikesligo/FYP-fuzzy-time-series
dc325bef0e3e43b499f63e703b7f9819cc6a8452
[ "MIT" ]
null
null
null
fuzzy/fuzzy_logical_relationship.py
mikesligo/FYP-fuzzy-time-series
dc325bef0e3e43b499f63e703b7f9819cc6a8452
[ "MIT" ]
3
2015-01-13T15:46:34.000Z
2019-11-06T01:58:12.000Z
class Fuzzy_logical_relationship(object): def __init__(self, lhs, rhs): self.lhs = lhs self.rhs = rhs def __str__(self): return str(self.lhs) + " -> " + str(self.rhs)
25
53
0.59
26
200
4.153846
0.461538
0.194444
0
0
0
0
0
0
0
0
0
0
0.275
200
8
53
25
0.744828
0
0
0
0
0
0.019901
0
0
0
0
0
0
1
0.333333
false
0
0
0.166667
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
21aa0cf3b0e4977b9e0ade774212a17ceb459f0f
195
py
Python
lesson-3/ex1.py
alirsamar/intro-ml
36450b26b7ea09472ccdd2a0abce51b6c3889a20
[ "MIT" ]
null
null
null
lesson-3/ex1.py
alirsamar/intro-ml
36450b26b7ea09472ccdd2a0abce51b6c3889a20
[ "MIT" ]
null
null
null
lesson-3/ex1.py
alirsamar/intro-ml
36450b26b7ea09472ccdd2a0abce51b6c3889a20
[ "MIT" ]
null
null
null
# Coding a decision tree from sklearn import tree def classify(features_train, labels_train): clf = tree.DecisionTreeClassifier() clf.fit(features_train, labels_train) return clf
24.375
45
0.753846
25
195
5.72
0.64
0.181818
0.265734
0.335664
0
0
0
0
0
0
0
0
0.179487
195
8
46
24.375
0.89375
0.112821
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
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
0
0
1
0
0
5
21c50291d330e352b6f20b0ebfb836e2aee27fe0
44
py
Python
advopt/classifier/gb/__init__.py
HSE-LAMBDA/rapid-ao
bf293e227796d73657345018b66ad0e58ab03569
[ "MIT" ]
null
null
null
advopt/classifier/gb/__init__.py
HSE-LAMBDA/rapid-ao
bf293e227796d73657345018b66ad0e58ab03569
[ "MIT" ]
null
null
null
advopt/classifier/gb/__init__.py
HSE-LAMBDA/rapid-ao
bf293e227796d73657345018b66ad0e58ab03569
[ "MIT" ]
null
null
null
from .boosting import * from .utils import *
22
23
0.75
6
44
5.5
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.159091
44
2
24
22
0.891892
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
21d608539b2977ace69f65665acb2459975b040f
186
py
Python
app/application.py
skostya64/API-testing
88b73372411a36da6d076357968be8b0451268dc
[ "Apache-2.0" ]
null
null
null
app/application.py
skostya64/API-testing
88b73372411a36da6d076357968be8b0451268dc
[ "Apache-2.0" ]
null
null
null
app/application.py
skostya64/API-testing
88b73372411a36da6d076357968be8b0451268dc
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver class Application: def __init__(self): self.driver = webdriver.Chrome(chrome_options=options) def quit(self): self.driver.quit()
20.666667
62
0.693548
22
186
5.636364
0.590909
0.129032
0.225806
0
0
0
0
0
0
0
0
0
0.215054
186
9
63
20.666667
0.849315
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.166667
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
1
0
0
0
0
1
0
0
5
21d9a664acd44aa92b13d779d3f867678eba2439
113
py
Python
py_apitest/__main__.py
thewisenerd/py-apitest
6b30ce111b4b4d7baf6825ff07daf14f1da1185a
[ "Unlicense" ]
null
null
null
py_apitest/__main__.py
thewisenerd/py-apitest
6b30ce111b4b4d7baf6825ff07daf14f1da1185a
[ "Unlicense" ]
null
null
null
py_apitest/__main__.py
thewisenerd/py-apitest
6b30ce111b4b4d7baf6825ff07daf14f1da1185a
[ "Unlicense" ]
null
null
null
# Execute with # $ python -m py_apitest (2.7+) import py_apitest if __name__ == '__main__': py_apitest.main()
14.125
31
0.690265
17
113
3.941176
0.705882
0.402985
0
0
0
0
0
0
0
0
0
0.021277
0.168142
113
7
32
16.142857
0.691489
0.371681
0
0
0
0
0.117647
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
21dda82b62ac6c49ac382546fdaac5a77d270b62
11,045
py
Python
webapi_active_query_builder/apis/active_query_builder_api.py
ActiveDbSoft/webapi-active-query-builder-python
81d65f454617d913d8d3b707283a42830c08192d
[ "Apache-2.0" ]
2
2018-11-01T18:03:04.000Z
2020-03-21T17:34:51.000Z
webapi_active_query_builder/apis/active_query_builder_api.py
ActiveDbSoft/webapi-active-query-builder-python
81d65f454617d913d8d3b707283a42830c08192d
[ "Apache-2.0" ]
null
null
null
webapi_active_query_builder/apis/active_query_builder_api.py
ActiveDbSoft/webapi-active-query-builder-python
81d65f454617d913d8d3b707283a42830c08192d
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ QueryBuilderApi Active Query Builder Web API lets create, analyze and modify SQL queries for different database servers using RESTful HTTP requests to a cloud-based service. It requires SQL execution context (information about database schema and used database server) to be stored under the registered account at https://webapi.activequerybuilder.com/. OpenAPI spec version: 1.1.8 Contact: support@activedbsoft.com Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from __future__ import absolute_import import sys import os import re # python 2 and python 3 compatibility library from six import iteritems from ..configuration import Configuration from ..api_client import ApiClient class ActiveQueryBuilderApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): config = Configuration() if api_client: self.api_client = api_client else: if not config.api_client: config.api_client = ApiClient() self.api_client = config.api_client def get_query_columns_post(self, query, **kwargs): """ Returns list of columns for the given SQL query. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.get_query_columns_post(query, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param SqlQuery query: Information about SQL query and it's context. (required) :return: list[QueryColumn] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.get_query_columns_post_with_http_info(query, **kwargs) else: (data) = self.get_query_columns_post_with_http_info(query, **kwargs) return data def get_query_columns_post_with_http_info(self, query, **kwargs): """ Returns list of columns for the given SQL query. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.get_query_columns_post_with_http_info(query, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param SqlQuery query: Information about SQL query and it's context. (required) :return: list[QueryColumn] If the method is called asynchronously, returns the request thread. """ all_params = ['query'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_query_columns_post" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'query' is set if ('query' not in params) or (params['query'] is None): raise ValueError("Missing the required parameter `query` when calling `get_query_columns_post`") resource_path = '/getQueryColumns'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} form_params = [] local_var_files = {} body_params = None if 'query' in params: body_params = params['query'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'text/html']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'text/xml']) # Authentication setting auth_settings = [] return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[QueryColumn]', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only')) def transform_sql_post(self, transform, **kwargs): """ Transforms the given SQL query according to the commands provided in this request. You can add constraints, hide some of the resultset columns, chang sorting or limit rows of resultset. All transformations can only lead to reorganization or limitation of the resultset data. This means that it's impossible to get transformed SQL that reveals any other data than the data retutned by original query. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.transform_sql_post(transform, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param Transform transform: SQL transformation parameters and commands. (required) :return: TransformResult If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.transform_sql_post_with_http_info(transform, **kwargs) else: (data) = self.transform_sql_post_with_http_info(transform, **kwargs) return data def transform_sql_post_with_http_info(self, transform, **kwargs): """ Transforms the given SQL query according to the commands provided in this request. You can add constraints, hide some of the resultset columns, chang sorting or limit rows of resultset. All transformations can only lead to reorganization or limitation of the resultset data. This means that it's impossible to get transformed SQL that reveals any other data than the data retutned by original query. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.transform_sql_post_with_http_info(transform, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param Transform transform: SQL transformation parameters and commands. (required) :return: TransformResult If the method is called asynchronously, returns the request thread. """ all_params = ['transform'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method transform_sql_post" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'transform' is set if ('transform' not in params) or (params['transform'] is None): raise ValueError("Missing the required parameter `transform` when calling `transform_sql_post`") resource_path = '/transformSQL'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} form_params = [] local_var_files = {} body_params = None if 'transform' in params: body_params = params['transform'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'text/html']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'text/xml']) # Authentication setting auth_settings = [] return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='TransformResult', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'))
42.318008
407
0.607153
1,217
11,045
5.345933
0.211997
0.049185
0.017983
0.023363
0.766062
0.741623
0.737319
0.719029
0.702429
0.688595
0
0.001332
0.320054
11,045
260
408
42.480769
0.86498
0.433318
0
0.640351
0
0
0.1454
0.031678
0
0
0
0
0
1
0.04386
false
0
0.061404
0
0.166667
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
21f1fa129a754030f8259a3da9f9b17991775763
30
py
Python
language/operator/property/associativity.py
jedhsu/language
3772a4a0ff287e1fc5ebefc716b8d91928d04c72
[ "MIT" ]
null
null
null
language/operator/property/associativity.py
jedhsu/language
3772a4a0ff287e1fc5ebefc716b8d91928d04c72
[ "MIT" ]
null
null
null
language/operator/property/associativity.py
jedhsu/language
3772a4a0ff287e1fc5ebefc716b8d91928d04c72
[ "MIT" ]
null
null
null
class Associativity: pass
10
20
0.733333
3
30
7.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.233333
30
2
21
15
0.956522
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
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
1d0a3179a1f40aafdedd4728ea4b1120a9ea3d80
114
py
Python
comptox_ai/cypher/__init__.py
van-truong/comptox_ai
393b05c617822e30f54c967ef07ec53ba4b09688
[ "MIT" ]
6
2020-03-09T17:27:34.000Z
2022-03-15T15:37:15.000Z
comptox_ai/cypher/__init__.py
van-truong/comptox_ai
393b05c617822e30f54c967ef07ec53ba4b09688
[ "MIT" ]
11
2021-05-04T18:46:51.000Z
2022-03-01T01:06:49.000Z
comptox_ai/cypher/__init__.py
van-truong/comptox_ai
393b05c617822e30f54c967ef07ec53ba4b09688
[ "MIT" ]
2
2020-02-23T14:11:10.000Z
2021-10-04T18:27:58.000Z
""" This is a library of all Cypher query templates used in the Comptox Ontology code. """ from . import queries
16.285714
67
0.736842
18
114
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.192982
114
6
68
19
0.913043
0.719298
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
df1d57de4db2465db7813dc638afac4493d92936
126
py
Python
mct_camera_tools/src/mct_camera_tools/__init__.py
iorodeo/mct
fa8b85f36533c9b1486ca4f6b0c40c3daa6f4e11
[ "Apache-2.0" ]
null
null
null
mct_camera_tools/src/mct_camera_tools/__init__.py
iorodeo/mct
fa8b85f36533c9b1486ca4f6b0c40c3daa6f4e11
[ "Apache-2.0" ]
null
null
null
mct_camera_tools/src/mct_camera_tools/__init__.py
iorodeo/mct
fa8b85f36533c9b1486ca4f6b0c40c3daa6f4e11
[ "Apache-2.0" ]
null
null
null
import mjpeg_servers import camera_inspector_master import camera1394_inspector import camera_master import image_proc_master
21
30
0.920635
17
126
6.411765
0.529412
0.220183
0
0
0
0
0
0
0
0
0
0.034483
0.079365
126
5
31
25.2
0.905172
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
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
0
1
0
1
0
0
0
0
5
df25a7bd5154aa6d0a938dcd3d2b87a06d8f27ad
222
py
Python
samples/populations/test_seed.py
jproudlo/PyModel
2ab0e2cf821807206725adaa425409b0c28929b7
[ "BSD-3-Clause" ]
61
2015-01-29T16:18:51.000Z
2021-09-28T10:14:02.000Z
samples/populations/test_seed.py
vikstr/PyModel
4fff616fe0fd8342c91a42d9db5d4097a179dff8
[ "BSD-3-Clause" ]
2
2015-02-04T11:57:53.000Z
2021-07-18T20:59:55.000Z
samples/populations/test_seed.py
vikstr/PyModel
4fff616fe0fd8342c91a42d9db5d4097a179dff8
[ "BSD-3-Clause" ]
34
2015-02-04T12:00:29.000Z
2022-03-14T07:41:25.000Z
cases = [ ('pmt -s 1 -n 20 populations, use seed so same run each time', 'pmt -s 1 -n 20 populations'), ('pmt -s 2 -n 6 populations, use seed so same run each time', 'pmt -s 2 -n 6 -r 3 populations') ]
27.75
66
0.581081
41
222
3.146341
0.439024
0.124031
0.077519
0.093023
0.860465
0.782946
0.604651
0.604651
0.604651
0.604651
0
0.06962
0.288288
222
7
67
31.714286
0.746835
0
0
0
0
0
0.77027
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
0
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
df298f91625a893a8acd5d5ffddbd01917ad255d
5,568
py
Python
feature-importance/testdata/elec_tiny_sheer.py
oushu1zhangxiangxuan1/feature-engineering
d36f75342d922bd619b0290893ec37c5398b3b29
[ "Apache-2.0" ]
null
null
null
feature-importance/testdata/elec_tiny_sheer.py
oushu1zhangxiangxuan1/feature-engineering
d36f75342d922bd619b0290893ec37c5398b3b29
[ "Apache-2.0" ]
null
null
null
feature-importance/testdata/elec_tiny_sheer.py
oushu1zhangxiangxuan1/feature-engineering
d36f75342d922bd619b0290893ec37c5398b3b29
[ "Apache-2.0" ]
null
null
null
{ "hawq": { "master": "localhost", "standby": "", "port": 5432, "user": "johnsaxon", "password": "test", "database": "postgres" }, "data_config": { "schema": "public", "table": "elec_tiny", "features": [ { "name": "id", "type": "categorical", "cates": [ "2019-01-20", "2019-03-01", "2019-04-20", "2018-09-10", "2018-12-01", "2019-01-01", "2019-02-20", "2019-04-10", "2018-09-20", "2018-10-01", "2019-02-01", "2018-10-20", "2018-11-10", "2018-12-10", "2018-12-20", "2019-01-10", "2019-03-10", "2019-04-01", "2018-10-10", "2018-11-01", "2018-11-20", "2019-02-10", "2019-03-20", "2018-09-01" ] }, { "name": "stat_date", "type": "n", "cates": [] }, { "name": "meter_id", "type": "n", "cates": [] }, { "name": "energy_mean", "type": "n", "cates": [] }, { "name": "energy_max", "type": "n", "cates": [] }, { "name": "energy_min", "type": "n", "cates": [] }, { "name": "energy_sum", "type": "n", "cates": [] }, { "name": "energy_std", "type": "n", "cates": [] }, { "name": "power_mean", "type": "n", "cates": [] }, { "name": "power_max", "type": "n", "cates": [] }, { "name": "power_min", "type": "n", "cates": [] }, { "name": "power_std", "type": "n", "cates": [] }, { "name": "cur_mean", "type": "n", "cates": [] }, { "name": "cur_max", "type": "n", "cates": [] }, { "name": "cur_min", "type": "n", "cates": [] }, { "name": "cur_std", "type": "n", "cates": [] }, { "name": "vol_mean", "type": "n", "cates": [] }, { "name": "vol_max", "type": "n", "cates": [] }, { "name": "vol_min", "type": "n", "cates": [] }, { "name": "vol_std", "type": "n", "cates": [] }, { "name": "x", "type": "n", "cates": [] }, { "name": "avg_h8", "type": "n", "cates": [] }, { "name": "avg_t_8", "type": "n", "cates": [] }, { "name": "avg_ws_h", "type": "n", "cates": [] }, { "name": "avg_wd_h", "type": "n", "cates": [] }, { "name": "max_h8", "type": "n", "cates": [] }, { "name": "max_t_8", "type": "n", "cates": [] }, { "name": "max_ws_h", "type": "n", "cates": [] }, { "name": "min_h8", "type": "n", "cates": [] }, { "name": "min_t_8", "type": "n", "cates": [] }, { "name": "min_ws_h", "type": "n", "cates": [] }, { "name": "avg_irradiance", "type": "n", "cates": [] }, { "name": "max_irradiance", "type": "n", "cates": [] }, { "name": "min_irradiance", "type": "n", "cates": [] } ], "label": { "name": "load", "type": "n", "cates": [] } }, "task": { "type": 1, "algorithm": 1, "warm_start": false, "estimators": 3, "incre": 1, "batch": 1000 } }
24.857143
41
0.208333
321
5,568
3.482866
0.221184
0.152057
0.304114
0.400716
0.573345
0.093918
0.035778
0
0
0
0
0.101302
0.627694
5,568
224
42
24.857143
0.438013
0
0
0.303571
0
0
0.213862
0
0
0
0
0
0
1
0
true
0.004464
0
0
0
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
df881dd6578461aee3a9f56d1f264f8ae3ff390e
124
py
Python
Solutions/beta/beta_1rm_calculator.py
citrok25/Codewars-1
dc641c5079e2e8b5955eb027fd15427e5bdb2e26
[ "MIT" ]
46
2017-08-24T09:27:57.000Z
2022-02-25T02:24:33.000Z
Solutions/beta/beta_1rm_calculator.py
abbhishek971/Codewars
9e761811db724da1e8aae44594df42b4ee879a16
[ "MIT" ]
null
null
null
Solutions/beta/beta_1rm_calculator.py
abbhishek971/Codewars
9e761811db724da1e8aae44594df42b4ee879a16
[ "MIT" ]
35
2017-08-01T22:09:48.000Z
2022-02-18T17:21:37.000Z
def calculate_1RM(w, r): return {0:None,1:w}.get(r, max(map(round,(w*(1+r/30),100*w/(101.3-2.67123*r), w*pow(r,0.1)))))
41.333333
98
0.58871
31
124
2.322581
0.645161
0
0
0
0
0
0
0
0
0
0
0.185841
0.08871
124
2
99
62
0.451327
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
0
0
0
null
0
0
0
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
1
0
0
0
1
1
0
0
5
10d7612ae005cab08d9383db571c7adef6b56a7b
14,977
py
Python
tests/cataloging/test_objects.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
2
2018-02-23T12:16:11.000Z
2020-10-08T17:54:24.000Z
tests/cataloging/test_objects.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
87
2017-04-21T18:57:15.000Z
2021-12-13T19:43:57.000Z
tests/cataloging/test_objects.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
1
2018-03-01T16:44:25.000Z
2018-03-01T16:44:25.000Z
"""Unit tests of cataloging objects.""" import pytest from ..utilities.general import is_never_authz, is_no_authz, uses_cataloging, uses_filesystem_only from dlkit.abstract_osid.osid import errors from dlkit.abstract_osid.osid.objects import OsidCatalog from dlkit.primordium.type.primitives import Type from dlkit.runtime import PROXY_SESSION, proxy_example from dlkit.runtime.managers import Runtime REQUEST = proxy_example.SimpleRequest() CONDITION = PROXY_SESSION.get_proxy_condition() CONDITION.set_http_request(REQUEST) PROXY = PROXY_SESSION.get_proxy(CONDITION) DEFAULT_TYPE = Type(**{'identifier': 'DEFAULT', 'namespace': 'DEFAULT', 'authority': 'DEFAULT'}) @pytest.fixture(scope="class", params=['TEST_SERVICE', 'TEST_SERVICE_ALWAYS_AUTHZ', 'TEST_SERVICE_NEVER_AUTHZ', 'TEST_SERVICE_CATALOGING', 'TEST_SERVICE_FILESYSTEM', 'TEST_SERVICE_MEMCACHE']) def catalog_class_fixture(request): # From test_templates/resource.py::Bin::init_template request.cls.service_config = request.param request.cls.svc_mgr = Runtime().get_service_manager( 'CATALOGING', proxy=PROXY, implementation=request.cls.service_config) def class_tear_down(): pass request.addfinalizer(class_tear_down) @pytest.fixture(scope="function") def catalog_test_fixture(request): # From test_templates/resource.py::Bin::init_template if not is_never_authz(request.cls.service_config): form = request.cls.svc_mgr.get_catalog_form_for_create([]) form.display_name = 'for testing' request.cls.object = request.cls.svc_mgr.create_catalog(form) def test_tear_down(): if not is_never_authz(request.cls.service_config): request.cls.svc_mgr.delete_catalog(request.cls.object.ident) request.addfinalizer(test_tear_down) @pytest.mark.usefixtures("catalog_class_fixture", "catalog_test_fixture") class TestCatalog(object): """Tests for Catalog""" def test_get_catalog_record(self): """Tests get_catalog_record""" if is_never_authz(self.service_config): pass # no object to call the method on? elif uses_cataloging(self.service_config): pass # cannot call the _get_record() methods on catalogs else: with pytest.raises(errors.Unimplemented): self.object.get_catalog_record(True) @pytest.fixture(scope="class", params=['TEST_SERVICE', 'TEST_SERVICE_ALWAYS_AUTHZ', 'TEST_SERVICE_NEVER_AUTHZ', 'TEST_SERVICE_CATALOGING', 'TEST_SERVICE_FILESYSTEM', 'TEST_SERVICE_MEMCACHE']) def catalog_form_class_fixture(request): # From test_templates/resource.py::BinForm::init_template request.cls.service_config = request.param request.cls.svc_mgr = Runtime().get_service_manager( 'CATALOGING', proxy=PROXY, implementation=request.cls.service_config) def class_tear_down(): pass request.addfinalizer(class_tear_down) @pytest.fixture(scope="function") def catalog_form_test_fixture(request): # From test_templates/resource.py::BinForm::init_template if not is_never_authz(request.cls.service_config): request.cls.object = request.cls.svc_mgr.get_catalog_form_for_create([]) def test_tear_down(): pass request.addfinalizer(test_tear_down) @pytest.mark.usefixtures("catalog_form_class_fixture", "catalog_form_test_fixture") class TestCatalogForm(object): """Tests for CatalogForm""" def test_get_catalog_form_record(self): """Tests get_catalog_form_record""" if is_never_authz(self.service_config): pass # no object to call the method on? elif uses_cataloging(self.service_config): pass # cannot call the _get_record() methods on catalogs else: with pytest.raises(errors.Unimplemented): self.object.get_catalog_form_record(True) @pytest.fixture(scope="class", params=['TEST_SERVICE', 'TEST_SERVICE_ALWAYS_AUTHZ', 'TEST_SERVICE_NEVER_AUTHZ', 'TEST_SERVICE_CATALOGING', 'TEST_SERVICE_FILESYSTEM', 'TEST_SERVICE_MEMCACHE']) def catalog_list_class_fixture(request): # Implemented from init template for BinList request.cls.service_config = request.param request.cls.svc_mgr = Runtime().get_service_manager( 'CATALOGING', proxy=PROXY, implementation=request.cls.service_config) if not is_never_authz(request.cls.service_config): create_form = request.cls.svc_mgr.get_catalog_form_for_create([]) create_form.display_name = 'Test Catalog' create_form.description = 'Test Catalog for CatalogList tests' request.cls.catalog = request.cls.svc_mgr.create_catalog(create_form) request.cls.catalog_ids = list() def class_tear_down(): if not is_never_authz(request.cls.service_config): for obj in request.cls.catalog_ids: request.cls.svc_mgr.delete_catalog(obj) request.cls.svc_mgr.delete_catalog(request.cls.catalog.ident) request.addfinalizer(class_tear_down) @pytest.fixture(scope="function") def catalog_list_test_fixture(request): # Implemented from init template for BinList from dlkit.json_.cataloging.objects import CatalogList request.cls.catalog_list = list() if not is_never_authz(request.cls.service_config): for num in [0, 1]: create_form = request.cls.svc_mgr.get_catalog_form_for_create([]) create_form.display_name = 'Test Catalog ' + str(num) create_form.description = 'Test Catalog for CatalogList tests' obj = request.cls.svc_mgr.create_catalog(create_form) request.cls.catalog_list.append(obj) request.cls.catalog_ids.append(obj.ident) request.cls.catalog_list = CatalogList(request.cls.catalog_list) @pytest.mark.usefixtures("catalog_list_class_fixture", "catalog_list_test_fixture") class TestCatalogList(object): """Tests for CatalogList""" def test_get_next_catalog(self): """Tests get_next_catalog""" # From test_templates/resource.py::ResourceList::get_next_resource_template from dlkit.abstract_osid.cataloging.objects import Catalog if not is_never_authz(self.service_config): assert isinstance(self.catalog_list.get_next_catalog(), Catalog) def test_get_next_catalogs(self): """Tests get_next_catalogs""" # From test_templates/resource.py::ResourceList::get_next_resources_template from dlkit.abstract_osid.cataloging.objects import CatalogList, Catalog if not is_never_authz(self.service_config): new_list = self.catalog_list.get_next_catalogs(2) assert isinstance(new_list, CatalogList) for item in new_list: assert isinstance(item, Catalog) @pytest.fixture(scope="class", params=['TEST_SERVICE', 'TEST_SERVICE_ALWAYS_AUTHZ', 'TEST_SERVICE_NEVER_AUTHZ', 'TEST_SERVICE_CATALOGING', 'TEST_SERVICE_FILESYSTEM', 'TEST_SERVICE_MEMCACHE']) def catalog_node_class_fixture(request): # Implemented from init template for BinNode request.cls.service_config = request.param request.cls.svc_mgr = Runtime().get_service_manager( 'CATALOGING', proxy=PROXY, implementation=request.cls.service_config) if not is_never_authz(request.cls.service_config): create_form = request.cls.svc_mgr.get_catalog_form_for_create([]) create_form.display_name = 'Test Catalog' create_form.description = 'Test Catalog for CatalogNode tests' request.cls.catalog = request.cls.svc_mgr.create_catalog(create_form) request.cls.catalog_ids = list() def class_tear_down(): if not is_never_authz(request.cls.service_config): request.cls.svc_mgr.delete_catalog(request.cls.catalog.ident) request.addfinalizer(class_tear_down) @pytest.fixture(scope="function") def catalog_node_test_fixture(request): # Implemented from init template for BinNode from dlkit.json_.cataloging.objects import CatalogNode request.cls.catalog_list = list() if not is_never_authz(request.cls.service_config): for num in [0, 1]: create_form = request.cls.svc_mgr.get_catalog_form_for_create([]) create_form.display_name = 'Test Catalog ' + str(num) create_form.description = 'Test Catalog for CatalogNode tests' obj = request.cls.svc_mgr.create_catalog(create_form) request.cls.catalog_list.append(CatalogNode( obj.object_map, runtime=request.cls.svc_mgr._runtime, proxy=request.cls.svc_mgr._proxy)) request.cls.catalog_ids.append(obj.ident) # Not put the catalogs in a hierarchy request.cls.svc_mgr.add_root_catalog(request.cls.catalog_list[0].ident) request.cls.svc_mgr.add_child_catalog( request.cls.catalog_list[0].ident, request.cls.catalog_list[1].ident) request.cls.object = request.cls.svc_mgr.get_catalog_nodes( request.cls.catalog_list[0].ident, 0, 5, False) def test_tear_down(): if not is_never_authz(request.cls.service_config): request.cls.svc_mgr.remove_child_catalog( request.cls.catalog_list[0].ident, request.cls.catalog_list[1].ident) request.cls.svc_mgr.remove_root_catalog(request.cls.catalog_list[0].ident) for node in request.cls.catalog_list: request.cls.svc_mgr.delete_catalog(node.ident) request.addfinalizer(test_tear_down) @pytest.mark.usefixtures("catalog_node_class_fixture", "catalog_node_test_fixture") class TestCatalogNode(object): """Tests for CatalogNode""" def test_get_catalog(self): """Tests get_catalog""" # from test_templates/resource.py::BinNode::get_bin_template from dlkit.abstract_osid.cataloging.objects import Catalog if not is_never_authz(self.service_config): assert isinstance(self.catalog_list[0].get_catalog(), OsidCatalog) assert str(self.catalog_list[0].get_catalog().ident) == str(self.catalog_list[0].ident) def test_get_parent_catalog_nodes(self): """Tests get_parent_catalog_nodes""" # from test_templates/resource.py::BinNode::get_parent_bin_nodes from dlkit.abstract_osid.cataloging.objects import CatalogNodeList if not is_never_authz(self.service_config): node = self.svc_mgr.get_catalog_nodes( self.catalog_list[1].ident, 1, 0, False) assert isinstance(node.get_parent_catalog_nodes(), CatalogNodeList) assert node.get_parent_catalog_nodes().available() == 1 assert str(node.get_parent_catalog_nodes().next().ident) == str(self.catalog_list[0].ident) def test_get_child_catalog_nodes(self): """Tests get_child_catalog_nodes""" # from test_templates/resource.py::BinNode::get_child_bin_nodes_template from dlkit.abstract_osid.cataloging.objects import CatalogNodeList if not is_never_authz(self.service_config): node = self.svc_mgr.get_catalog_nodes( self.catalog_list[0].ident, 0, 1, False) assert isinstance(node.get_child_catalog_nodes(), CatalogNodeList) assert node.get_child_catalog_nodes().available() == 1 assert str(node.get_child_catalog_nodes().next().ident) == str(self.catalog_list[1].ident) @pytest.fixture(scope="class", params=['TEST_SERVICE', 'TEST_SERVICE_ALWAYS_AUTHZ', 'TEST_SERVICE_NEVER_AUTHZ', 'TEST_SERVICE_CATALOGING', 'TEST_SERVICE_FILESYSTEM', 'TEST_SERVICE_MEMCACHE']) def catalog_node_list_class_fixture(request): # Implemented from init template for BinNodeList request.cls.service_config = request.param request.cls.svc_mgr = Runtime().get_service_manager( 'CATALOGING', proxy=PROXY, implementation=request.cls.service_config) if not is_never_authz(request.cls.service_config): create_form = request.cls.svc_mgr.get_catalog_form_for_create([]) create_form.display_name = 'Test Catalog' create_form.description = 'Test Catalog for CatalogNodeList tests' request.cls.catalog = request.cls.svc_mgr.create_catalog(create_form) request.cls.catalog_node_ids = list() def class_tear_down(): if not is_never_authz(request.cls.service_config): for obj in request.cls.catalog_node_ids: request.cls.svc_mgr.delete_catalog(obj) request.cls.svc_mgr.delete_catalog(request.cls.catalog.ident) @pytest.fixture(scope="function") def catalog_node_list_test_fixture(request): # Implemented from init template for BinNodeList from dlkit.json_.cataloging.objects import CatalogNodeList, CatalogNode request.cls.catalog_node_list = list() if not is_never_authz(request.cls.service_config): for num in [0, 1]: create_form = request.cls.svc_mgr.get_catalog_form_for_create([]) create_form.display_name = 'Test CatalogNode ' + str(num) create_form.description = 'Test CatalogNode for CatalogNodeList tests' obj = request.cls.svc_mgr.create_catalog(create_form) request.cls.catalog_node_list.append(CatalogNode(obj.object_map)) request.cls.catalog_node_ids.append(obj.ident) # Not put the catalogs in a hierarchy request.cls.svc_mgr.add_root_catalog(request.cls.catalog_node_list[0].ident) request.cls.svc_mgr.add_child_catalog( request.cls.catalog_node_list[0].ident, request.cls.catalog_node_list[1].ident) request.cls.catalog_node_list = CatalogNodeList(request.cls.catalog_node_list) @pytest.mark.usefixtures("catalog_node_list_class_fixture", "catalog_node_list_test_fixture") class TestCatalogNodeList(object): """Tests for CatalogNodeList""" def test_get_next_catalog_node(self): """Tests get_next_catalog_node""" # From test_templates/resource.py::ResourceList::get_next_resource_template from dlkit.abstract_osid.cataloging.objects import CatalogNode if not is_never_authz(self.service_config): assert isinstance(self.catalog_node_list.get_next_catalog_node(), CatalogNode) def test_get_next_catalog_nodes(self): """Tests get_next_catalog_nodes""" # From test_templates/resource.py::ResourceList::get_next_resources_template from dlkit.abstract_osid.cataloging.objects import CatalogNodeList, CatalogNode if not is_never_authz(self.service_config): new_list = self.catalog_node_list.get_next_catalog_nodes(2) assert isinstance(new_list, CatalogNodeList) for item in new_list: assert isinstance(item, CatalogNode)
44.707463
176
0.712025
1,906
14,977
5.281217
0.075551
0.097357
0.046493
0.057222
0.871746
0.788993
0.745281
0.723425
0.67872
0.629446
0
0.002729
0.192495
14,977
334
177
44.841317
0.829585
0.106363
0
0.596708
0
0
0.10274
0.061343
0
0
0
0
0.057613
1
0.111111
false
0.028807
0.069959
0
0.201646
0
0
0
0
null
0
0
0
1
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
0
0
0
0
0
0
0
0
5
10ed7f4ba07829af5609e7cab6ec994b7dc9556e
4,464
py
Python
Financial/Commodities_API/unit_tests.py
Jay4C/API
64b691bcf929ceb142145c6bbe27a049a76d7649
[ "MIT" ]
1
2022-02-28T05:05:35.000Z
2022-02-28T05:05:35.000Z
Financial/Commodities_API/unit_tests.py
Jay4C/API
64b691bcf929ceb142145c6bbe27a049a76d7649
[ "MIT" ]
null
null
null
Financial/Commodities_API/unit_tests.py
Jay4C/API
64b691bcf929ceb142145c6bbe27a049a76d7649
[ "MIT" ]
null
null
null
import unittest import requests # https://commodities-api.com/documentation endpoint = "https://commodities-api.com/api" class UnitTestsCommodityAPIEndpoints(unittest.TestCase): def test_get_Supported_Symbols_Endpoint(self): print("test_get_Supported_Symbols_Endpoint") headers = { 'accept': 'application/json', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103' } url = endpoint + "/symbols" params = { ('access_key', 'API_KEY') } r = requests.get(url, params=params, headers=headers) print(r.text) def test_Latest_Rates_Endpoint(self): print("test_Latest_Rates_Endpoint") headers = { 'accept': 'application/json', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103' } url = endpoint + "/latest" params = { ('access_key', 'API_KEY'), ('base', 'USD'), ('symbols', 'GBP,JPY,EUR') } r = requests.get(url, params=params, headers=headers) print(r.text) def test_Historical_Rates_Endpoint(self): print("test_Historical_Rates_Endpoint") headers = { 'accept': 'application/json', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103' } url = endpoint + "/2013-12-24" params = { ('access_key', 'API_KEY'), ('base', 'USD'), ('symbols', 'GBP,JPY,EUR') } r = requests.get(url, params=params, headers=headers) print(r.text) def test_Specify_Symbols(self): print("test_Specify_Symbols") headers = { 'accept': 'application/json', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103' } url = endpoint + "/latest" params = { ('access_key', 'API_KEY'), ('symbols', 'USD,CAD,JPY') } r = requests.get(url, params=params, headers=headers) print(r.text) def test_Changing_base_currency(self): print("test_Changing_base_currency") headers = { 'accept': 'application/json', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103' } url = endpoint + "/latest" params = { ('access_key', 'API_KEY'), ('base', 'USD') } r = requests.get(url, params=params, headers=headers) print(r.text) def test_Convert_Endpoint(self): print("test_Convert_Endpoint") headers = { 'accept': 'application/json', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103' } url = endpoint + "/convert" params = { ('access_key', 'API_KEY'), ('from', 'GBP'), ('to', 'JPY'), ('amount', '25') } r = requests.get(url, params=params, headers=headers) print(r.text) def test_Time_Series_Endpoint(self): print("test_Time_Series_Endpoint") headers = { 'accept': 'application/json', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103' } url = endpoint + "/timeseries" params = { ('access_key', 'API_KEY'), ('start_date', '2012-05-01'), ('end_date', '2012-05-25') } r = requests.get(url, params=params, headers=headers) print(r.text) def test_Fluctuation_Endpoint(self): print("test_Fluctuation_Endpoint") headers = { 'accept': 'application/json', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103' } url = endpoint + "/fluctuation" params = { ('access_key', 'API_KEY'), ('start_date', '2012-05-01'), ('end_date', '2012-05-25') } r = requests.get(url, params=params, headers=headers) print(r.text) if __name__ == '__main__': unittest.main()
26.258824
119
0.545923
498
4,464
4.732932
0.162651
0.023759
0.044124
0.095036
0.786593
0.723801
0.723801
0.723801
0.723801
0.723801
0
0.073163
0.30802
4,464
169
120
26.414201
0.689867
0.009185
0
0.573913
0
0.069565
0.364171
0.042751
0
0
0
0
0
1
0.069565
false
0
0.017391
0
0.095652
0.13913
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
80031e33127663224f8b5b1b5e1c7480da6a7bdf
15,341
py
Python
sas7bdat_converter/converter.py
sourcery-ai-bot/sas7bdat_converter
dbb39619f5700dd746fe80a56a550a4559a3d9df
[ "Apache-2.0" ]
null
null
null
sas7bdat_converter/converter.py
sourcery-ai-bot/sas7bdat_converter
dbb39619f5700dd746fe80a56a550a4559a3d9df
[ "Apache-2.0" ]
null
null
null
sas7bdat_converter/converter.py
sourcery-ai-bot/sas7bdat_converter
dbb39619f5700dd746fe80a56a550a4559a3d9df
[ "Apache-2.0" ]
null
null
null
import csv import json import numpy as np import pandas as pd from pathlib import Path from typing import Dict, List, Optional, Tuple from xml.sax.saxutils import escape __file_dict_required_keys = ['sas7bdat_file', 'export_file',] def batch_to_csv(file_dicts: List[Dict[str, str]]) -> None: """ Converts a batch of sas7bdat files to csv files. Args: file_dicts: A list dictionaries containing the files to convert. The dictionary should contain the keys 'sas7bdat_file' (containing the path and name to the sas7bdat file) and 'export_file' containing the path and name of the export csv). Example: file_dict = [{'sas7bdat_file': 'sas_file1.sas7bdat', 'export_file': 'converted_file1.csv'}, {'sas7bdat_file': 'sas_file2.sas7bdat', 'export_file': 'converted_file2.csv'}] """ for file_dict in file_dicts: if len(set(file_dict).intersection(__file_dict_required_keys)) != len(__file_dict_required_keys): message = _invalid_key_exception_message(required_keys=__file_dict_required_keys) raise KeyError(message) sas7bdat = file_dict['sas7bdat_file'] export = file_dict['export_file'] to_csv(sas7bdat_file=sas7bdat, export_file=export) def batch_to_excel(file_dicts: List[Dict[str, str]]) -> None: """ Converts a batch of sas7bdat files to xlsx files. Args: file_dicts: A list of dictionaries containing the files to convert. The dictionary should contain the keys 'sas7bdat_file' (containing the path and name to the sas7bdat file) and 'export_file' containing the path and name of the export xlsx). Example: file_dict = [{'sas7bdat_file': 'sas_file1.sas7bdat', 'export_file': 'converted_file1.xlsx'}, {'sas7bdat_file': 'sas_file2.sas7bdat', 'export_file': 'converted_file2.xlxs'}] """ for file_dict in file_dicts: if len(set(file_dict).intersection(__file_dict_required_keys)) != len(__file_dict_required_keys): message = _invalid_key_exception_message(required_keys=__file_dict_required_keys) raise KeyError(message) sas7bdat = file_dict['sas7bdat_file'] export = file_dict['export_file'] to_excel(sas7bdat_file=sas7bdat, export_file=export) def batch_to_json(file_dicts: List[Dict[str, str]]) -> None: """ Converts a batch of sas7bdat files to json files. Args: file_dicts: A list dictionaries containing the files to convert. The dictionary should contain the keys 'sas7bdat_file' (containing the path and name to the sas7bdat file) and 'export_file' containing the path and name of the export json). Example: file_dict = [{'sas7bdat_file': 'sas_file1.sas7bdat', 'export_file': 'converted_file1.json'}, {'sas7bdat_file': 'sas_file2.sas7bdat', 'export_file': 'converted_file2.json'}] """ for file_dict in file_dicts: if len(set(file_dict).intersection(__file_dict_required_keys)) != len(__file_dict_required_keys): message = _invalid_key_exception_message(required_keys=__file_dict_required_keys) raise KeyError(message) sas7bdat = file_dict['sas7bdat_file'] export = file_dict['export_file'] to_json(sas7bdat_file=sas7bdat, export_file=export) def batch_to_xml(file_dicts: List[Dict[str, str]]) -> None: """ Converts a batch of sas7bdat files to xml files. Args: file_dicts: A list dictionaries containing the files to convert. The dictionary should contain the keys 'sas7bdat_file' (containing the path and name to the sas7bdat file) and 'export_file' containing the path and name of the export xml). Optinallly the dictionary can also contain 'root_node' (containing the name for the root node in the xml file, and 'first_node' (containing the name for the first node in the xml file). Examples: file_dict = [{'sas7bdat_file': 'sas_file1.sas7bdat', 'export_file': 'converted_file1.xlsx'}, {'sas7bdat_file': 'sas_file2.sas7bdat', 'export_file': 'converted_file2.xlxs'}] file_dict = [{'sas7bdat_file': 'sas_file1.sas7bdat', 'export_file': 'converted_file1.xml', 'root_node': 'my_root', 'first_node': 'my_first'}, {'sas7bdat_file': 'sas_file2.sas7bdat', 'export_file': 'converted_file2.xml', 'root_node': 'another_root', 'first_node': 'another_first'}] """ optional_keys = ['root_node', 'first_node',] for file_dict in file_dicts: error = False if (len(set(file_dict).intersection(__file_dict_required_keys)) != len(__file_dict_required_keys) or len(set(file_dict).intersection(__file_dict_required_keys)) > len(__file_dict_required_keys) + len(optional_keys)): error = True elif len(set(file_dict).intersection(optional_keys)) != len(file_dict) - len(__file_dict_required_keys): error = True if error: message = _invalid_key_exception_message(required_keys=__file_dict_required_keys, optional_keys=optional_keys) raise KeyError(message) sas7bdat = file_dict['sas7bdat_file'] export = file_dict['export_file'] root_node = None first_node = None if 'root_node' in file_dict: root_node = file_dict['root_node'] if 'first_node' in file_dict: first_node = file_dict['first_node'] if root_node and first_node: to_xml(sas7bdat_file=sas7bdat, export_file=export, root_node=root_node, first_node=first_node) elif root_node: to_xml(sas7bdat_file=sas7bdat, export_file=export, root_node=root_node) elif first_node: to_xml(sas7bdat_file=sas7bdat, export_file=export, first_node=first_node) else: to_xml(sas7bdat_file=sas7bdat, export_file=export) def dir_to_csv(dir_path: str, export_path: Optional[str]=None) -> None: """ Converts all sas7bdat files in a directory into csv files. args: dir_path: The pah to the directory that contains the sas7bdat files for conversion. export_path (optional): If used this can specify a new directory to create the converted files into. If not supplied then the files will be created into the same directory as dir_path. """ for file_name in Path(dir_path).iterdir(): if file_name.suffix == '.sas7bdat': export_file = Path(f'{file_name.stem}.csv') if export_path: export_file = Path(export_path).joinpath(export_file) else: export_file = Path(dir_path).joinpath(export_file) sas7bdat_file = Path(dir_path).joinpath(file_name) to_csv(str(sas7bdat_file), str(export_file)) def dir_to_excel(dir_path: str, export_path: Optional[str]=None) -> None: """ Converts all sas7bdat files in a directory into xlsx files. args: dir_path: The path to the directory that contains the sas7bdat files for conversion. export_path (optional): If used this can specify a new directory to create the converted files into. If not supplied then the files will be created into the same directory as dir_path. """ for file_name in Path(dir_path).iterdir(): if file_name.suffix == '.sas7bdat': export_file = Path(f'{file_name.stem}.xlsx') if export_path: export_file = Path(export_path).joinpath(export_file) else: export_file = Path(dir_path).joinpath(export_file) sas7bdat_file = Path(dir_path).joinpath(file_name) to_excel(str(sas7bdat_file), str(export_file)) def dir_to_json(dir_path: str, export_path: Optional[str]=None) -> None: """ Converts all sas7bdat files in a directory into json files. args: dir_path: The path to the directory that contains the sas7bdat files for conversion. export_path (optional): If used this can specify a new directory to create the converted files into. If not supplied then the files will be created into the same directory as dir_path. """ for file_name in Path(dir_path).iterdir(): if file_name.suffix == '.sas7bdat': export_file = Path(f'{file_name.stem}.json') if export_path: export_file = Path(export_path).joinpath(export_file) else: export_file = Path(dir_path).joinpath(export_file) sas7bdat_file = Path(dir_path).joinpath(file_name) to_json(str(sas7bdat_file), str(export_file)) def dir_to_xml(dir_path: str, export_path: Optional[str]=None) -> None: """ Converts all sas7bdat files in a directory into xml files. args: dir_path: The path to the directory that contains the sas7bdat files for conversion. export_path (optional): If used this can specify a new directory to create the converted files into. If not supplied then the files will be created into the same directory as dir_path. """ for file_name in Path(dir_path).iterdir(): if file_name.suffix == '.sas7bdat': export_file = Path(f'{file_name.stem}.xml') if export_path: export_file = Path(export_path).joinpath(export_file) else: export_file = Path(dir_path).joinpath(export_file) sas7bdat_file = Path(dir_path).joinpath(file_name) to_xml(str(sas7bdat_file), str(export_file)) def _file_extension_exception_message(conversion_type: str, valid_extensions: Tuple[str]) -> str: if len(valid_extensions) == 1: is_are = ('extension', 'is') else: is_are = ('extensions', 'are') extensions = ', '.join(valid_extensions) return f'sas7bdat conversion error - Valid {is_are[0]} for {conversion_type} conversion {is_are[1]}: {extensions}' def _invalid_key_exception_message(required_keys: List[str], optional_keys: Optional[List[str]]=None) -> str: required_keys_joined: str = ', '.join(required_keys) if optional_keys: optional_keys_joined: str = ', '.join(optional_keys) message = f'Invalid key provided, expected keys are: {required_keys_joined} and optional keys are: {optional_keys_joined}' else: message = f'Invalid key provided, expected keys are: {required_keys_joined}' return message def _is_valid_extension(valid_extensions: Tuple[str], file_extension: str) -> bool: return file_extension in valid_extensions def to_csv(sas7bdat_file: str, export_file: str) -> None: """ Converts a sas7bdat file into a csv file. args: sas7bdat_file: The name, including the path, for the sas7bdat file. export_file: The name, including the path, for the export file. """ valid_extensions = ('.csv',) file_extension = Path(export_file).suffix if not _is_valid_extension(valid_extensions, file_extension): error_message = _file_extension_exception_message('to_csv', valid_extensions) raise AttributeError(error_message) df = to_dataframe(sas7bdat_file) df.to_csv(export_file, quoting=csv.QUOTE_NONNUMERIC, index=False) def to_dataframe(sas7bdat_file: str) -> pd.DataFrame: """ Converts a sas7bdat file into a pandas dataframe. args: sas7bdat_file: The name, including the path, for the sas7bdat file. return: A pandas dataframe containing the data from the sas7bdat file. """ df = pd.read_sas(sas7bdat_file) # convert binary strings to utf-8 str_df = df.select_dtypes([np.object]) if len(str_df.columns) > 0: str_df = str_df.stack().str.decode('utf-8').unstack() for col in str_df: df[col] = str_df[col] # end conversion to utf-8 return df def to_excel(sas7bdat_file: str, export_file: str) -> None: """ Converts a sas7bdat file into a xlsx file. args: sas7bdat_file: The name, including the path, for the sas7bdat file. export_file: The name, including the path, for the export file. """ valid_extensions = ('.xlsx',) file_extension = Path(export_file).suffix if not _is_valid_extension(valid_extensions, file_extension): error_message = _file_extension_exception_message('to_excel', valid_extensions) raise AttributeError(error_message) df = to_dataframe(sas7bdat_file) df.to_excel(export_file, index=False) def to_json(sas7bdat_file: str, export_file: str) -> None: """ Converts a sas7bdat file into a json file. args: sas7bdat_file: The name, including the path, for the sas7bdat file. export_file: The name, including the path, for the export file. """ valid_extensions = ('.json',) file_extension = Path(export_file).suffix if not _is_valid_extension(valid_extensions, file_extension): error_message = _file_extension_exception_message('to_json', valid_extensions) raise AttributeError(error_message) df = to_dataframe(sas7bdat_file) df.to_json(export_file) def to_xml(sas7bdat_file: str, export_file: str, root_node: str='root', first_node: str='item') -> None: """ Converts a sas7bdat file into a xml file. args: sas7bdat_file: The name, including the path, for the sas7bdat file. export_file: The name, including the path, for the export file. root_node: The name to use for the root node in the xml file. first_node: The name to use for the fist node in the xml file. """ valid_extensions = ('.xml',) file_extension = Path(export_file).suffix if not _is_valid_extension(valid_extensions, file_extension): error_message = _file_extension_exception_message('to_xml', valid_extensions) raise AttributeError(error_message) df = to_dataframe(sas7bdat_file) def row_to_xml(row): xml = [f' <{first_node}>'] for i, col_name in enumerate(row.index): text = row.iloc[i] if isinstance(text, str): text = escape(text) xml.append(f' <{col_name}>{text}</{col_name}>') xml.append(' </{first_node}>') return '\n'.join(xml) res = f'<?xml version="1.0" encoding="UTF-8"?>\n<{root_node}>\n' res = res + f'\n'.join(df.apply(row_to_xml, axis=1)) + '\n</{root_node}>' with open(export_file, 'w') as f: f.write(res)
41.915301
131
0.638485
1,975
15,341
4.691139
0.082025
0.07987
0.040799
0.034539
0.777874
0.763411
0.743443
0.732434
0.722396
0.679007
0
0.011901
0.271495
15,341
365
132
42.030137
0.817108
0.381722
0
0.420118
0
0.005917
0.089451
0.019383
0
0
0
0
0
1
0.100592
false
0
0.04142
0.005917
0.171598
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
8016b85fdec6181adde6a48373cbbc0f7d8232d2
70
py
Python
python/word-count/rust/__init__.py
Coffeyliu/exercism
02354be676b17e94d820df92d5436373ca656bf8
[ "MIT" ]
null
null
null
python/word-count/rust/__init__.py
Coffeyliu/exercism
02354be676b17e94d820df92d5436373ca656bf8
[ "MIT" ]
null
null
null
python/word-count/rust/__init__.py
Coffeyliu/exercism
02354be676b17e94d820df92d5436373ca656bf8
[ "MIT" ]
null
null
null
from .rustpylib import rust_word_count __all__ = ["rust_word_count"]
17.5
38
0.8
10
70
4.8
0.7
0.333333
0.541667
0
0
0
0
0
0
0
0
0
0.114286
70
3
39
23.333333
0.774194
0
0
0
0
0
0.214286
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
801f5aaf61412c2a34e3c5f31aa0094ae6abcf15
140
py
Python
wagtail_graphql/tests/home/models.py
yatesrates/wagtail-graphql-api
8183c3c69340c9a48e2c352fc398e8bd255efa96
[ "BSD-3-Clause" ]
4
2019-07-19T21:17:02.000Z
2020-08-30T05:15:07.000Z
wagtail_graphql/tests/home/models.py
yatesrates/wagtail-graphql-api
8183c3c69340c9a48e2c352fc398e8bd255efa96
[ "BSD-3-Clause" ]
1
2019-11-06T03:44:42.000Z
2019-11-06T03:44:42.000Z
wagtail_graphql/tests/home/models.py
yatesrates/wagtail-graphql-api
8183c3c69340c9a48e2c352fc398e8bd255efa96
[ "BSD-3-Clause" ]
3
2019-07-19T21:17:06.000Z
2019-10-31T03:34:44.000Z
from wagtail.core.models import Page from wagtail_graphql import GraphQLEnabledModel class HomePage(GraphQLEnabledModel, Page): pass
17.5
47
0.821429
16
140
7.125
0.6875
0.192982
0
0
0
0
0
0
0
0
0
0
0.135714
140
7
48
20
0.942149
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.25
0.5
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
5
3387f38b4c7a6ecd693da6e5291eacaeff580e96
2,506
py
Python
significance.py
UKPLab/tacl2020-interactive-rankin
02c5ba56ff9dbd7962b3cdfe9c68b2208d1f852a
[ "Apache-2.0" ]
2
2021-02-10T13:51:36.000Z
2021-03-02T09:47:10.000Z
significance.py
UKPLab/tacl2020-interactive-rankin
02c5ba56ff9dbd7962b3cdfe9c68b2208d1f852a
[ "Apache-2.0" ]
null
null
null
significance.py
UKPLab/tacl2020-interactive-rankin
02c5ba56ff9dbd7962b3cdfe9c68b2208d1f852a
[ "Apache-2.0" ]
2
2021-03-10T22:08:22.000Z
2021-09-01T12:56:23.000Z
import json, numpy as np, pandas as pd, os from scipy.stats import wilcoxon topics = ['apple', 'cooking', 'travel'] metrics = ['ndcg_at_1%', 'accuracy'] for topic in topics: # baseline directory baseline = 'results_coala/lno3_lr_%s_rep0/' % topic # imp directory impdir = 'results_coala/lno03_gpplhh_%s_rep0/' % topic metrics_base = os.path.join(baseline, 'metrics_unc_LR_10.json') metrics_imp = os.path.join(impdir, 'metrics_imp_GPPLHH_10.json') with open (metrics_base, 'r') as fh: metrics_base = json.load(fh) with open (metrics_imp, 'r') as fh: metrics_imp = json.load(fh) for metric in metrics: mbase = metrics_base[metric] mimp = metrics_imp[metric] _, p = wilcoxon(mbase, mimp) print('For topic %s, %s %s significantly different with p = %f' % (topic, metric, 'is' if p<0.05 else 'ISNT', p)) ### store all results all_result_dic = {} topic_cnt = 0 datasets = ['duc01', 'duc02', 'duc04'] metrics = ['ndcg_at_1%', 'pcc'] for dataset in datasets: # baseline directory baseline = 'results/%s_lr_10inter_rep0/' % dataset # imp directory impdir = 'results/%s_gpplhh_10inter_rep0/' % dataset metrics_base = os.path.join(baseline, 'metrics_unc_LR_10.json') metrics_imp = os.path.join(impdir, 'metrics_imp_GPPLHH_10.json') with open (metrics_base, 'r') as fh: metrics_base = json.load(fh) with open (metrics_imp, 'r') as fh: metrics_imp = json.load(fh) for metric in metrics: mbase = metrics_base[metric] mimp = metrics_imp[metric] _, p = wilcoxon(mbase, mimp) print('For dataset %s, %s %s significantly different with p = %f' % (dataset, metric, 'is' if p<0.05 else 'ISNT', p)) for dataset in datasets: # baseline directory baseline = 'results/%s_lr_100inter_rep0/' % dataset # imp directory impdir = 'results/%s_gpplhh_100inter_rep0/' % dataset metrics_base = os.path.join(baseline, 'metrics_unc_LR.json') metrics_imp = os.path.join(impdir, 'metrics_imp_GPPLHH.json') with open (metrics_base, 'r') as fh: metrics_base = json.load(fh) with open (metrics_imp, 'r') as fh: metrics_imp = json.load(fh) for metric in metrics: mbase = metrics_base[metric] mimp = metrics_imp[metric] _, p = wilcoxon(mbase, mimp) print('For dataset %s, %s %s significantly different with p = %f' % (dataset, metric, 'is' if p<0.05 else 'ISNT', p))
28.477273
125
0.647247
356
2,506
4.359551
0.205056
0.096649
0.03866
0.046392
0.780284
0.780284
0.780284
0.780284
0.704897
0.690077
0
0.023196
0.225858
2,506
88
126
28.477273
0.776804
0.046289
0
0.64
0
0
0.242755
0.126837
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0.06
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
33a87f9a8f14bf6bb122ec4ec67d4c57cc7b0d7f
93
py
Python
rules-py/gutenbergorg.py
riffcc/lifesaver
f4c2afd8ebaae4bc541545eac34f6acc8449facc
[ "MIT" ]
null
null
null
rules-py/gutenbergorg.py
riffcc/lifesaver
f4c2afd8ebaae4bc541545eac34f6acc8449facc
[ "MIT" ]
null
null
null
rules-py/gutenbergorg.py
riffcc/lifesaver
f4c2afd8ebaae4bc541545eac34f6acc8449facc
[ "MIT" ]
null
null
null
#!/opt/homebrew/bin/python3 # Fetch from Gutenberg import sys def main(url): print(url)
13.285714
27
0.709677
14
93
4.714286
0.928571
0
0
0
0
0
0
0
0
0
0
0.012821
0.16129
93
6
28
15.5
0.833333
0.505376
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
0.666667
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
1d29adbda801b9fac30569647d29b391e076c98f
240
py
Python
mailmerge/exceptions.py
thunderbirdtr/mailmerge
a47465a78bbb089f3e2f135e7aecaf5e12259e56
[ "MIT" ]
94
2016-03-17T18:04:55.000Z
2022-03-16T02:59:51.000Z
mailmerge/exceptions.py
thunderbirdtr/mailmerge
a47465a78bbb089f3e2f135e7aecaf5e12259e56
[ "MIT" ]
116
2016-11-07T16:54:24.000Z
2022-01-24T15:14:43.000Z
mailmerge/exceptions.py
thunderbirdtr/mailmerge
a47465a78bbb089f3e2f135e7aecaf5e12259e56
[ "MIT" ]
41
2016-06-06T16:51:40.000Z
2021-12-30T09:57:33.000Z
"""Errors raised by mailmerge.""" class MailmergeError(Exception): """Top level exception raised by mailmerge functions.""" class MailmergeRateLimitError(MailmergeError): """Reuse to send message because rate limit exceeded."""
24
60
0.741667
25
240
7.12
0.76
0.089888
0.191011
0
0
0
0
0
0
0
0
0
0.145833
240
9
61
26.666667
0.868293
0.5375
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
1
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
0
0
1
0
0
5
1d319b64e9950442efc7ba26b93613d32e9d36eb
2,079
py
Python
tests/test_module.py
openprocurement/wishbone-galleon
ccec3856f0e474dbe2060029bd4db3e891fca854
[ "Apache-2.0" ]
null
null
null
tests/test_module.py
openprocurement/wishbone-galleon
ccec3856f0e474dbe2060029bd4db3e891fca854
[ "Apache-2.0" ]
1
2021-06-01T22:15:48.000Z
2021-06-01T22:15:48.000Z
tests/test_module.py
openprocurement/wishbone-galleon
ccec3856f0e474dbe2060029bd4db3e891fca854
[ "Apache-2.0" ]
null
null
null
import ujson from wishbone.event import Event from wishbone.actor import ActorConfig from wishbone.utils.test import getter from wishbonegalleon import GalleonModule SCHEMA = { "type": "object", "properties": { "name": {"type": "string"}, "title": {"type": "string"}, } } MAPPING = { "mapping": { "name": { "src": "name", }, "title": { "src": "data.title" } } } DATA = { "name": "test", "data": { "title": "testing" } } def test_module_galleon(): config = ActorConfig('galleon', 100, 1, {}, "") galleon = GalleonModule( config, schema=SCHEMA, mapping=MAPPING, processors=[] ) galleon.pool.queue.inbox.disableFallThrough() galleon.pool.queue.outbox.disableFallThrough() galleon.start() e = Event(DATA) galleon.pool.queue.inbox.put(e) one = getter(galleon.pool.queue.outbox).get() if one: one.pop("$schema", "") assert one == {"name": "test", "title": "testing"} def test_module_tag_ocds(): config = ActorConfig('galleon', 100, 1, {}, "") galleon = GalleonModule( config, schema=SCHEMA, mapping=MAPPING, processors=['ocds'], ) galleon.pool.queue.inbox.disableFallThrough() galleon.pool.queue.outbox.disableFallThrough() galleon.start() e = Event(DATA) galleon.pool.queue.inbox.put(e) one = getter(galleon.pool.queue.outbox).get() if one: one.pop("$schema", "") assert one == {"name": "test", "title": "testing", "tag": []} def test_module_hashid(): config = ActorConfig('galleon', 100, 1, {}, "") galleon = GalleonModule( config, schema=SCHEMA, mapping=MAPPING, processors=['hashid'], ) galleon.pool.queue.inbox.disableFallThrough() galleon.pool.queue.outbox.disableFallThrough() galleon.start() e = Event(DATA) galleon.pool.queue.inbox.put(e) one = getter(galleon.pool.queue.outbox).get() assert 'id' in one
21.214286
65
0.578644
212
2,079
5.641509
0.226415
0.110368
0.160535
0.105351
0.735786
0.704013
0.704013
0.704013
0.704013
0.704013
0
0.007807
0.260702
2,079
97
66
21.43299
0.770332
0
0
0.480519
0
0
0.095719
0
0
0
0
0
0.038961
1
0.038961
false
0
0.064935
0
0.103896
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
1d451928fa1f4177c1449c2b52d7be8be1e34c59
3,761
py
Python
webdriver/tests/bidi/log/entry_added/event_buffer.py
qanat/wpt
7c61a4594a95682531367b6956d1c37f8b8fd486
[ "BSD-3-Clause" ]
2
2022-02-19T19:13:05.000Z
2022-02-23T18:24:59.000Z
webdriver/tests/bidi/log/entry_added/event_buffer.py
qanat/wpt
7c61a4594a95682531367b6956d1c37f8b8fd486
[ "BSD-3-Clause" ]
112
2021-09-27T14:39:02.000Z
2022-03-30T14:26:35.000Z
webdriver/tests/bidi/log/entry_added/event_buffer.py
qanat/wpt
7c61a4594a95682531367b6956d1c37f8b8fd486
[ "BSD-3-Clause" ]
null
null
null
import asyncio import pytest from . import assert_base_entry, create_log @pytest.mark.asyncio @pytest.mark.parametrize("log_type", ["console_api_log", "javascript_error"]) async def test_console_log_cached_messages( bidi_session, current_session, wait_for_event, inline, log_type ): # Unsubscribe in case previous tests subscribed to log.entryAdded await bidi_session.session.unsubscribe(events=["log.entryAdded"]) # Refresh to make sure no events are cached for the current window global # from previous tests. current_session.refresh() # Log a message before subscribing expected_text = create_log(current_session, inline, log_type, "cached_message") # Track all received log.entryAdded events in the events array events = [] async def on_event(method, data): events.append(data) remove_listener = bidi_session.add_event_listener("log.entryAdded", on_event) # Subscribe on_entry_added = wait_for_event("log.entryAdded") await bidi_session.session.subscribe(events=["log.entryAdded"]) await on_entry_added assert len(events) == 1 # Check the log.entryAdded event received has the expected properties. assert_base_entry(events[0], text=expected_text) # Unsubscribe and re-subscribe await bidi_session.session.unsubscribe(events=["log.entryAdded"]) await bidi_session.session.subscribe(events=["log.entryAdded"]) # Wait for some time to catch all messages. await asyncio.sleep(0.5) # Check that the cached event was not re-emitted. assert len(events) == 1 on_entry_added = wait_for_event("log.entryAdded") expected_text = create_log(current_session, inline, log_type, "live_message") await on_entry_added # Check that we only received the live message. assert len(events) == 2 assert_base_entry(events[1], text=expected_text) # Unsubscribe, log a message and re-subscribe await bidi_session.session.unsubscribe(events=["log.entryAdded"]) expected_text = create_log(current_session, inline, log_type, "cached_message_2") on_entry_added = wait_for_event("log.entryAdded") await bidi_session.session.subscribe(events=["log.entryAdded"]) await on_entry_added # Check that only the newly cached event was emitted assert len(events) == 3 assert_base_entry(events[2], text=expected_text) remove_listener() @pytest.mark.asyncio @pytest.mark.parametrize("log_type", ["console_api_log", "javascript_error"]) async def test_console_log_cached_message_after_refresh( bidi_session, current_session, wait_for_event, inline, log_type ): # Unsubscribe in case previous tests subscribed to log.entryAdded await bidi_session.session.unsubscribe(events=["log.entryAdded"]) # Refresh to make sure no events are cached for the current window global # from previous tests. current_session.refresh() # Track all received log.entryAdded events in the events array events = [] async def on_event(method, data): events.append(data) remove_listener = bidi_session.add_event_listener("log.entryAdded", on_event) # Log a message, refresh, log another message and subscribe create_log(current_session, inline, log_type, "missed_message") current_session.refresh() expected_text = create_log(current_session, inline, log_type, "cached_message") on_entry_added = wait_for_event("log.entryAdded") await bidi_session.session.subscribe(events=["log.entryAdded"]) await on_entry_added # Wait for some time to catch all messages. asyncio.sleep(0.5) # Check that only the cached message was retrieved. assert len(events) == 1 assert_base_entry(events[0], text=expected_text) remove_listener()
34.190909
85
0.742356
511
3,761
5.234834
0.180039
0.092336
0.060561
0.068785
0.785421
0.768972
0.738692
0.725234
0.663178
0.663178
0
0.004477
0.168572
3,761
109
86
34.504587
0.850975
0.254454
0
0.758621
0
0
0.123608
0
0
0
0
0
0.172414
1
0
false
0
0.051724
0
0.051724
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
1da5d872815b84e8614959837939995f86b6e9cb
15,252
py
Python
tests/test_cli.py
mapbox/rio-mbtiles
f557854ac42f832e8436ac09582a20691bae90df
[ "MIT" ]
87
2015-05-08T12:26:15.000Z
2022-03-26T03:40:11.000Z
tests/test_cli.py
mapbox/rio-mbtiles
f557854ac42f832e8436ac09582a20691bae90df
[ "MIT" ]
62
2015-05-08T05:46:48.000Z
2022-03-20T06:14:35.000Z
tests/test_cli.py
mapbox/rio-mbtiles
f557854ac42f832e8436ac09582a20691bae90df
[ "MIT" ]
29
2015-06-03T20:47:30.000Z
2021-07-10T03:43:47.000Z
import os import sqlite3 import sys import warnings import click from click.testing import CliRunner import pytest import rasterio from rasterio.rio.main import main_group import mbtiles.scripts.cli from conftest import mock def test_cli_help(): runner = CliRunner() result = runner.invoke(main_group, ["mbtiles", "--help"]) assert result.exit_code == 0 assert "Export a dataset to MBTiles (version 1.3)" in result.output @pytest.mark.skipif("sys.version_info >= (3, 7)", reason="Test requires Python < 3.7") def test_dst_impl_validation(): """c.f. implementation requires Python >= 3.7""" runner = CliRunner() result = runner.invoke( main_group, ["mbtiles", "--implementation", "cf", "in.tif", "out.mbtiles"] ) assert result.exit_code == 2 @mock.patch("mbtiles.scripts.cli.rasterio") def test_dst_nodata_validation(rio): """--dst-nodata requires source nodata in some form""" rio.open.return_value.__enter__.return_value.profile.get.return_value = None runner = CliRunner() result = runner.invoke( main_group, ["mbtiles", "--dst-nodata", "0", "in.tif", "out.mbtiles"] ) assert result.exit_code == 2 @pytest.mark.parametrize("filename", ["RGB.byte.tif", "RGBA.byte.tif"]) def test_export_metadata(tmpdir, data, filename): inputfile = str(data.join(filename)) outputfile = str(tmpdir.join("export.mbtiles")) runner = CliRunner() result = runner.invoke(main_group, ["mbtiles", inputfile, outputfile]) assert result.exit_code == 0 conn = sqlite3.connect(outputfile) cur = conn.cursor() cur.execute("select * from metadata where name == 'name'") assert cur.fetchone()[1] == filename def test_export_overwrite(tmpdir, data): """Overwrites existing file""" inputfile = str(data.join("RGB.byte.tif")) output = tmpdir.join("export.mbtiles") output.write("lolwut") outputfile = str(output) runner = CliRunner() result = runner.invoke( main_group, ["mbtiles", "--overwrite", inputfile, outputfile] ) assert result.exit_code == 0 conn = sqlite3.connect(outputfile) cur = conn.cursor() cur.execute("select * from metadata where name == 'name'") assert cur.fetchone()[1] == "RGB.byte.tif" def test_export_metadata_output_opt(tmpdir, data): inputfile = str(data.join("RGB.byte.tif")) outputfile = str(tmpdir.join("export.mbtiles")) runner = CliRunner() result = runner.invoke(main_group, ["mbtiles", inputfile, "-o", outputfile]) assert result.exit_code == 0 conn = sqlite3.connect(outputfile) cur = conn.cursor() cur.execute("select * from metadata where name == 'name'") assert cur.fetchone()[1] == "RGB.byte.tif" def test_export_tiles(tmpdir, data): inputfile = str(data.join("RGB.byte.tif")) outputfile = str(tmpdir.join("export.mbtiles")) runner = CliRunner() result = runner.invoke(main_group, ["mbtiles", inputfile, outputfile]) assert result.exit_code == 0 conn = sqlite3.connect(outputfile) cur = conn.cursor() cur.execute("select * from tiles") assert len(cur.fetchall()) == 6 def test_export_zoom(tmpdir, data): inputfile = str(data.join("RGB.byte.tif")) outputfile = str(tmpdir.join("export.mbtiles")) runner = CliRunner() result = runner.invoke( main_group, ["mbtiles", inputfile, outputfile, "--zoom-levels", "6..7"] ) assert result.exit_code == 0 conn = sqlite3.connect(outputfile) cur = conn.cursor() cur.execute("select * from tiles") assert len(cur.fetchall()) == 6 def test_export_jobs(tmpdir, data): inputfile = str(data.join("RGB.byte.tif")) outputfile = str(tmpdir.join("export.mbtiles")) runner = CliRunner() result = runner.invoke(main_group, ["mbtiles", inputfile, outputfile, "-j", "4"]) assert result.exit_code == 0 conn = sqlite3.connect(outputfile) cur = conn.cursor() cur.execute("select * from tiles") assert len(cur.fetchall()) == 6 def test_export_src_nodata(tmpdir, data): inputfile = str(data.join("RGB.byte.tif")) outputfile = str(tmpdir.join("export.mbtiles")) runner = CliRunner() result = runner.invoke( main_group, ["mbtiles", inputfile, outputfile, "--src-nodata", "0", "--dst-nodata", "0"], ) assert result.exit_code == 0 conn = sqlite3.connect(outputfile) cur = conn.cursor() cur.execute("select * from tiles") assert len(cur.fetchall()) == 6 def test_export_dump(tmpdir, data): inputfile = str(data.join("RGB.byte.tif")) outputfile = str(tmpdir.join("export.mbtiles")) dumpdir = tmpdir.ensure("dump", dir=True) runner = CliRunner() result = runner.invoke( main_group, ["mbtiles", inputfile, outputfile, "--image-dump", str(dumpdir)] ) assert result.exit_code == 0 assert len(os.listdir(str(dumpdir))) == 6 @pytest.mark.parametrize("tile_size", [256, 512]) def test_export_tile_size(tmpdir, data, tile_size): inputfile = str(data.join("RGB.byte.tif")) outputfile = str(tmpdir.join("export.mbtiles")) dumpdir = tmpdir.ensure("dump", dir=True) runner = CliRunner() result = runner.invoke( main_group, [ "mbtiles", inputfile, outputfile, "--image-dump", str(dumpdir), "--tile-size", tile_size, ], ) dump_files = os.listdir(str(dumpdir)) assert result.exit_code == 0 warnings.simplefilter("ignore") with rasterio.open(os.path.join(str(dumpdir), dump_files[0]), "r") as src: assert src.shape == (tile_size, tile_size) warnings.resetwarnings() def test_export_bilinear(tmpdir, data): inputfile = str(data.join("RGB.byte.tif")) outputfile = str(tmpdir.join("export.mbtiles")) runner = CliRunner() result = runner.invoke( main_group, ["mbtiles", inputfile, outputfile, "--resampling", "bilinear"] ) assert result.exit_code == 0 conn = sqlite3.connect(outputfile) cur = conn.cursor() cur.execute("select * from tiles") assert len(cur.fetchall()) == 6 def test_skip_empty(tmpdir, empty_data): """This file has the same shape as RGB.byte.tif, but no data.""" inputfile = empty_data outputfile = str(tmpdir.join("export.mbtiles")) runner = CliRunner() result = runner.invoke(main_group, ["mbtiles", inputfile, outputfile]) assert result.exit_code == 0 conn = sqlite3.connect(outputfile) cur = conn.cursor() cur.execute("select * from tiles") assert len(cur.fetchall()) == 0 def test_include_empty(tmpdir, empty_data): """This file has the same shape as RGB.byte.tif, but no data.""" inputfile = empty_data outputfile = str(tmpdir.join("export.mbtiles")) runner = CliRunner() result = runner.invoke( main_group, ["mbtiles", "--include-empty-tiles", inputfile, outputfile] ) assert result.exit_code == 0 conn = sqlite3.connect(outputfile) cur = conn.cursor() cur.execute("select * from tiles") assert len(cur.fetchall()) == 6 def test_invalid_format_rgba(tmpdir, empty_data): """--format JPEG --rgba is not allowed""" inputfile = empty_data outputfile = str(tmpdir.join("export.mbtiles")) runner = CliRunner() result = runner.invoke( main_group, ["mbtiles", "--format", "JPEG", "--rgba", inputfile, outputfile] ) assert result.exit_code == 2 @pytest.mark.parametrize("filename", ["RGBA.byte.tif", "RGB.byte.tif"]) def test_rgba_png(tmpdir, data, filename): inputfile = str(data.join(filename)) outputfile = str(tmpdir.join("export.mbtiles")) runner = CliRunner() result = runner.invoke( main_group, ["mbtiles", "--rgba", "--format", "PNG", inputfile, outputfile] ) assert result.exit_code == 0 conn = sqlite3.connect(outputfile) cur = conn.cursor() cur.execute("select * from metadata where name == 'name'") assert cur.fetchone()[1] == filename @pytest.mark.parametrize( "minzoom,maxzoom,exp_num_tiles,source", [ (4, 10, 70, "RGB.byte.tif"), (6, 7, 6, "RGB.byte.tif"), (4, 10, 12, "rgb-193f513.vrt"), (4, 10, 69, "rgb-fa48952.vrt"), ], ) @pytest.mark.parametrize( "impl", [ pytest.param( "cf", marks=pytest.mark.skipif( sys.version_info < (3, 7), reason="c.f. implementation requires Python >= 3.7", ), ), "mp", ], ) def test_export_count(tmpdir, data, minzoom, maxzoom, exp_num_tiles, source, impl): inputfile = str(data.join(source)) outputfile = str(tmpdir.join("export.mbtiles")) runner = CliRunner() result = runner.invoke( main_group, [ "mbtiles", "--implementation", impl, "--zoom-levels", "{}..{}".format(minzoom, maxzoom), inputfile, outputfile, ], ) assert result.exit_code == 0 conn = sqlite3.connect(outputfile) cur = conn.cursor() cur.execute("select * from tiles") results = cur.fetchall() assert len(results) == exp_num_tiles @pytest.mark.parametrize("filename", ["RGBA.byte.tif"]) @pytest.mark.parametrize( "impl", [ pytest.param( "cf", marks=pytest.mark.skipif( sys.version_info < (3, 7), reason="c.f. implementation requires Python >= 3.7", ), ), "mp", ], ) def test_progress_bar(tmpdir, data, impl, filename): inputfile = str(data.join(filename)) outputfile = str(tmpdir.join("export.mbtiles")) runner = CliRunner() result = runner.invoke( main_group, [ "mbtiles", "-#", "--implementation", impl, "--zoom-levels", "4..11", "--rgba", "--format", "PNG", inputfile, outputfile, ], ) assert result.exit_code == 0 assert "100%" in result.output @pytest.mark.parametrize( "minzoom,maxzoom,exp_num_tiles,sources", [(4, 10, 70, ["rgb-193f513.vrt", "rgb-fa48952.vrt"])], ) @pytest.mark.parametrize( "impl", [ pytest.param( "cf", marks=pytest.mark.skipif( sys.version_info < (3, 7), reason="c.f. implementation requires Python >= 3.7", ), ), "mp", ], ) def test_appending_export_count( tmpdir, data, minzoom, maxzoom, exp_num_tiles, sources, impl ): """Appending adds to the tileset but does not duplicate any""" inputfiles = [str(data.join(source)) for source in sources] outputfile = str(tmpdir.join("export.mbtiles")) runner = CliRunner() result = runner.invoke( main_group, [ "mbtiles", "--implementation", impl, "--zoom-levels", "{}..{}".format(minzoom, maxzoom), inputfiles[0], outputfile, ], ) assert result.exit_code == 0 conn = sqlite3.connect(outputfile) cur = conn.cursor() cur.execute("select * from tiles") results = cur.fetchall() assert len(results) == 12 result = runner.invoke( main_group, [ "mbtiles", "--append", "--implementation", impl, "--zoom-levels", "{}..{}".format(minzoom, maxzoom), inputfiles[1], outputfile, ], ) assert result.exit_code == 0 conn = sqlite3.connect(outputfile) cur = conn.cursor() cur.execute("select * from tiles") results = cur.fetchall() assert len(results) == exp_num_tiles @pytest.mark.parametrize("inputfiles", [[], ["a.tif", "b.tif"]]) def test_input_required(inputfiles): """We require exactly one input file""" runner = CliRunner() result = runner.invoke(main_group, ["mbtiles"] + inputfiles + ["foo.mbtiles"]) assert result.exit_code == 2 def test_append_or_overwrite_required(tmpdir): """If the output files exists --append or --overwrite is required""" outputfile = tmpdir.join("export.mbtiles") outputfile.ensure() runner = CliRunner() result = runner.invoke(main_group, ["mbtiles", "a.tif", str(outputfile)]) assert result.exit_code == 1 @pytest.mark.parametrize("filename", ["RGBA.byte.tif"]) @pytest.mark.parametrize( "impl", [ pytest.param( "cf", marks=pytest.mark.skipif( sys.version_info < (3, 7), reason="c.f. implementation requires Python >= 3.7", ), ), "mp", ], ) def test_cutline_progress_bar(tmpdir, data, rgba_cutline_path, impl, filename): """rio-mbtiles accepts and uses a cutline""" inputfile = str(data.join(filename)) outputfile = str(tmpdir.join("export.mbtiles")) runner = CliRunner() result = runner.invoke( main_group, [ "mbtiles", "-#", "--implementation", impl, "--zoom-levels", "4..11", "--rgba", "--format", "PNG", "--cutline", rgba_cutline_path, inputfile, outputfile, ], ) assert result.exit_code == 0 assert "100%" in result.output @pytest.mark.parametrize("filename", ["RGBA.byte.tif"]) @pytest.mark.parametrize( "impl", [ pytest.param( "cf", marks=pytest.mark.skipif( sys.version_info < (3, 7), reason="c.f. implementation requires Python >= 3.7", ), ), "mp", ], ) def test_invalid_cutline(tmpdir, data, rgba_points_path, impl, filename): """Points cannot serve as a cutline""" inputfile = str(data.join(filename)) outputfile = str(tmpdir.join("export.mbtiles")) runner = CliRunner() result = runner.invoke( main_group, [ "mbtiles", "-#", "--implementation", impl, "--zoom-levels", "4..11", "--rgba", "--format", "PNG", "--cutline", rgba_points_path, inputfile, outputfile, ], ) assert result.exit_code == 1 @pytest.mark.parametrize(("source", "quadkey", "zooms", "exp_num_results"), [("RGB.byte.tif", "0320", "4..4", 1), ("RGB.byte.tif", "032022", "6..6", 0)]) def test_covers(tmpdir, data, source, quadkey, zooms, exp_num_results): inputfile = str(data.join(source)) outputfile = str(tmpdir.join("export.mbtiles")) runner = CliRunner() result = runner.invoke( main_group, [ "mbtiles", "--zoom-levels", zooms, "--covers", quadkey, inputfile, outputfile, ], ) assert result.exit_code == 0 conn = sqlite3.connect(outputfile) cur = conn.cursor() cur.execute("select * from tiles") results = cur.fetchall() assert len(results) == exp_num_results
29.500967
153
0.590021
1,708
15,252
5.172131
0.11534
0.027507
0.052977
0.06475
0.798053
0.794544
0.767602
0.751528
0.70806
0.659724
0
0.0155
0.259769
15,252
516
154
29.55814
0.766962
0.03252
0
0.699332
0
0
0.15966
0.008299
0
0
0
0
0.10245
1
0.055679
false
0
0.024499
0
0.080178
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
d5198de55cbb13568587e6c5dc49768d9a087775
74
py
Python
src/__init__.py
nasserawer/smoothscript
ce9aadf4d35cf038934ab2246f44f7c6afebf4a2
[ "MIT" ]
null
null
null
src/__init__.py
nasserawer/smoothscript
ce9aadf4d35cf038934ab2246f44f7c6afebf4a2
[ "MIT" ]
null
null
null
src/__init__.py
nasserawer/smoothscript
ce9aadf4d35cf038934ab2246f44f7c6afebf4a2
[ "MIT" ]
null
null
null
from .smooth_script import Smoothscript, V2 from .solution import Solution
37
43
0.851351
10
74
6.2
0.7
0
0
0
0
0
0
0
0
0
0
0.015152
0.108108
74
2
44
37
0.924242
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
d541add5e783306572856a55dafe228c47d50df7
54
py
Python
indra/assemblers/html/__init__.py
qiuhaoling/indra
fa1fb31c4333ea63d023181eaf6f759e3dd3b400
[ "BSD-2-Clause" ]
null
null
null
indra/assemblers/html/__init__.py
qiuhaoling/indra
fa1fb31c4333ea63d023181eaf6f759e3dd3b400
[ "BSD-2-Clause" ]
null
null
null
indra/assemblers/html/__init__.py
qiuhaoling/indra
fa1fb31c4333ea63d023181eaf6f759e3dd3b400
[ "BSD-2-Clause" ]
null
null
null
from .assembler import HtmlAssembler, IndraHTMLLoader
27
53
0.87037
5
54
9.4
1
0
0
0
0
0
0
0
0
0
0
0
0.092593
54
1
54
54
0.959184
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
d54832af9b91e5fd26c8b654397d138cc180080a
373
py
Python
art/metrics/__init__.py
virkt25/adversarial-robustness-toolbox
3cfa6de196cb32a3efafab2ff6bbf44247c9ddbd
[ "MIT" ]
2
2019-11-05T17:23:37.000Z
2021-07-26T15:09:44.000Z
art/metrics/__init__.py
virkt25/adversarial-robustness-toolbox
3cfa6de196cb32a3efafab2ff6bbf44247c9ddbd
[ "MIT" ]
1
2020-03-09T07:04:39.000Z
2020-03-09T07:04:39.000Z
art/metrics/__init__.py
virkt25/adversarial-robustness-toolbox
3cfa6de196cb32a3efafab2ff6bbf44247c9ddbd
[ "MIT" ]
1
2020-09-25T03:15:08.000Z
2020-09-25T03:15:08.000Z
""" Module providing metrics and verifications. """ from art.metrics.metrics import empirical_robustness from art.metrics.metrics import loss_sensitivity from art.metrics.metrics import clever from art.metrics.metrics import clever_u from art.metrics.metrics import clever_t from art.metrics.verification_decisions_trees import RobustnessVerificationTreeModelsCliqueMethod
37.3
97
0.865952
47
373
6.744681
0.404255
0.132492
0.264984
0.33123
0.48265
0.312303
0
0
0
0
0
0
0.08311
373
9
98
41.444444
0.926901
0.115282
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
d5750ddc40fa3c73189d990f4233df1bd672d389
79
py
Python
pythonAlgorithm/sortAndPartiton/Sort Letters by Case.py
Sky-zzt/lintcodePractice
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
[ "MIT" ]
1
2020-09-15T07:58:55.000Z
2020-09-15T07:58:55.000Z
pythonAlgorithm/sortAndPartiton/Sort Letters by Case.py
Sky-zzt/lintcodePractice
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
[ "MIT" ]
null
null
null
pythonAlgorithm/sortAndPartiton/Sort Letters by Case.py
Sky-zzt/lintcodePractice
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
[ "MIT" ]
null
null
null
''' 字符大小写排序 中文English 给定一个只包含字母的字符串,按照先小写字母后大写字母的顺序进行排序。 一招partiton 走天下 '''
8.777778
34
0.772152
6
79
10.166667
1
0
0
0
0
0
0
0
0
0
0
0
0.126582
79
8
35
9.875
0.884058
0.860759
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
1
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
d590ac1ae7d3025a1630a643aebe4eba47438880
153
py
Python
mpBuild/common/lib/servo.py
devshop2019/mixlyTest
bb92771aca2d5d801510658a70a13f4b548a43aa
[ "Apache-2.0" ]
118
2019-03-27T02:15:59.000Z
2022-03-18T16:42:42.000Z
mpBuild/common/lib/servo.py
devshop2019/mixlyTest
bb92771aca2d5d801510658a70a13f4b548a43aa
[ "Apache-2.0" ]
26
2019-04-17T16:39:30.000Z
2021-11-06T11:55:42.000Z
mpBuild/common/lib/servo.py
devshop2019/mixlyTest
bb92771aca2d5d801510658a70a13f4b548a43aa
[ "Apache-2.0" ]
58
2019-04-16T06:52:45.000Z
2022-03-08T01:57:08.000Z
from machine import Pin from machine import PWM def servo_write_angle(pin,angle): pwm=PWM(Pin(pin)) pwm.duty(int(40 + 75 * angle / 180)) pwm.freq(50)
21.857143
37
0.72549
28
153
3.892857
0.571429
0.201835
0.311927
0
0
0
0
0
0
0
0
0.068702
0.143791
153
7
38
21.857143
0.763359
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
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
633a968c17362657b2a5cc9a7e13ad7f64ee1115
1,058
py
Python
tests/test_BoolField.py
KronosKoderS/Concorde
30c5c8d9818e937a88d33f19c7907f8394a1ab3b
[ "MIT" ]
23
2017-09-07T21:54:15.000Z
2019-09-16T20:31:20.000Z
tests/test_BoolField.py
KronosKoderS/Concorde
30c5c8d9818e937a88d33f19c7907f8394a1ab3b
[ "MIT" ]
90
2017-08-26T06:00:51.000Z
2020-07-17T12:00:45.000Z
tests/test_BoolField.py
KronoSKoderS/Concorde
30c5c8d9818e937a88d33f19c7907f8394a1ab3b
[ "MIT" ]
5
2017-11-11T22:39:40.000Z
2021-03-29T16:39:45.000Z
import unittest from calpack import models class Test_BoolField(unittest.TestCase): def test_boolfield_set_valid_vals(self): class bool_packet(models.Packet): b_field=models.BoolField() b_packet = bool_packet() b_packet.b_field = True self.assertEqual(b_packet.b_field, True) self.assertEqual(b_packet._Packet__c_pkt.b_field, True) b_packet.b_field = False self.assertEqual(b_packet.b_field, False) self.assertEqual(b_packet._Packet__c_pkt.b_field, False) def test_boolfield_raises_typeerror_invalid_vals(self): class bool_packet(models.Packet): b_field=models.BoolField() b_packet = bool_packet() with self.assertRaises(TypeError): b_packet.b_field = 120 with self.assertRaises(TypeError): b_packet.b_field = "WRONG!" with self.assertRaises(TypeError): b_packet.b_field = [1, 2, 3, 4] with self.assertRaises(TypeError): b_packet.b_field = 3.14
27.128205
64
0.655009
136
1,058
4.757353
0.257353
0.111283
0.185471
0.160742
0.757342
0.757342
0.757342
0.757342
0.497682
0.225657
0
0.012755
0.258979
1,058
38
65
27.842105
0.8125
0
0
0.4
0
0
0.005671
0
0
0
0
0
0.32
1
0.08
false
0
0.08
0
0.28
0
0
0
0
null
0
1
1
0
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
0
0
0
0
0
0
0
0
5
634a82fb5f088f6f1f4c6888d1b12baba5a9c674
47
py
Python
spectraml/__main__.py
podondra/spectraml
76f8c0e9a45f4d73539e7151a55323d23522f2e3
[ "MIT" ]
null
null
null
spectraml/__main__.py
podondra/spectraml
76f8c0e9a45f4d73539e7151a55323d23522f2e3
[ "MIT" ]
null
null
null
spectraml/__main__.py
podondra/spectraml
76f8c0e9a45f4d73539e7151a55323d23522f2e3
[ "MIT" ]
null
null
null
"""CLI runner.""" from .cli import cli cli()
7.833333
20
0.595745
7
47
4
0.571429
0
0
0
0
0
0
0
0
0
0
0
0.191489
47
5
21
9.4
0.736842
0.234043
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
6389990888a5cadee8e93bb694d6aec2597487d0
45
py
Python
pbs_server/tests/__init__.py
permamodel/pbs-server
626b2d16f10b87e59464b7cf2d0a7c22b0cce7f3
[ "Apache-2.0" ]
null
null
null
pbs_server/tests/__init__.py
permamodel/pbs-server
626b2d16f10b87e59464b7cf2d0a7c22b0cce7f3
[ "Apache-2.0" ]
6
2018-01-18T22:31:51.000Z
2019-04-17T19:15:17.000Z
pbs_server/tests/__init__.py
permamodel/pbs-server
626b2d16f10b87e59464b7cf2d0a7c22b0cce7f3
[ "Apache-2.0" ]
1
2019-03-24T08:01:35.000Z
2019-03-24T08:01:35.000Z
"""Unit tests for the pbs-server package."""
22.5
44
0.688889
7
45
4.428571
1
0
0
0
0
0
0
0
0
0
0
0
0.133333
45
1
45
45
0.794872
0.844444
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
6399bb99a3bc9ca5dcf91b4d9cb54efd9481cde5
40
py
Python
syfertext/pipeline/__init__.py
datason/SyferText
706d4a6054b42527ad7703ed94bd5fb0323435fb
[ "Apache-2.0" ]
null
null
null
syfertext/pipeline/__init__.py
datason/SyferText
706d4a6054b42527ad7703ed94bd5fb0323435fb
[ "Apache-2.0" ]
null
null
null
syfertext/pipeline/__init__.py
datason/SyferText
706d4a6054b42527ad7703ed94bd5fb0323435fb
[ "Apache-2.0" ]
null
null
null
from .simple_tagger import SimpleTagger
20
39
0.875
5
40
6.8
1
0
0
0
0
0
0
0
0
0
0
0
0.1
40
1
40
40
0.944444
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
63d33b402810aaf89037ee7264966fa7fb992939
52
py
Python
basic_module_learning/requests_func.py
glstr/python_learning
243908d6f358764386f2e58dfbfde10a406d803c
[ "Apache-2.0" ]
2
2018-09-20T06:08:00.000Z
2018-09-26T13:57:20.000Z
basic_module_learning/requests_func.py
glstr/python_learning
243908d6f358764386f2e58dfbfde10a406d803c
[ "Apache-2.0" ]
null
null
null
basic_module_learning/requests_func.py
glstr/python_learning
243908d6f358764386f2e58dfbfde10a406d803c
[ "Apache-2.0" ]
1
2019-03-25T05:53:32.000Z
2019-03-25T05:53:32.000Z
#!/usr/bin/python #coding=utf-8 import requests
6.5
17
0.692308
8
52
4.5
1
0
0
0
0
0
0
0
0
0
0
0.022727
0.153846
52
7
18
7.428571
0.795455
0.538462
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
63d41e2a03ee4c55867046c235466fd427b39711
92
py
Python
backend/apps/scout/views/__init__.py
janthiemen/data_scout_server
d90da8b6633afe5e8c4b13df0528e1b35482d242
[ "MIT" ]
null
null
null
backend/apps/scout/views/__init__.py
janthiemen/data_scout_server
d90da8b6633afe5e8c4b13df0528e1b35482d242
[ "MIT" ]
null
null
null
backend/apps/scout/views/__init__.py
janthiemen/data_scout_server
d90da8b6633afe5e8c4b13df0528e1b35482d242
[ "MIT" ]
null
null
null
from . import datasources from . import iam from . import permissions from . import wrangler
23
25
0.793478
12
92
6.083333
0.5
0.547945
0
0
0
0
0
0
0
0
0
0
0.163043
92
4
26
23
0.948052
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
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
0
1
0
1
0
0
0
0
5
893d9d8a4be1084f6cf697621e7644aae062eb36
147
py
Python
deliravision/utils/tensor_ops.py
delira-dev/vision-base
c74e3ab978062a477e5a538128183ee46ddd4229
[ "BSD-2-Clause" ]
5
2019-07-30T14:54:15.000Z
2019-09-06T08:41:07.000Z
deliravision/utils/tensor_ops.py
delira-dev/vision-base
c74e3ab978062a477e5a538128183ee46ddd4229
[ "BSD-2-Clause" ]
21
2019-07-11T11:34:02.000Z
2019-08-12T14:23:04.000Z
deliravision/utils/tensor_ops.py
delira-dev/vision_base
c74e3ab978062a477e5a538128183ee46ddd4229
[ "BSD-2-Clause" ]
null
null
null
import numpy as np def make_onehot_npy(labels, n_classes): labels = labels.reshape(-1).astype(np.uint8) return np.eye(n_classes)[labels]
21
48
0.727891
24
147
4.291667
0.708333
0.15534
0.271845
0
0
0
0
0
0
0
0
0.016
0.14966
147
6
49
24.5
0.808
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
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
1
0
0
0
0
1
0
0
5
893e6f0b8476359eee82d9ed1b8cb3fb1c8b2320
129
py
Python
bidaf/squad/evaluate-v1.1.py
davidgolub/QuestionGeneration
6b31e1a8855774230051093ca24ba0a7750a6712
[ "MIT" ]
117
2017-09-06T23:25:59.000Z
2021-06-29T12:24:26.000Z
bidaf/squad/evaluate-v1.1.py
davidgolub/QuestionGeneration
6b31e1a8855774230051093ca24ba0a7750a6712
[ "MIT" ]
14
2017-12-06T21:08:28.000Z
2020-06-22T06:03:23.000Z
bidaf/squad/evaluate-v1.1.py
davidgolub/QuestionGeneration
6b31e1a8855774230051093ca24ba0a7750a6712
[ "MIT" ]
33
2017-10-06T05:16:07.000Z
2021-05-10T00:30:13.000Z
version https://git-lfs.github.com/spec/v1 oid sha256:f5a673dbbd173e29e9ea38f1b2091d883583b77b3a4c17144b223fb0f2f9bd09 size 3419
32.25
75
0.883721
13
129
8.769231
1
0
0
0
0
0
0
0
0
0
0
0.390244
0.046512
129
3
76
43
0.536585
0
0
0
0
0
0
0
0
1
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
5
8952761fd9e7926d1f887e3aaeca9e95425cfb06
147
py
Python
topverbs/__init__.py
mitrofun/topverbs
b21fa8e4ee322ede12b7ae219d6a68a26699fc18
[ "MIT" ]
null
null
null
topverbs/__init__.py
mitrofun/topverbs
b21fa8e4ee322ede12b7ae219d6a68a26699fc18
[ "MIT" ]
null
null
null
topverbs/__init__.py
mitrofun/topverbs
b21fa8e4ee322ede12b7ae219d6a68a26699fc18
[ "MIT" ]
null
null
null
# flake8: noqa import os import sys sys.path.insert(0, os.path.dirname(__file__)) # for external use in code from .topverbs import get_top_words
16.333333
45
0.768707
25
147
4.28
0.8
0
0
0
0
0
0
0
0
0
0
0.015873
0.142857
147
8
46
18.375
0.833333
0.251701
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
8981eb360d6319aeb9a9b3163f9724b217f95af1
167
py
Python
example/client/user.py
jiangxuewen16/py-micro
faf681f1c7c3de6bbcdf4ecd0f16c16aaa229943
[ "MIT" ]
1
2019-10-24T02:12:59.000Z
2019-10-24T02:12:59.000Z
example/client/user.py
jiangxuewen16/py-micro
faf681f1c7c3de6bbcdf4ecd0f16c16aaa229943
[ "MIT" ]
null
null
null
example/client/user.py
jiangxuewen16/py-micro
faf681f1c7c3de6bbcdf4ecd0f16c16aaa229943
[ "MIT" ]
null
null
null
from example.proto import user_pb2_grpc from py_micro.py_grpc import MicroService @MicroService.consume('user.user', user_pb2_grpc.UserStub) def GetUser(): pass
20.875
58
0.802395
25
167
5.12
0.6
0.109375
0.171875
0
0
0
0
0
0
0
0
0.013514
0.113772
167
7
59
23.857143
0.851351
0
0
0
0
0
0.053892
0
0
0
0
0
0
1
0.2
true
0.2
0.4
0
0.6
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
8982eba4b57b5b88994bcdecaaebd112d5620ab8
85
py
Python
saturn/socks/request/udp_associate.py
Yurzs/saturn
f5283542bf6db1d792dd69a3a35647f1dc9a0c99
[ "MIT" ]
null
null
null
saturn/socks/request/udp_associate.py
Yurzs/saturn
f5283542bf6db1d792dd69a3a35647f1dc9a0c99
[ "MIT" ]
null
null
null
saturn/socks/request/udp_associate.py
Yurzs/saturn
f5283542bf6db1d792dd69a3a35647f1dc9a0c99
[ "MIT" ]
null
null
null
from .base import SocksRequest class UdpAssociate(SocksRequest): action_id = 3
14.166667
33
0.764706
10
85
6.4
0.9
0
0
0
0
0
0
0
0
0
0
0.014286
0.176471
85
5
34
17
0.9
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.333333
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
5
898994a73e6eefedf58e502a525d8471765f89dc
457
py
Python
dynamicserialize/dstypes/com/raytheon/uf/common/pypies/request/DeleteFilesRequest.py
mjames-upc/python-awips
e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c
[ "BSD-3-Clause" ]
null
null
null
dynamicserialize/dstypes/com/raytheon/uf/common/pypies/request/DeleteFilesRequest.py
mjames-upc/python-awips
e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c
[ "BSD-3-Clause" ]
null
null
null
dynamicserialize/dstypes/com/raytheon/uf/common/pypies/request/DeleteFilesRequest.py
mjames-upc/python-awips
e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c
[ "BSD-3-Clause" ]
null
null
null
## ## # File auto-generated against equivalent DynamicSerialize Java class class DeleteFilesRequest(object): def __init__(self): self.datesToDelete = None def getDatesToDelete(self): return self.datesToDelete def setDatesToDelete(self, datesToDelete): self.datesToDelete = datesToDelete def getFilename(self): return self.filename def setFilename(self, filename): self.filename = filename
19.869565
68
0.695842
43
457
7.302326
0.488372
0.216561
0.089172
0
0
0
0
0
0
0
0
0
0.229759
457
22
69
20.772727
0.892045
0.14442
0
0
1
0
0
0
0
0
0
0
0
1
0.454545
false
0
0
0.181818
0.727273
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
982c7f12a5b283135de2d6964dd03c241b54edc9
135
py
Python
sadedegel/dataset/categorized_product_sentiment/__init__.py
GlobalMaksimum/sadedegel
8e28dbeabc3bf0d6f2222089ac5e3a849f9d3a6b
[ "MIT" ]
100
2020-07-06T05:50:49.000Z
2022-03-21T21:56:55.000Z
sadedegel/dataset/categorized_product_sentiment/__init__.py
LyotardPostmodernizm/sadedegel
8e28dbeabc3bf0d6f2222089ac5e3a849f9d3a6b
[ "MIT" ]
244
2020-07-06T06:31:01.000Z
2022-02-26T10:40:17.000Z
sadedegel/dataset/categorized_product_sentiment/__init__.py
LyotardPostmodernizm/sadedegel
8e28dbeabc3bf0d6f2222089ac5e3a849f9d3a6b
[ "MIT" ]
23
2020-07-27T16:32:48.000Z
2022-03-18T11:13:07.000Z
from ._core import load_categorized_product_sentiment_train from ._core import SENTIMENT_CLASS_VALUES, PRODUCT_CATEGORIES, CORPUS_SIZE
45
74
0.896296
18
135
6.166667
0.722222
0.144144
0.252252
0
0
0
0
0
0
0
0
0
0.074074
135
2
75
67.5
0.888
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
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