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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
896e166c9ba8d819c2e34d7b90c8abbcffba76bf
| 104
|
py
|
Python
|
qcengine/programs/dftd3/__init__.py
|
dsirianni/QCEngine
|
45d639c59f26e25ad8d7ace6c7e2faca2a8909ac
|
[
"BSD-3-Clause"
] | null | null | null |
qcengine/programs/dftd3/__init__.py
|
dsirianni/QCEngine
|
45d639c59f26e25ad8d7ace6c7e2faca2a8909ac
|
[
"BSD-3-Clause"
] | null | null | null |
qcengine/programs/dftd3/__init__.py
|
dsirianni/QCEngine
|
45d639c59f26e25ad8d7ace6c7e2faca2a8909ac
|
[
"BSD-3-Clause"
] | null | null | null |
from .runner import DFTD3Executor
from .dashparam import dashcoeff, get_dispersion_aliases, from_arrays
| 34.666667
| 69
| 0.865385
| 13
| 104
| 6.692308
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010638
| 0.096154
| 104
| 2
| 70
| 52
| 0.914894
| 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
|
897f7abffb6946207925e399fea16686a2aa6b7b
| 109
|
py
|
Python
|
config.py
|
kuligram/Rubik
|
45ddf7c675f70c4d4196076e71b4a4bdd694b291
|
[
"MIT"
] | 1
|
2021-03-28T05:03:42.000Z
|
2021-03-28T05:03:42.000Z
|
config.py
|
kuligram/PocketCube
|
45ddf7c675f70c4d4196076e71b4a4bdd694b291
|
[
"MIT"
] | null | null | null |
config.py
|
kuligram/PocketCube
|
45ddf7c675f70c4d4196076e71b4a4bdd694b291
|
[
"MIT"
] | null | null | null |
import pickle
#from search import HprecomputeBFS, PocketCubeProblem
import os #only to clear screen on start
| 27.25
| 53
| 0.834862
| 15
| 109
| 6.066667
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137615
| 109
| 3
| 54
| 36.333333
| 0.968085
| 0.743119
| 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
|
89aa7ad4d85ef4efe5b004d0c0bde474210e7782
| 4,067
|
py
|
Python
|
venv/Lib/site-packages/test/test_utils.py
|
jo2hu6/home-assistant
|
1f97943a97d511323f7bfb57facb3fe93840d726
|
[
"Apache-2.0"
] | null | null | null |
venv/Lib/site-packages/test/test_utils.py
|
jo2hu6/home-assistant
|
1f97943a97d511323f7bfb57facb3fe93840d726
|
[
"Apache-2.0"
] | null | null | null |
venv/Lib/site-packages/test/test_utils.py
|
jo2hu6/home-assistant
|
1f97943a97d511323f7bfb57facb3fe93840d726
|
[
"Apache-2.0"
] | null | null | null |
from ibm_cloud_sdk_core import string_to_datetime, datetime_to_string, get_authenticator_from_environment
import os
def test_datetime_conversion():
date = string_to_datetime('2017-03-06 16:00:04.159338')
assert date.day == 6
res = datetime_to_string(date)
assert res == '2017-03-06T16:00:04.159338'
def test_get_authenticator_from_credential_file():
file_path = os.path.join(
os.path.dirname(__file__), '../resources/ibm-credentials-iam.env')
os.environ['IBM_CREDENTIALS_FILE'] = file_path
authenticator = get_authenticator_from_environment('ibm watson')
assert authenticator is not None
assert authenticator.token_manager.apikey == '5678efgh'
del os.environ['IBM_CREDENTIALS_FILE']
file_path = os.path.join(
os.path.dirname(__file__), '../resources/ibm-credentials-basic.env')
os.environ['IBM_CREDENTIALS_FILE'] = file_path
authenticator = get_authenticator_from_environment('watson')
assert authenticator is not None
assert authenticator.username == 'my_username'
del os.environ['IBM_CREDENTIALS_FILE']
file_path = os.path.join(
os.path.dirname(__file__), '../resources/ibm-credentials-cp4d.env')
os.environ['IBM_CREDENTIALS_FILE'] = file_path
authenticator = get_authenticator_from_environment('watson')
assert authenticator is not None
assert authenticator.token_manager.username == 'my_username'
assert authenticator.token_manager.password == 'my_password'
del os.environ['IBM_CREDENTIALS_FILE']
file_path = os.path.join(
os.path.dirname(__file__), '../resources/ibm-credentials-no-auth.env')
os.environ['IBM_CREDENTIALS_FILE'] = file_path
authenticator = get_authenticator_from_environment('watson')
assert authenticator is not None
del os.environ['IBM_CREDENTIALS_FILE']
file_path = os.path.join(
os.path.dirname(__file__), '../resources/ibm-credentials-bearer.env')
os.environ['IBM_CREDENTIALS_FILE'] = file_path
authenticator = get_authenticator_from_environment('watson')
assert authenticator is not None
assert authenticator.bearer_token is not None
del os.environ['IBM_CREDENTIALS_FILE']
def test_get_authenticator_from_env_variables():
os.environ['TEST_APIKEY'] = '5678efgh'
authenticator = get_authenticator_from_environment('test')
assert authenticator is not None
assert authenticator.token_manager.apikey == '5678efgh'
del os.environ['TEST_APIKEY']
def test_vcap_credentials():
vcap_services = '{"test":[{"credentials":{ \
"url":"https://gateway.watsonplatform.net/compare-comply/api",\
"username":"bogus username", \
"password":"bogus password"}}]}'
os.environ['VCAP_SERVICES'] = vcap_services
authenticator = get_authenticator_from_environment('test')
assert authenticator is not None
assert authenticator.username == 'bogus username'
assert authenticator.password == 'bogus password'
del os.environ['VCAP_SERVICES']
vcap_services = '{"test":[{"credentials":{ \
"url":"https://gateway.watsonplatform.net/compare-comply/api",\
"apikey":"bogus apikey"}}]}'
os.environ['VCAP_SERVICES'] = vcap_services
authenticator = get_authenticator_from_environment('test')
assert authenticator is not None
assert authenticator.token_manager.apikey == 'bogus apikey'
del os.environ['VCAP_SERVICES']
vcap_services = '{"test":[{"credentials":{ \
"url":"https://gateway.watsonplatform.net/compare-comply/api",\
"iam_apikey":"bogus apikey"}}]}'
os.environ['VCAP_SERVICES'] = vcap_services
authenticator = get_authenticator_from_environment('test')
assert authenticator is None
del os.environ['VCAP_SERVICES']
def test_multi_word_service_name():
os.environ['PERSONALITY_INSIGHTS_APIKEY'] = '5678efgh'
authenticator = get_authenticator_from_environment('personality-insights')
assert authenticator is not None
assert authenticator.token_manager.apikey == '5678efgh'
del os.environ['PERSONALITY_INSIGHTS_APIKEY']
| 42.364583
| 105
| 0.731989
| 486
| 4,067
| 5.835391
| 0.152263
| 0.06347
| 0.091678
| 0.12024
| 0.799365
| 0.753173
| 0.753173
| 0.727786
| 0.722144
| 0.708392
| 0
| 0.017955
| 0.150971
| 4,067
| 95
| 106
| 42.810526
| 0.803359
| 0
| 0
| 0.580247
| 0
| 0
| 0.264568
| 0.066388
| 0
| 0
| 0
| 0
| 0.271605
| 1
| 0.061728
| false
| 0.037037
| 0.024691
| 0
| 0.08642
| 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
|
9869cad9f14171e631042b3ada7985e3fce8f382
| 84
|
py
|
Python
|
ebad/data/__init__.py
|
vahidzee/ebad
|
dedda978efd298bfe90b7d672a062aabfbd839ac
|
[
"MIT"
] | null | null | null |
ebad/data/__init__.py
|
vahidzee/ebad
|
dedda978efd298bfe90b7d672a062aabfbd839ac
|
[
"MIT"
] | null | null | null |
ebad/data/__init__.py
|
vahidzee/ebad
|
dedda978efd298bfe90b7d672a062aabfbd839ac
|
[
"MIT"
] | null | null | null |
from .utils import NormalDataset, IsNormalDataset
from .module import AnoDataModule
| 28
| 49
| 0.857143
| 9
| 84
| 8
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107143
| 84
| 2
| 50
| 42
| 0.96
| 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
|
986e6a042960d5f0afd0172bc4c19406c8d051aa
| 192
|
py
|
Python
|
DjangoEcommerceApp/admin.py
|
abdullah1107/DjangoEcommarceAmazonClone
|
93b7d00e74e8e5ce202d0b7cbb70e7974ee47dba
|
[
"MIT"
] | null | null | null |
DjangoEcommerceApp/admin.py
|
abdullah1107/DjangoEcommarceAmazonClone
|
93b7d00e74e8e5ce202d0b7cbb70e7974ee47dba
|
[
"MIT"
] | null | null | null |
DjangoEcommerceApp/admin.py
|
abdullah1107/DjangoEcommarceAmazonClone
|
93b7d00e74e8e5ce202d0b7cbb70e7974ee47dba
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from DjangoEcommerceApp.models import Categories,SubCategories
# Register your models here.
admin.site.register(Categories)
admin.site.register(SubCategories)
| 32
| 62
| 0.854167
| 23
| 192
| 7.130435
| 0.565217
| 0.109756
| 0.207317
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078125
| 192
| 6
| 63
| 32
| 0.926554
| 0.135417
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
9883b72195dabc53e648de676cefda8832c1b066
| 44
|
py
|
Python
|
bert_e/workflow/__init__.py
|
tcarmet/bert-e
|
8e0623d9a8c7bd111790d72307862167eca18a23
|
[
"Apache-2.0"
] | null | null | null |
bert_e/workflow/__init__.py
|
tcarmet/bert-e
|
8e0623d9a8c7bd111790d72307862167eca18a23
|
[
"Apache-2.0"
] | 35
|
2020-08-26T09:25:56.000Z
|
2022-01-10T20:38:15.000Z
|
bert_e/workflow/__init__.py
|
tcarmet/bert-e
|
8e0623d9a8c7bd111790d72307862167eca18a23
|
[
"Apache-2.0"
] | 2
|
2021-08-17T15:56:50.000Z
|
2022-01-05T19:26:48.000Z
|
# from . import gitwaterflow as gwf # noqa
| 22
| 43
| 0.704545
| 6
| 44
| 5.166667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.227273
| 44
| 1
| 44
| 44
| 0.911765
| 0.909091
| 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
|
989e92c26401ff6e72ecebc5f7816b3fbb7b3497
| 102
|
py
|
Python
|
exp/imagescrape.py
|
CMWENLIU/fast_tensor
|
c1c74e27d72c63df6dca0dcf0a2693dff59dee7b
|
[
"MIT"
] | null | null | null |
exp/imagescrape.py
|
CMWENLIU/fast_tensor
|
c1c74e27d72c63df6dca0dcf0a2693dff59dee7b
|
[
"MIT"
] | null | null | null |
exp/imagescrape.py
|
CMWENLIU/fast_tensor
|
c1c74e27d72c63df6dca0dcf0a2693dff59dee7b
|
[
"MIT"
] | null | null | null |
import image_scraper
image_scraper.scrape_images('ananth.co.in/test.html')
print ('scrape finished')
| 34
| 54
| 0.803922
| 15
| 102
| 5.266667
| 0.8
| 0.303797
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068627
| 102
| 3
| 55
| 34
| 0.831579
| 0
| 0
| 0
| 0
| 0
| 0.366337
| 0.217822
| 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
|
7f742fad413709fe913b7c89c8606407e90b92c0
| 104
|
py
|
Python
|
rider/admin.py
|
sami-mai/Carpool-R-Us
|
306c60788e3dc123c3ac85e0c40ac5a291590709
|
[
"MIT"
] | null | null | null |
rider/admin.py
|
sami-mai/Carpool-R-Us
|
306c60788e3dc123c3ac85e0c40ac5a291590709
|
[
"MIT"
] | 5
|
2020-02-12T00:43:34.000Z
|
2021-06-10T20:18:42.000Z
|
rider/admin.py
|
sami-mai/Carpool-R-Us
|
306c60788e3dc123c3ac85e0c40ac5a291590709
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Rider_Profile
admin.site.register(Rider_Profile)
| 17.333333
| 34
| 0.836538
| 15
| 104
| 5.666667
| 0.666667
| 0.282353
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105769
| 104
| 5
| 35
| 20.8
| 0.913978
| 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 | 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
|
7fa4a25dd4071b725965cc3b69dbc09d852206fe
| 96
|
py
|
Python
|
aura/extensions/game_moderator/__init__.py
|
shibdib/Aura
|
2612052372157cf4a207007464815d2dbe638ba0
|
[
"MIT"
] | null | null | null |
aura/extensions/game_moderator/__init__.py
|
shibdib/Aura
|
2612052372157cf4a207007464815d2dbe638ba0
|
[
"MIT"
] | null | null | null |
aura/extensions/game_moderator/__init__.py
|
shibdib/Aura
|
2612052372157cf4a207007464815d2dbe638ba0
|
[
"MIT"
] | null | null | null |
from .game_moderator import GameModerator
def setup(bot):
bot.add_cog(GameModerator(bot))
| 16
| 41
| 0.770833
| 13
| 96
| 5.538462
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135417
| 96
| 5
| 42
| 19.2
| 0.86747
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
7fad4827c8ef62e2f7a5c8d683d7c30da478d389
| 184
|
py
|
Python
|
terra_sdk/util/parse_authorization.py
|
m04120310/terra.py
|
211a616580da966630fe2d5839ab2f5fa9ed10c1
|
[
"MIT"
] | null | null | null |
terra_sdk/util/parse_authorization.py
|
m04120310/terra.py
|
211a616580da966630fe2d5839ab2f5fa9ed10c1
|
[
"MIT"
] | null | null | null |
terra_sdk/util/parse_authorization.py
|
m04120310/terra.py
|
211a616580da966630fe2d5839ab2f5fa9ed10c1
|
[
"MIT"
] | null | null | null |
from terra_sdk.core.authz import GenericAuthorization, SendAuthorization
from .base import create_demux
parse_authorization = create_demux([GenericAuthorization, SendAuthorization])
| 30.666667
| 77
| 0.86413
| 19
| 184
| 8.157895
| 0.684211
| 0.477419
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.081522
| 184
| 5
| 78
| 36.8
| 0.91716
| 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
|
7fb3a8352c73332f4a371194558c07b75fc7ad14
| 57
|
py
|
Python
|
alkaid/env/__init__.py
|
Renovamen/alkaid
|
78bb19c3d18856234dec9444235b749c6006655f
|
[
"MIT"
] | 1
|
2021-06-04T10:33:44.000Z
|
2021-06-04T10:33:44.000Z
|
alkaid/env/__init__.py
|
Renovamen/alkaid
|
78bb19c3d18856234dec9444235b749c6006655f
|
[
"MIT"
] | null | null | null |
alkaid/env/__init__.py
|
Renovamen/alkaid
|
78bb19c3d18856234dec9444235b749c6006655f
|
[
"MIT"
] | null | null | null |
from .base import EnvWrapper
from .gym import GymWrapper
| 19
| 28
| 0.824561
| 8
| 57
| 5.875
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140351
| 57
| 2
| 29
| 28.5
| 0.959184
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
7fbd5f5bc02c96713deb6da5a2c76515dad2c2e4
| 403
|
py
|
Python
|
src/globus_cli/commands/search/index/__init__.py
|
globusonline/globus-cli
|
696857baafac198141edc3c1c29c72215f217df1
|
[
"Apache-2.0"
] | null | null | null |
src/globus_cli/commands/search/index/__init__.py
|
globusonline/globus-cli
|
696857baafac198141edc3c1c29c72215f217df1
|
[
"Apache-2.0"
] | 1
|
2016-04-09T17:26:05.000Z
|
2016-04-11T16:13:50.000Z
|
src/globus_cli/commands/search/index/__init__.py
|
globusonline/globus-cli
|
696857baafac198141edc3c1c29c72215f217df1
|
[
"Apache-2.0"
] | null | null | null |
from globus_cli.parsing import group
from .create import create_command
from .list import list_command
from .role import role_command
from .show import show_command
@group("index")
def index_command():
"""View and manage indices"""
index_command.add_command(create_command)
index_command.add_command(list_command)
index_command.add_command(show_command)
index_command.add_command(role_command)
| 22.388889
| 41
| 0.823821
| 59
| 403
| 5.322034
| 0.305085
| 0.191083
| 0.191083
| 0.280255
| 0.27707
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.099256
| 403
| 17
| 42
| 23.705882
| 0.865014
| 0.057072
| 0
| 0
| 0
| 0
| 0.013369
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.090909
| true
| 0
| 0.454545
| 0
| 0.545455
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
7fbdab54542f03164e119f66bee7c06010fe5753
| 226
|
py
|
Python
|
specreduce/core.py
|
lprichard/specreduce
|
616b971b167501f2f07216b611fa932e27c53d2d
|
[
"BSD-3-Clause"
] | null | null | null |
specreduce/core.py
|
lprichard/specreduce
|
616b971b167501f2f07216b611fa932e27c53d2d
|
[
"BSD-3-Clause"
] | null | null | null |
specreduce/core.py
|
lprichard/specreduce
|
616b971b167501f2f07216b611fa932e27c53d2d
|
[
"BSD-3-Clause"
] | null | null | null |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# This module implements the base CCDPROC functions
from __future__ import (absolute_import, division, print_function,
unicode_literals)
| 37.666667
| 66
| 0.730088
| 28
| 226
| 5.642857
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005714
| 0.225664
| 226
| 5
| 67
| 45.2
| 0.897143
| 0.49115
| 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
|
f68cbd5983f51afa0494e66b87a966ef85543b30
| 258
|
py
|
Python
|
tests/system/appwsrv/test_smoke.py
|
jean-edouard-boulanger/finbot
|
ddc3c0e4673b1025d2352719755ff77ef445577c
|
[
"MIT"
] | 1
|
2020-12-25T19:33:27.000Z
|
2020-12-25T19:33:27.000Z
|
tests/system/appwsrv/test_smoke.py
|
jean-edouard-boulanger/finbot
|
ddc3c0e4673b1025d2352719755ff77ef445577c
|
[
"MIT"
] | 1
|
2021-01-18T23:19:58.000Z
|
2021-01-19T17:35:13.000Z
|
tests/system/appwsrv/test_smoke.py
|
jean-edouard-boulanger/finbot
|
ddc3c0e4673b1025d2352719755ff77ef445577c
|
[
"MIT"
] | 1
|
2020-01-19T22:37:36.000Z
|
2020-01-19T22:37:36.000Z
|
from finbot.core.environment import get_appwsrv_endpoint
from finbot.clients.app import AppClient
import pytest
@pytest.fixture
def api() -> AppClient:
return AppClient(get_appwsrv_endpoint())
def test_healthy(api: AppClient):
assert api.healthy
| 19.846154
| 56
| 0.790698
| 34
| 258
| 5.852941
| 0.558824
| 0.100503
| 0.180905
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131783
| 258
| 12
| 57
| 21.5
| 0.888393
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 1
| 0.25
| false
| 0
| 0.375
| 0.125
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 5
|
f69f6c0d37e2bf3fffb231f9b6280af948222205
| 917
|
py
|
Python
|
modules/pymol/checking.py
|
hryknkgw/pymolwin
|
4a1335e90497dbcbfa789f1285a7c1ad84a051f8
|
[
"CNRI-Python"
] | null | null | null |
modules/pymol/checking.py
|
hryknkgw/pymolwin
|
4a1335e90497dbcbfa789f1285a7c1ad84a051f8
|
[
"CNRI-Python"
] | null | null | null |
modules/pymol/checking.py
|
hryknkgw/pymolwin
|
4a1335e90497dbcbfa789f1285a7c1ad84a051f8
|
[
"CNRI-Python"
] | null | null | null |
import types
import cmd
def _raising(code=-1,_self=cmd):
# WARNING: internal routine, subject to change
if isinstance(code, types.IntType):
if code<0:
return _self.get_setting_legacy("raise_exceptions")
return 0
def is_string(obj):
return (isinstance(obj,types.StringType) or isinstance(obj,types.UnicodeType))
def is_list(obj):
return isinstance(obj,types.ListType)
def is_dict(obj):
return isinstance(obj,types.DictType)
def is_tuple(obj):
return isinstance(obj,types.TupleType)
def is_sequence(obj):
return isinstance(obj,types.ListType) or isinstance(obj,types.TupleType)
def is_error(result): # errors are always negative numbers
if isinstance(result,types.IntType):
return (result<0)
return 0
def is_ok(result): # something other than a negative number
if isinstance(result,types.IntType):
return (result>=0)
return 1
| 25.472222
| 82
| 0.716467
| 127
| 917
| 5.070866
| 0.393701
| 0.054348
| 0.195652
| 0.170807
| 0.458075
| 0.360248
| 0.152174
| 0.152174
| 0.152174
| 0
| 0
| 0.009346
| 0.183206
| 917
| 35
| 83
| 26.2
| 0.850467
| 0.12868
| 0
| 0.16
| 0
| 0
| 0.020151
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.32
| false
| 0
| 0.08
| 0.2
| 0.84
| 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
|
f6d9cc3d28596dc01b8dd2f8183374a36e8c6333
| 295
|
py
|
Python
|
main/SteppableDemos/SteadyStateDiffusionSolver/diffusion_steady_state_ext_potential_3D_oxygen/Simulation/diffusion_steady_state_ext_potential_3D_oxygen.py
|
JulianoGianlupi/nh-cc3d-4x-base-tool
|
c0f4aceebd4c5bf3ec39e831ef851e419b161259
|
[
"CC0-1.0"
] | null | null | null |
main/SteppableDemos/SteadyStateDiffusionSolver/diffusion_steady_state_ext_potential_3D_oxygen/Simulation/diffusion_steady_state_ext_potential_3D_oxygen.py
|
JulianoGianlupi/nh-cc3d-4x-base-tool
|
c0f4aceebd4c5bf3ec39e831ef851e419b161259
|
[
"CC0-1.0"
] | null | null | null |
main/SteppableDemos/SteadyStateDiffusionSolver/diffusion_steady_state_ext_potential_3D_oxygen/Simulation/diffusion_steady_state_ext_potential_3D_oxygen.py
|
JulianoGianlupi/nh-cc3d-4x-base-tool
|
c0f4aceebd4c5bf3ec39e831ef851e419b161259
|
[
"CC0-1.0"
] | 1
|
2021-02-26T21:50:29.000Z
|
2021-02-26T21:50:29.000Z
|
from cc3d import CompuCellSetup
from diffusion_steady_state_ext_potential_3D_oxygenSteppables import diffusion_steady_state_ext_potential_3D_oxygenSteppable
CompuCellSetup.register_steppable(steppable=diffusion_steady_state_ext_potential_3D_oxygenSteppable(frequency=1))
CompuCellSetup.run()
| 36.875
| 124
| 0.922034
| 35
| 295
| 7.228571
| 0.485714
| 0.177866
| 0.237154
| 0.272727
| 0.521739
| 0.521739
| 0.387352
| 0
| 0
| 0
| 0
| 0.017731
| 0.044068
| 295
| 7
| 125
| 42.142857
| 0.879433
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 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
|
f6ecd9b031e11174205171364137ef3eda5fd8a0
| 32
|
py
|
Python
|
pdf_sanitizer/__init__.py
|
lucasmrdt/pdf-sanitizer
|
c09c2232c72ec27660b75727307e992733923248
|
[
"MIT"
] | null | null | null |
pdf_sanitizer/__init__.py
|
lucasmrdt/pdf-sanitizer
|
c09c2232c72ec27660b75727307e992733923248
|
[
"MIT"
] | null | null | null |
pdf_sanitizer/__init__.py
|
lucasmrdt/pdf-sanitizer
|
c09c2232c72ec27660b75727307e992733923248
|
[
"MIT"
] | null | null | null |
from .pdf_sanitizer import main
| 16
| 31
| 0.84375
| 5
| 32
| 5.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 32
| 1
| 32
| 32
| 0.928571
| 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
|
12046f4d813b5e4d1a7258fafd31420fbc4d57c6
| 102
|
py
|
Python
|
stored_messages/backends/exceptions.py
|
andrejchikilev/django-stored-messages
|
77520e16e2cc875790aa16c26592c541c9a35fd2
|
[
"BSD-3-Clause"
] | 42
|
2015-04-18T15:20:02.000Z
|
2019-08-18T06:06:19.000Z
|
stored_messages/backends/exceptions.py
|
andrejchikilev/django-stored-messages
|
77520e16e2cc875790aa16c26592c541c9a35fd2
|
[
"BSD-3-Clause"
] | 19
|
2015-02-02T16:49:59.000Z
|
2018-08-29T07:10:07.000Z
|
stored_messages/backends/exceptions.py
|
andrejchikilev/django-stored-messages
|
77520e16e2cc875790aa16c26592c541c9a35fd2
|
[
"BSD-3-Clause"
] | 27
|
2015-02-27T15:49:13.000Z
|
2021-09-03T09:55:09.000Z
|
class MessageTypeNotSupported(Exception):
pass
class MessageDoesNotExist(Exception):
pass
| 11.333333
| 41
| 0.764706
| 8
| 102
| 9.75
| 0.625
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.176471
| 102
| 8
| 42
| 12.75
| 0.928571
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
1222a7ef26f4118d1f94a7ea6636b53ff852aa50
| 134
|
py
|
Python
|
Mengisi_Input_Ke_Variable_Integer.py
|
naufal-ansar/Project_Algoritma_Python
|
e587a9b13388fa75f8e6e9d52316236bb0e982a7
|
[
"MIT"
] | null | null | null |
Mengisi_Input_Ke_Variable_Integer.py
|
naufal-ansar/Project_Algoritma_Python
|
e587a9b13388fa75f8e6e9d52316236bb0e982a7
|
[
"MIT"
] | null | null | null |
Mengisi_Input_Ke_Variable_Integer.py
|
naufal-ansar/Project_Algoritma_Python
|
e587a9b13388fa75f8e6e9d52316236bb0e982a7
|
[
"MIT"
] | null | null | null |
##NIM, Umur, Tinggi = (211080200045, 18, 170)
##print(NIM, Umur, Tinggi)
angka_positif = 1,2,3,4,5,6,7,8,9
print(angka_positif)
| 22.333333
| 46
| 0.656716
| 24
| 134
| 3.583333
| 0.75
| 0.162791
| 0.302326
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.22807
| 0.149254
| 134
| 5
| 47
| 26.8
| 0.526316
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 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
|
122fdf736a03b1118099cb3743a67ade09d34083
| 28
|
py
|
Python
|
tests/roots/test-ext-doctest-with-autodoc/dir/bar.py
|
samdoran/sphinx
|
4c91c038b220d07bbdfe0c1680af42fe897f342c
|
[
"BSD-2-Clause"
] | 4,973
|
2015-01-03T15:44:00.000Z
|
2022-03-31T03:11:51.000Z
|
tests/roots/test-ext-doctest-with-autodoc/dir/bar.py
|
samdoran/sphinx
|
4c91c038b220d07bbdfe0c1680af42fe897f342c
|
[
"BSD-2-Clause"
] | 7,850
|
2015-01-02T08:09:25.000Z
|
2022-03-31T18:57:40.000Z
|
tests/roots/test-ext-doctest-with-autodoc/dir/bar.py
|
samdoran/sphinx
|
4c91c038b220d07bbdfe0c1680af42fe897f342c
|
[
"BSD-2-Clause"
] | 2,179
|
2015-01-03T15:26:53.000Z
|
2022-03-31T12:22:44.000Z
|
"""
>>> 'dir/bar.py:2'
"""
| 5.6
| 18
| 0.321429
| 4
| 28
| 2.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.043478
| 0.178571
| 28
| 4
| 19
| 7
| 0.347826
| 0.642857
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
1235d608369ea7e04d9407aac3b8fd9e50240e87
| 73
|
py
|
Python
|
oreopy/fields/integer_field.py
|
maclinchy/oreopy
|
b6d644951895d7e74c7d064fd6e4903387e02d4c
|
[
"MIT"
] | null | null | null |
oreopy/fields/integer_field.py
|
maclinchy/oreopy
|
b6d644951895d7e74c7d064fd6e4903387e02d4c
|
[
"MIT"
] | null | null | null |
oreopy/fields/integer_field.py
|
maclinchy/oreopy
|
b6d644951895d7e74c7d064fd6e4903387e02d4c
|
[
"MIT"
] | null | null | null |
class IntegerField:
def __str__(self):
return "integer"
| 14.6
| 24
| 0.60274
| 7
| 73
| 5.714286
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.315068
| 73
| 4
| 25
| 18.25
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0.09589
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
124223165adc7186b010a98b45c01ca5d6a77515
| 49
|
py
|
Python
|
src/test_module_functions.py
|
adeepak7/test_repository
|
8808f8945e5961d78a1bc7d6c4217fea5c23036b
|
[
"MIT"
] | null | null | null |
src/test_module_functions.py
|
adeepak7/test_repository
|
8808f8945e5961d78a1bc7d6c4217fea5c23036b
|
[
"MIT"
] | null | null | null |
src/test_module_functions.py
|
adeepak7/test_repository
|
8808f8945e5961d78a1bc7d6c4217fea5c23036b
|
[
"MIT"
] | null | null | null |
def say_hi_to_team(message):
print(message)
| 12.25
| 28
| 0.734694
| 8
| 49
| 4.125
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.163265
| 49
| 4
| 29
| 12.25
| 0.804878
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
125a9ece67c04f404064f7fce81310c9cf2652f3
| 412
|
py
|
Python
|
arekit/common/labels/base.py
|
nicolay-r/AREk
|
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
|
[
"MIT"
] | 18
|
2019-12-14T18:43:11.000Z
|
2022-03-21T05:55:36.000Z
|
evaluation/core/labels/base.py
|
nicolay-r/RuSentRel-Leaderboard
|
90d838c3e3dbca1a9af1e317b26ebe9007741158
|
[
"MIT"
] | 284
|
2020-08-08T20:52:44.000Z
|
2022-03-31T05:26:20.000Z
|
evaluation/core/labels/base.py
|
nicolay-r/RuSentRel-Leaderboard
|
90d838c3e3dbca1a9af1e317b26ebe9007741158
|
[
"MIT"
] | 1
|
2021-08-07T13:17:43.000Z
|
2021-08-07T13:17:43.000Z
|
class Label(object):
def __eq__(self, other):
assert(isinstance(other, Label))
return type(self) == type(other)
def __ne__(self, other):
assert(isinstance(other, Label))
return type(self) != type(other)
def __hash__(self):
return hash(self.to_class_str())
def to_class_str(self):
return self.__class__.__name__
class NoLabel(Label):
pass
| 20.6
| 40
| 0.626214
| 51
| 412
| 4.588235
| 0.352941
| 0.076923
| 0.128205
| 0.213675
| 0.521368
| 0.521368
| 0.521368
| 0.521368
| 0.521368
| 0.521368
| 0
| 0
| 0.254854
| 412
| 19
| 41
| 21.684211
| 0.762215
| 0
| 0
| 0.153846
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 1
| 0.307692
| false
| 0.076923
| 0
| 0.153846
| 0.769231
| 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
| 1
| 0
| 1
| 1
| 0
|
0
| 5
|
89c1c180a61a71c886fa88813a94e803997fa6bb
| 64
|
py
|
Python
|
zkSNARK/functions.py
|
grakshith/zk-priv-vote
|
648c1d8c90ea67ffc480376840abcf258810991e
|
[
"MIT"
] | null | null | null |
zkSNARK/functions.py
|
grakshith/zk-priv-vote
|
648c1d8c90ea67ffc480376840abcf258810991e
|
[
"MIT"
] | null | null | null |
zkSNARK/functions.py
|
grakshith/zk-priv-vote
|
648c1d8c90ea67ffc480376840abcf258810991e
|
[
"MIT"
] | 1
|
2021-03-01T08:41:35.000Z
|
2021-03-01T08:41:35.000Z
|
from crypto import *
from bm_utils import run_function_extended
| 21.333333
| 42
| 0.859375
| 10
| 64
| 5.2
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 64
| 2
| 43
| 32
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
d6072d0dbda090ef6bc510abeeb0d74a4545d6c2
| 180
|
py
|
Python
|
src/config.py
|
cvallance/bkcwc
|
12b3b0b70bbca4fe682c5ad176b7da7b6cc1bbad
|
[
"MIT"
] | 2
|
2017-07-11T10:19:28.000Z
|
2017-10-16T00:28:48.000Z
|
src/config.py
|
cvallance/bkcwc
|
12b3b0b70bbca4fe682c5ad176b7da7b6cc1bbad
|
[
"MIT"
] | 1
|
2017-07-27T02:20:33.000Z
|
2017-07-27T02:20:33.000Z
|
src/config.py
|
cvallance/bkcwc
|
12b3b0b70bbca4fe682c5ad176b7da7b6cc1bbad
|
[
"MIT"
] | null | null | null |
import os
TEST_FILE_DIRECTORY = os.environ.get('TEST_FILE_DIRECTORY')
TEST_FILE_NAME = os.environ.get('TEST_FILE_NAME')
COVERAGE_FILE_NAME = os.environ.get('COVERAGE_FILE_NAME')
| 25.714286
| 59
| 0.811111
| 29
| 180
| 4.62069
| 0.310345
| 0.238806
| 0.268657
| 0.238806
| 0.507463
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072222
| 180
| 6
| 60
| 30
| 0.802395
| 0
| 0
| 0
| 0
| 0
| 0.284916
| 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
|
d61e50ff17af44ff7a412609a82fd8be0ec289c7
| 19
|
py
|
Python
|
version.py
|
alexfikl/PyWENO
|
224fe7459f00578728b151531367c67c62f57c2b
|
[
"BSD-3-Clause"
] | 26
|
2015-07-09T13:32:39.000Z
|
2021-10-13T06:55:07.000Z
|
version.py
|
alexfikl/PyWENO
|
224fe7459f00578728b151531367c67c62f57c2b
|
[
"BSD-3-Clause"
] | 4
|
2015-03-16T16:11:31.000Z
|
2021-03-08T17:33:41.000Z
|
version.py
|
alexfikl/PyWENO
|
224fe7459f00578728b151531367c67c62f57c2b
|
[
"BSD-3-Clause"
] | 12
|
2015-08-14T12:44:37.000Z
|
2022-01-09T12:03:13.000Z
|
version = '0.11.2'
| 9.5
| 18
| 0.578947
| 4
| 19
| 2.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 0.157895
| 19
| 1
| 19
| 19
| 0.4375
| 0
| 0
| 0
| 0
| 0
| 0.315789
| 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
|
d63cc75396e904023071eaa25263763c1d60495e
| 183
|
py
|
Python
|
diploma/noise_learning/common/serializable.py
|
d4glushko/RLGeneralization
|
788bfbfc54fc3a84bcf930e9546ceff45ade9f59
|
[
"MIT"
] | null | null | null |
diploma/noise_learning/common/serializable.py
|
d4glushko/RLGeneralization
|
788bfbfc54fc3a84bcf930e9546ceff45ade9f59
|
[
"MIT"
] | 5
|
2020-09-25T19:34:45.000Z
|
2022-02-10T01:14:01.000Z
|
diploma/noise_learning/common/serializable.py
|
d4glushko/RLGeneralization
|
788bfbfc54fc3a84bcf930e9546ceff45ade9f59
|
[
"MIT"
] | null | null | null |
class DictSerializable:
@classmethod
def from_dict(cls, data: dict) -> 'DictSerializable':
return cls(**data)
def to_dict(self) -> dict:
return vars(self)
| 26.142857
| 57
| 0.63388
| 21
| 183
| 5.428571
| 0.571429
| 0.122807
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.245902
| 183
| 7
| 58
| 26.142857
| 0.826087
| 0
| 0
| 0
| 0
| 0
| 0.086957
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
d659a1815c33e20bcb5c10582021af2ccfb841c1
| 40
|
py
|
Python
|
python/testData/inspections/PyUnresolvedReferencesInspection3K/decodeBytesAfterSlicing.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/inspections/PyUnresolvedReferencesInspection3K/decodeBytesAfterSlicing.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/inspections/PyUnresolvedReferencesInspection3K/decodeBytesAfterSlicing.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
a = b'1234'[:3]
print(a.decode('utf-8'))
| 20
| 24
| 0.575
| 9
| 40
| 2.555556
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.162162
| 0.075
| 40
| 2
| 24
| 20
| 0.459459
| 0
| 0
| 0
| 0
| 0
| 0.219512
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
c38f1a62d1bdad4cbe46a5dd17e11cd4a19cdc74
| 61
|
py
|
Python
|
lstm_variants/__init__.py
|
urchade/lstm-variants
|
7a44b5e40a2c9e6685970e5123c65063f7c58173
|
[
"MIT"
] | null | null | null |
lstm_variants/__init__.py
|
urchade/lstm-variants
|
7a44b5e40a2c9e6685970e5123c65063f7c58173
|
[
"MIT"
] | null | null | null |
lstm_variants/__init__.py
|
urchade/lstm-variants
|
7a44b5e40a2c9e6685970e5123c65063f7c58173
|
[
"MIT"
] | null | null | null |
from .lstm import BiLSTM, LSTM, FocusedLSTM, LightweightLSTM
| 30.5
| 60
| 0.819672
| 7
| 61
| 7.142857
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114754
| 61
| 1
| 61
| 61
| 0.925926
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
c39e8aaa4c8864ce8f1d38380a56490b25b73a2d
| 4,091
|
py
|
Python
|
python/src/java_one_file_capture.py
|
antlr/groom
|
909c04b386c6d384344cd0d060dd1e3b4bde77a2
|
[
"BSD-2-Clause"
] | 408
|
2016-04-21T09:40:08.000Z
|
2022-03-22T02:05:29.000Z
|
python/src/java_one_file_capture.py
|
antlr/groom
|
909c04b386c6d384344cd0d060dd1e3b4bde77a2
|
[
"BSD-2-Clause"
] | 25
|
2016-01-24T17:28:49.000Z
|
2021-05-05T19:17:55.000Z
|
python/src/java_one_file_capture.py
|
antlr/groom
|
909c04b386c6d384344cd0d060dd1e3b4bde77a2
|
[
"BSD-2-Clause"
] | 78
|
2016-02-14T07:22:21.000Z
|
2022-02-10T08:23:12.000Z
|
#
# AUTO-GENERATED FILE. DO NOT EDIT
# CodeBuff 1.4.14 'Sat May 14 15:56:29 PDT 2016'
#
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = plt.subplot(111)
labels = ["AttributeRenderer.java", "AutoIndentWriter.java", "Bytecode.java", "BytecodeDisassembler.java", "CompilationState.java", "CompiledST.java", "Compiler.java", "FormalArgument.java", "STException.java", "STLexer.java", "StringTable.java", "DateRenderer.java", "AddAttributeEvent.java", "ConstructionEvent.java", "EvalExprEvent.java", "EvalTemplateEvent.java", "IndentEvent.java", "InterpEvent.java", "JTreeASTModel.java", "JTreeScopeStackModel.java", "JTreeSTModel.java", "STViewFrame.java", "STViz.java", "InstanceScope.java", "Interpreter.java", "Aggregate.java", "AggregateModelAdaptor.java", "AmbiguousMatchException.java", "ArrayIterator.java", "Coordinate.java", "ErrorBuffer.java", "ErrorManager.java", "ErrorType.java", "Interval.java", "MapModelAdaptor.java", "Misc.java", "MultiMap.java", "ObjectModelAdaptor.java", "STCompiletimeMessage.java", "STGroupCompiletimeMessage.java", "STLexerMessage.java", "STMessage.java", "STModelAdaptor.java", "STNoSuchAttributeException.java", "STNoSuchPropertyException.java", "STRuntimeMessage.java", "TypeRegistry.java", "ModelAdaptor.java", "NoIndentWriter.java", "NumberRenderer.java", "ST.java", "STErrorListener.java", "STGroup.java", "STGroupDir.java", "STGroupFile.java", "STGroupString.java", "STRawGroupDir.java", "StringRenderer.java", "STWriter.java"]
N = len(labels)
featureIndexes = range(0,N)
java_self = [0.0014144272, 0.00921273, 0.030774673, 0.010449494, 0.013233753, 0.009566206, 0.2061341, 0.00518836, 5.7670125E-4, 0.042569626, 0.0013704888, 0.17826189, 0.027120316, 0.0036215482, 0.044477392, 5.5648305E-4, 5.488474E-4, 0.0160451, 0.00597213, 0.0069804904, 0.008637873, 0.013574097, 0.114877656, 0.0052476223, 0.045636185, 0.0012607161, 0.0018912529, 0.0014814815, 0.0027667985, 0.005720229, 0.0019984012, 0.20618945, 0.0010741139, 0.0037695207, 0.0011406844, 0.0117525505, 0.0015166835, 0.008285425, 0.02033643, 0.027459955, 0.0024196336, 0.0028653296, 5.0813006E-4, 0.0018779343, 0.0013805799, 0.0043144776, 5.923293E-4, 0.0014109347, 0.0015923567, 0.0016373311, 0.023233462, 0.0016556291, 0.06180504, 0.2565026, 0.29939926, 0.01141925, 0.022051282, 0.0038582108, 0.003968254]
java_corpus = [0.0014144272, 0.007682151, 0.30651522, 0.013600929, 0.020571278, 0.024351558, 0.17236817, 0.009968283, 0.009153318, 0.085019246, 0.002739726, 0.18152124, 0.043670263, 0.017833259, 0.05263158, 0.0011129661, 0.0010976949, 0.017779706, 0.0069651743, 0.0073463535, 0.016097024, 0.012577833, 0.16652292, 0.0049423394, 0.04210875, 0.001512478, 0.0075650117, 0.0024703557, 0.0023762377, 0.021505376, 0.0028011205, 0.22166277, 0.004549104, 0.020624008, 0.008365019, 0.013274906, 0.0015166835, 0.124659196, 0.076005615, 0.02876757, 0.0034578147, 0.006841505, 0.0071138213, 0.0018796993, 0.0013805799, 0.07252845, 0.01170197, 0.0042357924, 0.0015923567, 0.0012285012, 0.035987005, 0.0033057851, 0.042728722, 0.044760536, 0.03788218, 0.011425463, 0.026153846, 0.008182912, 0.0037066455]
java_diff = np.abs(np.subtract(java_self, java_corpus))
all = zip(java_self, java_corpus, java_diff, labels)
all = sorted(all, key=lambda x : x[2], reverse=True)
java_self, java_corpus, java_diff, labels = zip(*all)
ax.plot(featureIndexes, java_self, label="java_self")
#ax.plot(featureIndexes, java_corpus, label="java_corpus")
ax.plot(featureIndexes, java_diff, label="java_diff")
ax.set_xticklabels(labels, rotation=60, fontsize=8)
plt.xticks(featureIndexes, labels, rotation=60)
ax.yaxis.grid(True, linestyle='-', which='major', color='lightgrey', alpha=0.5)
ax.text(1, .25, 'median $f$ self distance = %5.3f, corpus+$f$ distance = %5.3f' % (np.median(java_self),np.median(java_corpus)))
ax.set_xlabel("File Name")
ax.set_ylabel("Edit Distance")
ax.set_title("Difference between Formatting File java $f$\nwith Training=$f$ and Training=$f$+Corpus")
plt.legend()
plt.tight_layout()
fig.savefig("images/java_one_file_capture.pdf", format='pdf')
plt.show()
| 110.567568
| 1,316
| 0.760694
| 559
| 4,091
| 5.518784
| 0.477639
| 0.018152
| 0.011669
| 0.017504
| 0.020746
| 0.020746
| 0.020746
| 0
| 0
| 0
| 0
| 0.324003
| 0.074309
| 4,091
| 36
| 1,317
| 113.638889
| 0.490626
| 0.033244
| 0
| 0
| 1
| 0.038462
| 0.331223
| 0.107875
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.076923
| 0
| 0.076923
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
c3c2cad5861af5ac15aa21a5af4ecdc8ccb6946e
| 265
|
py
|
Python
|
python_exercises/Curso_em_video/ex046.py
|
Matheus-IT/lang-python-related
|
dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9
|
[
"MIT"
] | null | null | null |
python_exercises/Curso_em_video/ex046.py
|
Matheus-IT/lang-python-related
|
dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9
|
[
"MIT"
] | null | null | null |
python_exercises/Curso_em_video/ex046.py
|
Matheus-IT/lang-python-related
|
dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9
|
[
"MIT"
] | null | null | null |
from time import sleep
import emoji
for c in range(10, 0, -1):
print('|{:2}|'.format(c))
sleep(1)
print(emoji.emojize(':fireworks::fireworks::fireworks:', use_aliases=True))
print(emoji.emojize(':fireworks::fireworks::fireworks:', use_aliases=True))
| 33.125
| 76
| 0.686792
| 37
| 265
| 4.864865
| 0.540541
| 0.4
| 0.188889
| 0.288889
| 0.644444
| 0.644444
| 0.644444
| 0.644444
| 0.644444
| 0
| 0
| 0.025862
| 0.124528
| 265
| 7
| 77
| 37.857143
| 0.75
| 0
| 0
| 0.285714
| 0
| 0
| 0.27907
| 0.255814
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.285714
| 0
| 0.285714
| 0.428571
| 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
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
7f1048036dc6e086b4486607ea5dbaca010be733
| 120
|
py
|
Python
|
app/definitions.py
|
mvheimburg/access_control_server
|
619d7d183aea5a89c238f6f35ffc94d56a55e284
|
[
"MIT"
] | 1
|
2021-12-06T10:04:40.000Z
|
2021-12-06T10:04:40.000Z
|
app/definitions.py
|
mvheimburg/access_control_server
|
619d7d183aea5a89c238f6f35ffc94d56a55e284
|
[
"MIT"
] | null | null | null |
app/definitions.py
|
mvheimburg/access_control_server
|
619d7d183aea5a89c238f6f35ffc94d56a55e284
|
[
"MIT"
] | null | null | null |
import os
from pythonpath import get_script_directory
"""
System definitions
"""
ROOT_DIR = get_script_directory()
| 15
| 43
| 0.775
| 15
| 120
| 5.866667
| 0.733333
| 0.204545
| 0.409091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15
| 120
| 8
| 44
| 15
| 0.862745
| 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
| 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
|
7f15bbae6311c8eed4092ffc5d55011bf24b15f2
| 133
|
py
|
Python
|
api/admin.py
|
collinmutembei/III
|
03c48e4dfdd05ce999c658d9c236d67aa9554f08
|
[
"MIT"
] | 2
|
2017-02-03T23:21:48.000Z
|
2017-04-16T21:36:59.000Z
|
api/admin.py
|
collinmutembei/III
|
03c48e4dfdd05ce999c658d9c236d67aa9554f08
|
[
"MIT"
] | 1
|
2018-08-13T19:53:14.000Z
|
2018-10-22T18:40:40.000Z
|
api/admin.py
|
collinmutembei/III
|
03c48e4dfdd05ce999c658d9c236d67aa9554f08
|
[
"MIT"
] | 1
|
2018-11-07T19:37:03.000Z
|
2018-11-07T19:37:03.000Z
|
from django.contrib import admin
from api.models import Bucketlist, Item
admin.site.register(Bucketlist)
admin.site.register(Item)
| 19
| 39
| 0.819549
| 19
| 133
| 5.736842
| 0.578947
| 0.165138
| 0.311927
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097744
| 133
| 6
| 40
| 22.166667
| 0.908333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
618ac03e0e92514484684f30a4178a0ac80a85e1
| 211
|
py
|
Python
|
wagtail_commons/core/apps.py
|
bgrace/wagtail-commons
|
37985629e3098842c08f6ae7072c2af8a69319f0
|
[
"BSD-3-Clause"
] | 13
|
2015-03-13T06:44:47.000Z
|
2021-08-01T02:36:36.000Z
|
wagtail_commons/core/apps.py
|
bgrace/wagtail-commons
|
37985629e3098842c08f6ae7072c2af8a69319f0
|
[
"BSD-3-Clause"
] | null | null | null |
wagtail_commons/core/apps.py
|
bgrace/wagtail-commons
|
37985629e3098842c08f6ae7072c2af8a69319f0
|
[
"BSD-3-Clause"
] | 1
|
2016-02-07T20:54:40.000Z
|
2016-02-07T20:54:40.000Z
|
__author__ = 'bgrace'
from django.apps import AppConfig
class WagtailCommonsCoreConfig(AppConfig):
label = 'wagtail_commons_bar'
name = 'wagtail_commons.core'
verbose_name = "Wagtail Commons Core"
| 23.444444
| 42
| 0.758294
| 23
| 211
| 6.608696
| 0.695652
| 0.276316
| 0.236842
| 0.289474
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.161137
| 211
| 8
| 43
| 26.375
| 0.858757
| 0
| 0
| 0
| 0
| 0
| 0.308057
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 0.833333
| 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
|
61a45f59b202701d289f2788f08ea86596b56312
| 50
|
py
|
Python
|
04/01/class_method/utcnow.py
|
pylangstudy/201709
|
53d868786d7327a83bfa7f4149549c6f9855a6c6
|
[
"CC0-1.0"
] | null | null | null |
04/01/class_method/utcnow.py
|
pylangstudy/201709
|
53d868786d7327a83bfa7f4149549c6f9855a6c6
|
[
"CC0-1.0"
] | 32
|
2017-09-01T00:52:17.000Z
|
2017-10-01T00:30:02.000Z
|
04/01/class_method/utcnow.py
|
pylangstudy/201709
|
53d868786d7327a83bfa7f4149549c6f9855a6c6
|
[
"CC0-1.0"
] | null | null | null |
import datetime
print(datetime.datetime.utcnow())
| 16.666667
| 33
| 0.82
| 6
| 50
| 6.833333
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.06
| 50
| 2
| 34
| 25
| 0.87234
| 0
| 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
|
61aedb348c9c6df8242a5caadbd903d2bd802569
| 81
|
py
|
Python
|
python_packages/python_pharmer/python_pharmer/videoProcessing/__init__.py
|
leeleavitt/procPharm
|
b09ce82a76658cf46c7427b0c106822c8cadfdf7
|
[
"MIT"
] | null | null | null |
python_packages/python_pharmer/python_pharmer/videoProcessing/__init__.py
|
leeleavitt/procPharm
|
b09ce82a76658cf46c7427b0c106822c8cadfdf7
|
[
"MIT"
] | 2
|
2021-01-08T18:50:01.000Z
|
2022-02-10T01:23:47.000Z
|
python_packages/python_pharmer/python_pharmer/videoProcessing/__init__.py
|
leeleavitt/procPharm
|
b09ce82a76658cf46c7427b0c106822c8cadfdf7
|
[
"MIT"
] | 1
|
2020-04-24T20:45:06.000Z
|
2020-04-24T20:45:06.000Z
|
from .videoTools import roi_checker, time_info_gather, video_roi_extractor_faster
| 81
| 81
| 0.901235
| 12
| 81
| 5.583333
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.061728
| 81
| 1
| 81
| 81
| 0.881579
| 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
|
61c27b4a3d828953f78b14cc74055632d29600ce
| 119
|
py
|
Python
|
reviewlogic/reviewlogic/value_objects/user_id.py
|
ftnext/clean-review-practice
|
7c5a3cf972882cebb5a7cf50bae1775a92f8371b
|
[
"MIT"
] | null | null | null |
reviewlogic/reviewlogic/value_objects/user_id.py
|
ftnext/clean-review-practice
|
7c5a3cf972882cebb5a7cf50bae1775a92f8371b
|
[
"MIT"
] | null | null | null |
reviewlogic/reviewlogic/value_objects/user_id.py
|
ftnext/clean-review-practice
|
7c5a3cf972882cebb5a7cf50bae1775a92f8371b
|
[
"MIT"
] | null | null | null |
from reviewlogic.value_objects.positive_integer_id import PositiveIntegerId
class UserId(PositiveIntegerId):
...
| 19.833333
| 75
| 0.823529
| 12
| 119
| 7.916667
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109244
| 119
| 5
| 76
| 23.8
| 0.896226
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 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
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
4eeba6ab90187680d9ee87c922798a806c99e6b1
| 190
|
py
|
Python
|
vega/algorithms/compression/prune_ea_mobilenet/__init__.py
|
jie311/vega
|
1bba6100ead802697e691403b951e6652a99ccae
|
[
"MIT"
] | 724
|
2020-06-22T12:05:30.000Z
|
2022-03-31T07:10:54.000Z
|
vega/algorithms/compression/prune_ea_mobilenet/__init__.py
|
jie311/vega
|
1bba6100ead802697e691403b951e6652a99ccae
|
[
"MIT"
] | 147
|
2020-06-30T13:34:46.000Z
|
2022-03-29T11:30:17.000Z
|
vega/algorithms/compression/prune_ea_mobilenet/__init__.py
|
jie311/vega
|
1bba6100ead802697e691403b951e6652a99ccae
|
[
"MIT"
] | 160
|
2020-06-29T18:27:58.000Z
|
2022-03-23T08:42:21.000Z
|
from .prune_mobilenet_codec import PruneMobilenetCodec
from .prune_trainer_callback import PruneMobilenetTrainerCallback
__all__ = ["PruneMobilenetCodec", "PruneMobilenetTrainerCallback"]
| 31.666667
| 66
| 0.873684
| 15
| 190
| 10.533333
| 0.666667
| 0.113924
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.073684
| 190
| 5
| 67
| 38
| 0.897727
| 0
| 0
| 0
| 0
| 0
| 0.252632
| 0.152632
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
4ef7a7d1c2347375c05ba4b1ad6874376382d08f
| 7,897
|
py
|
Python
|
xos/tosca/tests/porttest.py
|
xmaruto/mcord
|
3678a3d10c3703c2b73f396c293faebf0c82a4f4
|
[
"Apache-2.0"
] | null | null | null |
xos/tosca/tests/porttest.py
|
xmaruto/mcord
|
3678a3d10c3703c2b73f396c293faebf0c82a4f4
|
[
"Apache-2.0"
] | 5
|
2020-06-05T17:47:15.000Z
|
2021-09-23T23:21:27.000Z
|
xos/tosca/tests/porttest.py
|
pan2za/xos
|
c2a4da2ccaa12360b2718be303b247866aefdfe6
|
[
"Apache-2.0"
] | null | null | null |
from basetest import BaseToscaTest
from core.models import Network, Slice, NetworkTemplate, NetworkSlice, Port, Instance
class PortTest(BaseToscaTest):
tests = ["create_port_minimal",
"create_two_ports",
"create_four_ports",
"add_port_after_network"]
def cleanup(self):
self.try_to_delete(Instance, name="test_compute1")
self.try_to_delete(Instance, name="test_compute2")
self.try_to_delete(Network, name="test_net")
self.try_to_delete(Slice, name="testsite_slice1")
self.try_to_delete(Slice, name="testsite_slice2")
@property
def slice1(self):
return Slice.objects.get(name="testsite_slice1")
@property
def slice2(self):
return Slice.objects.get(name="testsite_slice2")
@property
def private(self):
return NetworkTemplate.objects.get(name="Private")
@property
def test_slice1_1(self):
return Instance.objects.get(name="test_slice1-1")
@property
def test_slice1_2(self):
return Instance.objects.get(name="test_slice1-2")
@property
def test_slice2_1(self):
return Instance.objects.get(name="test_slice2-1")
@property
def test_slice2_2(self):
return Instance.objects.get(name="test_slice2-2")
def get_base_templates(self):
return self.make_nodetemplate("testsite", "tosca.nodes.Site") + \
self.make_nodetemplate("testsite_slice1", "tosca.nodes.Slice", reqs=[("testsite", "tosca.relationships.MemberOfSite")]) + \
self.make_nodetemplate("testsite_slice2", "tosca.nodes.Slice", reqs=[("testsite", "tosca.relationships.MemberOfSite")]) + \
self.make_nodetemplate("Private", "tosca.nodes.NetworkTemplate") + \
self.make_compute("testsite_slice1", "test_slice1-1") + \
self.make_compute("testsite_slice1", "test_slice1-2") +\
self.make_compute("testsite_slice2", "test_slice2-1") + \
self.make_compute("testsite_slice2", "test_slice2-2")
def create_port_minimal(self):
self.assert_noobj(Network, "test_net")
self.execute(self.get_base_templates() +
self.make_nodetemplate("test_net", "tosca.nodes.network.Network",
reqs=[("testsite_slice1", "tosca.relationships.MemberOfSlice"),
("Private", "tosca.relationships.UsesNetworkTemplate")]) +
self.make_nodetemplate("test_port", "tosca.nodes.network.Port",
reqs=[("test_net", "tosca.relationships.network.LinksTo"),
("test_slice1-1", "tosca.relationships.network.BindsTo")]))
net=self.assert_obj(Network, "test_net")
port=Port.objects.filter(network=net, instance=self.test_slice1_1)
assert(len(port)==1)
port=port[0]
def create_two_ports(self):
self.assert_noobj(Network, "test_net")
self.execute(self.get_base_templates() +
self.make_nodetemplate("test_net", "tosca.nodes.network.Network",
reqs=[("testsite_slice1", "tosca.relationships.MemberOfSlice"),
("Private", "tosca.relationships.UsesNetworkTemplate")]) +
self.make_nodetemplate("test_port1", "tosca.nodes.network.Port",
reqs=[("test_net", "tosca.relationships.network.LinksTo"),
("test_slice1-1", "tosca.relationships.network.BindsTo")]) +
self.make_nodetemplate("test_port2", "tosca.nodes.network.Port",
reqs=[("test_net", "tosca.relationships.network.LinksTo"),
("test_slice1-2", "tosca.relationships.network.BindsTo")]))
net=self.assert_obj(Network, "test_net")
port=Port.objects.filter(network=net, instance=self.test_slice1_1)
assert(len(port)==1)
port=port[0]
port=Port.objects.filter(network=net, instance=self.test_slice1_2)
assert(len(port)==1)
port=port[0]
def create_four_ports(self):
self.assert_noobj(Network, "test_net")
self.execute(self.get_base_templates() +
self.make_nodetemplate("test_net", "tosca.nodes.network.Network",
reqs=[("testsite_slice1", "tosca.relationships.MemberOfSlice"),
("Private", "tosca.relationships.UsesNetworkTemplate")]) +
self.make_nodetemplate("test_port1", "tosca.nodes.network.Port",
reqs=[("test_net", "tosca.relationships.network.LinksTo"),
("test_slice1-1", "tosca.relationships.network.BindsTo")]) +
self.make_nodetemplate("test_port2", "tosca.nodes.network.Port",
reqs=[("test_net", "tosca.relationships.network.LinksTo"),
("test_slice1-2", "tosca.relationships.network.BindsTo")]) +
self.make_nodetemplate("test_port3", "tosca.nodes.network.Port",
reqs=[("test_net", "tosca.relationships.network.LinksTo"),
("test_slice2-1", "tosca.relationships.network.BindsTo")]) +
self.make_nodetemplate("test_port4", "tosca.nodes.network.Port",
reqs=[("test_net", "tosca.relationships.network.LinksTo"),
("test_slice2-2", "tosca.relationships.network.BindsTo")]))
net=self.assert_obj(Network, "test_net")
port=Port.objects.filter(network=net, instance=self.test_slice1_1)
assert(len(port)==1)
port=port[0]
port=Port.objects.filter(network=net, instance=self.test_slice1_2)
assert(len(port)==1)
port=port[0]
port=Port.objects.filter(network=net, instance=self.test_slice2_2)
assert(len(port)==1)
port=port[0]
port=Port.objects.filter(network=net, instance=self.test_slice2_2)
assert(len(port)==1)
port=port[0]
def add_port_after_network(self):
self.assert_noobj(Network, "test_net")
self.execute(self.get_base_templates() +
self.make_nodetemplate("test_net", "tosca.nodes.network.Network",
reqs=[("testsite_slice1", "tosca.relationships.MemberOfSlice"),
("Private", "tosca.relationships.UsesNetworkTemplate")]))
orig_net=self.assert_obj(Network, "test_net")
self.execute(self.get_base_templates() +
self.make_nodetemplate("test_net", "tosca.nodes.network.Network",
reqs=[("testsite_slice1", "tosca.relationships.MemberOfSlice"),
("Private", "tosca.relationships.UsesNetworkTemplate")]) +
self.make_nodetemplate("test_port1", "tosca.nodes.network.Port",
reqs=[("test_net", "tosca.relationships.network.LinksTo"),
("test_slice1-1", "tosca.relationships.network.BindsTo")]))
net=self.assert_obj(Network, "test_net")
assert(orig_net.id == net.id)
port=Port.objects.filter(network=net, instance=self.test_slice1_1)
assert(len(port)==1)
port=port[0]
if __name__ == "__main__":
PortTest()
| 48.447853
| 138
| 0.564138
| 784
| 7,897
| 5.468112
| 0.093112
| 0.117565
| 0.07931
| 0.072778
| 0.838582
| 0.830184
| 0.830184
| 0.74341
| 0.697691
| 0.679496
| 0
| 0.017972
| 0.309485
| 7,897
| 162
| 139
| 48.746914
| 0.768201
| 0
| 0
| 0.590551
| 0
| 0
| 0.28689
| 0.172261
| 0
| 0
| 0
| 0
| 0.141732
| 1
| 0.102362
| false
| 0
| 0.015748
| 0.062992
| 0.19685
| 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
|
9c86f40242d376ea2e534b8f0a371b399c3984fb
| 374
|
py
|
Python
|
console_script/defs.py
|
mulova/unity-commons
|
14386dc25ebcf7e69f2355ee1886fccf1b170854
|
[
"MIT"
] | 1
|
2018-11-28T20:34:02.000Z
|
2018-11-28T20:34:02.000Z
|
console_script/defs.py
|
mulova/comunity
|
14386dc25ebcf7e69f2355ee1886fccf1b170854
|
[
"MIT"
] | null | null | null |
console_script/defs.py
|
mulova/comunity
|
14386dc25ebcf7e69f2355ee1886fccf1b170854
|
[
"MIT"
] | null | null | null |
runtime_project='core'
editor_project='core-Editor'
runtime_project_file='Assembly-CSharp'
editor_project_file='Assembly-CSharp-Editor'
define='ANDROID'
MONO="/Applications/Unity/MonoDevelop.app/Contents/Frameworks/Mono.framework/Versions/Current/bin/mono"
MDTOOL="/Applications/Unity/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/mdtool.exe"
MONO_SOLUTION="Core.sln"
| 37.4
| 103
| 0.836898
| 49
| 374
| 6.244898
| 0.530612
| 0.091503
| 0.111111
| 0.163399
| 0.457516
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.024064
| 374
| 9
| 104
| 41.555556
| 0.838356
| 0
| 0
| 0
| 0
| 0.25
| 0.652406
| 0.532086
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
9ccebac15dd67b148ab812a1e3b1a7698b491c1e
| 106
|
py
|
Python
|
ScriptEngine/__init__.py
|
daizhaolin/scriptengine
|
eb3aee0381193d5550d31b59574ca60a4706cb25
|
[
"BSD-3-Clause"
] | null | null | null |
ScriptEngine/__init__.py
|
daizhaolin/scriptengine
|
eb3aee0381193d5550d31b59574ca60a4706cb25
|
[
"BSD-3-Clause"
] | null | null | null |
ScriptEngine/__init__.py
|
daizhaolin/scriptengine
|
eb3aee0381193d5550d31b59574ca60a4706cb25
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: UTF-8 -*-
'''
Created on 2020-03-08
@author: daizhaolin
'''
from .app import ScriptEngine
| 11.777778
| 29
| 0.641509
| 14
| 106
| 4.857143
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.102273
| 0.169811
| 106
| 8
| 30
| 13.25
| 0.670455
| 0.613208
| 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
|
9ce51750ce327d7f5dbb0606b47bd4a1ca0e2be8
| 203
|
py
|
Python
|
translate_project/admin.py
|
anirudhprabhakaran3/wikitranslate
|
c7bb5dcb2fd8e470bbb1a2dbf684dc1407b42bbe
|
[
"MIT"
] | null | null | null |
translate_project/admin.py
|
anirudhprabhakaran3/wikitranslate
|
c7bb5dcb2fd8e470bbb1a2dbf684dc1407b42bbe
|
[
"MIT"
] | null | null | null |
translate_project/admin.py
|
anirudhprabhakaran3/wikitranslate
|
c7bb5dcb2fd8e470bbb1a2dbf684dc1407b42bbe
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Project, Sentence, Translator
# Register your models here.
admin.site.register(Project)
admin.site.register(Sentence)
admin.site.register(Translator)
| 29
| 49
| 0.82266
| 27
| 203
| 6.185185
| 0.481481
| 0.161677
| 0.305389
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08867
| 203
| 7
| 50
| 29
| 0.902703
| 0.128079
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
9cfc19c87e0e4d787be79b9eba877d67534b62c0
| 204
|
py
|
Python
|
tr_update.py
|
ahmedbodi/simplecoin_multi
|
c7c0a6d6ead4663c92c9cbeaf03d06dee59bf16e
|
[
"MIT"
] | 32
|
2015-01-02T21:35:16.000Z
|
2020-02-13T16:40:36.000Z
|
tr_update.py
|
ahmedbodi/simplecoin_multi
|
c7c0a6d6ead4663c92c9cbeaf03d06dee59bf16e
|
[
"MIT"
] | 18
|
2015-01-02T02:39:31.000Z
|
2017-06-04T03:43:34.000Z
|
tr_update.py
|
xmotomatt/simplecoin_multi
|
06ec38e8b8d5e12665f46270b69ed30739fba7f3
|
[
"MIT"
] | 39
|
2015-01-11T09:28:30.000Z
|
2021-03-12T01:26:05.000Z
|
#!flask/bin/python
import subprocess
subprocess.call('pybabel extract -F babel.cfg -o messages.pot .', shell=True)
subprocess.call('pybabel update -i messages.pot -d simplecoin/translations', shell=True)
| 40.8
| 88
| 0.779412
| 29
| 204
| 5.482759
| 0.724138
| 0.176101
| 0.264151
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.088235
| 204
| 4
| 89
| 51
| 0.854839
| 0.083333
| 0
| 0
| 0
| 0
| 0.553763
| 0.123656
| 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
|
9cfffc9385ad7ffa87c1b486ae7153d2f268010b
| 7,706
|
py
|
Python
|
util/test_plan.py
|
sblundy/zsh_env
|
a04e43232be8bf4aef5923e3f4ea518659d590c6
|
[
"Unlicense"
] | null | null | null |
util/test_plan.py
|
sblundy/zsh_env
|
a04e43232be8bf4aef5923e3f4ea518659d590c6
|
[
"Unlicense"
] | null | null | null |
util/test_plan.py
|
sblundy/zsh_env
|
a04e43232be8bf4aef5923e3f4ea518659d590c6
|
[
"Unlicense"
] | null | null | null |
import unittest
import io
import datetime
import plan
class TestPlan(unittest.TestCase):
def test_current(self):
buf = io.StringIO()
sut = plan.Plan(1)
sut.set('6:00', 'test')
sut.set('6:30', 'test2')
sut.current(buf, None)
self.assertEqual(buf.getvalue(), '\x1b[1mTime v1\x1b[0m\n06:00 test\n06:30 test2\n')
def test_current_multiple(self):
buf = io.StringIO()
sut = plan.Plan(1)
sut.set('6:00', 'test')
sut.current(buf, None)
self.assertEqual(buf.getvalue(), '\x1b[1mTime v1\x1b[0m\n06:00 test\n')
def test_current_gap(self):
buf = io.StringIO()
sut = plan.Plan(1)
sut.set('6:00', 'test')
sut.set('7:00', 'test3')
sut.current(buf, None)
self.assertEqual(buf.getvalue(), '\x1b[1mTime v1\x1b[0m\n06:00 test\n06:30 \n07:00 test3\n')
def test_current_with_start(self):
buf = io.StringIO()
sut = plan.Plan(1)
sut.set('6:00', 'test')
sut.set('6:30', 'test2')
sut.current(buf, datetime.time(6, 30))
self.assertEqual(buf.getvalue(), '\x1b[1mTime v1\x1b[0m\n06:30 test2\n')
def test_current_columns_env(self):
buf = io.StringIO()
sut = plan.Plan(1)
sut.set('6:00', 'test')
sut.set('6:30', 'test2')
sut.current(buf, None, max_columns=10)
self.assertEqual(buf.getvalue(), '\x1b[1mTime v1\x1b[0m\n06:00 test\n06:30 tes…\n')
def test_get(self):
sut = plan.Plan(1)
sut.set('6:00', 'test')
output = sut.get('6:00')
self.assertEqual(output, 'test')
def test_get_invalid(self):
sut = plan.Plan(1)
sut.set('6:00', 'test')
with self.assertRaises(plan.TimeFormatException):
sut.get('xxxx')
def test_set_range(self):
sut = plan.Plan(1)
sut.set('6:00-6:30', 'test')
output = sut.get('6:00')
self.assertEqual(output, 'test')
output = sut.get('6:30')
self.assertEqual(output, 'test')
output = sut.get('7:00')
self.assertEqual(output, '')
def test_set_comma_separated(self):
sut = plan.Plan(1)
sut.set('6:00,7:00', 'test')
output = sut.get('6:00')
self.assertEqual(output, 'test')
output = sut.get('6:30')
self.assertEqual(output, '')
output = sut.get('7:00')
self.assertEqual(output, 'test')
def test_set_comma_separated_with_range(self):
sut = plan.Plan(1)
sut.set('6:00-6:30,7:30-8:00', 'test')
output = sut.get('6:00')
self.assertEqual(output, 'test')
output = sut.get('6:30')
self.assertEqual(output, 'test')
output = sut.get('7:00')
self.assertEqual(output, '')
output = sut.get('7:30')
self.assertEqual(output, 'test')
output = sut.get('8:00')
self.assertEqual(output, 'test')
def test_set_meant_pm(self):
asked_questions = []
def mock_ask_questions(question):
asked_questions.append(question)
return '\n'
sut = plan.Plan(1, mock_ask_questions)
sut.set('2', 'test', datetime.time(8))
output = sut.get('2:00')
self.assertEqual(output, '')
output = sut.get('14:00')
self.assertEqual(output, 'test')
def test_set_meant_am(self):
asked_questions = []
def mock_ask_questions(question):
asked_questions.append(question)
return 'n\n'
sut = plan.Plan(1, mock_ask_questions)
sut.set('2', 'test', datetime.time(8))
output = sut.get('14:00')
self.assertEqual(output, '')
output = sut.get('2:00')
self.assertEqual(output, 'test')
def test_range_exclusive(self):
buf = io.StringIO()
sut = plan.Plan(1)
sut.set('6:00 AM - 7:00 AM', 'test')
sut.current(buf, None)
self.assertEqual(buf.getvalue(), '\x1b[1mTime v1\x1b[0m\n06:00 test\n06:30 test\n')
class TestPlanDb(unittest.TestCase):
def test_from_tsv_string(self):
tsv = io.StringIO('6:00\ta1\r\n6:30\ta2\ta2.2')
buf = io.StringIO()
sut = plan.PlanDb.from_tsv_string(tsv)
sut.current(buf)
self.assertEqual(buf.getvalue(), '\x1b[1mTime v2\x1b[0m\n06:30 a2.2\n')
def test_to_tsv_string(self):
tsv = io.StringIO('6:00\ta1\r\n6:30\ta2\ta2.2')
buf = io.StringIO()
sut = plan.PlanDb.from_tsv_string(tsv)
sut.to_tsv_string(buf)
self.assertEqual(buf.getvalue(), '06:00\ta1\t\r\n06:30\ta2\ta2.2\r\n')
def test_updates_current_plan(self):
tsv = io.StringIO('6:00\ta1\r\n6:30\ta2\ta2.2')
buf = io.StringIO()
sut = plan.PlanDb.from_tsv_string(tsv)
sut.set('6:30', 'a2.3')
sut.current(buf)
self.assertEqual(buf.getvalue(), '\x1b[1mTime v2\x1b[0m\n06:30 a2.3\n')
def test_replan(self):
tsv = io.StringIO('6:00\ta1\r\n6:30\ta2')
buf = io.StringIO()
sut = plan.PlanDb.from_tsv_string(tsv)
sut.replan(datetime.time(6, 30))
sut.current(buf, start=datetime.time(6, 30))
self.assertEqual(buf.getvalue(), '\x1b[1mTime v2\x1b[0m\n06:30 a2\n')
def test_set_on_empty_plan(self):
buf = io.StringIO()
sut = plan.PlanDb()
sut.set('12:00', 'test')
sut.current(buf, start=datetime.time(12, 00))
self.assertEqual(buf.getvalue(), '\x1b[1mTime v1\x1b[0m\n12:00 test\n')
def test_to_tsv_string_on_empty_plan(self):
buf = io.StringIO()
sut = plan.PlanDb()
sut.to_tsv_string(buf)
self.assertEqual(len(buf.getvalue()), 0)
def test_list(self):
tsv = io.StringIO('6:00\ta1\r\n6:30\ta2\ta2.2')
buf = io.StringIO()
sut = plan.PlanDb.from_tsv_string(tsv)
sut.list(buf)
self.assertEqual(buf.getvalue(), '\x1b[1mTime v2\x1b[0m\n06:30 a2.2\n')
def test_list_version(self):
tsv = io.StringIO('6:00\ta1\r\n6:30\ta2\ta2.2')
buf = io.StringIO()
sut = plan.PlanDb.from_tsv_string(tsv)
sut.list(buf, 1)
self.assertEqual(buf.getvalue(), '\x1b[1mTime v1\x1b[0m\n06:00 a1\n06:30 a2\n')
def test_rm(self):
tsv = io.StringIO('5:30\ta0\r\n6:00\ta1\r\n6:30\ta2')
buf = io.StringIO()
sut = plan.PlanDb.from_tsv_string(tsv)
sut.rm('6:00')
sut.list(buf, 1)
self.assertEqual(buf.getvalue(), '\x1b[1mTime v1\x1b[0m\n05:30 a0\n06:00 \n06:30 a2\n')
def test_rm_resets_min(self):
tsv = io.StringIO('6:00\ta1\r\n6:30\ta2')
buf = io.StringIO()
sut = plan.PlanDb.from_tsv_string(tsv)
sut.rm('6:00')
sut.list(buf, 1)
self.assertEqual(buf.getvalue(), '\x1b[1mTime v1\x1b[0m\n06:30 a2\n')
def test_rm_resets_max(self):
tsv = io.StringIO('6:00\ta1\r\n6:30\ta2')
buf = io.StringIO()
sut = plan.PlanDb.from_tsv_string(tsv)
sut.rm('6:30')
sut.list(buf, 1)
self.assertEqual(buf.getvalue(), '\x1b[1mTime v1\x1b[0m\n06:00 a1\n')
class TestTimeStringParsing(unittest.TestCase):
def test_simple(self):
output = plan.to_time_index_from_string('6:00')
self.assertEqual(output, 12)
def test_hour_only(self):
output = plan.to_time_index_from_string('6')
self.assertEqual(output, 12)
def test_range_single_time(self):
output = plan.parse_range('6:00')
self.assertEqual(output, (12, None))
def test_range(self):
output = plan.parse_range('6:00-7:00')
self.assertEqual(output, (12, 14))
if __name__ == '__main__':
unittest.main()
| 33.504348
| 101
| 0.582014
| 1,139
| 7,706
| 3.833187
| 0.096576
| 0.127119
| 0.096198
| 0.0623
| 0.850435
| 0.828676
| 0.793404
| 0.747595
| 0.693312
| 0.642235
| 0
| 0.08261
| 0.252271
| 7,706
| 229
| 102
| 33.650655
| 0.674592
| 0
| 0
| 0.592784
| 0
| 0.041237
| 0.158188
| 0.025435
| 0
| 0
| 0
| 0
| 0.195876
| 1
| 0.154639
| false
| 0
| 0.020619
| 0
| 0.201031
| 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
|
14247d4425a34ab45876033a8b6967200394e7fb
| 2,160
|
py
|
Python
|
tests/terraform/checks/resource/aws/test_IMDSv1Disabled.py
|
antonblr/checkov
|
9415c6593c537945c08f7a19f28bdd8b96966f67
|
[
"Apache-2.0"
] | 4,013
|
2019-12-09T13:16:54.000Z
|
2022-03-31T14:31:01.000Z
|
tests/terraform/checks/resource/aws/test_IMDSv1Disabled.py
|
antonblr/checkov
|
9415c6593c537945c08f7a19f28bdd8b96966f67
|
[
"Apache-2.0"
] | 1,258
|
2019-12-17T09:55:51.000Z
|
2022-03-31T19:17:17.000Z
|
tests/terraform/checks/resource/aws/test_IMDSv1Disabled.py
|
antonblr/checkov
|
9415c6593c537945c08f7a19f28bdd8b96966f67
|
[
"Apache-2.0"
] | 638
|
2019-12-19T08:57:38.000Z
|
2022-03-30T21:38:37.000Z
|
import unittest
import hcl2
from checkov.terraform.checks.resource.aws.IMDSv1Disabled import check
from checkov.common.models.enums import CheckResult
class TestIMDSv1Disabled(unittest.TestCase):
def test_failure_defaults(self):
hcl_res = hcl2.loads("""
resource "aws_instance" "test" {
metadata_options {
}
}
""")
resource_conf = hcl_res['resource'][0]['aws_instance']['test']
scan_result = check.scan_resource_conf(conf=resource_conf)
self.assertEqual(CheckResult.FAILED, scan_result)
def test_failure_optional_tokens(self):
hcl_res = hcl2.loads("""
resource "aws_instance" "test" {
metadata_options {
http_endpoint = "enabled"
http_put_response_hop_limit = "1"
http_tokens = "optional"
}
}
""")
resource_conf = hcl_res['resource'][0]['aws_instance']['test']
scan_result = check.scan_resource_conf(conf=resource_conf)
self.assertEqual(CheckResult.FAILED, scan_result)
def test_success_disabled(self):
hcl_res = hcl2.loads("""
resource "aws_instance" "test" {
metadata_options {
http_endpoint = "disabled"
}
}
""")
resource_conf = hcl_res['resource'][0]['aws_instance']['test']
scan_result = check.scan_resource_conf(conf=resource_conf)
self.assertEqual(CheckResult.PASSED, scan_result)
def test_success_enabled_and_tokens_required(self):
hcl_res = hcl2.loads("""
resource "aws_instance" "test" {
metadata_options {
http_endpoint = "enabled"
http_tokens = "required"
}
}
""")
resource_conf = hcl_res['resource'][0]['aws_instance']['test']
scan_result = check.scan_resource_conf(conf=resource_conf)
self.assertEqual(CheckResult.PASSED, scan_result)
if __name__ == '__main__':
unittest.main()
| 33.75
| 70
| 0.576389
| 210
| 2,160
| 5.580952
| 0.252381
| 0.122867
| 0.102389
| 0.047782
| 0.72099
| 0.703072
| 0.703072
| 0.703072
| 0.703072
| 0.703072
| 0
| 0.00818
| 0.320833
| 2,160
| 63
| 71
| 34.285714
| 0.790729
| 0
| 0
| 0.566038
| 0
| 0
| 0.418981
| 0.0125
| 0
| 0
| 0
| 0
| 0.075472
| 1
| 0.075472
| false
| 0.037736
| 0.075472
| 0
| 0.169811
| 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
|
1468a84b54d2e9b31416f91fe8d6e3383b588865
| 42
|
py
|
Python
|
ceiclient/exception.py
|
nimbusproject/ceiclient
|
d76d396318955f9b0fd895414c99888aa0d8b612
|
[
"Apache-2.0"
] | null | null | null |
ceiclient/exception.py
|
nimbusproject/ceiclient
|
d76d396318955f9b0fd895414c99888aa0d8b612
|
[
"Apache-2.0"
] | null | null | null |
ceiclient/exception.py
|
nimbusproject/ceiclient
|
d76d396318955f9b0fd895414c99888aa0d8b612
|
[
"Apache-2.0"
] | null | null | null |
class CeiClientError(Exception):
pass
| 14
| 32
| 0.761905
| 4
| 42
| 8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 42
| 2
| 33
| 21
| 0.914286
| 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
|
14aa160a067f744a364d867109d3335baa0dfed9
| 438
|
py
|
Python
|
graphql/core/pyutils/pair_set.py
|
defrex/graphql-core
|
9c8450fa5b2e3dd0a8ea015ac3b9b5f24028ac91
|
[
"MIT"
] | null | null | null |
graphql/core/pyutils/pair_set.py
|
defrex/graphql-core
|
9c8450fa5b2e3dd0a8ea015ac3b9b5f24028ac91
|
[
"MIT"
] | null | null | null |
graphql/core/pyutils/pair_set.py
|
defrex/graphql-core
|
9c8450fa5b2e3dd0a8ea015ac3b9b5f24028ac91
|
[
"MIT"
] | 1
|
2019-08-23T12:52:58.000Z
|
2019-08-23T12:52:58.000Z
|
class PairSet(object):
__slots__ = '_data',
def __init__(self):
self._data = set()
def __contains__(self, item):
return item in self._data
def has(self, a, b):
return (a, b) in self._data
def add(self, a, b):
self._data.add((a, b))
self._data.add((b, a))
return self
def remove(self, a, b):
self._data.discard((a, b))
self._data.discard((b, a))
| 20.857143
| 35
| 0.53653
| 63
| 438
| 3.412698
| 0.301587
| 0.260465
| 0.111628
| 0.186047
| 0.316279
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.312785
| 438
| 20
| 36
| 21.9
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0.011416
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.133333
| 0.666667
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
1af5b905ad9ba4b99e01c40f876bdc1334f7525f
| 32
|
py
|
Python
|
Code only/1- Getting Started/First Python Program Print Function.py
|
AhmedRaja1/Python-Beginner-s-Starter-Kit
|
285cfbeb7207e6531954f21cae3a062f977ee5a0
|
[
"MIT"
] | 1
|
2021-09-27T16:47:25.000Z
|
2021-09-27T16:47:25.000Z
|
Code only/1- Getting Started/First Python Program Print Function.py
|
AhmedRaja1/Python-Beginner-s-Starter-Kit
|
285cfbeb7207e6531954f21cae3a062f977ee5a0
|
[
"MIT"
] | null | null | null |
Code only/1- Getting Started/First Python Program Print Function.py
|
AhmedRaja1/Python-Beginner-s-Starter-Kit
|
285cfbeb7207e6531954f21cae3a062f977ee5a0
|
[
"MIT"
] | 1
|
2021-09-27T16:47:33.000Z
|
2021-09-27T16:47:33.000Z
|
print("Mosh ❤")
print("$" * 10)
| 10.666667
| 15
| 0.5
| 5
| 32
| 3.4
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.074074
| 0.15625
| 32
| 2
| 16
| 16
| 0.518519
| 0
| 0
| 0
| 0
| 0
| 0.21875
| 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
|
210bacadd62449cc06d01c66217a1704cdbb5167
| 95
|
py
|
Python
|
app/database/models/__init__.py
|
artyomtugaryov/dominoes-poker-bot
|
8cb958c38d895cc6e4765726d4316d590c708dfc
|
[
"MIT"
] | null | null | null |
app/database/models/__init__.py
|
artyomtugaryov/dominoes-poker-bot
|
8cb958c38d895cc6e4765726d4316d590c708dfc
|
[
"MIT"
] | null | null | null |
app/database/models/__init__.py
|
artyomtugaryov/dominoes-poker-bot
|
8cb958c38d895cc6e4765726d4316d590c708dfc
|
[
"MIT"
] | null | null | null |
from .base_model import BaseModel
from .game import Game, GameToGamer
from .gamer import Gamer
| 23.75
| 35
| 0.821053
| 14
| 95
| 5.5
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136842
| 95
| 3
| 36
| 31.666667
| 0.939024
| 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
|
21316358de8b4963db92f2f1f2381fd078d27754
| 119
|
py
|
Python
|
moff/node/template/__init__.py
|
Tikubonn/moff
|
1c363f60959138311068177fca177d0f0dc97380
|
[
"MIT"
] | null | null | null |
moff/node/template/__init__.py
|
Tikubonn/moff
|
1c363f60959138311068177fca177d0f0dc97380
|
[
"MIT"
] | null | null | null |
moff/node/template/__init__.py
|
Tikubonn/moff
|
1c363f60959138311068177fca177d0f0dc97380
|
[
"MIT"
] | null | null | null |
from .node import Node
from .collection_node import CollectionNode
from .node_convertible import NodeConvertible, node
| 29.75
| 51
| 0.857143
| 15
| 119
| 6.666667
| 0.466667
| 0.16
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109244
| 119
| 3
| 52
| 39.666667
| 0.943396
| 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
|
214dadc3b239ba6a87706197e436b889f8d92b61
| 95
|
py
|
Python
|
bioimageio/spec/model/utils.py
|
bioimage-io/spec-bioimage-io
|
b534001c67b3903dbd47f80a8b3ff027cd249119
|
[
"MIT"
] | 6
|
2021-05-10T09:08:12.000Z
|
2022-03-27T17:44:08.000Z
|
bioimageio/spec/model/utils.py
|
bioimage-io/spec-bioimage-io
|
b534001c67b3903dbd47f80a8b3ff027cd249119
|
[
"MIT"
] | 227
|
2021-03-16T23:40:13.000Z
|
2022-03-17T14:30:53.000Z
|
bioimageio/spec/model/utils.py
|
bioimage-io/spec-bioimage-io
|
b534001c67b3903dbd47f80a8b3ff027cd249119
|
[
"MIT"
] | 5
|
2021-03-26T14:16:49.000Z
|
2021-11-28T11:24:40.000Z
|
# Auto-generated by generate_passthrough_modules.py - do not modify
from .v0_4.utils import *
| 23.75
| 67
| 0.789474
| 15
| 95
| 4.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02439
| 0.136842
| 95
| 3
| 68
| 31.666667
| 0.853659
| 0.684211
| 0
| 0
| 1
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
0d1fa27b7d221738fd66a7e690abf546d0d01136
| 172
|
py
|
Python
|
treebeard-lib/tests/treebeard/conf_test.py
|
pombredanne/treebeard
|
1ce704ee1aefae1400f058813541a8c58f18fca6
|
[
"Apache-2.0"
] | 1
|
2020-06-16T08:10:40.000Z
|
2020-06-16T08:10:40.000Z
|
treebeard-lib/tests/treebeard/conf_test.py
|
pombredanne/treebeard
|
1ce704ee1aefae1400f058813541a8c58f18fca6
|
[
"Apache-2.0"
] | 4
|
2021-03-31T20:07:21.000Z
|
2021-12-13T20:52:46.000Z
|
treebeard-lib/tests/treebeard/conf_test.py
|
pombredanne/treebeard
|
1ce704ee1aefae1400f058813541a8c58f18fca6
|
[
"Apache-2.0"
] | null | null | null |
import unittest
class ConfTest(unittest.TestCase):
def test_loads(self):
import treebeard.conf
self.assertIsNotNone(treebeard.conf.treebeard_config)
| 19.111111
| 61
| 0.738372
| 19
| 172
| 6.578947
| 0.684211
| 0.208
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.186047
| 172
| 8
| 62
| 21.5
| 0.892857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.8
| 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
|
b4f815ab85d146dedd4bde936d7470d77813bc1b
| 217
|
py
|
Python
|
reposicao/admin.py
|
Carlosdher/backup
|
7bd5bf599397b36fd2d2f94053b476ec8a0b6f16
|
[
"MIT"
] | null | null | null |
reposicao/admin.py
|
Carlosdher/backup
|
7bd5bf599397b36fd2d2f94053b476ec8a0b6f16
|
[
"MIT"
] | null | null | null |
reposicao/admin.py
|
Carlosdher/backup
|
7bd5bf599397b36fd2d2f94053b476ec8a0b6f16
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Planejamento, Motivo, Turma, Solicitacao
admin.site.register(Planejamento)
admin.site.register(Motivo)
admin.site.register(Turma)
admin.site.register(Solicitacao)
| 27.125
| 60
| 0.829493
| 28
| 217
| 6.428571
| 0.428571
| 0.2
| 0.377778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.073733
| 217
| 7
| 61
| 31
| 0.895522
| 0
| 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
|
b4fc8e59364fbf66aa2c964b6c065b9ca74c29db
| 83
|
py
|
Python
|
src/test/tester.py
|
wholtz/SBOL-Validator
|
d132dd3a435c7d861d881f141bacc1a477d45fb8
|
[
"Apache-2.0"
] | 5
|
2017-01-19T09:28:28.000Z
|
2021-05-30T17:36:51.000Z
|
src/test/tester.py
|
wholtz/SBOL-Validator
|
d132dd3a435c7d861d881f141bacc1a477d45fb8
|
[
"Apache-2.0"
] | 106
|
2016-02-11T16:09:15.000Z
|
2022-01-08T19:13:39.000Z
|
src/test/tester.py
|
wholtz/SBOL-Validator
|
d132dd3a435c7d861d881f141bacc1a477d45fb8
|
[
"Apache-2.0"
] | 4
|
2016-04-25T17:44:54.000Z
|
2020-05-27T00:14:32.000Z
|
from test.util import check_commands
print("Checking commands")
check_commands()
| 13.833333
| 36
| 0.807229
| 11
| 83
| 5.909091
| 0.727273
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108434
| 83
| 5
| 37
| 16.6
| 0.878378
| 0
| 0
| 0
| 0
| 0
| 0.204819
| 0
| 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
|
3701fe45df14116a8ce368d967b3e1b57a0c93d8
| 63
|
py
|
Python
|
src/aspyre/basis/pswf_3d.py
|
ComputationalCryoEM/ASPIRE
|
6e6699eae532874de44b98adb7ddb2ad96c43d9d
|
[
"MIT"
] | null | null | null |
src/aspyre/basis/pswf_3d.py
|
ComputationalCryoEM/ASPIRE
|
6e6699eae532874de44b98adb7ddb2ad96c43d9d
|
[
"MIT"
] | 5
|
2019-06-07T13:25:29.000Z
|
2019-06-18T20:34:37.000Z
|
src/aspyre/basis/pswf_3d.py
|
computationalcryoem/aspyre
|
6e6699eae532874de44b98adb7ddb2ad96c43d9d
|
[
"MIT"
] | 1
|
2019-06-18T17:41:52.000Z
|
2019-06-18T17:41:52.000Z
|
from aspyre.basis import Basis
class PSWF3D(Basis):
pass
| 10.5
| 30
| 0.730159
| 9
| 63
| 5.111111
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02
| 0.206349
| 63
| 5
| 31
| 12.6
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 5
|
371d70dc0d8e037f7d954a6f2d5aff21fd2fc7ea
| 142
|
py
|
Python
|
PlantEmissionController/controller/admin.py
|
sania-dsouza/NRChallenge_Controller
|
d1dcb665aa7394ec49d89ecda3c49dc09b89f9d6
|
[
"MIT"
] | null | null | null |
PlantEmissionController/controller/admin.py
|
sania-dsouza/NRChallenge_Controller
|
d1dcb665aa7394ec49d89ecda3c49dc09b89f9d6
|
[
"MIT"
] | null | null | null |
PlantEmissionController/controller/admin.py
|
sania-dsouza/NRChallenge_Controller
|
d1dcb665aa7394ec49d89ecda3c49dc09b89f9d6
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import ControllerReadings
# Register your models here.
admin.site.register(ControllerReadings)
| 23.666667
| 39
| 0.838028
| 17
| 142
| 7
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105634
| 142
| 5
| 40
| 28.4
| 0.937008
| 0.183099
| 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
|
372fa9949989983ed701921c6948ecedc6c8ea5f
| 294
|
py
|
Python
|
bot/rest/controller/__init__.py
|
Asnanon/ts-gw2-verifyBot
|
4da70450bc53631e61a42d18df36f5aef710cdbe
|
[
"MIT"
] | null | null | null |
bot/rest/controller/__init__.py
|
Asnanon/ts-gw2-verifyBot
|
4da70450bc53631e61a42d18df36f5aef710cdbe
|
[
"MIT"
] | null | null | null |
bot/rest/controller/__init__.py
|
Asnanon/ts-gw2-verifyBot
|
4da70450bc53631e61a42d18df36f5aef710cdbe
|
[
"MIT"
] | null | null | null |
from .guild_controller import GuildController
from .health_controller import HealthController
from .other_controller import OtherController
from .reset_roster_controller import ResetRosterController
__all__ = ['GuildController', 'HealthController', 'OtherController', 'ResetRosterController']
| 42
| 93
| 0.860544
| 26
| 294
| 9.384615
| 0.5
| 0.262295
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078231
| 294
| 6
| 94
| 49
| 0.900369
| 0
| 0
| 0
| 0
| 0
| 0.227891
| 0.071429
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.8
| 0
| 0.8
| 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
|
2e9a7cbeedce3227f151b1a3b29150799b806e58
| 37
|
py
|
Python
|
practica3/pregunta9.py
|
Vanesamorales/practica-N-3-python
|
e87d4662b5df208cfbc3a15db23d324f46ad838e
|
[
"Apache-2.0"
] | null | null | null |
practica3/pregunta9.py
|
Vanesamorales/practica-N-3-python
|
e87d4662b5df208cfbc3a15db23d324f46ad838e
|
[
"Apache-2.0"
] | null | null | null |
practica3/pregunta9.py
|
Vanesamorales/practica-N-3-python
|
e87d4662b5df208cfbc3a15db23d324f46ad838e
|
[
"Apache-2.0"
] | null | null | null |
import carpeta9
carpeta9.adivina()
| 12.333333
| 18
| 0.783784
| 4
| 37
| 7.25
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 0.135135
| 37
| 3
| 18
| 12.333333
| 0.84375
| 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
|
2ed14f33db123d4d813f2868a3d54776f39c2ae5
| 294
|
py
|
Python
|
bluebottle/mails/admin.py
|
terrameijar/bluebottle
|
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
|
[
"BSD-3-Clause"
] | 10
|
2015-05-28T18:26:40.000Z
|
2021-09-06T10:07:03.000Z
|
bluebottle/mails/admin.py
|
terrameijar/bluebottle
|
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
|
[
"BSD-3-Clause"
] | 762
|
2015-01-15T10:00:59.000Z
|
2022-03-31T15:35:14.000Z
|
bluebottle/mails/admin.py
|
terrameijar/bluebottle
|
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
|
[
"BSD-3-Clause"
] | 9
|
2015-02-20T13:19:30.000Z
|
2022-03-08T14:09:17.000Z
|
from django.contrib import admin
from bluebottle.mails.models import MailPlatformSettings
from bluebottle.utils.admin import BasePlatformSettingsAdmin
class MailPlatformSettingsAdmin(BasePlatformSettingsAdmin):
pass
admin.site.register(MailPlatformSettings, MailPlatformSettingsAdmin)
| 24.5
| 68
| 0.867347
| 26
| 294
| 9.807692
| 0.615385
| 0.109804
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.088435
| 294
| 11
| 69
| 26.727273
| 0.951493
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.166667
| 0.5
| 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
|
2c04af48cf269b0dc2bc3602359ef969eff16c33
| 369
|
py
|
Python
|
Python/[7 kyu] Largest pair sum in array.py
|
KonstantinosAng/CodeWars
|
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
|
[
"MIT"
] | null | null | null |
Python/[7 kyu] Largest pair sum in array.py
|
KonstantinosAng/CodeWars
|
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
|
[
"MIT"
] | null | null | null |
Python/[7 kyu] Largest pair sum in array.py
|
KonstantinosAng/CodeWars
|
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
|
[
"MIT"
] | null | null | null |
# see https://www.codewars.com/kata/556196a6091a7e7f58000018/solutions/python
def largest_pair_sum(numbers):
return sorted(numbers)[-1] + sorted(numbers)[-2]
print(largest_pair_sum([10,14,2,23,19]) == 42)
print(largest_pair_sum([-100,-29,-24,-19,19]) == 0)
print(largest_pair_sum([1,2,3,4,6,-1,2]) == 10)
print(largest_pair_sum([-10, -8, -16, -18, -19]) == -18)
| 36.9
| 77
| 0.682927
| 63
| 369
| 3.84127
| 0.539683
| 0.227273
| 0.289256
| 0.31405
| 0.173554
| 0
| 0
| 0
| 0
| 0
| 0
| 0.192878
| 0.086721
| 369
| 10
| 78
| 36.9
| 0.525223
| 0.203252
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0
| 0.166667
| 0.333333
| 0.666667
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
|
0
| 5
|
2c2ddf4c9e66f48c7ae877fa35a1c6847ab037e4
| 66
|
py
|
Python
|
test.py
|
joegasewicz/easy-web
|
fe518452b7c4c24179d38774bb99b91e0cdfa9b7
|
[
"MIT"
] | null | null | null |
test.py
|
joegasewicz/easy-web
|
fe518452b7c4c24179d38774bb99b91e0cdfa9b7
|
[
"MIT"
] | 18
|
2021-03-05T14:43:19.000Z
|
2021-03-14T15:09:53.000Z
|
test.py
|
joegasewicz/easy-web
|
fe518452b7c4c24179d38774bb99b91e0cdfa9b7
|
[
"MIT"
] | null | null | null |
import easy_tcp
if __name__ == "__main__":
easy_tcp.server()
| 11
| 26
| 0.69697
| 9
| 66
| 4
| 0.777778
| 0.388889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 66
| 5
| 27
| 13.2
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0.121212
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
2577f51eb8af1362069b058803fe96850b85544a
| 148
|
py
|
Python
|
sendim/models/__init__.py
|
ZuluPro/snafu
|
dbd79da4617db315ba7e76a0af6805cc3b1cbae2
|
[
"BSD-3-Clause"
] | 1
|
2017-12-13T20:28:32.000Z
|
2017-12-13T20:28:32.000Z
|
sendim/models/__init__.py
|
ZuluPro/snafu
|
dbd79da4617db315ba7e76a0af6805cc3b1cbae2
|
[
"BSD-3-Clause"
] | null | null | null |
sendim/models/__init__.py
|
ZuluPro/snafu
|
dbd79da4617db315ba7e76a0af6805cc3b1cbae2
|
[
"BSD-3-Clause"
] | null | null | null |
from mail import MailTemplate
from event import Event
from alert import Alert
from command import Command, CommandLog
from downtime import Downtime
| 24.666667
| 39
| 0.851351
| 21
| 148
| 6
| 0.428571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141892
| 148
| 5
| 40
| 29.6
| 0.992126
| 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
|
25851f8153b72868581fcaf1100adfa8aeac4e83
| 112
|
py
|
Python
|
saw-remote-api/python/saw_client/jvm.py
|
Grain/saw-script
|
81287fb74cbdac3bb3f75b984f1125deb3055e64
|
[
"BSD-3-Clause"
] | 411
|
2015-06-09T22:00:47.000Z
|
2022-03-30T11:41:23.000Z
|
saw-remote-api/python/saw_client/jvm.py
|
Grain/saw-script
|
81287fb74cbdac3bb3f75b984f1125deb3055e64
|
[
"BSD-3-Clause"
] | 1,151
|
2015-06-12T20:46:31.000Z
|
2022-03-23T02:56:32.000Z
|
saw-remote-api/python/saw_client/jvm.py
|
Grain/saw-script
|
81287fb74cbdac3bb3f75b984f1125deb3055e64
|
[
"BSD-3-Clause"
] | 65
|
2015-06-10T17:52:26.000Z
|
2022-02-10T18:17:06.000Z
|
from cryptol import cryptoltypes
from .utils import deprecated
from .jvm_type import *
from .crucible import *
| 18.666667
| 32
| 0.803571
| 15
| 112
| 5.933333
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151786
| 112
| 5
| 33
| 22.4
| 0.936842
| 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
|
25d8fdb2a0e4e98fd9d50c47ec76703453fbb282
| 64
|
py
|
Python
|
micropython-pyspindel/pyspindel/__init__.py
|
mrberti/pyspindel
|
91cf49559a43597f976397c5f433f4e169496168
|
[
"MIT"
] | null | null | null |
micropython-pyspindel/pyspindel/__init__.py
|
mrberti/pyspindel
|
91cf49559a43597f976397c5f433f4e169496168
|
[
"MIT"
] | null | null | null |
micropython-pyspindel/pyspindel/__init__.py
|
mrberti/pyspindel
|
91cf49559a43597f976397c5f433f4e169496168
|
[
"MIT"
] | null | null | null |
"""
Empty file
"""
print("__init_")
from .pyspindel import main
| 10.666667
| 27
| 0.6875
| 8
| 64
| 5.125
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140625
| 64
| 5
| 28
| 12.8
| 0.745455
| 0.15625
| 0
| 0
| 0
| 0
| 0.152174
| 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
|
d318984a016218bdec25747abafde177c7d129ee
| 24
|
py
|
Python
|
niimpy/preprocessing/__init__.py
|
lnknguyen/niimpy
|
2aebd1d59b0b7562103128d5eaff90f20091f6fd
|
[
"MIT"
] | null | null | null |
niimpy/preprocessing/__init__.py
|
lnknguyen/niimpy
|
2aebd1d59b0b7562103128d5eaff90f20091f6fd
|
[
"MIT"
] | null | null | null |
niimpy/preprocessing/__init__.py
|
lnknguyen/niimpy
|
2aebd1d59b0b7562103128d5eaff90f20091f6fd
|
[
"MIT"
] | null | null | null |
from . import location
| 8
| 22
| 0.75
| 3
| 24
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.208333
| 24
| 2
| 23
| 12
| 0.947368
| 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
|
d347e75fb89714556e2ccd7d169990a6abb37e0f
| 42,561
|
py
|
Python
|
ivern/commands.py
|
geoffhouy/ivern
|
e1af5822bdd640cfe60011278d2983331ee5094c
|
[
"MIT"
] | null | null | null |
ivern/commands.py
|
geoffhouy/ivern
|
e1af5822bdd640cfe60011278d2983331ee5094c
|
[
"MIT"
] | null | null | null |
ivern/commands.py
|
geoffhouy/ivern
|
e1af5822bdd640cfe60011278d2983331ee5094c
|
[
"MIT"
] | null | null | null |
import discord
import ivern.riot_api as riot_api
import ivern.utils as utils
from datetime import datetime
from discord.ext.commands import Bot
from ivern.riot_api import RiotAPI
bot = Bot(command_prefix='!')
token = '' # Add in Discord app bot user token
@bot.event
async def on_ready():
print(
'{0}\n\nLogged in as {1} ({2}) on {3} servers\n'.format(
'\"One day, I\'ll root in one place and be everywhere.\" - Ivern Bramblefoot',
bot.user.name,
bot.user.id,
len(bot.servers)
)
)
await bot.change_presence(game=discord.Game(name='League of Legends'))
@bot.command(pass_context=True)
async def profile(ctx, *args):
if not args:
embed_message = discord.Embed(
color=utils.color,
title='Error',
description='No summoner name entered.'
)
embed_message.set_footer(
text=utils.get_negative_quote(),
icon_url=utils.icon
)
return await bot.send_message(
ctx.message.channel,
embed=embed_message
)
region = None
for key in riot_api.REGION:
if args[0].lower() == key:
region = args[0].lower()
sanitized_name = str(''.join(args if region is None else args[1:])).replace('_', '')
api = RiotAPI()
if region is None:
region = riot_api.REGION.get(str(api.default_region)).get('region')
summoner = api.get_summoner_by_name(region, sanitized_name)
summoner_name = summoner.get('name')
if summoner_name is None:
embed_message = discord.Embed(
color=utils.color,
title='Error',
description='Invalid summoner name entered.'
)
embed_message.set_footer(
text=utils.get_negative_quote(),
icon_url=utils.icon
)
return await bot.send_message(
ctx.message.channel,
embed=embed_message
)
summoner_id = summoner.get('id')
account_id = summoner.get('accountId')
embed_message = discord.Embed(
color=utils.color,
title='Profile',
description='**{0}** ({1})\n[OP.GG]({2})'.format(
summoner_name,
riot_api.REGION.get(str(region)).get('name'),
'https://{0}.op.gg/summoner/userName={1}'.format(
region,
sanitized_name)),
)
embed_message.set_thumbnail(
url='http://avatar.leagueoflegends.com/{0}/{1}.png'.format(
region,
sanitized_name
)
)
embed_message.set_footer(
text=utils.get_positive_quote(),
icon_url=utils.icon
)
league = api.get_league_by_summoner_id(region, summoner_id)
if not league:
embed_message.add_field(
name='Ranked Stats',
value='No stats to display.',
inline=False
)
else:
embed_message.add_field(
name='Ranked Stats',
value='**{0} {1}** ({2} LP)\n{3}W/{4}L (**{5}**%)'.format(
league[0].get('tier').title(),
league[0].get('rank'),
league[0].get('leaguePoints'),
league[0].get('wins'),
league[0].get('losses'),
'{0:.1f}'.format(
100*(league[0].get('wins') / (league[0].get('wins') + league[0].get('losses')))
)
)
)
champion_mastery = api.get_champion_mastery_by_summoner_id(region, summoner_id)
if not champion_mastery:
embed_message.add_field(
name='Champion Mastery',
value='No champions to display.',
inline=False
)
else:
champions_to_display = 5 if len(champion_mastery) >= 5 else len(champion_mastery)
champion_data = api.get_static_champion_data()
field_text = ''
for i in range(0, champions_to_display):
for key, value in champion_data.get('data').items():
if champion_mastery[i].get('championId', 0) == value.get('id'):
field_text += 'Level **{0}**: {1} ({2})\n'.format(
champion_mastery[i].get('championLevel'),
value.get('name'),
'{:,}'.format(
champion_mastery[i].get('championPoints')
)
)
embed_message.add_field(
name='Champion Mastery',
value=field_text,
inline=False
)
matches_to_display = 5
match_history = api.get_match_history_by_account_id(
region,
account_id,
params={
'beginIndex': '0',
'endIndex': str(matches_to_display)
}
)
if not match_history:
embed_message.add_field(
name='Match History',
value='No matches to display.',
inline=False
)
else:
matches_to_display = matches_to_display if len(match_history.get('matches')) >= matches_to_display else len(
match_history.get('matches')
)
field1_text = ''
field2_text = ''
for i in range(0, matches_to_display):
match_details = api.get_match_details_by_match_id(
region,
match_history.get('matches')[i].get('gameId')
)
for j in range(0, 6 if match_details.get('mapId') == 10 else 10):
if summoner_id == match_details.get('participantIdentities')[j].get('player').get('summonerId'):
for key, value in champion_data.get('data').items():
if match_history.get('matches')[i].get('champion') == value.get('id'):
field1_text += '{0} ({1})\n'.format(
riot_api.get_queue_name_by_queue_id(
match_history.get('matches')[i].get('queue')
),
utils.convert_time_to_ago_string(
datetime.now() - datetime.fromtimestamp(match_details.get('gameCreation') / 1000.0)
)
)
field2_text += '**{0}**: {1} ({2}/{3}/{4})\n'.format(
'Victory' if match_details.get('participants')[j].get('stats').get('win') else 'Defeat',
value.get('name'),
match_details.get('participants')[j].get('stats').get('kills'),
match_details.get('participants')[j].get('stats').get('deaths'),
match_details.get('participants')[j].get('stats').get('assists')
)
embed_message.add_field(
name='Match History',
value=field1_text
)
embed_message.add_field(
name='ᅠ',
value=field2_text
)
return await bot.send_message(
ctx.message.channel,
embed=embed_message
)
@bot.command(pass_context=True)
async def mastery(ctx, *args):
if not args:
embed_message = discord.Embed(
color=utils.color,
title='Error',
description='No summoner name entered.'
)
embed_message.set_footer(
text=utils.get_negative_quote(),
icon_url=utils.icon
)
return await bot.send_message(
ctx.message.channel,
embed=embed_message
)
region = None
for key in riot_api.REGION:
if args[0].lower() == key:
region = args[0].lower()
sanitized_name = str(''.join(args if region is None else args[1:])).replace('_', '')
api = RiotAPI()
if region is None:
region = riot_api.REGION.get(str(api.default_region)).get('region')
summoner = api.get_summoner_by_name(region, sanitized_name)
summoner_name = summoner.get('name')
if summoner_name is None:
embed_message = discord.Embed(
color=utils.color,
title='Error',
description='Invalid summoner name entered.'
)
embed_message.set_footer(
text=utils.get_negative_quote(),
icon_url=utils.icon
)
return await bot.send_message(
ctx.message.channel,
embed=embed_message
)
summoner_id = summoner.get('id')
embed_message = discord.Embed(
color=utils.color,
title='Champion Mastery',
description='**{0}** ({1})\n[OP.GG]({2})'.format(
summoner_name,
riot_api.REGION.get(str(region)).get('name'),
'https://{0}.op.gg/summoner/userName={1}'.format(
region,
sanitized_name)),
)
embed_message.set_footer(
text=utils.get_positive_quote(),
icon_url=utils.icon
)
champion_mastery = api.get_champion_mastery_by_summoner_id(region, summoner_id)
if not champion_mastery:
embed_message.add_field(
name='Champion Mastery',
value='No champions to display.',
inline=False
)
else:
champions_to_display = 20 if len(champion_mastery) >= 20 else len(champion_mastery)
champion_data = api.get_static_champion_data()
field1_text = ''
field2_text = ''
field3_text = ''
for i in range(0, champions_to_display):
for key, value in champion_data.get('data').items():
if champion_mastery[i].get('championId', 0) == value.get('id'):
field1_text += 'Level **{0}**: {1}\n'.format(
champion_mastery[i].get('championLevel'),
value.get('name')
)
field2_text += '{0} {1}\n'.format(
'{:,}'.format(
champion_mastery[i].get('championPoints')
),
'({0} until **{1}**)'.format(
'{:,}'.format(champion_mastery[i].get('championPointsUntilNextLevel')),
champion_mastery[i].get('championLevel') + 1
) if champion_mastery[i].get('championLevel') < 5 else ''
)
field3_text += '{0} {1}\n'.format(
'~~Chest~~' if champion_mastery[i].get('chestGranted') else 'Chest',
'(**{0}** token{1})'.format(
champion_mastery[i].get('tokensEarned'),
'' if champion_mastery[i].get('tokensEarned') == 1 else 's'
) if champion_mastery[i].get('championLevel') == 5 or champion_mastery[i].get(
'championLevel') == 6 else ''
)
total_champion_level = 0
total_champion_points = 0
total_chest_granted = 0
for champion in champion_mastery:
total_champion_level += champion.get('championLevel')
total_champion_points += champion.get('championPoints')
total_chest_granted += 1 if champion.get('chestGranted') else 0
embed_message.add_field(
name='Champion',
value=field1_text,
inline=True
)
embed_message.add_field(
name='Points',
value=field2_text,
inline=True
)
embed_message.add_field(
name='Status',
value=field3_text,
inline=True
)
embed_message.add_field(
name='Total Level',
value='{0}/{1}'.format(
'{:,}'.format(
total_champion_level
),
'{:,}'.format(
len(champion_mastery) * 7
)
),
inline=True
)
embed_message.add_field(
name='Total Points',
value='{:,}'.format(
total_champion_points
),
inline=True
)
embed_message.add_field(
name='Total Chests',
value='{0}/{1}'.format(
'{:,}'.format(
total_chest_granted
),
'{:,}'.format(
len(champion_mastery)
)
),
inline=True
)
return await bot.send_message(
ctx.message.channel,
embed=embed_message
)
@bot.command(pass_context=True)
async def history(ctx, *args):
if not args:
embed_message = discord.Embed(
color=utils.color,
title='Error',
description='No summoner name entered.'
)
embed_message.set_footer(
text=utils.get_negative_quote(),
icon_url=utils.icon
)
return await bot.send_message(
ctx.message.channel,
embed=embed_message
)
region = None
for key in riot_api.REGION:
if args[0].lower() == key:
region = args[0].lower()
sanitized_name = str(''.join(args if region is None else args[1:])).replace('_', '')
api = RiotAPI()
if region is None:
region = riot_api.REGION.get(str(api.default_region)).get('region')
summoner = api.get_summoner_by_name(region, sanitized_name)
summoner_name = summoner.get('name')
if summoner_name is None:
embed_message = discord.Embed(
color=utils.color,
title='Error',
description='Invalid summoner name entered.'
)
embed_message.set_footer(
text=utils.get_negative_quote(),
icon_url=utils.icon
)
return await bot.send_message(
ctx.message.channel,
embed=embed_message
)
summoner_id = summoner.get('id')
account_id = summoner.get('accountId')
embed_message = discord.Embed(
color=utils.color,
title='Match History',
description='**{0}** ({1})\n[OP.GG]({2})'.format(
summoner_name,
riot_api.REGION.get(str(region)).get('name'),
'https://{0}.op.gg/summoner/userName={1}'.format(
region,
sanitized_name)),
)
embed_message.set_footer(
text=utils.get_positive_quote(),
icon_url=utils.icon
)
matches_to_display = 7
match_history = api.get_match_history_by_account_id(
region,
account_id,
params={
'beginIndex': '0',
'endIndex': str(matches_to_display)
}
)
if not match_history:
embed_message.add_field(
name='Matches',
value='No matches to display.',
inline=False
)
return await bot.send_message(
ctx.message.channel,
embed=embed_message
)
else:
matches_to_display = matches_to_display if len(match_history.get('matches')) >= matches_to_display else len(
match_history.get('matches')
)
champion_data = api.get_static_champion_data()
match_id = []
field1_text = ''
field2_text = ''
champion_last_played = ''
total_wins = 0
total_kills = 0
total_deaths = 0
total_assists = 0
total_cs = 0
total_cs_per_min = 0
for i in range(0, matches_to_display):
match_details = api.get_match_details_by_match_id(
region,
match_history.get('matches')[i].get('gameId')
)
match_id.append(
match_history.get('matches')[i].get('gameId')
)
for j in range(0, 6 if match_details.get('mapId') == 10 else 10):
if summoner_id == match_details.get('participantIdentities')[j].get('player').get('summonerId'):
for key, value in champion_data.get('data').items():
if match_history.get('matches')[i].get('champion') == value.get('id'):
if champion_last_played == '':
champion_last_played = value.get('key')
field1_text += '(**{0}**) {1} ({2})\n'.format(
i + 1,
riot_api.get_queue_name_by_queue_id(
match_history.get('matches')[i].get('queue')
),
utils.convert_time_to_ago_string(
datetime.now() - datetime.fromtimestamp(match_details.get('gameCreation') / 1000.0)
)
)
field2_text += '**{0}**: {1} ({2}/{3}/{4})\n'.format(
'Victory' if match_details.get('participants')[j].get('stats').get('win') else 'Defeat',
value.get('name'),
match_details.get('participants')[j].get('stats').get('kills'),
match_details.get('participants')[j].get('stats').get('deaths'),
match_details.get('participants')[j].get('stats').get('assists')
)
total_wins += 1 if match_details.get('participants')[j].get('stats').get('win') else 0
total_kills += match_details.get('participants')[j].get('stats').get('kills')
total_deaths += match_details.get('participants')[j].get('stats').get('deaths')
total_assists += match_details.get('participants')[j].get('stats').get('assists')
total_cs += match_details.get('participants')[j].get('stats').get(
'totalMinionsKilled') + match_details.get('participants')[j].get('stats').get(
'neutralMinionsKilled')
total_cs_per_min += (
sum(
match_details.get('participants')[j].get('timeline').get(
'creepsPerMinDeltas').values()) / len(
match_details.get('participants')[j].get('timeline').get(
'creepsPerMinDeltas')
)
)
embed_message.set_thumbnail(
url='http://ddragon.leagueoflegends.com/cdn/6.24.1/img/champion/{0}.png'.format(
champion_last_played
)
)
embed_message.add_field(
name='Match',
value=field1_text
)
embed_message.add_field(
name='Details',
value=field2_text
)
embed_message.add_field(
name='Cumulative Stats',
value='**Total Games**: {0}\n**Total KDA**: {1}/{2}/{3}\n**Total Minions Killed**: {4}'.format(
matches_to_display,
total_kills,
total_deaths,
total_assists,
'{0:.0f}'.format(
total_cs
)
)
)
embed_message.add_field(
name='Per Game Stats',
value='{0}W/{1}L (**{2}**%)\n{3}/{4}/{5} (**{6}** KDA)\n{7} (**{8}** per minute)'.format(
total_wins,
matches_to_display - total_wins,
'{0:.1f}'.format(
100 * (total_wins / matches_to_display)
),
'{0:.1f}'.format(
total_kills / matches_to_display
),
'{0:.1f}'.format(
total_deaths / matches_to_display
),
'{0:.1f}'.format(
total_assists / matches_to_display
),
'{0:.1f}'.format(
((total_kills + total_assists) / total_deaths)
),
'{0:.1f}'.format(
total_cs / matches_to_display
),
'{0:.1f}'.format(
total_cs_per_min / matches_to_display
)
)
)
message = await bot.send_message(
ctx.message.channel,
embed=embed_message
)
for i in range(0, matches_to_display):
await bot.add_reaction(
message=message,
emoji=utils.numbered_reactions[i]
)
reaction = await bot.wait_for_reaction(
user=ctx.message.author,
timeout=45,
emoji=utils.numbered_reactions,
message=message
)
if reaction is None:
await bot.clear_reactions(
message=message
)
else:
await bot.clear_reactions(
message=message
)
embed_message = match(
region,
sanitized_name,
match_id[utils.numbered_reactions.index(reaction.reaction.emoji)]
)
await bot.edit_message(
message=message,
embed=embed_message
)
def match(*args):
region = args[0]
sanitized_name = args[1]
match_id = args[2]
api = RiotAPI()
summoner = api.get_summoner_by_name(region, sanitized_name)
summoner_name = summoner.get('name')
summoner_id = summoner.get('id')
embed_message = discord.Embed(
color=utils.color,
title='Match Details',
description='**{0}** ({1})\n[OP.GG]({2})'.format(
summoner_name,
riot_api.REGION.get(str(region)).get('name'),
'https://{0}.op.gg/summoner/userName={1}'.format(
region,
sanitized_name)),
)
embed_message.set_footer(
text=utils.get_positive_quote(),
icon_url=utils.icon
)
match_details = api.get_match_details_by_match_id(
region,
match_id
)
champion_data = api.get_static_champion_data()
items_data = api.get_static_item_data()
masteries_data = api.get_static_masteries_data(
params={
'masteryListData': 'masteryTree'
}
)
runes_data = api.get_static_runes_data(
params={
'runeListData': 'basic'
}
)
field1_text = ''
field2_text = ''
field3_text = ''
field4_text = ''
field5_text = ''
participant_count = 6 if match_details.get('mapId') == 10 else 10
team_damage_dealt = 0
team_damage_taken = 0
team_gold_earned = 0
team_minions_killed = 0
champion_played = ''
enemy_champion_played = 0
items = ''
ferocity_tree = '**Ferocity**: '
ferocity_count = 0
cunning_tree = '**Cunning**: '
cunning_count = 0
resolve_tree = '**Resolve**: '
resolve_count = 0
mark = '**Marks**: '
seal = '**Seals**: '
glyph = '**Glyphs**: '
quint = '**Quintessences**: '
runes_count = 0
for i in range(0, participant_count):
if summoner_id == match_details.get('participantIdentities')[i].get('player').get('summonerId'):
participant_id = match_details.get('participantIdentities')[i].get('participantId')
champion_played = match_details.get('participants')[participant_id - 1].get('championId')
for key, value in champion_data.get('data').items():
if champion_played == value.get('id'):
champion_played = value.get('name')
break
break
for i in range(0, participant_count):
if match_details.get('participants')[participant_id - 1].get('teamId') == match_details.get(
'participants')[i].get('teamId'):
team_damage_dealt += match_details.get('participants')[i].get('stats').get(
'totalDamageDealtToChampions')
team_damage_taken += match_details.get('participants')[i].get('stats').get(
'totalDamageTaken')
team_gold_earned += match_details.get('participants')[i].get('stats').get(
'goldEarned')
team_minions_killed += match_details.get('participants')[i].get('stats').get(
'totalMinionsKilled')
if str(
match_details.get('participants')[participant_id - 1].get('timeline').get('lane')) == str(
match_details.get('participants')[i].get('timeline').get('lane')) and str(
match_details.get('participants')[participant_id - 1].get('timeline').get('role')) == str(
match_details.get('participants')[i].get('timeline').get('role')) and participant_id - 1 != i:
enemy_champion_played = match_details.get('participants')[i].get('championId')
for key, value in champion_data.get('data').items():
if enemy_champion_played == value.get('id'):
enemy_champion_played = value.get('name')
break
field1_text += '**{0}** ({1})\n{2} ({3})\n**{4}** vs {5} ({6})\nLevel **{7}**: {8}/{9}/{10} ({11} CS)'.format(
'Victory' if match_details.get('participants')[participant_id - 1].get('stats').get('win') else 'Defeat',
utils.convert_game_duration_to_string(
int(match_details.get('gameDuration'))
),
riot_api.get_queue_name_by_queue_id(
match_details.get('queueId')
),
utils.convert_time_to_ago_string(
datetime.now() - datetime.fromtimestamp(match_details.get('gameCreation')/1000.0)),
champion_played,
enemy_champion_played,
match_details.get('participants')[participant_id - 1].get('timeline').get('lane').title(),
match_details.get('participants')[participant_id - 1].get('stats').get('champLevel'),
match_details.get('participants')[participant_id - 1].get('stats').get('kills'),
match_details.get('participants')[participant_id - 1].get('stats').get('deaths'),
match_details.get('participants')[participant_id - 1].get('stats').get('assists'),
match_details.get('participants')[participant_id - 1].get('stats').get('totalMinionsKilled')
)
field2_text += '**Dealt**: {0}' \
'\n**Magic**: {1} (**{2}**%)' \
'\n**Physical**: {3} (**{4}**%)' \
'\n**True**: {5} (**{6}**%)' \
'\n**Team Share**: {7}%'.format(
'{:,}'.format(
match_details.get('participants')[participant_id - 1].get('stats').get(
'totalDamageDealtToChampions')
),
'{:,}'.format(
match_details.get('participants')[participant_id - 1].get('stats').get(
'magicDamageDealtToChampions')
),
'{:,.1f}'.format(
100 * (
match_details.get(
'participants')[participant_id - 1].get('stats').get(
'magicDamageDealtToChampions') / match_details.get(
'participants')[participant_id - 1].get('stats').get(
'totalDamageDealtToChampions')
)
),
'{:,}'.format(
match_details.get('participants')[participant_id - 1].get('stats').get(
'physicalDamageDealtToChampions')
),
'{:,.1f}'.format(
100 * (
match_details.get(
'participants')[participant_id - 1].get('stats').get(
'physicalDamageDealtToChampions') / match_details.get(
'participants')[participant_id - 1].get('stats').get(
'totalDamageDealtToChampions')
)
),
'{:,}'.format(
match_details.get('participants')[participant_id - 1].get('stats').get(
'trueDamageDealtToChampions')
),
'{:,.1f}'.format(
100 * (
match_details.get(
'participants')[participant_id - 1].get('stats').get(
'trueDamageDealtToChampions') / match_details.get(
'participants')[participant_id - 1].get('stats').get(
'totalDamageDealtToChampions')
)
),
'{:,.1f}'.format(
100 * (
match_details.get(
'participants')[participant_id - 1].get('stats').get(
'totalDamageDealtToChampions') / team_damage_dealt
)
)
)
field3_text += '**Taken**: {0}' \
'\n**Magic**: {1} (**{2}**%)' \
'\n**Physical**: {3} (**{4}**%)' \
'\n**True**: {5} (**{6}**%)' \
'\n**Team Share**: {7}%'.format(
'{:,}'.format(
match_details.get('participants')[participant_id - 1].get('stats').get(
'totalDamageTaken')
),
'{:,}'.format(
match_details.get('participants')[participant_id - 1].get('stats').get(
'magicalDamageTaken')
),
'{:,.1f}'.format(
100 * (
match_details.get('participants')[participant_id - 1].get('stats').get(
'magicalDamageTaken') /
match_details.get('participants')[participant_id - 1].get('stats').get(
'totalDamageTaken')
)
),
'{:,}'.format(
match_details.get('participants')[participant_id - 1].get('stats').get(
'physicalDamageTaken')
),
'{:,.1f}'.format(
100 * (
match_details.get('participants')[participant_id - 1].get('stats').get(
'physicalDamageTaken') /
match_details.get('participants')[participant_id - 1].get('stats').get(
'totalDamageTaken')
)
),
'{:,}'.format(
match_details.get('participants')[participant_id - 1].get('stats').get(
'trueDamageTaken')
),
'{:,.1f}'.format(
100 * (
match_details.get('participants')[participant_id - 1].get('stats').get(
'trueDamageTaken') /
match_details.get('participants')[participant_id - 1].get('stats').get(
'totalDamageTaken')
)
),
'{:,.1f}'.format(
100 * (
match_details.get(
'participants')[participant_id - 1].get('stats').get(
'totalDamageTaken') / team_damage_taken
)
)
)
field4_text += '**Lane**: {0} (**{1}** per minute)' \
'\n**Jungle**: {2}' \
'\n**Difference vs {3}**: {4} per minute' \
'\n**Team Share**: {5}%'.format(
'{:,}'.format(
match_details.get('participants')[participant_id - 1].get('stats').get(
'totalMinionsKilled')
),
'{:,.1f}'.format(
sum(
match_details.get('participants')[participant_id - 1].get('timeline').get(
'creepsPerMinDeltas').values()) / len(
match_details.get('participants')[participant_id - 1].get('timeline').get(
'creepsPerMinDeltas')
)
),
'{:,}'.format(
match_details.get('participants')[participant_id - 1].get('stats').get(
'neutralMinionsKilled')
),
enemy_champion_played,
'{:,.1f}'.format(
sum(
match_details.get('participants')[participant_id - 1].get('timeline').get(
'csDiffPerMinDeltas').values()) / len(
match_details.get('participants')[participant_id - 1].get('timeline').get(
'csDiffPerMinDeltas')
)
),
'{:,.1f}'.format(
100 * (
match_details.get('participants')[participant_id - 1].get('stats').get(
'totalMinionsKilled') / team_minions_killed
)
)
)
field5_text += '**Earned**: {0} (**{1}** per minute)\n**Spent**: {2}\n**Team Share**: {3}%'.format(
'{:,}'.format(
match_details.get('participants')[participant_id - 1].get('stats').get('goldEarned')
),
'{:,.1f}'.format(
sum(
match_details.get('participants')[participant_id - 1].get('timeline').get(
'goldPerMinDeltas').values()) / len(
match_details.get('participants')[participant_id - 1].get('timeline').get(
'goldPerMinDeltas')
)
),
'{:,}'.format(
match_details.get('participants')[participant_id - 1].get('stats').get('goldSpent')
),
'{:,.1f}'.format(
100 * (
match_details.get('participants')[participant_id - 1].get('stats').get('goldEarned') / team_gold_earned
)
)
)
if match_details.get('participants')[participant_id - 1].get('stats').get('item0') is not None:
if match_details.get('participants')[participant_id - 1].get('stats').get('item0') != 0:
items += items_data.get('data').get(
str(match_details.get('participants')[participant_id - 1].get('stats').get('item0'))).get('name') + '\n'
if match_details.get('participants')[participant_id - 1].get('stats').get('item1') is not None:
if match_details.get('participants')[participant_id - 1].get('stats').get('item1') != 0:
items += items_data.get('data').get(
str(match_details.get('participants')[participant_id - 1].get('stats').get('item1'))).get('name') + '\n'
if match_details.get('participants')[participant_id - 1].get('stats').get('item2') is not None:
if match_details.get('participants')[participant_id - 1].get('stats').get('item2') != 0:
items += items_data.get('data').get(
str(match_details.get('participants')[participant_id - 1].get('stats').get('item2'))).get('name') + '\n'
if match_details.get('participants')[participant_id - 1].get('stats').get('item3') is not None:
if match_details.get('participants')[participant_id - 1].get('stats').get('item3') != 0:
items += items_data.get('data').get(
str(match_details.get('participants')[participant_id - 1].get('stats').get('item3'))).get('name') + '\n'
if match_details.get('participants')[participant_id - 1].get('stats').get('item4') is not None:
if match_details.get('participants')[participant_id - 1].get('stats').get('item4') != 0:
items += items_data.get('data').get(
str(match_details.get('participants')[participant_id - 1].get('stats').get('item4'))).get('name') + '\n'
if match_details.get('participants')[participant_id - 1].get('stats').get('item5') is not None:
if match_details.get('participants')[participant_id - 1].get('stats').get('item5') != 0:
items += items_data.get('data').get(
str(match_details.get('participants')[participant_id - 1].get('stats').get('item5'))).get('name') + '\n'
if match_details.get('participants')[participant_id - 1].get('stats').get('item6') is not None:
if match_details.get('participants')[participant_id - 1].get('stats').get('item6') != 0:
items += items_data.get('data').get(
str(match_details.get('participants')[participant_id - 1].get('stats').get('item6'))).get('name') + '\n'
for key in match_details.get('participants')[participant_id - 1].get('masteries'):
if masteries_data.get('data').get(str(key.get('masteryId'))).get('masteryTree') == 'Ferocity':
ferocity_tree += '(**{0}**) {1} '.format(
key.get('rank'),
masteries_data.get('data').get(str(key.get('masteryId'))).get('name')
)
ferocity_count += int(key.get('rank'))
elif masteries_data.get('data').get(str(key.get('masteryId'))).get('masteryTree') == 'Cunning':
cunning_tree += '(**{0}**) {1} '.format(
key.get('rank'),
masteries_data.get('data').get(str(key.get('masteryId'))).get('name')
)
cunning_count += int(key.get('rank'))
elif masteries_data.get('data').get(str(key.get('masteryId'))).get('masteryTree') == 'Resolve':
resolve_tree += '(**{0}**) {1} '.format(
key.get('rank'),
masteries_data.get('data').get(str(key.get('masteryId'))).get('name')
)
resolve_count += int(key.get('rank'))
for key in match_details.get('participants')[participant_id - 1].get('runes'):
if runes_data.get('data').get(str(key.get('runeId'))).get('rune').get('type') == 'red':
mark += '(**{0}**) {1} '.format(
key.get('rank'),
runes_data.get('data').get(str(key.get('runeId'))).get('name')
)
runes_count += 1
elif runes_data.get('data').get(str(key.get('runeId'))).get('rune').get('type') == 'yellow':
seal += '(**{0}**) {1} '.format(
key.get('rank'),
runes_data.get('data').get(str(key.get('runeId'))).get('name')
)
runes_count += 1
elif runes_data.get('data').get(str(key.get('runeId'))).get('rune').get('type') == 'blue':
glyph += '(**{0}**) {1} '.format(
key.get('rank'),
runes_data.get('data').get(str(key.get('runeId'))).get('name')
)
runes_count += 1
elif runes_data.get('data').get(str(key.get('runeId'))).get('rune').get('type') == 'black':
quint += '(**{0}**) {1} '.format(
key.get('rank'),
runes_data.get('data').get(str(key.get('runeId'))).get('name')
)
runes_count += 1
for key, value in champion_data.get('data').items():
if champion_played == value.get('name'):
champion_played = value.get('key')
break
embed_message.set_thumbnail(
url='http://ddragon.leagueoflegends.com/cdn/6.24.1/img/champion/{0}.png'.format(
champion_played
)
)
embed_message.add_field(
name='Match Breakdown',
value=field1_text,
inline=False
)
embed_message.add_field(
name='Damage Breakdown',
value=field2_text
)
embed_message.add_field(
name='ᅠ',
value=field3_text
)
embed_message.add_field(
name='CS Breakdown',
value=field4_text
)
embed_message.add_field(
name='Gold Breakdown',
value=field5_text
)
if not items:
embed_message.add_field(
name='Items',
value='No items to display.',
inline=False
)
else:
embed_message.add_field(
name='Items',
value=items,
inline=False
)
if ferocity_count == 0 and cunning_count == 0 and resolve_count == 0:
embed_message.add_field(
name='Masteries',
value='No masteries to display.',
inline=False
)
else:
embed_message.add_field(
name='Masteries',
value='{0}-{1}-{2}\n{3}\n{4}\n{5}'.format(
ferocity_count,
cunning_count,
resolve_count,
ferocity_tree,
cunning_tree,
resolve_tree
),
inline=False
)
if runes_count == 0:
embed_message.add_field(
name='Runes',
value='No runes to display.',
inline=False
)
else:
embed_message.add_field(
name='Runes',
value='{0}\n{1}\n{2}\n{3}'.format(
mark.replace('Greater Mark of ', ''),
seal.replace('Greater Seal of ', ''),
glyph.replace('Greater Glyph of ', ''),
quint.replace('Greater Quintessence of ', '')
),
inline=False
)
return embed_message
bot.run(token)
| 42.603604
| 120
| 0.487418
| 4,134
| 42,561
| 4.822932
| 0.07402
| 0.066807
| 0.078243
| 0.124586
| 0.814575
| 0.790952
| 0.760658
| 0.724546
| 0.673789
| 0.655181
| 0
| 0.017303
| 0.372665
| 42,561
| 998
| 121
| 42.646293
| 0.729438
| 0.000775
| 0
| 0.55646
| 0
| 0.001017
| 0.156563
| 0.011499
| 0
| 0
| 0
| 0
| 0
| 1
| 0.001017
| false
| 0.003052
| 0.006104
| 0
| 0.017294
| 0.001017
| 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
|
d36d264b351626893171243d83cea48d370d5c1b
| 189
|
py
|
Python
|
dflow/matrices.py
|
HdbSci/dflow
|
b8e3b4f35e5152b4d881f097b563377c1f144907
|
[
"MIT"
] | 5
|
2021-02-19T18:15:45.000Z
|
2021-03-11T19:45:31.000Z
|
dflow/matrices.py
|
HdbSci/dflow
|
b8e3b4f35e5152b4d881f097b563377c1f144907
|
[
"MIT"
] | null | null | null |
dflow/matrices.py
|
HdbSci/dflow
|
b8e3b4f35e5152b4d881f097b563377c1f144907
|
[
"MIT"
] | null | null | null |
# DFLOW LIBRARY:
# dflow matrices module
# with zeros and ones
# functions
def zeros(rows, columns):
return [[0]*columns]*rows
def ones(rows, columns):
return [[1]*columns]*rows
| 17.181818
| 29
| 0.68254
| 26
| 189
| 4.961538
| 0.576923
| 0.170543
| 0.263566
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012987
| 0.185185
| 189
| 11
| 30
| 17.181818
| 0.824675
| 0.354497
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
d372b8d5cf73104c6377dd0849116cf393014285
| 114
|
py
|
Python
|
secret_santa/const.py
|
FawziAS/secret-santa
|
64adedbe1fc2d6f76d38d1e5e6ce0b53159ed002
|
[
"Unlicense"
] | 2
|
2021-12-24T09:01:16.000Z
|
2022-03-01T22:43:08.000Z
|
secret_santa/const.py
|
FawziAS/secret-santa
|
64adedbe1fc2d6f76d38d1e5e6ce0b53159ed002
|
[
"Unlicense"
] | null | null | null |
secret_santa/const.py
|
FawziAS/secret-santa
|
64adedbe1fc2d6f76d38d1e5e6ce0b53159ed002
|
[
"Unlicense"
] | null | null | null |
TWILIO_ACCOUNT_SID = "TWILIO_ACCOUNT_SID"
TWILIO_AUTH_TOKEN = "TWILIO_AUTH_TOKEN"
TWILIO_NUMBER = "TWILIO_NUMBER"
| 28.5
| 41
| 0.842105
| 16
| 114
| 5.375
| 0.375
| 0.302326
| 0.372093
| 0.511628
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078947
| 114
| 3
| 42
| 38
| 0.819048
| 0
| 0
| 0
| 0
| 0
| 0.421053
| 0
| 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
|
d3876dd05baba4b74f6d91b5ea8bc0837944ff61
| 2,061
|
py
|
Python
|
tests/test_migrations.py
|
encode/savannah
|
291e73d45559ec2fa93a7b92953333316c53c70d
|
[
"BSD-3-Clause"
] | 19
|
2020-03-27T16:44:09.000Z
|
2021-12-28T21:10:35.000Z
|
tests/test_migrations.py
|
encode/savannah
|
291e73d45559ec2fa93a7b92953333316c53c70d
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_migrations.py
|
encode/savannah
|
291e73d45559ec2fa93a7b92953333316c53c70d
|
[
"BSD-3-Clause"
] | 1
|
2020-03-29T00:20:28.000Z
|
2020-03-29T00:20:28.000Z
|
import savannah
import pytest
import os
@pytest.mark.asyncio
@pytest.mark.parametrize(
"database_url", ["sqlite:///test.db", "postgresql://127.0.0.1:5432/test_savannah"]
)
async def test_create(database_url):
assert not await savannah.database_exists(database_url)
await savannah.create_database(database_url)
assert await savannah.database_exists(database_url)
await savannah.drop_database(database_url)
assert not await savannah.database_exists(database_url)
@pytest.mark.asyncio
@pytest.mark.parametrize(
"database_url", ["sqlite:///test.db", "postgresql://127.0.0.1:5432/test_savannah"]
)
async def test_migrate(tmp_path, database_url):
os.chdir(tmp_path)
await savannah.create_database(database_url)
try:
await savannah.init()
await savannah.make_migration(database_url)
await savannah.make_migration(database_url)
migrations = await savannah.list_migrations(database_url)
assert len(migrations) == 3
assert [m.is_applied for m in migrations] == [False, False, False]
await savannah.migrate(database_url, target="0002")
migrations = await savannah.list_migrations(database_url)
assert len(migrations) == 3
assert [m.is_applied for m in migrations] == [True, True, False]
await savannah.migrate(database_url)
migrations = await savannah.list_migrations(database_url)
assert len(migrations) == 3
assert [m.is_applied for m in migrations] == [True, True, True]
await savannah.migrate(database_url, target="0001")
migrations = await savannah.list_migrations(database_url)
assert len(migrations) == 3
assert [m.is_applied for m in migrations] == [True, False, False]
await savannah.migrate(database_url, target="zero")
migrations = await savannah.list_migrations(database_url)
assert len(migrations) == 3
assert [m.is_applied for m in migrations] == [False, False, False]
finally:
await savannah.drop_database(database_url)
| 37.472727
| 86
| 0.706938
| 262
| 2,061
| 5.381679
| 0.187023
| 0.171631
| 0.096454
| 0.095745
| 0.90922
| 0.90922
| 0.741844
| 0.741844
| 0.636879
| 0.636879
| 0
| 0.01976
| 0.189714
| 2,061
| 54
| 87
| 38.166667
| 0.824551
| 0
| 0
| 0.577778
| 0
| 0
| 0.073751
| 0.039787
| 0
| 0
| 0
| 0
| 0.288889
| 1
| 0
| false
| 0
| 0.066667
| 0
| 0.066667
| 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
|
6ca16428df6e2798f45c93d343b0facecf100f81
| 26
|
py
|
Python
|
wildfire/__init__.py
|
dsanmartin/ngen-kutral
|
4e724b8108a698dec25aa122b831f42c9b91ba9a
|
[
"BSD-3-Clause"
] | null | null | null |
wildfire/__init__.py
|
dsanmartin/ngen-kutral
|
4e724b8108a698dec25aa122b831f42c9b91ba9a
|
[
"BSD-3-Clause"
] | null | null | null |
wildfire/__init__.py
|
dsanmartin/ngen-kutral
|
4e724b8108a698dec25aa122b831f42c9b91ba9a
|
[
"BSD-3-Clause"
] | 1
|
2019-06-12T18:46:06.000Z
|
2019-06-12T18:46:06.000Z
|
from .wildfire import Fire
| 26
| 26
| 0.846154
| 4
| 26
| 5.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115385
| 26
| 1
| 26
| 26
| 0.956522
| 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
|
6cadd73a778ea36f9362b9fed7896a8bbbb89dad
| 87
|
py
|
Python
|
cptv/__init__.py
|
gferraro/python-cptv
|
af550f96308d8f24aca09f78baaeb8df6f9daf84
|
[
"Apache-2.0"
] | 3
|
2017-10-12T04:55:16.000Z
|
2021-11-04T23:51:05.000Z
|
cptv/__init__.py
|
gferraro/python-cptv
|
af550f96308d8f24aca09f78baaeb8df6f9daf84
|
[
"Apache-2.0"
] | 17
|
2017-10-11T03:56:00.000Z
|
2020-03-15T22:35:59.000Z
|
cptv/__init__.py
|
gferraro/python-cptv
|
af550f96308d8f24aca09f78baaeb8df6f9daf84
|
[
"Apache-2.0"
] | 7
|
2017-10-12T04:55:18.000Z
|
2020-01-22T02:21:02.000Z
|
from .reader import CPTVReader
from .writer import CPTVWriter
from .frame import Frame
| 21.75
| 30
| 0.827586
| 12
| 87
| 6
| 0.583333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 87
| 3
| 31
| 29
| 0.96
| 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
|
6cd1ad282661e7bbade7f16d3a1b29172c068788
| 278
|
py
|
Python
|
Intro/15 - addBorder.py
|
lucasalme1da/codesignal
|
faff1ae635d04a33a1b59e6f751d266fabca5e71
|
[
"MIT"
] | 2
|
2020-04-15T00:15:03.000Z
|
2021-02-17T18:43:08.000Z
|
Intro/15 - addBorder.py
|
lucasalme1da/codesignal
|
faff1ae635d04a33a1b59e6f751d266fabca5e71
|
[
"MIT"
] | null | null | null |
Intro/15 - addBorder.py
|
lucasalme1da/codesignal
|
faff1ae635d04a33a1b59e6f751d266fabca5e71
|
[
"MIT"
] | null | null | null |
def addBorder(picture):
pictureWithBorder = []
pictureWithBorder.append('*'*(len(picture[0])+2))
for i in range(len(picture)):
pictureWithBorder.append('*' + picture[i] + '*')
pictureWithBorder.append('*'*(len(picture[0])+2))
return pictureWithBorder
| 39.714286
| 56
| 0.651079
| 28
| 278
| 6.464286
| 0.464286
| 0.381215
| 0.287293
| 0.364641
| 0.38674
| 0.38674
| 0
| 0
| 0
| 0
| 0
| 0.017167
| 0.161871
| 278
| 7
| 57
| 39.714286
| 0.759657
| 0
| 0
| 0.285714
| 0
| 0
| 0.014337
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0
| 0
| 0.285714
| 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
|
9f15155bdee16db66671b50f60e210fc67073413
| 85
|
py
|
Python
|
matteautils/dataset/__init__.py
|
mattea/mattea-utils
|
030ba2d4014b62b05eb8e00006d6e98c790b5650
|
[
"Apache-2.0"
] | null | null | null |
matteautils/dataset/__init__.py
|
mattea/mattea-utils
|
030ba2d4014b62b05eb8e00006d6e98c790b5650
|
[
"Apache-2.0"
] | null | null | null |
matteautils/dataset/__init__.py
|
mattea/mattea-utils
|
030ba2d4014b62b05eb8e00006d6e98c790b5650
|
[
"Apache-2.0"
] | null | null | null |
from dataset import Dataset, MatchWriter, SentencePair
import semeval
import nuggets
| 21.25
| 54
| 0.858824
| 10
| 85
| 7.3
| 0.7
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 85
| 3
| 55
| 28.333333
| 0.973333
| 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
|
9f1b7091b1923dec01fd934af73bbd747478f09a
| 68
|
py
|
Python
|
config.py
|
Dora-faith-hack/interactive-with-BCH
|
283a685f18e53c616fc6b2e9c3041c07c441d2f7
|
[
"BSD-3-Clause"
] | 1
|
2018-07-22T16:20:42.000Z
|
2018-07-22T16:20:42.000Z
|
config.py
|
Dora-faith-hack/interactive-with-BCH
|
283a685f18e53c616fc6b2e9c3041c07c441d2f7
|
[
"BSD-3-Clause"
] | null | null | null |
config.py
|
Dora-faith-hack/interactive-with-BCH
|
283a685f18e53c616fc6b2e9c3041c07c441d2f7
|
[
"BSD-3-Clause"
] | null | null | null |
sender_address = 'bchreg:qzzanl750et6tnzcvle2k59z57zle3msfqc5qslx5n'
| 68
| 68
| 0.911765
| 4
| 68
| 15.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 0.029412
| 68
| 1
| 68
| 68
| 0.742424
| 0
| 0
| 0
| 0
| 0
| 0.710145
| 0.710145
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
9f540264ef528ca9b469cfc45086b4fe66253ffc
| 73
|
py
|
Python
|
config.py
|
blenderlab/POP_carto
|
3c83f6cb157cbbda62b99655c5bdf8e0e23d8d22
|
[
"MIT"
] | null | null | null |
config.py
|
blenderlab/POP_carto
|
3c83f6cb157cbbda62b99655c5bdf8e0e23d8d22
|
[
"MIT"
] | null | null | null |
config.py
|
blenderlab/POP_carto
|
3c83f6cb157cbbda62b99655c5bdf8e0e23d8d22
|
[
"MIT"
] | null | null | null |
apikey='70a2b65e0469126e1ba68c1b7fbf93a7'
lang='fr'
name='Thomas HOCEDEZ'
| 24.333333
| 41
| 0.835616
| 7
| 73
| 8.714286
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.285714
| 0.041096
| 73
| 3
| 42
| 24.333333
| 0.585714
| 0
| 0
| 0
| 0
| 0
| 0.648649
| 0.432432
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
9f8bb9bb71d8345fb821d4b1abf9d263929bedee
| 155
|
py
|
Python
|
src/apps/profiles/apps.py
|
Remy-TPP/q-api
|
761dd2d15557cb9a8bdc0b397fc10e0cf7c95c03
|
[
"MIT"
] | null | null | null |
src/apps/profiles/apps.py
|
Remy-TPP/q-api
|
761dd2d15557cb9a8bdc0b397fc10e0cf7c95c03
|
[
"MIT"
] | 14
|
2020-06-23T20:32:16.000Z
|
2022-01-13T03:13:20.000Z
|
src/apps/profiles/apps.py
|
MartinCura/q-api
|
761dd2d15557cb9a8bdc0b397fc10e0cf7c95c03
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class ProfilesConfig(AppConfig):
name = 'apps.profiles'
def ready(self):
import apps.profiles.signals
| 17.222222
| 36
| 0.709677
| 18
| 155
| 6.111111
| 0.722222
| 0.218182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.206452
| 155
| 8
| 37
| 19.375
| 0.894309
| 0
| 0
| 0
| 0
| 0
| 0.083871
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
9fb3821a002527fd9a84599b9cdc614a60b49093
| 4,144
|
py
|
Python
|
lib/data/datasets.py
|
nelson870708/skip-ganomaly
|
352f8b29d0e0aa76127eac4accea230fe33c893c
|
[
"MIT"
] | null | null | null |
lib/data/datasets.py
|
nelson870708/skip-ganomaly
|
352f8b29d0e0aa76127eac4accea230fe33c893c
|
[
"MIT"
] | null | null | null |
lib/data/datasets.py
|
nelson870708/skip-ganomaly
|
352f8b29d0e0aa76127eac4accea230fe33c893c
|
[
"MIT"
] | null | null | null |
"""
CREATE DATASETS
"""
import numpy as np
import torch
def get_cifar_anomaly_dataset(train_ds, valid_ds, abn_cls_idx=0):
"""[summary]
Arguments:
train_ds {Dataset - CIFAR10} -- Training dataset
valid_ds {Dataset - CIFAR10} -- Validation dataset.
Keyword Arguments:
abn_cls_idx {int} -- Anomalous class index (default: {0})
Returns:
[np.array] -- New training-test images and labels.
"""
# Get images and labels.
trn_img, trn_lbl = train_ds.data, np.array(train_ds.targets)
tst_img, tst_lbl = valid_ds.data, np.array(valid_ds.targets)
# --
# Find idx, img, lbl for abnormal and normal on org dataset.
nrm_trn_idx = np.where(trn_lbl != abn_cls_idx)[0]
abn_trn_idx = np.where(trn_lbl == abn_cls_idx)[0]
nrm_trn_img = trn_img[nrm_trn_idx] # Normal training images
abn_trn_img = trn_img[abn_trn_idx] # Abnormal training images
nrm_trn_lbl = trn_lbl[nrm_trn_idx] # Normal training labels
abn_trn_lbl = trn_lbl[abn_trn_idx] # Abnormal training labels.
nrm_tst_idx = np.where(tst_lbl != abn_cls_idx)[0]
abn_tst_idx = np.where(tst_lbl == abn_cls_idx)[0]
nrm_tst_img = tst_img[nrm_tst_idx] # Normal training images
abn_tst_img = tst_img[abn_tst_idx] # Abnormal training images.
nrm_tst_lbl = tst_lbl[nrm_tst_idx] # Normal training labels
abn_tst_lbl = tst_lbl[abn_tst_idx] # Abnormal training labels.
# --
# Assign labels to normal (0) and abnormals (1)
nrm_trn_lbl[:] = 0
nrm_tst_lbl[:] = 0
abn_trn_lbl[:] = 1
abn_tst_lbl[:] = 1
# Create new anomaly dataset based on the following data structure:
# - anomaly dataset
# . -> train
# . -> normal
# . -> test
# . -> normal
# . -> abnormal
train_ds.data = np.copy(nrm_trn_img)
valid_ds.data = np.concatenate((nrm_tst_img, abn_trn_img, abn_tst_img), axis=0)
train_ds.targets = np.copy(nrm_trn_lbl)
valid_ds.targets = np.concatenate((nrm_tst_lbl, abn_trn_lbl, abn_tst_lbl), axis=0)
return train_ds, valid_ds
def get_mnist_anomaly_dataset(train_ds, valid_ds, abn_cls_idx=0):
"""[summary]
Arguments:
train_ds {Dataset - MNIST} -- Training dataset
valid_ds {Dataset - MNIST} -- Validation dataset.
Keyword Arguments:
abn_cls_idx {int} -- Anomalous class index (default: {0})
Returns:
[np.array] -- New training-test images and labels.
"""
# Get images and labels.
trn_img, trn_lbl = train_ds.data, train_ds.targets
tst_img, tst_lbl = valid_ds.data, valid_ds.targets
# --
# Find normal abnormal indexes.
# TODO: PyTorch v0.4 has torch.where function
nrm_trn_idx = torch.from_numpy(np.where(trn_lbl.numpy() != abn_cls_idx)[0])
abn_trn_idx = torch.from_numpy(np.where(trn_lbl.numpy() == abn_cls_idx)[0])
nrm_tst_idx = torch.from_numpy(np.where(tst_lbl.numpy() != abn_cls_idx)[0])
abn_tst_idx = torch.from_numpy(np.where(tst_lbl.numpy() == abn_cls_idx)[0])
# --
# Find normal and abnormal images
nrm_trn_img = trn_img[nrm_trn_idx] # Normal training images
abn_trn_img = trn_img[abn_trn_idx] # Abnormal training images.
nrm_tst_img = tst_img[nrm_tst_idx] # Normal training images
abn_tst_img = tst_img[abn_tst_idx] # Abnormal training images.
# --
# Find normal and abnormal labels.
nrm_trn_lbl = trn_lbl[nrm_trn_idx] # Normal training labels
abn_trn_lbl = trn_lbl[abn_trn_idx] # Abnormal training labels.
nrm_tst_lbl = tst_lbl[nrm_tst_idx] # Normal training labels
abn_tst_lbl = tst_lbl[abn_tst_idx] # Abnormal training labels.
# --
# Assign labels to normal (0) and abnormals (1)
nrm_trn_lbl[:] = 0
nrm_tst_lbl[:] = 0
abn_trn_lbl[:] = 1
abn_tst_lbl[:] = 1
# Create new anomaly dataset based on the following data structure:
train_ds.data = nrm_trn_img.clone()
valid_ds.data = torch.cat((nrm_tst_img, abn_trn_img, abn_tst_img), dim=0)
train_ds.targets = nrm_trn_lbl.clone()
valid_ds.targets = torch.cat((nrm_tst_lbl, abn_trn_lbl, abn_tst_lbl), dim=0)
return train_ds, valid_ds
| 37
| 86
| 0.678089
| 646
| 4,144
| 4.006192
| 0.116099
| 0.051005
| 0.041731
| 0.03864
| 0.786708
| 0.764297
| 0.746909
| 0.742272
| 0.742272
| 0.700541
| 0
| 0.010436
| 0.213803
| 4,144
| 111
| 87
| 37.333333
| 0.783917
| 0.371863
| 0
| 0.52
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009009
| 0
| 1
| 0.04
| false
| 0
| 0.04
| 0
| 0.12
| 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
|
4c8a6161e5221facffa8c849635cb74deb788886
| 112
|
py
|
Python
|
pyparty/tools/__init__.py
|
hugadams/pyparty
|
0501cc0096ef3fa4c3499db5e621b3d50eab9613
|
[
"BSD-3-Clause"
] | 24
|
2015-01-16T21:00:35.000Z
|
2020-05-13T13:31:33.000Z
|
pyparty/tools/__init__.py
|
hugadams/pyparty
|
0501cc0096ef3fa4c3499db5e621b3d50eab9613
|
[
"BSD-3-Clause"
] | 2
|
2015-02-06T00:13:13.000Z
|
2015-03-11T21:09:40.000Z
|
pyparty/tools/__init__.py
|
hugadams/pyparty
|
0501cc0096ef3fa4c3499db5e621b3d50eab9613
|
[
"BSD-3-Clause"
] | 17
|
2015-02-26T11:07:58.000Z
|
2021-02-26T07:44:59.000Z
|
from canvas import Canvas, concat_canvas
from thresholding import thr_select
from manager import ParticleManager
| 37.333333
| 40
| 0.883929
| 15
| 112
| 6.466667
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107143
| 112
| 3
| 41
| 37.333333
| 0.97
| 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
|
4c94b3386f01d4db34032d760a837092c970b394
| 84
|
py
|
Python
|
src/cltkv1/dependency/__init__.py
|
todd-cook/cltkv1
|
90c3daaafda242a1982b38c2b11c52aedab7ddf8
|
[
"MIT"
] | null | null | null |
src/cltkv1/dependency/__init__.py
|
todd-cook/cltkv1
|
90c3daaafda242a1982b38c2b11c52aedab7ddf8
|
[
"MIT"
] | null | null | null |
src/cltkv1/dependency/__init__.py
|
todd-cook/cltkv1
|
90c3daaafda242a1982b38c2b11c52aedab7ddf8
|
[
"MIT"
] | null | null | null |
"""Init for ``cltkv1.dependency``."""
from .processes import *
from .tree import *
| 16.8
| 37
| 0.666667
| 10
| 84
| 5.6
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013889
| 0.142857
| 84
| 4
| 38
| 21
| 0.763889
| 0.369048
| 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
|
4cb130f5ceb323925339890f6b5aa9171825cd10
| 42
|
py
|
Python
|
Map/main.py
|
Jeanchichi/Python
|
4bbedbbd9a519feb03d0996303dec72f23f1d48d
|
[
"MIT"
] | null | null | null |
Map/main.py
|
Jeanchichi/Python
|
4bbedbbd9a519feb03d0996303dec72f23f1d48d
|
[
"MIT"
] | null | null | null |
Map/main.py
|
Jeanchichi/Python
|
4bbedbbd9a519feb03d0996303dec72f23f1d48d
|
[
"MIT"
] | null | null | null |
import folium as fo
map = fo.Map()
map
| 10.5
| 20
| 0.642857
| 8
| 42
| 3.375
| 0.625
| 0.37037
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.261905
| 42
| 4
| 21
| 10.5
| 0.870968
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
4cf61fe0018922c0d9fd3f6f95f4f3e250c122d2
| 290
|
py
|
Python
|
encomp/tests/test_constants.py
|
wlaur/encomp
|
236eb32d300e0deea5b05fcc46b06e13cb480838
|
[
"MIT"
] | 1
|
2022-01-29T22:05:50.000Z
|
2022-01-29T22:05:50.000Z
|
encomp/tests/test_constants.py
|
wlaur/encomp
|
236eb32d300e0deea5b05fcc46b06e13cb480838
|
[
"MIT"
] | null | null | null |
encomp/tests/test_constants.py
|
wlaur/encomp
|
236eb32d300e0deea5b05fcc46b06e13cb480838
|
[
"MIT"
] | null | null | null |
from encomp.constants import CONSTANTS
from encomp.units import Quantity
from encomp.utypes import Density, Pressure
def test_CONSTANTS():
assert isinstance(CONSTANTS.default_density, Quantity[Density])
assert isinstance(CONSTANTS.normal_conditions_pressure, Quantity[Pressure])
| 29
| 79
| 0.824138
| 34
| 290
| 6.911765
| 0.470588
| 0.12766
| 0.212766
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.110345
| 290
| 9
| 80
| 32.222222
| 0.910853
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.166667
| true
| 0
| 0.5
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
4cf9b12a539a1463785793855f0da7aee3555286
| 60
|
py
|
Python
|
tellus/creds.py
|
aquanauts/tellus
|
d1185357b8a2f1106bbd951558dc040c709ff826
|
[
"MIT"
] | null | null | null |
tellus/creds.py
|
aquanauts/tellus
|
d1185357b8a2f1106bbd951558dc040c709ff826
|
[
"MIT"
] | null | null | null |
tellus/creds.py
|
aquanauts/tellus
|
d1185357b8a2f1106bbd951558dc040c709ff826
|
[
"MIT"
] | null | null | null |
def get_credentials_from_vault(path):
# TODO
pass
| 10
| 37
| 0.683333
| 8
| 60
| 4.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 60
| 5
| 38
| 12
| 0.844444
| 0.066667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0
| 1
| 0.5
| false
| 0.5
| 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
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
980f5d93389933262ab6ff14c6e0e8e27eca6103
| 124
|
py
|
Python
|
numeric_functions.py
|
godontop/python-work
|
ea22e0df8b0b17605f5a434e556a388d1f75aa47
|
[
"MIT"
] | null | null | null |
numeric_functions.py
|
godontop/python-work
|
ea22e0df8b0b17605f5a434e556a388d1f75aa47
|
[
"MIT"
] | null | null | null |
numeric_functions.py
|
godontop/python-work
|
ea22e0df8b0b17605f5a434e556a388d1f75aa47
|
[
"MIT"
] | null | null | null |
print(min(1, 2, 3, 4, 0, 2, 1))
print(max([1, 4, 9, 2, 5, 6, 8]))
print(abs(-99))
print(abs(42))
print(sum([1, 2, 3, 4, 5]))
| 24.8
| 33
| 0.508065
| 31
| 124
| 2.032258
| 0.516129
| 0.063492
| 0.095238
| 0.126984
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.221154
| 0.16129
| 124
| 5
| 34
| 24.8
| 0.384615
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
981c9b6518772da1a9779e0262fca63312b7aecb
| 71
|
py
|
Python
|
python/testData/formatter/multilineBinaryExpressionInsideGenerator_after.py
|
jnthn/intellij-community
|
8fa7c8a3ace62400c838e0d5926a7be106aa8557
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/formatter/multilineBinaryExpressionInsideGenerator_after.py
|
jnthn/intellij-community
|
8fa7c8a3ace62400c838e0d5926a7be106aa8557
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/formatter/multilineBinaryExpressionInsideGenerator_after.py
|
jnthn/intellij-community
|
8fa7c8a3ace62400c838e0d5926a7be106aa8557
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
xs = (
x and
x
for x in range(10)
if
x and
x
)
| 7.888889
| 22
| 0.380282
| 13
| 71
| 2.076923
| 0.615385
| 0.296296
| 0.37037
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 0.549296
| 71
| 8
| 23
| 8.875
| 0.78125
| 0
| 0
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
e23763c15e2f963e9cd4375a0e7e8e421ee87f1d
| 68
|
py
|
Python
|
hackerrank/problemSolving/solveMeFirst/solveMeFirst.py
|
yusufsiregar44/coding-challenges
|
154f1e7b26351d70c446336d3e5dfc1f8056ceb4
|
[
"MIT"
] | null | null | null |
hackerrank/problemSolving/solveMeFirst/solveMeFirst.py
|
yusufsiregar44/coding-challenges
|
154f1e7b26351d70c446336d3e5dfc1f8056ceb4
|
[
"MIT"
] | null | null | null |
hackerrank/problemSolving/solveMeFirst/solveMeFirst.py
|
yusufsiregar44/coding-challenges
|
154f1e7b26351d70c446336d3e5dfc1f8056ceb4
|
[
"MIT"
] | null | null | null |
def solveMeFirst(a, b):
return a + b
print(solveMeFirst(1, 2))
| 13.6
| 25
| 0.647059
| 11
| 68
| 4
| 0.727273
| 0.090909
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.037037
| 0.205882
| 68
| 4
| 26
| 17
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 0.666667
| 0.333333
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
e25603e40e8312d539e308c1f88ed8c07511ba4c
| 15,341
|
py
|
Python
|
burndown/plots.py
|
loeiten/burndown
|
4380125e2a4351e4fd7b54fef63c6d850812035c
|
[
"MIT"
] | null | null | null |
burndown/plots.py
|
loeiten/burndown
|
4380125e2a4351e4fd7b54fef63c6d850812035c
|
[
"MIT"
] | 2
|
2022-02-01T15:46:11.000Z
|
2022-02-01T15:47:22.000Z
|
burndown/plots.py
|
loeiten/burndown
|
4380125e2a4351e4fd7b54fef63c6d850812035c
|
[
"MIT"
] | null | null | null |
"""Module containing burndown plots."""
from pathlib import Path
from typing import Dict, Union
import matplotlib.pyplot as plt
import matplotlib.ticker as mtick
import pandas as pd
from burndown.sprint_dates import SprintDates
def plot_burndown(
burndown_df: pd.DataFrame,
sprint_dates: SprintDates,
save_dir: Path,
sprint_name: str,
) -> None:
"""Plot and save the burndown.
Args:
burndown_df (pd.DataFrame): The data frame containing the burn down
sprint_dates (SprintDates): Sprint dates object
save_dir (Path): Directory to store the plot to
sprint_name (str): Name of the sprint
"""
plt.style.use("ggplot")
_, axis = plt.subplots()
# Shading
for date in sprint_dates.dates_without_development:
xmin = date - pd.DateOffset(1)
xmax = date
axis.axvspan(xmin=xmin, xmax=xmax, alpha=0.3, color="gray")
# Line plots
(ideal,) = axis.plot(
burndown_df.index,
burndown_df["ideal_burndown"],
linestyle="dashed",
label="Ideal",
)
(remaining,) = axis.plot(
burndown_df.index,
burndown_df["remaining"],
marker=".",
markersize=9,
label="Real",
)
# Prettifying
axis.legend(handles=[ideal, remaining], loc="best", shadow=True)
axis.set_title(f"{sprint_name} burndown")
axis.set_ylabel("Storypoints")
axis.set_xlabel("Date")
axis.set_xticks(burndown_df.index)
for label in axis.get_xticklabels():
label.set_rotation(65)
# Save
plt.tight_layout()
save_path = save_dir.joinpath(
f"{pd.to_datetime('today').date()}-burndown-{sprint_name.lower()}.png"
)
print(f"Saving image to: {save_path}")
plt.savefig(str(save_path), dpi=300, transparent=False)
def plot_double_burndown(
sprint_burndown_df: pd.DataFrame,
creep_burndown_df: pd.DataFrame,
daily_creep: Dict[str, Union[pd.core.indexes.datetimes.DatetimeIndex, str, float]],
sprint_dates: SprintDates,
save_dir: Path,
sprint_name: str,
) -> None:
"""Plot and save the burndown.
Args:
sprint_burndown_df (pd.DataFrame): The data frame containing the burn down of the points
from the sprint planning
creep_burndown_df (pd.DataFrame): The data frame containing the burn down of the creeps
daily_creep ( Dict[str, Union[pd.core.indexes.datetimes.DatetimeIndex, str, float]]):
The types and points of creeps for the days in the sprint
sprint_dates (SprintDates): Sprint dates object
save_dir (Path): Directory to store the plot to
sprint_name (str): Name of the sprint
"""
plt.style.use("ggplot")
fig, (ax1, ax2) = plt.subplots(2, 1, sharex=True)
fig.set_size_inches([6.4, 4.8 * 2])
# Shading
for date in sprint_dates.dates_without_development:
xmin = date - pd.DateOffset(1)
xmax = date
ax1.axvspan(xmin=xmin, xmax=xmax, alpha=0.3, color="gray")
# Line plots
(ideal,) = ax1.plot(
sprint_burndown_df.index,
sprint_burndown_df["ideal_burndown"],
linestyle="dashed",
label="Ideal",
)
(remaining,) = ax1.plot(
sprint_burndown_df.index,
sprint_burndown_df["remaining"],
marker=".",
markersize=9,
label="Remaining from planning",
)
(creep,) = ax1.plot(
creep_burndown_df.index,
-creep_burndown_df["remaining"],
marker=".",
markersize=9,
label="Remaining creeps",
)
# Stacked bar plot
dates = daily_creep.pop("date")
# Initialize bottom values to 0
if len(daily_creep) != 0:
pos_values_cur_bottom = [0] * len(daily_creep[list(daily_creep.keys())[0]])
else:
# In case there ar no creeps
pos_values_cur_bottom = [0]
neg_values_cur_bottom = [0] * len(pos_values_cur_bottom)
bottom = [0] * len(neg_values_cur_bottom)
for category, values in daily_creep.items():
# Keep track of positive and negative values as two different stacks
for index, value in enumerate(values):
if value > 0:
bottom[index] = pos_values_cur_bottom[index]
else:
bottom[index] = neg_values_cur_bottom[index]
ax2.bar(dates, values, bottom=bottom, label=category)
# Update prev values
for index, value in enumerate(values):
if value > 0:
pos_values_cur_bottom[index] += value
else:
neg_values_cur_bottom[index] += value
# Prettifying ax1
ax1.set_title(f"{sprint_name} burndown")
ax1.legend(handles=[ideal, remaining, creep], loc="best", shadow=True)
ax1.set_ylabel("Storypoints")
# Mark 0
ax1.axhline(y=0, color="k", linestyle="dashed")
# Prettifying ax2
ax2.legend(loc="best", shadow=True)
ax2.set_ylabel("Added creeps")
ax2.set_xlabel("Date")
ax2.set_xticks(sprint_burndown_df.index)
for label in ax2.get_xticklabels():
label.set_rotation(65)
# Mark 0
ax2.axhline(y=0, color="k", linestyle="dashed")
# Save
plt.tight_layout()
save_path = save_dir.joinpath(
f"{pd.to_datetime('today').date()}-double_burndown-{sprint_name.lower()}.png"
)
print(f"Saving image to: {save_path}")
plt.savefig(str(save_path), dpi=300, transparent=False)
def plot_sprint_burn_and_creep(
sprint_creep_df: pd.DataFrame,
sprint_dates: SprintDates,
save_dir: Path,
sprint_name: str,
) -> None:
"""Plot and save the burn down and creep.
Args:
sprint_creep_df (pd.DataFrame): The data frame containing the creep
sprint_dates (SprintDates): Sprint dates object
save_dir (Path): Directory to store the plot to
sprint_name (str): Name of the sprint
"""
plt.style.use("ggplot")
_, axis = plt.subplots()
# Shading
for date in sprint_dates.dates_without_development:
xmin = date - pd.DateOffset(1)
xmax = date
axis.axvspan(xmin=xmin, xmax=xmax, alpha=0.3, color="gray")
# Line plots
(total,) = axis.plot(
sprint_creep_df.index,
sprint_creep_df["accum_burned"],
marker=".",
markersize=9,
label="Total burnt points",
)
(creep,) = axis.plot(
sprint_creep_df.index,
sprint_creep_df["accum_creep"],
marker="X",
markersize=9,
label="Accumulated creep",
)
# Prettifying
axis.legend(handles=[total, creep], loc="best", shadow=True)
axis.set_title(f"{sprint_name} Burn and Creep")
axis.set_ylabel("Storypoints")
axis.set_xlabel("Date")
axis.set_xticks(sprint_creep_df.index)
for label in axis.get_xticklabels():
label.set_rotation(65)
# Save
plt.tight_layout()
save_path = save_dir.joinpath(
f"{pd.to_datetime('today').date()}-total_burn_and_creep-{sprint_name.lower()}.png"
)
print(f"Saving image to: {save_path}")
plt.savefig(str(save_path), dpi=300, transparent=False)
def plot_sprint_creep_categories(
sprint_creep_categories_df: pd.DataFrame, save_dir: Path, sprint_name: str
) -> None:
"""Plot and save the creep categories.
Args:
sprint_creep_categories_df (pd.DataFrame): The data frame containing the creep
categories
save_dir (Path): Directory to store the plot to
sprint_name (str): Name of the sprint
"""
plt.style.use("ggplot")
_, axis = plt.subplots()
# Bar plots
for category, creep in sprint_creep_categories_df.iterrows():
axis.bar(category, creep, width=0.75)
# Prettifying
axis.set_title(f"{sprint_name} Creep Categories")
axis.set_ylabel("Storypoints")
axis.set_xlabel("Category")
for label in axis.get_xticklabels():
label.set_rotation(90)
# Save
plt.tight_layout()
save_path = save_dir.joinpath(
f"{pd.to_datetime('today').date()}-creep_categories-{sprint_name.lower()}.png"
)
print(f"Saving image to: {save_path}")
plt.savefig(str(save_path), dpi=300, transparent=False)
def plot_sprint_categories(
sprint_categories_df: pd.DataFrame, save_dir: Path, sprint_name: str
) -> None:
"""Plot and save the categories.
Args:
sprint_categories_df (pd.DataFrame): The data frame containing the
categories
save_dir (Path): Directory to store the plot to
sprint_name (str): Name of the sprint
"""
plt.style.use("ggplot")
_, axis = plt.subplots()
# NOTE: There are a bit too few colors in the cycle of ggplot, so we add some more
axis.set_prop_cycle(
"color", plt.rcParams["axes.prop_cycle"].by_key()["color"] + ["black"]
)
for category, creep in sprint_categories_df.iterrows():
axis.bar(category, creep, width=0.75)
# Prettifying
axis.set_title(f"{sprint_name} Categories")
axis.set_ylabel("Storypoints")
axis.set_xlabel("Category")
for label in axis.get_xticklabels():
label.set_rotation(90)
# Save
plt.tight_layout()
save_path = save_dir.joinpath(
f"{pd.to_datetime('today').date()}-categories-{sprint_name.lower()}.png"
)
print(f"Saving image to: {save_path}")
plt.savefig(str(save_path), dpi=300, transparent=False)
def plot_burn_trend(burn_trend_df: pd.DataFrame, save_dir: Path) -> None:
"""
Plot and save the trend of burn categories.
Args:
creep_trend_df (pd.DataFrame): The data frame containing the creep trend
save_dir (Path): Directory to store the plot to
"""
plt.style.use("ggplot")
fig, axis = plt.subplots()
# NOTE: There are a bit too few colors in the cycle of ggplot, so we add some more
axis.set_prop_cycle(
"color", plt.rcParams["axes.prop_cycle"].by_key()["color"] + ["black"]
)
fig.set_size_inches([10, 4.8])
# Stack plot
axis.stackplot(
burn_trend_df.index,
burn_trend_df.values.T,
labels=burn_trend_df.columns,
alpha=0.6,
)
# Prettifying
axis.legend(
loc="upper left", shadow=True, bbox_to_anchor=(1.04, 1), borderaxespad=0
)
axis.set_title("Burned category trend")
axis.set_ylabel("Storypoints")
axis.set_xlabel("Sprint")
for label in axis.get_xticklabels():
label.set_rotation(65)
# Save
plt.tight_layout()
save_path = save_dir.joinpath(
f"{pd.to_datetime('today').date()}-category_trend.png"
)
print(f"Saving image to: {save_path}")
plt.savefig(str(save_path), dpi=300, transparent=False)
def plot_creep_trend(creep_trend_df: pd.DataFrame, save_dir: Path) -> None:
"""
Plot and save the trend of creep categories.
Args:
creep_trend_df (pd.DataFrame): The data frame containing the creep trend
save_dir (Path): Directory to store the plot to
"""
plt.style.use("ggplot")
fig, axis = plt.subplots()
fig.set_size_inches([10, 4.8])
# Stack plot
axis.stackplot(
creep_trend_df.index,
creep_trend_df.values.T,
labels=creep_trend_df.columns,
alpha=0.6,
)
# Prettifying
axis.legend(
loc="upper left", shadow=True, bbox_to_anchor=(1.04, 1), borderaxespad=0
)
axis.set_title("Creep Trend")
axis.set_ylabel("Storypoints")
axis.set_xlabel("Sprint")
for label in axis.get_xticklabels():
label.set_rotation(65)
# Save
plt.tight_layout()
save_path = save_dir.joinpath(f"{pd.to_datetime('today').date()}-creep_trend.png")
print(f"Saving image to: {save_path}")
plt.savefig(str(save_path), dpi=300, transparent=False)
def plot_burndown_trend(burndown_trend_df: pd.DataFrame, save_dir: Path) -> None:
"""
Plot and save the burndown trend.
Args:
burndown_trend_df (pd.DataFrame): The data frame containing the burndowns across
sprints
save_dir (Path): Directory to store the plot to
"""
plt.style.use("ggplot")
_, axis = plt.subplots()
# Line plots
(total,) = axis.plot(
burndown_trend_df.index,
burndown_trend_df["total_points"],
marker=".",
markersize=9,
label="Total burnt points",
)
(sprint_burn,) = axis.plot(
burndown_trend_df.index,
burndown_trend_df["sprint_start_burned"],
marker="X",
markersize=9,
label="Points from sprint planning burned",
)
# Prettifying
axis.legend(handles=[total, sprint_burn], loc="best", shadow=True)
# Prettifying
axis.set_title("Burndown Trend")
axis.set_ylabel("Storypoints")
axis.set_xlabel("Sprint")
for label in axis.get_xticklabels():
label.set_rotation(65)
# Save
plt.tight_layout()
save_path = save_dir.joinpath(
f"{pd.to_datetime('today').date()}-burndown_trend.png"
)
print(f"Saving image to: {save_path}")
plt.savefig(str(save_path), dpi=300, transparent=False)
def plot_achievement_trend(achievement_df: pd.DataFrame, save_dir: Path) -> None:
"""
Plot and save the achievement trend.
Args:
achievement_df (pd.DataFrame): The data frame containing the burndowns across sprints
save_dir (Path): Directory to store the plot to
"""
plt.style.use("ggplot")
_, axis = plt.subplots()
# Line plots
axis.plot(
achievement_df.index,
achievement_df["achievement"],
marker=".",
markersize=9,
)
# Prettifying
axis.set_title("Points from sprint planning burned")
axis.set_xlabel("Sprint")
axis.yaxis.set_major_formatter(mtick.PercentFormatter())
for label in axis.get_xticklabels():
label.set_rotation(65)
# Save
plt.tight_layout()
save_path = save_dir.joinpath(
f"{pd.to_datetime('today').date()}-achievement_trend.png"
)
print(f"Saving image to: {save_path}")
plt.savefig(str(save_path), dpi=300, transparent=False)
def plot_capacity_adjusted_burn(
burndown_trend_df: pd.DataFrame, save_dir: Path
) -> None:
"""
Plot and save the capacity adjusted burndown trend.
Args:
burndown_trend_df (pd.DataFrame): The data frame containing the burndowns across
sprints
save_dir (Path): Directory to store the plot to
"""
plt.style.use("ggplot")
_, axis = plt.subplots()
# Line plots
(adjusted,) = axis.plot(
burndown_trend_df.index,
burndown_trend_df["capacity_adjusted_burn"],
marker=".",
markersize=9,
label="Total burn/capacity",
)
(avg,) = axis.plot(
burndown_trend_df.index,
burndown_trend_df["rolling_average"],
linestyle="dashed",
label="Rolling mean (5 sprints)",
)
# Prettifying
axis.legend(handles=[adjusted, avg], loc="best", shadow=True)
# Prettifying
axis.set_title("Capacity adjusted burn trend")
axis.set_ylabel("Storypoints")
axis.set_xlabel("Sprint")
for label in axis.get_xticklabels():
label.set_rotation(65)
# Save
plt.tight_layout()
save_path = save_dir.joinpath(
f"{pd.to_datetime('today').date()}-capacity_adjusted_trend.png"
)
print(f"Saving image to: {save_path}")
plt.savefig(str(save_path), dpi=300, transparent=False)
| 30.080392
| 96
| 0.643113
| 2,019
| 15,341
| 4.697375
| 0.111937
| 0.022143
| 0.030156
| 0.018558
| 0.810523
| 0.747997
| 0.735133
| 0.71162
| 0.693695
| 0.632117
| 0
| 0.011629
| 0.237664
| 15,341
| 509
| 97
| 30.139489
| 0.799316
| 0.208005
| 0
| 0.560748
| 0
| 0
| 0.158752
| 0.055122
| 0
| 0
| 0
| 0
| 0
| 1
| 0.031153
| false
| 0
| 0.018692
| 0
| 0.049844
| 0.186916
| 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
|
2c3d6316c962683623b0adf9a1f30deb4d990649
| 893
|
py
|
Python
|
src/tinkoff/tasks.py
|
tough-dev-school/education-backend
|
7d044bf917916f494d75170c0775bfed525238a6
|
[
"MIT"
] | 62
|
2021-09-22T18:38:26.000Z
|
2022-03-29T06:09:42.000Z
|
src/tinkoff/tasks.py
|
tough-dev-school/education-backend
|
7d044bf917916f494d75170c0775bfed525238a6
|
[
"MIT"
] | 50
|
2021-09-16T07:17:31.000Z
|
2022-03-26T12:06:58.000Z
|
src/tinkoff/tasks.py
|
tough-dev-school/education-backend
|
7d044bf917916f494d75170c0775bfed525238a6
|
[
"MIT"
] | 16
|
2021-10-17T17:43:31.000Z
|
2022-03-26T11:22:45.000Z
|
import httpx
from app.celery import celery
from orders.models import Order
from tinkoff.dolyame import Dolyame, DolyameRequestException
@celery.task(
acks_late=True,
autoretry_for=[DolyameRequestException, httpx.HTTPError],
retry_kwargs={
'max_retries': 10,
'countdown': 5,
},
)
def commit_dolyame_order(order_id: int, idempotency_key: str):
dolyame = Dolyame(
order=Order.objects.get(pk=order_id),
idempotency_key=idempotency_key,
)
dolyame.commit()
@celery.task(
acks_late=True,
autoretry_for=[DolyameRequestException, httpx.HTTPError],
retry_kwargs={
'max_retries': 10,
'countdown': 5,
},
)
def refund_dolyame_order(order_id: int, idempotency_key: str):
dolyame = Dolyame(
order=Order.objects.get(pk=order_id),
idempotency_key=idempotency_key,
)
dolyame.refund()
| 22.325
| 62
| 0.684211
| 102
| 893
| 5.77451
| 0.352941
| 0.142615
| 0.11545
| 0.061121
| 0.760611
| 0.760611
| 0.760611
| 0.760611
| 0.760611
| 0.760611
| 0
| 0.008511
| 0.210526
| 893
| 39
| 63
| 22.897436
| 0.82695
| 0
| 0
| 0.5625
| 0
| 0
| 0.044793
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.0625
| false
| 0
| 0.125
| 0
| 0.1875
| 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
|
2c4387780e7663e3b21f76c3c1b55aa7c1a53e86
| 109
|
py
|
Python
|
beth/players/__init__.py
|
TheoLvs/beth
|
7331f899a020013ff3bcd0bbdf8b13f1ad173369
|
[
"MIT"
] | null | null | null |
beth/players/__init__.py
|
TheoLvs/beth
|
7331f899a020013ff3bcd0bbdf8b13f1ad173369
|
[
"MIT"
] | 19
|
2020-12-29T20:39:08.000Z
|
2021-04-09T18:11:43.000Z
|
beth/players/__init__.py
|
TheoLvs/beth
|
7331f899a020013ff3bcd0bbdf8b13f1ad173369
|
[
"MIT"
] | null | null | null |
from .ai_player import AIPlayer
from .human_player import HumanPlayer
from .random_player import RandomPlayer
| 36.333333
| 39
| 0.87156
| 15
| 109
| 6.133333
| 0.6
| 0.391304
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.100917
| 109
| 3
| 39
| 36.333333
| 0.938776
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 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
|
2c51af1ef91a386f17fb8d7622e437dcfaad9306
| 33
|
py
|
Python
|
biz/tempCodeRunnerFile.py
|
relax-space/python-learning
|
22987e20a4b0a741e1c5ed8603a952a0fc8dd4bd
|
[
"Apache-2.0"
] | null | null | null |
biz/tempCodeRunnerFile.py
|
relax-space/python-learning
|
22987e20a4b0a741e1c5ed8603a952a0fc8dd4bd
|
[
"Apache-2.0"
] | null | null | null |
biz/tempCodeRunnerFile.py
|
relax-space/python-learning
|
22987e20a4b0a741e1c5ed8603a952a0fc8dd4bd
|
[
"Apache-2.0"
] | null | null | null |
print(datetime.today().weekday())
| 33
| 33
| 0.757576
| 4
| 33
| 6.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 33
| 1
| 33
| 33
| 0.757576
| 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
|
2c6f76757057680f8196d1da69547ca190b73b98
| 59
|
py
|
Python
|
satellighte/datasets/__init__.py
|
canturan10/satellighte
|
09c906fdf8b538296c488d0c2d86c344007f8666
|
[
"MIT"
] | null | null | null |
satellighte/datasets/__init__.py
|
canturan10/satellighte
|
09c906fdf8b538296c488d0c2d86c344007f8666
|
[
"MIT"
] | null | null | null |
satellighte/datasets/__init__.py
|
canturan10/satellighte
|
09c906fdf8b538296c488d0c2d86c344007f8666
|
[
"MIT"
] | null | null | null |
from .base import BaseDataset
from .eurosat import EuroSAT
| 19.666667
| 29
| 0.830508
| 8
| 59
| 6.125
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135593
| 59
| 2
| 30
| 29.5
| 0.960784
| 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
|
2c74bb329404bb853ca0d5be48800c515ceeaf20
| 215
|
py
|
Python
|
pythonAlgorithm/dp/ksum.py
|
Sky-zzt/lintcodePractice
|
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
|
[
"MIT"
] | 1
|
2020-09-15T07:58:55.000Z
|
2020-09-15T07:58:55.000Z
|
pythonAlgorithm/dp/ksum.py
|
Sky-zzt/lintcodePractice
|
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
|
[
"MIT"
] | null | null | null |
pythonAlgorithm/dp/ksum.py
|
Sky-zzt/lintcodePractice
|
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
|
[
"MIT"
] | null | null | null |
class Solution:
"""
@param A: An integer array
@param k: A positive integer (k <= length(A))
@param target: An integer
@return: An integer
"""
def kSum(self, A, k, target):
pass
| 19.545455
| 49
| 0.562791
| 29
| 215
| 4.172414
| 0.551724
| 0.223141
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.311628
| 215
| 10
| 50
| 21.5
| 0.817568
| 0.548837
| 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 | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
2c7ac36d406be35b6cba7ac74dcfa89dbe6e4b02
| 684
|
py
|
Python
|
pystreaming/__init__.py
|
joseph-x-li/pystreaming
|
31cd0129fdedfe4b11d73ead90bf4792f343ff42
|
[
"MIT"
] | 1
|
2022-01-17T05:27:51.000Z
|
2022-01-17T05:27:51.000Z
|
pystreaming/__init__.py
|
joseph-x-li/pystreaming
|
31cd0129fdedfe4b11d73ead90bf4792f343ff42
|
[
"MIT"
] | null | null | null |
pystreaming/__init__.py
|
joseph-x-li/pystreaming
|
31cd0129fdedfe4b11d73ead90bf4792f343ff42
|
[
"MIT"
] | null | null | null |
from pystreaming.video.collect import CollectDevice
from pystreaming.video.dec import DecoderDevice
from pystreaming.video.dist import DistributorDevice
from pystreaming.video.enc import EncoderDevice
from pystreaming.video.pub import PublisherDevice
from pystreaming.video.req import RequesterDevice
from pystreaming.video.sub import SubscriberDevice
from pystreaming.stream.patterns import Streamer, Worker, Receiver
from pystreaming.stream.handlers import buffer, display, dispfps
from pystreaming.audio.patterns import AudioStreamer, AudioReceiver
from pystreaming.video.testimages import (
IMAG_S,
IMAG_M,
IMAG_L,
TEST_S,
TEST_M,
TEST_L,
loadimage,
)
| 34.2
| 67
| 0.823099
| 83
| 684
| 6.710843
| 0.445783
| 0.29623
| 0.287253
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.124269
| 684
| 19
| 68
| 36
| 0.929883
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.578947
| 0
| 0.578947
| 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
|
2ca20c052dbaad81d57fc16aed9f06e141a9606e
| 146
|
py
|
Python
|
websockets/handlers/handshake_protocol_wsh.py
|
ziransun/wpt
|
ab8f451eb39eb198584d547f5d965ef54df2a86a
|
[
"BSD-3-Clause"
] | 14,668
|
2015-01-01T01:57:10.000Z
|
2022-03-31T23:33:32.000Z
|
websockets/handlers/handshake_protocol_wsh.py
|
ziransun/wpt
|
ab8f451eb39eb198584d547f5d965ef54df2a86a
|
[
"BSD-3-Clause"
] | 7,642
|
2018-05-28T09:38:03.000Z
|
2022-03-31T20:55:48.000Z
|
websockets/handlers/handshake_protocol_wsh.py
|
ziransun/wpt
|
ab8f451eb39eb198584d547f5d965ef54df2a86a
|
[
"BSD-3-Clause"
] | 5,941
|
2015-01-02T11:32:21.000Z
|
2022-03-31T16:35:46.000Z
|
#!/usr/bin/python
def web_socket_do_extra_handshake(request):
request.ws_protocol = 'foobar'
def web_socket_transfer_data(request):
pass
| 20.857143
| 43
| 0.773973
| 21
| 146
| 5
| 0.761905
| 0.114286
| 0.228571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123288
| 146
| 7
| 44
| 20.857143
| 0.820313
| 0.109589
| 0
| 0
| 0
| 0
| 0.046154
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0.25
| 0
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
e2e57cf117402caf7304d63f5bd3b102e60cf911
| 94
|
py
|
Python
|
app/errors/__init__.py
|
michaelsatish/elphy
|
ac6c66c4b56b304dfd81c62ed5f50951ffc76779
|
[
"MIT"
] | null | null | null |
app/errors/__init__.py
|
michaelsatish/elphy
|
ac6c66c4b56b304dfd81c62ed5f50951ffc76779
|
[
"MIT"
] | null | null | null |
app/errors/__init__.py
|
michaelsatish/elphy
|
ac6c66c4b56b304dfd81c62ed5f50951ffc76779
|
[
"MIT"
] | null | null | null |
from flask import Blueprint
errors = Blueprint('errors', __name__)
from . import views
| 15.666667
| 39
| 0.723404
| 11
| 94
| 5.818182
| 0.636364
| 0.46875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.202128
| 94
| 5
| 40
| 18.8
| 0.853333
| 0
| 0
| 0
| 0
| 0
| 0.067416
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0.666667
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
e2eb33580c0f13b3ca67cff81f57feeb82dc0c6a
| 62
|
py
|
Python
|
clime_badges/version.py
|
SoftwareSystemsLaboratory/ssl-metrics-badges
|
46d1bc868452c5c59903d28899273ced17705cf0
|
[
"BSD-3-Clause"
] | null | null | null |
clime_badges/version.py
|
SoftwareSystemsLaboratory/ssl-metrics-badges
|
46d1bc868452c5c59903d28899273ced17705cf0
|
[
"BSD-3-Clause"
] | 9
|
2021-11-02T21:45:30.000Z
|
2022-02-10T23:50:39.000Z
|
clime_badges/version.py
|
SoftwareSystemsLaboratory/ssl-metrics-badges
|
46d1bc868452c5c59903d28899273ced17705cf0
|
[
"BSD-3-Clause"
] | 1
|
2021-09-28T21:53:11.000Z
|
2021-09-28T21:53:11.000Z
|
__version__ = "0.3.3"
def version():
return __version__
| 10.333333
| 22
| 0.66129
| 8
| 62
| 4.125
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.061224
| 0.209677
| 62
| 5
| 23
| 12.4
| 0.612245
| 0
| 0
| 0
| 0
| 0
| 0.080645
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
39166eea397bd849504a735cfdcce5a59a5a71f6
| 110
|
py
|
Python
|
examples/ocr/nohup_ocr.py
|
asromahin/fline
|
a34243878093b3b883607557eeaf968ef4b8acf6
|
[
"MIT"
] | 5
|
2021-07-01T08:19:51.000Z
|
2022-03-28T06:09:55.000Z
|
examples/ocr/nohup_ocr.py
|
asromahin/fline
|
a34243878093b3b883607557eeaf968ef4b8acf6
|
[
"MIT"
] | 1
|
2022-03-21T02:42:44.000Z
|
2022-03-28T06:10:57.000Z
|
examples/ocr/nohup_ocr.py
|
asromahin/fline
|
a34243878093b3b883607557eeaf968ef4b8acf6
|
[
"MIT"
] | null | null | null |
import os
import sys
os.system("nohup sh -c '" + sys.executable + f" ocr_segmentation.py > log.txt" + "' &")
| 22
| 87
| 0.645455
| 17
| 110
| 4.117647
| 0.823529
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172727
| 110
| 4
| 88
| 27.5
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0.418182
| 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
|
39541def60cf6410c21811c89350ddc88b750122
| 96
|
py
|
Python
|
activeteacher/modeling/meta_arch/__init__.py
|
HunterJ-Lin/ActiveTeacher
|
7e15c5fa118a0b5779f44811be2be41fe2f9d169
|
[
"Apache-2.0"
] | 1
|
2022-03-09T12:36:58.000Z
|
2022-03-09T12:36:58.000Z
|
activeteacher/modeling/meta_arch/__init__.py
|
HunterJ-Lin/ActiveTeacher
|
7e15c5fa118a0b5779f44811be2be41fe2f9d169
|
[
"Apache-2.0"
] | null | null | null |
activeteacher/modeling/meta_arch/__init__.py
|
HunterJ-Lin/ActiveTeacher
|
7e15c5fa118a0b5779f44811be2be41fe2f9d169
|
[
"Apache-2.0"
] | null | null | null |
from .ts_ensemble import EnsembleTSModel
from .rcnn import TwoStageTeacherStudentGeneralizedRCNN
| 48
| 55
| 0.90625
| 9
| 96
| 9.555556
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072917
| 96
| 2
| 55
| 48
| 0.966292
| 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
|
1a674069dd07762fb48d68ac3dd53596595889db
| 70
|
py
|
Python
|
sem6/sus/bigtask1/characters_clustering.py
|
abrams27/mimuw
|
ad8b01b63c05d7903aab29fd145845cf97ac32d9
|
[
"MIT"
] | 3
|
2021-10-07T18:19:37.000Z
|
2021-10-07T19:02:14.000Z
|
sem6/sus/bigtask1/characters_clustering.py
|
abrams27/mimuw
|
ad8b01b63c05d7903aab29fd145845cf97ac32d9
|
[
"MIT"
] | null | null | null |
sem6/sus/bigtask1/characters_clustering.py
|
abrams27/mimuw
|
ad8b01b63c05d7903aab29fd145845cf97ac32d9
|
[
"MIT"
] | 3
|
2021-12-02T11:09:09.000Z
|
2022-01-25T21:31:23.000Z
|
from characters_clustering import Main
main = Main()
main.execute()
| 11.666667
| 38
| 0.771429
| 9
| 70
| 5.888889
| 0.666667
| 0.45283
| 0.45283
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 70
| 5
| 39
| 14
| 0.883333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 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
|
1abe9b095dbcd9c3282a55256069b2f2972bd279
| 93
|
py
|
Python
|
Anaconda/modlue/test.py
|
duanjiefei/Python-Study
|
88e17a3eab9112a2515f09b2bcf4e032059cc28b
|
[
"Apache-2.0"
] | null | null | null |
Anaconda/modlue/test.py
|
duanjiefei/Python-Study
|
88e17a3eab9112a2515f09b2bcf4e032059cc28b
|
[
"Apache-2.0"
] | null | null | null |
Anaconda/modlue/test.py
|
duanjiefei/Python-Study
|
88e17a3eab9112a2515f09b2bcf4e032059cc28b
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
def test1():
print("test1")
def test2():
print("test2")
| 13.285714
| 23
| 0.494624
| 11
| 93
| 4.181818
| 0.636364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072464
| 0.258065
| 93
| 7
| 24
| 13.285714
| 0.594203
| 0.225806
| 0
| 0
| 0
| 0
| 0.140845
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0
| 0.5
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
46c0be0cdbfdb3bdfa3abe3e4e006a766fa0d83d
| 142
|
py
|
Python
|
response_builder/empty_builder.py
|
mbkr1992/weather-analytical-portal-rest-api
|
f4af9b308aa0ca02103bb81e7446ab641b5d7e2a
|
[
"MIT"
] | null | null | null |
response_builder/empty_builder.py
|
mbkr1992/weather-analytical-portal-rest-api
|
f4af9b308aa0ca02103bb81e7446ab641b5d7e2a
|
[
"MIT"
] | null | null | null |
response_builder/empty_builder.py
|
mbkr1992/weather-analytical-portal-rest-api
|
f4af9b308aa0ca02103bb81e7446ab641b5d7e2a
|
[
"MIT"
] | null | null | null |
from response_builder.response_builder import ResponseBuilder
class EmptyBuilder(ResponseBuilder):
def build(self, items):
pass
| 20.285714
| 61
| 0.774648
| 15
| 142
| 7.2
| 0.8
| 0.277778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.169014
| 142
| 6
| 62
| 23.666667
| 0.915254
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.25
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.