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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cf9718bfcd34cc6f8d91adf49fc578951a982322
| 18
|
py
|
Python
|
tudo/ex014.py
|
Ramon-Erik/Exercicios-Python
|
158a7f1846dd3d486aa0517fa337d46d73aab649
|
[
"MIT"
] | 1
|
2021-07-08T00:35:57.000Z
|
2021-07-08T00:35:57.000Z
|
tudo/ex014.py
|
Ramon-Erik/Exercicios-Python
|
158a7f1846dd3d486aa0517fa337d46d73aab649
|
[
"MIT"
] | null | null | null |
tudo/ex014.py
|
Ramon-Erik/Exercicios-Python
|
158a7f1846dd3d486aa0517fa337d46d73aab649
|
[
"MIT"
] | null | null | null |
#done but deleted
| 18
| 18
| 0.777778
| 3
| 18
| 4.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 18
| 1
| 18
| 18
| 0.933333
| 0.888889
| 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
|
32018ed64af14e7c539dfce89257740328373315
| 114
|
py
|
Python
|
DAY3 turtle.py
|
cleanandsimple/Python_everyday
|
658e246782caaa4e6f6f6a47bed46c7945f116bd
|
[
"MIT"
] | null | null | null |
DAY3 turtle.py
|
cleanandsimple/Python_everyday
|
658e246782caaa4e6f6f6a47bed46c7945f116bd
|
[
"MIT"
] | null | null | null |
DAY3 turtle.py
|
cleanandsimple/Python_everyday
|
658e246782caaa4e6f6f6a47bed46c7945f116bd
|
[
"MIT"
] | null | null | null |
import turtle as t
t.shape('turtle')
t.down()
t.goto(100,0)
t.up()
t.goto(0,100)
t.down()
t.goto(100,100)
| 12.666667
| 19
| 0.605263
| 25
| 114
| 2.76
| 0.4
| 0.217391
| 0.173913
| 0.289855
| 0.376812
| 0
| 0
| 0
| 0
| 0
| 0
| 0.147368
| 0.166667
| 114
| 8
| 20
| 14.25
| 0.578947
| 0
| 0
| 0.25
| 0
| 0
| 0.056604
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.125
| 0
| 0.125
| 0
| 1
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
5c63385376c58a5a6bbfec079831c2ae3cc2a61a
| 72
|
py
|
Python
|
clisops/__init__.py
|
cehbrecht/proto-lib-34e
|
ca2efce034a13802fb587eaa99a581f7a1ad9911
|
[
"BSD-2-Clause"
] | null | null | null |
clisops/__init__.py
|
cehbrecht/proto-lib-34e
|
ca2efce034a13802fb587eaa99a581f7a1ad9911
|
[
"BSD-2-Clause"
] | 11
|
2020-02-27T17:59:08.000Z
|
2020-03-23T10:48:20.000Z
|
clisops/__init__.py
|
cehbrecht/proto-lib-34e
|
ca2efce034a13802fb587eaa99a581f7a1ad9911
|
[
"BSD-2-Clause"
] | 1
|
2020-02-21T13:43:18.000Z
|
2020-02-21T13:43:18.000Z
|
"""
clisops - Climate Simulations Operations
"""
from .api import *
| 14.4
| 41
| 0.666667
| 7
| 72
| 6.857143
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.208333
| 72
| 5
| 42
| 14.4
| 0.842105
| 0.555556
| 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
|
5c6a6129636af233bee10e8c95ca60b30db5b1ed
| 87
|
py
|
Python
|
src/python/coref/train/hac/NoOpTrainer.py
|
nmonath/coref_tools
|
542659170897ad05f7612639cb918886859ae9d6
|
[
"Apache-2.0"
] | null | null | null |
src/python/coref/train/hac/NoOpTrainer.py
|
nmonath/coref_tools
|
542659170897ad05f7612639cb918886859ae9d6
|
[
"Apache-2.0"
] | null | null | null |
src/python/coref/train/hac/NoOpTrainer.py
|
nmonath/coref_tools
|
542659170897ad05f7612639cb918886859ae9d6
|
[
"Apache-2.0"
] | null | null | null |
class NoOpTrainer(object):
def train(self,batcher,dir,dev_batcher):
pass
| 14.5
| 44
| 0.678161
| 11
| 87
| 5.272727
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.218391
| 87
| 6
| 45
| 14.5
| 0.852941
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.333333
| 0
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
5c84e06226626fb066372d66465240fa63be1caf
| 454
|
py
|
Python
|
13_unit_tests/test_krug.py
|
valentinvarbanov/software_engineering_2021
|
33ece7d1e4889840621626e30f975d6cfd370b38
|
[
"MIT"
] | 7
|
2021-10-05T14:54:55.000Z
|
2022-02-16T06:07:12.000Z
|
13_unit_tests/test_krug.py
|
valentinvarbanov/software_engineering_2021
|
33ece7d1e4889840621626e30f975d6cfd370b38
|
[
"MIT"
] | 2
|
2021-12-04T10:49:46.000Z
|
2022-02-28T06:09:06.000Z
|
13_unit_tests/test_krug.py
|
valentinvarbanov/software_engineering_2021
|
33ece7d1e4889840621626e30f975d6cfd370b38
|
[
"MIT"
] | null | null | null |
from krug import is_in_circle, Position
def test_is_in_circle_inside():
assert is_in_circle(0,0) == Position.inside
assert is_in_circle(0.206, 0.9567) == Position.inside
assert is_in_circle(0.2, 0.6) == Position.inside
def test_is_in_circle_outside():
assert is_in_circle(2,0) == Position.outside
def test_is_in_circle_on():
assert is_in_circle(1,0) == Position.on
assert is_in_circle(0.291, 0.9567) == Position.on
| 25.222222
| 57
| 0.715859
| 79
| 454
| 3.78481
| 0.253165
| 0.133779
| 0.334448
| 0.32107
| 0.578595
| 0.284281
| 0.207358
| 0
| 0
| 0
| 0
| 0.074271
| 0.169604
| 454
| 18
| 58
| 25.222222
| 0.718833
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.6
| 1
| 0.3
| true
| 0
| 0.1
| 0
| 0.4
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
5cb8f856cf6c056a384e866b0266d45c7d430ddc
| 124
|
py
|
Python
|
main/admin.py
|
cweems/sendcertified
|
cc46c8aae8a4e7d0a41d8fd2f055021687b68fe2
|
[
"MIT"
] | null | null | null |
main/admin.py
|
cweems/sendcertified
|
cc46c8aae8a4e7d0a41d8fd2f055021687b68fe2
|
[
"MIT"
] | null | null | null |
main/admin.py
|
cweems/sendcertified
|
cc46c8aae8a4e7d0a41d8fd2f055021687b68fe2
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import MailOrder
admin.site.register(MailOrder)
# Register your models here.
| 20.666667
| 32
| 0.814516
| 17
| 124
| 5.941176
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.120968
| 124
| 5
| 33
| 24.8
| 0.926606
| 0.209677
| 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
|
5cd78b36d12fa287f79f504d20eba07cb1eb7546
| 153
|
py
|
Python
|
src/models/listened.py
|
eboliveira/Music-recommender
|
9d4cc15c694e628d1ffa29748a82f555d4b3e581
|
[
"MIT"
] | null | null | null |
src/models/listened.py
|
eboliveira/Music-recommender
|
9d4cc15c694e628d1ffa29748a82f555d4b3e581
|
[
"MIT"
] | null | null | null |
src/models/listened.py
|
eboliveira/Music-recommender
|
9d4cc15c694e628d1ffa29748a82f555d4b3e581
|
[
"MIT"
] | 3
|
2020-12-08T20:32:07.000Z
|
2021-03-31T18:24:44.000Z
|
class Listened:
def __init__(self, times):
self.times = times
def params_str(self):
return "{{times: '{}'}}".format(self.times)
| 21.857143
| 51
| 0.588235
| 18
| 153
| 4.722222
| 0.555556
| 0.317647
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.248366
| 153
| 6
| 52
| 25.5
| 0.73913
| 0
| 0
| 0
| 0
| 0
| 0.098039
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0
| 0.2
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 5
|
5ce1d55771c5fd1e320c5eac01fb134b9f9ab890
| 1,028
|
py
|
Python
|
righteous/__init__.py
|
pauloprea/righteous
|
41703373022a9b81f51180dcd871b9bbb78f2952
|
[
"Unlicense"
] | 1
|
2018-11-08T09:54:20.000Z
|
2018-11-08T09:54:20.000Z
|
righteous/__init__.py
|
michaeljoseph/righteous
|
ba95c574a94df85aca33397cc77b053e7f545705
|
[
"Unlicense"
] | null | null | null |
righteous/__init__.py
|
michaeljoseph/righteous
|
ba95c574a94df85aca33397cc77b053e7f545705
|
[
"Unlicense"
] | null | null | null |
__version__ = '0.5.0'
__author__ = 'Michael Joseph'
from .api.base import init, initialise, login
from .api.server import (
list_servers, find_server, server_info,
server_settings, create_and_start_server, create_server,
set_server_parameters, start_server, stop_server, delete_server
)
from .api.server_template import (
list_server_templates, server_template_info, create_server_template,
delete_server_template
)
from .api.deployment import (
find_deployment, list_deployments, deployment_info, create_deployment,
delete_deployment, duplicate_deployment
)
hush_pyflakes = (
init, initialise, login, list_servers, find_server, server_info,
server_settings, create_and_start_server, create_server,
set_server_parameters, start_server, stop_server, delete_server,
list_server_templates, server_template_info, create_server_template,
delete_server_template,
find_deployment, list_deployments, deployment_info, create_deployment,
delete_deployment, duplicate_deployment
)
| 36.714286
| 74
| 0.80642
| 126
| 1,028
| 6.071429
| 0.261905
| 0.128105
| 0.049673
| 0.054902
| 0.784314
| 0.784314
| 0.784314
| 0.784314
| 0.784314
| 0.784314
| 0
| 0.003352
| 0.129377
| 1,028
| 27
| 75
| 38.074074
| 0.851397
| 0
| 0
| 0.32
| 0
| 0
| 0.018482
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.16
| 0
| 0.16
| 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
|
7a381d21e3188a6593290781bbfc42dbdb065d24
| 21
|
py
|
Python
|
customblog/models.py
|
starshipfactory/sfblog
|
f62a712ab02f00c9d19b87797492506f51cab321
|
[
"BSD-3-Clause"
] | 1
|
2017-09-03T18:13:43.000Z
|
2017-09-03T18:13:43.000Z
|
customblog/models.py
|
starshipfactory/sfblog
|
f62a712ab02f00c9d19b87797492506f51cab321
|
[
"BSD-3-Clause"
] | null | null | null |
customblog/models.py
|
starshipfactory/sfblog
|
f62a712ab02f00c9d19b87797492506f51cab321
|
[
"BSD-3-Clause"
] | null | null | null |
# see blog_models.py
| 10.5
| 20
| 0.761905
| 4
| 21
| 3.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 21
| 1
| 21
| 21
| 0.833333
| 0.857143
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
7a6615a1de0c57b201ecddbe8b2168099d0bf6aa
| 332
|
py
|
Python
|
hazelcast/__init__.py
|
buraksezer/hazelcast-python-client
|
4cc593ef7de994bd84fdac8331b81b309cce30a0
|
[
"Apache-2.0"
] | 3
|
2020-05-01T15:01:54.000Z
|
2021-01-27T14:51:45.000Z
|
hazelcast/__init__.py
|
buraksezer/hazelcast-python-client
|
4cc593ef7de994bd84fdac8331b81b309cce30a0
|
[
"Apache-2.0"
] | null | null | null |
hazelcast/__init__.py
|
buraksezer/hazelcast-python-client
|
4cc593ef7de994bd84fdac8331b81b309cce30a0
|
[
"Apache-2.0"
] | 1
|
2020-12-01T20:00:35.000Z
|
2020-12-01T20:00:35.000Z
|
from hazelcast.client import HazelcastClient
from hazelcast.config import ClientConfig, ClientNetworkConfig, SerializationConfig, GroupConfig, SSLConfig, \
ClientCloudConfig, FlakeIdGeneratorConfig
from hazelcast.version import CLIENT_VERSION_INFO as __version_info__
from hazelcast.version import CLIENT_VERSION as __version__
| 55.333333
| 110
| 0.873494
| 34
| 332
| 8.176471
| 0.470588
| 0.18705
| 0.143885
| 0.18705
| 0.280576
| 0.280576
| 0
| 0
| 0
| 0
| 0
| 0
| 0.093373
| 332
| 5
| 111
| 66.4
| 0.923588
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.8
| 0
| 0.8
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
7ac1cc0d983f0772da6bbd000829a832e008bcf0
| 12,201
|
py
|
Python
|
aiorocksdb/db.py
|
xdusongwei/aiorocksdb
|
b00231b1709f9616edcaf7d596f603158b7182a0
|
[
"MIT"
] | null | null | null |
aiorocksdb/db.py
|
xdusongwei/aiorocksdb
|
b00231b1709f9616edcaf7d596f603158b7182a0
|
[
"MIT"
] | 1
|
2020-07-01T16:12:36.000Z
|
2020-07-01T16:12:36.000Z
|
aiorocksdb/db.py
|
xdusongwei/aiorocksdb
|
b00231b1709f9616edcaf7d596f603158b7182a0
|
[
"MIT"
] | null | null | null |
import asyncio
import aiorocksdb.rocksdbapi
from aiorocksdb.meta import *
from aiorocksdb.batch import *
from aiorocksdb.key_lock import *
from aiorocksdb.list_command import ListCommand
from aiorocksdb.skip_list_command import SkipListCommand
class RocksDb:
def __init__(self, path: str, create_if_missing: bool = True, use_executor: bool = False, *, loop=None):
self._db = aiorocksdb.rocksdbapi.RocksDb(path, create_if_missing)
self._loop = loop or asyncio.get_event_loop()
self._key_lock = KeyLock()
self.use_executor = use_executor
async def __aenter__(self) -> 'RocksDb':
await self.open()
return self
async def __aexit__(self, exc_type, exc_val, exc_tb):
await self.close()
def acquire(self, key):
return self._key_lock.acquire(key)
async def open(self):
def _open(_db):
is_ok = _db.open()
return is_ok
if self.use_executor:
result = await self._loop.run_in_executor(None, _open, self._db)
else:
result = _open(self._db)
return result
async def close(self):
def _close(_db):
_db.close()
if self._db:
await self._loop.run_in_executor(None, _close, self._db)
self._db = None
async def get(self, key: str):
def _get(_db):
value = _db.get(key)
return value
if self.use_executor:
result = await self._loop.run_in_executor(None, _get, self._db)
else:
result = _get(self._db)
return result
async def put(self, key: str, value: bytes):
def _put(_db):
is_ok = _db.put(key, value)
return is_ok
if self.use_executor:
result = await self._loop.run_in_executor(None, _put, self._db)
else:
result = _put(self._db)
return result
async def delete(self, key: str):
def _delete(_db):
is_ok = _db.delete(key)
return is_ok
if self.use_executor:
result = await self._loop.run_in_executor(None, _delete, self._db)
else:
result = _delete(self._db)
return result
async def execute(self, batch: Batch):
def _execute(_db):
is_ok = _db.execute(batch.batch)
return is_ok
result = await self._loop.run_in_executor(None, _execute, self._db)
return result
def batch_context(self):
context = BatchContext(self)
return context
async def lpush(self, key: str, value: bytes):
async with self._key_lock.acquire(key):
key_meta = await KeyMeta.find_meta(key, self)
if key_meta and key_meta.key_type != KeyTypeEnum.LIST:
raise ValueError(f'key {key} type is not LIST')
if not key_meta:
key_meta = KeyMeta()
key_meta.key = key
key_meta.key_type = KeyTypeEnum.LIST
async with ListCommand(key, key_meta, self) as command:
await command.insert(0, value)
async def rpush(self, key: str, value: bytes):
async with self._key_lock.acquire(key):
key_meta = await KeyMeta.find_meta(key, self)
if key_meta and key_meta.key_type != KeyTypeEnum.LIST:
raise ValueError(f'key {key} type is not LIST')
if not key_meta:
key_meta = KeyMeta()
key_meta.key = key
key_meta.key_type = KeyTypeEnum.LIST
async with ListCommand(key, key_meta, self) as command:
await command.insert(-1, value)
async def lpop(self, key: str):
async with self._key_lock.acquire(key):
key_meta = await KeyMeta.find_meta(key, self)
if key_meta and key_meta.key_type != KeyTypeEnum.LIST:
raise ValueError(f'key {key} type is not LIST')
if not key_meta:
raise ValueError(f'key {key} not exists')
async with ListCommand(key, key_meta, self) as command:
value = await command.remove_by_index(0)
return value
async def rpop(self, key: str):
async with self._key_lock.acquire(key):
key_meta = await KeyMeta.find_meta(key, self)
if key_meta and key_meta.key_type != KeyTypeEnum.LIST:
raise ValueError(f'key {key} type is not LIST')
if not key_meta:
raise ValueError(f'key {key} not exists')
async with ListCommand(key, key_meta, self) as command:
value = await command.remove_by_index(-1)
return value
async def lindex(self, key: str, index: int):
async with self._key_lock.acquire(key):
key_meta = await KeyMeta.find_meta(key, self)
if key_meta and key_meta.key_type != KeyTypeEnum.LIST:
raise ValueError(f'key {key} type is not LIST')
if not key_meta:
raise ValueError(f'key {key} not exists')
async with ListCommand(key, key_meta, self) as command:
value = await command.index_of(index)
return value
async def llen(self, key: str) -> int:
async with self._key_lock.acquire(key):
key_meta = await KeyMeta.find_meta(key, self)
if key_meta and key_meta.key_type != KeyTypeEnum.LIST:
raise ValueError(f'key {key} type is not LIST')
if not key_meta:
return 0
return key_meta.length
async def lset(self, key: str, index: int, value: bytes):
async with self._key_lock.acquire(key):
key_meta = await KeyMeta.find_meta(key, self)
if key_meta and key_meta.key_type != KeyTypeEnum.LIST:
raise ValueError(f'key {key} type is not LIST')
async with ListCommand(key, key_meta, self) as command:
await command.set(index, value)
async def sadd(self, key: str, member: str):
async with self._key_lock.acquire(key):
key_meta = await KeyMeta.find_meta(key, self)
if key_meta and key_meta.key_type != KeyTypeEnum.ORDER_LIST_SET:
raise ValueError(f'key {key} type is not SET')
if not key_meta:
key_meta = KeyMeta()
key_meta.key = key
key_meta.key_type = KeyTypeEnum.ORDER_LIST_SET
key_meta.head_key = list()
key_meta.tail_key = list()
key_meta.seq = ''
async with SkipListCommand(key, key_meta, self) as command:
member = await command.insert(member, None)
return member
async def sismember(self, key: str, member: str):
async with self._key_lock.acquire(key):
key_meta = await KeyMeta.find_meta(key, self)
if key_meta and key_meta.key_type != KeyTypeEnum.ORDER_LIST_SET:
raise ValueError(f'key {key} type is not SET')
if not key_meta:
raise ValueError(f'key {key} not exists')
async with SkipListCommand(key, key_meta, self) as command:
exists = await command.find_value_by_score(member)
return bool(exists)
async def smembers(self, key: str):
async with self._key_lock.acquire(key):
key_meta = await KeyMeta.find_meta(key, self)
if key_meta and key_meta.key_type != KeyTypeEnum.ORDER_LIST_SET:
raise ValueError(f'key {key} type is not SET')
if not key_meta:
raise ValueError(f'key {key} not exists')
async with SkipListCommand(key, key_meta, self) as command:
score_list = await command.all_score()
return score_list
async def srem(self, key: str, member: str):
async with self._key_lock.acquire(key):
key_meta = await KeyMeta.find_meta(key, self)
if key_meta and key_meta.key_type != KeyTypeEnum.ORDER_LIST_SET:
raise ValueError(f'key {key} type is not SET')
if not key_meta:
raise ValueError(f'key {key} not exists')
async with SkipListCommand(key, key_meta, self) as command:
exists = await command.remove_by_score(member)
return exists
async def delete_key(self, key: str):
async with self._key_lock.acquire(key):
key_meta = await KeyMeta.find_meta(key, self)
if not key_meta:
return False
if key_meta.key_type == KeyTypeEnum.LIST:
async with ListCommand(key, key_meta, self) as command:
await command.deconstruct()
return True
elif key_meta.key_type == KeyTypeEnum.ORDER_LIST:
async with SkipListCommand(key, key_meta, self) as command:
await command.deconstruct()
elif key_meta.key_type == KeyTypeEnum.ORDER_LIST_SET:
async with SkipListCommand(key, key_meta, self) as command:
await command.deconstruct()
elif key_meta.key_type == KeyTypeEnum.ORDER_LIST_ZSET:
async with SkipListCommand(key, key_meta, self) as command:
await command.deconstruct()
else:
return False
async def zadd(self, key: str, score: int, member: str):
async with self._key_lock.acquire(key):
key_meta = await KeyMeta.find_meta(key, self)
if key_meta and key_meta.key_type != KeyTypeEnum.ORDER_LIST_ZSET:
raise ValueError(f'key {key} type is not ZSET')
if not key_meta:
key_meta = KeyMeta()
key_meta.key = key
key_meta.key_type = KeyTypeEnum.ORDER_LIST_ZSET
key_meta.head_key = list()
key_meta.tail_key = list()
key_meta.seq = (0, '')
async with SkipListCommand(key, key_meta, self) as command:
exists = await command.find_value_by_score(member)
if exists:
await command.remove_by_score(exists)
score = await command.insert((score, member), None)
return score
async def zcard(self, key: str):
async with self._key_lock.acquire(key):
key_meta = await KeyMeta.find_meta(key, self)
if key_meta and key_meta.key_type != KeyTypeEnum.ORDER_LIST_ZSET:
raise ValueError(f'key {key} type is not ZSET')
if not key_meta:
return 0
return key_meta.length
async def zrem(self, key: str, member: str):
async with self._key_lock.acquire(key):
key_meta = await KeyMeta.find_meta(key, self)
if key_meta and key_meta.key_type != KeyTypeEnum.ORDER_LIST_ZSET:
raise ValueError(f'key {key} type is not ZSET')
if not key_meta:
raise ValueError(f'key {key} not exists')
value = False
async with SkipListCommand(key, key_meta, self) as command:
score = await command.find_value_by_score(member)
if score:
value = await command.remove_by_score(score)
return value
async def zscore(self, key: str, member: str):
async with self._key_lock.acquire(key):
key_meta = await KeyMeta.find_meta(key, self)
if key_meta and key_meta.key_type != KeyTypeEnum.ORDER_LIST_ZSET:
raise ValueError(f'key {key} type is not ZSET')
if not key_meta:
key_meta = KeyMeta()
key_meta.key = key
key_meta.key_type = KeyTypeEnum.ORDER_LIST
key_meta.head_key = list()
key_meta.tail_key = list()
value = False
async with SkipListCommand(key, key_meta, self) as command:
score = await command.find_value_by_score(member)
if score:
value = score[0]
return value
__all__ = ['RocksDb', ]
| 41.219595
| 108
| 0.585608
| 1,566
| 12,201
| 4.340996
| 0.068327
| 0.110179
| 0.055899
| 0.049426
| 0.77361
| 0.756693
| 0.734922
| 0.730509
| 0.71727
| 0.708738
| 0
| 0.000983
| 0.332842
| 12,201
| 295
| 109
| 41.359322
| 0.834152
| 0
| 0
| 0.619231
| 0
| 0
| 0.044259
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.034615
| false
| 0
| 0.026923
| 0.003846
| 0.180769
| 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
|
8f86da618bb8a5bee59f92ca013403e2d3fd2338
| 3,063
|
py
|
Python
|
src/zvt/samples/stock_traders.py
|
vishalbelsare/zvt
|
d55051147274c0a4157f08ec60908c781a323c8f
|
[
"MIT"
] | 2,032
|
2019-04-16T14:10:32.000Z
|
2022-03-31T12:40:13.000Z
|
src/zvt/samples/stock_traders.py
|
vishalbelsare/zvt
|
d55051147274c0a4157f08ec60908c781a323c8f
|
[
"MIT"
] | 162
|
2019-05-07T09:57:46.000Z
|
2022-03-25T16:23:08.000Z
|
src/zvt/samples/stock_traders.py
|
vishalbelsare/zvt
|
d55051147274c0a4157f08ec60908c781a323c8f
|
[
"MIT"
] | 755
|
2019-04-30T10:25:16.000Z
|
2022-03-29T17:50:49.000Z
|
# -*- coding: utf-8 -*-
from zvt.contract import IntervalLevel
from zvt.factors.target_selector import TargetSelector
from zvt.factors.ma.ma_factor import CrossMaFactor
from zvt.factors import BullFactor
from zvt.trader.trader import StockTrader
class MyMaTrader(StockTrader):
def init_selectors(
self, entity_ids, entity_schema, exchanges, codes, start_timestamp, end_timestamp, adjust_type=None
):
myselector = TargetSelector(
entity_ids=entity_ids,
entity_schema=entity_schema,
exchanges=exchanges,
codes=codes,
start_timestamp=start_timestamp,
end_timestamp=end_timestamp,
provider="joinquant",
)
myselector.add_factor(
CrossMaFactor(
entity_ids=entity_ids,
entity_schema=entity_schema,
exchanges=exchanges,
codes=codes,
start_timestamp=start_timestamp,
end_timestamp=end_timestamp,
windows=[5, 10],
need_persist=False,
adjust_type=adjust_type,
)
)
self.selectors.append(myselector)
class MyBullTrader(StockTrader):
def init_selectors(
self, entity_ids, entity_schema, exchanges, codes, start_timestamp, end_timestamp, adjust_type=None
):
myselector = TargetSelector(
entity_ids=entity_ids,
entity_schema=entity_schema,
exchanges=exchanges,
codes=codes,
start_timestamp=start_timestamp,
end_timestamp=end_timestamp,
provider="joinquant",
)
myselector.add_factor(
BullFactor(
entity_ids=entity_ids,
entity_schema=entity_schema,
exchanges=exchanges,
codes=codes,
start_timestamp=start_timestamp,
end_timestamp=end_timestamp,
adjust_type=adjust_type,
)
)
self.selectors.append(myselector)
if __name__ == "__main__":
# single stock with cross ma factor
MyMaTrader(
codes=["000338"],
level=IntervalLevel.LEVEL_1DAY,
start_timestamp="2018-01-01",
end_timestamp="2019-06-30",
trader_name="000338_ma_trader",
).run()
# single stock with bull factor
# MyBullTrader(codes=['000338'], level=IntervalLevel.LEVEL_1DAY, start_timestamp='2018-01-01',
# end_timestamp='2019-06-30', trader_name='000338_bull_trader').run()
# multiple stocks with cross ma factor
# MyMaTrader(codes=SAMPLE_STOCK_CODES, level=IntervalLevel.LEVEL_1DAY, start_timestamp='2018-01-01',
# end_timestamp='2019-06-30', trader_name='sample_stocks_ma_trader').run()
# multiple stocks with bull factor
# MyBullTrader(codes=SAMPLE_STOCK_CODES, level=IntervalLevel.LEVEL_1DAY, start_timestamp='2018-01-01',
# end_timestamp='2019-06-30', trader_name='sample_stocks_bull_trader').run()
| 34.033333
| 107
| 0.627163
| 315
| 3,063
| 5.809524
| 0.212698
| 0.107104
| 0.081967
| 0.068852
| 0.812022
| 0.75847
| 0.728962
| 0.728962
| 0.67541
| 0.67541
| 0
| 0.043996
| 0.287627
| 3,063
| 89
| 108
| 34.41573
| 0.794684
| 0.229187
| 0
| 0.615385
| 0
| 0
| 0.028948
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.030769
| false
| 0
| 0.076923
| 0
| 0.138462
| 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
|
8f8e4edc2621e057949570fc1a41742a3391df52
| 97
|
py
|
Python
|
{{ cookiecutter.project_slug }}/config/server/production.py
|
gnufede/cookiecutter-drf
|
c395f1d4b9b8e62a47e9e2522966614883774722
|
[
"MIT"
] | 37
|
2019-05-27T22:13:23.000Z
|
2022-02-16T21:43:50.000Z
|
{{ cookiecutter.project_slug }}/config/server/production.py
|
gnufede/cookiecutter-drf
|
c395f1d4b9b8e62a47e9e2522966614883774722
|
[
"MIT"
] | 7
|
2020-02-12T00:25:50.000Z
|
2022-02-10T08:34:57.000Z
|
{{ cookiecutter.project_slug }}/config/server/production.py
|
gnufede/cookiecutter-drf
|
c395f1d4b9b8e62a47e9e2522966614883774722
|
[
"MIT"
] | 9
|
2020-01-29T11:38:21.000Z
|
2021-05-14T18:31:09.000Z
|
from .base import BaseUvicornWorker
class ProductionUvicornWorker(BaseUvicornWorker):
pass
| 16.166667
| 49
| 0.824742
| 8
| 97
| 10
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134021
| 97
| 5
| 50
| 19.4
| 0.952381
| 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
|
64fea4b8fda9b826f26d840c80ff80beb93f522c
| 116
|
py
|
Python
|
test.py
|
haliphax/supybot-guiltbyassociation
|
7a9c2773a1ed7d37491aa67ea6db7c6a46883db4
|
[
"MIT"
] | null | null | null |
test.py
|
haliphax/supybot-guiltbyassociation
|
7a9c2773a1ed7d37491aa67ea6db7c6a46883db4
|
[
"MIT"
] | 1
|
2019-03-20T16:49:56.000Z
|
2019-03-20T17:34:29.000Z
|
test.py
|
haliphax/supybot-guiltbyassociation
|
7a9c2773a1ed7d37491aa67ea6db7c6a46883db4
|
[
"MIT"
] | null | null | null |
from supybot.test import *
class GuiltByAssociationTestCase(PluginTestCase):
plugins = ('GuiltByAssociation',)
| 23.2
| 49
| 0.784483
| 9
| 116
| 10.111111
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12069
| 116
| 4
| 50
| 29
| 0.892157
| 0
| 0
| 0
| 0
| 0
| 0.155172
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
8f722977267f954b500905b6d47830f755ec6e3b
| 357
|
py
|
Python
|
Redstone Structure Generator Tool/structures/properinglish19_decoder/connections/no_connection.py
|
n00b-asaurus/LUTBuilder
|
d5abb21bb1998ddf83feb80194ec1e7e3d73147d
|
[
"MIT"
] | 12
|
2021-01-21T19:45:24.000Z
|
2022-02-28T03:03:17.000Z
|
Redstone Structure Generator Tool/structures/properinglish19_decoder/connections/no_connection.py
|
n00b-asaurus/LUTBuilder
|
d5abb21bb1998ddf83feb80194ec1e7e3d73147d
|
[
"MIT"
] | 20
|
2020-05-24T23:22:14.000Z
|
2022-01-13T02:54:55.000Z
|
Redstone Structure Generator Tool/structures/properinglish19_decoder/connections/no_connection.py
|
n00b-asaurus/LUTBuilder
|
d5abb21bb1998ddf83feb80194ec1e7e3d73147d
|
[
"MIT"
] | 3
|
2021-03-07T23:38:02.000Z
|
2021-03-08T13:22:54.000Z
|
from structures.properinglish19_decoder.connection import Connection
from structures.properinglish19_decoder.build_handlers.single_nc import SingleNC
class NoConnection(Connection):
def __init__(self, x, z):
self.x = x
self.z = z
self.build_handler = SingleNC()
def type(self):
return "no connection with {}".format(self.build_handler.type())
| 32.454545
| 80
| 0.778711
| 47
| 357
| 5.702128
| 0.510638
| 0.104478
| 0.216418
| 0.268657
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.01278
| 0.123249
| 357
| 11
| 81
| 32.454545
| 0.84345
| 0
| 0
| 0
| 0
| 0
| 0.058659
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.222222
| 0.111111
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
8f75e1aadecdbd36ba241b5c09063e5d087089ac
| 148
|
py
|
Python
|
__init__.py
|
chughtaimh/chughtaimh-pythonanywhere
|
b4364ec38e3aa26dc8995ec27f16fc57dc1e55e0
|
[
"MIT"
] | null | null | null |
__init__.py
|
chughtaimh/chughtaimh-pythonanywhere
|
b4364ec38e3aa26dc8995ec27f16fc57dc1e55e0
|
[
"MIT"
] | null | null | null |
__init__.py
|
chughtaimh/chughtaimh-pythonanywhere
|
b4364ec38e3aa26dc8995ec27f16fc57dc1e55e0
|
[
"MIT"
] | null | null | null |
import os
import sys
CURRENT_DIRECTORY = os.path.dirname(os.path.realpath(__file__))
sys.path.append(CURRENT_DIRECTORY + '/')
from errors import *
| 21.142857
| 63
| 0.777027
| 21
| 148
| 5.190476
| 0.571429
| 0.293578
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101351
| 148
| 7
| 64
| 21.142857
| 0.819549
| 0
| 0
| 0
| 0
| 0
| 0.006711
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.6
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
56aa840584f25c4050d38903c8aab73fd6dbe7fb
| 48
|
py
|
Python
|
NEAT/test.py
|
AlreadyAsleep/NEATForPython3
|
4838f966b1fa475746ca9d73909b5a5dfae6f22b
|
[
"MIT"
] | null | null | null |
NEAT/test.py
|
AlreadyAsleep/NEATForPython3
|
4838f966b1fa475746ca9d73909b5a5dfae6f22b
|
[
"MIT"
] | null | null | null |
NEAT/test.py
|
AlreadyAsleep/NEATForPython3
|
4838f966b1fa475746ca9d73909b5a5dfae6f22b
|
[
"MIT"
] | null | null | null |
import GeneticOperation as go
go.NEAT(100, 2)
| 9.6
| 29
| 0.75
| 8
| 48
| 4.5
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 0.166667
| 48
| 5
| 30
| 9.6
| 0.8
| 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
|
56c9e335fd46c6254b40b1e1835812b6b33f0980
| 98
|
py
|
Python
|
components/server/src/routes/internal/__init__.py
|
kargaranamir/quality-time
|
1c427c61bee9d31c3526f0a01be2218a7e167c23
|
[
"Apache-2.0"
] | 33
|
2016-01-20T07:35:48.000Z
|
2022-03-14T09:20:51.000Z
|
components/server/src/routes/internal/__init__.py
|
kargaranamir/quality-time
|
1c427c61bee9d31c3526f0a01be2218a7e167c23
|
[
"Apache-2.0"
] | 2,410
|
2016-01-22T18:13:01.000Z
|
2022-03-31T16:57:34.000Z
|
components/server/src/routes/internal/__init__.py
|
kargaranamir/quality-time
|
1c427c61bee9d31c3526f0a01be2218a7e167c23
|
[
"Apache-2.0"
] | 21
|
2016-01-16T11:49:23.000Z
|
2022-01-14T21:53:22.000Z
|
"""Internal routes."""
from .measurement import post_measurement
from .metric import get_metrics
| 19.6
| 41
| 0.795918
| 12
| 98
| 6.333333
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.112245
| 98
| 4
| 42
| 24.5
| 0.873563
| 0.163265
| 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
|
56e1a2f86dc5b96eb0417a19f6836d45b73cf875
| 34
|
py
|
Python
|
native/libcst/tests/fixtures/just_a_comment_without_nl.py
|
jschavesr/LibCST
|
e5ab7b90b4c9cd1f46e5b875ad317411abf48298
|
[
"Apache-2.0"
] | 880
|
2019-08-07T21:21:11.000Z
|
2022-03-29T06:25:34.000Z
|
native/libcst/tests/fixtures/just_a_comment_without_nl.py
|
jschavesr/LibCST
|
e5ab7b90b4c9cd1f46e5b875ad317411abf48298
|
[
"Apache-2.0"
] | 537
|
2019-08-08T18:34:30.000Z
|
2022-03-30T16:46:14.000Z
|
native/libcst/tests/fixtures/just_a_comment_without_nl.py
|
jschavesr/LibCST
|
e5ab7b90b4c9cd1f46e5b875ad317411abf48298
|
[
"Apache-2.0"
] | 108
|
2019-08-08T00:17:21.000Z
|
2022-03-24T20:53:31.000Z
|
# just a comment without a newline
| 34
| 34
| 0.794118
| 6
| 34
| 4.5
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.176471
| 34
| 1
| 34
| 34
| 0.964286
| 0.941176
| 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
|
7123053c1049379c6ded1719e4df414f83493608
| 551
|
py
|
Python
|
src/util/trayErrors.py
|
tschalch/pyTray
|
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
|
[
"BSD-3-Clause"
] | 1
|
2018-06-15T09:42:22.000Z
|
2018-06-15T09:42:22.000Z
|
src/util/trayErrors.py
|
tschalch/pyTray
|
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
|
[
"BSD-3-Clause"
] | null | null | null |
src/util/trayErrors.py
|
tschalch/pyTray
|
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
|
[
"BSD-3-Clause"
] | null | null | null |
class TrayError(Exception):
def __init__(self, value, caller=None):
self.value = value
self.caller = caller
def __str__(self):
return repr(self.value)
class NoObservationError(TrayError):
pass
class NoUndoError(TrayError):
pass
class PropertyNotFoundError(TrayError):
pass
class PropertyNotFoundError(TrayError):
pass
class DoubleEmptyRecordError(TrayError):
pass
class NoZipFileError(TrayError):
pass
class BurnInBackgroundError(TrayError):
pass
| 20.407407
| 44
| 0.671506
| 50
| 551
| 7.24
| 0.38
| 0.251381
| 0.298343
| 0.21547
| 0.265193
| 0.265193
| 0.265193
| 0
| 0
| 0
| 0
| 0
| 0.255898
| 551
| 27
| 45
| 20.407407
| 0.882927
| 0
| 0
| 0.45
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.1
| false
| 0.35
| 0
| 0.05
| 0.55
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
7138200afbcc77d8627a572ebfc54bbabb74d8d8
| 185
|
py
|
Python
|
modes/final_frontier/code/final_frontier.py
|
GabeKnuth/STTNG
|
d9de356a72ca3850cc710e4c413a932450062a8a
|
[
"MIT"
] | null | null | null |
modes/final_frontier/code/final_frontier.py
|
GabeKnuth/STTNG
|
d9de356a72ca3850cc710e4c413a932450062a8a
|
[
"MIT"
] | null | null | null |
modes/final_frontier/code/final_frontier.py
|
GabeKnuth/STTNG
|
d9de356a72ca3850cc710e4c413a932450062a8a
|
[
"MIT"
] | null | null | null |
from mpf.system.modes import Mode
class FinalFrontier(Mode):
def mode_init(self):
pass
def mode_stop(self):
self.machine.events.post('final_frontier_complete')
| 23.125
| 59
| 0.702703
| 25
| 185
| 5.04
| 0.76
| 0.111111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 185
| 8
| 59
| 23.125
| 0.851351
| 0
| 0
| 0
| 0
| 0
| 0.123656
| 0.123656
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.166667
| 0.166667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
853feaa2057266f2f35979ca60403717a4cfb4cf
| 24
|
py
|
Python
|
msp/data_structures/box_names.py
|
LukeARohl/MSP-Python3
|
8b3004e70f931c03add8dc5c5ac0769308c20607
|
[
"MIT"
] | 1
|
2020-07-21T09:18:07.000Z
|
2020-07-21T09:18:07.000Z
|
msp/data_structures/box_names.py
|
LukeARohl/MSP-Python3
|
8b3004e70f931c03add8dc5c5ac0769308c20607
|
[
"MIT"
] | 1
|
2020-11-15T12:42:57.000Z
|
2020-11-15T12:42:57.000Z
|
msp/data_structures/box_names.py
|
LukeARohl/MSP-Python3
|
8b3004e70f931c03add8dc5c5ac0769308c20607
|
[
"MIT"
] | null | null | null |
class BoxName:
pass
| 8
| 14
| 0.666667
| 3
| 24
| 5.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.291667
| 24
| 3
| 15
| 8
| 0.941176
| 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
|
8578c1d2556dc13baa2f146e02fa0d4339647dfa
| 196
|
py
|
Python
|
tests/test_helpers.py
|
Bibiko/appconfig
|
356f8be5df2750dcc2faebe65adae17e550a3afe
|
[
"Apache-2.0"
] | null | null | null |
tests/test_helpers.py
|
Bibiko/appconfig
|
356f8be5df2750dcc2faebe65adae17e550a3afe
|
[
"Apache-2.0"
] | null | null | null |
tests/test_helpers.py
|
Bibiko/appconfig
|
356f8be5df2750dcc2faebe65adae17e550a3afe
|
[
"Apache-2.0"
] | null | null | null |
from appconfig import helpers
def test_getpwd(mocker):
mocker.patch('appconfig.helpers.getpass', mocker.Mock(getpass=mocker.Mock(return_value='abc')))
assert helpers.getpwd('x') == 'abc'
| 32.666667
| 99
| 0.739796
| 26
| 196
| 5.5
| 0.615385
| 0.181818
| 0.237762
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107143
| 196
| 5
| 100
| 39.2
| 0.817143
| 0
| 0
| 0
| 0
| 0
| 0.163265
| 0.127551
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.25
| false
| 0.25
| 0.25
| 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
|
857ffdfbb4f0c4416e71d0af3e082e371fb6d09b
| 130
|
py
|
Python
|
cached_httpbl/tests/__init__.py
|
dlancer/django-cached-httpbl
|
b32106f4283f9605122255f2c9bfbd3bff465fa5
|
[
"BSD-3-Clause"
] | null | null | null |
cached_httpbl/tests/__init__.py
|
dlancer/django-cached-httpbl
|
b32106f4283f9605122255f2c9bfbd3bff465fa5
|
[
"BSD-3-Clause"
] | null | null | null |
cached_httpbl/tests/__init__.py
|
dlancer/django-cached-httpbl
|
b32106f4283f9605122255f2c9bfbd3bff465fa5
|
[
"BSD-3-Clause"
] | null | null | null |
from cached_httpbl.tests.test_cached_httpbl import *
__test__ = {'cached_httpbl.tests.TestCachedHTTPBL': ['test_cached_httpbl']}
| 32.5
| 75
| 0.815385
| 16
| 130
| 6
| 0.4375
| 0.5
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.069231
| 130
| 3
| 76
| 43.333333
| 0.793388
| 0
| 0
| 0
| 0
| 0
| 0.415385
| 0.276923
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
858dfc4ccd18a844efe5e6d876dbc73153c3d6a8
| 43
|
py
|
Python
|
gaphor/tests/__init__.py
|
MarianelaSena/gaphor
|
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
|
[
"Apache-2.0"
] | 1
|
2020-11-27T12:39:15.000Z
|
2020-11-27T12:39:15.000Z
|
gaphor/tests/__init__.py
|
MarianelaSena/gaphor
|
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
|
[
"Apache-2.0"
] | null | null | null |
gaphor/tests/__init__.py
|
MarianelaSena/gaphor
|
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
|
[
"Apache-2.0"
] | 3
|
2020-01-23T14:13:59.000Z
|
2020-02-18T18:21:47.000Z
|
from gaphor.tests.testcase import TestCase
| 21.5
| 42
| 0.860465
| 6
| 43
| 6.166667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.093023
| 43
| 1
| 43
| 43
| 0.948718
| 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
|
85aa41e924134bc2e75d1cd5ca000b4f6e7a313d
| 29
|
py
|
Python
|
akv/__init__.py
|
casperlehmann/akv
|
bc74724e8dd29aea9cbae02c07c5ad123a760631
|
[
"MIT"
] | 1
|
2021-05-11T11:04:27.000Z
|
2021-05-11T11:04:27.000Z
|
akv/__init__.py
|
casperlehmann/akv
|
bc74724e8dd29aea9cbae02c07c5ad123a760631
|
[
"MIT"
] | null | null | null |
akv/__init__.py
|
casperlehmann/akv
|
bc74724e8dd29aea9cbae02c07c5ad123a760631
|
[
"MIT"
] | null | null | null |
from .secrets import Secrets
| 14.5
| 28
| 0.827586
| 4
| 29
| 6
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 29
| 1
| 29
| 29
| 0.96
| 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
|
a416959e2ec60b1d9b6c3989cf4f26ed1ac8bd25
| 205
|
py
|
Python
|
Trakttv.bundle/Contents/Code/core/__init__.py
|
disrupted/Trakttv.bundle
|
24712216c71f3b22fd58cb5dd89dad5bb798ed60
|
[
"RSA-MD"
] | 1,346
|
2015-01-01T14:52:24.000Z
|
2022-03-28T12:50:48.000Z
|
Trakttv.bundle/Contents/Code/core/__init__.py
|
alcroito/Plex-Trakt-Scrobbler
|
4f83fb0860dcb91f860d7c11bc7df568913c82a6
|
[
"RSA-MD"
] | 474
|
2015-01-01T10:27:46.000Z
|
2022-03-21T12:26:16.000Z
|
Trakttv.bundle/Contents/Code/core/__init__.py
|
alcroito/Plex-Trakt-Scrobbler
|
4f83fb0860dcb91f860d7c11bc7df568913c82a6
|
[
"RSA-MD"
] | 191
|
2015-01-02T18:27:22.000Z
|
2022-03-29T10:49:48.000Z
|
import sys
# submodules for Plex plugins "hack"
import logger
sys.modules['core.logger'] = logger
import header
sys.modules['core.header'] = header
import helpers
sys.modules['core.helpers'] = helpers
| 15.769231
| 37
| 0.75122
| 28
| 205
| 5.5
| 0.428571
| 0.194805
| 0.272727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131707
| 205
| 12
| 38
| 17.083333
| 0.865169
| 0.165854
| 0
| 0
| 0
| 0
| 0.201183
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.571429
| 0
| 0.571429
| 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
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
a41c327a607414f6008fddac4bec79d69c44f431
| 284
|
py
|
Python
|
tests/test_github_com.py
|
kyb3r/import_from_github_com
|
9938ed74c206ea3eee985de13b750748dc3918bb
|
[
"MIT"
] | 156
|
2016-01-03T02:02:48.000Z
|
2022-03-26T11:47:13.000Z
|
tests/test_github_com.py
|
kyb3r/import_from_github_com
|
9938ed74c206ea3eee985de13b750748dc3918bb
|
[
"MIT"
] | 2
|
2016-10-25T16:42:24.000Z
|
2016-12-08T07:54:35.000Z
|
tests/test_github_com.py
|
kyb3r/import_from_github_com
|
9938ed74c206ea3eee985de13b750748dc3918bb
|
[
"MIT"
] | 18
|
2016-01-27T16:20:05.000Z
|
2022-03-26T06:11:39.000Z
|
def test_import_module():
from github_com.kennethreitz import requests
assert requests.get('https://github.com').status_code == 200
def test_import_from_module():
from github_com.kennethreitz.requests import get
assert get('https://github.com').status_code == 200
| 25.818182
| 64
| 0.746479
| 39
| 284
| 5.205128
| 0.384615
| 0.17734
| 0.128079
| 0.187192
| 0.600985
| 0.295567
| 0.295567
| 0
| 0
| 0
| 0
| 0.02459
| 0.140845
| 284
| 10
| 65
| 28.4
| 0.807377
| 0
| 0
| 0
| 0
| 0
| 0.126761
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.666667
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
a45c46b47d5430d9e03b295c4e4e5df4fbec2301
| 318
|
py
|
Python
|
pizza_store/db/models/__init__.py
|
astsu-dev/pizza-store-backend
|
902f6e5e2c88ba029b2bff61da8fc4684664ead9
|
[
"MIT"
] | 2
|
2021-07-10T15:47:45.000Z
|
2021-12-13T18:09:30.000Z
|
pizza_store/db/models/__init__.py
|
astsu-dev/pizza-store-backend
|
902f6e5e2c88ba029b2bff61da8fc4684664ead9
|
[
"MIT"
] | null | null | null |
pizza_store/db/models/__init__.py
|
astsu-dev/pizza-store-backend
|
902f6e5e2c88ba029b2bff61da8fc4684664ead9
|
[
"MIT"
] | null | null | null |
from pizza_store.db.models.base import Base
from pizza_store.db.models.category import Category
from pizza_store.db.models.product import Product
from pizza_store.db.models.refresh_token import RefreshToken
from pizza_store.db.models.user import User
__all__ = ["Base", "Category", "User", "Product", "RefreshToken"]
| 39.75
| 65
| 0.811321
| 47
| 318
| 5.276596
| 0.297872
| 0.181452
| 0.282258
| 0.322581
| 0.443548
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08805
| 318
| 7
| 66
| 45.428571
| 0.855172
| 0
| 0
| 0
| 0
| 0
| 0.110063
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.833333
| 0
| 0.833333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
f10a5204c6f0aecf3f5cdc947d95dd73a28efc9a
| 51
|
py
|
Python
|
src/celery_zabbix/__init__.py
|
linuxtechie/celery_zabbix
|
ff632e33994469d4a7ef5813067629aed4095498
|
[
"BSD-3-Clause"
] | 8
|
2018-06-14T11:36:29.000Z
|
2022-02-24T12:26:14.000Z
|
src/celery_zabbix/__init__.py
|
linuxtechie/celery_zabbix
|
ff632e33994469d4a7ef5813067629aed4095498
|
[
"BSD-3-Clause"
] | 4
|
2018-07-13T17:04:23.000Z
|
2022-01-07T07:26:37.000Z
|
src/celery_zabbix/__init__.py
|
linuxtechie/celery_zabbix
|
ff632e33994469d4a7ef5813067629aed4095498
|
[
"BSD-3-Clause"
] | 12
|
2018-10-05T10:36:06.000Z
|
2021-08-20T08:13:51.000Z
|
from celery_zabbix.receiver import Receiver, stats
| 25.5
| 50
| 0.862745
| 7
| 51
| 6.142857
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.098039
| 51
| 1
| 51
| 51
| 0.934783
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
f13f660f193771741614072792580ea8aa18688b
| 175
|
py
|
Python
|
homeweb/dinner/admin.py
|
srenner/homeweb-v2
|
41dfe7b9f4adfd007d93af7a18266841b0e058e4
|
[
"MIT"
] | null | null | null |
homeweb/dinner/admin.py
|
srenner/homeweb-v2
|
41dfe7b9f4adfd007d93af7a18266841b0e058e4
|
[
"MIT"
] | null | null | null |
homeweb/dinner/admin.py
|
srenner/homeweb-v2
|
41dfe7b9f4adfd007d93af7a18266841b0e058e4
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Meal, Ingredient, MealHistory
admin.site.register(Meal)
admin.site.register(Ingredient)
admin.site.register(MealHistory)
| 25
| 49
| 0.828571
| 23
| 175
| 6.304348
| 0.478261
| 0.186207
| 0.351724
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08
| 175
| 6
| 50
| 29.166667
| 0.900621
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
f158f281d42abe5f44abf3fa7e3d1a60c64374a6
| 89
|
py
|
Python
|
dronedemo/scripts/dronedemo.py
|
vish04/vishal-test
|
0601696a6890ee5695647179db9a699caa8c1994
|
[
"Apache-2.0"
] | 22
|
2016-02-07T20:05:43.000Z
|
2021-03-15T02:37:15.000Z
|
dronedemo/scripts/dronedemo.py
|
vish04/vishal-test
|
0601696a6890ee5695647179db9a699caa8c1994
|
[
"Apache-2.0"
] | 1
|
2019-03-02T03:40:34.000Z
|
2019-03-02T03:40:34.000Z
|
dronedemo/scripts/dronedemo.py
|
vish04/vishal-test
|
0601696a6890ee5695647179db9a699caa8c1994
|
[
"Apache-2.0"
] | 65
|
2016-02-13T15:07:00.000Z
|
2021-09-01T08:38:58.000Z
|
from dronedemo.main import app
def cli_entry():
app.run(host='0.0.0.0', port=5000)
| 14.833333
| 38
| 0.674157
| 17
| 89
| 3.470588
| 0.764706
| 0.101695
| 0.101695
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106667
| 0.157303
| 89
| 5
| 39
| 17.8
| 0.68
| 0
| 0
| 0
| 0
| 0
| 0.078652
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
f1642584db5ee1f208e9e000207f3359a286e5e9
| 4,340
|
py
|
Python
|
OpticalRS/Const.py
|
melkimble/OpticalRS
|
54404f6c1e4e4a6f625e7b15e9f0489cb3600d79
|
[
"BSD-3-Clause"
] | 17
|
2016-06-13T02:29:09.000Z
|
2022-03-22T13:30:39.000Z
|
OpticalRS/Const.py
|
melkimble/OpticalRS
|
54404f6c1e4e4a6f625e7b15e9f0489cb3600d79
|
[
"BSD-3-Clause"
] | 7
|
2017-09-02T12:50:49.000Z
|
2019-02-14T18:32:52.000Z
|
OpticalRS/Const.py
|
melkimble/OpticalRS
|
54404f6c1e4e4a6f625e7b15e9f0489cb3600d79
|
[
"BSD-3-Clause"
] | 14
|
2016-04-02T14:03:34.000Z
|
2021-05-18T06:00:45.000Z
|
# -*- coding: utf-8 -*-
import pandas as pd
wv2_bandnames = ['coastal','blue','green','yellow','red','rededge','nir1','nir2']
# from DigitalGlobe, 2012. DigitalGlobe Core Imagery Products Guide.
wv2_center_wavelength = [427, 478, 546, 608, 659, 724, 833, 949]
# These are matplotlib color names that more or less match the wavelengths or
# (in the case of the NIR bands) at least look okay to display them.
cnames = ['cyan','blue','green','yellow','red','maroon','purple','darkviolet']
# from Jerlov 1976, Table XXVII, page 135:
# Downward irradiance attenuation coefficients
# Jerlov, N.G., 1976. Marine Optics. Elsevier.
jerlov_json = '{"I":{"350":0.062,"375":0.038,"400":0.028,"425":0.022,"450":0.019,"475":0.018,"500":0.027,"525":0.043,"550":0.063,"575":0.089,"600":0.235,"625":0.305,"650":0.36,"675":0.42,"700":0.56},"IA":{"350":0.078,"375":0.052,"400":0.038,"425":0.031,"450":0.026,"475":0.025,"500":0.032,"525":0.048,"550":0.067,"575":0.094,"600":0.24,"625":0.31,"650":0.37,"675":0.43,"700":0.57},"IB":{"350":0.1,"375":0.066,"400":0.051,"425":0.042,"450":0.036,"475":0.033,"500":0.042,"525":0.054,"550":0.072,"575":0.099,"600":0.245,"625":0.315,"650":0.375,"675":0.435,"700":0.58},"II":{"350":0.175,"375":0.122,"400":0.096,"425":0.081,"450":0.068,"475":0.062,"500":0.07,"525":0.076,"550":0.089,"575":0.115,"600":0.26,"625":0.335,"650":0.4,"675":0.465,"700":0.61},"III":{"350":0.32,"375":0.22,"400":0.185,"425":0.16,"450":0.135,"475":0.116,"500":0.115,"525":0.116,"550":0.12,"575":0.148,"600":0.295,"625":0.375,"650":0.445,"675":0.52,"700":0.66},"C1":{"350":1.2,"375":0.8,"400":0.51,"425":0.36,"450":0.25,"475":0.17,"500":0.14,"525":0.13,"550":0.12,"575":0.15,"600":0.3,"625":0.37,"650":0.45,"675":0.51,"700":0.65},"C3":{"350":1.7,"375":1.1,"400":0.78,"425":0.54,"450":0.39,"475":0.29,"500":0.22,"525":0.2,"550":0.19,"575":0.21,"600":0.33,"625":0.4,"650":0.46,"675":0.56,"700":0.71},"C5":{"350":2.3,"375":1.6,"400":1.1,"425":0.78,"450":0.56,"475":0.43,"500":0.36,"525":0.31,"550":0.3,"575":0.33,"600":0.4,"625":0.48,"650":0.54,"675":0.65,"700":0.8},"C7":{"350":3.0,"375":2.1,"400":1.6,"425":1.2,"450":0.89,"475":0.71,"500":0.58,"525":0.49,"550":0.46,"575":0.46,"600":0.48,"625":0.54,"650":0.63,"675":0.78,"700":0.92},"C9":{"350":3.9,"375":3.0,"400":2.4,"425":1.9,"450":1.6,"475":1.23,"500":0.99,"525":0.78,"550":0.63,"575":0.58,"600":0.6,"625":0.65,"650":0.76,"675":0.92,"700":1.1}}'
def jerlov_Kd():
"""
Return a pandas dataframe containing table XXVII from Jerlov 1976, page 135:
Downward irradiance attenuation coefficients. The units are 1/meter rather
than 100/meter as in the original table and values for the wavelength of
310nm have been excluded. The table is avaiable in its original units in
`data/jerlov_tableXXVII.xls` and in these units in `data/jerlov_Kd.pkl`.
References
----------
Jerlov, N.G., 1976. Marine Optics. Elsevier.
"""
# I have to do this with the column names to get the order right
colnames = [u'I', u'IA', u'IB', u'II', u'III', u'C1', u'C3', u'C5', u'C7', u'C9']
return pd.read_json(jerlov_json)[colnames]
# Approximate albedo values for kelp and sand. These values were estimated from
# plots in Werdell and Roesler, 2003 for WorldView-2 wavelengths. They are,
# therefore, pretty loose estimates.
# Werdell, P.J., Roesler, C.S., 2003. Remote assessment of benthic substrate
# composition in shallow waters using multispectral reflectance. Limnology and
# Oceanography 48, 557–567.
# from figure 4A
kelp_albedo = dict( zip(wv2_center_wavelength,[0.025,0.025,0.035,0.05,0.045,0.03]) )
# from the brighter portion of figure 4E
sand_albedo = dict( zip(wv2_center_wavelength,[0.05,0.065,0.08,0.11,0.12,0.12]) )
# from figure 4F
tropical_sand_albedo = dict(zip(wv2_center_wavelength,
[0.23,0.3,0.36,0.42,0.48,0.5]))
# Rd values from Werdell and Roesler 2003 figure 4C
LI_Rd = dict(zip(wv2_center_wavelength,[0.01,0.02,0.025,0.018,0.008,0.007]))
# Rd values from Werdell and Roesler 2003 figure 4D
B_Rd = dict(zip(wv2_center_wavelength,[0.075,0.055,0.015,0.01,0.005,0.001]))
# Kd values from Werdell and Roesler 2003 figure 2A
LI_Kd = dict(zip(wv2_center_wavelength,[0.79,0.54,0.42,0.5,0.7,0.8]))
# Kd values from Werdell and Roesler 2003 figure 2B
B_Kd = dict(zip(wv2_center_wavelength,[0.1,0.06,0.1,0.25,0.4,0.45]))
| 80.37037
| 1,766
| 0.642857
| 904
| 4,340
| 3.053097
| 0.340708
| 0.014493
| 0.055072
| 0.04058
| 0.202536
| 0.19529
| 0.160507
| 0.083333
| 0
| 0
| 0
| 0.300102
| 0.094009
| 4,340
| 53
| 1,767
| 81.886792
| 0.401577
| 0.345392
| 0
| 0
| 0
| 0.0625
| 0.667627
| 0.630176
| 0
| 0
| 0
| 0
| 0
| 1
| 0.0625
| false
| 0
| 0.0625
| 0
| 0.1875
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
f167a27d0ccd1f3ddcdbbe71eb32a68f15506347
| 179
|
py
|
Python
|
Friends/Friends_Model/firends_dataloader.py
|
sachinumrao/TextGenerationModels
|
bda50557ea7155640728a3b9f61bdd8391413045
|
[
"MIT"
] | null | null | null |
Friends/Friends_Model/firends_dataloader.py
|
sachinumrao/TextGenerationModels
|
bda50557ea7155640728a3b9f61bdd8391413045
|
[
"MIT"
] | null | null | null |
Friends/Friends_Model/firends_dataloader.py
|
sachinumrao/TextGenerationModels
|
bda50557ea7155640728a3b9f61bdd8391413045
|
[
"MIT"
] | null | null | null |
import numpy as np
import torch as T
class FriendDataLoader():
def __init__(self):
pass
def __len__(self):
pass
def __getitem__(self):
pass
| 13.769231
| 26
| 0.608939
| 22
| 179
| 4.409091
| 0.636364
| 0.247423
| 0.226804
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.324022
| 179
| 13
| 27
| 13.769231
| 0.801653
| 0
| 0
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.333333
| 0.222222
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
f18a70627f85d92f68e0f6bafe3f2d0ff626621f
| 491
|
py
|
Python
|
ids_validator/checks/v1/__init__.py
|
tetrascience/ts-ids-validator
|
2f562f0a68670c4123386fbd103b9d2ee32ac3a0
|
[
"Apache-2.0"
] | null | null | null |
ids_validator/checks/v1/__init__.py
|
tetrascience/ts-ids-validator
|
2f562f0a68670c4123386fbd103b9d2ee32ac3a0
|
[
"Apache-2.0"
] | 16
|
2021-11-01T14:07:09.000Z
|
2022-02-18T22:21:58.000Z
|
ids_validator/checks/v1/__init__.py
|
tetrascience/ts-ids-validator
|
2f562f0a68670c4123386fbd103b9d2ee32ac3a0
|
[
"Apache-2.0"
] | null | null | null |
from ids_validator.checks.v1.child_name import V1ChildNameChecker
from ids_validator.checks.v1.convention_version_check import V1ConventionVersionChecker
from ids_validator.checks.v1.root_node import V1RootNodeChecker
from ids_validator.checks.v1.snake_case import V1SnakeCaseChecker
from ids_validator.checks.v1.related_files_checker import V1RelatedFilesChecker
from ids_validator.checks.v1.nodes_checker import (
V1SampleNodeChecker,
V1SystemNodeChecker,
V1UserNodeChecker,
)
| 44.636364
| 87
| 0.87169
| 58
| 491
| 7.137931
| 0.465517
| 0.101449
| 0.231884
| 0.318841
| 0.347826
| 0
| 0
| 0
| 0
| 0
| 0
| 0.031042
| 0.081466
| 491
| 10
| 88
| 49.1
| 0.886918
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.6
| 0
| 0.6
| 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
|
74d892bf3c45c90ecb6afe80e1092e4402866c6a
| 1,970
|
py
|
Python
|
database/imports.py
|
tgbugs/mlab
|
dacc1663cbe714bb45c31b1b133fddb7ebcf5c79
|
[
"MIT"
] | null | null | null |
database/imports.py
|
tgbugs/mlab
|
dacc1663cbe714bb45c31b1b133fddb7ebcf5c79
|
[
"MIT"
] | null | null | null |
database/imports.py
|
tgbugs/mlab
|
dacc1663cbe714bb45c31b1b133fddb7ebcf5c79
|
[
"MIT"
] | null | null | null |
from datetime import datetime,timedelta #ALL TIMES ARE UTC WITH tzinfo=None, CONVERT LATER; FIXME postgress assumes the times give are from the env timezone >_<, just use func.now
#IEEE DOUBLE and numpy float64 have the same format, 1 bit sign, 11 bits exponent, 52 bits mantissa
#from sqlalchemy import func
from sqlalchemy import Table
from sqlalchemy import Column
from sqlalchemy import Integer
from sqlalchemy import Boolean
from sqlalchemy import Float
from sqlalchemy import String
from sqlalchemy import Unicode
from sqlalchemy import Text
from sqlalchemy import Date
from sqlalchemy import DateTime
from sqlalchemy import Interval
from sqlalchemy import ForeignKey
from sqlalchemy import ForeignKeyConstraint
from sqlalchemy import UniqueConstraint
from sqlalchemy import PickleType
from sqlalchemy.exc import IntegrityError
from sqlalchemy.orm import relationship, backref, object_session, validates, reconstructor
from sqlalchemy.orm.exc import FlushError, NoResultFound, MultipleResultsFound
from sqlalchemy.orm.collections import attribute_mapped_collection
from sqlalchemy.ext.hybrid import hybrid_property, hybrid_method
from sqlalchemy.ext.mutable import MutableDict
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.ext.associationproxy import association_proxy
from debug import TDB,ploc
from database.types_ import Array, DictType
_tdb=TDB()
printD=_tdb.printD
printFD=_tdb.printFuncDict
| 44.772727
| 179
| 0.619797
| 190
| 1,970
| 6.363158
| 0.489474
| 0.277916
| 0.264682
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005529
| 0.35736
| 1,970
| 43
| 180
| 45.813953
| 0.949447
| 0.145685
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.023256
| 0
| 1
| 0
| false
| 0
| 0.896552
| 0
| 0.896552
| 0.068966
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
745a9ccb07bc6edaa5315f37c0f6e61ab15e86a6
| 16
|
py
|
Python
|
apps/home.py
|
alexjj/baazaar-explorer
|
deac25ad076b9249b26ccf52458c72096987eb9c
|
[
"MIT"
] | null | null | null |
apps/home.py
|
alexjj/baazaar-explorer
|
deac25ad076b9249b26ccf52458c72096987eb9c
|
[
"MIT"
] | null | null | null |
apps/home.py
|
alexjj/baazaar-explorer
|
deac25ad076b9249b26ccf52458c72096987eb9c
|
[
"MIT"
] | 1
|
2022-01-11T14:49:36.000Z
|
2022-01-11T14:49:36.000Z
|
# for front page
| 16
| 16
| 0.75
| 3
| 16
| 4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1875
| 16
| 1
| 16
| 16
| 0.923077
| 0.875
| 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
|
77719a38f648693ec74b49f6c6066606d4234618
| 210
|
py
|
Python
|
projects/SimpleBaseline/simplebaseline/__init__.py
|
bearcatt/SimpleBaseline
|
9ae38f289688c0e671efb50985d3b8fe2da47d69
|
[
"MIT"
] | null | null | null |
projects/SimpleBaseline/simplebaseline/__init__.py
|
bearcatt/SimpleBaseline
|
9ae38f289688c0e671efb50985d3b8fe2da47d69
|
[
"MIT"
] | null | null | null |
projects/SimpleBaseline/simplebaseline/__init__.py
|
bearcatt/SimpleBaseline
|
9ae38f289688c0e671efb50985d3b8fe2da47d69
|
[
"MIT"
] | null | null | null |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from .config import add_simplebaseline_config
from .detector import SimpleBaseline
from .dataset_mapper import SimpleBaselineDatasetMapper
| 42
| 70
| 0.847619
| 25
| 210
| 7
| 0.76
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109524
| 210
| 4
| 71
| 52.5
| 0.935829
| 0.32381
| 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
|
777686ccb409b8c69f9a132916220f7b757432c1
| 139
|
py
|
Python
|
src/utils/__init__.py
|
Remalloc/py_template
|
9ed09b9ff33ad8a5629f37a0ad32dd343901d8d2
|
[
"BSD-3-Clause"
] | 2
|
2021-03-11T08:25:01.000Z
|
2021-03-11T08:25:19.000Z
|
src/utils/__init__.py
|
Remalloc/py_template
|
9ed09b9ff33ad8a5629f37a0ad32dd343901d8d2
|
[
"BSD-3-Clause"
] | null | null | null |
src/utils/__init__.py
|
Remalloc/py_template
|
9ed09b9ff33ad8a5629f37a0ad32dd343901d8d2
|
[
"BSD-3-Clause"
] | null | null | null |
from src.utils.logger import log_info, log_warning, log_error, log_exception, log_error_pro
from src.utils.database import Database, Redis
| 46.333333
| 91
| 0.841727
| 23
| 139
| 4.826087
| 0.565217
| 0.126126
| 0.216216
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.093525
| 139
| 2
| 92
| 69.5
| 0.880952
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
779c4f7f9065b4c89ec8e7f0de9dcd037d7a84ca
| 541
|
py
|
Python
|
bip_utils/bech32/__init__.py
|
ReardenMetals/keygen-core
|
6ddd83b5646d2fd31c0b77a96ff01be3d213e50a
|
[
"MIT"
] | 1
|
2021-08-12T15:35:10.000Z
|
2021-08-12T15:35:10.000Z
|
bip_utils/bech32/__init__.py
|
planetarium/bip_utils
|
7eafdc59aa510d96f9ad9f298d394189fa8b84e6
|
[
"MIT"
] | null | null | null |
bip_utils/bech32/__init__.py
|
planetarium/bip_utils
|
7eafdc59aa510d96f9ad9f298d394189fa8b84e6
|
[
"MIT"
] | 2
|
2021-08-12T15:35:11.000Z
|
2022-02-01T19:14:01.000Z
|
from bip_utils.bech32.bech32_base_ex import Bech32ChecksumError, Bech32FormatError
from bip_utils.bech32.atom_bech32_ex import AtomBech32FormatError
from bip_utils.bech32.atom_bech32 import AtomBech32Decoder, AtomBech32Encoder
from bip_utils.bech32.bch_bech32_ex import BchBech32FormatError
from bip_utils.bech32.bch_bech32 import BchBech32Decoder, BchBech32Encoder
from bip_utils.bech32.segwit_bech32_ex import SegwitBech32FormatError
from bip_utils.bech32.segwit_bech32 import SegwitBech32Decoder, SegwitBech32Encoder
| 67.625
| 86
| 0.868762
| 64
| 541
| 7.0625
| 0.328125
| 0.108407
| 0.185841
| 0.278761
| 0.376106
| 0.376106
| 0
| 0
| 0
| 0
| 0
| 0.102459
| 0.097967
| 541
| 7
| 87
| 77.285714
| 0.82377
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
77c31347f4383cb77894d287e142c5b8e2a66f6a
| 55
|
py
|
Python
|
backend/people/models/__init__.py
|
hndoss/manos-bondadosas
|
2d6eaee63ef3d90f26c7f4862b31f6635eb9dee3
|
[
"Apache-2.0"
] | null | null | null |
backend/people/models/__init__.py
|
hndoss/manos-bondadosas
|
2d6eaee63ef3d90f26c7f4862b31f6635eb9dee3
|
[
"Apache-2.0"
] | null | null | null |
backend/people/models/__init__.py
|
hndoss/manos-bondadosas
|
2d6eaee63ef3d90f26c7f4862b31f6635eb9dee3
|
[
"Apache-2.0"
] | null | null | null |
from .collaborator import *
from .beneficiary import *
| 18.333333
| 27
| 0.781818
| 6
| 55
| 7.166667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145455
| 55
| 2
| 28
| 27.5
| 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
|
77cf31f2727b6c4a015f0fd9e2241e37c6fec8ab
| 70
|
py
|
Python
|
exercises/moduletest1.py
|
anokata/pythonPetProjects
|
245c3ff11ae560b17830970061d8d60013948fd7
|
[
"MIT"
] | 3
|
2017-04-30T17:44:53.000Z
|
2018-02-03T06:02:11.000Z
|
exercises/moduletest1.py
|
anokata/pythonPetProjects
|
245c3ff11ae560b17830970061d8d60013948fd7
|
[
"MIT"
] | 10
|
2021-03-18T20:17:19.000Z
|
2022-03-11T23:14:19.000Z
|
exercises/moduletest1.py
|
anokata/pythonPetProjects
|
245c3ff11ae560b17830970061d8d60013948fd7
|
[
"MIT"
] | null | null | null |
import moduletest0
print(moduletest0.globvar)
moduletest0.globvar = 2
| 17.5
| 26
| 0.842857
| 8
| 70
| 7.375
| 0.625
| 0.610169
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 0.085714
| 70
| 3
| 27
| 23.333333
| 0.859375
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
77cff947e493fc9e65b4b19d9e207e4d02fad80b
| 87
|
py
|
Python
|
bin/installstopword.py
|
equipe22/pymedext_core
|
578e32fdc015c9b75f566d9e58a8fade889879e7
|
[
"Apache-2.0"
] | 1
|
2021-02-04T10:33:00.000Z
|
2021-02-04T10:33:00.000Z
|
bin/installstopword.py
|
equipe22/pymedext_core
|
578e32fdc015c9b75f566d9e58a8fade889879e7
|
[
"Apache-2.0"
] | 4
|
2020-12-17T09:16:24.000Z
|
2021-03-26T10:40:30.000Z
|
bin/installstopword.py
|
equipe22/pymedext_core
|
578e32fdc015c9b75f566d9e58a8fade889879e7
|
[
"Apache-2.0"
] | 1
|
2020-12-17T12:32:50.000Z
|
2020-12-17T12:32:50.000Z
|
#!/usr/bin/env python3
import nltk
nltk.download('stopwords')
nltk.download('punkt')
| 12.428571
| 26
| 0.735632
| 12
| 87
| 5.333333
| 0.75
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012658
| 0.091954
| 87
| 6
| 27
| 14.5
| 0.797468
| 0.241379
| 0
| 0
| 0
| 0
| 0.21875
| 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
|
77d1ab315527d9a80efcdf2d9cf8b17bccfc6a3c
| 62
|
py
|
Python
|
advancedbot/components/models/__init__.py
|
sdallaboratory/advanced-telegram-bot
|
7bf107b448cdd0e5d7f1cf85726b06c677ed922d
|
[
"MIT"
] | 3
|
2020-08-28T12:35:55.000Z
|
2020-10-29T12:26:49.000Z
|
advancedbot/components/models/__init__.py
|
sdallaboratory/advanced-telegram-bot
|
7bf107b448cdd0e5d7f1cf85726b06c677ed922d
|
[
"MIT"
] | null | null | null |
advancedbot/components/models/__init__.py
|
sdallaboratory/advanced-telegram-bot
|
7bf107b448cdd0e5d7f1cf85726b06c677ed922d
|
[
"MIT"
] | 2
|
2021-11-13T15:03:35.000Z
|
2022-01-10T13:54:53.000Z
|
from .documentlink import DocumentLink
from .user import User
| 20.666667
| 38
| 0.83871
| 8
| 62
| 6.5
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129032
| 62
| 2
| 39
| 31
| 0.962963
| 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
|
77fe139f2da7073c80ac79bafd4f1518955b43d1
| 90
|
py
|
Python
|
pac/staff/admin.py
|
NimaAram1/pac
|
c4387f46915142bd9a8fcb5f832d564870095fde
|
[
"MIT"
] | null | null | null |
pac/staff/admin.py
|
NimaAram1/pac
|
c4387f46915142bd9a8fcb5f832d564870095fde
|
[
"MIT"
] | null | null | null |
pac/staff/admin.py
|
NimaAram1/pac
|
c4387f46915142bd9a8fcb5f832d564870095fde
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Staff
admin.site.register(Staff)
| 15
| 32
| 0.788889
| 13
| 90
| 5.461538
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144444
| 90
| 5
| 33
| 18
| 0.922078
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
bb18f75f8162572277e5de8c97080f74c4ae2766
| 159
|
py
|
Python
|
deepeeg/models/__init__.py
|
TanTingyi/WaveNet-EEG
|
6a529c1b0b27712c47156a515c3068ef93c4d331
|
[
"MIT"
] | 3
|
2020-04-14T02:18:52.000Z
|
2020-09-25T08:25:35.000Z
|
deepeeg/models/__init__.py
|
TanTingyi/DeepEEG
|
6a529c1b0b27712c47156a515c3068ef93c4d331
|
[
"MIT"
] | null | null | null |
deepeeg/models/__init__.py
|
TanTingyi/DeepEEG
|
6a529c1b0b27712c47156a515c3068ef93c4d331
|
[
"MIT"
] | 2
|
2020-05-11T15:45:35.000Z
|
2021-12-31T07:13:28.000Z
|
from .seegnet import SEEGNet
from .eegnet import EEGNet
from .wavenet import WaveNet, DilatedBlock, EEGWaveNetv4
from .deep import ShallowConvNet, DeepConvNet
| 31.8
| 56
| 0.836478
| 19
| 159
| 7
| 0.526316
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007143
| 0.119497
| 159
| 4
| 57
| 39.75
| 0.942857
| 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
|
bb19fff00a07741a1e1da5a5c5a964006e0d7db2
| 158
|
py
|
Python
|
Tensorflow/z_GPU.py
|
maxcurie1996/Artificial_Intelligence
|
f49ccb28165736950a8c800be8e6d01dde1fd3e9
|
[
"MIT"
] | null | null | null |
Tensorflow/z_GPU.py
|
maxcurie1996/Artificial_Intelligence
|
f49ccb28165736950a8c800be8e6d01dde1fd3e9
|
[
"MIT"
] | null | null | null |
Tensorflow/z_GPU.py
|
maxcurie1996/Artificial_Intelligence
|
f49ccb28165736950a8c800be8e6d01dde1fd3e9
|
[
"MIT"
] | null | null | null |
import tensorflow as tf
#conda create -n tf_gpu python==3.8
#conda activate tf_gpu
print("Num GPUs Available: ", len(tf.config.list_physical_devices('GPU')))
| 31.6
| 74
| 0.765823
| 27
| 158
| 4.333333
| 0.777778
| 0.08547
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014184
| 0.107595
| 158
| 5
| 74
| 31.6
| 0.815603
| 0.348101
| 0
| 0
| 0
| 0
| 0.22549
| 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
|
247f8f9d05998f7566d2f457e5fac1935fa2b3f7
| 572
|
py
|
Python
|
Chapter2_Python/11-MatplotlibIntro.py
|
olebause/TensorFlow2
|
70fcb7c85c7ead0dc4f88ffa35be5f2eb93e618e
|
[
"MIT"
] | 2
|
2021-02-10T19:50:27.000Z
|
2021-12-30T06:15:55.000Z
|
Chapter3_Libraries/MatplotlibIntro.py
|
franneck94/UdemyPythonIntro
|
4895a91a04eedce7d59b61bf12e5aa209fe60f85
|
[
"MIT"
] | 1
|
2020-12-21T15:29:20.000Z
|
2022-01-15T12:06:09.000Z
|
Chapter3_Libraries/MatplotlibIntro.py
|
franneck94/UdemyPythonIntro
|
4895a91a04eedce7d59b61bf12e5aa209fe60f85
|
[
"MIT"
] | 4
|
2020-11-08T17:07:53.000Z
|
2022-02-07T06:40:55.000Z
|
import matplotlib.pyplot as plt
grades_jan = [56, 64, 78, 100]
grades_ben = [86, 94, 98, 90]
# Plot
plt.plot(range(len(grades_jan)), grades_jan, color="blue")
plt.plot(range(len(grades_ben)), grades_ben, color="red")
plt.legend(["Jan", "Ben"])
plt.xlabel("Course")
plt.ylabel("Grade in %")
plt.title("Jan vs. Ben")
plt.show()
# Scatter
plt.scatter(range(len(grades_jan)), grades_jan, color="blue")
plt.scatter(range(len(grades_ben)), grades_ben, color="red")
plt.legend(["Jan", "Ben"])
plt.xlabel("Course")
plt.ylabel("Grade in %")
plt.title("Jan vs. Ben")
plt.show()
| 23.833333
| 61
| 0.687063
| 95
| 572
| 4.031579
| 0.336842
| 0.117493
| 0.146214
| 0.078329
| 0.809399
| 0.736292
| 0.736292
| 0.736292
| 0.736292
| 0.537859
| 0
| 0.032946
| 0.097902
| 572
| 23
| 62
| 24.869565
| 0.709302
| 0.020979
| 0
| 0.588235
| 0
| 0
| 0.143627
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.058824
| 0
| 0.058824
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
248c6efb7981984cad08169a0db494a0b4344c1b
| 2,575
|
py
|
Python
|
rounding/standard.py
|
dmaust/rounding
|
edd6d1d70ba8aa486a250ed7aeae0a694fb0094d
|
[
"Apache-2.0"
] | 4
|
2019-06-03T07:15:19.000Z
|
2022-03-25T02:26:45.000Z
|
rounding/standard.py
|
dmaust/rounding
|
edd6d1d70ba8aa486a250ed7aeae0a694fb0094d
|
[
"Apache-2.0"
] | null | null | null |
rounding/standard.py
|
dmaust/rounding
|
edd6d1d70ba8aa486a250ed7aeae0a694fb0094d
|
[
"Apache-2.0"
] | 2
|
2020-08-31T06:01:47.000Z
|
2021-11-11T17:58:30.000Z
|
"""
Created on Oct 6, 2013
@author: dmaust
"""
import math
from rounding.common import RounderBase
class StandardRound(RounderBase):
"""
Rounding class for traditional rounding of rounding to the nearest number and up in the case of a tie.
In the event of a tie, the number is rounded up. This differs from
Python default of round toward even in the event of a tie.
"""
def __init__(self, precision=0):
"""
Initialize the rounding object.
@param precision: Number of decimal places to round to.
"""
super(StandardRound, self).__init__(precision=precision)
def round(self, x):
"""Round the given value.
@param x: to round
@type x: numeric
"""
fraction, scaled_x, scale = self._get_fraction(x)
rounddown = fraction < .5
if rounddown:
result = math.floor(scaled_x) / scale
else:
result = math.ceil(scaled_x) / scale
self._record_roundoff_error(x, result)
return result
class RoundTowardEven(RounderBase):
"""
Rounding class for traditional rounding of rounding to the nearest number and toward even in the case of a tie.
In the event of a tie, the number is rounded up. This differs from
Python default of round toward even in the event of a tie.
"""
def __init__(self, precision=0):
"""
Initialize the rounding object.
@param precision: Number of decimal places to round to.
"""
super(RoundTowardEven, self).__init__(precision=precision)
def round(self, x):
"""Round the given value.
@param x: to round
@type x: numeric
"""
fraction, scaled_x, scale = self._get_fraction(x)
rounddown = fraction < 0.5
if fraction == 0.5 and math.floor(scaled_x) % 2 == 0:
rounddown = True
if rounddown:
result = math.floor(scaled_x) / scale
else:
result = math.ceil(scaled_x) / scale
self._record_roundoff_error(x, result)
return result
if __name__ == '__main__':
num = 4.5
count = 1000
expected = num * count
sr = StandardRound(precision=0)
er = RoundTowardEven(precision=0)
print "Expected: ", expected
print "Simple round: ", sum(round(num) for i in xrange(count))
print "Round toward even: ", sum(er.round(num) for i in xrange(count))
print "Standard Round: ", sum(sr.round(num) for i in xrange(count))
print "Error: ", sr.roundoff_error
| 28.932584
| 115
| 0.615534
| 334
| 2,575
| 4.61976
| 0.260479
| 0.031756
| 0.023331
| 0.031108
| 0.746598
| 0.746598
| 0.746598
| 0.746598
| 0.68827
| 0.68827
| 0
| 0.012121
| 0.295146
| 2,575
| 89
| 116
| 28.932584
| 0.838017
| 0
| 0
| 0.461538
| 0
| 0
| 0.046717
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.051282
| null | null | 0.128205
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
249746ce62ef74535b7570bd9c8a84d4ba49d146
| 78
|
py
|
Python
|
openmlpimp/__init__.py
|
kw-corne/openml-pimp
|
d0a14f3eb480f2a90008889f00041bdccc7b9265
|
[
"BSD-3-Clause"
] | 12
|
2017-07-13T10:02:40.000Z
|
2021-08-28T08:50:32.000Z
|
openmlpimp/__init__.py
|
kw-corne/openml-pimp
|
d0a14f3eb480f2a90008889f00041bdccc7b9265
|
[
"BSD-3-Clause"
] | 9
|
2018-01-11T13:50:38.000Z
|
2020-02-07T08:24:21.000Z
|
openmlpimp/__init__.py
|
kw-corne/openml-pimp
|
d0a14f3eb480f2a90008889f00041bdccc7b9265
|
[
"BSD-3-Clause"
] | 8
|
2017-12-02T22:06:16.000Z
|
2022-01-28T17:38:38.000Z
|
import openmlpimp.utils
import openmlpimp.configspaces
__version__ = "0.0.1"
| 15.6
| 30
| 0.807692
| 10
| 78
| 5.9
| 0.7
| 0.542373
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.042857
| 0.102564
| 78
| 4
| 31
| 19.5
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0.064103
| 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
|
24b8cbb2e8c408182e46c3e47d624403b6d99dae
| 118
|
py
|
Python
|
microproject/test/a.py
|
jithinsankar/projectLI-FI
|
965ca33eddec6e026e26fd3451905ded1f5dc0aa
|
[
"MIT"
] | null | null | null |
microproject/test/a.py
|
jithinsankar/projectLI-FI
|
965ca33eddec6e026e26fd3451905ded1f5dc0aa
|
[
"MIT"
] | null | null | null |
microproject/test/a.py
|
jithinsankar/projectLI-FI
|
965ca33eddec6e026e26fd3451905ded1f5dc0aa
|
[
"MIT"
] | null | null | null |
c=['000000','2']
print ''.join(c)
'''def ass(x):
return{
"00":'A',
"01":'B',
}.get(x,"c")
print ass[c]'''
| 13.111111
| 17
| 0.432203
| 20
| 118
| 2.55
| 0.7
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115789
| 0.194915
| 118
| 9
| 18
| 13.111111
| 0.421053
| 0
| 0
| 0
| 0
| 0
| 0.184211
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
24c1dc3e5b443de1bd758a63e9fc091ddc016703
| 50
|
py
|
Python
|
everything_at_once/loss/__init__.py
|
ninatu/everything_at_once
|
b4cd3a70076ea3ea2b40832aa3e2afab50495c47
|
[
"BSD-3-Clause"
] | null | null | null |
everything_at_once/loss/__init__.py
|
ninatu/everything_at_once
|
b4cd3a70076ea3ea2b40832aa3e2afab50495c47
|
[
"BSD-3-Clause"
] | null | null | null |
everything_at_once/loss/__init__.py
|
ninatu/everything_at_once
|
b4cd3a70076ea3ea2b40832aa3e2afab50495c47
|
[
"BSD-3-Clause"
] | null | null | null |
from .combinatorial_loss import CombinatorialLoss
| 25
| 49
| 0.9
| 5
| 50
| 8.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08
| 50
| 1
| 50
| 50
| 0.956522
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
24dea27658e4e584af66fa62ff48a9a74f2f9a83
| 203
|
py
|
Python
|
application/default_settings.py
|
duracloud/streaming-demo
|
919637b36186ae73a51e97ec0612b028f070c4c1
|
[
"Apache-2.0"
] | 1
|
2018-09-07T13:04:06.000Z
|
2018-09-07T13:04:06.000Z
|
application/default_settings.py
|
duracloud/streaming-demo
|
919637b36186ae73a51e97ec0612b028f070c4c1
|
[
"Apache-2.0"
] | null | null | null |
application/default_settings.py
|
duracloud/streaming-demo
|
919637b36186ae73a51e97ec0612b028f070c4c1
|
[
"Apache-2.0"
] | null | null | null |
DURACLOUD_USERNAME = "duracloud_user"
DURACLOUD_PASSWORD = "duracloud_password"
DURACLOUD_SPACE_ID = "my_streaming_space"
DURACLOUD_PROTOCOL = "http"
DURACLOUD_HOST = "localhost"
DURACLOUD_PORT = "8080"
| 29
| 41
| 0.82266
| 23
| 203
| 6.782609
| 0.608696
| 0.217949
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021622
| 0.08867
| 203
| 6
| 42
| 33.833333
| 0.821622
| 0
| 0
| 0
| 0
| 0
| 0.330049
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.166667
| 0
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
24ff6a49c3ca5159b419dfcff36ac87607145311
| 103
|
py
|
Python
|
WeatherPy/api_keys.py
|
jessicadoanes/python-api-challenge
|
05ad23ebad1a030e9621e606a86ad512cad891d8
|
[
"ADSL"
] | null | null | null |
WeatherPy/api_keys.py
|
jessicadoanes/python-api-challenge
|
05ad23ebad1a030e9621e606a86ad512cad891d8
|
[
"ADSL"
] | null | null | null |
WeatherPy/api_keys.py
|
jessicadoanes/python-api-challenge
|
05ad23ebad1a030e9621e606a86ad512cad891d8
|
[
"ADSL"
] | null | null | null |
# OpenWeatherMap API Key
weather_api_key = "Insert API Key"
# Google API Key
g_key = "Insert API Key"
| 17.166667
| 34
| 0.737864
| 17
| 103
| 4.294118
| 0.411765
| 0.410959
| 0.328767
| 0.410959
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.184466
| 103
| 5
| 35
| 20.6
| 0.869048
| 0.359223
| 0
| 0
| 0
| 0
| 0.444444
| 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
|
70560eca2e819aff6c4c62d5f78f3ac1511666d8
| 144
|
py
|
Python
|
lab_02/message.py
|
Willsem/information-security
|
b6b387dff9d3b18efbff71649437dca9eca199b1
|
[
"MIT"
] | 2
|
2020-11-29T19:43:26.000Z
|
2021-02-27T11:20:46.000Z
|
lab_02/message.py
|
Willsem/information-security
|
b6b387dff9d3b18efbff71649437dca9eca199b1
|
[
"MIT"
] | null | null | null |
lab_02/message.py
|
Willsem/information-security
|
b6b387dff9d3b18efbff71649437dca9eca199b1
|
[
"MIT"
] | null | null | null |
def encode_message(enigma, message):
print("Message:", message)
message = enigma.encode(message)
print("Encoded message:", message)
| 28.8
| 38
| 0.701389
| 16
| 144
| 6.25
| 0.375
| 0.42
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.159722
| 144
| 4
| 39
| 36
| 0.826446
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.25
| 0.5
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
705f6f05f5f09d6d05ec2fd20a7a698955bcd26e
| 138
|
py
|
Python
|
api/tweets/admin.py
|
julianarchila/twitter-clone-api
|
9c2d77c9144dcb70cf982d9987c70bc7113b7f3e
|
[
"MIT"
] | null | null | null |
api/tweets/admin.py
|
julianarchila/twitter-clone-api
|
9c2d77c9144dcb70cf982d9987c70bc7113b7f3e
|
[
"MIT"
] | null | null | null |
api/tweets/admin.py
|
julianarchila/twitter-clone-api
|
9c2d77c9144dcb70cf982d9987c70bc7113b7f3e
|
[
"MIT"
] | null | null | null |
""" Tweets admin. """
# Django
from django.contrib import admin
# Models
from api.tweets.models import Tweet
admin.site.register(Tweet)
| 15.333333
| 35
| 0.746377
| 19
| 138
| 5.421053
| 0.578947
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137681
| 138
| 9
| 36
| 15.333333
| 0.865546
| 0.210145
| 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
|
707aca9b007993ca420d2fec08e92b91af65b373
| 687
|
py
|
Python
|
python/anyascii/_data/_02d.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
python/anyascii/_data/_02d.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
python/anyascii/_data/_02d.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
b="a b g d e v z t i k' l m n o p' zh r s t' u p k gh q' sh ch ts dz ts' ch' kh j h ey y w q ow e e a b b g g g g d d d d e f k k k h h h h e x x q q i j j j l m n ng ng p u r r gh q gh s s c t t c t v w y z z z e o w loa moa roa soa shoa boa toa choa noa nyoa 'oa zoa doa d'oa joa t'oa ch'oa p'oa poa ngwe ngwi ngwie ngwi she shu shi sha shie sh sho che chu chi cha chie ch cho zhe zhu zhi zha zhie zh zho ch'e ch'u ch'i ch'a ch'ie ch' ch'o k'ye k'yu k'yi k'ya k'yie k'y k'yo kye kyu kyi kya kyie ky kyo xye xyu xyi xya xyie xy xyo gye gyu gyi gya gyie gy gyo b v g d zh z k l m n o p r s t kh ts ch sh shch f st a e dj u e yu ia e o io"
| 687
| 687
| 0.586608
| 226
| 687
| 1.783186
| 0.464602
| 0.014888
| 0.022333
| 0.019851
| 0.029777
| 0.029777
| 0
| 0
| 0
| 0
| 0
| 0
| 0.372635
| 687
| 1
| 687
| 687
| 0.935035
| 0
| 0
| 0
| 0
| 1
| 0.992733
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
707efc17b0111898c1f2f605228e9ad0e28c7a6d
| 87
|
py
|
Python
|
gui/__init__.py
|
FRidh/Sea
|
b474e93a449570a9ba3b915c4d80f814feee2545
|
[
"BSD-3-Clause"
] | 2
|
2015-07-02T13:34:09.000Z
|
2015-09-28T09:07:52.000Z
|
gui/__init__.py
|
FRidh/Sea
|
b474e93a449570a9ba3b915c4d80f814feee2545
|
[
"BSD-3-Clause"
] | null | null | null |
gui/__init__.py
|
FRidh/Sea
|
b474e93a449570a9ba3b915c4d80f814feee2545
|
[
"BSD-3-Clause"
] | 1
|
2022-01-22T03:01:54.000Z
|
2022-01-22T03:01:54.000Z
|
"""
The gui module provides a gui for :mod:`Sea`.
"""
import addItem
import analysis
| 10.875
| 45
| 0.689655
| 13
| 87
| 4.615385
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.183908
| 87
| 7
| 46
| 12.428571
| 0.84507
| 0.517241
| 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
|
708e20565577d29ddc5dc9de3e0c9b00958db978
| 3,383
|
py
|
Python
|
hash_functions.py
|
SSAFuze/hash_tool
|
9db3e54f4ac5af3bc5057880d6792f51926d6e41
|
[
"MIT"
] | null | null | null |
hash_functions.py
|
SSAFuze/hash_tool
|
9db3e54f4ac5af3bc5057880d6792f51926d6e41
|
[
"MIT"
] | null | null | null |
hash_functions.py
|
SSAFuze/hash_tool
|
9db3e54f4ac5af3bc5057880d6792f51926d6e41
|
[
"MIT"
] | null | null | null |
# This file contains the functions for generating hashes
import hashlib
def md5hash(text):
"""Takes in text and returns the md5 hash"""
hash = hashlib.md5()
hash.update(text.encode("utf-8"))
return hash.hexdigest()
def sha1hash(text):
"""Takes in text and returns the sha1 hash"""
hash = hashlib.sha1()
hash.update(text.encode("utf-8"))
return hash.hexdigest()
def sha224hash(text):
"""Takes in text and returns the sha224 hash"""
hash = hashlib.sha224()
hash.update(text.encode("utf-8"))
return hash.hexdigest()
def sha256hash(text):
"""Takes in text and returns the sha256 hash"""
hash = hashlib.sha256()
hash.update(text.encode("utf-8"))
return hash.hexdigest()
def sha384hash(text):
"""Take in text and returns the sha384 hash"""
hash = hashlib.sha384()
hash.update(text.encode("utf-8"))
return hash.hexdigest()
def md5crack(hash, list):
"""Takes in an md5 hash and the path to a wordlist and attempts to crack the hash"""
cleartext = ''
with open(list, 'r') as wordlist:
for line in wordlist:
if md5hash(line.strip('\n')) == hash:
cleartext = line
break
if cleartext:
return 'The hash is: '+cleartext
else:
return 'Using the provided wordlist, no matches were found'
def sha1crack(hash, list):
"""Takes in an sha1 hash and the path to a wordlist and attempts to crack the hash"""
cleartext = ''
with open(list, 'r') as wordlist:
for line in wordlist:
if sha1hash(line.strip('\n')) == hash:
cleartext = line
break
if cleartext:
return 'The hash is: '+cleartext
else:
return 'Using the provided wordlist, no matches were found'
def sha224crack(hash, list):
"""Takes in an sha224 hash and the path to a wordlist and attempts to crack the hash"""
cleartext = ''
with open(list, 'r') as wordlist:
for line in wordlist:
if sha224hash(line.strip('\n')) == hash:
cleartext = line
break
if cleartext:
return 'The hash is: '+cleartext
else:
return 'Using the provided wordlist, no matches were found'
def sha256crack(hash, list):
"""Takes in an sha256 hash and the path to a wordlist and attempts to crack the hash"""
cleartext = ''
with open(list, 'r') as wordlist:
for line in wordlist:
if sha256hash(line.strip('\n')) == hash:
cleartext = line
break
if cleartext:
return 'The hash is: '+cleartext
else:
return 'Using the provided wordlist, no matches were found'
def sha384crack(hash, list):
"""Takes in an sha384 hash and the path to a wordlist and attempts to crack the hash"""
cleartext = ''
with open(list, 'r') as wordlist:
for line in wordlist:
if sha384hash(line.strip('\n')) == hash:
cleartext = line
break
if cleartext:
return 'The hash is: '+cleartext
else:
return 'Using the provided wordlist, no matches were found'
| 34.171717
| 95
| 0.567248
| 415
| 3,383
| 4.624096
| 0.156627
| 0.036477
| 0.02345
| 0.041688
| 0.811881
| 0.757686
| 0.757686
| 0.699323
| 0.699323
| 0.699323
| 0
| 0.031556
| 0.33491
| 3,383
| 98
| 96
| 34.520408
| 0.821333
| 0.196276
| 0
| 0.723684
| 0
| 0
| 0.133108
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.131579
| false
| 0
| 0.013158
| 0
| 0.342105
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
709483291e325ba3a7773a646cb0170e9d5630fa
| 38
|
py
|
Python
|
tests/components/splunk/__init__.py
|
domwillcode/home-assistant
|
f170c80bea70c939c098b5c88320a1c789858958
|
[
"Apache-2.0"
] | 23
|
2017-11-15T21:03:53.000Z
|
2021-03-29T21:33:48.000Z
|
tests/components/splunk/__init__.py
|
domwillcode/home-assistant
|
f170c80bea70c939c098b5c88320a1c789858958
|
[
"Apache-2.0"
] | 47
|
2020-07-23T07:13:11.000Z
|
2022-03-31T06:01:46.000Z
|
tests/components/splunk/__init__.py
|
klauern/home-assistant-core
|
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
|
[
"Apache-2.0"
] | 10
|
2018-01-01T00:12:51.000Z
|
2021-12-21T23:08:05.000Z
|
"""Tests for the splunk component."""
| 19
| 37
| 0.684211
| 5
| 38
| 5.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131579
| 38
| 1
| 38
| 38
| 0.787879
| 0.815789
| 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
|
70a0946ccbad57a5894a006a977bc1e92d248d2b
| 129
|
py
|
Python
|
notebooks/workflows/ocean_heat_content/solutions/solution_1_3.py
|
bonnland/ncar-python-tutorial
|
54d536d40cfaf6f8990c58edb438286c19d32a67
|
[
"CC-BY-4.0"
] | 38
|
2019-09-10T05:00:52.000Z
|
2021-12-06T17:39:14.000Z
|
notebooks/workflows/ocean_heat_content/solutions/solution_1_3.py
|
bonnland/ncar-python-tutorial
|
54d536d40cfaf6f8990c58edb438286c19d32a67
|
[
"CC-BY-4.0"
] | 60
|
2019-08-28T22:34:17.000Z
|
2021-01-25T22:53:21.000Z
|
notebooks/workflows/ocean_heat_content/solutions/solution_1_3.py
|
bonnland/ncar-python-tutorial
|
54d536d40cfaf6f8990c58edb438286c19d32a67
|
[
"CC-BY-4.0"
] | 22
|
2019-08-29T18:11:57.000Z
|
2021-01-07T02:23:46.000Z
|
print("*** Dimensions")
print(ds.dims)
print("\n\n*** Coordinates")
print(ds.coords)
print("\n\n*** Attributes")
print(ds.attrs)
| 18.428571
| 28
| 0.666667
| 19
| 129
| 4.526316
| 0.473684
| 0.244186
| 0.162791
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.069767
| 129
| 6
| 29
| 21.5
| 0.716667
| 0
| 0
| 0
| 0
| 0
| 0.395349
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 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
| 0
| 0
| 0
| 1
|
0
| 5
|
56428caa3be9826a577516bc34ee0cbeb40c4fe7
| 48
|
py
|
Python
|
config/utils.py
|
mdcg/dotfiles
|
4f15b2883170dd2abd6e34a918f2cf47be6b9e86
|
[
"MIT"
] | 3
|
2021-07-07T12:25:42.000Z
|
2022-03-04T12:46:09.000Z
|
config/utils.py
|
mdcg/dotfiles
|
4f15b2883170dd2abd6e34a918f2cf47be6b9e86
|
[
"MIT"
] | null | null | null |
config/utils.py
|
mdcg/dotfiles
|
4f15b2883170dd2abd6e34a918f2cf47be6b9e86
|
[
"MIT"
] | null | null | null |
def handle_sigterm(*args):
raise SystemExit
| 16
| 26
| 0.75
| 6
| 48
| 5.833333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 48
| 2
| 27
| 24
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
564ce3a566c86e7b4232905c555d04e3d039d192
| 852
|
py
|
Python
|
tests/test_load.py
|
JavadSM/hashit
|
b4f0fd3f84267f3a330a6aa34abd14adb31bc8d0
|
[
"MIT"
] | 7
|
2019-06-16T09:26:24.000Z
|
2022-03-30T07:12:56.000Z
|
tests/test_load.py
|
cjavad/hashit
|
b4f0fd3f84267f3a330a6aa34abd14adb31bc8d0
|
[
"MIT"
] | 2
|
2019-06-22T00:37:09.000Z
|
2020-01-29T18:07:38.000Z
|
tests/test_load.py
|
JavadSM/hashit
|
b4f0fd3f84267f3a330a6aa34abd14adb31bc8d0
|
[
"MIT"
] | 4
|
2018-05-07T06:15:46.000Z
|
2021-01-18T20:47:37.000Z
|
class load_api_1:
name="hash1"
def __init__(self, data=b''):
self.data = data
def update(self, data=b''):
self.data += data
def digest(self):
return 1516152524156352132515252551426
def hexdigest(self):
return hex(self.digest())
class load_api_2:
name="hash2"
def __init__(self, data=b''):
self.data = data
def update(self, data=b''):
self.data += data
def digest(self):
return 1234567876543234567897654324562
def hexdigest(self):
return hex(self.digest())
class load_api_3:
name="hash3"
def __init__(self, data=b''):
self.data = data
def update(self, data=b''):
self.data += data
def digest(self):
return 5232348239489234823948203294829
def hexdigest(self):
return hex(self.digest())
| 20.285714
| 47
| 0.602113
| 102
| 852
| 4.852941
| 0.22549
| 0.193939
| 0.109091
| 0.157576
| 0.727273
| 0.727273
| 0.727273
| 0.656566
| 0.656566
| 0.656566
| 0
| 0.160976
| 0.278169
| 852
| 41
| 48
| 20.780488
| 0.643902
| 0
| 0
| 0.7
| 0
| 0
| 0.017606
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0
| 0.2
| 0.8
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 5
|
567e829b063b39741f7f1c796638dcbec551db96
| 8,544
|
py
|
Python
|
polling_stations/apps/data_collection/tests/test_address_set.py
|
chris48s/UK-Polling-Stations
|
4742b527dae94f0276d35c80460837be743b7d17
|
[
"BSD-3-Clause"
] | null | null | null |
polling_stations/apps/data_collection/tests/test_address_set.py
|
chris48s/UK-Polling-Stations
|
4742b527dae94f0276d35c80460837be743b7d17
|
[
"BSD-3-Clause"
] | null | null | null |
polling_stations/apps/data_collection/tests/test_address_set.py
|
chris48s/UK-Polling-Stations
|
4742b527dae94f0276d35c80460837be743b7d17
|
[
"BSD-3-Clause"
] | null | null | null |
from data_collection.data_types import Address, AddressSet
from django.test import TestCase
class MockLogger:
def log_message(self, level, message, variable=None, pretty=False):
pass
class AddressSetTest(TestCase):
def test_add_with_duplicates(self):
in_list = [
{'address': 'foo', 'slug': 'foo', 'postcode': '', 'council': '', 'polling_station_id': ''},
{'address': 'bar', 'slug': 'bar', 'postcode': '', 'council': '', 'polling_station_id': ''},
{'address': 'foo', 'slug': 'foo', 'postcode': '', 'council': '', 'polling_station_id': ''},
]
expected = set([
Address(
address='foo', slug='foo', postcode='', council='', polling_station_id=''),
Address(
address='bar', slug='bar', postcode='', council='', polling_station_id=''),
])
address_list = AddressSet(MockLogger())
for el in in_list:
address_list.add(el)
self.assertEqual(expected, address_list.elements)
def test_remove_ambiguous_addresses_exactmatch(self):
in_list = [
{
'address': 'Haringey Park, London',
'postcode': 'N89JG',
'polling_station_id': 'AA',
'council': '',
'slug': 'haringey-park-london-n89jg-aa'
},
{
'address': 'Haringey Park, London',
'postcode': 'N89JG',
'polling_station_id': 'AB',
'council': '',
'slug': 'haringey-park-london-n89jg-ab'
},
{
'address': 'Haringey Park, London',
'postcode': 'N89JG',
'polling_station_id': 'AC',
'council': '',
'slug': 'haringey-park-london-n89jg-ac'
},
]
address_list = AddressSet(MockLogger())
for el in in_list:
address_list.add(el)
result = address_list.remove_ambiguous_addresses()
self.assertEqual(set(), result)
def test_remove_ambiguous_addresses_fuzzymatch(self):
"""
The addresses:
- 5-6 Mickleton Dr, Southport, PR82QX
- 5/6, Mickleton Dr. Southport, PR82QX
- 5-6 mickleton dr southport, PR82QX
should all be considered the same address.
The addresses:
- 56 Mickleton Dr, Southport, PR82QX
- 5-6 Mickleton Dr, Southport, BT281QZ
should be identified as different.
"""
in_list = [
{
'address': '5-6 Mickleton Dr, Southport',
'postcode': 'PR82QX',
'polling_station_id': 'A01',
'council': '',
'slug': 'a'
},
{
'address': '5/6, Mickleton Dr. Southport',
'postcode': 'PR82QX',
'polling_station_id': 'A02',
'council': '',
'slug': 'b'
},
{
'address': '5-6 mickleton dr southport',
'postcode': 'PR82QX',
'polling_station_id': 'A03',
'council': '',
'slug': 'c'
},
{
'address': '56 Mickleton Dr, Southport',
'postcode': 'PR82QX',
'polling_station_id': 'A04',
'council': '',
'slug': 'd'
},
{
'address': '5-6 Mickleton Dr, Southport',
'postcode': 'BT281QZ',
'polling_station_id': 'A05',
'council': '',
'slug': 'e'
},
{
'address': '56 Mickleton Dr, Southport',
'postcode': 'BT281QZ',
'polling_station_id': 'A04',
'council': '',
'slug': 'f'
},
]
expected = set([
Address(
address='5-6 Mickleton Dr, Southport',
postcode='BT281QZ',
polling_station_id='A05',
council='',
slug='e'),
Address(
address='56 Mickleton Dr, Southport',
postcode='BT281QZ',
polling_station_id='A04',
council='',
slug='f'),
])
address_list = AddressSet(MockLogger())
for el in in_list:
address_list.add(el)
result = address_list.remove_ambiguous_addresses()
self.assertEqual(expected, result)
def test_remove_ambiguous_addresses_some_stations_match(self):
# if one polling station doesn't match, we should remove all of them
in_list = [
{
'address': 'Abbeyvale Dr, Liverpool',
'postcode': 'L252NW',
'polling_station_id': 'AA',
'council': '',
'slug': 'a'
},
{
'address': 'Abbeyvale Dr, Liverpool',
'postcode': 'L252NW',
'polling_station_id': 'AA',
'council': '',
'slug': 'b'
},
{
'address': 'Abbeyvale Dr, Liverpool',
'postcode': 'L252NW',
'polling_station_id': 'AB',
'council': '',
'slug': 'c'
},
{
'address': 'Abbeyvale Dr, Liverpool',
'postcode': 'L252NW',
'polling_station_id': 'AA',
'council': '',
'slug': 'd'
},
]
address_list = AddressSet(MockLogger())
for el in in_list:
address_list.add(el)
result = address_list.remove_ambiguous_addresses()
self.assertEqual(set(), result)
def test_remove_ambiguous_addresses_whole_postcode(self):
# if we've got one ambiguous address,
# we should remove all addresse with the same postcode
in_list = [
{
'address': '1 Abbeyvale Dr, Liverpool',
'postcode': 'L252NW',
'polling_station_id': 'AA',
'council': '',
'slug': 'a'
},
{
'address': '2 Abbeyvale Dr, Liverpool',
'postcode': 'L252NW',
'polling_station_id': 'AA',
'council': '',
'slug': 'b'
},
{
'address': '3 Abbeyvale Dr, Liverpool',
'postcode': 'L252NW',
'polling_station_id': 'AB',
'council': '',
'slug': 'c'
},
{
'address': '3 Abbeyvale Dr, Liverpool',
'postcode': 'L252NW',
'polling_station_id': 'AA',
'council': '',
'slug': 'd'
},
]
address_list = AddressSet(MockLogger())
for el in in_list:
address_list.add(el)
result = address_list.remove_ambiguous_addresses()
self.assertEqual(set(), result)
def test_remove_ambiguous_addresses_no_issues(self):
# if there are no ambiguous addresses,
# we shouldn't do anything
in_list = [
{
'address': '1 Abbeyvale Dr, Liverpool',
'postcode': 'L252NW',
'polling_station_id': 'AA',
'council': '',
'slug': 'a'
},
{
'address': '2 Abbeyvale Dr, Liverpool',
'postcode': 'L252NW',
'polling_station_id': 'AA',
'council': '',
'slug': 'b'
},
{
'address': '3 Abbeyvale Dr, Liverpool',
'postcode': 'L252NW',
'polling_station_id': 'AB',
'council': '',
'slug': 'c'
},
{
'address': '4 Abbeyvale Dr, Liverpool',
'postcode': 'L252NW',
'polling_station_id': 'AA',
'council': '',
'slug': 'd'
},
]
address_list = AddressSet(MockLogger())
for el in in_list:
address_list.add(el)
expected = set(address_list.elements)
result = address_list.remove_ambiguous_addresses()
self.assertEqual(expected, result)
| 32
| 103
| 0.443937
| 695
| 8,544
| 5.27482
| 0.159712
| 0.110747
| 0.122204
| 0.091653
| 0.797872
| 0.789416
| 0.745772
| 0.745772
| 0.732133
| 0.663666
| 0
| 0.026327
| 0.426498
| 8,544
| 266
| 104
| 32.120301
| 0.721837
| 0.060627
| 0
| 0.625
| 0
| 0
| 0.246408
| 0.010965
| 0
| 0
| 0
| 0
| 0.026786
| 1
| 0.03125
| false
| 0.004464
| 0.008929
| 0
| 0.049107
| 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
|
3b06cedc1d6ed4d2c22384ff8a56d958d2460246
| 170
|
py
|
Python
|
src/Server/MessageTransferSystem/VersionControlSystem/Tools/returnLastestVersion.py
|
Sniper970119/MemoryAssistInPython
|
434efd09edbda7919a3f754374add7f34912fab7
|
[
"MIT"
] | 19
|
2019-02-11T01:39:32.000Z
|
2022-03-05T05:14:34.000Z
|
src/Server/MessageTransferSystem/VersionControlSystem/Tools/returnLastestVersion.py
|
Sniper970119/MemoryAssistInPython
|
434efd09edbda7919a3f754374add7f34912fab7
|
[
"MIT"
] | 1
|
2020-02-04T15:20:04.000Z
|
2020-06-04T05:02:06.000Z
|
src/Server/MessageTransferSystem/VersionControlSystem/Tools/returnLastestVersion.py
|
Sniper970119/MemoryAssistInPython
|
434efd09edbda7919a3f754374add7f34912fab7
|
[
"MIT"
] | 5
|
2019-04-20T07:23:25.000Z
|
2021-03-24T03:13:01.000Z
|
# -*- coding:utf-8 -*-
from src.Server.Conf.config import *
class ReturnLastestVersion():
def __init__(self):
pass
def returnVersion(self):
pass
| 18.888889
| 36
| 0.629412
| 19
| 170
| 5.421053
| 0.842105
| 0.15534
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007752
| 0.241176
| 170
| 9
| 37
| 18.888889
| 0.790698
| 0.117647
| 0
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.333333
| 0.166667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
3b101d1aae3f9a5f00703922a380258ca1155fb4
| 8,225
|
py
|
Python
|
clinomics/todo/tests.py
|
godfatherofdevil/scalors-assignment-backend
|
fc8d676c5d5b2ae4280301910ba49f93b96de66e
|
[
"MIT"
] | null | null | null |
clinomics/todo/tests.py
|
godfatherofdevil/scalors-assignment-backend
|
fc8d676c5d5b2ae4280301910ba49f93b96de66e
|
[
"MIT"
] | null | null | null |
clinomics/todo/tests.py
|
godfatherofdevil/scalors-assignment-backend
|
fc8d676c5d5b2ae4280301910ba49f93b96de66e
|
[
"MIT"
] | null | null | null |
from django.urls import reverse
from django.contrib.auth.models import User
from rest_framework.test import APITestCase
from rest_framework import status
from .models import Board, Todo, Reminder
class BoardTest(APITestCase):
def setUp(self) -> None:
"""
setup test environment
"""
self.test_user = User.objects.create_user(username="tempUser", password="temp@123")
def test_create_board(self):
self.client.force_login(self.test_user)
url = reverse("boardList")
data = {"name": "foo"}
response = self.client.post(url, data, format="json")
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Board.objects.count(), 1)
self.assertEqual(Board.objects.get().name, "foo")
# list
response = self.client.get(url)
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data[0].get("name"), "foo")
self.assertEqual(response.data[0].get("todo_count"), 0)
def test_list_one(self):
self.client.force_login(self.test_user)
url = reverse("boardList")
items = [{"name": "foo"}, {"name": "bar"}]
# create multiple
for item in items:
self.client.post(url, item, format="json")
# get one
response = self.client.get(f"{url}/1")
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data.get("name"), "foo")
response = self.client.get(f"{url}/2")
self.assertEqual(response.data.get("name"), "bar")
def test_board_change_title(self):
self.client.force_login(self.test_user)
url = reverse("boardList")
data = {"name": "foo"}
self.client.post(url, data, format="json")
self.assertEqual(Board.objects.get().name, "foo")
response = self.client.patch(f"{url}/1", data={"name": "bar"}, format="json")
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(Board.objects.get().name, "bar")
def test_board_remove_one(self):
self.client.force_login(self.test_user)
url = reverse("boardList")
data = {"name": "foo"}
self.client.post(url, data, format="json")
self.assertEqual(Board.objects.get().name, "foo")
response = self.client.delete(f"{url}/1")
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
self.assertEqual(Board.objects.count(), 0)
class TodoTest(APITestCase):
def setUp(self) -> None:
"""
setup test environment
"""
self.test_user = User.objects.create_user(username="tempUser", password="temp@123")
self.client.force_login(self.test_user)
url = reverse("boardList")
items = [{"name": "foo"}, {"name": "bar"}]
# create multiple
for item in items:
self.client.post(url, item, format="json")
def test_todo_add(self):
url = reverse("boardList")
todo = {"title": "i am foo"}
response = self.client.post(f"{url}/1/todo", data=todo, format="json")
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Todo.objects.count(), 1)
self.assertEqual(Todo.objects.get().title, "i am foo")
# list
another_todo = {"title": "i am bar"}
self.client.post(f"{url}/1/todo", data=another_todo, format="json")
self.assertEqual(Todo.objects.count(), 2)
response = self.client.get(f"{url}/1/todo")
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(len(response.data), 2)
def test_todo_uncompleted(self):
url = reverse("boardList")
todos = [{"title": "i am foo"}, {"title": "i am bar"}, ]
for todo in todos:
self.client.post(f"{url}/2/todo", data=todo, format="json")
# new has status not done by default
response = self.client.get(f"{url}/2/todo?done={False}")
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(len(response.data), 2)
for d in response.data:
self.assertEqual(d.get("done"), False)
# change one's status to done
self.client.patch(f"{url}/2/todo/1", data={"done": True}, format="json")
response = self.client.get(f"{url}/2/todo?done={False}")
self.assertEqual(len(response.data), 1)
for d in response.data:
self.assertEqual(d.get("done"), False)
def test_todo_update(self):
url = reverse("boardList")
todo = {"title": "i am batman"}
self.client.post(f"{url}/1/todo", data=todo, format="json")
self.assertEqual(Todo.objects.get().title, "i am batman")
self.assertEqual(Todo.objects.get().done, False)
# change the title
response = self.client.patch(f"{url}/1/todo/1",
data={"title": "i am batman and i live in gotham city"},
format="json"
)
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(Todo.objects.get().title, "i am batman and i live in gotham city")
self.assertEqual(Todo.objects.get().done, False)
# change the status
response = self.client.patch(f"{url}/1/todo/1", data={"done": True}, format="json")
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(Todo.objects.get().title, "i am batman and i live in gotham city")
self.assertEqual(Todo.objects.get().done, True)
def test_todo_delete(self):
url = reverse("boardList")
todo = {"title": "i am batman"}
self.client.post(f"{url}/1/todo", data=todo, format="json")
self.assertEqual(Todo.objects.count(), 1)
# delete
response = self.client.delete(f"{url}/1/todo/1")
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
self.assertEqual(Todo.objects.count(), 0)
class ReminderTest(APITestCase):
def setUp(self) -> None:
"""
setup test environment
"""
self.test_user = User.objects.create_user(username="tempUser", password="temp@123")
self.client.force_login(self.test_user)
def test_reminder_create(self):
url = reverse("reminderList")
reminder = {
"email": "foo@bar.com",
"text": "testing foo service.",
"delay": 10
}
response = self.client.post(url, data=reminder, format="json")
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Reminder.objects.count(), 1)
self.assertEqual(Reminder.objects.get().email, "foo@bar.com")
self.assertEqual(Reminder.objects.get().owner.username, "tempUser")
# list reminders
response = self.client.get(f"{url}")
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data[0].get("email"), "foo@bar.com")
another = {
"email": "bar@foo.com",
"text": "testing bar service.",
"delay": 10
}
self.client.post(url, data=another, format="json")
self.assertEqual(Reminder.objects.count(), 2)
# list reminders
response = self.client.get(url)
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(len(response.data), 2)
self.assertEqual(response.data[0].get("email"), "foo@bar.com")
self.assertEqual(response.data[1].get("email"), "bar@foo.com")
def test_reminder_delete(self):
url = reverse("reminderList")
reminder = {
"email": "foo@bar.com",
"text": "testing foo service.",
"delay": 10
}
self.client.post(url, data=reminder, format="json")
self.assertEqual(Reminder.objects.count(), 1)
# delete one
response = self.client.delete(f"{url}/1")
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
self.assertEqual(Reminder.objects.count(), 0)
| 38.981043
| 93
| 0.611064
| 1,029
| 8,225
| 4.793975
| 0.105928
| 0.155078
| 0.102575
| 0.088182
| 0.860328
| 0.818163
| 0.771944
| 0.71194
| 0.67464
| 0.654571
| 0
| 0.016173
| 0.240729
| 8,225
| 210
| 94
| 39.166667
| 0.773739
| 0.032219
| 0
| 0.575163
| 0
| 0
| 0.123762
| 0.006347
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.084967
| false
| 0.019608
| 0.03268
| 0
| 0.137255
| 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
|
3b2479a14449ea1fcae129d41ba94975478829b6
| 193
|
py
|
Python
|
APU/sweep/sweep.py
|
RollMan/famicom_GO
|
3a1b9de670ff8691357ba7980dda7aee3cbdfc96
|
[
"MIT"
] | null | null | null |
APU/sweep/sweep.py
|
RollMan/famicom_GO
|
3a1b9de670ff8691357ba7980dda7aee3cbdfc96
|
[
"MIT"
] | null | null | null |
APU/sweep/sweep.py
|
RollMan/famicom_GO
|
3a1b9de670ff8691357ba7980dda7aee3cbdfc96
|
[
"MIT"
] | null | null | null |
for i in range(1, 8):
print("N == " + str(i) + " : if(n) period_r := period_r - (period_r >> " + str(i) + ");")
print(" else period_r := period_r + (period_r >> " + str(i) + ");")
| 48.25
| 91
| 0.471503
| 30
| 193
| 2.833333
| 0.433333
| 0.494118
| 0.611765
| 0.658824
| 0.588235
| 0.588235
| 0.588235
| 0.588235
| 0
| 0
| 0
| 0.014085
| 0.264249
| 193
| 3
| 92
| 64.333333
| 0.584507
| 0
| 0
| 0
| 0
| 0
| 0.544041
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.666667
| 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
|
3b319a71b8883982c5983eefb3cef8b321d8cb66
| 319
|
py
|
Python
|
app/model.py
|
fauziwei/_flask_
|
a2e8ed2f459df289945fa7942b23e9e02da63bb8
|
[
"Apache-2.0"
] | null | null | null |
app/model.py
|
fauziwei/_flask_
|
a2e8ed2f459df289945fa7942b23e9e02da63bb8
|
[
"Apache-2.0"
] | null | null | null |
app/model.py
|
fauziwei/_flask_
|
a2e8ed2f459df289945fa7942b23e9e02da63bb8
|
[
"Apache-2.0"
] | null | null | null |
# coding: utf-8
'''Fauzi, fauzi@soovii.com'''
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class CRUD:
def add(self, obj):
db.session.add(obj)
return db.session.commit()
def update(self):
return db.session.commit()
def delete(self, obj):
db.session.delete(obj)
return db.session.commit()
| 16.789474
| 39
| 0.702194
| 47
| 319
| 4.744681
| 0.468085
| 0.201794
| 0.201794
| 0.282511
| 0.336323
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00369
| 0.15047
| 319
| 18
| 40
| 17.722222
| 0.819188
| 0.119122
| 0
| 0.272727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.272727
| false
| 0
| 0.090909
| 0.090909
| 0.727273
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
3b90439a4648d0c13c64f4f3355bdba1d8c126c8
| 239
|
py
|
Python
|
API/admin.py
|
Mazahir26/Blog-App-Backend
|
77e6e52e02a7a00ba68d36c66d47c84332b68b45
|
[
"MIT"
] | 1
|
2021-10-22T04:30:41.000Z
|
2021-10-22T04:30:41.000Z
|
API/admin.py
|
Mazahir26/Blog-App-Backend
|
77e6e52e02a7a00ba68d36c66d47c84332b68b45
|
[
"MIT"
] | null | null | null |
API/admin.py
|
Mazahir26/Blog-App-Backend
|
77e6e52e02a7a00ba68d36c66d47c84332b68b45
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Analytics_event, Notification_Id, Notification
# Register your models here.
admin.site.register(Analytics_event)
admin.site.register(Notification_Id)
admin.site.register(Notification)
| 26.555556
| 66
| 0.841004
| 31
| 239
| 6.354839
| 0.451613
| 0.137056
| 0.258883
| 0.294416
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083682
| 239
| 8
| 67
| 29.875
| 0.899543
| 0.108787
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.4
| 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
|
3b96d41edebe549a13312c1a0909899684e3f81d
| 1,192
|
py
|
Python
|
setup.py
|
anjanadev96/NURBS_Diff
|
21937912e8648c3c78416968401fe13458223b0d
|
[
"BSD-3-Clause"
] | 5
|
2021-11-19T13:25:05.000Z
|
2022-03-15T13:43:15.000Z
|
setup.py
|
anjanadev96/NURBS_Diff
|
21937912e8648c3c78416968401fe13458223b0d
|
[
"BSD-3-Clause"
] | 1
|
2022-02-14T02:58:45.000Z
|
2022-02-14T02:58:45.000Z
|
setup.py
|
anjanadev96/NURBS_Diff
|
21937912e8648c3c78416968401fe13458223b0d
|
[
"BSD-3-Clause"
] | 1
|
2022-02-11T02:12:09.000Z
|
2022-02-11T02:12:09.000Z
|
from setuptools import setup, find_packages
from torch.utils.cpp_extension import BuildExtension, CppExtension,CUDAExtension
import os
setup(
name='torch_nurbs_eval',
ext_modules=[
CppExtension(name='torch_nurbs_eval.curve_eval_cpp',
sources=['torch_nurbs_eval/csrc/curve_eval.cpp','torch_nurbs_eval/csrc/utils.cpp'],
extra_include_paths=['torch_nurbs_eval/csrc/utils.h','torch_nurbs_eval/csrc/curve_eval.h']),
CppExtension(name='torch_nurbs_eval.surf_eval_cpp',
sources=['torch_nurbs_eval/csrc/surf_eval.cpp','torch_nurbs_eval/csrc/utils.cpp'],
extra_include_paths=['torch_nurbs_eval/csrc/utils.h','torch_nurbs_eval/csrc/surf_eval.h']),
CUDAExtension(name='torch_nurbs_eval.curve_eval_cuda',
sources=['torch_nurbs_eval/csrc/curve_eval_cuda.cpp',
'torch_nurbs_eval/csrc/curve_eval_cuda_kernel.cu']),
CUDAExtension(name='torch_nurbs_eval.surf_eval_cuda',
sources=['torch_nurbs_eval/csrc/surf_eval_cuda.cpp',
'torch_nurbs_eval/csrc/surf_eval_cuda_kernel.cu']),
],
cmdclass={
'build_ext': BuildExtension
},
packages=find_packages(),)
| 47.68
| 104
| 0.716443
| 159
| 1,192
| 4.962264
| 0.201258
| 0.215463
| 0.301648
| 0.273764
| 0.724968
| 0.661597
| 0.525982
| 0.233207
| 0.233207
| 0.233207
| 0
| 0
| 0.162752
| 1,192
| 24
| 105
| 49.666667
| 0.790581
| 0
| 0
| 0
| 0
| 0
| 0.487416
| 0.466443
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.130435
| 0
| 0.130435
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
3b96d452eb589ba62537e6d4724c2279c438008f
| 74
|
py
|
Python
|
spectralmix/mixmodel/__init__.py
|
ksiomelo/cubix
|
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
|
[
"Apache-2.0"
] | 3
|
2015-09-07T00:16:16.000Z
|
2019-01-11T20:27:56.000Z
|
spectralmix/mixmodel/__init__.py
|
ksiomelo/cubix
|
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
|
[
"Apache-2.0"
] | null | null | null |
spectralmix/mixmodel/__init__.py
|
ksiomelo/cubix
|
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
|
[
"Apache-2.0"
] | null | null | null |
import numpy as np
from TwoComponentGaussEM import TwoComponentGaussian
| 14.8
| 52
| 0.864865
| 8
| 74
| 8
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135135
| 74
| 4
| 53
| 18.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
8e61cddc395f2f0aca3156e7667c46cda86e7893
| 57
|
py
|
Python
|
my_package/__main__.py
|
leowindwave/YAPT
|
ee5ec568ed746f90a18dc514836624d435a7ccdb
|
[
"CC0-1.0"
] | null | null | null |
my_package/__main__.py
|
leowindwave/YAPT
|
ee5ec568ed746f90a18dc514836624d435a7ccdb
|
[
"CC0-1.0"
] | null | null | null |
my_package/__main__.py
|
leowindwave/YAPT
|
ee5ec568ed746f90a18dc514836624d435a7ccdb
|
[
"CC0-1.0"
] | null | null | null |
print("my_package/__main__.py executed")
import my_module
| 28.5
| 40
| 0.842105
| 9
| 57
| 4.666667
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.052632
| 57
| 2
| 41
| 28.5
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0.534483
| 0.37931
| 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
|
8eb38600fb451d9c142afde1f964a839d7956e23
| 221
|
py
|
Python
|
Mundo3/Tuplas/Desafio#74.py
|
kaio358/Python
|
16f55e6ff056d97b2f28e68f95eafc9ab7d4e2b1
|
[
"MIT"
] | null | null | null |
Mundo3/Tuplas/Desafio#74.py
|
kaio358/Python
|
16f55e6ff056d97b2f28e68f95eafc9ab7d4e2b1
|
[
"MIT"
] | null | null | null |
Mundo3/Tuplas/Desafio#74.py
|
kaio358/Python
|
16f55e6ff056d97b2f28e68f95eafc9ab7d4e2b1
|
[
"MIT"
] | null | null | null |
from random import randint
numero = (randint(1,10),randint(1,10),randint(1,10),randint(1,10),randint(1,10))
print('Numeros sorteados :',numero)
print('O maior numero : ',max(numero))
print('O menor numero : ',min(numero))
| 44.2
| 80
| 0.714932
| 36
| 221
| 4.388889
| 0.416667
| 0.253165
| 0.316456
| 0.43038
| 0.316456
| 0.316456
| 0.316456
| 0.316456
| 0.316456
| 0.316456
| 0
| 0.074257
| 0.085973
| 221
| 5
| 81
| 44.2
| 0.707921
| 0
| 0
| 0
| 0
| 0
| 0.238739
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.2
| 0.6
| 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
|
8ec92047bdeec8f41f099a8eb0fa508fb9bf02d7
| 82
|
py
|
Python
|
helloworld.py
|
helcheng/helloworld
|
96350eb2db1b973c2905f66922c3527a0d653549
|
[
"Unlicense"
] | null | null | null |
helloworld.py
|
helcheng/helloworld
|
96350eb2db1b973c2905f66922c3527a0d653549
|
[
"Unlicense"
] | null | null | null |
helloworld.py
|
helcheng/helloworld
|
96350eb2db1b973c2905f66922c3527a0d653549
|
[
"Unlicense"
] | null | null | null |
print("Hello world. This my first python program.")
print("This is the master.")
| 27.333333
| 52
| 0.719512
| 13
| 82
| 4.538462
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.146341
| 82
| 2
| 53
| 41
| 0.842857
| 0
| 0
| 0
| 0
| 0
| 0.743902
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
8ed6a8133dbb1d2a05a992d336bbd8c078367f53
| 96
|
py
|
Python
|
venv/lib/python3.8/site-packages/tests/test_parse.py
|
Retraces/UkraineBot
|
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
|
[
"MIT"
] | 2
|
2022-03-13T01:58:52.000Z
|
2022-03-31T06:07:54.000Z
|
venv/lib/python3.8/site-packages/tests/test_parse.py
|
DesmoSearch/Desmobot
|
b70b45df3485351f471080deb5c785c4bc5c4beb
|
[
"MIT"
] | 19
|
2021-11-20T04:09:18.000Z
|
2022-03-23T15:05:55.000Z
|
venv/lib/python3.8/site-packages/tests/test_parse.py
|
DesmoSearch/Desmobot
|
b70b45df3485351f471080deb5c785c4bc5c4beb
|
[
"MIT"
] | null | null | null |
/home/runner/.cache/pip/pool/47/ea/a4/fa38d9bc942ab691d32b97edc43c08766803702ed0f767d08c0abcf0aa
| 96
| 96
| 0.895833
| 9
| 96
| 9.555556
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.385417
| 0
| 96
| 1
| 96
| 96
| 0.510417
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8ee03313125a1e2bd267759411ba1705a50108f2
| 107
|
py
|
Python
|
causal_inference/__init__.py
|
quiet-minds/neural-field-dynamics
|
cd17dfdd758c18c47d409b0c7223054b570bcff3
|
[
"MIT"
] | 4
|
2020-11-28T23:24:19.000Z
|
2022-01-08T21:58:50.000Z
|
causal_inference/__init__.py
|
quiet-minds/neural-field-dynamics
|
cd17dfdd758c18c47d409b0c7223054b570bcff3
|
[
"MIT"
] | null | null | null |
causal_inference/__init__.py
|
quiet-minds/neural-field-dynamics
|
cd17dfdd758c18c47d409b0c7223054b570bcff3
|
[
"MIT"
] | 3
|
2020-08-20T15:07:35.000Z
|
2021-04-15T02:31:52.000Z
|
"""
Importing core modules
"""
from .base.lotka_volterra import LotkaVolterra
from .config import LV_PARAMS
| 21.4
| 46
| 0.803738
| 14
| 107
| 6
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.11215
| 107
| 5
| 47
| 21.4
| 0.884211
| 0.205607
| 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
|
d90ed78aec4177c27c77653b3de7a899ca5b16f0
| 231
|
py
|
Python
|
NotionFlash/ankiservice/service.py
|
furiiibond/NotionFlash
|
8f6abe30af4df8da0c84d20079c5a64a50c0d823
|
[
"MIT"
] | 8
|
2021-11-30T08:59:57.000Z
|
2022-03-10T20:36:06.000Z
|
NotionFlash/ankiservice/service.py
|
furiiibond/NotionFlash
|
8f6abe30af4df8da0c84d20079c5a64a50c0d823
|
[
"MIT"
] | 8
|
2021-12-06T04:05:24.000Z
|
2021-12-15T20:22:42.000Z
|
NotionFlash/ankiservice/service.py
|
furiiibond/NotionFlash
|
8f6abe30af4df8da0c84d20079c5a64a50c0d823
|
[
"MIT"
] | 2
|
2022-01-11T09:46:50.000Z
|
2022-02-01T06:26:06.000Z
|
import logging
import ankiservice.api as ankiAPI
# Get logger
logger = logging.getLogger(__name__)
def downloadMedia(url, filename):
ankiAPI.downloadMedia(url, filename)
def addCard(card):
return ankiAPI.addCard(card)
| 16.5
| 40
| 0.766234
| 28
| 231
| 6.178571
| 0.607143
| 0.184971
| 0.277457
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.147186
| 231
| 13
| 41
| 17.769231
| 0.878173
| 0.04329
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.285714
| 0.142857
| 0.714286
| 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
|
d924638f90a1724d9aa8191dc97be46b7a943eea
| 73
|
py
|
Python
|
pyislam/exceptions.py
|
Moha369/PyIslam
|
5c8b8a4517dc1da91f0be3284d038709e71b8462
|
[
"MIT"
] | 2
|
2021-02-07T03:22:47.000Z
|
2021-05-08T10:00:08.000Z
|
pyislam/exceptions.py
|
Moha369/PyIslam
|
5c8b8a4517dc1da91f0be3284d038709e71b8462
|
[
"MIT"
] | null | null | null |
pyislam/exceptions.py
|
Moha369/PyIslam
|
5c8b8a4517dc1da91f0be3284d038709e71b8462
|
[
"MIT"
] | null | null | null |
class ChapterError(Exception):
pass
class VerseError(Exception):
pass
| 12.166667
| 30
| 0.794521
| 8
| 73
| 7.25
| 0.625
| 0.448276
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123288
| 73
| 5
| 31
| 14.6
| 0.90625
| 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
|
d958d94709aaa2655caa7d6dece71b30acc0854f
| 22
|
py
|
Python
|
fcsparser/_version.py
|
cytoflow/fcsparser
|
98fa33836ed1598a87997555d6dedad2be979502
|
[
"MIT"
] | null | null | null |
fcsparser/_version.py
|
cytoflow/fcsparser
|
98fa33836ed1598a87997555d6dedad2be979502
|
[
"MIT"
] | null | null | null |
fcsparser/_version.py
|
cytoflow/fcsparser
|
98fa33836ed1598a87997555d6dedad2be979502
|
[
"MIT"
] | null | null | null |
version = "0.2.1+bt1"
| 11
| 21
| 0.590909
| 5
| 22
| 2.6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.210526
| 0.136364
| 22
| 1
| 22
| 22
| 0.473684
| 0
| 0
| 0
| 0
| 0
| 0.409091
| 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
|
d95b05f2949a65bca53debe999ce62eac33e366a
| 89
|
py
|
Python
|
tests/test_beaker.py
|
alexrudy/beaker
|
9fa394e7d0dc9a4b9946d89587ad83a4d44fb662
|
[
"MIT"
] | null | null | null |
tests/test_beaker.py
|
alexrudy/beaker
|
9fa394e7d0dc9a4b9946d89587ad83a4d44fb662
|
[
"MIT"
] | null | null | null |
tests/test_beaker.py
|
alexrudy/beaker
|
9fa394e7d0dc9a4b9946d89587ad83a4d44fb662
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
"""Tests for `beaker` package."""
def test_something():
pass
| 12.714286
| 33
| 0.640449
| 12
| 89
| 4.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.168539
| 89
| 6
| 34
| 14.833333
| 0.756757
| 0.539326
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 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
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
d987dd96f09142ca5bc3854aa2f87667cc8bac84
| 124
|
py
|
Python
|
volunteer/admin.py
|
witty-technologies-empowerment/codeupblood
|
a0aa1725e5776d80e083b6d4e9e67476bb97e983
|
[
"MIT"
] | null | null | null |
volunteer/admin.py
|
witty-technologies-empowerment/codeupblood
|
a0aa1725e5776d80e083b6d4e9e67476bb97e983
|
[
"MIT"
] | null | null | null |
volunteer/admin.py
|
witty-technologies-empowerment/codeupblood
|
a0aa1725e5776d80e083b6d4e9e67476bb97e983
|
[
"MIT"
] | 1
|
2022-01-19T11:09:13.000Z
|
2022-01-19T11:09:13.000Z
|
from django.contrib import admin
from .models import Volunteer
# Register your models here.
admin.site.register(Volunteer)
| 20.666667
| 32
| 0.814516
| 17
| 124
| 5.941176
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.120968
| 124
| 6
| 33
| 20.666667
| 0.926606
| 0.209677
| 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
|
d98ed5e49478003636069ab30f0832d5b016e3c3
| 165
|
py
|
Python
|
CVhome/admin.py
|
siavashMehran/Portfolio
|
a592ec51122d96e8e336365fd3cd039a7f223221
|
[
"MIT"
] | null | null | null |
CVhome/admin.py
|
siavashMehran/Portfolio
|
a592ec51122d96e8e336365fd3cd039a7f223221
|
[
"MIT"
] | null | null | null |
CVhome/admin.py
|
siavashMehran/Portfolio
|
a592ec51122d96e8e336365fd3cd039a7f223221
|
[
"MIT"
] | null | null | null |
from CVhome.models import Home, SiteSetting
from django.contrib import admin
# Register your models here.
admin.site.register(Home)
admin.site.register(SiteSetting)
| 27.5
| 43
| 0.824242
| 23
| 165
| 5.913043
| 0.565217
| 0.132353
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.09697
| 165
| 6
| 44
| 27.5
| 0.912752
| 0.157576
| 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
|
79475b38085f2476af2828a97d01f3ae26f34cf6
| 315
|
py
|
Python
|
test.py
|
RapDoodle8080/mooli-milk-tea-management-system
|
9b6e31664529ac70d180da2f219baf0eb902017b
|
[
"MIT"
] | 1
|
2021-05-29T09:40:42.000Z
|
2021-05-29T09:40:42.000Z
|
test.py
|
RapDoodle/Mooli-Ordering-System
|
9b6e31664529ac70d180da2f219baf0eb902017b
|
[
"MIT"
] | 1
|
2020-10-28T02:10:24.000Z
|
2020-10-28T02:10:24.000Z
|
test.py
|
RapDoodle/Mooli-Ordering-System
|
9b6e31664529ac70d180da2f219baf0eb902017b
|
[
"MIT"
] | 1
|
2021-05-29T09:40:41.000Z
|
2021-05-29T09:40:41.000Z
|
from setup import init_test_db
init_test_db()
import tests.test_category
import tests.test_product
import tests.test_user
import tests.test_redeem_card
import tests.test_coupon
import tests.test_cart_item
import tests.test_order
import tests.test_archive
import tests.test_role_permission
import tests.test_staff
| 21
| 33
| 0.87619
| 52
| 315
| 4.980769
| 0.384615
| 0.42471
| 0.579151
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085714
| 315
| 14
| 34
| 22.5
| 0.899306
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.916667
| 0
| 0.916667
| 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
|
7974a4190facb5c5aa10d568a08a8d4d5704aced
| 257
|
py
|
Python
|
catcmd/config/qconfigs/__init__.py
|
project-catapult/catapult_cmd
|
439527b9d986ebdadd154a1245d851a74ac5b83a
|
[
"MIT"
] | null | null | null |
catcmd/config/qconfigs/__init__.py
|
project-catapult/catapult_cmd
|
439527b9d986ebdadd154a1245d851a74ac5b83a
|
[
"MIT"
] | null | null | null |
catcmd/config/qconfigs/__init__.py
|
project-catapult/catapult_cmd
|
439527b9d986ebdadd154a1245d851a74ac5b83a
|
[
"MIT"
] | null | null | null |
from .q_env import questions as env_qs
from .q_git import questions as git_qs
from .q_user import questions as user_qs
from .q_cloud import questions as cloud_qs
from .q_project import questions as project_qs
from .q_catapult import questions as catapult_qs
| 42.833333
| 48
| 0.840467
| 48
| 257
| 4.25
| 0.25
| 0.147059
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136187
| 257
| 6
| 48
| 42.833333
| 0.918919
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 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
|
7995fa4f0ee097d8264bb794e520a15223a42293
| 67
|
py
|
Python
|
test.py
|
Laezor/cleverbotfreeapi
|
9e1438a1af1a84c6d4f05c0573a8fb56b9682fef
|
[
"MIT"
] | 1
|
2021-05-06T15:44:19.000Z
|
2021-05-06T15:44:19.000Z
|
test.py
|
Laezor/cleverbotfreeapi
|
9e1438a1af1a84c6d4f05c0573a8fb56b9682fef
|
[
"MIT"
] | null | null | null |
test.py
|
Laezor/cleverbotfreeapi
|
9e1438a1af1a84c6d4f05c0573a8fb56b9682fef
|
[
"MIT"
] | null | null | null |
import cleverbotfreeapi
print(cleverbotfreeapi.cleverbot("Hello")
| 16.75
| 41
| 0.850746
| 6
| 67
| 9.5
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.059701
| 67
| 3
| 42
| 22.333333
| 0.904762
| 0
| 0
| 0
| 0
| 0
| 0.074627
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.5
| null | null | 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
79a20cfb15fb56907070f30f7fbca1de79e24826
| 24
|
py
|
Python
|
__init__.py
|
rryan/pelican-entities
|
845df2bb3bf6be6000732765176ad3bf8f38e852
|
[
"Apache-2.0"
] | 12
|
2015-03-09T20:52:26.000Z
|
2021-09-27T12:57:23.000Z
|
__init__.py
|
rryan/pelican-entities
|
845df2bb3bf6be6000732765176ad3bf8f38e852
|
[
"Apache-2.0"
] | 5
|
2016-07-22T15:17:14.000Z
|
2021-02-15T19:01:05.000Z
|
__init__.py
|
rryan/pelican-entities
|
845df2bb3bf6be6000732765176ad3bf8f38e852
|
[
"Apache-2.0"
] | 7
|
2016-07-10T00:52:04.000Z
|
2021-07-08T06:19:23.000Z
|
from .entities import *
| 12
| 23
| 0.75
| 3
| 24
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 24
| 1
| 24
| 24
| 0.9
| 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
|
79d97088cb9c346e2f93ebd13af18a4ac6d4a6da
| 76
|
py
|
Python
|
vk/bot_framework/addons/validators/__init__.py
|
Inzilkin/vk.py
|
969f01e666c877c1761c3629a100768f93de27eb
|
[
"MIT"
] | 24
|
2019-09-13T15:30:09.000Z
|
2022-03-09T06:35:59.000Z
|
vk/bot_framework/addons/validators/__init__.py
|
Inzilkin/vk.py
|
969f01e666c877c1761c3629a100768f93de27eb
|
[
"MIT"
] | null | null | null |
vk/bot_framework/addons/validators/__init__.py
|
Inzilkin/vk.py
|
969f01e666c877c1761c3629a100768f93de27eb
|
[
"MIT"
] | 12
|
2019-09-13T15:30:31.000Z
|
2022-03-01T10:13:32.000Z
|
"""
Validators for message arguments.
"""
from .validators import Validator
| 15.2
| 33
| 0.763158
| 8
| 76
| 7.25
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131579
| 76
| 4
| 34
| 19
| 0.878788
| 0.434211
| 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
|
8dc23f8ff97f8396da3db29722c394f5e1209bc5
| 328
|
py
|
Python
|
ulmo/usace/swtwc/__init__.py
|
sblack-usu/ulmo
|
3213bf0302b44e77abdff1f3f66e7f1083571ce8
|
[
"BSD-3-Clause"
] | 123
|
2015-01-29T12:35:52.000Z
|
2021-12-15T21:09:33.000Z
|
ulmo/usace/swtwc/__init__.py
|
sblack-usu/ulmo
|
3213bf0302b44e77abdff1f3f66e7f1083571ce8
|
[
"BSD-3-Clause"
] | 107
|
2015-01-05T17:56:22.000Z
|
2021-11-19T22:46:23.000Z
|
ulmo/usace/swtwc/__init__.py
|
sblack-usu/ulmo
|
3213bf0302b44e77abdff1f3f66e7f1083571ce8
|
[
"BSD-3-Clause"
] | 49
|
2015-02-15T18:11:34.000Z
|
2022-01-25T14:25:32.000Z
|
"""
Access to data provided by the `United States Army
Corps of Engineers`_ - `Tulsa District Water Control`_ web site.
.. _United States Army Corps of Engineers: http://www.usace.army.mil/
.. _Tulsa District Water Control: http://www.swt-wc.usace.army.mil/
"""
from .core import get_station_data, get_stations
| 36.444444
| 73
| 0.716463
| 48
| 328
| 4.75
| 0.625
| 0.105263
| 0.140351
| 0.184211
| 0.280702
| 0.280702
| 0
| 0
| 0
| 0
| 0
| 0
| 0.17378
| 328
| 8
| 74
| 41
| 0.841328
| 0.77439
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
30b075abc254965e164090e59a4e1176b7583057
| 87
|
wsgi
|
Python
|
surveys.wsgi
|
GeoscienceAustralia/surveys-api
|
0937adf9c723e7d5a3a6e7961dbcb01cbbcfa179
|
[
"CC-BY-4.0"
] | null | null | null |
surveys.wsgi
|
GeoscienceAustralia/surveys-api
|
0937adf9c723e7d5a3a6e7961dbcb01cbbcfa179
|
[
"CC-BY-4.0"
] | null | null | null |
surveys.wsgi
|
GeoscienceAustralia/surveys-api
|
0937adf9c723e7d5a3a6e7961dbcb01cbbcfa179
|
[
"CC-BY-4.0"
] | null | null | null |
import sys
sys.path.insert(0, '/var/www/surveys/')
from app import app as application
| 17.4
| 39
| 0.747126
| 15
| 87
| 4.333333
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013158
| 0.126437
| 87
| 4
| 40
| 21.75
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0.195402
| 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
|
30d90a070d71ebe2b66d96dcae8efb06653e3364
| 119
|
py
|
Python
|
jadn/libs/message/proto/__init__.py
|
oasis-open/openc2-jadn-software
|
d3042d51633b1c94c480db4d56796e296e5f7084
|
[
"Apache-2.0"
] | 1
|
2019-04-21T14:44:14.000Z
|
2019-04-21T14:44:14.000Z
|
jadn/libs/message/proto/__init__.py
|
oasis-open/openc2-jadn-software
|
d3042d51633b1c94c480db4d56796e296e5f7084
|
[
"Apache-2.0"
] | 2
|
2021-03-31T18:54:51.000Z
|
2021-03-31T18:54:54.000Z
|
jadn/libs/message/proto/__init__.py
|
oasis-open/openc2-jadn-software
|
d3042d51633b1c94c480db4d56796e296e5f7084
|
[
"Apache-2.0"
] | 4
|
2019-07-05T13:28:32.000Z
|
2021-08-14T09:35:36.000Z
|
from .openc2_wd06_pb2 import OpenC2_Command, OpenC2_Response
__all__ = [
'OpenC2_Command',
'OpenC2_Response'
]
| 19.833333
| 60
| 0.756303
| 14
| 119
| 5.714286
| 0.571429
| 0.325
| 0.475
| 0.675
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08
| 0.159664
| 119
| 6
| 61
| 19.833333
| 0.72
| 0
| 0
| 0
| 0
| 0
| 0.241667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.2
| 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
|
30f13ada240aec54ab97dd3a19f025b0f7e70db9
| 60,666
|
py
|
Python
|
commands.py
|
thesky-cdn/bot-dokkan-battle
|
cea44eefef279969d0769edc27bbbe203ffa6c77
|
[
"MIT"
] | null | null | null |
commands.py
|
thesky-cdn/bot-dokkan-battle
|
cea44eefef279969d0769edc27bbbe203ffa6c77
|
[
"MIT"
] | null | null | null |
commands.py
|
thesky-cdn/bot-dokkan-battle
|
cea44eefef279969d0769edc27bbbe203ffa6c77
|
[
"MIT"
] | null | null | null |
import json
import requests
import datetime
from colorama import init, Fore, Style
import os as fs
import crypto
import api.transfer as transfer
import api.auth as auth
import api.outgame as outgame
import api.ingame as ingame
import api.farmbot as farmbot
import database
import webbrowser
import utils
init(autoreset=True)
farm = []
def checkDatabase(ver, os, token, secret):
print('checking database versions...')
store = outgame.getDatabase(ver, token, secret, None)
version = store['version']
if fs.path.isfile(ver + '-data.txt'):
f = open(ver + '-data.txt', 'r')
ver2 = f.readline().rstrip()
f.close()
if str(ver2) != str(version):
print(str(version))
fs.unlink(ver + '-data.txt')
print('downloading database... (this may take awhile.)')
database.download(ver, token, secret, version)
print(Fore.GREEN + 'done.')
else:
print('no database to download.')
else:
print(str(version))
print('downloading database... (this may take awhile.)')
database.download(ver, token, secret, version)
print(Fore.GREEN + 'done.')
def refresh():
ver = farm[0][0]
os = farm[0][1]
iden = farm[0][2]
store = auth.login(ver, os, crypto.basic(iden), False)
if 'error' not in store:
farm[0][3] = store['access_token']
farm[0][4] = store['secret']
print('client refreshed.')
else:
print(store)
def createSaveFile(ver, os, iden, save):
if len(save) >= 1:
if fs.path.isfile('./saves/'+save+'.txt'):
print('save name already exists.\npicking default name...')
f = open('./saves/save.txt', 'w')
f.write(ver+':'+os+'\n')
f.write(str(iden.replace('\n', '')) + '\n')
f.close()
else:
f = open('./saves/'+save+'.txt', 'w')
f.write(ver+':'+os+'\n')
f.write(str(iden.replace('\n', '')) + '\n')
f.close()
else:
print('save name is too small.\npicking default name...')
f = open('./saves/save.txt', 'w')
f.write(ver+':'+os+'\n')
f.write(str(iden.replace('\n', '')) + '\n')
f.close()
def checkTcLoop(ver, os, iden):
global farm
store = auth.login(ver, os, crypto.basic(iden), False)
if 'error' not in store:
if 'reason' not in store:
store = transfer.create(ver, os, store['access_token'], store['secret'])
if 'error' not in store:
fc = '000000000'
tc = str(store['link_code'])
store = transfer.validate(ver, tc, fc)
if 'error' not in store:
print(Fore.GREEN + tc)
return True
else:
print('transfer code not found. making new code...')
checkTcLoop(ver, os, iden)
else:
print(store)
else:
url = store['captcha_url']
key = store['captcha_session_key']
webbrowser.open(url, new=1, autoraise=True)
print('Complete CAPTCHA to login... Press ENTER when done.')
input()
checkTcLoop(ver, os, iden)
else:
print(store)
def Handler(msg):
global farm
args = msg.split(' ')
#===== base =====
#new
if args[0].lower() == 'new' and len(farm) == 0:
if len(args) == 3:
if args[1] == 'gb' or args[1] == 'jp':
if args[2] == 'ios' or args[2] == 'android':
store = auth.register(args[1], args[2])
if 'error' not in store:
print(store)
url = store[0]['captcha_url']
key = store[0]['captcha_session_key']
webbrowser.open(url, new=1, autoraise=True)
print('Complete CAPTCHA to continue... Press ENTER when done.')
input()
store = auth.register(args[1], args[2], store[1], store[2], key)
if 'error' not in store:
store = auth.login(args[1], args[2], crypto.basic(store[0]['identifier']), True)
if 'error' not in store:
farmbot.tutorial(args[1], args[2], store['access_token'], store['secret'])
else:
print(store)
else:
print(store)
else:
print(store)
else:
print('invalid OS input.')
else:
print('invalid version input.')
else:
print('gb/jp ios/android')
return 1
#transfer
if args[0].lower() == 'add' and len(farm) == 0:
if len(args) == 3:
if args[1] == 'gb' or args[1] == 'jp':
ver = args[1]
tc = args[2]
fc = '000000000'
store = transfer.validate(ver, tc, fc)
if 'error' not in store:
if not store['platform_difference']:
os = 'android'
else:
os = 'ios'
store = transfer.use(ver, os, tc, fc)
if 'error' not in store:
print(Fore.YELLOW + 'identifier for recover.\n' + store['identifiers'].replace('\n', ''))
iden = store['identifiers']
store = auth.login(ver, os, crypto.basic(iden), False)
if 'error' not in store:
if 'reason' not in store:
print(Fore.WHITE + 'What would you like to name this save?')
save = input().lower()
createSaveFile(ver, os, iden, save)
farm.append([ver, os, iden, store['access_token'], store['secret'], save])
checkDatabase(ver, os, store['access_token'], store['secret'])
utils.help2()
else:
url = store['captcha_url']
key = store['captcha_session_key']
webbrowser.open(url, new=1, autoraise=True)
print('Complete CAPTCHA to login... Press ENTER when done.')
input()
store = auth.login(ver, os, crypto.basic(iden), False, key)
if 'error' not in store:
print(Fore.WHITE + 'What would you like to name this save?')
save = input().lower()
createSaveFile(ver, os, iden, save)
farm.append([ver, os, iden, store['access_token'], store['secret'], save])
checkDatabase(ver, os, store['access_token'], store['secret'])
utils.help2()
else:
print(store)
else:
print(store)
else:
print(store)
else:
print(store)
else:
print('invalid version input.')
else:
print('gb/jp TC')
return 0
#load
if args[0].lower() == 'load' and len(farm) == 0:
if len(args) == 2:
save = args[1].lower()
if fs.path.isfile('./saves/'+save+'.txt'):
f = open('./saves/'+save+'.txt', 'r')
line1 = f.readline().rstrip().split(':')
ver = line1[0]
os = line1[1]
iden = f.readline().rstrip()
f.close()
store = auth.login(ver, os, crypto.basic(iden), False)
if 'error' not in store:
if 'reason' not in store:
farm.append([ver, os, iden, store['access_token'], store['secret'], save])
checkDatabase(ver, os, store['access_token'], store['secret'])
utils.help2()
else:
url = store['captcha_url']
key = store['captcha_session_key']
webbrowser.open(url, new=1, autoraise=True)
print('Complete CAPTCHA to login... Press ENTER when done.')
input()
store = auth.login(ver, os, crypto.basic(iden), False, key)
if 'error' not in store:
farm.append([ver, os, iden, store['access_token'], store['secret'], save])
checkDatabase(ver, os, store['access_token'], store['secret'])
utils.help2()
else:
print(store)
else:
print(store)
else:
print('that save doesn\'t exist.')
else:
print('you didnt select a save.')
return 1
#===== tools =====
#verify
if args[0].lower() == 'verify' and len(farm) == 0:
if len(args) == 4:
if args[1] == 'gb' or args[1] == 'jp':
if len(args[2]) == 9 or len(args[2]) == 10:
store = transfer.validate(args[1], args[3], args[2])
if 'error' not in store:
if not store['platform_difference']:
os = 'android'
else:
os = 'iOS'
if store['user_is_valid']:
matches = 'Yes'
else:
matches = 'No'
if store['link_code_is_valid']:
valid = 'Yes'
else:
valid = 'No'
print(Fore.GREEN + 'FC matches TC: ' + matches + '\nValid TC: ' + valid + '\nOS: ' + os + '\nName: ' + str(store['user_name']) + '\nRank: ' + str(store['user_rank']))
else:
print(store)
else:
print('abnormal FC/ID size.')
else:
print('invalid version input.')
else:
print('gb/jp FC/ID TC')
return 0
#recover
if args[0].lower() == 'recover' and len(farm) == 0:
if len(args) == 4:
if args[1] == 'gb' or args[1] == 'jp':
if args[2] == 'ios' or args[2] == 'android':
if checkTcLoop(args[1], args[2], args[3]) == True:
print('account successfully recovered.')
else:
print('invalid OS input.')
else:
print('invalid version input.')
else:
print('gb/jp ios/android identifier')
return 0
#renew
if args[0].lower() == 'renew' and len(farm) == 0:
if len(args) == 4:
if args[1] == 'gb' or args[1] == 'jp':
if len(args[2]) == 9 or len(args[2]) == 10:
store = transfer.validate(args[1], args[3], args[2])
if 'error' not in store:
if not store['platform_difference']:
os = 'android'
else:
os = 'ios'
store = transfer.use(args[1], os, args[3], args[2])
if 'error' not in store:
print(Fore.YELLOW + store['identifiers'].replace('\n', ''))
checkTcLoop(args[1], os, store['identifiers'])
else:
print(store)
else:
print(store)
else:
print('abnormal FC/ID size.')
else:
print('invalid version input.')
else:
print('gb/jp FC/ID TC')
return 0
#host
if args[0].lower() == 'host' and len(farm) == 0:
if len(args) == 2:
if args[1] == 'gb' or args[1] == 'jp':
store = outgame.ping(args[1])
print(Fore.GREEN + 'Host: ' + store['ping_info']['host'] + '\nPort: ' + str(store['ping_info']['port']) + '\nAPI port: ' + str(store['ping_info']['port_str']) + '\nCF URI Prefix: ' + store['ping_info']['cf_uri_prefix'])
else:
print('invalid version input.')
else:
print('gb/jp')
return 0
#===== other =====
#support
if args[0].lower() == 'support':
url = 'https://discord.gg/nrjvK2J'
webbrowser.open(url, new=1, autoraise=True)
return 1
#exit
if args[0].lower() == 'exit':
if len(farm) == 0:
exit()
else:
farm = []
utils.help1()
return 1
#===== farmbot =====
#help
if args[0].lower() == 'help' and len(farm) == 1:
if len(farm) == 0:
utils.help1()
else:
utils.help2()
return 1
#info
if args[0].lower() == 'info' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
store = ingame.user(ver, os, token, secret, False)
if 'error' not in store:
user = store['user']
print(Fore.YELLOW + 'Account information\nVersion: ' + ver + '\nOS: ' + os + '\nID: ' + str(user['id']) + '\nName: ' + user['name'] + '\nRank: ' + str(user['rank']) + '\nStones: ' + str(user['stone']) + '\nZeni: ' + str(user['zeni']) + '\nStamina: ' + str(user['act']) + '/' + str(user['act_max']) + '\nCapacity: ' + str(user['card_capacity']) + '/' + str(user['total_card_capacity']) + '\nTeam cost: ' + str(user['team_cost_capacity']) + '\nFriends capacity: ' + str(user['friends_capacity']))
else:
print(store)
return 0
#gift
if args[0].lower() == 'gift' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
farmbot.gift(ver, os, token, secret)
return 0
#mission
if args[0].lower() == 'mission' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
farmbot.mission(ver, os, token, secret)
return 0
#news
if args[0].lower() == 'news' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
store = ingame.news(ver, os, token, secret)
if 'error' not in store:
titles = []
for i in store['announcements']:
print(i['title'] + ' - ' + str(i['id']))
else:
print(store)
return 0
#banners
if args[0].lower() == 'banners' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
store = ingame.banners(ver, os, token, secret)
if 'error' not in store:
titles = []
for i in store['gashas']:
print(str(i['id']) + ' - ' + i['name'])
else:
print(store)
return 0
#events
if args[0].lower() == 'events' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
store = ingame.events(ver, os, token, secret)
if 'error' not in store:
titles = []
for i in store['events']:
try:
print(str(i['id']) + ' - ' + database.fetch(ver + '.db', 'areas', 'id=' + str(i['id']))[4])
except:
print(str(i['id']) + ' - unknown')
else:
print(store)
return 0
#summon
if args[0].lower() == 'summon' and len(farm) == 1:
if len(args) == 3:
if args[2] == 's' or args[2] == 'm':
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
if args[2] == 's': course = 1
if args[2] == 'm': course = 2
farmbot.summon(ver, os, token, secret, args[1], course)
else:
print('invalid single/multi input.')
else:
print('ID s/m')
return 0
#capacity
if args[0].lower() == 'capacity' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
store = ingame.capacity(ver, os, token, secret)
if 'error' not in store:
print(Fore.GREEN + 'box size increased by 5+')
else:
print(store)
return 0
#name
if args[0].lower() == 'name' and len(farm) == 1:
if len(args) == 2:
if len(args[1]) > 0 and len(args[1]) <= 10:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
name = str(args[1])
store = ingame.changeName(ver, os, token, secret, name)
if 'error' not in store:
print(Fore.GREEN + 'name set as: ' + str(name))
else:
print(store)
else:
print('name too long! (' + str(len(args[1])) + '/10)')
else:
print('no name provided.')
return 0
#stam
if args[0].lower() == 'stam' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
farmbot.restore(ver, os, token, secret)
return 0
#quicksell
if args[0].lower() == 'quicksell' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
farmbot.sell(ver, os, token, secret)
return 0
#wallpaper
if args[0].lower() == 'wallpaper' and len(farm) == 1:
if len(args) == 2:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
store = ingame.setWallpaper(ver, os, token, secret, args[1])
if 'error' not in store:
print(Fore.GREEN + 'wallpaper set as: ' + str(args[1]))
else:
print(store)
else:
print('no ID provided.')
return 0
#box
if args[0].lower() == 'box' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
store = ingame.cards(ver, os, token, secret)
if 'error' not in store:
lr = []
ur = []
ssr = []
sr = []
r = []
n = []
for i in store['cards']:
if database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[6] is 5:
element = '?'
db_ele = database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[13]
if db_ele is 0 or db_ele is 10 or db_ele is 20:
element = Fore.CYAN + 'AGL'
if db_ele is 1 or db_ele is 11 or db_ele is 21:
element = Fore.GREEN + 'TEQ'
if db_ele is 2 or db_ele is 12 or db_ele is 22:
element = Fore.MAGENTA + 'INT'
if db_ele is 3 or db_ele is 13 or db_ele is 23:
element = Fore.RED + 'STR'
if db_ele is 4 or db_ele is 14 or db_ele is 24:
element = Fore.YELLOW + 'PHY'
lr.append(element + ' ' + database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[1] + ' [' + database.fetch(ver + '.db', 'leader_skills', 'id=' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[24]))[1] + '],\nSA: ' + str(i['skill_lv']) + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[15]) + ', Potential: ' + str(i['released_rate']) + '%, Lvl: ' + str(database.fetch(ver + '.db', 'card_exps', 'exp_total=' + str(i['exp'])))[1] + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[14]))
if database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[6] is 4:
element = '?'
db_ele = database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[13]
if db_ele is 0 or db_ele is 10 or db_ele is 20:
element = Fore.CYAN + 'AGL'
if db_ele is 1 or db_ele is 11 or db_ele is 21:
element = Fore.GREEN + 'TEQ'
if db_ele is 2 or db_ele is 12 or db_ele is 22:
element = Fore.MAGENTA + 'INT'
if db_ele is 3 or db_ele is 13 or db_ele is 23:
element = Fore.RED + 'STR'
if db_ele is 4 or db_ele is 14 or db_ele is 24:
element = Fore.YELLOW + 'PHY'
ur.append(element + ' ' + database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[1] + ' [' + database.fetch(ver + '.db', 'leader_skills', 'id=' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[24]))[1] + '],\nSA: ' + str(i['skill_lv']) + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[15]) + ', Potential: ' + str(i['released_rate']) + '%, Lvl: ' + str(database.fetch(ver + '.db', 'card_exps', 'exp_total=' + str(i['exp'])))[1] + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[14]))
if database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[6] is 3:
element = '?'
db_ele = database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[13]
if db_ele is 0 or db_ele is 10 or db_ele is 20:
element = Fore.CYAN + 'AGL'
if db_ele is 1 or db_ele is 11 or db_ele is 21:
element = Fore.GREEN + 'TEQ'
if db_ele is 2 or db_ele is 12 or db_ele is 22:
element = Fore.MAGENTA + 'INT'
if db_ele is 3 or db_ele is 13 or db_ele is 23:
element = Fore.RED + 'STR'
if db_ele is 4 or db_ele is 14 or db_ele is 24:
element = Fore.YELLOW + 'PHY'
ssr.append(element + ' ' + database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[1] + ' [' + database.fetch(ver + '.db', 'leader_skills', 'id=' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[24]))[1] + '],\nSA: ' + str(i['skill_lv']) + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[15]) + ', Potential: ' + str(i['released_rate']) + '%, Lvl: ' + str(database.fetch(ver + '.db', 'card_exps', 'exp_total=' + str(i['exp'])))[1] + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[14]))
if database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[6] is 2:
element = '?'
db_ele = database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[13]
if db_ele is 0 or db_ele is 10 or db_ele is 20:
element = Fore.CYAN + 'AGL'
if db_ele is 1 or db_ele is 11 or db_ele is 21:
element = Fore.GREEN + 'TEQ'
if db_ele is 2 or db_ele is 12 or db_ele is 22:
element = Fore.MAGENTA + 'INT'
if db_ele is 3 or db_ele is 13 or db_ele is 23:
element = Fore.RED + 'STR'
if db_ele is 4 or db_ele is 14 or db_ele is 24:
element = Fore.YELLOW + 'PHY'
sr.append(element + ' ' + database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[1] + ' [' + database.fetch(ver + '.db', 'leader_skills', 'id=' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[24]))[1] + '],\nSA: ' + str(i['skill_lv']) + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[15]) + ', Potential: ' + str(i['released_rate']) + '%, Lvl: ' + str(database.fetch(ver + '.db', 'card_exps', 'exp_total=' + str(i['exp'])))[1] + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[14]))
if database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[6] is 1:
element = '?'
db_ele = database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[13]
if db_ele is 0 or db_ele is 10 or db_ele is 20:
element = Fore.CYAN + 'AGL'
if db_ele is 1 or db_ele is 11 or db_ele is 21:
element = Fore.GREEN + 'TEQ'
if db_ele is 2 or db_ele is 12 or db_ele is 22:
element = Fore.MAGENTA + 'INT'
if db_ele is 3 or db_ele is 13 or db_ele is 23:
element = Fore.RED + 'STR'
if db_ele is 4 or db_ele is 14 or db_ele is 24:
element = Fore.YELLOW + 'PHY'
r.append(element + ' ' + database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[1] + ' [' + database.fetch(ver + '.db', 'leader_skills', 'id=' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[24]))[1] + '],\nSA: ' + str(i['skill_lv']) + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[15]) + ', Potential: ' + str(i['released_rate']) + '%, Lvl: ' + str(database.fetch(ver + '.db', 'card_exps', 'exp_total=' + str(i['exp'])))[1] + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[14]))
if database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[6] is 0:
element = '?'
db_ele = database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[13]
if db_ele is 0 or db_ele is 10 or db_ele is 20:
element = Fore.CYAN + 'AGL'
if db_ele is 1 or db_ele is 11 or db_ele is 21:
element = Fore.GREEN + 'TEQ'
if db_ele is 2 or db_ele is 12 or db_ele is 22:
element = Fore.MAGENTA + 'INT'
if db_ele is 3 or db_ele is 13 or db_ele is 23:
element = Fore.RED + 'STR'
if db_ele is 4 or db_ele is 14 or db_ele is 24:
element = Fore.YELLOW + 'PHY'
n.append(element + ' ' + database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[1] + ' [' + database.fetch(ver + '.db', 'leader_skills', 'id=' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[24]))[1] + '],\nSA: ' + str(i['skill_lv']) + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[15]) + ', Potential: ' + str(i['released_rate']) + '%, Lvl: ' + str(database.fetch(ver + '.db', 'card_exps', 'exp_total=' + str(i['exp'])))[1] + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[14]))
print(Fore.WHITE + '==== ==== > LR < ==== ====\n\n' + ',\n'.join(lr) + Fore.WHITE + '\n\n==== ==== > UR < ==== ====\n\n' + ',\n'.join(ur) + Fore.WHITE + '\n\n==== ==== > SSR < ==== ====\n\n' + ',\n'.join(ssr) + Fore.WHITE + '\n\n==== ==== > SR < ==== ====\n\n' + ',\n'.join(sr) + Fore.WHITE + '\n\n==== ==== > R < ==== ====\n\n' + ',\n'.join(r) + Fore.WHITE + '\n\n==== ==== > N < ==== ====\n\n' + ',\n'.join(n))
else:
print(store)
return 0
#streamline
if args[0].lower() == 'streamline' and len(farm) == 1:
if len(args) == 2:
if args[1] == 'quests' or args[1] == 'events':
ver = farm[0][0]
os = farm[0][1]
iden = farm[0][2]
token = farm[0][3]
secret = farm[0][4]
farmbot.streamline(ver, os, token, secret, iden, args[1])
else:
print('invalid choice.')
else:
print('missing argument. (quests/events)')
return 0
#finishall
if args[0].lower() == 'finishall' and len(farm) == 1:
if len(args) == 2:
if args[1] == 'quests' or args[1] == 'events':
ver = farm[0][0]
os = farm[0][1]
iden = farm[0][2]
token = farm[0][3]
secret = farm[0][4]
farmbot.finishall(ver, os, token, secret, iden, args[1])
else:
print('invalid choice.')
else:
print('missing argument. (quests/events)')
return 0
#bossrush
if args[0].lower() == 'bossrush' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
iden = farm[0][2]
token = farm[0][3]
secret = farm[0][4]
stages = [['701001', 3], ['701001', 4], ['701002', 4], ['701002', 5], ['701003', 5], ['701004', 5], ['701005', 5], ['701006', 5], ['701007', 5], ['701008', 5]]
for i in stages:
farmbot.complete_stage(ver, os, token, secret, i[0], i[1], None, iden)
print('run the mission command to accept your stones.')
return 0
#area
if args[0].lower() == 'area' and len(farm) == 1:
if len(args) == 2:
ver = farm[0][0]
os = farm[0][1]
iden = farm[0][2]
token = farm[0][3]
secret = farm[0][4]
store = ingame.quests(ver, os, token, secret)
if 'error' not in store:
maps = []
for i in store['user_areas']:
if int(i['area_id']) == int(args[1]):
for j in i['user_sugoroku_maps']:
if int(j['cleared_count']) == 0:
farmbot.complete_stage(ver, os, token, secret, str(j['sugoroku_map_id'])[:-1], str(j['sugoroku_map_id'])[-1], None, iden)
else:
print(store)
else:
print('no area ID provided.')
return 0
#stage
if args[0].lower() == 'stage' and len(farm) == 1:
if len(args) == 4:
ver = farm[0][0]
os = farm[0][1]
iden = farm[0][2]
token = farm[0][3]
secret = farm[0][4]
if len(args[2]) == 1:
if int(args[3]) != 0:
for i in range(int(args[3]) + 1):
if int(i) != 0:
farmbot.complete_stage(ver, os, token, secret, args[1], args[2], None, iden)
else:
print('can\'t run stage 0 times!')
else:
print('difficulty is wrong.\n0=normal || 1=hard || 2=zhard || 3=super || 4=super2')
else:
print('missing stage ID, difficulty, & run amount arguments.')
return 0
#potential
if args[0].lower() == 'potential' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
iden = farm[0][2]
token = farm[0][3]
secret = farm[0][4]
store = ingame.events(ver, os, token, secret)
if 'error' not in store:
for i in store['events']:
if i['id'] >= 140 and i['id'] < 145:
try:
stage = database.fetch(ver + '.db', 'sugoroku_maps', 'quest_id=' + str(i['quests'][0]['id']))[0]
farmbot.complete_stage(ver, os, token, secret, str(stage)[0:-1], str(stage)[-1], None, iden)
except:
print('stage does not exist.')
else:
print(store)
return 0
#hercule
if args[0].lower() == 'hercule' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
iden = farm[0][2]
token = farm[0][3]
secret = farm[0][4]
stages = [['711001', 1], ['711002', 1], ['711003', 1], ['711004', 1], ['711005', 1], ['711006', 1]]
for i in stages:
farmbot.complete_stage(ver, os, token, secret, i[0], i[1], None, iden)
return 0
#daily
if args[0].lower() == 'daily' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
iden = farm[0][2]
token = farm[0][3]
secret = farm[0][4]
stages = [['130001', 0], ['131001', 0], ['132001', 0]]
for i in stages:
farmbot.complete_stage(ver, os, token, secret, i[0], i[1], None, iden)
store = ingame.events(ver, os, token, secret)
if 'error' not in store:
for i in store['events']:
if i['id'] >= 140 and i['id'] < 145:
try:
stage = database.fetch(ver + '.db', 'sugoroku_maps', 'quest_id=' + str(i['quests'][0]['id']))[0]
farmbot.complete_stage(ver, os, token, secret, str(stage)[0:-1], str(stage)[-1], None, iden)
except:
print('stage does not exist.')
else:
print(store)
farmbot.gift(ver, os, token, secret)
farmbot.mission(ver, os, token, secret)
return 0
#omegafarm
if args[0].lower() == 'omegafarm' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
iden = farm[0][2]
token = farm[0][3]
secret = farm[0][4]
farmbot.gift(ver, os, token, secret)
farmbot.mission(ver, os, token, secret)
farmbot.streamline(ver, os, token, secret, iden, 'quests')
refresh()
farmbot.streamline(ver, os, token, secret, iden, 'events')
refresh()
farmbot.complete_unfinished_ezas(ver, os, token, secret, iden)
refresh()
farmbot.gift(ver, os, token, secret)
farmbot.mission(ver, os, token, secret)
return 0
#items
if args[0].lower() == 'items' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
store = ingame.getItems(ver, os, token, secret)
if 'error' not in store:
print(Fore.LIGHTYELLOW_EX + '==== ==== > Support < ==== ====\n')
for i in store['support_items']['items']:
try:
print(database.fetch(ver + '.db', 'support_items', 'id=' + str(i['item_id']))[1] + ' x' + str(i['quantity']))
except:
print('Support x'+ str(i['quantity']))
print('\n' + Fore.LIGHTYELLOW_EX + '==== ==== > Training < ==== ====\n')
for i in store['training_items']:
try:
print(database.fetch(ver + '.db', 'training_items', 'id=' + str(i['training_item_id']))[1] + ' x' + str(i['quantity']))
except:
print('Training x'+ str(i['quantity']))
print('\n' + Fore.LIGHTYELLOW_EX + '==== ==== > Potential < ==== ====\n')
for i in store['potential_items']['user_potential_items']:
try:
print(database.fetch(ver + '.db', 'potential_items', 'id=' + str(i['potential_item_id']))[1] + ' x' + str(i['quantity']))
except:
print('Orb x'+ str(i['quantity']))
print('\n' + Fore.LIGHTYELLOW_EX + '==== ==== > Treasure < ==== ====\n')
for i in store['treasure_items']['user_treasure_items']:
try:
print(database.fetch(ver + '.db', 'treasure_items', 'id=' + str(i['treasure_item_id']))[1] + ' x' + str(i['quantity']))
except:
print('Treasure x'+ str(i['quantity']))
print('\n' + Fore.LIGHTYELLOW_EX + '==== ==== > Special < ==== ====\n')
for i in store['special_items']:
try:
print(database.fetch(ver + '.db', 'special_items', 'id=' + str(i['special_item_id']))[1] + ' x' + str(i['quantity']))
except:
print('Special x'+ str(i['quantity']))
else:
print(store)
return 0
#medals
if args[0].lower() == 'medals' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
store = ingame.getMedals(ver, os, token, secret)
if 'error' not in store:
for i in store['awakening_items']:
try:
print(database.fetch(ver + '.db', 'awakening_items', 'id=' + str(i['awakening_item_id']))[1] + ' x' + str(i['quantity']))
except:
print('unknown medal x' + str(i['quantity']))
else:
print(store)
return 0
#wallpapers
if args[0].lower() == 'wallpapers' and len(farm) == 1:
ver = farm[0][0]
d = database.fetch(ver + '.db', 'wallpaper_items', None)
for i in d:
print('ID: ' + str(i[0]) + '\n' + i[1] + '\n' + i[2])
return 0
#teams
if args[0].lower() == 'teams' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
one = []
two = []
three = []
four = []
five = []
six = []
store = ingame.cards(ver, os, token, secret)
store2 = ingame.getTeams(ver, os, token, secret)
print('Current team: ' + str(store2['selected_team_num']))
for i in store['cards']:
if i['id'] in store2['user_card_teams'][0]['user_card_ids']:
element = ''
try:
db_ele = database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[13]
if db_ele is 0 or db_ele is 10 or db_ele is 20:
element = 'AGL'
if db_ele is 1 or db_ele is 11 or db_ele is 21:
element = 'TEQ'
if db_ele is 2 or db_ele is 12 or db_ele is 22:
element = 'INT'
if db_ele is 3 or db_ele is 13 or db_ele is 23:
element = 'STR'
if db_ele is 4 or db_ele is 14 or db_ele is 24:
element = 'PHY'
one.append(element + ' ' + database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[1] + ' [' + database.fetch(ver + '.db', 'leader_skills', 'id=' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[24]))[1] + '],\nSA: ' + str(i['skill_lv']) + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[15]) + ', Potential: ' + str(i['released_rate']) + '%, EXP: ' + str(i['exp']))
except:
one.append('unit not in database. ' + str(i['card_id']))
if i['id'] in store2['user_card_teams'][1]['user_card_ids']:
element = ''
try:
db_ele = database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[13]
if db_ele is 0 or db_ele is 10 or db_ele is 20:
element = 'AGL'
if db_ele is 1 or db_ele is 11 or db_ele is 21:
element = 'TEQ'
if db_ele is 2 or db_ele is 12 or db_ele is 22:
element = 'INT'
if db_ele is 3 or db_ele is 13 or db_ele is 23:
element = 'STR'
if db_ele is 4 or db_ele is 14 or db_ele is 24:
element = 'PHY'
two.append(element + ' ' + database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[1] + ' [' + database.fetch(ver + '.db', 'leader_skills', 'id=' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[24]))[1] + '],\nSA: ' + str(i['skill_lv']) + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[15]) + ', Potential: ' + str(i['released_rate']) + '%, EXP: ' + str(i['exp']))
except:
two.append('unit not in database. ' + str(i['card_id']))
if i['id'] in store2['user_card_teams'][2]['user_card_ids']:
element = ''
try:
db_ele = database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[13]
if db_ele is 0 or db_ele is 10 or db_ele is 20:
element = 'AGL'
if db_ele is 1 or db_ele is 11 or db_ele is 21:
element = 'TEQ'
if db_ele is 2 or db_ele is 12 or db_ele is 22:
element = 'INT'
if db_ele is 3 or db_ele is 13 or db_ele is 23:
element = 'STR'
if db_ele is 4 or db_ele is 14 or db_ele is 24:
element = 'PHY'
three.append(element + ' ' + database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[1] + ' [' + database.fetch(ver + '.db', 'leader_skills', 'id=' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[24]))[1] + '],\nSA: ' + str(i['skill_lv']) + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[15]) + ', Potential: ' + str(i['released_rate']) + '%, EXP: ' + str(i['exp']))
except:
three.append('unit not in database. ' + str(i['card_id']))
if i['id'] in store2['user_card_teams'][3]['user_card_ids']:
element = ''
try:
db_ele = database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[13]
if db_ele is 0 or db_ele is 10 or db_ele is 20:
element = 'AGL'
if db_ele is 1 or db_ele is 11 or db_ele is 21:
element = 'TEQ'
if db_ele is 2 or db_ele is 12 or db_ele is 22:
element = 'INT'
if db_ele is 3 or db_ele is 13 or db_ele is 23:
element = 'STR'
if db_ele is 4 or db_ele is 14 or db_ele is 24:
element = 'PHY'
four.append(element + ' ' + database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[1] + ' [' + database.fetch(ver + '.db', 'leader_skills', 'id=' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[24]))[1] + '],\nSA: ' + str(i['skill_lv']) + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[15]) + ', Potential: ' + str(i['released_rate']) + '%, EXP: ' + str(i['exp']))
except:
four.append('unit not in database. ' + str(i['card_id']))
if i['id'] in store2['user_card_teams'][4]['user_card_ids']:
element = ''
try:
db_ele = database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[13]
if db_ele is 0 or db_ele is 10 or db_ele is 20:
element = 'AGL'
if db_ele is 1 or db_ele is 11 or db_ele is 21:
element = 'TEQ'
if db_ele is 2 or db_ele is 12 or db_ele is 22:
element = 'INT'
if db_ele is 3 or db_ele is 13 or db_ele is 23:
element = 'STR'
if db_ele is 4 or db_ele is 14 or db_ele is 24:
element = 'PHY'
five.append(element + ' ' + database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[1] + ' [' + database.fetch(ver + '.db', 'leader_skills', 'id=' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[24]))[1] + '],\nSA: ' + str(i['skill_lv']) + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[15]) + ', Potential: ' + str(i['released_rate']) + '%, EXP: ' + str(i['exp']))
except:
five.append('unit not in database. ' + str(i['card_id']))
if i['id'] in store2['user_card_teams'][5]['user_card_ids']:
element = ''
try:
db_ele = database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[13]
if db_ele is 0 or db_ele is 10 or db_ele is 20:
element = 'AGL'
if db_ele is 1 or db_ele is 11 or db_ele is 21:
element = 'TEQ'
if db_ele is 2 or db_ele is 12 or db_ele is 22:
element = 'INT'
if db_ele is 3 or db_ele is 13 or db_ele is 23:
element = 'STR'
if db_ele is 4 or db_ele is 14 or db_ele is 24:
element = 'PHY'
six.append(element + ' ' + database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[1] + ' [' + database.fetch(ver + '.db', 'leader_skills', 'id=' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[24]))[1] + '],\nSA: ' + str(i['skill_lv']) + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['card_id']))[15]) + ', Potential: ' + str(i['released_rate']) + '%, EXP: ' + str(i['exp']))
except:
six.append('unit not in database. ' + str(i['card_id']))
print('--- Team 1 ---\n' + ',\n'.join(one))
print('--- Team 2 ---\n' + ',\n'.join(two))
print('--- Team 3 ---\n' + ',\n'.join(three))
print('--- Team 4 ---\n' + ',\n'.join(four))
print('--- Team 5 ---\n' + ',\n'.join(five))
print('--- Team 6 ---\n' + ',\n'.join(six))
return 0
#deck
if args[0].lower() == 'deck' and len(farm) == 1:
if len(args) == 2:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
if int(args[1]) >= 1 and int(args[1]) <= 6:
store = ingame.getTeams(ver, os, token, secret)
if 'error' not in store:
teams = []
for x in store['user_card_teams']:
teams.append(x)
store2 = ingame.setTeam(ver, os, token, secret, args[1], teams)
if 'error' not in store2:
print(Fore.GREEN + 'team set to ' + str(args[1]))
else:
print(store)
else:
print(store)
else:
print('invalid team number.')
else:
print('no team number provided.')
return 0
#ezas
if args[0].lower() == 'ezas' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
store = ingame.events(ver, os, token, secret)
if 'error' not in store:
for x in store['z_battle_stages']:
try:
print(str(x['id']) + ' ' + database.fetch(ver + '.db', 'z_battle_stage_views', 'z_battle_stage_id=' + str(x['id']))[3] + ' - ' + database.fetch(ver + '.db', 'z_battle_stage_views', 'z_battle_stage_id=' + str(x['id']))[2])
except:
print(str(x['id']) + ' - unknown')
else:
print(store)
return 0
#zlevel
if args[0].lower() == 'zlevel' and len(farm) == 1:
if len(args) == 3:
ver = farm[0][0]
os = farm[0][1]
iden = farm[0][2]
token = farm[0][3]
secret = farm[0][4]
store = ingame.events(ver, os, token, secret)
if 'error' not in store:
eza_pool = []
for x in store['z_battle_stages']:
eza_pool.append(int(x['id']))
if int(args[1]) in eza_pool:
farmbot.complete_zstage(ver, os, token, secret, int(args[1]), int(args[2]), iden)
else:
print(Fore.LIGHTRED_EX + 'EZA event ID not in active pool!')
else:
print(store)
else:
print('missing EZA event ID & level.')
return 0
#eza
if args[0].lower() == 'eza' and len(farm) == 1:
if len(args) == 2:
ver = farm[0][0]
os = farm[0][1]
iden = farm[0][2]
token = farm[0][3]
secret = farm[0][4]
store = ingame.events(ver, os, token, secret)
if 'error' not in store:
eza_pool = []
for x in store['z_battle_stages']:
eza_pool.append(int(x['id']))
if int(args[1]) in eza_pool:
store = ingame.quests(ver, os, token, secret)
for x in store['user_z_battles']:
if x['z_battle_stage_id'] == int(args[1]):
clear_count = x['max_clear_level']
while int(clear_count) <= 30:
farmbot.complete_zstage(ver, os, token, secret, int(args[1]), int(clear_count), iden)
clear_count = clear_count + 1
else:
print(Fore.LIGHTRED_EX + 'EZA event ID not in active pool!')
else:
print(store)
else:
print('missing EZA event ID.')
return 0
#alleza
if args[0].lower() == 'alleza' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
iden = farm[0][2]
token = farm[0][3]
secret = farm[0][4]
farmbot.complete_unfinished_ezas(ver, os, token, secret, iden)
return 0
#list
if args[0].lower() == 'list' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
store = ingame.friends(ver, os, token, secret)
if 'error' not in store:
print(Fore.LIGHTYELLOW_EX + '==== ==== > Friends < ==== ====\n' + Fore.WHITE)
for i in store['friendships']:
element = '?'
db_ele = database.fetch(ver + '.db', 'cards', 'id=' + str(i['user']['leader']['card_id']))[13]
if db_ele is 0 or db_ele is 10 or db_ele is 20:
element = Fore.CYAN + 'AGL'
if db_ele is 1 or db_ele is 11 or db_ele is 21:
element = Fore.GREEN + 'TEQ'
if db_ele is 2 or db_ele is 12 or db_ele is 22:
element = Fore.MAGENTA + 'INT'
if db_ele is 3 or db_ele is 13 or db_ele is 23:
element = Fore.RED + 'STR'
if db_ele is 4 or db_ele is 14 or db_ele is 24:
element = Fore.YELLOW + 'PHY'
print(str(i['id']) + ', ' + str(i['user']['name']) + ', ' + str(i['user']['rank']) + '\n' + element + ' ' + database.fetch(ver + '.db', 'cards', 'id=' + str(i['user']['leader']['card_id']))[1] + ' [' + database.fetch(ver + '.db', 'leader_skills', 'id=' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['user']['leader']['card_id']))[24]))[1] + '],\nSA: ' + str(i['user']['leader']['skill_lv']) + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['user']['leader']['card_id']))[15]) + ', Potential: ' + str(i['user']['leader']['released_rate']) + '%, Lvl: ' + str(database.fetch(ver + '.db', 'card_exps', 'exp_total=' + str(i['user']['leader']['exp'])))[1] + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['user']['leader']['card_id']))[14]))
print(Fore.LIGHTYELLOW_EX + '==== ==== > Pending < ==== ====\n' + Fore.WHITE)
for i in store['pending_friendships']:
element = '?'
db_ele = database.fetch(ver + '.db', 'cards', 'id=' + str(i['user']['leader']['card_id']))[13]
if db_ele is 0 or db_ele is 10 or db_ele is 20:
element = Fore.CYAN + 'AGL'
if db_ele is 1 or db_ele is 11 or db_ele is 21:
element = Fore.GREEN + 'TEQ'
if db_ele is 2 or db_ele is 12 or db_ele is 22:
element = Fore.MAGENTA + 'INT'
if db_ele is 3 or db_ele is 13 or db_ele is 23:
element = Fore.RED + 'STR'
if db_ele is 4 or db_ele is 14 or db_ele is 24:
element = Fore.YELLOW + 'PHY'
print(str(i['id']) + ', ' + str(i['user']['name']) + ', ' + str(i['user']['rank']) + '\n' + element + ' ' + database.fetch(ver + '.db', 'cards', 'id=' + str(i['user']['leader']['card_id']))[1] + ' [' + database.fetch(ver + '.db', 'leader_skills', 'id=' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['user']['leader']['card_id']))[24]))[1] + '],\nSA: ' + str(i['user']['leader']['skill_lv']) + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['user']['leader']['card_id']))[15]) + ', Potential: ' + str(i['user']['leader']['released_rate']) + '%, Lvl: ' + str(database.fetch(ver + '.db', 'card_exps', 'exp_total=' + str(i['user']['leader']['exp'])))[1] + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(i['user']['leader']['card_id']))[14]))
else:
print(store)
return 0
#search
if args[0].lower() == 'search' and len(farm) == 1:
if len(args) == 2:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
store = ingame.findFriend(ver, os, token, secret, int(args[1]))
if 'error' not in store:
element = '?'
db_ele = database.fetch(ver + '.db', 'cards', 'id=' + str(store['user']['leader']['card_id']))[13]
if db_ele is 0 or db_ele is 10 or db_ele is 20:
element = Fore.CYAN + 'AGL'
if db_ele is 1 or db_ele is 11 or db_ele is 21:
element = Fore.GREEN + 'TEQ'
if db_ele is 2 or db_ele is 12 or db_ele is 22:
element = Fore.MAGENTA + 'INT'
if db_ele is 3 or db_ele is 13 or db_ele is 23:
element = Fore.RED + 'STR'
if db_ele is 4 or db_ele is 14 or db_ele is 24:
element = Fore.YELLOW + 'PHY'
print(str(store['user']['id']) + ', ' + str(store['user']['name']) + ', ' + str(store['user']['rank']) + '\n' + element + ' ' + database.fetch(ver + '.db', 'cards', 'id=' + str(store['user']['leader']['card_id']))[1] + ' [' + database.fetch(ver + '.db', 'leader_skills', 'id=' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(store['user']['leader']['card_id']))[24]))[1] + '],\nSA: ' + str(store['user']['leader']['skill_lv']) + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(store['user']['leader']['card_id']))[15]) + ', Potential: ' + str(store['user']['leader']['released_rate']) + '%, Lvl: ' + str(database.fetch(ver + '.db', 'card_exps', 'exp_total=' + str(store['user']['leader']['exp'])))[1] + '/' + str(database.fetch(ver + '.db', 'cards', 'id=' + str(store['user']['leader']['card_id']))[14]))
else:
print(store)
else:
print('missing user/friend ID.')
return 0
#friend
if args[0].lower() == 'friend' and len(farm) == 1:
if len(args) == 2:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
store = ingame.addFriend(ver, os, token, secret, args[1])
if 'error' not in store:
print(store)
else:
print(store)
else:
print('missing user/friend ID.')
return 0
#accept
if args[0].lower() == 'accept' and len(farm) == 1:
if len(args) == 2:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
store = ingame.acceptFriend(ver, os, token, secret, args[1])
if 'error' not in store:
if 'accepted' in store['friendship']['status']:
print(Fore.GREEN + 'friend accepted.')
else:
print(Fore.RED + 'can\'t accept.')
else:
print(store)
else:
print('missing user/friend ID.')
return 0
#dragonballs
if args[0].lower() == 'dragonballs' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
token = farm[0][3]
secret = farm[0][4]
store = ingame.dragonballs(ver, os, token, secret)
if 'error' not in store:
print(Fore.GREEN + '==== ==== > Shenron < ==== ====\n' + Fore.WHITE)
for i in store['dragonball_sets']:
if i['ball_type'] == 0:
for x in i['dragonballs']:
print(str(x['num']) + ' - collected: ' + str(x['is_got']) + ' (' + str(x['quest_id']) + ':' + str(x['difficulties'][0]) + ')')
print(Fore.GREEN + '\n==== ==== > Porunga < ==== ====\n' + Fore.WHITE)
for i in store['dragonball_sets']:
if i['ball_type'] == 1:
for x in i['dragonballs']:
print(str(x['num']) + ' - collected: ' + str(x['is_got']) + ' (' + str(x['description']) + ')')
if 'condition' in x['mission']:
print(str(x['mission']['conditions']))
else:
print(store)
return 0
#wish
if args[0].lower() == 'wish' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
iden = farm[0][2]
token = farm[0][3]
secret = farm[0][4]
store = ingame.dragonballs(ver, os, token, secret)
if 'error' not in store:
for i in store['dragonball_sets']:
if i['ball_type'] == 0:
for x in i['dragonballs']:
if x['is_got'] == False:
farmbot.complete_stage(ver, os, token, secret, str(x['quest_id']), str(x['difficulties'][0]), None, iden)
else:
print(store)
return 0
#identifier
if args[0].lower() == 'identifier' and len(farm) == 1:
iden = farm[0][3]
print(iden)
return 0
#refresh
if args[0].lower() == 'refresh' and len(farm) == 1:
refresh()
return 0
#transfer
if args[0].lower() == 'transfer' and len(farm) == 1:
ver = farm[0][0]
os = farm[0][1]
iden = farm[0][2]
save = farm[0][5]
if checkTcLoop(ver, os, iden) == True:
fs.unlink('./saves/' + str(save) + '.txt')
farm = []
utils.help1()
return 1
| 51.022708
| 839
| 0.439142
| 7,474
| 60,666
| 3.487958
| 0.056998
| 0.046032
| 0.060417
| 0.051786
| 0.780237
| 0.75584
| 0.74345
| 0.712302
| 0.694119
| 0.661053
| 0
| 0.037867
| 0.39101
| 60,666
| 1,189
| 840
| 51.022708
| 0.667749
| 0.006148
| 0
| 0.722518
| 0
| 0.00266
| 0.15444
| 0.000356
| 0
| 0
| 0
| 0
| 0
| 1
| 0.004433
| false
| 0
| 0.012411
| 0
| 0.062057
| 0.140071
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
30fe0b7e1e680cf17fde7ea3026c8d45d13ae53f
| 88
|
py
|
Python
|
typings/bpy_extras/node_utils.py
|
Argmaster/PyR3
|
6786bcb6a101fe4bd4cc50fe43767b8178504b15
|
[
"MIT"
] | 2
|
2021-12-12T18:51:52.000Z
|
2022-02-23T09:49:16.000Z
|
src/blender/blender_autocomplete-master/2.92/bpy_extras/node_utils.py
|
JonasWard/ClayAdventures
|
a716445ac690e4792e70658319aa1d5299f9c9e9
|
[
"MIT"
] | 2
|
2021-11-08T12:09:02.000Z
|
2021-12-12T23:01:12.000Z
|
src/blender/blender_autocomplete-master/2.92/bpy_extras/node_utils.py
|
JonasWard/ClayAdventures
|
a716445ac690e4792e70658319aa1d5299f9c9e9
|
[
"MIT"
] | null | null | null |
import sys
import typing
def find_node_input(node, name):
'''
'''
pass
| 8
| 32
| 0.579545
| 11
| 88
| 4.454545
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.306818
| 88
| 10
| 33
| 8.8
| 0.803279
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.25
| 0.5
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
eb768036c9c73223257fb47c067f1d3a4ee78aaf
| 118
|
py
|
Python
|
rlmodels/nets/__init__.py
|
nestorSag/rlmodels
|
c703acb1e7c10c1c65d7e96753f8a7a4a62880a1
|
[
"MIT"
] | 2
|
2021-03-17T07:22:34.000Z
|
2021-12-22T19:46:16.000Z
|
rlmodels/nets/__init__.py
|
nestorSag/rlmodels
|
c703acb1e7c10c1c65d7e96753f8a7a4a62880a1
|
[
"MIT"
] | 1
|
2022-01-30T20:42:49.000Z
|
2022-01-30T20:42:49.000Z
|
rlmodels/nets/__init__.py
|
nestorSag/rlmodels
|
c703acb1e7c10c1c65d7e96753f8a7a4a62880a1
|
[
"MIT"
] | 2
|
2021-03-17T07:22:38.000Z
|
2021-03-22T20:06:10.000Z
|
#__init__.py
from .FullyConnected import FullyConnected
from .ContinuousPolicy import *
from .DiscretePolicy import *
| 23.6
| 42
| 0.830508
| 12
| 118
| 7.833333
| 0.583333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.110169
| 118
| 4
| 43
| 29.5
| 0.895238
| 0.09322
| 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
|
ebe77f793d96ba49d250f0edb3fce4b6699490a6
| 89
|
py
|
Python
|
gc3_query/lib/atoml/exceptions.py
|
ericmharris/gc3-query
|
0bf5226130aafbb1974aeb96d93ee1996833e87d
|
[
"MIT"
] | null | null | null |
gc3_query/lib/atoml/exceptions.py
|
ericmharris/gc3-query
|
0bf5226130aafbb1974aeb96d93ee1996833e87d
|
[
"MIT"
] | null | null | null |
gc3_query/lib/atoml/exceptions.py
|
ericmharris/gc3-query
|
0bf5226130aafbb1974aeb96d93ee1996833e87d
|
[
"MIT"
] | null | null | null |
class BaseException(Exception): ...
class ATomlConfigError(BaseException):
pass
| 9.888889
| 38
| 0.730337
| 7
| 89
| 9.285714
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.168539
| 89
| 8
| 39
| 11.125
| 0.878378
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
ccdc6a6690aea4f1786f21da78ace1131af5a790
| 168
|
py
|
Python
|
ex027.py
|
GuilhermeDallari/desafiomuundo1
|
df4e06393970d2b686622d13d0ef433b761164fd
|
[
"MIT"
] | null | null | null |
ex027.py
|
GuilhermeDallari/desafiomuundo1
|
df4e06393970d2b686622d13d0ef433b761164fd
|
[
"MIT"
] | null | null | null |
ex027.py
|
GuilhermeDallari/desafiomuundo1
|
df4e06393970d2b686622d13d0ef433b761164fd
|
[
"MIT"
] | null | null | null |
n1 = str(input('digite seu nome completo: ')).strip()
n2 = n1.split()
print('Seu primeiro nome é {}'.format(n2[0]))
print('seu ultimo nome é {}'.format(n2[len(n2)-1]))
| 33.6
| 53
| 0.642857
| 29
| 168
| 3.724138
| 0.62069
| 0.148148
| 0.203704
| 0.240741
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.054054
| 0.119048
| 168
| 4
| 54
| 42
| 0.675676
| 0
| 0
| 0
| 0
| 0
| 0.404762
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
cce27b1b3c2beb9186fed65a866a6143494f2dc3
| 104
|
py
|
Python
|
tests/test_continuation.py
|
dpanici/DESC
|
e98a16394d02411952efc18cc6c009e5226b11e4
|
[
"MIT"
] | 1
|
2020-11-20T17:17:50.000Z
|
2020-11-20T17:17:50.000Z
|
tests/test_continuation.py
|
dpanici/DESC
|
e98a16394d02411952efc18cc6c009e5226b11e4
|
[
"MIT"
] | 12
|
2020-11-19T05:22:13.000Z
|
2020-12-15T03:50:33.000Z
|
tests/test_continuation.py
|
dpanici/DESC
|
e98a16394d02411952efc18cc6c009e5226b11e4
|
[
"MIT"
] | null | null | null |
import unittest
class TestContinuation(unittest.TestCase):
"""tests for continuation functions"""
| 17.333333
| 42
| 0.769231
| 10
| 104
| 8
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134615
| 104
| 5
| 43
| 20.8
| 0.888889
| 0.307692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
696348ebde017faf8c4cad06d5d49232258780df
| 55
|
py
|
Python
|
my_amazing_python_module.py
|
tangym/autoapi
|
adc3ce02a803dd989be787ff21568231103d8625
|
[
"Apache-2.0"
] | null | null | null |
my_amazing_python_module.py
|
tangym/autoapi
|
adc3ce02a803dd989be787ff21568231103d8625
|
[
"Apache-2.0"
] | null | null | null |
my_amazing_python_module.py
|
tangym/autoapi
|
adc3ce02a803dd989be787ff21568231103d8625
|
[
"Apache-2.0"
] | null | null | null |
def some_function(name):
return "Hello, %s!" % name
| 27.5
| 30
| 0.654545
| 8
| 55
| 4.375
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 55
| 2
| 30
| 27.5
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0.178571
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
15edf66870aebcd2c672e3ef293c676e3b6ccab1
| 6,515
|
py
|
Python
|
api/radiam/api/migrations/0002_default_values.py
|
usask-rc/radiam
|
bfa38fd33e211b66e30e453a717c5f216e848cb2
|
[
"MIT"
] | 2
|
2020-02-01T20:41:28.000Z
|
2020-02-03T20:57:59.000Z
|
api/radiam/api/migrations/0002_default_values.py
|
usask-rc/radiam
|
bfa38fd33e211b66e30e453a717c5f216e848cb2
|
[
"MIT"
] | 10
|
2020-04-20T15:52:49.000Z
|
2020-04-30T18:03:09.000Z
|
api/radiam/api/migrations/0002_default_values.py
|
usask-rc/radiam
|
bfa38fd33e211b66e30e453a717c5f216e848cb2
|
[
"MIT"
] | null | null | null |
# Insert Location Types and Group Roles into DB
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
# The ALL USERS Group
migrations.RunSQL("INSERT INTO rdm_research_groups (id, name, description, date_created, date_updated, is_active, lft, rght, tree_id, level) VALUES ('cb03b55d-873f-4a0e-8208-07f960fa5032', 'Admin Group', 'The top level group in this Radiam instance', NOW(), NOW(), true, 1, 2, 1, 0);"),
# Location Types
migrations.RunSQL("INSERT INTO rdm_location_types (id, label) VALUES ('fd39b7e6-86f9-4b26-8563-32eb3cb88a22', 'location.type.desktop');"),
migrations.RunSQL("INSERT INTO rdm_location_types (id, label) VALUES ('faaaed1d-dc31-4047-ae08-9571b93b0e2f', 'location.type.laptop');"),
migrations.RunSQL("INSERT INTO rdm_location_types (id, label) VALUES ('4ef2bf5a-ee68-4e5a-911f-31bb04058627', 'location.type.server');"),
migrations.RunSQL("INSERT INTO rdm_location_types (id, label) VALUES ('3a16f0c7-7be9-4fb8-9ee8-7248395e06e7', 'location.type.database');"),
migrations.RunSQL("INSERT INTO rdm_location_types (id, label) VALUES ('4acec0b3-d1e3-48d7-848b-b724b56cdb2b', 'location.type.portal');"),
migrations.RunSQL("INSERT INTO rdm_location_types (id, label) VALUES ('cb856b59-0a7a-4f47-891f-7632ee3fec16', 'location.type.instrument');"),
migrations.RunSQL("INSERT INTO rdm_location_types (id, label) VALUES ('8851d904-c6e7-4d95-b189-c06b85bfb8d9', 'location.type.other');"),
# Group Roles
migrations.RunSQL("INSERT INTO rdm_group_roles (id, label, description) VALUES ('a59be619-fd9b-462b-8643-486e68f38613', 'group.role.admin.label', 'group.role.admin.description');"),
migrations.RunSQL("INSERT INTO rdm_group_roles (id, label, description) VALUES ('bb7792ee-c7f6-4815-ae24-506fc00d3169', 'group.role.member.label', 'group.role.member.description');"),
migrations.RunSQL("INSERT INTO rdm_group_roles (id, label, description) VALUES ('c4e21cc8-a446-4b38-9879-f2af71c227c3', 'group.role.datamanager.label', 'group.role.datamanager.description');"),
# Sensitivity Levels
migrations.RunSQL("INSERT INTO rdm_sensitivity_level (id, label) VALUES ('52723147-3796-428f-899e-2865ab676a0f', 'sensitivity.level.none');"),
migrations.RunSQL("INSERT INTO rdm_sensitivity_level (id, label) VALUES ('595d06b2-d05e-4d63-a842-bbfe205134c7', 'sensitivity.level.humansubjects');"),
migrations.RunSQL("INSERT INTO rdm_sensitivity_level (id, label) VALUES ('3365e6c7-5ada-4357-a3e7-42bd9ba1a9a6', 'sensitivity.level.intellectualproperty');"),
migrations.RunSQL("INSERT INTO rdm_sensitivity_level (id, label) VALUES ('ad724976-f8c9-4cda-9e04-72773071f2d4', 'sensitivity.level.harmtopublic');"),
migrations.RunSQL("INSERT INTO rdm_sensitivity_level (id, label) VALUES ('1f096e8e-0ba5-48ca-93f4-a84b8286b04d', 'sensitivity.level.preexisting');"),
migrations.RunSQL("INSERT INTO rdm_sensitivity_level (id, label) VALUES ('d4808bdd-dc33-4f92-aaaf-e7fd19180789', 'sensitivity.level.industrypartnership');"),
migrations.RunSQL("INSERT INTO rdm_sensitivity_level (id, label) VALUES ('72d5242a-75b4-461f-9c19-ce84495a4ca7', 'sensitivity.level.governmentpartnership');"),
# Data Collection Methods
migrations.RunSQL("INSERT INTO rdm_data_collection_methods (id, label) VALUES ('a99a3a24-da63-4e46-94e9-c1e3a8c46fee', 'datacollection.method.census');"),
migrations.RunSQL("INSERT INTO rdm_data_collection_methods (id, label) VALUES ('b5917e5d-919a-4f92-9d0f-3defdff85dc4', 'datacollection.method.fieldwork');"),
migrations.RunSQL("INSERT INTO rdm_data_collection_methods (id, label) VALUES ('25590403-1b2c-46fd-96e8-09151a129d76', 'datacollection.method.focusgroup');"),
migrations.RunSQL("INSERT INTO rdm_data_collection_methods (id, label) VALUES ('6c744133-ac64-447b-9153-6b470a7dcdc3', 'datacollection.method.interview');"),
migrations.RunSQL("INSERT INTO rdm_data_collection_methods (id, label) VALUES ('37ca2eb7-a6ed-4724-a33d-dc9674316aee', 'datacollection.method.labwork');"),
migrations.RunSQL("INSERT INTO rdm_data_collection_methods (id, label) VALUES ('1a27ea05-d56a-492b-a05b-21f9877ad674', 'datacollection.method.modelling');"),
migrations.RunSQL("INSERT INTO rdm_data_collection_methods (id, label) VALUES ('f653a6ea-1262-4e0b-9524-1d5a822efee0', 'datacollection.method.simulation');"),
migrations.RunSQL("INSERT INTO rdm_data_collection_methods (id, label) VALUES ('9c035ae8-7f18-41f3-b493-7fc786559140', 'datacollection.method.survey');"),
migrations.RunSQL("INSERT INTO rdm_data_collection_methods (id, label) VALUES ('b6c7f018-4aaf-48ae-9b6f-a090e6c73894', 'datacollection.method.other');"),
# Distribution Restrictions
migrations.RunSQL("INSERT INTO rdm_distribution_restriction (id, label) VALUES ('8e9e49ff-a307-4373-98fc-d8fac1c22859', 'distribution.restriction.none');"),
migrations.RunSQL("INSERT INTO rdm_distribution_restriction (id, label) VALUES ('365f998e-d525-4505-8728-90fb5c99d598', 'distribution.restriction.embargo');"),
migrations.RunSQL("INSERT INTO rdm_distribution_restriction (id, label) VALUES ('9a0164ea-3c1e-4355-8c9b-283aeed9c036', 'distribution.restriction.projectmembersonly');"),
migrations.RunSQL("INSERT INTO rdm_distribution_restriction (id, label) VALUES ('f0776576-bb4a-418f-9559-1f82239fb3ce', 'distribution.restriction.needpermissionfromprincipal');"),
migrations.RunSQL("INSERT INTO rdm_distribution_restriction (id, label) VALUES ('a4e124cd-e2c5-4938-aaa5-c43fd6eef09e', 'distribution.restriction.needpermissionfromgovernment');"),
migrations.RunSQL("INSERT INTO rdm_distribution_restriction (id, label) VALUES ('5334f652-45bf-49cd-bc7f-a529847cbe7c', 'distribution.restriction.needpermissionfromindustry');"),
# Data Collection Status
migrations.RunSQL("INSERT INTO rdm_data_collection_status (id, label) VALUES ('144a7ee6-3b14-46e1-adbb-5f1034b31fd1', 'datacollection.status.planned');"),
migrations.RunSQL("INSERT INTO rdm_data_collection_status (id, label) VALUES ('db4dec28-85cb-4511-a938-1484e2f639f7', 'datacollection.status.inprogress');"),
migrations.RunSQL("INSERT INTO rdm_data_collection_status (id, label) VALUES ('ad06a00e-21d9-4e65-8453-61f35befd9bb', 'datacollection.status.complete');"),
]
| 101.796875
| 294
| 0.747199
| 744
| 6,515
| 6.423387
| 0.369624
| 0.120527
| 0.165725
| 0.195857
| 0.456581
| 0.450513
| 0.448839
| 0.448839
| 0.448839
| 0.448839
| 0
| 0.129183
| 0.114812
| 6,515
| 63
| 295
| 103.412698
| 0.699497
| 0.028243
| 0
| 0
| 0
| 0.837209
| 0.788991
| 0.534799
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.023256
| 0
| 0.093023
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
15f153654b715d1f855bd20ccd335cd693468e5b
| 139
|
py
|
Python
|
tests/cw_test.py
|
UKHomeOffice/dq-tf-cloudwatch-ec2
|
2fe40f3517345d385455a6006fb9caa00568ffbc
|
[
"MIT"
] | null | null | null |
tests/cw_test.py
|
UKHomeOffice/dq-tf-cloudwatch-ec2
|
2fe40f3517345d385455a6006fb9caa00568ffbc
|
[
"MIT"
] | null | null | null |
tests/cw_test.py
|
UKHomeOffice/dq-tf-cloudwatch-ec2
|
2fe40f3517345d385455a6006fb9caa00568ffbc
|
[
"MIT"
] | 1
|
2021-04-11T09:11:22.000Z
|
2021-04-11T09:11:22.000Z
|
# pylint: disable=missing-docstring, line-too-long, protected-access, E1101, C0202, E0602, W0109
import unittest
from runner import Runner
| 34.75
| 96
| 0.798561
| 19
| 139
| 5.842105
| 0.894737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129032
| 0.107914
| 139
| 3
| 97
| 46.333333
| 0.766129
| 0.676259
| 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
|
d66bd26c717b57afcb3331ea05ebceb4c0503cc3
| 109
|
py
|
Python
|
clearml/backend_api/session/client/__init__.py
|
arielleoren/clearml
|
01f0be9895272c483129bab784a43cbd002022a7
|
[
"Apache-2.0"
] | 2,097
|
2019-06-11T14:36:25.000Z
|
2020-12-21T03:52:59.000Z
|
clearml/backend_api/session/client/__init__.py
|
arielleoren/clearml
|
01f0be9895272c483129bab784a43cbd002022a7
|
[
"Apache-2.0"
] | 347
|
2020-12-23T22:38:48.000Z
|
2022-03-31T20:01:06.000Z
|
clearml/backend_api/session/client/__init__.py
|
arielleoren/clearml
|
01f0be9895272c483129bab784a43cbd002022a7
|
[
"Apache-2.0"
] | 256
|
2019-06-11T14:36:28.000Z
|
2020-12-18T08:32:47.000Z
|
from .client import APIClient, StrictSession, APIError
__all__ = ["APIClient", "StrictSession", "APIError"]
| 27.25
| 54
| 0.761468
| 10
| 109
| 7.9
| 0.7
| 0.556962
| 0.759494
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.110092
| 109
| 3
| 55
| 36.333333
| 0.814433
| 0
| 0
| 0
| 0
| 0
| 0.275229
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.