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
70167c3be0808354d382784e8c02e038b55afbfd
102
py
Python
Geometry/ForwardGeometry/python/ForwardGeometry_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Geometry/ForwardGeometry/python/ForwardGeometry_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Geometry/ForwardGeometry/python/ForwardGeometry_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from Geometry.ForwardGeometry.ForwardGeometry_cff import *
20.4
58
0.852941
12
102
7.166667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.098039
102
4
59
25.5
0.934783
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
7016e753d0b481356cbac9f285ef5ed1df653d6d
51
py
Python
gfapy/line/header/__init__.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
44
2017-03-18T08:08:04.000Z
2021-11-10T16:11:15.000Z
gfapy/line/header/__init__.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
22
2017-04-04T21:20:31.000Z
2022-03-09T19:05:30.000Z
gfapy/line/header/__init__.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
5
2017-07-07T02:56:56.000Z
2020-09-30T20:10:49.000Z
from ..line import Line from .header import Header
17
26
0.784314
8
51
5
0.5
0
0
0
0
0
0
0
0
0
0
0
0.156863
51
2
27
25.5
0.930233
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
7040c2af31c4456ee701283189e7154deb6bf951
599
py
Python
examples/convert_lmdb_camvid/png_to_ppm.py
TrevinoCarlos/caffe
2b36ec4a32e10511713060a4062a50e621019a0e
[ "BSD-2-Clause" ]
null
null
null
examples/convert_lmdb_camvid/png_to_ppm.py
TrevinoCarlos/caffe
2b36ec4a32e10511713060a4062a50e621019a0e
[ "BSD-2-Clause" ]
null
null
null
examples/convert_lmdb_camvid/png_to_ppm.py
TrevinoCarlos/caffe
2b36ec4a32e10511713060a4062a50e621019a0e
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from PIL import Image f = open('camvid_train.txt','r') inputs = f.read().splitlines() f.close() for in_idx, in_ in enumerate(inputs): im = Image.open(in_) #im = im.resize((int(im.size[0]*0.25),int(im.size[1]*0.25)),Image.ANTIALIAS) im.save('inputs/input-'+str(in_idx+1).zfill(5)+'.ppm') f = open('camvid_test.txt','r') inputs = f.read().splitlines() f.close() for in_idx, in_ in enumerate(inputs): im = Image.open(in_) #im = im.resize((int(im.size[0]*0.25),int(im.size[1]*0.25)),Image.ANTIALIAS) im.save('inputs/input-'+str(in_idx+368).zfill(5)+'.ppm')
29.95
80
0.647746
110
599
3.436364
0.336364
0.05291
0.095238
0.058201
0.772487
0.772487
0.772487
0.772487
0.772487
0.772487
0
0.041825
0.12187
599
20
81
29.95
0.676806
0.250417
0
0.571429
0
0
0.149554
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
56302b84328e9570bcb08c633192ce5aed006eaf
106
py
Python
src/scarab/web/resources/status.py
brysnik/Scarab
a941ffd738ec4b1d066c19b7f88e74e62e4cc64f
[ "MIT" ]
null
null
null
src/scarab/web/resources/status.py
brysnik/Scarab
a941ffd738ec4b1d066c19b7f88e74e62e4cc64f
[ "MIT" ]
null
null
null
src/scarab/web/resources/status.py
brysnik/Scarab
a941ffd738ec4b1d066c19b7f88e74e62e4cc64f
[ "MIT" ]
null
null
null
""" Default status.html resource """ class StatusResource: def on_get(self, req, resp): pass
13.25
32
0.641509
13
106
5.153846
1
0
0
0
0
0
0
0
0
0
0
0
0.235849
106
8
33
13.25
0.82716
0.264151
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.333333
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
56635597dc605662d86e377194751e1bd9fed282
138
py
Python
arbitrage/__init__.py
aknirmal90/arbitrage
e43c91be80c6f8ef4070d30a3a897c2e113ae136
[ "MIT" ]
3
2017-12-14T12:41:01.000Z
2021-05-17T11:51:53.000Z
arbitrage/__init__.py
aknirmal90/arbitrage
e43c91be80c6f8ef4070d30a3a897c2e113ae136
[ "MIT" ]
2
2020-06-05T17:55:14.000Z
2021-06-10T19:48:10.000Z
arbitrage/__init__.py
aknirmal90/arbitrage
e43c91be80c6f8ef4070d30a3a897c2e113ae136
[ "MIT" ]
2
2018-07-11T03:23:51.000Z
2021-07-16T17:42:21.000Z
from __future__ import absolute_import # This will make sure the app is always imported when # Django starts. from .celeryapp import app
23
53
0.804348
21
138
5.047619
0.809524
0
0
0
0
0
0
0
0
0
0
0
0.166667
138
5
54
27.6
0.921739
0.478261
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
56686a4f277f68e4c2cd3830671bed6b9f0ab6fe
140
py
Python
Backend/clother/users/views.py
t3ddyss/Clother
ca7bfd2a830cb36cf7ba62782498636e58f9ea17
[ "MIT" ]
21
2021-04-21T10:36:12.000Z
2021-10-18T10:23:38.000Z
Backend/clother/users/views.py
t3ddyss/Clother
ca7bfd2a830cb36cf7ba62782498636e58f9ea17
[ "MIT" ]
1
2021-06-04T15:19:35.000Z
2021-06-04T15:19:35.000Z
Backend/clother/users/views.py
t3ddyss/Clother
ca7bfd2a830cb36cf7ba62782498636e58f9ea17
[ "MIT" ]
1
2022-03-03T02:50:37.000Z
2022-03-03T02:50:37.000Z
from flask import Blueprint from ..utils import base_prefix blueprint = Blueprint('users', __name__, url_prefix=(base_prefix + '/users'))
23.333333
77
0.764286
18
140
5.555556
0.555556
0.2
0
0
0
0
0
0
0
0
0
0
0.121429
140
5
78
28
0.813008
0
0
0
0
0
0.078571
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
1
0
5
569e31f6a4bb23e3686b409c48753b2c0fddd3f4
138
py
Python
src/api/domain/dashboard/GetDashboardWidgets/GetDashboardWidgetsDto.py
PythonDataIntegrator/pythondataintegrator
6167778c36c2295e36199ac0d4d256a4a0c28d7a
[ "MIT" ]
14
2020-12-19T15:06:13.000Z
2022-01-12T19:52:17.000Z
src/api/domain/dashboard/GetDashboardWidgets/GetDashboardWidgetsDto.py
PythonDataIntegrator/pythondataintegrator
6167778c36c2295e36199ac0d4d256a4a0c28d7a
[ "MIT" ]
43
2021-01-06T22:05:22.000Z
2022-03-10T10:30:30.000Z
src/api/domain/dashboard/GetDashboardWidgets/GetDashboardWidgetsDto.py
PythonDataIntegrator/pythondataintegrator
6167778c36c2295e36199ac0d4d256a4a0c28d7a
[ "MIT" ]
4
2020-12-18T23:10:09.000Z
2021-04-02T13:03:12.000Z
from infrastructure.cqrs.decorators.dtoclass import dtoclass @dtoclass class GetDashboardWidgetsDto: # TODO:Dto attributes pass
17.25
60
0.797101
14
138
7.857143
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.152174
138
7
61
19.714286
0.940171
0.137681
0
0
0
0
0
0
0
0
0
0.142857
0
1
0
true
0.25
0.25
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
1
1
0
0
0
0
0
5
3b94040217f009f19e99fed1df6bc018b65f1538
147
py
Python
discovermetal/modules/__init__.py
packethost/discover-metal
b213a9ec455dbc85f291d5941b360f2d0564b58a
[ "Apache-2.0" ]
null
null
null
discovermetal/modules/__init__.py
packethost/discover-metal
b213a9ec455dbc85f291d5941b360f2d0564b58a
[ "Apache-2.0" ]
null
null
null
discovermetal/modules/__init__.py
packethost/discover-metal
b213a9ec455dbc85f291d5941b360f2d0564b58a
[ "Apache-2.0" ]
null
null
null
from .modules import DiscoverModule, discovery_modules from .discover_components import DiscoverComponents from .discover_lldp import DiscoverLLDP
36.75
54
0.884354
16
147
7.9375
0.625
0.188976
0
0
0
0
0
0
0
0
0
0
0.088435
147
3
55
49
0.947761
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
8e537b333526c25084bad914cc1871b092dfc796
212
py
Python
Python/libraries/recognizers-text/recognizers_text/utilities.py
stevengum97/Recognizers-Text
ec56a36a00cac81f9a1c38578d350121e3ff9f2d
[ "MIT" ]
1
2017-09-29T07:11:24.000Z
2017-09-29T07:11:24.000Z
Python/libraries/recognizers-text/recognizers_text/utilities.py
stevengum97/Recognizers-Text
ec56a36a00cac81f9a1c38578d350121e3ff9f2d
[ "MIT" ]
null
null
null
Python/libraries/recognizers-text/recognizers_text/utilities.py
stevengum97/Recognizers-Text
ec56a36a00cac81f9a1c38578d350121e3ff9f2d
[ "MIT" ]
null
null
null
from typing import Pattern import regex class RegExpUtility: @staticmethod def get_safe_reg_exp(source: str, flags: int = regex.I | regex.S) -> Pattern: return regex.compile(source, flags=flags)
26.5
81
0.721698
29
212
5.172414
0.724138
0
0
0
0
0
0
0
0
0
0
0
0.188679
212
7
82
30.285714
0.872093
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0.166667
0.833333
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
8e7dd4f6b9b2d5bf7d4b0072aa97c49d60a35d3a
105
py
Python
core/models/__init__.py
moxuanchen/BMS
1d688f9ebc3efbd812948f930069f2a7109cd873
[ "Apache-2.0" ]
null
null
null
core/models/__init__.py
moxuanchen/BMS
1d688f9ebc3efbd812948f930069f2a7109cd873
[ "Apache-2.0" ]
null
null
null
core/models/__init__.py
moxuanchen/BMS
1d688f9ebc3efbd812948f930069f2a7109cd873
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from .admin_user import AdminUser from .book import Book from .user import User
17.5
33
0.714286
16
105
4.625
0.5625
0.27027
0
0
0
0
0
0
0
0
0
0.011494
0.171429
105
5
34
21
0.83908
0.2
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
8ea9c9c5b1135926d8f7fd0491f17262bbfbb941
142
py
Python
foxnews/foxprofile.py
cmccvic/CBOnetwork
5cf8f119cbe0c085a2f4363126222cc652444395
[ "MIT" ]
null
null
null
foxnews/foxprofile.py
cmccvic/CBOnetwork
5cf8f119cbe0c085a2f4363126222cc652444395
[ "MIT" ]
null
null
null
foxnews/foxprofile.py
cmccvic/CBOnetwork
5cf8f119cbe0c085a2f4363126222cc652444395
[ "MIT" ]
null
null
null
my_email = 'twitterlehigh2@gmail.com' my_password = 'kB5-LXX-T7w-TLG' # my_email = 'twitterlehigh@gmail.com' # my_password = 'Lehigh131016'
20.285714
38
0.739437
19
142
5.315789
0.631579
0.138614
0.19802
0.356436
0
0
0
0
0
0
0
0.071429
0.112676
142
6
39
23.666667
0.730159
0.457746
0
0
0
0
0.534247
0.328767
0
0
0
0
0
1
0
false
0.5
0
0
0
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
1
0
0
0
0
0
5
8ececd61697f6d8f6eb833176e8ecb37c20557a5
176
py
Python
mayan/apps/lock_manager/literals.py
boost-entropy-repos-org/Mayan-EDMS
5769f26abc56f92f8edb9d311cabf659dc0535c1
[ "Apache-2.0" ]
1
2021-02-24T15:03:23.000Z
2021-02-24T15:03:23.000Z
mayan/apps/lock_manager/literals.py
ass-a2s/Mayan-EDMS
5769f26abc56f92f8edb9d311cabf659dc0535c1
[ "Apache-2.0" ]
null
null
null
mayan/apps/lock_manager/literals.py
ass-a2s/Mayan-EDMS
5769f26abc56f92f8edb9d311cabf659dc0535c1
[ "Apache-2.0" ]
1
2020-08-09T09:06:59.000Z
2020-08-09T09:06:59.000Z
DEFAULT_LOCK_MANAGER_BACKEND = 'mayan.apps.lock_manager.backends.file_lock.FileLock' DEFAULT_LOCK_MANAGER_BACKEND_ARGUMENTS = {} DEFAULT_LOCK_MANAGER_DEFAULT_LOCK_TIMEOUT = 30
44
84
0.880682
24
176
5.875
0.5
0.312057
0.382979
0.35461
0
0
0
0
0
0
0
0.011976
0.051136
176
3
85
58.666667
0.832335
0
0
0
0
0
0.289773
0.289773
0
0
0
0
0
1
0
false
0
0
0
0
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
d95eeeeb8aca10787b8cfb8f166f0d625f15a1bc
509
py
Python
jedi/utils/ids.py
broadinstitute/jedi-public
bce10d7e1a89e666ec4c77a1e3448f684dc21daf
[ "BSD-3-Clause" ]
null
null
null
jedi/utils/ids.py
broadinstitute/jedi-public
bce10d7e1a89e666ec4c77a1e3448f684dc21daf
[ "BSD-3-Clause" ]
null
null
null
jedi/utils/ids.py
broadinstitute/jedi-public
bce10d7e1a89e666ec4c77a1e3448f684dc21daf
[ "BSD-3-Clause" ]
null
null
null
import csv from typing import Optional, Set import pandas as pd def ids_from_file(filename: str, id_col: str, sep: Optional[str] = '\t') -> Set[int]: return set( pd.read_csv(filename, sep=sep, quoting=csv.QUOTE_NONE, dtype={id_col: 'int64'}, usecols=[id_col])[id_col]) def subset_ids_from_file(filename: str, set_num: int, total_sets: int, id_col: str, sep: Optional[str] = '\t')\ -> Set[int]: return {x for x in ids_from_file(filename, id_col, sep) if x % total_sets == set_num}
33.933333
114
0.681729
87
509
3.770115
0.402299
0.091463
0.10061
0.17378
0.347561
0.213415
0.213415
0.213415
0.213415
0.213415
0
0.004751
0.172888
509
14
115
36.357143
0.774347
0
0
0
0
0
0.017682
0
0
0
0
0
0
1
0.222222
false
0
0.333333
0.222222
0.777778
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
5
d97d33c5916172df765adfede842e50142bb26d4
8,956
py
Python
mocap/processing/normalize.py
jutanke/mocap
e67f9665e45884ca16a40d89fc9f7d160e5ff7b2
[ "MIT" ]
22
2019-04-17T13:42:47.000Z
2022-03-03T23:48:16.000Z
mocap/processing/normalize.py
jutanke/mocap
e67f9665e45884ca16a40d89fc9f7d160e5ff7b2
[ "MIT" ]
5
2019-04-17T13:57:25.000Z
2021-04-16T12:31:38.000Z
mocap/processing/normalize.py
jutanke/mocap
e67f9665e45884ca16a40d89fc9f7d160e5ff7b2
[ "MIT" ]
3
2020-08-27T19:32:40.000Z
2021-02-24T08:52:23.000Z
import numpy as np import numba as nb import mocap.math.geometry as gm def get_euclidean_transform(human, j_root=0, j_left=6, j_right=1, only_xy=True): """ normalize person at 0,0,0 facing 0,1,0 :param human: {32x3} :param j_root: :param j_left: :param j_right: :param only_xy: {Boolean} if True we only transfrom on xy plane """ R, t = _get_euclidean_transform(human, j_root, j_left, j_right) if not only_xy: human_transformed = apply_euclidean_transform(human, R, t) left = human_transformed[j_left] right = human_transformed[j_right] R_ = gm.get_3d_rotation_to_align_horizontally(left, right) R = R_ @ R return R, t @nb.jit(nb.types.Tuple((nb.float32[:, :], nb.float32[:,]))( nb.float32[:, :], nb.int64, nb.int64, nb.int64 ), nopython=True, nogil=True) def _get_euclidean_transform(human, j_root, j_left, j_right): """ normalize person at 0,0,0 facing (0,1,0) :param human: {32x3} :param j_root: {int} if -1, use centre of left-right :param j_left: {int} :param j_right: {int} """ left = human[j_left] right = human[j_right] if j_root >= 0: t = -human[j_root] else: # use centre between l/r t = -(left + right)/2 R = gm.get_3d_rotation_to_face_forward(left, right) return R, t @nb.jit(nb.float32[:, :]( nb.float32[:, :], nb.float32[:, :], nb.float32[:, ] ), nopython=True, nogil=True) def apply_euclidean_transform(human, R, t): """ applies rigid transform :param human: {32x3} :param R: {3x3} in SO(3) :param t: {3x1} in |R^3 """ new_human = human.copy() + t R = np.ascontiguousarray(R) for i in range(len(new_human)): p = new_human[i] new_human[i] = R @ p return new_human @nb.jit(nb.float32[:, :, :]( nb.float32[:, :, :], nb.float32[:, :], nb.float32[:, ] ), nopython=True, nogil=True) def apply_euclidean_transform_to_sequence(seq, R, t): """ applies rigid transform :param seq: :param R: :param t: :return: """ result = np.empty(seq.shape, np.float32) for i in range(len(seq)): human = seq[i] result[i] = apply_euclidean_transform(human, R, t) return result def normalize_sequence_at_frame(seq, frame, j_root=0, j_left=6, j_right=1): """ Normalize sequence at {frame} """ assert len(seq) > frame if len(seq.shape) == 2: n_frames = len(seq) seq = seq.reshape((n_frames, -1, 3)) return _normalize_sequence_at_frame(seq, frame, j_root, j_left, j_right) @nb.jit(nb.float32[:, :, :]( nb.float32[:, :, :], nb.int64, nb.int64, nb.int64, nb.int64 ), nopython=True, nogil=True) def _normalize_sequence_at_frame(seq, frame, j_root, j_left, j_right): """ Normalize the sequence at {frame} :param seq: Nx32x3 """ human = seq[frame] R, t = _get_euclidean_transform(human, j_root, j_left, j_right) result = np.empty(seq.shape, np.float32) for i in range(len(seq)): human = seq[i] result[i] = apply_euclidean_transform(human, R, t) return result @nb.jit(nb.float32[:, :, :]( nb.float32[:, :, :], nb.int64, nb.int64, nb.int64, nb.int64, nb.float32[:, :], nb.float32[:, ] ), nopython=True, nogil=True) def _normalize_sequence_at_frame_return_transforms(seq, frame, j_root, j_left, j_right, R_out, t_out): """ Normalize the sequence at {frame} :param seq: Nx32x3 """ human = seq[frame] R, t = _get_euclidean_transform(human, j_root, j_left, j_right) for i in range(3): for j in range(3): R_out[i,j] = R[i,j] t_out[i] = t[i] result = np.empty(seq.shape, np.float32) for i in range(len(seq)): human = seq[i] result[i] = apply_euclidean_transform(human, R, t) return result def remove_global_translation(seq, j_root=0): unflattend = False if len(seq.shape) == 2: unflattend = True n_frames = len(seq) seq = seq.reshape((n_frames, -1, 3)) T = np.expand_dims(seq[:, j_root, :], axis=1) seq = np.ascontiguousarray(seq - T) if unflattend: seq = seq.reshape((n_frames, -1)) return seq def remove_rotation_and_translation(seq, j_root=0, j_left=6, j_right=1): unflattend = False if len(seq.shape) == 2: unflattend = True n_frames = len(seq) seq = seq.reshape((n_frames, -1, 3)) seq = _remove_rotation_and_translation(seq, j_root, j_left, j_right) if unflattend: seq = seq.reshape((n_frames, -1)) return seq @nb.jit(nb.float32[:, :, :]( nb.float32[:, :, :], nb.int64, nb.int64, nb.int64 ), nopython=True, nogil=True) def _remove_rotation_and_translation(seq, j_root, j_left, j_right): """ :param seq: :param j_root: :param j_left: :param j_right: :return: """ n, J, dim = seq.shape result = np.empty((n, J, dim), np.float32) for i in range(n): human = seq[i] R, t = _get_euclidean_transform(human, j_root, j_left, j_right) result[i] = apply_euclidean_transform(human, R, t) return result @nb.jit(nb.float32[:, :, :]( nb.float32[:, :, :], nb.int64, nb.int64, nb.int64 ), nopython=True, nogil=True) def remove_translation(seq, j_root, j_left, j_right): R = np.eye(3, dtype=np.float32) result = np.empty(seq.shape, np.float32) for frame in range(len(seq)): human = seq[frame] left = human[j_left] right = human[j_right] if j_root >= 0: t = -human[j_root] else: # use centre between l/r t = -(left + right) / 2 result[frame] = apply_euclidean_transform(human, R, t) return result @nb.njit(nb.float32[:, :, :]( nb.float32[:, :, :], nb.int64, nb.int64 ), nogil=True) def insert_root_node_as_avg(seq, j_left, j_right): """ :param seq: [n, J, 3] :param j_left: :param j_right: :return: """ n, J, dim = seq.shape result = np.empty((n, J + 1, dim), np.float32) result[:, :J, :] = seq for t in range(n): human = seq[t] left = human[j_left] right = human[j_right] root = (left + right)/2 result[t, J, :] = root return result def batch_normalize_sequence_at_frame(seqs, frame, j_root=0, j_left=6, j_right=1, return_transforms=False, flatten_output=True): """ :param seqs: [bs x n x 54 ] :param frame: :param j_root: :param j_left: :param j_right: :return: """ n_batch = seqs.shape[0] n_frames = seqs.shape[1] if len(seqs.shape) == 3: n_joints = seqs.shape[2]//3 seqs = seqs.reshape((n_batch, n_frames, n_joints, 3)) else: n_joints = seqs.shape[2] assert len(seqs.shape) == 4, str(seqs.shape) if return_transforms: R = np.empty((n_batch, 3, 3), dtype=np.float32) T = np.empty((n_batch, 3), dtype=np.float32) seqs = _batch_normalize_sequence_at_frame_return_transforms( seqs, frame, j_root=j_root, j_left=j_left, j_right=j_right, R_out=R, t_out=T ) if flatten_output: seqs = seqs.reshape((n_batch, n_frames, n_joints*3)) return seqs, R, T else: seqs = _batch_normalize_sequence_at_frame(seqs, frame, j_root=j_root, j_left=j_left, j_right=j_right) if flatten_output: seqs = seqs.reshape((n_batch, n_frames, n_joints*3)) return seqs @nb.njit(nb.float32[:, :, :, :]( nb.float32[:, :, :, :], nb.int64, nb.int64, nb.int64, nb.int64 ), nogil=True) def _batch_normalize_sequence_at_frame(seqs, frame, j_root, j_left, j_right): """ :param seqs: [bs x n x J x 3 ] :param frame: :param j_root: :param j_left: :param j_right: :return: """ bs = len(seqs) for i in range(bs): seqs[i] = _normalize_sequence_at_frame(seqs[i], frame, j_root, j_left, j_right) return seqs @nb.njit(nb.float32[:, :, :, :]( nb.float32[:, :, :, :], nb.int64, nb.int64, nb.int64, nb.int64, nb.float32[:, :, :], nb.float32[:, :] ), nogil=True) def _batch_normalize_sequence_at_frame_return_transforms(seqs, frame, j_root, j_left, j_right, R_out, t_out): """ :param seqs: [bs x n x J x 3 ] :param frame: :param j_root: :param j_left: :param j_right: :return: """ bs = len(seqs) for i in range(bs): seqs[i] = _normalize_sequence_at_frame_return_transforms( seqs[i], frame, j_root, j_left, j_right, R_out[i], t_out[i]) return seqs
29.754153
109
0.57548
1,304
8,956
3.741564
0.092025
0.036893
0.056364
0.054519
0.805288
0.777618
0.726173
0.711006
0.678008
0.630457
0
0.033909
0.282157
8,956
300
110
29.853333
0.724996
0.122823
0
0.534392
0
0
0
0
0
0
0
0
0.010582
1
0.079365
false
0
0.015873
0
0.179894
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
d991ed3304b4391a73e388ef03aedebb07769554
62
py
Python
hanibal/ans_escuela/models/__init__.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
null
null
null
hanibal/ans_escuela/models/__init__.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
null
null
null
hanibal/ans_escuela/models/__init__.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
null
null
null
import mes_academico import anio_academico import periodo_line
20.666667
21
0.919355
9
62
6
0.666667
0.555556
0
0
0
0
0
0
0
0
0
0
0.080645
62
3
22
20.666667
0.947368
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
79500bed84e7dd864d0f7b76da1e61545a318733
152
py
Python
setup.py
sevdog/django-reverse-js
0f42aa956d710449bba91d35c6b3b7e5040acbbf
[ "MIT" ]
null
null
null
setup.py
sevdog/django-reverse-js
0f42aa956d710449bba91d35c6b3b7e5040acbbf
[ "MIT" ]
null
null
null
setup.py
sevdog/django-reverse-js
0f42aa956d710449bba91d35c6b3b7e5040acbbf
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup( package_data={ 'django_reverse_js': ['templates/django_reverse_js/*.js'] } )
16.888889
65
0.671053
19
152
5.105263
0.736842
0.268041
0.309278
0
0
0
0
0
0
0
0
0
0.190789
152
8
66
19
0.788618
0.131579
0
0
0
0
0.374046
0.244275
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
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
1
0
0
0
0
0
0
5
797d6aedf7e7fc604610b3b9eae42d35828a3742
80
py
Python
Apps/polls/Tasks/urls.py
shadowofgost/WebEngineering
693af827e3458806cdace959262cf393d29f6504
[ "Apache-2.0" ]
1
2021-04-05T05:40:17.000Z
2021-04-05T05:40:17.000Z
Apps/polls/Tasks/urls.py
shadowofgost/WebEngineering
693af827e3458806cdace959262cf393d29f6504
[ "Apache-2.0" ]
null
null
null
Apps/polls/Tasks/urls.py
shadowofgost/WebEngineering
693af827e3458806cdace959262cf393d29f6504
[ "Apache-2.0" ]
null
null
null
from .Test import add from .QuitWarning import warning from .Email import email
20
32
0.8125
12
80
5.416667
0.583333
0
0
0
0
0
0
0
0
0
0
0
0.15
80
3
33
26.666667
0.955882
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
798c961f7cf7be5f5ab6c985436efc50f303a8e7
567
py
Python
sacrerouge/metrics/decomposed_rouge/categorizers/__init__.py
danieldeutsch/decomposed-rouge
0d723be8e3359f0bdcc9c7940336800895e46dbb
[ "Apache-2.0" ]
1
2022-03-30T13:39:10.000Z
2022-03-30T13:39:10.000Z
sacrerouge/metrics/decomposed_rouge/categorizers/__init__.py
danieldeutsch/decomposed-rouge
0d723be8e3359f0bdcc9c7940336800895e46dbb
[ "Apache-2.0" ]
null
null
null
sacrerouge/metrics/decomposed_rouge/categorizers/__init__.py
danieldeutsch/decomposed-rouge
0d723be8e3359f0bdcc9c7940336800895e46dbb
[ "Apache-2.0" ]
1
2021-12-05T14:55:10.000Z
2021-12-05T14:55:10.000Z
from sacrerouge.metrics.decomposed_rouge.categorizers.categorizer import Categorizer, TupleCategorizer from sacrerouge.metrics.decomposed_rouge.categorizers.dep import DependencyCategorizer, DependencyVerbRelationsCategorizer from sacrerouge.metrics.decomposed_rouge.categorizers.ner import NERCategorizer from sacrerouge.metrics.decomposed_rouge.categorizers.np_chunks import NPChunkCategorizer from sacrerouge.metrics.decomposed_rouge.categorizers.pos import POSCategorizer from sacrerouge.metrics.decomposed_rouge.categorizers.stopwords import StopwordCategorizer
81
122
0.908289
57
567
8.912281
0.368421
0.165354
0.248032
0.366142
0.566929
0.566929
0
0
0
0
0
0
0.045855
567
6
123
94.5
0.939002
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
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
799c1849eeece29532c5061f6dba07c0c87e4e7f
119
py
Python
tools/regression/xsl_reports/utils/makedirs.py
zyiacas/boost-doc-zh
689e5a3a0a4dbead1a960f7b039e3decda54aa2c
[ "BSL-1.0" ]
198
2015-01-13T05:47:18.000Z
2022-03-09T04:46:46.000Z
tools/regression/xsl_reports/utils/makedirs.py
sdfict/boost-doc-zh
689e5a3a0a4dbead1a960f7b039e3decda54aa2c
[ "BSL-1.0" ]
9
2015-01-28T16:33:19.000Z
2020-04-12T23:03:28.000Z
tools/regression/xsl_reports/utils/makedirs.py
sdfict/boost-doc-zh
689e5a3a0a4dbead1a960f7b039e3decda54aa2c
[ "BSL-1.0" ]
139
2015-01-15T20:09:31.000Z
2022-01-31T15:21:16.000Z
import os.path import os def makedirs( path ): if not os.path.exists( path ): os.makedirs( path )
14.875
35
0.588235
17
119
4.117647
0.470588
0.228571
0
0
0
0
0
0
0
0
0
0
0.310924
119
7
36
17
0.853659
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
79b2decdcc552d7a4d16c1ad37dded76c638b3a5
49
py
Python
hello_world_Eric_G.py
egriswol/astr-119-section-assignments
6cbeb0397b6a1a9102e8efa771e8d9ed1d3fab18
[ "MIT" ]
2
2018-09-28T18:46:05.000Z
2018-09-28T19:00:27.000Z
hello_world_Eric_G.py
egriswol/astr-119-section-assignments
6cbeb0397b6a1a9102e8efa771e8d9ed1d3fab18
[ "MIT" ]
67
2018-09-26T06:39:43.000Z
2018-10-03T15:32:12.000Z
hello_world_Eric_G.py
egriswol/astr-119-section-assignments
6cbeb0397b6a1a9102e8efa771e8d9ed1d3fab18
[ "MIT" ]
62
2018-09-27T20:12:32.000Z
2018-10-03T23:53:47.000Z
#!/usr/bin/env python3 print("Hello from Eric!")
16.333333
25
0.693878
8
49
4.25
1
0
0
0
0
0
0
0
0
0
0
0.022727
0.102041
49
3
25
16.333333
0.75
0.428571
0
0
0
0
0.571429
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
79c8ad2472a64c9298cdd2ed272ddfdd810d75ae
104
py
Python
backend/backend/config/tasks.py
epm0dev/django-vue-postgres-celery-redis
82884645626acbd7f106ac8ee31f14d7a8fefbee
[ "MIT" ]
2
2020-12-29T05:33:27.000Z
2022-01-17T21:34:18.000Z
backend/backend/config/tasks.py
epm0dev/django-vue-postgres-celery-redis
82884645626acbd7f106ac8ee31f14d7a8fefbee
[ "MIT" ]
null
null
null
backend/backend/config/tasks.py
epm0dev/django-vue-postgres-celery-redis
82884645626acbd7f106ac8ee31f14d7a8fefbee
[ "MIT" ]
null
null
null
from celery import shared_task @shared_task def sample_task(): print("The sample task just ran.")
14.857143
38
0.740385
16
104
4.625
0.6875
0.27027
0
0
0
0
0
0
0
0
0
0
0.173077
104
6
39
17.333333
0.860465
0
0
0
0
0
0.240385
0
0
0
0
0
0
1
0.25
true
0
0.25
0
0.5
0.25
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
5
79d73b0b180f98865b387551d841be5531139c4b
11
py
Python
docker/python/app/codes/questions/course1/lesson1/study5/5/sample.py
morisakigogogo/python-react-demo
656299a200479bc5b508c6d15ad8d4cfbb0c7fe0
[ "MIT" ]
null
null
null
docker/python/app/codes/questions/course1/lesson1/study5/5/sample.py
morisakigogogo/python-react-demo
656299a200479bc5b508c6d15ad8d4cfbb0c7fe0
[ "MIT" ]
null
null
null
docker/python/app/codes/questions/course1/lesson1/study5/5/sample.py
morisakigogogo/python-react-demo
656299a200479bc5b508c6d15ad8d4cfbb0c7fe0
[ "MIT" ]
null
null
null
print(2*5)
5.5
10
0.636364
3
11
2.333333
1
0
0
0
0
0
0
0
0
0
0
0.2
0.090909
11
1
11
11
0.5
0
0
0
0
0
0
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
8dbff3e776c5b723ff45b5eeadabe64e59ae78ae
37
py
Python
simulate.py
johnobrien/swa.sim
753b29892a3585ddfa63eb10226422a831a2feba
[ "MIT" ]
null
null
null
simulate.py
johnobrien/swa.sim
753b29892a3585ddfa63eb10226422a831a2feba
[ "MIT" ]
null
null
null
simulate.py
johnobrien/swa.sim
753b29892a3585ddfa63eb10226422a831a2feba
[ "MIT" ]
null
null
null
from squadron import Squadron, Wing
12.333333
35
0.810811
5
37
6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.162162
37
2
36
18.5
0.967742
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
8dc1092863829e390c26455f85a75691282e0b6e
94
py
Python
statslib/utils/__init__.py
ashubertt/statslib
5a35c0d10c3ca44c2d48f329c4f3790c91c385ac
[ "Apache-2.0" ]
null
null
null
statslib/utils/__init__.py
ashubertt/statslib
5a35c0d10c3ca44c2d48f329c4f3790c91c385ac
[ "Apache-2.0" ]
1
2021-04-06T10:55:34.000Z
2021-04-06T10:55:34.000Z
statslib/utils/__init__.py
ashubertt/statslib
5a35c0d10c3ca44c2d48f329c4f3790c91c385ac
[ "Apache-2.0" ]
null
null
null
from statslib.utils import (common, dates, dframe, excel, file, plots, log, mailing, scraping)
94
94
0.765957
13
94
5.538462
1
0
0
0
0
0
0
0
0
0
0
0
0.117021
94
1
94
94
0.86747
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
5c1e65258a971813589183d772b1c7268a24762e
148
py
Python
src/demos/greedy/coinchange3.py
DavidLlorens/algoritmia
40ca0a89ea6de9b633fa5f697f0a28cae70816a2
[ "MIT" ]
6
2018-09-15T15:09:10.000Z
2022-02-27T01:23:11.000Z
src/demos/greedy/coinchange3.py
JeromeIllgner/algoritmia
406afe7206f2411557859bf03480c16db7dcce0d
[ "MIT" ]
null
null
null
src/demos/greedy/coinchange3.py
JeromeIllgner/algoritmia
406afe7206f2411557859bf03480c16db7dcce0d
[ "MIT" ]
5
2018-07-10T20:19:55.000Z
2021-03-31T03:32:22.000Z
#coding: latin1 #< full from algoritmia.problems.coinchange.greedy3 import ChangeSolver print(ChangeSolver([1, 2, 5, 10]).solve(11)) #> full
21.142857
64
0.716216
19
148
5.578947
0.894737
0
0
0
0
0
0
0
0
0
0
0.070866
0.141892
148
7
65
21.142857
0.76378
0.175676
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
5
30c2bd19ba601015598ac8782344363b84400495
166
py
Python
services/datetime_utils.py
oslokommune/okdata-event-stream-api
42d4c35a30ff784d00117e2d75078699abb7640e
[ "MIT" ]
1
2021-09-09T11:43:41.000Z
2021-09-09T11:43:41.000Z
services/datetime_utils.py
oslokommune/okdata-event-stream-api
42d4c35a30ff784d00117e2d75078699abb7640e
[ "MIT" ]
4
2021-08-04T07:10:20.000Z
2022-03-30T14:14:14.000Z
services/datetime_utils.py
oslokommune/okdata-event-stream-api
42d4c35a30ff784d00117e2d75078699abb7640e
[ "MIT" ]
null
null
null
import pytz import datetime def utc_now_with_timezone(): utc_now = datetime.datetime.utcnow() utc_now = utc_now.replace(tzinfo=pytz.utc) return utc_now
18.444444
46
0.746988
25
166
4.68
0.48
0.25641
0
0
0
0
0
0
0
0
0
0
0.168675
166
8
47
20.75
0.847826
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
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
0
1
0
1
0
0
5
eb840953ee63b8c53e80346aea4361db7727b93d
92
py
Python
cv2/src/shallowflow/cv2/transformers/__init__.py
waikato-datamining/shallow-flow
3f1d99921e5138598eb164edeb1d23e6f199501c
[ "MIT" ]
null
null
null
cv2/src/shallowflow/cv2/transformers/__init__.py
waikato-datamining/shallow-flow
3f1d99921e5138598eb164edeb1d23e6f199501c
[ "MIT" ]
2
2021-08-18T22:00:08.000Z
2021-08-18T22:00:47.000Z
cv2/src/shallowflow/cv2/transformers/__init__.py
waikato-datamining/shallowflow
3f1d99921e5138598eb164edeb1d23e6f199501c
[ "MIT" ]
null
null
null
from ._ImageFileReader import ImageFileReader from ._VideoFileReader import VideoFileReader
30.666667
45
0.891304
8
92
10
0.5
0
0
0
0
0
0
0
0
0
0
0
0.086957
92
2
46
46
0.952381
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
ebbcd6510231737c15e2cf450e1abf2b68e380c7
144
py
Python
seed/__main__.py
Energy-Track-and-Trace/ett-development
956e3e0431d09dcd8961718dfa39fc3eed66af23
[ "Apache-2.0" ]
null
null
null
seed/__main__.py
Energy-Track-and-Trace/ett-development
956e3e0431d09dcd8961718dfa39fc3eed66af23
[ "Apache-2.0" ]
null
null
null
seed/__main__.py
Energy-Track-and-Trace/ett-development
956e3e0431d09dcd8961718dfa39fc3eed66af23
[ "Apache-2.0" ]
null
null
null
""" Seed the system with some data (by publishing Kafka messages). """ from energytt_platform.bus import topics as t from .bus import broker
16
62
0.75
22
144
4.863636
0.863636
0.168224
0
0
0
0
0
0
0
0
0
0
0.173611
144
8
63
18
0.89916
0.430556
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
ebbd9686a0854e04c90f63ee72b5e3d53d6ee471
181
py
Python
hanabi_multiagent_framework/__init__.py
braintimeException/hanabi-multiagent-framework
24007c9f7b8a6150651eb01071215518cb33c67d
[ "MIT" ]
3
2021-02-18T23:29:25.000Z
2021-11-12T19:44:27.000Z
hanabi_multiagent_framework/__init__.py
braintimeException/hanabi-multiagent-framework
24007c9f7b8a6150651eb01071215518cb33c67d
[ "MIT" ]
null
null
null
hanabi_multiagent_framework/__init__.py
braintimeException/hanabi-multiagent-framework
24007c9f7b8a6150651eb01071215518cb33c67d
[ "MIT" ]
6
2020-09-21T21:05:01.000Z
2021-06-23T18:27:26.000Z
from .parallel_session import HanabiParallelSession from .environment import HanabiParallelEnvironment # from hanabi_multiagent_framework.utils.utils import make_hanabi_env_config
45.25
77
0.895028
20
181
7.8
0.7
0
0
0
0
0
0
0
0
0
0
0
0.077348
181
3
78
60.333333
0.934132
0.40884
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
ebcc3bf7ae2ebdae9001aa8f68113c8d38e8a368
93
py
Python
ClassFiles/Python101/Basic/Variables.py
minefarmer/CompletePython
6de46e7ee29d9e4eaada60352c193f552afd6f15
[ "Unlicense" ]
null
null
null
ClassFiles/Python101/Basic/Variables.py
minefarmer/CompletePython
6de46e7ee29d9e4eaada60352c193f552afd6f15
[ "Unlicense" ]
null
null
null
ClassFiles/Python101/Basic/Variables.py
minefarmer/CompletePython
6de46e7ee29d9e4eaada60352c193f552afd6f15
[ "Unlicense" ]
null
null
null
course = "Python 101" name = ("Carl Richard Matson") print(course) # Python 101 print(name)
18.6
30
0.698925
13
93
5
0.615385
0.369231
0.461538
0
0
0
0
0
0
0
0
0.076923
0.16129
93
5
31
18.6
0.75641
0.107527
0
0
0
0
0.353659
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
6901bf3e0bbb731872abb2ddd2af899078d7d213
221
py
Python
niaaml/data/__init__.py
musicinmybrain/NiaAML
58d879cb1d5f8a458bb5cca115e68c125418fc6e
[ "MIT" ]
22
2020-09-01T06:54:40.000Z
2022-03-21T04:13:57.000Z
niaaml/data/__init__.py
musicinmybrain/NiaAML
58d879cb1d5f8a458bb5cca115e68c125418fc6e
[ "MIT" ]
26
2020-09-08T15:22:53.000Z
2022-03-04T01:48:45.000Z
niaaml/data/__init__.py
musicinmybrain/NiaAML
58d879cb1d5f8a458bb5cca115e68c125418fc6e
[ "MIT" ]
19
2020-10-14T11:50:40.000Z
2022-03-04T01:43:49.000Z
from niaaml.data.data_reader import DataReader from niaaml.data.basic_data_reader import BasicDataReader from niaaml.data.csv_data_reader import CSVDataReader __all__ = ["DataReader", "CSVDataReader", "BasicDataReader"]
36.833333
60
0.841629
27
221
6.555556
0.407407
0.169492
0.237288
0
0
0
0
0
0
0
0
0
0.081448
221
5
61
44.2
0.871921
0
0
0
0
0
0.171946
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
692ab27dcc6d1ba66c7d896eda017f92a6450251
71
py
Python
booster/utils/__init__.py
vlievin/booster-pytorch
a8f447160c30224112731a25f90f6f97126a34b2
[ "MIT" ]
4
2019-12-10T06:41:29.000Z
2021-08-06T13:34:59.000Z
booster/utils/__init__.py
vlievin/booster-pytorch
a8f447160c30224112731a25f90f6f97126a34b2
[ "MIT" ]
null
null
null
booster/utils/__init__.py
vlievin/booster-pytorch
a8f447160c30224112731a25f90f6f97126a34b2
[ "MIT" ]
1
2020-08-20T16:12:53.000Z
2020-08-20T16:12:53.000Z
from .ema import EMA from .functional import * from .schedule import *
17.75
25
0.760563
10
71
5.4
0.5
0
0
0
0
0
0
0
0
0
0
0
0.169014
71
3
26
23.666667
0.915254
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
693ecc1c4c5b3e70e6f4392ec8fefa2c42b507d4
37
py
Python
playground/test_demo.py
HackBulgaria/Programming-101-Python-2020-Spring
443446028df7fe78fcdd6c37dada0b5cd8ed3c93
[ "MIT" ]
30
2020-01-22T17:22:43.000Z
2022-01-26T08:28:57.000Z
playground/test_demo.py
HackBulgaria/Programming-101-Python-2020-Spring
443446028df7fe78fcdd6c37dada0b5cd8ed3c93
[ "MIT" ]
1
2020-01-21T19:50:47.000Z
2020-03-18T16:18:31.000Z
playground/test_demo.py
HackBulgaria/Programming-101-Python-2020-Spring
443446028df7fe78fcdd6c37dada0b5cd8ed3c93
[ "MIT" ]
7
2019-11-28T15:59:16.000Z
2020-12-05T08:39:02.000Z
class TestDemo: print('testing')
12.333333
20
0.675676
4
37
6.25
1
0
0
0
0
0
0
0
0
0
0
0
0.189189
37
2
21
18.5
0.833333
0
0
0
0
0
0.189189
0
0
0
0
0
0
1
0
true
0
0
0
0.5
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
693fd4dd0967c949f9e02b70d63ad81870e7edf5
47
py
Python
server/__init__.py
sarthak212/Own-Proxy
a5723f5b86db690b0a255f962d6d910929ddcf4a
[ "MIT" ]
3
2020-06-04T17:28:27.000Z
2020-07-16T12:15:45.000Z
server/__init__.py
sarthak212/Own-Proxy
a5723f5b86db690b0a255f962d6d910929ddcf4a
[ "MIT" ]
null
null
null
server/__init__.py
sarthak212/Own-Proxy
a5723f5b86db690b0a255f962d6d910929ddcf4a
[ "MIT" ]
null
null
null
# This module provide server part of this proxy
47
47
0.808511
8
47
4.75
0.875
0
0
0
0
0
0
0
0
0
0
0
0.170213
47
1
47
47
0.974359
0.957447
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
69706f26b6cd4f5611a4578204f61ca6948e432d
66
py
Python
tests/test_plugin.py
neozenith/poetry-pyinvoke-plugin
6c24f801a50a4426003227005394bd51d1ae2ede
[ "MIT" ]
2
2022-02-17T04:00:03.000Z
2022-02-24T21:43:51.000Z
tests/test_plugin.py
neozenith/poetry-pyinvoke-plugin
6c24f801a50a4426003227005394bd51d1ae2ede
[ "MIT" ]
null
null
null
tests/test_plugin.py
neozenith/poetry-pyinvoke-plugin
6c24f801a50a4426003227005394bd51d1ae2ede
[ "MIT" ]
null
null
null
def test_invoke() -> None: # TODO: add actual testing ...
16.5
30
0.575758
8
66
4.625
1
0
0
0
0
0
0
0
0
0
0
0
0.272727
66
3
31
22
0.770833
0.363636
0
0
0
0
0
0
0
0
0
0.333333
0
1
0.5
true
0
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
1
0
0
0
0
0
0
5
15ecea42e3a109bbc0d823332da9b996ee98f236
66
py
Python
deephyper/benchmark/nas/dixonpriceReg/__init__.py
Z223I/deephyper
4fd1054dc22f15197567bdd93c6e7a95a614b8e2
[ "BSD-3-Clause" ]
185
2018-11-06T18:49:47.000Z
2022-03-31T22:10:41.000Z
deephyper/benchmark/nas/dixonpriceReg/__init__.py
Z223I/deephyper
4fd1054dc22f15197567bdd93c6e7a95a614b8e2
[ "BSD-3-Clause" ]
108
2018-12-17T17:58:05.000Z
2022-03-16T10:22:08.000Z
deephyper/benchmark/nas/dixonpriceReg/__init__.py
Z223I/deephyper
4fd1054dc22f15197567bdd93c6e7a95a614b8e2
[ "BSD-3-Clause" ]
50
2018-12-11T20:41:41.000Z
2022-02-25T19:50:47.000Z
from deephyper.benchmark.nas.dixonpriceReg.problem import Problem
33
65
0.878788
8
66
7.25
0.875
0
0
0
0
0
0
0
0
0
0
0
0.060606
66
1
66
66
0.935484
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
c60fa3e13abc2b0b38a359a312e679e0fcc5a0d9
63
py
Python
pyreferrer/__init__.py
douglas/pyreferrer
40c833c86f76ba607df979cfa2a387c897380042
[ "MIT" ]
null
null
null
pyreferrer/__init__.py
douglas/pyreferrer
40c833c86f76ba607df979cfa2a387c897380042
[ "MIT" ]
null
null
null
pyreferrer/__init__.py
douglas/pyreferrer
40c833c86f76ba607df979cfa2a387c897380042
[ "MIT" ]
1
2016-04-25T14:46:42.000Z
2016-04-25T14:46:42.000Z
from __future__ import absolute_import from .referrer import *
21
38
0.84127
8
63
6
0.625
0
0
0
0
0
0
0
0
0
0
0
0.126984
63
2
39
31.5
0.872727
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
c6281a7df457dd91957c95689e61faa59451184e
114
py
Python
pronto/utils/impl.py
flying-sheep/pronto
37126293472293b4bb3f406b41198a351fec4542
[ "MIT" ]
null
null
null
pronto/utils/impl.py
flying-sheep/pronto
37126293472293b4bb3f406b41198a351fec4542
[ "MIT" ]
null
null
null
pronto/utils/impl.py
flying-sheep/pronto
37126293472293b4bb3f406b41198a351fec4542
[ "MIT" ]
null
null
null
try: import lxml.etree as etree except ImportError: import xml.etree.ElementTree as etree # type: ignore
22.8
57
0.736842
16
114
5.25
0.6875
0.166667
0
0
0
0
0
0
0
0
0
0
0.201754
114
4
58
28.5
0.923077
0.105263
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
c62c9783bfe82bdcf212c2c4ce65536ec3efa006
96
py
Python
Demo Program/ex2.py
HelloYeew/helloyeew-lab-computer-programming-i
60b05072f32f23bab4a336b506ba7f66e52c045d
[ "MIT" ]
null
null
null
Demo Program/ex2.py
HelloYeew/helloyeew-lab-computer-programming-i
60b05072f32f23bab4a336b506ba7f66e52c045d
[ "MIT" ]
null
null
null
Demo Program/ex2.py
HelloYeew/helloyeew-lab-computer-programming-i
60b05072f32f23bab4a336b506ba7f66e52c045d
[ "MIT" ]
null
null
null
def print_hello(name=''): print('Hello,'+name) name = 'Ann' name2 = 'Bob' print_hello(name2)
19.2
25
0.65625
14
96
4.357143
0.5
0.491803
0.459016
0
0
0
0
0
0
0
0
0.024096
0.135417
96
5
26
19.2
0.710843
0
0
0
0
0
0.123711
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0.6
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
c644243b989d34874961b0dc5c5504c1da642e4e
97
py
Python
tests/conftest.py
BuddingLab/auth_swust
b47747e5ee207449708cc411bb57ff2e413c4c95
[ "MIT" ]
5
2019-09-02T12:40:42.000Z
2020-02-20T04:40:14.000Z
tests/conftest.py
Kelab/auth_swust
b47747e5ee207449708cc411bb57ff2e413c4c95
[ "MIT" ]
3
2020-05-04T14:10:57.000Z
2021-01-08T16:04:53.000Z
tests/conftest.py
Kelab/auth_swust
b47747e5ee207449708cc411bb57ff2e413c4c95
[ "MIT" ]
2
2020-02-20T07:01:07.000Z
2020-04-05T18:29:47.000Z
import os from dotenv import load_dotenv load_dotenv(verbose=True) os.environ["no_proxy"] = "*"
16.166667
30
0.762887
15
97
4.733333
0.666667
0.28169
0
0
0
0
0
0
0
0
0
0
0.113402
97
5
31
19.4
0.825581
0
0
0
0
0
0.092784
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
c651b5aa3687e514190bb4cc137507d21c025afc
86
py
Python
service-domain-example/domain/__init__.py
emperorcezar/architecture-examples
d9ea3950ec03ff5761780d839876f7b96e3d14c9
[ "MIT" ]
null
null
null
service-domain-example/domain/__init__.py
emperorcezar/architecture-examples
d9ea3950ec03ff5761780d839876f7b96e3d14c9
[ "MIT" ]
null
null
null
service-domain-example/domain/__init__.py
emperorcezar/architecture-examples
d9ea3950ec03ff5761780d839876f7b96e3d14c9
[ "MIT" ]
null
null
null
from sub_domain import service as sub_domain_service __all__ = ('sub_domain_service')
28.666667
52
0.837209
13
86
4.846154
0.538462
0.428571
0.507937
0
0
0
0
0
0
0
0
0
0.104651
86
3
53
28.666667
0.818182
0
0
0
0
0
0.206897
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
d67a631f6c77a410e182263f2680cf544b843283
6,028
py
Python
lda_svm.py
lliutianc/stats700proj
7697dbbc3d16078f9d03be3fa96c9d518fd62661
[ "MIT" ]
1
2020-11-19T09:24:02.000Z
2020-11-19T09:24:02.000Z
lda_svm.py
lliutianc/stats700proj
7697dbbc3d16078f9d03be3fa96c9d518fd62661
[ "MIT" ]
null
null
null
lda_svm.py
lliutianc/stats700proj
7697dbbc3d16078f9d03be3fa96c9d518fd62661
[ "MIT" ]
1
2020-10-13T21:58:53.000Z
2020-10-13T21:58:53.000Z
import argparse, os, time, pickle import tomotopy as tp import numpy as np import matplotlib.pyplot as plt from sklearn.linear_model import SGDClassifier from sklearn.svm import LinearSVC from sklearn.metrics import accuracy_score from data import * from util import * from lda_trial import * def main(args): trainset = IMDBDataset('train', data_limit=20_000) validset = IMDBDataset('valid') if args.task == 'k': n = 20000 ks = [2, 5, 10, 20, 50] train_accu = [0 for _ in range(len(ks))] test_accu = [0 for _ in range(len(ks))] times = [0 for _ in range(len(ks))] for _ in range(3): for idx, k in enumerate(ks): print(f'{k}.') start = time.time() trained_model, final_metric = tp_one_trial(trainset, args.model, k, n, 3, 5, # args.burn_in, max_iter=1000, stop_increase=5, metric='ll') times[idx] += time.time() - start lda_x, lda_y = load_LDA_data_batch(trained_model, trainset) model = LinearSVC() model.fit(lda_x, lda_y) prediction = model.predict(lda_x) ground_truth = lda_y print(f'Train: {100*accuracy_score(prediction, ground_truth):6.5f}%') train_accu[idx] += accuracy_score(prediction, ground_truth) lda_x, lda_y = load_LDA_data_batch(trained_model, validset) prediction = model.predict(lda_x) ground_truth = lda_y print(f'Test: {100*accuracy_score(prediction, ground_truth):6.5f}%') test_accu[idx] += accuracy_score(prediction, ground_truth) print('-' * 100) if args.task == 'n': k = 20 ns = [3_000, 5_000, 10_000, 15_000, 20_000] train_accu = [0 for _ in range(len(ns))] test_accu = [0 for _ in range(len(ns))] times = [0 for _ in range(len(ns))] for _ in range(3): for idx, k in enumerate(ns): print(f'{k}.') start = time.time() trained_model, final_metric = tp_one_trial(trainset, args.model, k, n, 3, 5, # args.burn_in, max_iter=1000, stop_increase=5, metric='ll') times[idx] += time.time() - start lda_x, lda_y = load_LDA_data_batch(trained_model, trainset) model = LinearSVC() model.fit(lda_x, lda_y) prediction = model.predict(lda_x) ground_truth = lda_y print(f'Train: {100*accuracy_score(prediction, ground_truth):6.5f}%') train_accu[idx] += accuracy_score(prediction, ground_truth) lda_x, lda_y = load_LDA_data_batch(trained_model, validset) prediction = model.predict(lda_x) ground_truth = lda_y print(f'Test: {100*accuracy_score(prediction, ground_truth):6.5f}%') test_accu[idx] += accuracy_score(prediction, ground_truth) print('-' * 100) train_accu = [accu / rep for accu in train_accu] test_accu = [accu / rep for accu in test_accu] times = [accu / rep for accu in times] print(train_accu) print(test_accu) print(times) print(task, args.model) if __name__ == '__main__': cur_path = os.path.abspath(os.path.dirname(__file__)) result_path = os.path.join(cur_path, 'result') make_dirs(result_path) parser = argparse.ArgumentParser(description="Stat700proj experiment") parser.add_argument("--model", type=str, choices=['lda', 'ctm', "slda"], default='lda') parser.add_argument("--rep_times", type=int, default=3) # train parser.add_argument("--task", type=str, default='k') parser.add_argument("--n", type=int, default=20_000) parser.add_argument("--k", type=int, default=20) # Other parser.add_argument("--rm_top", type=int, default=5) parser.add_argument("--min_cf", type=int, default=3) # parser.add_argument("--burn_in", type=int, default=500) args = parser.parse_args() trainset = IMDBDataset('train', data_limit=20_000) validset = IMDBDataset('valid') # n = 20000 # ks = [2, 5, 10, 20, 50] # train_accu = [0 for _ in range(len(ks))] # test_accu = [0 for _ in range(len(ks))] # times = [0 for _ in range(len(ks))] # for _ in range(3): # for idx, k in enumerate(ks): # print(f'{k}.') # start = time.time() # trained_model, final_metric = tp_one_trial(trainset, args.model, k, n, # 3, 5, # args.burn_in, # max_iter=1000, stop_increase=5, metric='ll') # times[idx] += time.time() - start # lda_x, lda_y = load_LDA_data_batch(trained_model, trainset) # model = LinearSVC() # model.fit(lda_x, lda_y) # prediction = model.predict(lda_x) # ground_truth = lda_y # print(f'Train: {100*accuracy_score(prediction, ground_truth):6.5f}%') # train_accu[idx] += accuracy_score(prediction, ground_truth) # lda_x, lda_y = load_LDA_data_batch(trained_model, validset) # prediction = model.predict(lda_x) # ground_truth = lda_y # print(f'Test: {100*accuracy_score(prediction, ground_truth):6.5f}%') # test_accu[idx] += accuracy_score(prediction, ground_truth) # print('-' * 100) # train_accu = [accu / rep for accu in train_accu] # test_accu = [accu / rep for accu in test_accu] # times = [accu / rep for accu in times] # print(train_accu) # print(test_accu) # print(times) main(args)
40.72973
102
0.554413
757
6,028
4.171731
0.157199
0.062698
0.037999
0.110196
0.739075
0.739075
0.732426
0.716909
0.716909
0.707726
0
0.0367
0.326476
6,028
147
103
41.006803
0.741133
0.244526
0
0.488889
0
0
0.081063
0.027464
0
0
0
0
0
1
0.011111
false
0
0.111111
0
0.122222
0.133333
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
d6982f7b0042ee1b110d8c4cfdea9792c4f2d1a3
39
py
Python
augmenty/lang/fr/__init__.py
koaning/augmenty
13dbdbb5fd56b36c97678ae48d1e0d869987f6dd
[ "MIT" ]
null
null
null
augmenty/lang/fr/__init__.py
koaning/augmenty
13dbdbb5fd56b36c97678ae48d1e0d869987f6dd
[ "MIT" ]
1
2022-03-12T02:25:00.000Z
2022-03-12T02:26:01.000Z
augmenty/lang/fr/__init__.py
HishamKhdair/augmenty
a65a7beac410f53706bb7838026f2bac9b89d544
[ "MIT" ]
null
null
null
from .keyboard import create_qwerty_fr
19.5
38
0.871795
6
39
5.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.102564
39
1
39
39
0.914286
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
d6d3cf399d692646f81f3660cd308c2e9a32466f
92
py
Python
todolist/admin.py
mastershaig/todoapp
38987db14f9e543cb01153cc84e1f67b445e07ec
[ "Apache-2.0" ]
1
2021-02-01T14:37:47.000Z
2021-02-01T14:37:47.000Z
todolist/admin.py
mastershaig/todoapp
38987db14f9e543cb01153cc84e1f67b445e07ec
[ "Apache-2.0" ]
4
2021-02-01T14:32:45.000Z
2022-02-10T07:31:39.000Z
todolist/admin.py
mastershaig/todoapp
38987db14f9e543cb01153cc84e1f67b445e07ec
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import Todolist admin.site.register(Todolist)
23
32
0.836957
13
92
5.923077
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.097826
92
4
33
23
0.927711
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
d6e4ca40d00e3ea719668eaa37d750e39d9c1e4e
91
py
Python
tests/test_simple_cmne.py
brain-link/cmne
0d87e0bcd0041b250ee484f39341a0bf83f72949
[ "MIT" ]
null
null
null
tests/test_simple_cmne.py
brain-link/cmne
0d87e0bcd0041b250ee484f39341a0bf83f72949
[ "MIT" ]
null
null
null
tests/test_simple_cmne.py
brain-link/cmne
0d87e0bcd0041b250ee484f39341a0bf83f72949
[ "MIT" ]
1
2022-03-15T12:28:20.000Z
2022-03-15T12:28:20.000Z
from datetime import datetime def test_is_float(): assert 1 > 0 assert not 2 < 1
13
29
0.67033
15
91
3.933333
0.8
0
0
0
0
0
0
0
0
0
0
0.060606
0.274725
91
7
30
13
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.5
1
0.25
true
0
0.25
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
1
0
0
0
0
0
0
5
ba587c7869d49c5c349e7ea4003fbdd6cdd03c28
51
py
Python
test_scripts/pwd.py
mgood/lola
8a2738f9a875358c412447f0d48359c9480daa07
[ "BSD-3-Clause" ]
1
2018-10-10T06:54:32.000Z
2018-10-10T06:54:32.000Z
test_scripts/pwd.py
mgood/lola
8a2738f9a875358c412447f0d48359c9480daa07
[ "BSD-3-Clause" ]
null
null
null
test_scripts/pwd.py
mgood/lola
8a2738f9a875358c412447f0d48359c9480daa07
[ "BSD-3-Clause" ]
null
null
null
import os import sys sys.stdout.write(os.getcwd())
12.75
29
0.764706
9
51
4.333333
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.098039
51
3
30
17
0.847826
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
ba5a3dcbad27155eab7f85f1717ac69da0896913
586
py
Python
highcharts/views/__init__.py
ernestoarbitrio/django-highcharts
644c2b3eeb478836b9916dbf31ce9f67478c9da1
[ "BSD-3-Clause" ]
53
2015-01-21T15:43:20.000Z
2022-03-29T15:22:52.000Z
highcharts/views/__init__.py
IronOnet/django-highcharts-1
644c2b3eeb478836b9916dbf31ce9f67478c9da1
[ "BSD-3-Clause" ]
3
2017-01-05T12:31:21.000Z
2018-05-09T15:29:02.000Z
highcharts/views/__init__.py
IronOnet/django-highcharts-1
644c2b3eeb478836b9916dbf31ce9f67478c9da1
[ "BSD-3-Clause" ]
28
2015-01-21T16:09:02.000Z
2022-03-29T15:33:35.000Z
from highcharts.views.bar import HighChartsBarView from highcharts.views.line import HighChartsLineView from highcharts.views.area import HighChartsAreaView from highcharts.views.multiple_axes import HighChartsMultiAxesView from highcharts.views.pie import HighChartsPieView from highcharts.views.speedometer import HighChartsSpeedometerView from highcharts.views.multiple_axes import HighChartsStockView from highcharts.views.heatmap import HighChartsHeatMapView from highcharts.views.polar import HighChartsPolarView from highcharts.views.multiple_axes import HighChartsMultiXAxesView
58.6
67
0.899317
63
586
8.31746
0.365079
0.267176
0.362595
0.15458
0.211832
0.211832
0
0
0
0
0
0
0.066553
586
10
67
58.6
0.957952
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
ba6ecff0891fed0d20189b176493e2424a1e7c37
86
py
Python
wrappers/python/pyrealsense2/__init__.py
seagull1993/librealsense
18cf36775c16efd1f727b656c7e88a928a53a427
[ "Apache-2.0" ]
6,457
2016-01-21T03:56:07.000Z
2022-03-31T11:57:15.000Z
wrappers/python/pyrealsense2/__init__.py
seagull1993/librealsense
18cf36775c16efd1f727b656c7e88a928a53a427
[ "Apache-2.0" ]
8,393
2016-01-21T09:47:28.000Z
2022-03-31T22:21:42.000Z
wrappers/python/pyrealsense2/__init__.py
seagull1993/librealsense
18cf36775c16efd1f727b656c7e88a928a53a427
[ "Apache-2.0" ]
4,874
2016-01-21T09:20:08.000Z
2022-03-31T15:18:00.000Z
# py libs (pyd/so) should be copied to pyrealsense2 folder from .pyrealsense2 import *
43
58
0.77907
13
86
5.153846
0.923077
0
0
0
0
0
0
0
0
0
0
0.027397
0.151163
86
2
59
43
0.890411
0.651163
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
baff1c29aae9c3590ad861ad486bb2308df38ba2
150
py
Python
fileio/pyfits.py
exoplanetvetting/DAVE
aea19a30d987b214fb4c0cf01aa733f127c411b9
[ "MIT" ]
7
2019-05-07T02:01:51.000Z
2022-03-16T08:09:39.000Z
fileio/pyfits.py
barentsen/dave
45ba97b7b535ad26dd555c33c963c6224a9af23c
[ "MIT" ]
18
2015-12-09T22:18:59.000Z
2017-04-26T13:11:44.000Z
fileio/pyfits.py
barentsen/dave
45ba97b7b535ad26dd555c33c963c6224a9af23c
[ "MIT" ]
5
2017-03-08T11:42:53.000Z
2020-05-07T00:10:37.000Z
#Much of fergal's code imports pyfits. So this module stops python #complaining because pyfits doesn't exist anymore. from astropy.io.fits import *
25
66
0.786667
24
150
4.916667
0.958333
0
0
0
0
0
0
0
0
0
0
0
0.153333
150
5
67
30
0.929134
0.76
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
240054a8fa100a69d3bbf324102d302133ee6e3b
174
py
Python
hubconf.py
megvii-model/FunnelAct
8a9cdc67b55b1a226ecc0e65971340043d740551
[ "MIT" ]
178
2020-07-23T04:23:59.000Z
2022-02-11T07:42:27.000Z
hubconf.py
megvii-model/FunnelAct
8a9cdc67b55b1a226ecc0e65971340043d740551
[ "MIT" ]
13
2020-07-27T10:42:51.000Z
2021-09-25T02:31:51.000Z
hubconf.py
megvii-model/FunnelAct
8a9cdc67b55b1a226ecc0e65971340043d740551
[ "MIT" ]
21
2020-07-24T05:27:22.000Z
2021-11-29T12:42:55.000Z
import sys sys.path.insert(0, "resnet") sys.path.insert(0, "shufflenetv2") from resnet import ( resnet50_frelu, ) from shufflenet_v2 import ( shufflenet_v2_x0_5, )
14.5
34
0.724138
25
174
4.84
0.56
0.115702
0.214876
0.231405
0
0
0
0
0
0
0
0.061644
0.16092
174
11
35
15.818182
0.767123
0
0
0
0
0
0.103448
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
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
0
0
0
5
79fc27f526e476d5576a1c02e9d73b68d6d3af61
113
py
Python
QRCodeLib/qrcodelib/__init__.py
yas78/QRCodeLibPy
7b2c489b5e38aa23619ae41bff7a31993885275b
[ "MIT" ]
null
null
null
QRCodeLib/qrcodelib/__init__.py
yas78/QRCodeLibPy
7b2c489b5e38aa23619ae41bff7a31993885275b
[ "MIT" ]
1
2019-11-04T13:44:44.000Z
2019-11-04T13:44:44.000Z
QRCodeLib/qrcodelib/__init__.py
yas78/QRCodeLibPy
7b2c489b5e38aa23619ae41bff7a31993885275b
[ "MIT" ]
null
null
null
from .error_correction_level import ErrorCorrectionLevel from .symbol import Symbol from .symbols import Symbols
28.25
56
0.867257
14
113
6.857143
0.571429
0
0
0
0
0
0
0
0
0
0
0
0.106195
113
3
57
37.666667
0.950495
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
03025d65f9f71eb6fe6edcd9b034ed9ad1170b03
79
py
Python
widgets/__init__.py
mensch272/sudoku
a8ae68e27a2ac98e9087a332a7093f903f0bb1a3
[ "Apache-2.0" ]
5
2020-01-18T00:55:21.000Z
2020-01-21T11:14:53.000Z
widgets/__init__.py
mHaisham/sudoku
a8ae68e27a2ac98e9087a332a7093f903f0bb1a3
[ "Apache-2.0" ]
null
null
null
widgets/__init__.py
mHaisham/sudoku
a8ae68e27a2ac98e9087a332a7093f903f0bb1a3
[ "Apache-2.0" ]
4
2020-01-18T04:52:57.000Z
2020-01-21T12:09:18.000Z
from .subgrid import SubGrid from .tile import GridTile from .grid import Grid
19.75
28
0.810127
12
79
5.333333
0.5
0
0
0
0
0
0
0
0
0
0
0
0.151899
79
3
29
26.333333
0.955224
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
03169fc3c67d82e7dbc9dd2dddf8fad64736ce74
137
py
Python
eval_arch.py
lilujunai/CNAS
f68bb46031597725196c3be3c301dd5853eaf08d
[ "BSD-3-Clause" ]
17
2020-06-23T10:41:23.000Z
2021-11-10T13:39:03.000Z
eval_arch.py
guoyongcs/CNAS
f68bb46031597725196c3be3c301dd5853eaf08d
[ "BSD-3-Clause" ]
null
null
null
eval_arch.py
guoyongcs/CNAS
f68bb46031597725196c3be3c301dd5853eaf08d
[ "BSD-3-Clause" ]
4
2021-04-16T08:31:41.000Z
2021-09-14T10:56:46.000Z
from cnas.evaluation.core.config import args from cnas.evaluation.eval import eval_entry if __name__ == "__main__": eval_entry(args)
27.4
44
0.788321
20
137
4.9
0.6
0.163265
0.367347
0
0
0
0
0
0
0
0
0
0.124088
137
5
45
27.4
0.816667
0
0
0
0
0
0.057971
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
031cb3033a9d3fda64f5527f5d69d3b58d302676
152
py
Python
leo/plugins/writers/__init__.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
1,550
2015-01-14T16:30:37.000Z
2022-03-31T08:55:58.000Z
leo/plugins/writers/__init__.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
2,009
2015-01-13T16:28:52.000Z
2022-03-31T18:21:48.000Z
leo/plugins/writers/__init__.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
200
2015-01-05T15:07:41.000Z
2022-03-07T17:05:01.000Z
#@+leo-ver=5-thin #@+node:ekr.20140726091031.18152: * @file ../plugins/writers/__init__.py # A dummy file to make leo.plugins.writers a package. #@-leo
30.4
72
0.717105
24
152
4.375
0.75
0.266667
0
0
0
0
0
0
0
0
0
0.145985
0.098684
152
4
73
38
0.620438
0.947368
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
0323b35a0fc2ef21ac417857d9336cc7c8a3b717
93
py
Python
src/glow_tts/hifi/__init__.py
techthiyanes/vakyansh-tts
4612b386e0e604fe892ec03e8cb1227eabc6080c
[ "MIT" ]
35
2022-01-14T14:46:58.000Z
2022-03-29T18:20:24.000Z
src/glow_tts/hifi/__init__.py
charangonuguntla/vakyansh-tts
b090eb0aa3b36cf19de99902da7caef959dad45b
[ "MIT" ]
2
2022-03-15T10:35:20.000Z
2022-03-25T05:50:45.000Z
src/glow_tts/hifi/__init__.py
charangonuguntla/vakyansh-tts
b090eb0aa3b36cf19de99902da7caef959dad45b
[ "MIT" ]
9
2022-01-14T15:35:21.000Z
2022-03-15T08:28:29.000Z
from .env import AttrDict from .models import Generator if __name__ == "__main__": pass
15.5
29
0.731183
12
93
5
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.193548
93
5
30
18.6
0.8
0
0
0
0
0
0.086022
0
0
0
0
0
0
1
0
true
0.25
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
5
03767254e74fd15998163e88e85b0d3d4c413222
493
py
Python
mooc50-bobo-DS/pythonNicemayi/chapter_12_AVLTree/avl_set.py
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
2
2019-03-20T17:05:59.000Z
2019-10-15T07:56:45.000Z
mooc50-bobo-DS/pythonNicemayi/chapter_12_AVLTree/avl_set.py
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
6
2019-12-04T06:08:32.000Z
2021-05-10T20:22:47.000Z
mooc50-bobo-DS/pythonNicemayi/chapter_12_AVLTree/avl_set.py
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
null
null
null
from chapter_12_AVLTree.base import SetBase from chapter_12_AVLTree.avl_tree import AVLTree class AVLSet(SetBase): def __init__(self): self._avl = AVLTree() def get_size(self): return self._avl.get_size() def is_empty(self): return self._avl.is_empty() def add(self, key): return self._avl.add(key, None) def contains(self, key): return self._avl.contains(key) def remove(self, key): return self._avl.remove(key)
20.541667
47
0.655172
70
493
4.342857
0.342857
0.138158
0.213816
0.167763
0.197368
0
0
0
0
0
0
0.010695
0.241379
493
23
48
21.434783
0.802139
0
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.133333
0.333333
0.933333
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
037739d42011339e5b2e002c040ad6e237d34c7d
69
py
Python
client/src/state/state.py
juan-nunez/Space_combat
e732ef932e89c404827ac0c96aebb4f0446cefdf
[ "MIT" ]
null
null
null
client/src/state/state.py
juan-nunez/Space_combat
e732ef932e89c404827ac0c96aebb4f0446cefdf
[ "MIT" ]
null
null
null
client/src/state/state.py
juan-nunez/Space_combat
e732ef932e89c404827ac0c96aebb4f0446cefdf
[ "MIT" ]
null
null
null
class State: def __init__(self): pass def update(self): pass
8.625
20
0.666667
10
69
4.2
0.7
0.380952
0
0
0
0
0
0
0
0
0
0
0.231884
69
8
21
8.625
0.792453
0
0
0.4
0
0
0
0
0
0
0
0
0
1
0.4
false
0.4
0
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
5
3026f4cbfe9581c16fb88b00b8eeb09a32a4279d
50
py
Python
pdip/integrator/integration/types/target/base/__init__.py
ahmetcagriakca/pdip
c4c16d5666a740154cabdc6762cd44d98b7bdde8
[ "MIT" ]
2
2021-12-09T21:07:46.000Z
2021-12-11T22:18:01.000Z
pdip/integrator/integration/types/target/base/__init__.py
PythonDataIntegrator/pdip
c4c16d5666a740154cabdc6762cd44d98b7bdde8
[ "MIT" ]
null
null
null
pdip/integrator/integration/types/target/base/__init__.py
PythonDataIntegrator/pdip
c4c16d5666a740154cabdc6762cd44d98b7bdde8
[ "MIT" ]
3
2021-11-15T00:47:00.000Z
2021-12-17T11:35:45.000Z
from .target_integration import TargetIntegration
25
49
0.9
5
50
8.8
1
0
0
0
0
0
0
0
0
0
0
0
0.08
50
1
50
50
0.956522
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
303ac183c60b664306c055aa076516ba6b4e7bc5
135
py
Python
app_setup_basic/routing.py
iZonex/app_setup_basic
3693fcb7a99c8799d1ce2ce445b2ed03bafc46eb
[ "MIT" ]
null
null
null
app_setup_basic/routing.py
iZonex/app_setup_basic
3693fcb7a99c8799d1ce2ce445b2ed03bafc46eb
[ "MIT" ]
null
null
null
app_setup_basic/routing.py
iZonex/app_setup_basic
3693fcb7a99c8799d1ce2ce445b2ed03bafc46eb
[ "MIT" ]
null
null
null
from .web_handlers import handle def router_setup(app): app.router.add_get('/', handle) app.router.add_get('/{name}', handle)
22.5
41
0.696296
20
135
4.5
0.6
0.2
0.266667
0.333333
0
0
0
0
0
0
0
0
0.140741
135
5
42
27
0.775862
0
0
0
0
0
0.059259
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
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
1
0
0
0
0
0
0
0
5
304a2dea7f4919c02420f1592652113e6fc9a8d8
86
py
Python
src/test_factorial.py
jeffs/nested-watch
83916907d520368a3acd9926c21c645acb32ef50
[ "Apache-2.0" ]
null
null
null
src/test_factorial.py
jeffs/nested-watch
83916907d520368a3acd9926c21c645acb32ef50
[ "Apache-2.0" ]
null
null
null
src/test_factorial.py
jeffs/nested-watch
83916907d520368a3acd9926c21c645acb32ef50
[ "Apache-2.0" ]
null
null
null
from factorial import factorial def test_factorial(): assert 120 == factorial(5)
17.2
31
0.744186
11
86
5.727273
0.727273
0
0
0
0
0
0
0
0
0
0
0.056338
0.174419
86
4
32
21.5
0.830986
0
0
0
0
0
0
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
306fe439d29a709fc656c99a69e79bb143ca50ac
367
py
Python
tasks.py
ecohealthalliance/grits-api
e8a3b12785bf362c8c12afbc4cc55ca8de8485ce
[ "Apache-2.0" ]
3
2017-07-27T15:57:51.000Z
2018-06-02T09:05:00.000Z
tasks.py
ecohealthalliance/grits-api
e8a3b12785bf362c8c12afbc4cc55ca8de8485ce
[ "Apache-2.0" ]
19
2016-05-06T13:01:33.000Z
2022-03-11T23:13:25.000Z
tasks.py
ecohealthalliance/grits-api
e8a3b12785bf362c8c12afbc4cc55ca8de8485ce
[ "Apache-2.0" ]
2
2017-07-12T04:25:06.000Z
2020-01-06T19:42:02.000Z
# This is intended to prevent the celery worker from running if the # classifier has not been trained. with open('current_classifier/classifier.p') as f: pass with open('current_classifier/dict_vectorizer.p') as f: pass with open('current_classifier/keyword_array.p') as f: pass import tasks_preprocess import tasks_diagnose from tasks_preprocess import celery_tasks
40.777778
67
0.820163
58
367
5.034483
0.534483
0.082192
0.15411
0.256849
0.226027
0.226027
0.226027
0.226027
0
0
0
0
0.114441
367
8
68
45.875
0.898462
0.26703
0
0
0
0
0.379699
0.379699
0
0
0
0
0
1
0
true
0.5
0.5
0
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
5
061a2577d1371e75ef9d7230595f829d966cb813
316
py
Python
toss/helpers/api/viewsets.py
toss-app/toss-backend
66765bb350cb165340163ce34186dfc69d38dc02
[ "Apache-2.0" ]
null
null
null
toss/helpers/api/viewsets.py
toss-app/toss-backend
66765bb350cb165340163ce34186dfc69d38dc02
[ "Apache-2.0" ]
1
2016-10-22T21:32:35.000Z
2016-10-22T21:32:35.000Z
toss/helpers/api/viewsets.py
toss-app/toss-backend
66765bb350cb165340163ce34186dfc69d38dc02
[ "Apache-2.0" ]
null
null
null
from rest_framework import viewsets from rest_framework.authentication import TokenAuthentication from rest_framework.permissions import IsAuthenticated, AllowAny class AuthenticatedModelViewSet(viewsets.ModelViewSet): authentication_classes = (TokenAuthentication,) permission_classes = (IsAuthenticated,)
39.5
64
0.857595
28
316
9.5
0.535714
0.090226
0.191729
0
0
0
0
0
0
0
0
0
0.094937
316
7
65
45.142857
0.93007
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
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
065ab3f77fb7ee40c6cdd39b9255d9177063ef3e
175
py
Python
src/tests/conftest.py
ghandic/6502Emulator
e647f86e5af777a2e0d8bccc50522e6db4e39162
[ "MIT" ]
null
null
null
src/tests/conftest.py
ghandic/6502Emulator
e647f86e5af777a2e0d8bccc50522e6db4e39162
[ "MIT" ]
null
null
null
src/tests/conftest.py
ghandic/6502Emulator
e647f86e5af777a2e0d8bccc50522e6db4e39162
[ "MIT" ]
null
null
null
import warnings import pytest from ..emulator.m6502 import CPU warnings.filterwarnings("ignore", category=DeprecationWarning) @pytest.fixture def cpu(): return CPU()
13.461538
62
0.765714
20
175
6.7
0.7
0
0
0
0
0
0
0
0
0
0
0.02649
0.137143
175
12
63
14.583333
0.860927
0
0
0
0
0
0.034286
0
0
0
0
0
0
1
0.142857
true
0
0.428571
0.142857
0.714286
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
1
1
0
0
5
23251de813a5e64394210dd5a492970ba5c385a2
47
py
Python
objects/messages.py
iDoppioclick/MarksBot
5b26730e838b44772e71d26b4d53d5ec23960a20
[ "MIT" ]
4
2019-01-30T15:05:54.000Z
2021-02-24T16:12:47.000Z
objects/messages.py
iDoppioclick/MarksBot
5b26730e838b44772e71d26b4d53d5ec23960a20
[ "MIT" ]
null
null
null
objects/messages.py
iDoppioclick/MarksBot
5b26730e838b44772e71d26b4d53d5ec23960a20
[ "MIT" ]
2
2019-01-30T15:08:48.000Z
2020-10-04T09:56:33.000Z
def command_not_found(chat, message): pass
15.666667
37
0.744681
7
47
4.714286
1
0
0
0
0
0
0
0
0
0
0
0
0.170213
47
2
38
23.5
0.846154
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
235cba6c221ab4c5cf992e174fe5fec37fc0f49b
220
py
Python
BOJ/15000~15999/15637.py
shinkeonkim/today-ps
f3e5e38c5215f19579bb0422f303a9c18c626afa
[ "Apache-2.0" ]
2
2020-01-29T06:54:41.000Z
2021-11-07T13:23:27.000Z
BOJ/15000~15999/15637.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
BOJ/15000~15999/15637.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
L = [0, 103, 88, 91, 99, 101, 86, 96, 100, 71, 91, 96, 91, 98, 102, 96, 85, 102, 97, 91, 112, 85, 79, 86, 91, 97, 98, 110, 80, 88, 80, 95, 83, 93, 109, 88, 91, 103, 90, 95, 113, 81, 86, 97, 93, 93] print(L[int(input())])
110
197
0.527273
51
220
2.27451
0.568627
0.068966
0
0
0
0
0
0
0
0
0
0.587209
0.218182
220
2
198
110
0.087209
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
23750c4c0f0e857e98e0109e5b3e9e785e4a25e3
98
py
Python
virtual/balance_sheet.py
PyUnchained/books
656d375765300accb1767a8ab1bf4b96c884539f
[ "MIT" ]
null
null
null
virtual/balance_sheet.py
PyUnchained/books
656d375765300accb1767a8ab1bf4b96c884539f
[ "MIT" ]
14
2019-10-23T00:01:18.000Z
2022-03-11T23:38:52.000Z
virtual/balance_sheet.py
PyUnchained/books
656d375765300accb1767a8ab1bf4b96c884539f
[ "MIT" ]
null
null
null
def balance_sheet_table(virtual_journal): if virtual_journal.rule.preset == 'BS': pass
32.666667
43
0.714286
13
98
5.076923
0.846154
0.424242
0
0
0
0
0
0
0
0
0
0
0.183673
98
3
44
32.666667
0.825
0
0
0
0
0
0.020202
0
0
0
0
0
0
1
0.333333
false
0.333333
0
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
1
0
1
0
0
0
0
0
5
88c67622143bd76140310d552a348be06da77b4d
82
py
Python
session1/happy.py
aiyer786/wuba-luba-dub-dub
efa9d9c75456016fe7f6becad82a831593d87aa9
[ "MIT" ]
null
null
null
session1/happy.py
aiyer786/wuba-luba-dub-dub
efa9d9c75456016fe7f6becad82a831593d87aa9
[ "MIT" ]
null
null
null
session1/happy.py
aiyer786/wuba-luba-dub-dub
efa9d9c75456016fe7f6becad82a831593d87aa9
[ "MIT" ]
1
2020-09-16T10:21:02.000Z
2020-09-16T10:21:02.000Z
print "Uhh Morty, uh yeah next thing on interdimensional tv is Aditya Iyer's Show"
82
82
0.792683
15
82
4.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.158537
82
1
82
82
0.942029
0
0
0
0
0
0.891566
0
0
0
0
0
0
0
null
null
0
0
null
null
1
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
1
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
5
004990c134676856f8c2985107cb511627a018b0
2,027
py
Python
tests/unit_tests/test_import.py
ecoen66/imcsdk
b10eaa926a5ee57cea7182ae0adc8dd1c818b0ab
[ "Apache-2.0" ]
31
2016-06-14T07:23:59.000Z
2021-09-12T17:17:26.000Z
tests/unit_tests/test_import.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
109
2016-05-25T03:56:56.000Z
2021-10-18T02:58:12.000Z
tests/unit_tests/test_import.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
67
2016-05-17T05:53:56.000Z
2022-03-24T15:52:53.000Z
# Copyright 2015 Cisco Systems, Inc. # # 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. def test_import_imcsdk(): import imcsdk def test_import_imcbasetype(): from imcsdk import imcbasetype def test_import_imcconstants(): from imcsdk import imcconstants def test_import_imccore(): from imcsdk import imccore def test_import_imccoremeta(): from imcsdk import imccoremeta def test_import_imccoreutils(): from imcsdk import imccoreutils def test_import_imcdriver(): from imcsdk import imcdriver def test_import_imceventhandler(): from imcsdk import imceventhandler def test_import_imcexception(): from imcsdk import imcexception def test_import_imcfilter(): from imcsdk import imcfilter def test_import_imcfiltertype(): from imcsdk import imcfiltertype def test_import_imcgenutils(): from imcsdk import imcgenutils def test_import_imchandle(): from imcsdk import imchandle def test_import_imceta(): from imcsdk import imcmeta def test_import_imcethod(): from imcsdk import imcmethod def test_import_imcethodfactory(): from imcsdk import imcmethodfactory def test_import_imco(): from imcsdk import imcmo def test_import_imcsession(): from imcsdk import imcsession def test_import_imcxmlcodec(): from imcsdk import imcxmlcodec def test_import_utils(): import imcsdk.utils def test_import_imcbackup(): from imcsdk.utils import imcbackup def test_import_imctechsupport(): from imcsdk.utils import imctechsupport
19.872549
74
0.771584
266
2,027
5.714286
0.353383
0.101316
0.188158
0.021053
0
0
0
0
0
0
0
0.004788
0.175629
2,027
101
75
20.069307
0.904847
0.272324
0
0
0
0
0
0
0
0
0
0
0
1
0.5
true
0
1
0
1.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
5
cc46308c0801864cdb11e1eb1e38f2386e057724
107
py
Python
apps/stats/admin.py
karpiq24/django-klima-kar
e62e79c66053749e249f55e1ab47f810f449f0aa
[ "MIT" ]
2
2018-01-23T22:38:57.000Z
2019-07-14T08:59:19.000Z
apps/stats/admin.py
karpiq24/django-klima-kar
e62e79c66053749e249f55e1ab47f810f449f0aa
[ "MIT" ]
237
2018-08-15T23:13:52.000Z
2022-01-13T13:08:50.000Z
apps/stats/admin.py
karpiq24/django-klima-kar
e62e79c66053749e249f55e1ab47f810f449f0aa
[ "MIT" ]
null
null
null
from django.contrib import admin from apps.stats.models import ReceiptPTU admin.site.register(ReceiptPTU)
21.4
40
0.841121
15
107
6
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.093458
107
4
41
26.75
0.927835
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
cc6b7644e712a7b12d2c19010a7aeab6b2ac6e97
59
py
Python
spandas/__init__.py
zhuzilin/simple-pandas
8233bd9e2e049a89ed85283458daa541230ce14f
[ "MIT" ]
9
2019-03-21T19:52:39.000Z
2020-02-07T09:14:57.000Z
spandas/__init__.py
zhuzilin/simple-pandas
8233bd9e2e049a89ed85283458daa541230ce14f
[ "MIT" ]
null
null
null
spandas/__init__.py
zhuzilin/simple-pandas
8233bd9e2e049a89ed85283458daa541230ce14f
[ "MIT" ]
null
null
null
from .series import Series from .dataframe import DataFrame
29.5
32
0.847458
8
59
6.25
0.5
0
0
0
0
0
0
0
0
0
0
0
0.118644
59
2
32
29.5
0.961538
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
cc790950a248ce93ecef545e0338c0d148a2e449
125
py
Python
HW3/mashavskih/3.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW3/mashavskih/3.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW3/mashavskih/3.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
6
2022-02-22T22:30:49.000Z
2022-03-28T12:51:19.000Z
a = input ('Put the number a: \n') b= input ('Put the number b: \n') a,b=b,a print(f'Resalt a: {a}') print(f'Resalt b: {b}')
20.833333
34
0.576
28
125
2.571429
0.357143
0.222222
0.305556
0.472222
0
0
0
0
0
0
0
0
0.176
125
5
35
25
0.699029
0
0
0
0
0
0.528
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
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
cc8e8a14bebb06470392a2067df135198354b930
39
py
Python
tests/__init__.py
TaylorMonacelli/mulltours
95e245f40775419c6baf432c0ca593b225e80073
[ "MIT" ]
null
null
null
tests/__init__.py
TaylorMonacelli/mulltours
95e245f40775419c6baf432c0ca593b225e80073
[ "MIT" ]
null
null
null
tests/__init__.py
TaylorMonacelli/mulltours
95e245f40775419c6baf432c0ca593b225e80073
[ "MIT" ]
null
null
null
"""Unit test package for mulltours."""
19.5
38
0.692308
5
39
5.4
1
0
0
0
0
0
0
0
0
0
0
0
0.128205
39
1
39
39
0.794118
0.820513
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
ccac4609aed9eaa3622abf3d71c2e15062fe6af9
40
py
Python
Main Server/Server/mqtt/config.py
Randikaviraj/e16-3yp-automatic-fish-tank-control-system
d8a3b2eb4a8f3b1fc3c7cacbbedf74eb2334d046
[ "MIT" ]
null
null
null
Main Server/Server/mqtt/config.py
Randikaviraj/e16-3yp-automatic-fish-tank-control-system
d8a3b2eb4a8f3b1fc3c7cacbbedf74eb2334d046
[ "MIT" ]
1
2020-11-07T12:07:05.000Z
2020-11-07T12:07:05.000Z
Main Server/Server/mqtt/config.py
Randikaviraj/e16-3yp-automatic-fish-tank-control-system
d8a3b2eb4a8f3b1fc3c7cacbbedf74eb2334d046
[ "MIT" ]
6
2020-10-25T10:43:09.000Z
2020-11-14T07:27:41.000Z
BROKER="35.175.152.136" BROKER_PORT=1883
20
23
0.8
8
40
3.875
0.875
0
0
0
0
0
0
0
0
0
0
0.384615
0.025
40
2
24
20
0.410256
0
0
0
0
0
0.341463
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
ccc9880548b7b124b4085b1e6b2433bd5614725b
296
py
Python
stable/QVTKWidget.py
tscholze/ts-py-planet-sim
c44c4cd7f393526942efda552a338204175dae11
[ "MIT" ]
null
null
null
stable/QVTKWidget.py
tscholze/ts-py-planet-sim
c44c4cd7f393526942efda552a338204175dae11
[ "MIT" ]
null
null
null
stable/QVTKWidget.py
tscholze/ts-py-planet-sim
c44c4cd7f393526942efda552a338204175dae11
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Wrapper class to compensate for vtk5.4 / designer incompability """ from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor class QVTKWidget(QVTKRenderWindowInteractor): """ Simple Wrapper without own functionality. """ pass
24.666667
73
0.716216
27
296
7.851852
0.851852
0
0
0
0
0
0
0
0
0
0
0.016598
0.185811
296
11
74
26.909091
0.863071
0.432432
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
5
ccd151c0017774ef366d89510d4b138aa02fc2e4
76
py
Python
glouton/domain/waterfall/waterfall.py
DL4PD/glouton-satnogs-data-downloader
6f7823f49ab9508fd0221b5a16570886772e32e8
[ "MIT" ]
13
2018-01-29T06:08:15.000Z
2020-03-04T07:00:56.000Z
glouton/domain/waterfall/waterfall.py
DL4PD/glouton-satnogs-data-downloader
6f7823f49ab9508fd0221b5a16570886772e32e8
[ "MIT" ]
10
2018-12-21T11:37:21.000Z
2021-05-09T12:39:23.000Z
glouton/domain/waterfall/waterfall.py
DL4PD/glouton-satnogs-data-downloader
6f7823f49ab9508fd0221b5a16570886772e32e8
[ "MIT" ]
4
2019-01-25T13:40:13.000Z
2019-07-22T08:14:19.000Z
class Waterfall(): def __init__(self, url=None): self.url = url
19
33
0.605263
10
76
4.2
0.7
0.333333
0
0
0
0
0
0
0
0
0
0
0.263158
76
3
34
25.333333
0.75
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
aed160b842b1c550308d3778a473e5f6656e5b34
69
py
Python
0x02-python-import_modules/101-easy_print.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x02-python-import_modules/101-easy_print.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x02-python-import_modules/101-easy_print.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 __import__("sys").stdout.write("#pythoniscool\n")
23
49
0.724638
9
69
5.111111
1
0
0
0
0
0
0
0
0
0
0
0.014925
0.028986
69
2
50
34.5
0.671642
0.246377
0
0
0
0
0.352941
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
aee3ee8aa9e7fc128b38d4cd3117b04cd787914e
54
py
Python
tilapia/lib/provider/chains/__init__.py
huazhouwang/python_multichain_wallet
52e0acdc2984c08990cb36433ef17a414fbe8312
[ "MIT" ]
2
2021-09-23T13:47:08.000Z
2021-09-24T02:39:14.000Z
tilapia/lib/provider/chains/__init__.py
huazhouwang/tilapia
52e0acdc2984c08990cb36433ef17a414fbe8312
[ "MIT" ]
null
null
null
tilapia/lib/provider/chains/__init__.py
huazhouwang/tilapia
52e0acdc2984c08990cb36433ef17a414fbe8312
[ "MIT" ]
null
null
null
from tilapia.lib.provider.chains import bch, btc, eth
27
53
0.796296
9
54
4.777778
1
0
0
0
0
0
0
0
0
0
0
0
0.111111
54
1
54
54
0.895833
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
aeec5549f21742b4ef86f60fb4162b6470b640e7
112
py
Python
vader_workspace/project/package/main2.py
marekzidek/vim-nayvy
b3699f978e449aa669dd9bd4b13ae7c2d07d76c4
[ "MIT" ]
68
2020-03-17T07:36:42.000Z
2022-02-18T13:21:22.000Z
vader_workspace/project/package/main2.py
marekzidek/vim-nayvy
b3699f978e449aa669dd9bd4b13ae7c2d07d76c4
[ "MIT" ]
2
2020-03-17T06:52:44.000Z
2021-01-03T06:45:13.000Z
vader_workspace/project/package/main2.py
marekzidek/vim-nayvy
b3699f978e449aa669dd9bd4b13ae7c2d07d76c4
[ "MIT" ]
5
2020-03-17T07:42:23.000Z
2022-01-02T23:02:36.000Z
class Hoge: def hoge(self) -> None: pass @classmethod def fuga(cls) -> None: pass
12.444444
27
0.508929
13
112
4.384615
0.692308
0.280702
0
0
0
0
0
0
0
0
0
0
0.383929
112
8
28
14
0.826087
0
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.333333
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
1
0
1
0
0
0
0
0
5
aeeea8980d2e7fc21064778484d0e9a09d9386b0
124
py
Python
analysis/ip_base.py
FermiParadox/Tor_deanonymization
a6793e0f76a9c80eca7dcee9a1ef035de0d787dc
[ "CC0-1.0" ]
1
2022-03-30T03:45:16.000Z
2022-03-30T03:45:16.000Z
analysis/ip_base.py
FermiParadox/Tor_deanonymization
a6793e0f76a9c80eca7dcee9a1ef035de0d787dc
[ "CC0-1.0" ]
null
null
null
analysis/ip_base.py
FermiParadox/Tor_deanonymization
a6793e0f76a9c80eca7dcee9a1ef035de0d787dc
[ "CC0-1.0" ]
null
null
null
from ipaddress import IPv4Address, IPv6Address from typing import Union IPv6_or_IPv4_obj = Union[IPv4Address, IPv6Address]
24.8
50
0.846774
16
124
6.375
0.6875
0.431373
0
0
0
0
0
0
0
0
0
0.054545
0.112903
124
4
51
31
0.872727
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
4e04ba3aee394f29fb7a047eb66e4ae8a518272b
398
py
Python
mysite/whatsanalyzer/message_storage.py
weilunn97/WhatStat-Django
278364bb694ccbf7e2f21f77c1503c60dbd0bf98
[ "MIT" ]
null
null
null
mysite/whatsanalyzer/message_storage.py
weilunn97/WhatStat-Django
278364bb694ccbf7e2f21f77c1503c60dbd0bf98
[ "MIT" ]
9
2021-03-18T22:29:24.000Z
2021-09-22T18:22:16.000Z
mysite/whatsanalyzer/message_storage.py
weilunn97/WhatsAnalyzer--Django-
278364bb694ccbf7e2f21f77c1503c60dbd0bf98
[ "MIT" ]
null
null
null
class MessageStorage: messageList = [] @staticmethod def addMessage(m): MessageStorage.messageList.append(m) @staticmethod def countMessages(): return len(MessageStorage.messageList) @staticmethod def getMessageList(): return MessageStorage.messageList @staticmethod def clearMessageList(): MessageStorage.messageList.clear()
20.947368
46
0.680905
30
398
9.033333
0.466667
0.461255
0.409594
0.442804
0
0
0
0
0
0
0
0
0.238693
398
19
47
20.947368
0.894389
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0
0.142857
0.571429
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
4e3575ef7d21ae8a1f15a3c56fcfa15adac4be05
5,564
py
Python
driver/Config.py
qgking/DASC_COVID19
3300516b1d0e9896e2fb2ffda8527e0e1a1fcf2c
[ "MIT" ]
4
2021-04-21T05:09:49.000Z
2022-01-17T13:02:45.000Z
driver/Config.py
qgking/DASC_COVID19
3300516b1d0e9896e2fb2ffda8527e0e1a1fcf2c
[ "MIT" ]
null
null
null
driver/Config.py
qgking/DASC_COVID19
3300516b1d0e9896e2fb2ffda8527e0e1a1fcf2c
[ "MIT" ]
1
2021-07-08T02:20:43.000Z
2021-07-08T02:20:43.000Z
from configparser import ConfigParser import configparser import sys, os sys.path.append('..') class Configurable(object): def __init__(self, config_file, extra_args, isTrain=True): config = ConfigParser() config._interpolation = configparser.ExtendedInterpolation() config.read(config_file) if extra_args: extra_args = dict([(k[2:], v) for k, v in zip(extra_args[0::2], extra_args[1::2])]) for section in config.sections(): for k, v in config.items(section): if k in extra_args: v = type(v)(extra_args[k]) config.set(section, k, v) self._config = config if not os.path.isdir(self.save_dir): os.makedirs(self.save_dir) if isTrain: config.write(open(self.config_file, 'w')) print('Loaded config file sucessfully.') for section in config.sections(): for k, v in config.items(section): print(k, v) # ------------data config reader-------------------- @property def patch_x(self): return self._config.getint('Data', 'patch_x') @property def patch_y(self): return self._config.getint('Data', 'patch_y') @property def patch_z(self): return self._config.getint('Data', 'patch_z') @property def patch_each(self): return self._config.getint('Data', 'patch_each') @property def clip(self): return self._config.getfloat('Optimizer', 'clip') @property def split_pickle(self): return self._config.get('Data', 'split_pickle') @property def data_name(self): return self._config.get('Data', 'data_name') @property def data_root(self): return self._config.get('Data', 'data_root') @property def unsu_root(self): return self._config.get('Data', 'unsu_root') @property def covid_data_root(self): return self._config.get('Data', 'covid_data_root') @property def sc_model_path(self): return self._config.get('Data', 'sc_model_path') # ------------save path config reader-------------------- @property def save_dir(self): return self._config.get('Save', 'save_dir') @property def config_file(self): return self._config.get('Save', 'config_file') @property def save_model_path(self): return self._config.get('Save', 'save_model_path') @property def load_dir(self): return self._config.get('Save', 'load_dir') @property def tmp_dir(self): return self._config.get('Save', 'tmp_dir') @property def tensorboard_dir(self): return self._config.get('Save', 'tensorboard_dir') @property def load_model_path(self): return self._config.get('Save', 'load_model_path') @property def log_file(self): return self._config.get('Save', 'log_file') @property def submission_dir(self): return self._config.get('Save', 'submission_dir') @property def model(self): return self._config.get('Network', 'model') @property def backbone(self): return self._config.get('Network', 'backbone') @property def classes(self): return self._config.getint('Network', 'classes') @property def channel(self): return self._config.getint('Network', 'channel') @property def epochs(self): return self._config.getint('Run', 'N_epochs') @property def train_batch_size(self): return self._config.getint('Run', 'train_batch_size') @property def test_batch_size(self): return self._config.getint('Run', 'test_batch_size') @property def gpu(self): return self._config.getint('Run', 'gpu') @property def printfreq(self): return self._config.getint('Run', 'printfreq') @property def gpu_count(self): gpus = self._config.get('Run', 'gpu_count') gpus = gpus.split(',') return [int(x) for x in gpus] @property def run_num(self): return self._config.getint('Run', 'run_num') @property def workers(self): return self._config.getint('Run', 'workers') @property def update_every(self): return self._config.getint('Run', 'update_every') @property def bad_step(self): return self._config.getint('Run', 'bad_step') # ------------Optimizer path config reader-------------------- @property def learning_algorithm(self): return self._config.get('Optimizer', 'learning_algorithm') @property def learning_rate(self): return self._config.getfloat('Optimizer', 'learning_rate') @property def learning_rate_d(self): return self._config.getfloat('Optimizer', 'learning_rate_d') @property def max_patience(self): return self._config.getint('Optimizer', 'max_patience') @property def infer_epoch(self): return self._config.getint('Optimizer', 'infer_epoch') @property def min_lrate(self): return self._config.getfloat('Optimizer', 'min_lrate') @property def beta_1(self): return self._config.getfloat('Optimizer', 'beta_1') @property def beta_2(self): return self._config.getfloat('Optimizer', 'beta_2') @property def epsilon(self): return self._config.getfloat('Optimizer', 'epsilon') @property def decay(self): return self._config.getfloat('Optimizer', 'decay')
26.879227
95
0.61197
671
5,564
4.861401
0.163934
0.144083
0.184549
0.263642
0.496934
0.473329
0.296137
0.128142
0.031269
0.031269
0
0.002141
0.244608
5,564
206
96
27.009709
0.773971
0.030014
0
0.301887
0
0
0.128685
0
0
0
0
0
0
1
0.283019
false
0
0.018868
0.27044
0.584906
0.025157
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
9d64c94b7cb6b7651fe54f6f8cd6f1d7c47007d5
223
py
Python
Cinema/managecinema/admin.py
samir321-pixel/Cinema_Mall
e6c48b74f9049dc3495328b68945a59756719091
[ "Apache-2.0" ]
6
2021-02-26T12:29:54.000Z
2021-07-19T16:45:55.000Z
Cinema/managecinema/admin.py
samir321-pixel/Cinema_Mall
e6c48b74f9049dc3495328b68945a59756719091
[ "Apache-2.0" ]
2
2021-03-01T03:47:44.000Z
2021-03-01T07:35:31.000Z
Cinema/managecinema/admin.py
samir321-pixel/Cinema_Mall
e6c48b74f9049dc3495328b68945a59756719091
[ "Apache-2.0" ]
1
2021-04-16T16:19:48.000Z
2021-04-16T16:19:48.000Z
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Cinema) admin.site.register(CinemaDeck) admin.site.register(CinemaArrangeSlot) admin.site.register(MovieDurationSlot)
24.777778
38
0.825112
28
223
6.571429
0.5
0.195652
0.369565
0
0
0
0
0
0
0
0
0
0.080717
223
8
39
27.875
0.897561
0.116592
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
9da6574a76797390632e6ada99c2cdbb4cc50ad1
231
py
Python
spaceballs_search_engine/models.py
RedSkyHarbor/spaceballs-script-search-engine
e2c3e3e4404af0c2ce50caa52d7ed44b6a1ce9d4
[ "MIT" ]
null
null
null
spaceballs_search_engine/models.py
RedSkyHarbor/spaceballs-script-search-engine
e2c3e3e4404af0c2ce50caa52d7ed44b6a1ce9d4
[ "MIT" ]
6
2021-03-19T02:26:31.000Z
2021-09-22T18:56:11.000Z
spaceballs_search_engine/models.py
RedSkyHarbor/spaceballs-script-search-engine
e2c3e3e4404af0c2ce50caa52d7ed44b6a1ce9d4
[ "MIT" ]
null
null
null
from django.db import models class Quote(models.Model): character = models.CharField(max_length=64) line = models.CharField(max_length=1024) def __str__(self): return '{}--{}'.format(self.character, self.line)
28.875
57
0.69697
30
231
5.166667
0.666667
0.193548
0.232258
0.309677
0
0
0
0
0
0
0
0.031088
0.164502
231
8
57
28.875
0.772021
0
0
0
0
0
0.025862
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.166667
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
5
9de5a034c46ab42588665033af618e06903dc437
267
py
Python
python/graphscope/nx/tests/algorithms/forward/test_moral.py
LI-Mingyu/GraphScope-MY
942060983d3f7f8d3a3377467386e27aba285b33
[ "Apache-2.0" ]
1,521
2020-10-28T03:20:24.000Z
2022-03-31T12:42:51.000Z
python/graphscope/nx/tests/algorithms/forward/test_moral.py
LI-Mingyu/GraphScope-MY
942060983d3f7f8d3a3377467386e27aba285b33
[ "Apache-2.0" ]
850
2020-12-15T03:17:32.000Z
2022-03-31T11:40:13.000Z
python/graphscope/nx/tests/algorithms/forward/test_moral.py
LI-Mingyu/GraphScope-MY
942060983d3f7f8d3a3377467386e27aba285b33
[ "Apache-2.0" ]
180
2020-11-10T03:43:21.000Z
2022-03-28T11:13:31.000Z
import networkx.algorithms.tests.test_moral import pytest from graphscope.nx.utils.compat import import_as_graphscope_nx import_as_graphscope_nx(networkx.algorithms.tests.test_moral, decorators=pytest.mark.usefixtures("graphscope_session"))
33.375
81
0.794007
33
267
6.151515
0.515152
0.17734
0.226601
0.26601
0.315271
0
0
0
0
0
0
0
0.134831
267
7
82
38.142857
0.878788
0
0
0
0
0
0.067416
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
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
9de74a225ae7eba27511f7dcb664907f38f30f99
175
py
Python
python/models/stub/__init__.py
talidemestre/easytmm
91220e7989c1bd8ca6533dbeceb6d5a112047b1a
[ "CNRI-Python" ]
null
null
null
python/models/stub/__init__.py
talidemestre/easytmm
91220e7989c1bd8ca6533dbeceb6d5a112047b1a
[ "CNRI-Python" ]
null
null
null
python/models/stub/__init__.py
talidemestre/easytmm
91220e7989c1bd8ca6533dbeceb6d5a112047b1a
[ "CNRI-Python" ]
null
null
null
from argparse import Namespace from pathlib import Path def preprocess(args: Namespace, tempdir: Path): print("WARNING: This is a stub function! No work has been done!")
35
69
0.76
26
175
5.115385
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.165714
175
5
69
35
0.910959
0
0
0
0
0
0.318182
0
0
0
0
0
0
1
0.25
false
0
0.5
0
0.75
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
3b027e0d33601b5427d6614d666607ec10d34e3b
258
py
Python
eworkshop/services/admin.py
frankfern/eWorkshop-api
4c8a377e67e42c10ae1a762efca9af2c27a2a561
[ "MIT" ]
null
null
null
eworkshop/services/admin.py
frankfern/eWorkshop-api
4c8a377e67e42c10ae1a762efca9af2c27a2a561
[ "MIT" ]
null
null
null
eworkshop/services/admin.py
frankfern/eWorkshop-api
4c8a377e67e42c10ae1a762efca9af2c27a2a561
[ "MIT" ]
null
null
null
from django.contrib import admin from . import models admin.site.register(models.SellService) admin.site.register(models.FixService) admin.site.register(models.ServiceType) admin.site.register(models.ServiceProduct) admin.site.register(models.FixSparepart)
28.666667
42
0.841085
33
258
6.575758
0.393939
0.207373
0.391705
0.529954
0
0
0
0
0
0
0
0
0.054264
258
8
43
32.25
0.889344
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.285714
0
0.285714
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
d180be57df2a9361df1d2682e6079fcfa44587d4
78
py
Python
codewof/programming/content/en/nth-to-last/solution.py
uccser-admin/programming-practice-prototype
3af4c7d85308ac5bb35bb13be3ec18cac4eb8308
[ "MIT" ]
3
2019-08-29T04:11:22.000Z
2021-06-22T16:05:51.000Z
codewof/programming/content/en/nth-to-last/solution.py
uccser-admin/programming-practice-prototype
3af4c7d85308ac5bb35bb13be3ec18cac4eb8308
[ "MIT" ]
265
2019-05-30T03:51:46.000Z
2022-03-31T01:05:12.000Z
codewof/programming/content/en/nth-to-last/solution.py
samuelsandri/codewof
c9b8b378c06b15a0c42ae863b8f46581de04fdfc
[ "MIT" ]
7
2019-06-29T12:13:37.000Z
2021-09-06T06:49:14.000Z
def nth_to_last(items, n): index = len(items) - n return items[index]
19.5
26
0.641026
13
78
3.692308
0.692308
0.25
0
0
0
0
0
0
0
0
0
0
0.230769
78
3
27
26
0.8
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
d192dd3682fd6e9e06d7b424303cbfa2efdad737
23
py
Python
gargbot_3000/version.py
eirki/gargbot_3000
e76d98e82c00133950f094eaaf9981c58d55bbd5
[ "MIT" ]
1
2016-11-22T10:00:18.000Z
2016-11-22T10:00:18.000Z
gargbot_3000/version.py
eirki/gargbot_3000
e76d98e82c00133950f094eaaf9981c58d55bbd5
[ "MIT" ]
9
2021-06-08T19:04:54.000Z
2022-02-18T19:57:42.000Z
gargbot_3000/version.py
eirki/gargbot_3000
e76d98e82c00133950f094eaaf9981c58d55bbd5
[ "MIT" ]
2
2019-01-18T14:10:45.000Z
2020-06-15T21:48:56.000Z
version = "21.06.12.0"
11.5
22
0.608696
5
23
2.8
1
0
0
0
0
0
0
0
0
0
0
0.35
0.130435
23
1
23
23
0.35
0
0
0
0
0
0.434783
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
d1bb5b40df5ca6de600d7e4b9dab99029ec0e7a7
48
py
Python
cmsscan/config.py
AGLcaicai/onlinetools
39d90b39e97a843aee5a47cc8720169d4daa0a1a
[ "MIT" ]
3
2020-07-07T10:13:50.000Z
2021-08-31T12:21:56.000Z
cmsscan/config.py
AGLcaicai/onlinetools
39d90b39e97a843aee5a47cc8720169d4daa0a1a
[ "MIT" ]
1
2018-12-07T06:59:06.000Z
2018-12-07T06:59:06.000Z
cmsscan/config.py
AGLcaicai/onlinetools
39d90b39e97a843aee5a47cc8720169d4daa0a1a
[ "MIT" ]
3
2019-01-17T02:48:00.000Z
2021-09-12T07:57:18.000Z
from . import app app.config.update(DEBUG=True)
16
29
0.770833
8
48
4.625
0.875
0
0
0
0
0
0
0
0
0
0
0
0.104167
48
2
30
24
0.860465
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
d1d26e5b74a3435b283c0e7ec9fe3ca4d4c8faf4
45
py
Python
py_headless_daw/compiler/compiler_exception.py
hq9000/py-headless-daw
33e08727c25d3f00b2556adf5f25c9f7ff4d4304
[ "MIT" ]
22
2020-06-09T18:46:56.000Z
2021-09-28T02:11:42.000Z
py_headless_daw/compiler/compiler_exception.py
hq9000/py-headless-daw
33e08727c25d3f00b2556adf5f25c9f7ff4d4304
[ "MIT" ]
19
2020-06-03T06:34:57.000Z
2021-01-26T07:36:17.000Z
py_headless_daw/compiler/compiler_exception.py
hq9000/py-headless-daw
33e08727c25d3f00b2556adf5f25c9f7ff4d4304
[ "MIT" ]
1
2020-06-18T09:25:21.000Z
2020-06-18T09:25:21.000Z
class CompilerException(Exception): pass
15
35
0.777778
4
45
8.75
1
0
0
0
0
0
0
0
0
0
0
0
0.155556
45
2
36
22.5
0.921053
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
0603d46dbafdeead78ee8a4e526da6c9311b6f9a
332
py
Python
knx_stack/definition/layer/__init__.py
majamassarini/knx-stack
11a9baac6b7600649b5fbca43c93b200b23676b4
[ "MIT" ]
2
2021-07-28T07:42:28.000Z
2022-01-25T18:56:05.000Z
knx_stack/definition/layer/__init__.py
majamassarini/knx-stack
11a9baac6b7600649b5fbca43c93b200b23676b4
[ "MIT" ]
6
2021-07-25T21:36:01.000Z
2022-02-20T21:11:31.000Z
knx_stack/definition/layer/__init__.py
majamassarini/knx-stack
11a9baac6b7600649b5fbca43c93b200b23676b4
[ "MIT" ]
null
null
null
from knx_stack.definition.layer.link import AddressType, ConfirmFlag, NSDU, L_Data from knx_stack.definition.layer.network import AddressTable from knx_stack.definition.layer.transport import AssociationTable, Association, ASAP from knx_stack.definition.layer.application import ( GroupObjectTable, PropertyServiceHeader, )
41.5
84
0.840361
39
332
7.025641
0.538462
0.10219
0.175182
0.321168
0.394161
0
0
0
0
0
0
0
0.096386
332
7
85
47.428571
0.913333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.571429
0
0.571429
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
ae11ac555c364d65df9dedd67ebb156bb7746646
185
py
Python
config/consts.py
victor-iyiola/flask-blog
3f1f06ffdfe900111c9636dd85117f42bd10d479
[ "MIT" ]
null
null
null
config/consts.py
victor-iyiola/flask-blog
3f1f06ffdfe900111c9636dd85117f42bd10d479
[ "MIT" ]
null
null
null
config/consts.py
victor-iyiola/flask-blog
3f1f06ffdfe900111c9636dd85117f42bd10d479
[ "MIT" ]
null
null
null
import os.path PROJECT_DIR = os.path.dirname(os.path.dirname(__file__)) TEMPLATE_FOLDER = os.path.join(PROJECT_DIR, 'templates') STATIC_FOLDER = os.path.join(PROJECT_DIR, 'static')
20.555556
56
0.767568
28
185
4.75
0.428571
0.225564
0.195489
0.240602
0.390977
0.390977
0
0
0
0
0
0
0.091892
185
8
57
23.125
0.791667
0
0
0
0
0
0.081081
0
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
ae70e59a106c2d96440fd3fb36074114bb558c2b
1,589
py
Python
algorithms/704. Binary Search.py
woozway/py3-leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
1
2020-12-02T13:54:30.000Z
2020-12-02T13:54:30.000Z
algorithms/704. Binary Search.py
woozway/py3-leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
algorithms/704. Binary Search.py
woozway/py3-leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
""" 1. Clarification 2. Possible solutions - Binary search I - Binary search II - Binary search III 3. Coding 4. Tests """ # T=O(lgn), S=O(1) class Solution: def search(self, nums: List[int], target: int) -> int: if not nums: return -1 left, right = 0, len(nums) - 1 while left <= right: pivot = left + (right - left) // 2 if nums[pivot] == target: return pivot elif target < nums[pivot]: right = pivot - 1 else: left = pivot + 1 return -1 # T=O(lgn), S=O(1) class Solution: def search(self, nums: List[int], target: int) -> int: if not nums: return -1 left, right = 0, len(nums) - 1 while left < right: mid = (left + right) // 2 if nums[mid] == target: return mid elif nums[mid] < target: left = mid + 1 else: right = mid if nums[left] == target: return left return -1 # T=O(lgn), S=O(1) class Solution: def search(self, nums: List[int], target: int) -> int: if not nums: return -1 left, right = 0, len(nums) - 1 while left + 1 < right: mid = (left + right) // 2 if nums[mid] == target: return mid elif nums[mid] < target: left = mid else: right = mid if nums[left] == target: return left if nums[right] == target: return right return -1
25.629032
58
0.46696
197
1,589
3.766497
0.192893
0.097035
0.070081
0.024259
0.710243
0.710243
0.710243
0.710243
0.710243
0.607817
0
0.028169
0.419132
1,589
61
59
26.04918
0.775731
0.11202
0
0.651163
0
0
0
0
0
0
0
0
0
1
0.069767
false
0
0
0
0.302326
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
ae7d7ecc6f1b629a3f7576d340aea7b81a8cd4bd
235
py
Python
app/models/domain/performance_metrics.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
1
2021-05-04T08:46:19.000Z
2021-05-04T08:46:19.000Z
app/models/domain/performance_metrics.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
null
null
null
app/models/domain/performance_metrics.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
1
2022-01-28T21:21:32.000Z
2022-01-28T21:21:32.000Z
from typing import List from dataclasses import dataclass @dataclass(frozen=True) class SingleMetric(): name: str score: float @dataclass(frozen=True) class PerformanceMetrics(): label: str metrics: List[SingleMetric]
19.583333
33
0.748936
27
235
6.518519
0.62963
0.170455
0.215909
0.272727
0
0
0
0
0
0
0
0
0.165957
235
12
34
19.583333
0.897959
0
0
0.2
0
0
0
0
0
0
0
0
0
1
0
true
0
0.2
0
0.8
0
1
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
0
0
1
0
0
5
889dd13ad02cc205248648f77d5cc5af6e607b92
75
py
Python
ztest/utils/__init__.py
Kk0t/Flask-phone-administration
4acdcedabe7725c6ce2b57e32bd54551cdbb5297
[ "CC0-1.0" ]
null
null
null
ztest/utils/__init__.py
Kk0t/Flask-phone-administration
4acdcedabe7725c6ce2b57e32bd54551cdbb5297
[ "CC0-1.0" ]
null
null
null
ztest/utils/__init__.py
Kk0t/Flask-phone-administration
4acdcedabe7725c6ce2b57e32bd54551cdbb5297
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021/9/8 11:14 # @Author : WuBingTai
18.75
27
0.52
11
75
3.545455
0.909091
0
0
0
0
0
0
0
0
0
0
0.192982
0.24
75
3
28
25
0.491228
0.906667
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
88a889d50a17ea4e9b87ed5a278ba38ebf15c85a
2,728
py
Python
test/xl_transform/common_test/model_test/OrthorhombicLineTest.py
Spark-Liang/ExcelTransformer
8e827a7c0b0e2cf4832d7b4346e763f31e578343
[ "MIT" ]
2
2019-04-06T14:01:49.000Z
2019-12-26T13:12:09.000Z
test/xl_transform/common_test/model_test/OrthorhombicLineTest.py
Spark-Liang/ExcelTransformer
8e827a7c0b0e2cf4832d7b4346e763f31e578343
[ "MIT" ]
null
null
null
test/xl_transform/common_test/model_test/OrthorhombicLineTest.py
Spark-Liang/ExcelTransformer
8e827a7c0b0e2cf4832d7b4346e763f31e578343
[ "MIT" ]
null
null
null
import unittest from xl_transform.common import Cell from xl_transform.common import OrthorhombicLine as SUT class OrthorhombicLineTest(unittest.TestCase): def test_when_create_with_zero_cell(self): # when result = SUT(set()) # then self.assertEqual(None, result.is_vertical) self.assertEqual([], result.cells_list) def test_when_create_with_single_cell(self): # given single_cell = Cell(1, 1) # when result = SUT({single_cell}) # then self.assertEqual(None, result.is_vertical) self.assertEqual([single_cell], result.cells_list) def test_when_create_with_two_cell_in_horizontal_direction(self): # given cell1, cell2 = Cell(1, 1), Cell(1, 2) # when result = SUT({cell1, cell2}) # then self.assertEqual(False, result.is_vertical) self.assertEqual([cell1, cell2], result.cells_list) def test_when_create_with_three_cell_in_horizontal_direction(self): # given cell1, cell2, cell3 = Cell(1, 1), Cell(1, 2), Cell(1, 3) # when result = SUT({cell1, cell2, cell3}) # then self.assertEqual(False, result.is_vertical) self.assertEqual([cell1, cell2, cell3], result.cells_list) def test_when_create_with_two_cell_in_vertical_direction(self): # given cell1, cell2 = Cell(1, 1), Cell(2, 1) # when result = SUT({cell1, cell2}) # then self.assertEqual(True, result.is_vertical) self.assertEqual([cell1, cell2], result.cells_list) def test_when_create_with_three_cell_in_vertical_direction(self): # given cell1, cell2, cell3 = Cell(1, 1), Cell(2, 1), Cell(3, 1) # when result = SUT({cell1, cell2, cell3}) # then self.assertEqual(True, result.is_vertical) self.assertEqual([cell1, cell2, cell3], result.cells_list) def test_raise_exception_when_is_not_a_shape_of_orthorhombic_1(self): """ The shape of the cells is like the below graph. 1 2 3 4 1 # 2 # 3 4 :return: """ # given cell1, cell2 = Cell(1, 1), Cell(2, 2) # when def sut(): SUT({cell1, cell2}) self.assertRaises(Exception, sut) def test_raise_exception_when_is_not_a_shape_of_orthorhombic_2(self): """ The shape of the cells is like the below graph. 1 2 3 4 1 # 2 ### 3 4 :return: """ def sut(): SUT({Cell(1, 1), Cell(2, 1), Cell(2, 2)}) self.assertRaises(Exception, sut)
24.576577
73
0.58871
344
2,728
4.438953
0.168605
0.091683
0.027505
0.066798
0.819253
0.770138
0.766208
0.751801
0.656843
0.499673
0
0.044539
0.308651
2,728
110
74
24.8
0.765111
0.097874
0
0.428571
0
0
0
0
0
0
0
0
0.333333
1
0.238095
false
0
0.071429
0
0.333333
0
0
0
0
null
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
5
ee37b9522aa17ee169a1a9d0a4a1b7bb57ef9d1f
3,613
py
Python
ldaptor/test/test_attributeset.py
tv42/ldaptor
3f227602c8c021b9e943136a2dc8d7db44a11e50
[ "MIT" ]
1
2015-11-25T04:01:26.000Z
2015-11-25T04:01:26.000Z
ldaptor/test/test_attributeset.py
tv42/ldaptor
3f227602c8c021b9e943136a2dc8d7db44a11e50
[ "MIT" ]
null
null
null
ldaptor/test/test_attributeset.py
tv42/ldaptor
3f227602c8c021b9e943136a2dc8d7db44a11e50
[ "MIT" ]
2
2019-11-06T02:14:10.000Z
2022-01-10T08:34:11.000Z
""" Test cases for ldaptor.attributeset """ from twisted.trial import unittest import sets from ldaptor import attributeset class TestComparison(unittest.TestCase): def testEquality_True_Set(self): a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd']) b = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd']) self.assertEquals(a, b) def testEquality_True_Set_Ordering(self): a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd']) b = attributeset.LDAPAttributeSet('k', ['b', 'd', 'c']) self.assertEquals(a, b) def testEquality_True_List(self): a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd']) b = ['b', 'c', 'd'] self.assertEquals(a, b) def testEquality_True_List_Ordering(self): a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd']) b = ['b', 'd', 'c'] self.assertEquals(a, b) def testEquality_False_Value(self): a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd']) b = attributeset.LDAPAttributeSet('k', ['b', 'c', 'e']) self.assertNotEqual(a, b) def testEquality_False_Key(self): a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd']) b = attributeset.LDAPAttributeSet('l', ['b', 'c', 'd']) self.assertNotEqual(a, b) class TestSetOperations(unittest.TestCase): def testDifference(self): a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd']) b = attributeset.LDAPAttributeSet('k', ['b', 'c', 'e']) self.assertEquals(a - b, sets.Set(['d'])) def testUnion(self): a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd']) b = attributeset.LDAPAttributeSet('k', ['b', 'c', 'e']) self.assertEquals(a | b, sets.Set(['b', 'c', 'd', 'e'])) def testIntersection(self): a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd']) b = attributeset.LDAPAttributeSet('k', ['b', 'c', 'e']) self.assertEquals(a & b, sets.Set(['b', 'c'])) def testSymmetricDifference(self): a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd']) b = attributeset.LDAPAttributeSet('k', ['b', 'c', 'e']) self.assertEquals(a ^ b, sets.Set(['d', 'e'])) def testCopy(self): class Magic: pass m1 = Magic() a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd', m1]) b = a.__copy__() self.assertEquals(a, b) self.assertNotIdentical(a, b) magicFromA = [val for val in a if isinstance(val, Magic)][0] magicFromB = [val for val in b if isinstance(val, Magic)][0] self.assertEquals(magicFromA, magicFromB) self.assertIdentical(magicFromA, magicFromB) a.update('x') self.assertEquals(a, sets.Set(['b', 'c', 'd', m1, 'x'])) self.assertEquals(b, sets.Set(['b', 'c', 'd', m1])) def testDeepCopy(self): class Magic: def __eq__(self, other): return isinstance(other, self.__class__) def __hash__(self): return 42 m1 = Magic() a = attributeset.LDAPAttributeSet('k', ['a', m1]) b = a.__deepcopy__({}) self.assertEquals(a, b) self.assertNotIdentical(a, b) magicFromA = [val for val in a if isinstance(val, Magic)][0] magicFromB = [val for val in b if isinstance(val, Magic)][0] self.assertEquals(magicFromA, magicFromB) self.assertNotIdentical(magicFromA, magicFromB) a.update('x') self.assertEquals(a, sets.Set(['a', m1, 'x'])) self.assertEquals(b, sets.Set(['a', m1]))
36.494949
68
0.569056
424
3,613
4.768868
0.146226
0.02275
0.272502
0.267062
0.753215
0.739862
0.71365
0.670623
0.664688
0.630069
0
0.005143
0.246609
3,613
98
69
36.867347
0.737693
0.009687
0
0.474359
0
0
0.029412
0
0
0
0
0
0.282051
1
0.179487
false
0.012821
0.038462
0.025641
0.294872
0
0
0
0
null
0
1
1
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
ee644fd08dd27ecf14c0d1abe2172b0702e092d7
79
py
Python
setup.py
kalvelukas/pendiscbot
dd48e49570b914687e41f9a492958b7b56d9df08
[ "MIT" ]
null
null
null
setup.py
kalvelukas/pendiscbot
dd48e49570b914687e41f9a492958b7b56d9df08
[ "MIT" ]
4
2020-11-29T22:11:47.000Z
2020-12-03T00:26:33.000Z
setup.py
kalvelukas/rpgbot
dd48e49570b914687e41f9a492958b7b56d9df08
[ "MIT" ]
null
null
null
import sys sys.path.append('C:\\kalvelukas\\rpgbot\\code') print(str(sys.path))
26.333333
47
0.734177
13
79
4.461538
0.769231
0.241379
0
0
0
0
0
0
0
0
0
0
0.037975
79
3
48
26.333333
0.763158
0
0
0
0
0
0.35
0.35
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.333333
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
ee7b664a6933f9e25dfe0823e8854ebec75a6291
14
py
Python
test/integration/SetToList/set to list.py
HighSchoolHacking/GLS-Draft
9e418b6290e7c8e3f2da87668784bdba1cde5a76
[ "MIT" ]
30
2019-10-29T12:47:50.000Z
2022-02-12T06:41:39.000Z
test/integration/SetToList/set to list.py
HighSchoolHacking/GLS-Draft
9e418b6290e7c8e3f2da87668784bdba1cde5a76
[ "MIT" ]
247
2017-09-21T17:11:18.000Z
2019-10-08T12:59:07.000Z
test/integration/SetToList/set to list.py
HighSchoolHacking/GLS-Draft
9e418b6290e7c8e3f2da87668784bdba1cde5a76
[ "MIT" ]
17
2017-10-01T16:53:20.000Z
2018-11-28T07:20:35.000Z
# list(abc) #
3.5
9
0.5
2
14
3.5
1
0
0
0
0
0
0
0
0
0
0
0
0.214286
14
3
10
4.666667
0.636364
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
ee82245c3110b470c1641c428cb8dd30fb8fb0dd
120
py
Python
examples/str/ex2.py
mcorne/python-by-example
15339c0909c84b51075587a6a66391100971c033
[ "MIT" ]
null
null
null
examples/str/ex2.py
mcorne/python-by-example
15339c0909c84b51075587a6a66391100971c033
[ "MIT" ]
null
null
null
examples/str/ex2.py
mcorne/python-by-example
15339c0909c84b51075587a6a66391100971c033
[ "MIT" ]
null
null
null
# str(Color()) class Color: color = 'orange' def __str__(self): return Color.color print(str(Color()))
15
26
0.6
15
120
4.533333
0.533333
0.235294
0
0
0
0
0
0
0
0
0
0
0.241667
120
7
27
17.142857
0.747253
0.1
0
0
0
0
0.056604
0
0
0
0
0
0
1
0.2
false
0
0
0.2
0.8
0.2
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
5