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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5cace4ced6fd7981e71fd96913720188c5288b57
| 128
|
py
|
Python
|
asaloader/__init__.py
|
cy023/asaloader
|
45cabe07744794194016daf98693fad780a7029a
|
[
"MIT"
] | null | null | null |
asaloader/__init__.py
|
cy023/asaloader
|
45cabe07744794194016daf98693fad780a7029a
|
[
"MIT"
] | null | null | null |
asaloader/__init__.py
|
cy023/asaloader
|
45cabe07744794194016daf98693fad780a7029a
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
__version__ = "0.5.2"
import asaloader.loader
Loader = asaloader.loader.Loader
__all__ = ['Loader']
| 12.8
| 32
| 0.664063
| 16
| 128
| 4.8125
| 0.6875
| 0.38961
| 0.545455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.037037
| 0.15625
| 128
| 9
| 33
| 14.222222
| 0.675926
| 0.164063
| 0
| 0
| 0
| 0
| 0.104762
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5cb24ff2cc2e38263d2e5e35a887e8017ad3dcf9
| 3,356
|
py
|
Python
|
config_tracker/_nbdev.py
|
3ideas/config_tracker
|
fa556198fb170ac36ff14c55606035fd5c080aba
|
[
"Apache-2.0"
] | null | null | null |
config_tracker/_nbdev.py
|
3ideas/config_tracker
|
fa556198fb170ac36ff14c55606035fd5c080aba
|
[
"Apache-2.0"
] | null | null | null |
config_tracker/_nbdev.py
|
3ideas/config_tracker
|
fa556198fb170ac36ff14c55606035fd5c080aba
|
[
"Apache-2.0"
] | null | null | null |
# AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"read_headers": "03_convert_files.ipynb",
"parse_header_line": "03_convert_files.ipynb",
"restore_header": "03_convert_files.ipynb",
"read__write_from_sep_sv": "03_convert_files.ipynb",
"run_subprocess": "04_generate_report.ipynb",
"create_base_directories": "02_initalise_repository.ipynb",
"directory_is_empty": "02_initalise_repository.ipynb",
"parse_directory_date_to_datetime": "02_initalise_repository.ipynb",
"datetime_to_timestamp": "02_initalise_repository.ipynb",
"delete_files_in_repository_directory": "02_initalise_repository.ipynb",
"copy_directory_to_directory": "02_initalise_repository.ipynb",
"rename_all_files_in_directory_from_txt_to_csv": "02_initalise_repository.ipynb",
"add_all_new_files_to_respository": "02_initalise_repository.ipynb",
"commit_repository": "02_initalise_repository.ipynb",
"branch_exists": "02_initalise_repository.ipynb",
"create_branch": "02_initalise_repository.ipynb",
"switch_to_branch": "02_initalise_repository.ipynb",
"repository_exists": "02_initalise_repository.ipynb",
"create_repository": "02_initalise_repository.ipynb",
"add_directory_to_repository": "02_initalise_repository.ipynb",
"copy_into_repository": "02_initalise_repository.ipynb",
"write_from_sep_sv": "03_convert_files.ipynb",
"restore_header_in_mem": "03_convert_files.ipynb",
"convert_directory": "03_convert_files.ipynb",
"convert_dirs": "03_convert_files.ipynb",
"get_output_from_cmd": "04_generate_report.ipynb",
"verbose": "04_generate_report.ipynb",
"show_progress": "04_generate_report.ipynb",
"GitRepositoryReader": "04_generate_report.ipynb",
"parse_commitstr_to_datetime": "04_generate_report.ipynb",
"copyfile_fullpath": "04_generate_report.ipynb",
"mkdir_for_fullpath": "04_generate_report.ipynb",
"remove_files_from_output_branch": "04_generate_report.ipynb",
"remove_files_from_output": "04_generate_report.ipynb",
"get_report_name_refs": "04_generate_report.ipynb",
"make_output_directories": "04_generate_report.ipynb",
"get_relative_path": "04_generate_report.ipynb",
"copy_style_and_bootstrap": "04_generate_report.ipynb",
"bootstrap_navbar": "04_generate_report.ipynb",
"header": "04_generate_report.ipynb",
"footer": "04_generate_report.ipynb",
"page": "04_generate_report.ipynb",
"diff2html_template": "04_generate_report.ipynb",
"default_footer": "04_generate_report.ipynb",
"generate_difference_report_page": "04_generate_report.ipynb",
"BranchComparisonReport": "04_generate_report.ipynb",
"FileChangeHistoryReportForBranch": "04_generate_report.ipynb"}
modules = ["csv_header_restore.py",
"convert_to_csv.py",
"initalise_repository.py",
"convert_files.py",
"generate_report.py"]
doc_url = "https://3ideas.github.io/config_tracker/"
git_url = "https://github.com/3ideas/config_tracker/tree/master/"
def custom_doc_links(name): return None
| 52.4375
| 90
| 0.706496
| 385
| 3,356
| 5.620779
| 0.272727
| 0.155268
| 0.170055
| 0.223198
| 0.383549
| 0.125231
| 0.069316
| 0.069316
| 0
| 0
| 0
| 0.035069
| 0.175805
| 3,356
| 63
| 91
| 53.269841
| 0.747289
| 0.010727
| 0
| 0
| 1
| 0
| 0.70645
| 0.523508
| 0
| 0
| 0
| 0
| 0
| 1
| 0.017857
| false
| 0
| 0
| 0.017857
| 0.017857
| 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
| 1
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5cdb71d5b28ee16a55b8d019e00a422bb13024f5
| 415
|
py
|
Python
|
autotest/blueprints/api.py
|
vianzhang/auto-test-platform
|
7844f58a3f578551b492ce5b8712fee9aac5eda3
|
[
"Apache-2.0"
] | null | null | null |
autotest/blueprints/api.py
|
vianzhang/auto-test-platform
|
7844f58a3f578551b492ce5b8712fee9aac5eda3
|
[
"Apache-2.0"
] | null | null | null |
autotest/blueprints/api.py
|
vianzhang/auto-test-platform
|
7844f58a3f578551b492ce5b8712fee9aac5eda3
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
:author: WENHAO ZHANG
"""
from flask import render_template, flash, redirect, url_for, Blueprint, request
api_bp = Blueprint('api', __name__)
@api_bp.route('/api-list', methods=['GET'])
def api_list():
return render_template('api/api-list.html')
@api_bp.route('/add-api', methods=['GET'])
def add_api():
return render_template('api/add-api.html')
| 19.761905
| 79
| 0.672289
| 60
| 415
| 4.433333
| 0.533333
| 0.157895
| 0.075188
| 0.172932
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002778
| 0.13253
| 415
| 20
| 80
| 20.75
| 0.736111
| 0.151807
| 0
| 0
| 0
| 0
| 0.174041
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.125
| 0.25
| 0.625
| 0.25
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
7a55d6f2dc22d773f82a8c35a59d863fcd2c4313
| 4,778
|
py
|
Python
|
models/slurztest.py
|
LRHammond/pv4dsrl
|
7053ea392f9ddbf3672a0ac348d61abe6b7264d9
|
[
"MIT"
] | null | null | null |
models/slurztest.py
|
LRHammond/pv4dsrl
|
7053ea392f9ddbf3672a0ac348d61abe6b7264d9
|
[
"MIT"
] | 2
|
2020-03-24T16:31:16.000Z
|
2020-03-31T00:56:57.000Z
|
models/slurztest.py
|
LRHammond/pv4dsrl
|
7053ea392f9ddbf3672a0ac348d61abe6b7264d9
|
[
"MIT"
] | null | null | null |
import pydc
model = pydc.DDC("slurz22.pl", 100)
model.query("c")
# model = pydc.HYPE("slurz22.pl", 100)
# result = model.plan_step("[observation(x_pos(obj0))~=0,observation(y_pos(obj0))~=4,observation(x_size(obj0))~=small,observation(y_size(obj0))~=small,observation(colour(obj0))~=wall,observation(shape(obj0))~=square,observation(nothing(obj0))~=no,observation(x_pos(obj1))~=1,observation(y_pos(obj1))~=4,observation(x_size(obj1))~=small,observation(y_size(obj1))~=small,observation(colour(obj1))~=wall,observation(shape(obj1))~=square,observation(nothing(obj1))~=no,observation(x_pos(obj2))~=2,observation(y_pos(obj2))~=4,observation(x_size(obj2))~=small,observation(y_size(obj2))~=small,observation(colour(obj2))~=wall,observation(shape(obj2))~=square,observation(nothing(obj2))~=no,observation(x_pos(obj3))~=3,observation(y_pos(obj3))~=4,observation(x_size(obj3))~=small,observation(y_size(obj3))~=small,observation(colour(obj3))~=wall,observation(shape(obj3))~=square,observation(nothing(obj3))~=no,observation(x_pos(obj4))~=4,observation(y_pos(obj4))~=4,observation(x_size(obj4))~=small,observation(y_size(obj4))~=small,observation(colour(obj4))~=wall,observation(shape(obj4))~=square,observation(nothing(obj4))~=no,observation(x_pos(obj5))~=0,observation(y_pos(obj5))~=3,observation(x_size(obj5))~=small,observation(y_size(obj5))~=small,observation(colour(obj5))~=wall,observation(shape(obj5))~=square,observation(nothing(obj5))~=no,observation(x_pos(obj6))~=4,observation(y_pos(obj6))~=3,observation(x_size(obj6))~=small,observation(y_size(obj6))~=small,observation(colour(obj6))~=wall,observation(shape(obj6))~=square,observation(nothing(obj6))~=no,observation(x_pos(obj7))~=0,observation(y_pos(obj7))~=2,observation(x_size(obj7))~=small,observation(y_size(obj7))~=small,observation(colour(obj7))~=wall,observation(shape(obj7))~=square,observation(nothing(obj7))~=no,observation(x_pos(obj8))~=3,observation(y_pos(obj8))~=2,observation(x_size(obj8))~=small,observation(y_size(obj8))~=small,observation(colour(obj8))~=wall,observation(shape(obj8))~=square,observation(nothing(obj8))~=no,observation(x_pos(obj9))~=4,observation(y_pos(obj9))~=2,observation(x_size(obj9))~=small,observation(y_size(obj9))~=small,observation(colour(obj9))~=wall,observation(shape(obj9))~=square,observation(nothing(obj9))~=no,observation(x_pos(obj10))~=0,observation(y_pos(obj10))~=1,observation(x_size(obj10))~=small,observation(y_size(obj10))~=small,observation(colour(obj10))~=wall,observation(shape(obj10))~=square,observation(nothing(obj10))~=no,observation(x_pos(obj11))~=4,observation(y_pos(obj11))~=1,observation(x_size(obj11))~=small,observation(y_size(obj11))~=small,observation(colour(obj11))~=wall,observation(shape(obj11))~=square,observation(nothing(obj11))~=no,observation(x_pos(obj12))~=0,observation(y_pos(obj12))~=0,observation(x_size(obj12))~=small,observation(y_size(obj12))~=small,observation(colour(obj12))~=wall,observation(shape(obj12))~=square,observation(nothing(obj12))~=no,observation(x_pos(obj13))~=1,observation(y_pos(obj13))~=0,observation(x_size(obj13))~=small,observation(y_size(obj13))~=small,observation(colour(obj13))~=wall,observation(shape(obj13))~=square,observation(nothing(obj13))~=no,observation(x_pos(obj14))~=2,observation(y_pos(obj14))~=0,observation(x_size(obj14))~=small,observation(y_size(obj14))~=small,observation(colour(obj14))~=wall,observation(shape(obj14))~=square,observation(nothing(obj14))~=no,observation(x_pos(obj15))~=3,observation(y_pos(obj15))~=0,observation(x_size(obj15))~=small,observation(y_size(obj15))~=small,observation(colour(obj15))~=wall,observation(shape(obj15))~=square,observation(nothing(obj15))~=no,observation(x_pos(obj16))~=4,observation(y_pos(obj16))~=0,observation(x_size(obj16))~=small,observation(y_size(obj16))~=small,observation(colour(obj16))~=wall,observation(shape(obj16))~=square,observation(nothing(obj16))~=no,observation(x_pos(obj17))~=1,observation(y_pos(obj17))~=1,observation(x_size(obj17))~=small,observation(y_size(obj17))~=small,observation(colour(obj17))~=hole,observation(shape(obj17))~=square,observation(nothing(obj17))~=no,observation(x_pos(obj18))~=3,observation(y_pos(obj18))~=1,observation(x_size(obj18))~=small,observation(y_size(obj18))~=small,observation(colour(obj18))~=goal,observation(shape(obj18))~=square,observation(nothing(obj18))~=no,observation(x_pos(obj19))~=1,observation(y_pos(obj19))~=3,observation(x_size(obj19))~=small,observation(y_size(obj19))~=small,observation(colour(obj19))~=agent,observation(shape(obj19))~=square,observation(nothing(obj19))~=no,observation(nothing(no_object))~=yes]",
# 100,
# max_horizon=10,
# used_horizon=6,
# use_abstraction=False
# )
# best_action = result["best_action"]
# stop = result["stop"]
# print best_action
| 251.473684
| 4,499
| 0.769778
| 687
| 4,778
| 5.225619
| 0.097525
| 0.133705
| 0.083565
| 0.116992
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.056356
| 0.012139
| 4,778
| 18
| 4,500
| 265.444444
| 0.704237
| 0.980954
| 0
| 0
| 0
| 0
| 0.1375
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
7a6099a5a9b176b2310ceaae08f7d2f67f1ce3ae
| 196
|
py
|
Python
|
I.P.E. Pratico/Aula 10/exercicio_08.py
|
GuilhermeSbizero0804/I.P.E
|
53288fb70e1c8bbaf516bea0912f65f703f91497
|
[
"MIT"
] | null | null | null |
I.P.E. Pratico/Aula 10/exercicio_08.py
|
GuilhermeSbizero0804/I.P.E
|
53288fb70e1c8bbaf516bea0912f65f703f91497
|
[
"MIT"
] | null | null | null |
I.P.E. Pratico/Aula 10/exercicio_08.py
|
GuilhermeSbizero0804/I.P.E
|
53288fb70e1c8bbaf516bea0912f65f703f91497
|
[
"MIT"
] | null | null | null |
lista = ['99', '102', '89', '120', '117']
cont = 0
maximo = lista[1]
while cont < 3:
if lista[cont] > lista[cont+1]:
maximo = lista[cont+1]
cont = cont + 1
print(maximo)
| 19.6
| 42
| 0.520408
| 29
| 196
| 3.517241
| 0.482759
| 0.264706
| 0.196078
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135714
| 0.285714
| 196
| 9
| 43
| 21.777778
| 0.592857
| 0
| 0
| 0
| 0
| 0
| 0.069519
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.125
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7a7fbadcc20153e48d117ec2de8b57761c02f103
| 236
|
py
|
Python
|
dublintraceroute/__init__.py
|
h3ct0r/python-dublin-traceroute
|
15394c8b56cfa4ca8122d41cb8be99a859c9e19b
|
[
"BSD-2-Clause"
] | 35
|
2016-07-28T00:06:40.000Z
|
2022-03-17T16:29:30.000Z
|
dublintraceroute/__init__.py
|
h3ct0r/python-dublin-traceroute
|
15394c8b56cfa4ca8122d41cb8be99a859c9e19b
|
[
"BSD-2-Clause"
] | 10
|
2017-10-20T14:50:03.000Z
|
2021-02-05T11:22:46.000Z
|
dublintraceroute/__init__.py
|
h3ct0r/python-dublin-traceroute
|
15394c8b56cfa4ca8122d41cb8be99a859c9e19b
|
[
"BSD-2-Clause"
] | 6
|
2017-03-06T16:46:15.000Z
|
2020-08-04T06:53:14.000Z
|
from __future__ import absolute_import
from __future__ import print_function
from .dublintraceroute import (
_dublintraceroute,
DublinTraceroute,
to_graphviz,
probe,
)
from .tracerouteresults import TracerouteResults
| 18.153846
| 48
| 0.79661
| 22
| 236
| 8
| 0.5
| 0.113636
| 0.181818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.169492
| 236
| 12
| 49
| 19.666667
| 0.897959
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.444444
| 0
| 0.444444
| 0.111111
| 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
| 0
| 0
|
0
| 4
|
7a802d58e64ddde1ef750061c77aca59202a0c64
| 545
|
py
|
Python
|
tests/test_veracode-results-parser.py
|
xoxide/veracode-results-parser
|
9f1746d8ea90404273d9b431b0424702d5034a35
|
[
"Apache-2.0"
] | null | null | null |
tests/test_veracode-results-parser.py
|
xoxide/veracode-results-parser
|
9f1746d8ea90404273d9b431b0424702d5034a35
|
[
"Apache-2.0"
] | 1
|
2021-03-31T18:49:57.000Z
|
2021-03-31T18:49:57.000Z
|
tests/test_veracode-results-parser.py
|
xoxide/veracode-results-parser
|
9f1746d8ea90404273d9b431b0424702d5034a35
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for the veracode-results-parser module.
"""
import pytest
from veracode-results-parser import veracode-results-parser
def test_without_test_object():
assert False
class TestVeracode-Results-Parser(object):
@pytest.fixture
def return_a_test_object(self):
pass
def test_veracode-results-parser(self, veracode-results-parser):
assert False
def test_with_error(self, veracode-results-parser):
with pytest.raises(ValueError):
pass
| 20.961538
| 68
| 0.702752
| 69
| 545
| 5.42029
| 0.492754
| 0.243316
| 0.336898
| 0.13369
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002268
| 0.190826
| 545
| 25
| 69
| 21.8
| 0.845805
| 0.077064
| 0
| 0.307692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 0
| null | null | 0.153846
| 0.153846
| null | null | 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
7a89548fde7211c035010fc482f746cff39168f7
| 55
|
py
|
Python
|
custom_components/hive/config_flow.py
|
ovid-io/Hive-Custom-Component
|
b573b5af8aebe6d5c79c7ac0938946fde3fef432
|
[
"MIT"
] | 5
|
2021-05-04T13:09:15.000Z
|
2021-07-13T06:36:03.000Z
|
custom_components/hive/config_flow.py
|
ovid-io/Hive-Custom-Component
|
b573b5af8aebe6d5c79c7ac0938946fde3fef432
|
[
"MIT"
] | 23
|
2021-05-03T11:23:37.000Z
|
2022-02-17T08:48:11.000Z
|
custom_components/hive/config_flow.py
|
ovid-io/Hive-Custom-Component
|
b573b5af8aebe6d5c79c7ac0938946fde3fef432
|
[
"MIT"
] | 3
|
2021-05-04T14:50:03.000Z
|
2021-08-13T14:41:28.000Z
|
from homeassistant.components.hive.config_flow import *
| 55
| 55
| 0.872727
| 7
| 55
| 6.714286
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.054545
| 55
| 1
| 55
| 55
| 0.903846
| 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
| 0
| 0
|
0
| 4
|
7a99e05c4046002d5b93802b397742f86584ac5a
| 1,009
|
py
|
Python
|
controller/controller_server/errors.py
|
IBM/spectrum-connect-csi
|
3b92dfdf65fac9f680a59e38a92dac4e915efc0d
|
[
"Apache-2.0"
] | null | null | null |
controller/controller_server/errors.py
|
IBM/spectrum-connect-csi
|
3b92dfdf65fac9f680a59e38a92dac4e915efc0d
|
[
"Apache-2.0"
] | null | null | null |
controller/controller_server/errors.py
|
IBM/spectrum-connect-csi
|
3b92dfdf65fac9f680a59e38a92dac4e915efc0d
|
[
"Apache-2.0"
] | null | null | null |
import controller.controller_server.messages as messages
class BaseControllerServerException(Exception):
def __str__(self, *args, **kwargs):
return self.message
class ValidationException(BaseControllerServerException):
def __init__(self, msg):
super().__init__()
self.message = messages.VALIDATION_EXCEPTION_MESSAGE.format(msg)
class InvalidNodeId(BaseControllerServerException):
def __init__(self, node_id):
super().__init__()
self.message = messages.WRONG_ID_FORMAT_MESSAGE.format("node", node_id)
class ObjectIdError(BaseControllerServerException):
def __init__(self, object_type, object_id):
super().__init__()
self.message = messages.WRONG_ID_FORMAT_MESSAGE.format(object_type, object_id)
class ObjectAlreadyProcessingError(BaseControllerServerException):
def __init__(self, object_id_or_name):
super().__init__()
self.message = messages.OBJECT_ALREADY_PROCESSING_MESSAGE.format(object_id_or_name)
| 28.828571
| 91
| 0.754212
| 104
| 1,009
| 6.740385
| 0.317308
| 0.091298
| 0.205421
| 0.228245
| 0.370899
| 0.159772
| 0.159772
| 0.159772
| 0.159772
| 0.159772
| 0
| 0
| 0.1556
| 1,009
| 34
| 92
| 29.676471
| 0.82277
| 0
| 0
| 0.2
| 0
| 0
| 0.003964
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.05
| 0.05
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
8fb10155a48374ee064b6a62e4cd7f0120782b8a
| 105
|
py
|
Python
|
app/db/models/base.py
|
maxzhenzhera/my_vocab_backend
|
2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1
|
[
"MIT"
] | 1
|
2021-11-18T16:25:22.000Z
|
2021-11-18T16:25:22.000Z
|
app/db/models/base.py
|
Max-Zhenzhera/my_vocab_backend
|
f93d0c7c7f4a45fce47eb7ce74cfcda195b13a72
|
[
"MIT"
] | null | null | null |
app/db/models/base.py
|
Max-Zhenzhera/my_vocab_backend
|
f93d0c7c7f4a45fce47eb7ce74cfcda195b13a72
|
[
"MIT"
] | null | null | null |
from sqlalchemy.ext.declarative import declarative_base
__all__ = ['Base']
Base = declarative_base()
| 13.125
| 55
| 0.771429
| 12
| 105
| 6.25
| 0.583333
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133333
| 105
| 7
| 56
| 15
| 0.824176
| 0
| 0
| 0
| 0
| 0
| 0.038095
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
8fb76be11622c14911be9f7be95580223ccafb6d
| 1,133
|
py
|
Python
|
ant/validata/driver.py
|
skdong/ant
|
c10df1983812a4d296c7aeed0124a091c987c57a
|
[
"Apache-2.0"
] | null | null | null |
ant/validata/driver.py
|
skdong/ant
|
c10df1983812a4d296c7aeed0124a091c987c57a
|
[
"Apache-2.0"
] | null | null | null |
ant/validata/driver.py
|
skdong/ant
|
c10df1983812a4d296c7aeed0124a091c987c57a
|
[
"Apache-2.0"
] | null | null | null |
import abc
class Driver(object):
def __init__(self):
self.over = False
@abc.abstractmethod
def validata(self, letter):
pass
def close(self):
self.over = True
class Letter(Driver):
def __init__(self, letter):
super(Letter, self).__init__()
self.letter = letter
def validata(self, letter):
if letter != self.letter:
return False
class Letters(Driver):
def __init__(self, letters):
super(Letters, self).__init__()
self.letters = letters
def validata(self, letter):
if letter not in self.letters:
return False
class NumDriver(Driver):
def validata(self, letter):
return self.parser(letter)
def __init__(self, parser):
super(NumDriver, self).__init__()
self.parser = parser
class ZeroOrOne(NumDriver):
def validata(self, letter):
return self.parser(letter)
class ZeroOrMany(NumDriver):
def validata(self, letter):
return self.parser(letter)
class OneOrMany(NumDriver):
def validata(self, letter):
return self.parser(letter)
| 19.877193
| 41
| 0.626655
| 129
| 1,133
| 5.286822
| 0.209302
| 0.146628
| 0.153959
| 0.215543
| 0.391496
| 0.391496
| 0.306452
| 0.306452
| 0.243402
| 0.167155
| 0
| 0
| 0.271845
| 1,133
| 57
| 42
| 19.877193
| 0.826667
| 0
| 0
| 0.342105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.315789
| false
| 0.026316
| 0.026316
| 0.105263
| 0.684211
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
8fb957fef59efcff4db4d89b03dc07111b143f30
| 1,036
|
py
|
Python
|
vilya/models/mute.py
|
mubashshirjamal/code
|
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
|
[
"BSD-3-Clause"
] | 1,582
|
2015-01-05T02:41:44.000Z
|
2022-03-30T20:03:22.000Z
|
vilya/models/mute.py
|
mubashshirjamal/code
|
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
|
[
"BSD-3-Clause"
] | 66
|
2015-01-23T07:58:04.000Z
|
2021-11-12T02:23:27.000Z
|
vilya/models/mute.py
|
mubashshirjamal/code
|
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
|
[
"BSD-3-Clause"
] | 347
|
2015-01-05T07:47:07.000Z
|
2021-09-20T21:22:32.000Z
|
# coding: utf-8
from vilya.libs.rdstore import rds
# FIXME: 直接取proj了,如果以后有不基于proj的再改吧=.=
RDS_MUTE_KEY = "mute:{type}:{proj_name}:{target_id}"
def mute_rds_key(type_, proj_name, target_id):
return RDS_MUTE_KEY.format(type=type_, proj_name=proj_name,
target_id=target_id)
class Mute(object):
@staticmethod
def mute(type_, proj_name, target_id, user_id):
key = mute_rds_key(type_, proj_name, target_id)
rds.sadd(key, user_id)
@staticmethod
def unmute(type_, proj_name, target_id, user_id):
key = mute_rds_key(type_, proj_name, target_id)
rds.srem(key, user_id)
@staticmethod
def filter(type_, proj_name, target_id, users):
key = mute_rds_key(type_, proj_name, target_id)
muted_users = rds.smembers(key)
return set(users) - set(muted_users)
@staticmethod
def is_muted(type_, proj_name, target_id, user_id):
key = mute_rds_key(type_, proj_name, target_id)
return rds.sismember(key, user_id)
| 28
| 63
| 0.67278
| 151
| 1,036
| 4.238411
| 0.238411
| 0.15
| 0.20625
| 0.275
| 0.5625
| 0.45625
| 0.4125
| 0.4125
| 0.4125
| 0.360938
| 0
| 0.001242
| 0.222973
| 1,036
| 36
| 64
| 28.777778
| 0.793789
| 0.047297
| 0
| 0.347826
| 0
| 0
| 0.035569
| 0.035569
| 0
| 0
| 0
| 0.027778
| 0
| 1
| 0.217391
| false
| 0
| 0.043478
| 0.043478
| 0.434783
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8f022d7783ec0b72dadfdeb551c39511b69d6e1b
| 5,432
|
py
|
Python
|
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/ARB/gpu_shader_int64.py
|
JE-Chen/je_old_repo
|
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
|
[
"MIT"
] | null | null | null |
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/ARB/gpu_shader_int64.py
|
JE-Chen/je_old_repo
|
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
|
[
"MIT"
] | null | null | null |
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/ARB/gpu_shader_int64.py
|
JE-Chen/je_old_repo
|
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
|
[
"MIT"
] | null | null | null |
'''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
# End users want this...
from OpenGL.raw.GL._types import *
from OpenGL.raw.GL import _errors
from OpenGL.constant import Constant as _C
import ctypes
_EXTENSION_NAME = 'GL_ARB_gpu_shader_int64'
def _f( function ):
return _p.createFunction( function,_p.PLATFORM.GL,'GL_ARB_gpu_shader_int64',error_checker=_errors._error_checker)
GL_INT64_ARB=_C('GL_INT64_ARB',0x140E)
GL_INT64_VEC2_ARB=_C('GL_INT64_VEC2_ARB',0x8FE9)
GL_INT64_VEC3_ARB=_C('GL_INT64_VEC3_ARB',0x8FEA)
GL_INT64_VEC4_ARB=_C('GL_INT64_VEC4_ARB',0x8FEB)
GL_UNSIGNED_INT64_ARB=_C('GL_UNSIGNED_INT64_ARB',0x140F)
GL_UNSIGNED_INT64_VEC2_ARB=_C('GL_UNSIGNED_INT64_VEC2_ARB',0x8FF5)
GL_UNSIGNED_INT64_VEC3_ARB=_C('GL_UNSIGNED_INT64_VEC3_ARB',0x8FF6)
GL_UNSIGNED_INT64_VEC4_ARB=_C('GL_UNSIGNED_INT64_VEC4_ARB',0x8FF7)
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,arrays.GLint64Array)
def glGetUniformi64vARB(program,location,params):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,arrays.GLuint64Array)
def glGetUniformui64vARB(program,location,params):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLsizei,arrays.GLint64Array)
def glGetnUniformi64vARB(program,location,bufSize,params):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLsizei,arrays.GLuint64Array)
def glGetnUniformui64vARB(program,location,bufSize,params):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLint64)
def glProgramUniform1i64ARB(program,location,x):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLsizei,arrays.GLint64Array)
def glProgramUniform1i64vARB(program,location,count,value):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLuint64)
def glProgramUniform1ui64ARB(program,location,x):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLsizei,arrays.GLuint64Array)
def glProgramUniform1ui64vARB(program,location,count,value):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLint64,_cs.GLint64)
def glProgramUniform2i64ARB(program,location,x,y):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLsizei,arrays.GLint64Array)
def glProgramUniform2i64vARB(program,location,count,value):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLuint64,_cs.GLuint64)
def glProgramUniform2ui64ARB(program,location,x,y):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLsizei,arrays.GLuint64Array)
def glProgramUniform2ui64vARB(program,location,count,value):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLint64,_cs.GLint64,_cs.GLint64)
def glProgramUniform3i64ARB(program,location,x,y,z):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLsizei,arrays.GLint64Array)
def glProgramUniform3i64vARB(program,location,count,value):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLuint64,_cs.GLuint64,_cs.GLuint64)
def glProgramUniform3ui64ARB(program,location,x,y,z):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLsizei,arrays.GLuint64Array)
def glProgramUniform3ui64vARB(program,location,count,value):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLint64,_cs.GLint64,_cs.GLint64,_cs.GLint64)
def glProgramUniform4i64ARB(program,location,x,y,z,w):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLsizei,arrays.GLint64Array)
def glProgramUniform4i64vARB(program,location,count,value):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLuint64,_cs.GLuint64,_cs.GLuint64,_cs.GLuint64)
def glProgramUniform4ui64ARB(program,location,x,y,z,w):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLsizei,arrays.GLuint64Array)
def glProgramUniform4ui64vARB(program,location,count,value):pass
@_f
@_p.types(None,_cs.GLint,_cs.GLint64)
def glUniform1i64ARB(location,x):pass
@_f
@_p.types(None,_cs.GLint,_cs.GLsizei,arrays.GLint64Array)
def glUniform1i64vARB(location,count,value):pass
@_f
@_p.types(None,_cs.GLint,_cs.GLuint64)
def glUniform1ui64ARB(location,x):pass
@_f
@_p.types(None,_cs.GLint,_cs.GLsizei,arrays.GLuint64Array)
def glUniform1ui64vARB(location,count,value):pass
@_f
@_p.types(None,_cs.GLint,_cs.GLint64,_cs.GLint64)
def glUniform2i64ARB(location,x,y):pass
@_f
@_p.types(None,_cs.GLint,_cs.GLsizei,arrays.GLint64Array)
def glUniform2i64vARB(location,count,value):pass
@_f
@_p.types(None,_cs.GLint,_cs.GLuint64,_cs.GLuint64)
def glUniform2ui64ARB(location,x,y):pass
@_f
@_p.types(None,_cs.GLint,_cs.GLsizei,arrays.GLuint64Array)
def glUniform2ui64vARB(location,count,value):pass
@_f
@_p.types(None,_cs.GLint,_cs.GLint64,_cs.GLint64,_cs.GLint64)
def glUniform3i64ARB(location,x,y,z):pass
@_f
@_p.types(None,_cs.GLint,_cs.GLsizei,arrays.GLint64Array)
def glUniform3i64vARB(location,count,value):pass
@_f
@_p.types(None,_cs.GLint,_cs.GLuint64,_cs.GLuint64,_cs.GLuint64)
def glUniform3ui64ARB(location,x,y,z):pass
@_f
@_p.types(None,_cs.GLint,_cs.GLsizei,arrays.GLuint64Array)
def glUniform3ui64vARB(location,count,value):pass
@_f
@_p.types(None,_cs.GLint,_cs.GLint64,_cs.GLint64,_cs.GLint64,_cs.GLint64)
def glUniform4i64ARB(location,x,y,z,w):pass
@_f
@_p.types(None,_cs.GLint,_cs.GLsizei,arrays.GLint64Array)
def glUniform4i64vARB(location,count,value):pass
@_f
@_p.types(None,_cs.GLint,_cs.GLuint64,_cs.GLuint64,_cs.GLuint64,_cs.GLuint64)
def glUniform4ui64ARB(location,x,y,z,w):pass
@_f
@_p.types(None,_cs.GLint,_cs.GLsizei,arrays.GLuint64Array)
def glUniform4ui64vARB(location,count,value):pass
| 41.784615
| 118
| 0.800258
| 817
| 5,432
| 4.990208
| 0.134639
| 0.01766
| 0.06181
| 0.09713
| 0.708119
| 0.631101
| 0.631101
| 0.628158
| 0.628158
| 0.615894
| 0
| 0.058153
| 0.06296
| 5,432
| 129
| 119
| 42.108527
| 0.742829
| 0.018409
| 0
| 0.432
| 1
| 0
| 0.040031
| 0.027906
| 0
| 0
| 0.009238
| 0
| 0
| 1
| 0.296
| false
| 0.288
| 0.048
| 0.008
| 0.352
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
8f11867ebf5dd3e39103b1ab4fc7e573c9dd299a
| 194
|
py
|
Python
|
fakenews_detection/Fakenews-Detection/myvenv/bin/django-admin.py
|
Benedito-Medeiros-Neto-UnB/TacProgWeb
|
c7d795a69524e428988d4ed796f4a1c2ded035e3
|
[
"MIT"
] | 1
|
2021-04-12T13:34:00.000Z
|
2021-04-12T13:34:00.000Z
|
fakenews_detection/Fakenews-Detection/myvenv/bin/django-admin.py
|
Benedito-Medeiros-Neto-UnB/TacProgWeb
|
c7d795a69524e428988d4ed796f4a1c2ded035e3
|
[
"MIT"
] | 19
|
2021-05-14T20:56:29.000Z
|
2022-02-10T11:59:33.000Z
|
fakenews_detection/Fakenews-Detection/myvenv/bin/django-admin.py
|
Benedito-Medeiros-Neto-UnB/TacProgWeb
|
c7d795a69524e428988d4ed796f4a1c2ded035e3
|
[
"MIT"
] | 10
|
2021-05-13T16:18:53.000Z
|
2021-11-08T14:30:08.000Z
|
#!/home/matheus/Documents/UnB/Semestre 9/tac/fakenews/django_project/myvenv/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 32.333333
| 87
| 0.804124
| 26
| 194
| 5.538462
| 0.884615
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011236
| 0.082474
| 194
| 5
| 88
| 38.8
| 0.797753
| 0.443299
| 0
| 0
| 0
| 0
| 0.074766
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 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
| 0
| 0
|
0
| 4
|
8f174fcde0f32872714731c03a5109099d889be7
| 991
|
py
|
Python
|
game.py
|
NonExistentUsername/explosive-kittens-bot
|
d96fd068bb1b11b0f2409f85c59c20fa68593c69
|
[
"Apache-2.0"
] | null | null | null |
game.py
|
NonExistentUsername/explosive-kittens-bot
|
d96fd068bb1b11b0f2409f85c59c20fa68593c69
|
[
"Apache-2.0"
] | null | null | null |
game.py
|
NonExistentUsername/explosive-kittens-bot
|
d96fd068bb1b11b0f2409f85c59c20fa68593c69
|
[
"Apache-2.0"
] | null | null | null |
from player import Player
from settings import Settings
class Game:
class NOPlayerError(Exception):
pass
@staticmethod
def __generate_players(deck, no_players, no_cardsper_player):
_result = []
for i in range(no_players):
_new_deck = []
for j in range(no_cardsper_player):
_new_deck.append(deck.pop())
_result.append(Player(_new_deck))
return _result
def __init__(self, settings, deck):
self._deck = deck
self._turn = 0
self._players = Game.__generate_players(self._deck, settings.number_of_players, settings.number_of_cards_per_player)
def get_player_deck(self, user_id):
return self._players[user_id].deck
@property
def deck(self):
return self._deck
@property
def turn(self):
return self._turn
class GameCreator:
def check(self, no_players):
return no_players > 0
| 26.078947
| 125
| 0.620585
| 118
| 991
| 4.838983
| 0.338983
| 0.063047
| 0.056042
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002894
| 0.302725
| 991
| 38
| 126
| 26.078947
| 0.823444
| 0
| 0
| 0.068966
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.206897
| false
| 0.034483
| 0.068966
| 0.137931
| 0.551724
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
8f2bff58b9613bb230b97a100ffc5336ebc7d6dc
| 1,135
|
py
|
Python
|
lewis_emulators/volumetric_rig/hmi_device.py
|
ISISComputingGroup/EPICS-DeviceEmulator
|
026c2a14a16bb204ea7527e3765daa182cafa814
|
[
"BSD-3-Clause"
] | 2
|
2020-10-20T16:49:13.000Z
|
2021-02-19T10:41:44.000Z
|
lewis_emulators/volumetric_rig/hmi_device.py
|
ISISComputingGroup/EPICS-DeviceEmulator
|
026c2a14a16bb204ea7527e3765daa182cafa814
|
[
"BSD-3-Clause"
] | 9
|
2019-03-22T15:35:15.000Z
|
2021-07-28T11:05:43.000Z
|
lewis_emulators/volumetric_rig/hmi_device.py
|
ISISComputingGroup/EPICS-DeviceEmulator
|
026c2a14a16bb204ea7527e3765daa182cafa814
|
[
"BSD-3-Clause"
] | 1
|
2020-10-21T17:02:44.000Z
|
2020-10-21T17:02:44.000Z
|
from .ethernet_device import EthernetDevice
from .utilities import format_int
class HmiDevice(EthernetDevice):
OK_STATUS = "OK"
def __init__(self, ip):
self._status = HmiDevice.OK_STATUS
self._base_page = 34
self._sub_page = 2
self._count_cycles = ["999", "006", "002", "002", "002", "002", "002", "002", "001", "001", "310"]
self._count = 0
self._max_grabbed = 38
self._limit = 20
super(HmiDevice, self).__init__(ip)
def base_page(self, as_string, length):
return format_int(self._base_page, as_string, length)
def sub_page(self, as_string, length):
return format_int(self._sub_page, as_string, length)
def count_cycles(self):
return list(self._count_cycles)
def max_grabbed(self, as_string, length):
return format_int(self._max_grabbed, as_string, length)
def limit(self, as_string, length):
return format_int(self._limit, as_string, length)
def count(self, as_string, length):
return format_int(self._count, as_string, length)
def status(self):
return self._status
| 29.102564
| 106
| 0.655507
| 153
| 1,135
| 4.51634
| 0.261438
| 0.115774
| 0.202605
| 0.130246
| 0.40521
| 0.279305
| 0.279305
| 0.279305
| 0.118669
| 0
| 0
| 0.047072
| 0.232599
| 1,135
| 38
| 107
| 29.868421
| 0.746269
| 0
| 0
| 0
| 0
| 0
| 0.030837
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.296296
| false
| 0
| 0.074074
| 0.259259
| 0.703704
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
8f37ff434bbddf2a6cf3ed6c3593ec5cccd5775d
| 1,762
|
py
|
Python
|
academie_administration.py
|
corentinmusard/ctf_fcsc_2020_writeups
|
c62e8905a1025a52fd27c403d37e71b17ee3f95d
|
[
"MIT"
] | 2
|
2020-05-04T17:08:35.000Z
|
2020-05-05T07:47:18.000Z
|
academie_administration.py
|
corentinmusard/ctf_fcsc_2020_writeups
|
c62e8905a1025a52fd27c403d37e71b17ee3f95d
|
[
"MIT"
] | null | null | null |
academie_administration.py
|
corentinmusard/ctf_fcsc_2020_writeups
|
c62e8905a1025a52fd27c403d37e71b17ee3f95d
|
[
"MIT"
] | null | null | null |
from Crypto.Cipher import PKCS1_v1_5
from Crypto.PublicKey import RSA
from base64 import b64decode
n = 0x00d71e77828c9231e76902a2d55c78dea20c8ffe285931df409c606106b92f62408076cb674ab55956691707faf94cbd6c377a467d70a76722b34d7a94c3ba4b7c4ba9327cb738954564a405a89f127c4ec6c82d400630f460a691bb9bca0479111375f0aed35189c574b9aa3fb683e4786bcdf95c4c85ea523b5193fc146b335d3070fa501b1b3881138df7a50cc08ef96352184ea9f9f85c5dcd7a0dd48e7bee917bad7db492d5ab163b0a8ace8ede471a1701867bab99f14b0c3a0d8247c1918cbb2e229e49636e02c1c93a9ba5221b0795d6100250fdfdd19bbeabc2c074d7ec00fb1171cb7adc81799f86684663824db7f1e6166f4263f494a0ca33cc7513
e = 65537
d = 0x62b560314f3f6616c160ac472aff6b69004ab25ce150b91874a8e4dca8eccd30bbc1c6e3c6ac202a3e5e8b12e6820809380bab7cb3cc9cce9767ddef95404e92e244e91dc114fda9b1dc719c4621bd58886e221556c1efe0c98de5803eda7e930f52f6f5c191909e42494f8d9cba3883e933c2504fecc2f0a8b76e2825566b6267fe08f156e56f0e99f1e5957befeb0a2c92975723333607ddfbaef1b1d833b796714236c5a4a9194b1b524c506991f00efa80374bb5d02fb7440dd4f8398dab71675905883deb484833884efef8271bd655605e48b76d9aa837f97ade1bcd5d1a30d4e99e5b3c15f89c1fdad1864855ce83ee8e51c7de3212477d46b835df41
key = RSA.construct((n, e, d))
cipher = PKCS1_v1_5.new(key)
sentinel = "dummy"
# cat flag.txt.enc | base64
secret = "baJJraipee0omySdntSvRyvaLrvR2eqLY/kn+b+Ruhu3bDeObmLwe3cX8eHe8D3WWoxu485ARH0S97B60tGCVqOZe9V4bMz6pnix9gsGnmuMzHDraUjDYk6veDJye9A0yZZMfdhjgw07B7xLJCxP4OrTaueoH/FBm2WLht0w14rMeX9beitcCNP8gH+82eYef0YHHNw5BogrkITpr5IxxLND+6wjSSMtNosNND9unix/8yJC4YhVkP3+dizoZYxoTATqGbi/e1FTxKTN+9WEfaO1P8KFRpt3YaXabxd4uJctpgBtJ5qAQrv6pwRexyv3ePJNbaX+H95CJme8nFP3fQ=="
secret2 = b64decode(secret)
print(cipher.decrypt(secret2, sentinel))
#b'FCSC{ac5cad66114d4866a4b55e43cb8896cc4947855241b5af8d2f8a123c36083d98}\n'
| 92.736842
| 520
| 0.940409
| 66
| 1,762
| 25.045455
| 0.666667
| 0.012099
| 0.009679
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.452103
| 0.028377
| 1,762
| 18
| 521
| 97.888889
| 0.513435
| 0.056754
| 0
| 0
| 0
| 0.083333
| 0.210368
| 0.207354
| 0
| 1
| 0.620856
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0.083333
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8f5edd4cc9d310317ac120b144f02353024162a6
| 160
|
py
|
Python
|
main/view/functions.py
|
hlefebvr/tx-gtfs
|
6d42abc25d35525d027f35d35d73862534fa261d
|
[
"MIT"
] | 3
|
2019-08-14T07:03:30.000Z
|
2022-02-11T19:00:00.000Z
|
main/view/functions.py
|
hlefebvr/tx-gtfs
|
6d42abc25d35525d027f35d35d73862534fa261d
|
[
"MIT"
] | 1
|
2021-03-05T20:47:23.000Z
|
2021-03-17T12:33:41.000Z
|
main/view/functions.py
|
hlefebvr/tx-gtfs
|
6d42abc25d35525d027f35d35d73862534fa261d
|
[
"MIT"
] | 1
|
2021-11-06T17:16:21.000Z
|
2021-11-06T17:16:21.000Z
|
#!/usr/bin/python3
# -*- coding: utf-8 -*-
def str0(n): return str(n) if n > 9 else '0%s' % n
def strh(t): return '%s:%s' % ( str0(int(t/60)), str0(t % 60) )
| 22.857143
| 63
| 0.53125
| 32
| 160
| 2.65625
| 0.625
| 0.070588
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085271
| 0.19375
| 160
| 6
| 64
| 26.666667
| 0.573643
| 0.24375
| 0
| 0
| 0
| 0
| 0.067227
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| false
| 0
| 0
| 1
| 1
| 0
| 0
| 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
| 4
|
56ac61d267bcd4b936379c42e0e51c7908b0fd77
| 84
|
py
|
Python
|
Section 9/readlines1.py
|
PacktPublishing/Learning-Python-v-
|
30fb28dfaaa18815f1b4c0b683e8839da223b195
|
[
"MIT"
] | 1
|
2021-10-05T19:45:43.000Z
|
2021-10-05T19:45:43.000Z
|
Section 9/readlines1.py
|
PacktPublishing/Learning-Python-v-
|
30fb28dfaaa18815f1b4c0b683e8839da223b195
|
[
"MIT"
] | null | null | null |
Section 9/readlines1.py
|
PacktPublishing/Learning-Python-v-
|
30fb28dfaaa18815f1b4c0b683e8839da223b195
|
[
"MIT"
] | 2
|
2020-09-25T19:56:46.000Z
|
2021-09-02T11:14:28.000Z
|
file_input = open("sample1.txt",'r')
print file_input.readlines()
file_input.close()
| 28
| 36
| 0.761905
| 13
| 84
| 4.692308
| 0.692308
| 0.442623
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012658
| 0.059524
| 84
| 3
| 37
| 28
| 0.759494
| 0
| 0
| 0
| 0
| 0
| 0.141176
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.333333
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
56cbd00d4198d7177a6ebcfe7c3f7202e8a36c89
| 45
|
py
|
Python
|
metapy/__init__.py
|
TomMonks/meta-py
|
a28e6cc434692fefff8b81e3b12a40a66e71a20c
|
[
"MIT"
] | null | null | null |
metapy/__init__.py
|
TomMonks/meta-py
|
a28e6cc434692fefff8b81e3b12a40a66e71a20c
|
[
"MIT"
] | 5
|
2021-05-28T09:17:09.000Z
|
2021-05-28T09:28:44.000Z
|
metapy/__init__.py
|
TomMonks/meta-py
|
a28e6cc434692fefff8b81e3b12a40a66e71a20c
|
[
"MIT"
] | null | null | null |
__version__ = '0.4.0'
__author__ = 'T.Monks'
| 15
| 22
| 0.666667
| 7
| 45
| 3.142857
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 0.133333
| 45
| 2
| 23
| 22.5
| 0.487179
| 0
| 0
| 0
| 0
| 0
| 0.266667
| 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
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
56f18889fc841d1ccb3c53c8f20a502d4edab783
| 199
|
gyp
|
Python
|
binding.gyp
|
Saevon/node-win-diskspace
|
0ef95192e56ab1fe2ed755555ce32de1efe42696
|
[
"MIT"
] | null | null | null |
binding.gyp
|
Saevon/node-win-diskspace
|
0ef95192e56ab1fe2ed755555ce32de1efe42696
|
[
"MIT"
] | null | null | null |
binding.gyp
|
Saevon/node-win-diskspace
|
0ef95192e56ab1fe2ed755555ce32de1efe42696
|
[
"MIT"
] | null | null | null |
{
"targets": [
{
"target_name": "diskfree",
"sources": [
"./src/disk-gyp.cpp",
"./src/disk.cpp"
],
},
],
}
| 16.583333
| 38
| 0.281407
| 12
| 199
| 4.583333
| 0.75
| 0.254545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.532663
| 199
| 11
| 39
| 18.090909
| 0.591398
| 0
| 0
| 0.181818
| 0
| 0
| 0.326633
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7138ac0262a46eda58e6674e994ae629c27eb2f5
| 59
|
py
|
Python
|
fuzzrl_projects/__init__.py
|
bbrighttaer/fuzzprj
|
325d8429c5c283611eeb3beb3df7e3b1a7a9c3f2
|
[
"MIT"
] | null | null | null |
fuzzrl_projects/__init__.py
|
bbrighttaer/fuzzprj
|
325d8429c5c283611eeb3beb3df7e3b1a7a9c3f2
|
[
"MIT"
] | null | null | null |
fuzzrl_projects/__init__.py
|
bbrighttaer/fuzzprj
|
325d8429c5c283611eeb3beb3df7e3b1a7a9c3f2
|
[
"MIT"
] | null | null | null |
#
# Project: fuzzrl
# Created by bbrighttaer on 9/7/18
#
| 8.428571
| 34
| 0.661017
| 9
| 59
| 4.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.086957
| 0.220339
| 59
| 6
| 35
| 9.833333
| 0.76087
| 0.813559
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
85316546f63ad497eba73b9d4f3f92fca890d5b6
| 57
|
py
|
Python
|
mac/Pomodouroboros.py
|
polkapolka/Pomodouroboros
|
6393f2946f0e3f54909ee740e09e1d8db8ed2ccb
|
[
"MIT"
] | 45
|
2021-08-22T22:57:11.000Z
|
2021-11-27T07:40:19.000Z
|
mac/Pomodouroboros.py
|
polkapolka/Pomodouroboros
|
6393f2946f0e3f54909ee740e09e1d8db8ed2ccb
|
[
"MIT"
] | 6
|
2021-08-24T18:27:28.000Z
|
2021-09-05T22:30:08.000Z
|
mac/Pomodouroboros.py
|
polkapolka/Pomodouroboros
|
6393f2946f0e3f54909ee740e09e1d8db8ed2ccb
|
[
"MIT"
] | 5
|
2021-08-22T23:43:02.000Z
|
2021-11-06T21:08:09.000Z
|
from pomodouroboros.mac_gui import main
main.runMain()
| 11.4
| 39
| 0.807018
| 8
| 57
| 5.625
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122807
| 57
| 4
| 40
| 14.25
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 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
| 4
|
85699779008691ff59b6b37c49adde740900901c
| 543
|
py
|
Python
|
src/storagetree_app/serializers.py
|
sanjioh/storagetree
|
7e54135c401aee7ba23c86b998524bf8a2c0a4f7
|
[
"MIT"
] | 1
|
2019-11-20T22:42:09.000Z
|
2019-11-20T22:42:09.000Z
|
src/storagetree_app/serializers.py
|
sanjioh/storagetree
|
7e54135c401aee7ba23c86b998524bf8a2c0a4f7
|
[
"MIT"
] | null | null | null |
src/storagetree_app/serializers.py
|
sanjioh/storagetree
|
7e54135c401aee7ba23c86b998524bf8a2c0a4f7
|
[
"MIT"
] | null | null | null |
from rest_framework.serializers import ModelSerializer
from . import models
class WarehouseSerializer(ModelSerializer):
class Meta:
model = models.Warehouse
fields = ('__all__')
class UnitSerializer(ModelSerializer):
class Meta:
model = models.Unit
fields = ('__all__')
class ShelfSerializer(ModelSerializer):
class Meta:
model = models.Shelf
fields = ('__all__')
class BoxSerializer(ModelSerializer):
class Meta:
model = models.Box
fields = ('__all__')
| 19.392857
| 54
| 0.662983
| 49
| 543
| 7
| 0.408163
| 0.233236
| 0.279883
| 0.338192
| 0.408163
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.252302
| 543
| 27
| 55
| 20.111111
| 0.844828
| 0
| 0
| 0.444444
| 0
| 0
| 0.051565
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.111111
| 0
| 0.555556
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
85834a4222b83b6917788096a8cc1572694ac299
| 174
|
py
|
Python
|
New folder/Schole/Testrun/Calc.py
|
JVuns/Driver-Log-Recorder---Final-Project
|
efbb2f67aee2db98fc2310617e589e845fc6c27d
|
[
"MIT"
] | null | null | null |
New folder/Schole/Testrun/Calc.py
|
JVuns/Driver-Log-Recorder---Final-Project
|
efbb2f67aee2db98fc2310617e589e845fc6c27d
|
[
"MIT"
] | null | null | null |
New folder/Schole/Testrun/Calc.py
|
JVuns/Driver-Log-Recorder---Final-Project
|
efbb2f67aee2db98fc2310617e589e845fc6c27d
|
[
"MIT"
] | null | null | null |
def multiply_list(start, stop):
product = 1
for element in range(start, stop):
product = product * element
return product
x = multiply_list(1, 4)
print(x)
| 24.857143
| 38
| 0.66092
| 25
| 174
| 4.52
| 0.6
| 0.212389
| 0.283186
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022727
| 0.241379
| 174
| 7
| 39
| 24.857143
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0
| 0
| 0.285714
| 0.142857
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
85bd87215d948359ec1b370ca7369f6b775ba05f
| 61
|
py
|
Python
|
test/login.py
|
zhushikun111/test007
|
1f2da0824a6eea44a75514053440a41edf5a3c5e
|
[
"MIT"
] | null | null | null |
test/login.py
|
zhushikun111/test007
|
1f2da0824a6eea44a75514053440a41edf5a3c5e
|
[
"MIT"
] | null | null | null |
test/login.py
|
zhushikun111/test007
|
1f2da0824a6eea44a75514053440a41edf5a3c5e
|
[
"MIT"
] | null | null | null |
num1 = 10
num2 = 20
num3 = 3838
num3 = 30
num4 = 40
| 4.066667
| 11
| 0.52459
| 10
| 61
| 3.2
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.459459
| 0.393443
| 61
| 14
| 12
| 4.357143
| 0.405405
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
85bf0bd95a68870bd271b8420df4dc87af5c03bf
| 400
|
py
|
Python
|
utils/__init__.py
|
jeasinema/MV3D_plus
|
fc3f2ccffc713ae4a1bafa7765fa6a60a1b72c35
|
[
"MIT"
] | 177
|
2019-04-25T02:10:45.000Z
|
2022-03-04T10:09:09.000Z
|
utils/__init__.py
|
jeasinema/MV3D_plus
|
fc3f2ccffc713ae4a1bafa7765fa6a60a1b72c35
|
[
"MIT"
] | 35
|
2019-04-30T08:38:09.000Z
|
2021-12-02T10:01:09.000Z
|
utils/__init__.py
|
jeasinema/MV3D_plus
|
fc3f2ccffc713ae4a1bafa7765fa6a60a1b72c35
|
[
"MIT"
] | 50
|
2019-04-30T10:26:37.000Z
|
2021-12-18T18:52:52.000Z
|
#!/usr/bin/env python
# -*- coding:UTF-8 -*-
# File Name : __init__.py
# Purpose :
# Creation Date : 21-12-2017
# Last Modified : Fri 19 Jan 2018 10:15:06 AM CST
# Created By : Jeasine Ma [jeasinema[at]gmail[dot]com]
from utils.box_overlaps import *
from utils.colorize import *
from utils.kitti_loader import *
from utils.utils import *
from utils.preprocess import *
from utils.data_aug import *
| 25
| 54
| 0.725
| 64
| 400
| 4.421875
| 0.75
| 0.190813
| 0.265018
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.062315
| 0.1575
| 400
| 15
| 55
| 26.666667
| 0.777448
| 0.5075
| 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
| 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
| 4
|
85c796c2cd4a9a78a9cad7f712dd6c2f0108197a
| 57
|
py
|
Python
|
enthought/pyface/action/window_action.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 3
|
2016-12-09T06:05:18.000Z
|
2018-03-01T13:00:29.000Z
|
enthought/pyface/action/window_action.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 1
|
2020-12-02T00:51:32.000Z
|
2020-12-02T08:48:55.000Z
|
enthought/pyface/action/window_action.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | null | null | null |
# proxy module
from pyface.action.window_action import *
| 19
| 41
| 0.807018
| 8
| 57
| 5.625
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122807
| 57
| 2
| 42
| 28.5
| 0.9
| 0.210526
| 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
| 0
| 0
|
0
| 4
|
a45f45bf33eff3e1e6e4bf0dc0b6799c9df7208f
| 109
|
py
|
Python
|
code/setup.py
|
soyoung97/MixText
|
22993cd028a4223a54e138a89b53cd7978a5e38b
|
[
"MIT"
] | null | null | null |
code/setup.py
|
soyoung97/MixText
|
22993cd028a4223a54e138a89b53cd7978a5e38b
|
[
"MIT"
] | null | null | null |
code/setup.py
|
soyoung97/MixText
|
22993cd028a4223a54e138a89b53cd7978a5e38b
|
[
"MIT"
] | null | null | null |
#nsml: msyoon8/nsml:transformer
from distutils.core import setup
setup(name='basic_config', version='1.0')
| 18.166667
| 41
| 0.770642
| 16
| 109
| 5.1875
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.030303
| 0.091743
| 109
| 5
| 42
| 21.8
| 0.808081
| 0.275229
| 0
| 0
| 0
| 0
| 0.194805
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
8ef9a73410770c4c16fdc401fb6cbf3c6cad6082
| 24
|
py
|
Python
|
django_fine_uploader/__init__.py
|
cic79/django-1.6-fine-uploader
|
14ed9ca3e01ed9680760368da7c277aedb8dfde2
|
[
"MIT"
] | null | null | null |
django_fine_uploader/__init__.py
|
cic79/django-1.6-fine-uploader
|
14ed9ca3e01ed9680760368da7c277aedb8dfde2
|
[
"MIT"
] | null | null | null |
django_fine_uploader/__init__.py
|
cic79/django-1.6-fine-uploader
|
14ed9ca3e01ed9680760368da7c277aedb8dfde2
|
[
"MIT"
] | null | null | null |
__version__ = '0.2.0.4'
| 12
| 23
| 0.625
| 5
| 24
| 2.2
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.190476
| 0.125
| 24
| 1
| 24
| 24
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0.291667
| 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
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
f11cc7e185978f1002eea41dbed8f474eaedc279
| 92
|
py
|
Python
|
rangeesh/star_wars/apps.py
|
Rangeeshar/Django-Project
|
7f229c726a22228a335c6e993e3852f16c5552b1
|
[
"MIT"
] | null | null | null |
rangeesh/star_wars/apps.py
|
Rangeeshar/Django-Project
|
7f229c726a22228a335c6e993e3852f16c5552b1
|
[
"MIT"
] | null | null | null |
rangeesh/star_wars/apps.py
|
Rangeeshar/Django-Project
|
7f229c726a22228a335c6e993e3852f16c5552b1
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class StarWarsConfig(AppConfig):
name = "star_wars"
| 15.333333
| 33
| 0.76087
| 11
| 92
| 6.272727
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.163043
| 92
| 5
| 34
| 18.4
| 0.896104
| 0
| 0
| 0
| 0
| 0
| 0.097826
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
f13f9da5dfd4b0514bcf1eb12d0339ecf8326815
| 272
|
py
|
Python
|
cryptopals.py
|
n0pslide/cryptopals
|
4b444153220952a2071abe0cf16a634c631476e8
|
[
"MIT"
] | null | null | null |
cryptopals.py
|
n0pslide/cryptopals
|
4b444153220952a2071abe0cf16a634c631476e8
|
[
"MIT"
] | null | null | null |
cryptopals.py
|
n0pslide/cryptopals
|
4b444153220952a2071abe0cf16a634c631476e8
|
[
"MIT"
] | null | null | null |
#!/usr/bin/pypy
"""
cryptopals.py
"""
from cryptopals.s01 import c01, c02, c03, c04, c05, c06, c07, c08
from cryptopals.s02 import c09, c10, c11, c12, c13, c14, c15, c16
from cryptopals.s03 import c17
def main():
c16.main()
if __name__ == '__main__':
main()
| 15.111111
| 65
| 0.654412
| 42
| 272
| 4.047619
| 0.738095
| 0.247059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.190909
| 0.191176
| 272
| 17
| 66
| 16
| 0.581818
| 0.102941
| 0
| 0
| 0
| 0
| 0.033898
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| true
| 0
| 0.428571
| 0
| 0.571429
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
f14986275cb8284d0ae81088cb8b0ae14d7329df
| 2,727
|
py
|
Python
|
tests/functional/test_big_int.py
|
AutumnalDream/tartiflette-plugin-scalars
|
2c73b20eac93b364a97b2192956e5fd4034ec35a
|
[
"MIT"
] | 8
|
2019-10-02T12:47:15.000Z
|
2021-12-15T14:29:37.000Z
|
tests/functional/test_big_int.py
|
AutumnalDream/tartiflette-plugin-scalars
|
2c73b20eac93b364a97b2192956e5fd4034ec35a
|
[
"MIT"
] | 109
|
2019-09-19T13:37:43.000Z
|
2022-03-28T07:08:50.000Z
|
tests/functional/test_big_int.py
|
AutumnalDream/tartiflette-plugin-scalars
|
2c73b20eac93b364a97b2192956e5fd4034ec35a
|
[
"MIT"
] | 4
|
2019-10-26T19:57:20.000Z
|
2021-06-24T14:32:37.000Z
|
import pytest
from tartiflette import Resolver, create_engine
@pytest.mark.asyncio
async def test_big_int_ok():
@Resolver("Query.bigInt", schema_name="test_big_int_ok")
async def big_int_resolver(*_args, **_kwargs):
return 999
sdl = """
type Query {
bigInt: Long
}
"""
engine = await create_engine(
sdl=sdl,
modules=[{"name": "tartiflette_plugin_scalars", "config": {}}],
schema_name="test_big_int_ok",
)
assert await engine.execute("query bigIntOk { bigInt }") == {
"data": {"bigInt": 999}
}
@pytest.mark.asyncio
async def test_big_int_nok():
@Resolver("Query.bigInt", schema_name="test_big_int_nok")
async def big_int_resolver(*_args, **_kwargs):
return 2 ** 64
sdl = """
type Query {
bigInt: Long
}
"""
engine = await create_engine(
sdl=sdl,
modules=[{"name": "tartiflette_plugin_scalars", "config": {}}],
schema_name="test_big_int_nok",
)
result = await engine.execute("query bigIntNok { bigInt }")
assert result["data"]["bigInt"] is None
assert len(result["errors"]) == 1
assert (
result["errors"][0]["message"]
== "Long cannot represent values above or equal to 2^63: < 18446744073709551616 >"
)
@pytest.mark.asyncio
async def test_big_int_mutation_ok():
@Resolver("Mutation.bigInt", schema_name="test_big_int_mutation_ok")
async def big_int_resolver(*_args, **_kwargs):
return True
sdl = """
type Query {
bigInt: BigInt
}
type Mutation {
bigInt(input: BigInt): Boolean
}
"""
engine = await create_engine(
sdl=sdl,
modules=[{"name": "tartiflette_plugin_scalars", "config": {}}],
schema_name="test_big_int_mutation_ok",
)
assert await engine.execute("mutation bigInt { bigInt(input:100) }") == {
"data": {"bigInt": True}
}
@pytest.mark.asyncio
async def test_big_int_mutation_nok():
@Resolver("Mutation.bigInt", schema_name="test_big_int_mutation_nok")
async def big_int_resolver(*_args, **_kwargs):
return True
sdl = """
type Query {
bigInt: BigInt
}
type Mutation {
bigInt(input: BigInt): Boolean
}
"""
engine = await create_engine(
sdl=sdl,
modules=[{"name": "tartiflette_plugin_scalars", "config": {}}],
schema_name="test_big_int_mutation_nok",
)
result = await engine.execute("mutation bigInt { bigInt(input:True) }")
assert result["data"] is None
assert len(result["errors"]) == 1
assert (
result["errors"][0]["message"]
== "Value True is not of correct type BigInt"
)
| 24.348214
| 90
| 0.609461
| 315
| 2,727
| 5.025397
| 0.206349
| 0.060644
| 0.075805
| 0.085913
| 0.829438
| 0.788377
| 0.785218
| 0.727732
| 0.634239
| 0.462413
| 0
| 0.019146
| 0.253025
| 2,727
| 111
| 91
| 24.567568
| 0.757977
| 0
| 0
| 0.545455
| 0
| 0
| 0.368537
| 0.074074
| 0
| 0
| 0
| 0
| 0.090909
| 1
| 0
| false
| 0
| 0.022727
| 0
| 0.068182
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
f1691b3b5ecf69050dbf422a4dc2e8a8a257c145
| 250
|
py
|
Python
|
scripts/lego/core/api.py
|
legomachine/lego
|
814af70916db981e2946f905cf9028eeadf69fa1
|
[
"MIT"
] | 2
|
2021-02-23T11:22:59.000Z
|
2021-02-23T11:23:07.000Z
|
scripts/lego/core/api.py
|
legomachine/lego
|
814af70916db981e2946f905cf9028eeadf69fa1
|
[
"MIT"
] | null | null | null |
scripts/lego/core/api.py
|
legomachine/lego
|
814af70916db981e2946f905cf9028eeadf69fa1
|
[
"MIT"
] | 2
|
2021-02-23T11:23:28.000Z
|
2021-02-23T11:24:44.000Z
|
# -*- coding:utf-8 -*-
from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function
#
from lego.core import (
const,
log,
prepost
)
__all__ = [
"const",
"log",
"prepost",
]
| 13.157895
| 39
| 0.652
| 28
| 250
| 5.178571
| 0.607143
| 0.206897
| 0.331034
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005263
| 0.24
| 250
| 19
| 40
| 13.157895
| 0.757895
| 0.08
| 0
| 0
| 0
| 0
| 0.066079
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.307692
| 0
| 0.307692
| 0.076923
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
f17231de5fee5d4df4ed8227c2c28c04a08f9446
| 76
|
py
|
Python
|
tests/benchmark/f_spin.py
|
liwt31/NPython
|
1159715bb6d4ff9502e9fa4466ddc6f36a8b63d2
|
[
"CNRI-Python"
] | 18
|
2019-01-29T16:14:42.000Z
|
2021-02-11T07:34:11.000Z
|
tests/benchmark/f_spin.py
|
liwt31/NPython
|
1159715bb6d4ff9502e9fa4466ddc6f36a8b63d2
|
[
"CNRI-Python"
] | 1
|
2018-12-28T10:52:17.000Z
|
2018-12-29T14:21:07.000Z
|
tests/benchmark/f_spin.py
|
liwt31/NPython
|
1159715bb6d4ff9502e9fa4466ddc6f36a8b63d2
|
[
"CNRI-Python"
] | null | null | null |
def foo():
f = 0.0
while f < 10000000.0:
f = f + 1.0
foo()
| 10.857143
| 25
| 0.407895
| 14
| 76
| 2.214286
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.295455
| 0.421053
| 76
| 6
| 26
| 12.666667
| 0.409091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 0
| 0.2
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
74c58deea6cc4d9d30e53640fb2bdc288a9d306f
| 239
|
py
|
Python
|
Detector.py
|
LEDiBond/S3Camera
|
6f2add5aa2f818a9001fda1967955cb03164a8aa
|
[
"Apache-2.0"
] | null | null | null |
Detector.py
|
LEDiBond/S3Camera
|
6f2add5aa2f818a9001fda1967955cb03164a8aa
|
[
"Apache-2.0"
] | null | null | null |
Detector.py
|
LEDiBond/S3Camera
|
6f2add5aa2f818a9001fda1967955cb03164a8aa
|
[
"Apache-2.0"
] | null | null | null |
# Class to make a object detection model.
# takes an image in form of a file and runs a YOLO model
## define a Class that enables an object to load a model and perform detection using weights
import tensorflow as tf
import yolov4
yolov4
| 26.555556
| 92
| 0.778243
| 43
| 239
| 4.325581
| 0.674419
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010471
| 0.200837
| 239
| 8
| 93
| 29.875
| 0.963351
| 0.769874
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 0
| 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
| 4
|
74f15a43fc9623b3e4cbcdb1d4fdb3caae2a1686
| 147
|
py
|
Python
|
reddit2telegram/channels/im14andthisisdeep/app.py
|
mainyordle/reddit2telegram
|
1163e15aed3b6ff0fba65b222d3d9798f644c386
|
[
"MIT"
] | 187
|
2016-09-20T09:15:54.000Z
|
2022-03-29T12:22:33.000Z
|
reddit2telegram/channels/im14andthisisdeep/app.py
|
mainyordle/reddit2telegram
|
1163e15aed3b6ff0fba65b222d3d9798f644c386
|
[
"MIT"
] | 84
|
2016-09-22T14:25:07.000Z
|
2022-03-19T01:26:17.000Z
|
reddit2telegram/channels/im14andthisisdeep/app.py
|
mainyordle/reddit2telegram
|
1163e15aed3b6ff0fba65b222d3d9798f644c386
|
[
"MIT"
] | 172
|
2016-09-21T15:39:39.000Z
|
2022-03-16T15:15:58.000Z
|
#encoding:utf-8
subreddit = 'im14andthisisdeep'
t_channel = '@wokesouls'
def send_post(submission, r2t):
return r2t.send_simple(submission)
| 16.333333
| 38
| 0.755102
| 18
| 147
| 6
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.039063
| 0.129252
| 147
| 8
| 39
| 18.375
| 0.804688
| 0.095238
| 0
| 0
| 0
| 0
| 0.204545
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0.25
| 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
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
2d0ac727f31ad527b22e3ab6199079650f04ea22
| 2,973
|
py
|
Python
|
test/no_running_jobs_test.py
|
lechat/jenkinsflow
|
87396069dda4f0681829e5d4e264e4f09ae34131
|
[
"BSD-3-Clause"
] | null | null | null |
test/no_running_jobs_test.py
|
lechat/jenkinsflow
|
87396069dda4f0681829e5d4e264e4f09ae34131
|
[
"BSD-3-Clause"
] | null | null | null |
test/no_running_jobs_test.py
|
lechat/jenkinsflow
|
87396069dda4f0681829e5d4e264e4f09ae34131
|
[
"BSD-3-Clause"
] | null | null | null |
# Copyright (c) 2012 - 2015 Lars Hupfeldt Nielsen, Hupfeldt IT
# All rights reserved. This work is under a BSD license, see LICENSE.TXT.
from pytest import raises
from jenkinsflow.flow import serial, JobNotIdleException
from .cfg import ApiType
from .framework import api_select
from .framework.utils import assert_lines_in
def test_no_running_jobs(api_type, capsys):
with api_select.api(__file__, api_type, login=True) as api:
api.flow_job()
api.job('j1', exec_time=50, max_fails=0, expect_invocations=1, expect_order=None, invocation_delay=0, unknown_result=True)
with serial(api, timeout=70, job_name_prefix=api.job_name_prefix) as ctrl1:
ctrl1.invoke_unchecked('j1')
sout, _ = capsys.readouterr()
assert_lines_in(api_type, sout, "unchecked job: 'jenkinsflow_test__no_running_jobs__j1' UNKNOWN - RUNNING")
# Make sure job has actually started before entering new flow
api.sleep(1)
with raises(JobNotIdleException) as exinfo:
with serial(api, timeout=70, job_name_prefix=api.job_name_prefix) as ctrl1:
ctrl1.invoke('j1')
assert "job: 'jenkinsflow_test__no_running_jobs__j1' is in state RUNNING. It must be IDLE." in str(exinfo.value)
def test_no_running_jobs_unchecked(api_type, capsys):
with api_select.api(__file__, api_type, login=True) as api:
api.flow_job()
api.job('j1', exec_time=50, max_fails=0, expect_invocations=1, expect_order=None, invocation_delay=0, unknown_result=True)
with serial(api, timeout=70, job_name_prefix=api.job_name_prefix) as ctrl1:
ctrl1.invoke_unchecked('j1')
sout, _ = capsys.readouterr()
assert_lines_in(api_type, sout, "unchecked job: 'jenkinsflow_test__no_running_jobs_unchecked__j1' UNKNOWN - RUNNING")
api.sleep(1)
with raises(JobNotIdleException) as exinfo:
with serial(api, timeout=70, job_name_prefix=api.job_name_prefix) as ctrl1:
ctrl1.invoke_unchecked('j1')
assert "unchecked job: 'jenkinsflow_test__no_running_jobs_unchecked__j1' is in state RUNNING. It must be IDLE." in str(exinfo.value)
def test_no_running_jobs_jobs_allowed(api_type):
with api_select.api(__file__, api_type, login=True) as api:
api.flow_job()
exp_invocations = 2 if api.api_type != ApiType.MOCK else 1
unknown_result = False if api.api_type != ApiType.MOCK else True
api.job('j1', exec_time=20, max_fails=0, expect_invocations=exp_invocations, expect_order=None,
invocation_delay=0, unknown_result=unknown_result)
with serial(api, timeout=70, job_name_prefix=api.job_name_prefix) as ctrl1:
ctrl1.invoke_unchecked('j1')
api.sleep(1)
# TODO
if api.api_type != ApiType.MOCK:
with serial(api, timeout=70, job_name_prefix=api.job_name_prefix, require_idle=False) as ctrl1:
ctrl1.invoke('j1')
| 42.471429
| 140
| 0.706021
| 429
| 2,973
| 4.587413
| 0.235431
| 0.042683
| 0.079268
| 0.060467
| 0.764228
| 0.716972
| 0.705285
| 0.661077
| 0.63872
| 0.608232
| 0
| 0.027016
| 0.203162
| 2,973
| 69
| 141
| 43.086957
| 0.803715
| 0.066263
| 0
| 0.590909
| 0
| 0
| 0.128473
| 0.063515
| 0
| 0
| 0
| 0.014493
| 0.113636
| 1
| 0.068182
| false
| 0
| 0.113636
| 0
| 0.181818
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
2d16a9f9198fae1f6b935ea83038c7aaa9b00bd2
| 328
|
py
|
Python
|
spikemetrics/__init__.py
|
jsiegle/spikemetrics
|
03ebc908f19b99e35732e192e9a9be816ce71169
|
[
"MIT"
] | null | null | null |
spikemetrics/__init__.py
|
jsiegle/spikemetrics
|
03ebc908f19b99e35732e192e9a9be816ce71169
|
[
"MIT"
] | null | null | null |
spikemetrics/__init__.py
|
jsiegle/spikemetrics
|
03ebc908f19b99e35732e192e9a9be816ce71169
|
[
"MIT"
] | null | null | null |
from .metrics import calculate_amplitude_cutoff, calculate_drift_metrics, calculate_firing_rate_and_spikes, \
calculate_isi_violations, calculate_pc_metrics, calculate_silhouette_score, calculate_presence_ratio, \
calculate_metrics
from .utils import Epoch, printProgressBar
from .version import version as __version__
| 54.666667
| 109
| 0.859756
| 39
| 328
| 6.692308
| 0.589744
| 0.122605
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.10061
| 328
| 5
| 110
| 65.6
| 0.884746
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.6
| 0
| 0.6
| 0.2
| 0
| 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
| 4
|
2d25d2e44e63542fd4da757214c7a068a8cf3675
| 706
|
py
|
Python
|
tests/test_predicted_binding_domains.py
|
kzfm/pychembldb
|
0dde6a05b2dc138e0be7f8f27f57b5c2a42e23c7
|
[
"CC0-1.0"
] | 8
|
2020-01-16T00:43:46.000Z
|
2021-11-27T18:26:12.000Z
|
tests/test_predicted_binding_domains.py
|
iwatobipen/pychembldb
|
0dde6a05b2dc138e0be7f8f27f57b5c2a42e23c7
|
[
"CC0-1.0"
] | null | null | null |
tests/test_predicted_binding_domains.py
|
iwatobipen/pychembldb
|
0dde6a05b2dc138e0be7f8f27f57b5c2a42e23c7
|
[
"CC0-1.0"
] | 3
|
2020-05-31T05:54:33.000Z
|
2021-11-15T04:31:07.000Z
|
import unittest
from pychembldb import chembldb, PredictedBindingDomain
class PredictedBindingDomainTest(unittest.TestCase):
def setUp(self):
self.target = chembldb.query(PredictedBindingDomain).filter_by(site_id=1620).first()
def test_predbind_id(self):
self.assertEqual(self.target.predbind_id, 2532444)
def test_activity_id(self):
self.assertEqual(self.target.activity_id, 397754)
def test_site_id(self):
self.assertEqual(self.target.site_id, 1620)
def test_prediction_method(self):
self.assertEqual(self.target.prediction_method, "Single domain")
def test_confidence(self):
self.assertEqual(self.target.confidence, "high")
| 30.695652
| 92
| 0.740793
| 84
| 706
| 6.047619
| 0.380952
| 0.094488
| 0.187008
| 0.226378
| 0.297244
| 0.183071
| 0
| 0
| 0
| 0
| 0
| 0.035473
| 0.161473
| 706
| 22
| 93
| 32.090909
| 0.822635
| 0
| 0
| 0
| 0
| 0
| 0.024079
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.4
| false
| 0
| 0.133333
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
2d285c340aed3b09e69659f667289ad85bb1bcc9
| 165
|
py
|
Python
|
workshops/payments/templatetags/form_errors.py
|
thermokarst/qiime-workshops
|
424c64e6f9e48feea54eb74ddb8ddbd00f6de9e8
|
[
"BSD-3-Clause"
] | null | null | null |
workshops/payments/templatetags/form_errors.py
|
thermokarst/qiime-workshops
|
424c64e6f9e48feea54eb74ddb8ddbd00f6de9e8
|
[
"BSD-3-Clause"
] | null | null | null |
workshops/payments/templatetags/form_errors.py
|
thermokarst/qiime-workshops
|
424c64e6f9e48feea54eb74ddb8ddbd00f6de9e8
|
[
"BSD-3-Clause"
] | null | null | null |
from django import template
register = template.Library()
@register.inclusion_tag('payments/_form_errors.html')
def form_errors(form):
return {'form': form}
| 16.5
| 53
| 0.751515
| 21
| 165
| 5.714286
| 0.666667
| 0.166667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.127273
| 165
| 9
| 54
| 18.333333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 0.157576
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
7411f50797c952843c198417b2b752c8c8c49b20
| 23
|
py
|
Python
|
sendgrid_backend/version.py
|
MIKNOTAURO/django-sendgrid-v5
|
aa789d8c48dfd78f927b89a03894f2f744ebcdaa
|
[
"MIT"
] | null | null | null |
sendgrid_backend/version.py
|
MIKNOTAURO/django-sendgrid-v5
|
aa789d8c48dfd78f927b89a03894f2f744ebcdaa
|
[
"MIT"
] | null | null | null |
sendgrid_backend/version.py
|
MIKNOTAURO/django-sendgrid-v5
|
aa789d8c48dfd78f927b89a03894f2f744ebcdaa
|
[
"MIT"
] | null | null | null |
__version__ = "0.6.87"
| 11.5
| 22
| 0.652174
| 4
| 23
| 2.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0.130435
| 23
| 1
| 23
| 23
| 0.35
| 0
| 0
| 0
| 0
| 0
| 0.26087
| 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
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
741d34353d679e9e1f9412b96c9026f7d173412e
| 57
|
py
|
Python
|
oifsa/__init__.py
|
ouseful-datasupply/food_gov_uk
|
28f80a4309c0ff2e33aa5c5d8c0b143753982f40
|
[
"MIT"
] | null | null | null |
oifsa/__init__.py
|
ouseful-datasupply/food_gov_uk
|
28f80a4309c0ff2e33aa5c5d8c0b143753982f40
|
[
"MIT"
] | 1
|
2020-08-06T12:37:57.000Z
|
2020-08-06T12:37:57.000Z
|
oifsa/__init__.py
|
ouseful-datasupply/food_gov_uk
|
28f80a4309c0ff2e33aa5c5d8c0b143753982f40
|
[
"MIT"
] | null | null | null |
from .fsa import save_fsa_data, getDataList, download_all
| 57
| 57
| 0.859649
| 9
| 57
| 5.111111
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.087719
| 57
| 1
| 57
| 57
| 0.884615
| 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
| 0
| 0
|
0
| 4
|
74364ac83da5512b0694e007c351a65cdba104cc
| 198
|
py
|
Python
|
dj_promocodes/promocodes/apps.py
|
iSuperMostafa/dj_promocodes
|
fec26f037b3ae3731c8d1431ec54e8da7f61c947
|
[
"MIT"
] | null | null | null |
dj_promocodes/promocodes/apps.py
|
iSuperMostafa/dj_promocodes
|
fec26f037b3ae3731c8d1431ec54e8da7f61c947
|
[
"MIT"
] | null | null | null |
dj_promocodes/promocodes/apps.py
|
iSuperMostafa/dj_promocodes
|
fec26f037b3ae3731c8d1431ec54e8da7f61c947
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class PromocodesConfig(AppConfig):
name = "dj_promocodes.promocodes"
verbose_name = _("Promocodes")
| 28.285714
| 54
| 0.787879
| 23
| 198
| 6.565217
| 0.695652
| 0.13245
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136364
| 198
| 6
| 55
| 33
| 0.883041
| 0
| 0
| 0
| 0
| 0
| 0.171717
| 0.121212
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7479bf5d0bbcb9e15e18591af798cc15ad28be0d
| 987
|
py
|
Python
|
balu/prepare_data.py
|
kennethrithvik/news_popularity_regression_neural_network
|
e59edd0989e0e9fcb5da6788711d9741e4184229
|
[
"MIT"
] | 1
|
2020-04-24T19:21:12.000Z
|
2020-04-24T19:21:12.000Z
|
balu/prepare_data.py
|
kennethrithvik/news_popularity_regression_neural_network
|
e59edd0989e0e9fcb5da6788711d9741e4184229
|
[
"MIT"
] | null | null | null |
balu/prepare_data.py
|
kennethrithvik/news_popularity_regression_neural_network
|
e59edd0989e0e9fcb5da6788711d9741e4184229
|
[
"MIT"
] | null | null | null |
import pandas as pd
import numpy as np
df = pd.read_csv('csv/in.csv')
print df.shape
print df.describe()
df_new = pd.DataFrame()
for col in df.columns[2:12]:
print col
df_col = df[col]
df_new[col] = (df_col-df_col.min())/(df_col.max()-df_col.min())
print '**data_channel'
for col in df.columns[13:19]:
print col
df_col = df[col]
print '**'
for col in df.columns[19:31]:
print col
df_col = df[col]
df_new[col] = (df_col-df_col.min())/(df_col.max()-df_col.min())
print '**days_of_week'
for col in df.columns[31:39]:
print col
df_col = df[col]
print '**'
for col in df.columns[39:60]:
print col
df_col = df[col]
df_new[col] = (df_col-df_col.min())/(df_col.max()-df_col.min())
print 'target'
for col in df.columns[60:]:
print col
df_col = df[col]
df_new[col] = np.log10(df_col)
# df_new[col] = (df_col-df_col.min())/(df_col.max()-df_col.min())
df_new.to_csv('csv/prep_data_log.csv',index=False)
# df_new.to_csv('csv/prep_data_norm.csv',index=False)
| 15.919355
| 66
| 0.668693
| 198
| 987
| 3.126263
| 0.20202
| 0.234249
| 0.258481
| 0.226171
| 0.714055
| 0.6042
| 0.6042
| 0.536349
| 0.536349
| 0.536349
| 0
| 0.027251
| 0.144883
| 987
| 62
| 67
| 15.919355
| 0.706161
| 0.116515
| 0
| 0.5
| 0
| 0
| 0.07931
| 0.024138
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.058824
| null | null | 0.382353
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7498c9e11e566f0d8aa2cc1c0e5ba17169977c13
| 88
|
py
|
Python
|
timemachines/skaters/glu/gluinclusion.py
|
iklasky/timemachines
|
1820fa9453d31d4daaeff75274a935c7455febe3
|
[
"MIT"
] | 253
|
2021-01-08T17:33:30.000Z
|
2022-03-21T17:32:36.000Z
|
timemachines/skaters/glu/gluinclusion.py
|
iklasky/timemachines
|
1820fa9453d31d4daaeff75274a935c7455febe3
|
[
"MIT"
] | 65
|
2021-01-20T16:43:35.000Z
|
2022-03-30T19:07:22.000Z
|
timemachines/skaters/glu/gluinclusion.py
|
iklasky/timemachines
|
1820fa9453d31d4daaeff75274a935c7455febe3
|
[
"MIT"
] | 28
|
2021-02-04T14:58:30.000Z
|
2022-01-17T04:35:17.000Z
|
try:
import gluonts
using_glu = True
except ImportError:
using_glu = False
| 12.571429
| 21
| 0.681818
| 11
| 88
| 5.272727
| 0.818182
| 0.275862
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.272727
| 88
| 6
| 22
| 14.666667
| 0.90625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
7772c2b7b6cba2285bf1693d84cd49e7640d43bd
| 88
|
py
|
Python
|
tk01.py
|
visalpop/tkinter_sample
|
15474250431727e2b24b6f6aebc654c36ccf8d87
|
[
"MIT"
] | null | null | null |
tk01.py
|
visalpop/tkinter_sample
|
15474250431727e2b24b6f6aebc654c36ccf8d87
|
[
"MIT"
] | null | null | null |
tk01.py
|
visalpop/tkinter_sample
|
15474250431727e2b24b6f6aebc654c36ccf8d87
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# tk01.pyw
import tkinter as tk
root = tk.Tk()
root.mainloop()
| 12.571429
| 23
| 0.613636
| 14
| 88
| 3.857143
| 0.785714
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.041667
| 0.181818
| 88
| 6
| 24
| 14.666667
| 0.708333
| 0.340909
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
7782532155fb4cb3f64bd7b9a78fe1364c438060
| 78
|
py
|
Python
|
aiogithubapi/legacy/__init__.py
|
timmo001/aiogithubapi
|
9d33bad77e49f8ee720bcd81c2cbab8a4cf8ebac
|
[
"MIT"
] | 8
|
2019-07-24T18:14:25.000Z
|
2022-03-01T18:33:53.000Z
|
aiogithubapi/legacy/__init__.py
|
timmo001/aiogithubapi
|
9d33bad77e49f8ee720bcd81c2cbab8a4cf8ebac
|
[
"MIT"
] | 33
|
2019-12-18T22:15:06.000Z
|
2022-03-30T06:08:38.000Z
|
aiogithubapi/legacy/__init__.py
|
timmo001/aiogithubapi
|
9d33bad77e49f8ee720bcd81c2cbab8a4cf8ebac
|
[
"MIT"
] | 14
|
2019-09-02T17:50:16.000Z
|
2022-03-14T10:30:37.000Z
|
"""Initialise the legacy module, everything here is considered deprecated."""
| 39
| 77
| 0.782051
| 9
| 78
| 6.777778
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115385
| 78
| 1
| 78
| 78
| 0.884058
| 0.910256
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
779189f56805a27863737356dcc9422ba1a40663
| 88
|
py
|
Python
|
ophyd/docs/templates/__init__.py
|
DominicOram/ophyd
|
df60483867e521dcda83648756cab8fc7b80dd17
|
[
"BSD-3-Clause"
] | 16
|
2015-05-20T20:48:25.000Z
|
2019-04-24T21:12:59.000Z
|
ophyd/docs/templates/__init__.py
|
DominicOram/ophyd
|
df60483867e521dcda83648756cab8fc7b80dd17
|
[
"BSD-3-Clause"
] | 594
|
2015-01-05T21:55:21.000Z
|
2019-05-10T02:05:24.000Z
|
ophyd/docs/templates/__init__.py
|
DominicOram/ophyd
|
df60483867e521dcda83648756cab8fc7b80dd17
|
[
"BSD-3-Clause"
] | 37
|
2019-07-06T18:17:07.000Z
|
2022-03-09T22:26:18.000Z
|
import pathlib
PATH = str(pathlib.Path(__file__).resolve().parent)
__all__ = ['PATH']
| 14.666667
| 51
| 0.715909
| 11
| 88
| 5
| 0.727273
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.113636
| 88
| 5
| 52
| 17.6
| 0.705128
| 0
| 0
| 0
| 0
| 0
| 0.045455
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
77c62a1fe1d7f8bc88e5fda25ce3d91fa6bf90f1
| 56
|
py
|
Python
|
ruleex/tree/__init__.py
|
rohancode/ruleex_modified
|
ec974e7811fafc0c06d4d2c53b4e2898dd6b7305
|
[
"Apache-2.0"
] | 18
|
2019-09-19T09:50:52.000Z
|
2022-03-20T13:59:20.000Z
|
ruleex/tree/__init__.py
|
rohancode/ruleex_modified
|
ec974e7811fafc0c06d4d2c53b4e2898dd6b7305
|
[
"Apache-2.0"
] | 3
|
2020-10-31T05:15:32.000Z
|
2022-02-10T00:34:05.000Z
|
ruleex/tree/__init__.py
|
rohancode/ruleex_modified
|
ec974e7811fafc0c06d4d2c53b4e2898dd6b7305
|
[
"Apache-2.0"
] | 7
|
2020-12-06T20:55:50.000Z
|
2021-12-11T18:14:51.000Z
|
from ruleex.tree import *
from .oblique import build_odt
| 28
| 30
| 0.821429
| 9
| 56
| 5
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 56
| 2
| 30
| 28
| 0.918367
| 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
| 0
| 0
|
0
| 4
|
7ae9919c8035a6120279086c24b4e1ae1d3401f3
| 225
|
py
|
Python
|
mmdet/datasets/vistas.py
|
LeHoaiLinh278/mmdetection_dev
|
a25cc47135d415f10d95c7313238f994dd7bb1eb
|
[
"Apache-2.0"
] | 2
|
2020-03-25T16:44:55.000Z
|
2020-04-30T17:48:59.000Z
|
mmdet/datasets/vistas.py
|
LeHoaiLinh278/mmdetection_dev
|
a25cc47135d415f10d95c7313238f994dd7bb1eb
|
[
"Apache-2.0"
] | null | null | null |
mmdet/datasets/vistas.py
|
LeHoaiLinh278/mmdetection_dev
|
a25cc47135d415f10d95c7313238f994dd7bb1eb
|
[
"Apache-2.0"
] | 1
|
2020-02-21T01:18:51.000Z
|
2020-02-21T01:18:51.000Z
|
from .coco import CocoDataset
from .registry import DATASETS
@DATASETS.register_module
class VistasDataset(CocoDataset):
CLASSES = ('person', 'cyclist', 'traffic-light', 'traffic-sign', 'bicycle', 'car', 'motorcycle')
| 25
| 100
| 0.737778
| 24
| 225
| 6.875
| 0.791667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12
| 225
| 8
| 101
| 28.125
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0.257778
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7afc904a3c4f14475821ef36cc0dd78ce599ca4b
| 7,056
|
py
|
Python
|
tests/test_helpers.py
|
vintasoftware/celery-persistent-revokes
|
babd4886825dc94ea21954ddbeeb1821a5e5abbd
|
[
"MIT"
] | 4
|
2018-05-23T21:25:49.000Z
|
2019-02-16T09:45:28.000Z
|
tests/test_helpers.py
|
vintasoftware/celery-persistent-revokes
|
babd4886825dc94ea21954ddbeeb1821a5e5abbd
|
[
"MIT"
] | null | null | null |
tests/test_helpers.py
|
vintasoftware/celery-persistent-revokes
|
babd4886825dc94ea21954ddbeeb1821a5e5abbd
|
[
"MIT"
] | null | null | null |
from unittest import TestCase
import mock
import six
from celery_persistent_revokes.helpers import (
_get_revoke_backend, _is_task_scheduled, revoke, list_revokes, is_task_revoked,
delete_revoke)
class GetRevokeBackendTests(TestCase):
@mock.patch('celery_persistent_revokes.helpers.get_setting', return_value='test.module.path')
@mock.patch('celery_persistent_revokes.helpers.import_class')
def test_instances_backend_correctly(self, import_class, get_setting):
backend_mock = mock.MagicMock()
import_class.return_value = backend_mock
_get_revoke_backend()
get_setting.assert_called_once_with('CELERY_PERSISTENT_REVOKES_BACKEND')
import_class.assert_called_once_with('test.module.path')
backend_mock.assert_called_once_with()
class TaskIsScheduledTests(TestCase):
@mock.patch('celery_persistent_revokes.helpers.inspect')
def test_returns_true_if_task_is_scheduled(self, inspect):
inspector_mock = mock.MagicMock()
inspect.return_value = inspector_mock
inspector_mock.scheduled = lambda: {
'worker1.example.com': [
{
"eta": "2010-06-07 09:07:52",
"priority": 0,
"request": {
"name": "tasks.sleeptask",
"id": "1a7980ea-8b19-413e-91d2-0b74f3844c4d",
"args": "[1]",
"kwargs": "{}"
}
},
{
"eta": "2010-06-07 09:07:53",
"priority": 0,
"request": {
"name": "tasks.sleeptask",
"id": "49661b9a-aa22-4120-94b7-9ee8031d219d",
"args": "[2]",
"kwargs": "{}"
}
}
],
}
value_returned = _is_task_scheduled('1a7980ea-8b19-413e-91d2-0b74f3844c4d')
self.assertTrue(value_returned)
@mock.patch('celery_persistent_revokes.helpers.inspect')
def test_returns_false_if_task_is_scheduled(self, inspect):
inspector_mock = mock.MagicMock()
inspect.return_value = inspector_mock
inspector_mock.scheduled = lambda: {
'worker1.example.com': [
{
"eta": "2010-06-07 09:07:52",
"priority": 0,
"request": {
"name": "tasks.sleeptask",
"id": "1a7980ea-8b19-413e-91d2-0b74f3844c4d",
"args": "[1]",
"kwargs": "{}"
}
},
{
"eta": "2010-06-07 09:07:53",
"priority": 0,
"request": {
"name": "tasks.sleeptask",
"id": "49661b9a-aa22-4120-94b7-9ee8031d219d",
"args": "[2]",
"kwargs": "{}"
}
}
],
}
value_returned = _is_task_scheduled('aloalo')
self.assertFalse(value_returned)
class RevokeTests(TestCase):
@mock.patch('celery_persistent_revokes.helpers._is_task_scheduled', return_value=True)
@mock.patch('celery_persistent_revokes.helpers._get_revoke_backend')
@mock.patch('celery_persistent_revokes.helpers.celery_revoke')
def test_uses_backend_if_task_is_scheduled(
self, celery_revoke, _get_revoke_backend, _is_task_scheduled):
backend_mock = mock.MagicMock()
_get_revoke_backend.return_value = backend_mock
revoke('1a7980ea-8b19-413e-91d2-0b74f3844c4d')
celery_revoke.assert_called_once_with('1a7980ea-8b19-413e-91d2-0b74f3844c4d')
_get_revoke_backend.assert_called_once_with()
backend_mock.revoke.assert_called_once_with('1a7980ea-8b19-413e-91d2-0b74f3844c4d')
@mock.patch('celery_persistent_revokes.helpers._is_task_scheduled', return_value=False)
@mock.patch('celery_persistent_revokes.helpers._get_revoke_backend')
@mock.patch('celery_persistent_revokes.helpers.celery_revoke')
def test_doesnt_use_backend_if_task_isnt_scheduled(
self, celery_revoke, _get_revoke_backend, _is_task_scheduled):
backend_mock = mock.MagicMock()
_get_revoke_backend.return_value = backend_mock
revoke('1a7980ea-8b19-413e-91d2-0b74f3844c4d')
celery_revoke.assert_called_once_with('1a7980ea-8b19-413e-91d2-0b74f3844c4d')
_get_revoke_backend.assert_not_called()
backend_mock.revoke.assert_not_called()
class ListRevokesTests(TestCase):
@mock.patch('celery_persistent_revokes.helpers._get_revoke_backend')
def test_returns_same_result_as_the_backend(self, _get_revoke_backend):
backend_mock = mock.MagicMock()
_get_revoke_backend.return_value = backend_mock
backend_mock.list_revokes = mock.Mock()
backend_mock.list_revokes.return_value = ['a', 'b', 'c']
value_returned = list_revokes()
_get_revoke_backend.assert_called_once_with()
backend_mock.list_revokes.assert_called_once_with()
if six.PY2:
self.assertItemsEqual(value_returned, ['a', 'b', 'c'])
else:
self.assertCountEqual(value_returned, ['a', 'b', 'c'])
class DeleteRevokeTests(TestCase):
@mock.patch('celery_persistent_revokes.helpers._get_revoke_backend')
def test_calls_backend_delete_revoke_method(self, _get_revoke_backend):
backend_mock = mock.MagicMock()
_get_revoke_backend.return_value = backend_mock
delete_revoke('test-task')
_get_revoke_backend.assert_called_once_with()
backend_mock.delete_revoke.assert_called_once_with('test-task')
class IsTaskRevokedTests(TestCase):
@mock.patch('celery_persistent_revokes.helpers._get_revoke_backend')
def test_returns_true_if_backend_returns_true(self, _get_revoke_backend):
backend_mock = mock.MagicMock()
_get_revoke_backend.return_value = backend_mock
backend_mock.is_task_revoked = mock.Mock()
backend_mock.is_task_revoked.return_value = True
value_returned = is_task_revoked('test-task')
_get_revoke_backend.assert_called_once_with()
backend_mock.is_task_revoked.assert_called_once_with('test-task')
self.assertEqual(value_returned, True)
@mock.patch('celery_persistent_revokes.helpers._get_revoke_backend')
def test_returns_false_if_backend_returns_false(self, _get_revoke_backend):
backend_mock = mock.MagicMock()
_get_revoke_backend.return_value = backend_mock
backend_mock.is_task_revoked = mock.Mock()
backend_mock.is_task_revoked.return_value = False
value_returned = is_task_revoked('test-task')
_get_revoke_backend.assert_called_once_with()
backend_mock.is_task_revoked.assert_called_once_with('test-task')
self.assertEqual(value_returned, False)
| 38.557377
| 97
| 0.639031
| 763
| 7,056
| 5.477064
| 0.134993
| 0.076334
| 0.099545
| 0.107681
| 0.786313
| 0.737736
| 0.714286
| 0.710457
| 0.698492
| 0.681263
| 0
| 0.055438
| 0.261196
| 7,056
| 182
| 98
| 38.769231
| 0.746211
| 0
| 0
| 0.545455
| 0
| 0
| 0.214427
| 0.153345
| 0
| 0
| 0
| 0
| 0.160839
| 1
| 0.062937
| false
| 0
| 0.055944
| 0
| 0.160839
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
bb117bf9ec9234d63a85f746c89a9fdb29142b27
| 516
|
py
|
Python
|
tests/connection_case.py
|
aiscenblue/mongoengine_utils
|
5a20ebb67307df1509c05153a4b5df7e98e256ee
|
[
"MIT"
] | 4
|
2017-03-10T23:23:42.000Z
|
2017-10-30T02:17:57.000Z
|
tests/connection_case.py
|
aiscenblue/mongoengine_utils
|
5a20ebb67307df1509c05153a4b5df7e98e256ee
|
[
"MIT"
] | null | null | null |
tests/connection_case.py
|
aiscenblue/mongoengine_utils
|
5a20ebb67307df1509c05153a4b5df7e98e256ee
|
[
"MIT"
] | 2
|
2017-09-20T06:19:36.000Z
|
2019-04-25T16:38:21.000Z
|
#!/usr/bin/env python
# coding=utf-8
"""Database Connection TestCase base class."""
from unittest import TestCase
import mongoengine as db
class DBConBase(TestCase):
"""Database Connection TestCase base class."""
@classmethod
def setUpClass(cls):
"""Setup database connection."""
cls.db = db.connect("goodjson_test", host='mongomock://localhost')
@classmethod
def tearDownClass(cls):
"""Teardown database connection."""
cls.db.drop_database("goodjson_test")
| 23.454545
| 74
| 0.678295
| 57
| 516
| 6.087719
| 0.578947
| 0.207493
| 0.149856
| 0.172911
| 0.201729
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002398
| 0.19186
| 516
| 21
| 75
| 24.571429
| 0.829736
| 0.333333
| 0
| 0.222222
| 0
| 0
| 0.145963
| 0.065217
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.222222
| 0
| 0.555556
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
bb13f48c6f93a9b4dc5d735a3075fea0b793caeb
| 151
|
py
|
Python
|
src/main.py
|
Matej-Chmel/git-hooks-linux-windows
|
d92201484219aa8c34feda3c20ced30b4348ddd9
|
[
"Unlicense"
] | null | null | null |
src/main.py
|
Matej-Chmel/git-hooks-linux-windows
|
d92201484219aa8c34feda3c20ced30b4348ddd9
|
[
"Unlicense"
] | null | null | null |
src/main.py
|
Matej-Chmel/git-hooks-linux-windows
|
d92201484219aa8c34feda3c20ced30b4348ddd9
|
[
"Unlicense"
] | null | null | null |
# pylint: disable=import-error
from src.common import version
if __name__ == '__main__':
print(f'Currently developing from version {version()}.')
| 25.166667
| 60
| 0.735099
| 19
| 151
| 5.421053
| 0.789474
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.139073
| 151
| 5
| 61
| 30.2
| 0.792308
| 0.18543
| 0
| 0
| 0
| 0
| 0.446281
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0.333333
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
bb26174ba35a0833994ac05c90d40614af189376
| 18
|
py
|
Python
|
dot_weechat/python/autoload/symlink_stick_buffer.py
|
benmezger/new-dotfiles
|
5aa41015bd017d0e4cc39edf374ca73e8c25b8cb
|
[
"MIT"
] | 68
|
2016-09-28T12:51:20.000Z
|
2022-02-25T15:33:16.000Z
|
dot_weechat/python/autoload/symlink_stick_buffer.py
|
benmezger/new-dotfiles
|
5aa41015bd017d0e4cc39edf374ca73e8c25b8cb
|
[
"MIT"
] | null | null | null |
dot_weechat/python/autoload/symlink_stick_buffer.py
|
benmezger/new-dotfiles
|
5aa41015bd017d0e4cc39edf374ca73e8c25b8cb
|
[
"MIT"
] | 2
|
2016-09-28T12:51:28.000Z
|
2022-01-11T10:26:44.000Z
|
../stick_buffer.py
| 18
| 18
| 0.777778
| 3
| 18
| 4.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 18
| 1
| 18
| 18
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
bb58db9cbef128483f0dc6107cca099dc7e3d710
| 290
|
py
|
Python
|
Ex-07.py
|
gilmartins83/Guanabara-Python
|
43128c35fcd601db1f72c80a9c76f4b4f4085c7f
|
[
"MIT"
] | null | null | null |
Ex-07.py
|
gilmartins83/Guanabara-Python
|
43128c35fcd601db1f72c80a9c76f4b4f4085c7f
|
[
"MIT"
] | null | null | null |
Ex-07.py
|
gilmartins83/Guanabara-Python
|
43128c35fcd601db1f72c80a9c76f4b4f4085c7f
|
[
"MIT"
] | null | null | null |
n1 = float(input("digite a nota 1 do aluno: "))
n2 = float(input("digite a nota 2 do aluno: "))
m = (n1 + n2) / 2
print("\n")
print("a media do aluno entre {} e {} é igual a {}" .format (n1, n2, m))
print("\n")
print("A média entre {:.1f} e {:.1f} é igual a {:.1f}" . format (n1, n2, m))
| 32.222222
| 76
| 0.562069
| 55
| 290
| 2.963636
| 0.4
| 0.128834
| 0.196319
| 0.208589
| 0.257669
| 0
| 0
| 0
| 0
| 0
| 0
| 0.06087
| 0.206897
| 290
| 9
| 76
| 32.222222
| 0.647826
| 0
| 0
| 0.285714
| 0
| 0
| 0.498282
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.571429
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
247067c82d4fe3196ef01e15bc78e875c2490668
| 450
|
py
|
Python
|
nullHardware.py
|
alanswx/kivySlots
|
37501dcc62c29556c66605186dcc5cacfcc58d1c
|
[
"MIT"
] | 1
|
2017-11-26T22:51:38.000Z
|
2017-11-26T22:51:38.000Z
|
nullHardware.py
|
alanswx/kivySlots
|
37501dcc62c29556c66605186dcc5cacfcc58d1c
|
[
"MIT"
] | null | null | null |
nullHardware.py
|
alanswx/kivySlots
|
37501dcc62c29556c66605186dcc5cacfcc58d1c
|
[
"MIT"
] | null | null | null |
import time
import logging
def setup():
pass
class coinDispense:
def __init__(self):
# Set frequency to 60hz, good for servos.
return
def dispenseCoin(self,number):
logging.warn("dispense coin:"+str(number))
for i in range(number):
logging.warn("dispense one coin")
class hardwareButton:
def __init__(self):
return
def checkButton(self):
return False
| 18.75
| 54
| 0.606667
| 51
| 450
| 5.196078
| 0.607843
| 0.05283
| 0.083019
| 0.188679
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006431
| 0.308889
| 450
| 23
| 55
| 19.565217
| 0.845659
| 0.086667
| 0
| 0.25
| 0
| 0
| 0.075795
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.3125
| false
| 0.0625
| 0.125
| 0.1875
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
|
0
| 4
|
2471591b632068bb5e0407e6a43d2cce6043cfdf
| 9,864
|
py
|
Python
|
tests/test_containers_UniqueTreeContainer.py
|
josiah-wolf-oberholtzer/uqbar
|
96f86eb6264b0677a9e2931a527769640e5658b6
|
[
"MIT"
] | 7
|
2018-12-02T05:59:54.000Z
|
2021-12-28T22:40:18.000Z
|
tests/test_containers_UniqueTreeContainer.py
|
josiah-wolf-oberholtzer/uqbar
|
96f86eb6264b0677a9e2931a527769640e5658b6
|
[
"MIT"
] | 16
|
2017-12-28T22:08:09.000Z
|
2022-02-26T14:47:23.000Z
|
tests/test_containers_UniqueTreeContainer.py
|
josiah-wolf-oberholtzer/uqbar
|
96f86eb6264b0677a9e2931a527769640e5658b6
|
[
"MIT"
] | 5
|
2020-03-28T14:57:47.000Z
|
2022-02-01T10:02:18.000Z
|
import unittest
import uqbar.containers
class TestCase(unittest.TestCase):
def test___init___01(self):
"""
Initialize without name.
"""
node = uqbar.containers.UniqueTreeList()
assert node.name is None
assert node.parent is None
assert node.depth == 0
assert len(node) == 0
def test___init___02(self):
"""
Initialize with name.
"""
node = uqbar.containers.UniqueTreeList(name="foo")
assert node.name == "foo"
assert node.parent is None
assert node.depth == 0
assert len(node) == 0
def test_append_01(self):
"""
Unique parentage.
"""
node_a = uqbar.containers.UniqueTreeList()
node_b = uqbar.containers.UniqueTreeList()
node_c = uqbar.containers.UniqueTreeNode()
node_a.append(node_c)
assert node_c.parent is node_a
assert node_c in node_a
assert len(node_a) == 1
node_b.append(node_c)
assert node_c.parent is node_b
assert node_c in node_b
assert len(node_b) == 1
assert node_c not in node_a
assert len(node_a) == 0
def test_append_02(self):
"""
Re-insertion.
"""
node_a = uqbar.containers.UniqueTreeList()
node_b = uqbar.containers.UniqueTreeNode()
node_c = uqbar.containers.UniqueTreeNode()
node_a.append(node_b)
node_a.append(node_c)
assert node_a is node_b.parent
assert len(node_a) == 2
assert node_a[:] == [node_b, node_c]
assert node_b in node_a
assert node_c in node_a
node_a.append(node_b)
assert node_a is node_b.parent
assert len(node_a) == 2
assert node_a[:] == [node_c, node_b]
assert node_b in node_a
assert node_c in node_a
def test_extend_01(self):
"""
Extend from a list.
"""
node_a = uqbar.containers.UniqueTreeList()
node_b = uqbar.containers.UniqueTreeNode()
node_c = uqbar.containers.UniqueTreeNode()
node_a.extend([node_b, node_c])
assert len(node_a) == 2
assert node_a is node_b.parent
assert node_a is node_c.parent
assert node_a[:] == [node_b, node_c]
assert node_b in node_a
assert node_c in node_a
def test_extend_02(self):
"""
Extend from another UniqueTreeList.
"""
node_a = uqbar.containers.UniqueTreeList()
node_b = uqbar.containers.UniqueTreeList()
node_c = uqbar.containers.UniqueTreeNode()
node_d = uqbar.containers.UniqueTreeNode()
node_a.extend([node_c, node_d])
assert len(node_a) == 2
assert node_a is node_c.parent
assert node_a is node_d.parent
assert node_a[:] == [node_c, node_d]
assert node_c in node_a
assert node_d in node_a
node_b.extend(node_a)
assert len(node_a) == 0
assert len(node_b) == 2
assert node_a[:] == []
assert node_b is node_c.parent
assert node_b is node_d.parent
assert node_b[:] == [node_c, node_d]
assert node_c in node_b
assert node_c not in node_a
assert node_d in node_b
assert node_d not in node_a
def test_forbid_circular_parentage(self):
"""
Cannot insert a parent as a child.
"""
node_a = uqbar.containers.UniqueTreeList()
node_b = uqbar.containers.UniqueTreeList()
node_c = uqbar.containers.UniqueTreeList()
node_a.append(node_b)
node_b.append(node_c)
with self.assertRaises(ValueError):
node_c.append(node_a)
def test___getitem___numbered(self):
"""
UniqueTreeList can be subscripted with integers.
"""
node_a = uqbar.containers.UniqueTreeList()
node_b = uqbar.containers.UniqueTreeNode()
node_c = uqbar.containers.UniqueTreeNode()
node_d = uqbar.containers.UniqueTreeNode()
node_a.extend([node_b, node_c, node_d])
assert node_a[0] is node_b
assert node_a[1] is node_c
assert node_a[2] is node_d
with self.assertRaises(IndexError):
node_a[3]
assert node_a[-1] is node_d
assert node_a[-2] is node_c
assert node_a[-3] is node_b
with self.assertRaises(IndexError):
node_a[-4]
def test___getitem___named(self):
"""
UniqueTreeList can be strings.
Nodes are returned regardless how deep they are.
"""
node_a = uqbar.containers.UniqueTreeList(name="foo")
node_b = uqbar.containers.UniqueTreeList(name="bar")
node_c = uqbar.containers.UniqueTreeNode(name="baz")
node_d = uqbar.containers.UniqueTreeNode(name="quux")
node_e = uqbar.containers.UniqueTreeNode(name="quux")
node_a.extend([node_b, node_e])
node_b.extend([node_c, node_d])
with self.assertRaises(KeyError):
node_a["foo"]
assert node_a["bar"] is node_b
assert node_a["baz"] is node_c
assert node_a["quux"] == [node_d, node_e]
def test___iter__(self):
"""
UniqueTreeList can be iterated.
"""
node_a = uqbar.containers.UniqueTreeList()
node_b = uqbar.containers.UniqueTreeNode()
node_c = uqbar.containers.UniqueTreeNode()
node_d = uqbar.containers.UniqueTreeNode()
node_a.extend([node_b, node_c, node_d])
iterator = iter(node_a)
assert next(iterator) is node_b
assert next(iterator) is node_c
assert next(iterator) is node_d
with self.assertRaises(StopIteration):
next(iterator)
def test___len__(self):
"""
Length-checking works.
"""
node_a = uqbar.containers.UniqueTreeList()
node_b = uqbar.containers.UniqueTreeNode()
node_c = uqbar.containers.UniqueTreeNode()
node_d = uqbar.containers.UniqueTreeNode()
assert len(node_a) == 0
node_a.append(node_b)
assert len(node_a) == 1
node_a.append(node_c)
assert len(node_a) == 2
node_a.append(node_d)
assert len(node_a) == 3
node_a.remove(node_b)
assert len(node_a) == 2
node_a.remove(node_c)
assert len(node_a) == 1
node_a.remove(node_d)
assert len(node_a) == 0
def test___setitem__(self):
"""
Nodes can be set.
"""
node_a = uqbar.containers.UniqueTreeList()
node_b = uqbar.containers.UniqueTreeNode()
node_c = uqbar.containers.UniqueTreeNode()
node_d = uqbar.containers.UniqueTreeNode()
node_a.extend([node_b, node_c])
assert node_a[:] == [node_b, node_c]
node_a[0] = node_d
assert node_a[:] == [node_d, node_c]
node_a[1:] = [node_b]
assert node_a[:] == [node_d, node_b]
node_a[:] = [node_c]
assert node_a[:] == [node_c]
node_a[:] = []
assert node_a[:] == []
def test___delitem___01(self):
"""
Nodes can be deleted.
"""
node_a = uqbar.containers.UniqueTreeList()
node_b = uqbar.containers.UniqueTreeNode(name="foo")
node_c = uqbar.containers.UniqueTreeNode(name="bar")
node_d = uqbar.containers.UniqueTreeNode(name="baz")
node_a.extend([node_b, node_c, node_d])
del node_a[1]
assert node_a[:] == [node_b, node_d]
del node_a["baz"]
assert node_a[:] == [node_b]
def test___delitem___02(self):
"""
Discontiguous named deletion works.
"""
node_a = uqbar.containers.UniqueTreeList(name="foo")
node_b = uqbar.containers.UniqueTreeList(name="bar")
node_c = uqbar.containers.UniqueTreeNode(name="baz")
node_d = uqbar.containers.UniqueTreeNode(name="quux")
node_e = uqbar.containers.UniqueTreeNode(name="quux")
node_a.extend([node_b, node_e])
node_b.extend([node_c, node_d])
del node_a["quux"]
assert node_d.parent is None
assert node_e.parent is None
def test_pop(self):
"""
Nodes can be popped.
"""
node_a = uqbar.containers.UniqueTreeList()
node_b = uqbar.containers.UniqueTreeNode()
node_c = uqbar.containers.UniqueTreeNode()
node_d = uqbar.containers.UniqueTreeNode()
node_a.extend([node_b, node_c, node_d])
assert node_a[:] == [node_b, node_c, node_d]
assert node_a.pop() is node_d
assert node_a[:] == [node_b, node_c]
assert node_a.pop(0) is node_b
assert node_a[:] == [node_c]
assert node_a.pop(-1) is node_c
assert node_a[:] == []
assert node_b.parent is None
assert node_c.parent is None
assert node_d.parent is None
def test_insert(self):
"""
Nodes can be inserted.
"""
node_a = uqbar.containers.UniqueTreeList()
node_b = uqbar.containers.UniqueTreeNode()
node_c = uqbar.containers.UniqueTreeNode()
node_d = uqbar.containers.UniqueTreeNode()
node_a.extend([node_b, node_c])
assert node_a.insert(1, node_d) is None
assert node_a is node_d.parent
assert node_a[:] == [node_b, node_d, node_c]
def test_remove(self):
"""
Nodes can be removed.
"""
node_a = uqbar.containers.UniqueTreeList()
node_b = uqbar.containers.UniqueTreeNode()
node_c = uqbar.containers.UniqueTreeNode()
node_d = uqbar.containers.UniqueTreeNode()
node_a.extend([node_b, node_c, node_d])
assert node_a.remove(node_c) is None
assert node_a[:] == [node_b, node_d]
assert node_c not in node_a
assert node_c.parent is None
| 33.896907
| 61
| 0.601886
| 1,297
| 9,864
| 4.292984
| 0.073246
| 0.105065
| 0.077047
| 0.160022
| 0.817888
| 0.757364
| 0.647629
| 0.580101
| 0.56268
| 0.512572
| 0
| 0.007188
| 0.294809
| 9,864
| 290
| 62
| 34.013793
| 0.793272
| 0.050284
| 0
| 0.600917
| 0
| 0
| 0.007694
| 0
| 0
| 0
| 0
| 0
| 0.449541
| 1
| 0.077982
| false
| 0
| 0.009174
| 0
| 0.091743
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
24979e4e53de2b2ce07c5e10f742ff0fa787a88c
| 7,081
|
py
|
Python
|
introduction/matlab_plot/python/11.grid.py
|
LeandroTk/intro-data-science
|
36a8bf2c080a94526c2f71e5773dd451ca371d38
|
[
"MIT"
] | 9
|
2019-01-01T17:44:18.000Z
|
2021-02-08T06:30:03.000Z
|
introduction/matlab_plot/python/11.grid.py
|
kemojal/machine-learning-degree
|
b27f21854b7df9fbac3a801087c0f2c3ff0a6b63
|
[
"MIT"
] | null | null | null |
introduction/matlab_plot/python/11.grid.py
|
kemojal/machine-learning-degree
|
b27f21854b7df9fbac3a801087c0f2c3ff0a6b63
|
[
"MIT"
] | 3
|
2019-02-23T04:22:23.000Z
|
2021-02-08T06:30:04.000Z
|
# defining "gross_domestic_product_per_capita" and "life_expectancy" lists
gross_domestic_product_per_capita = [
974.5803384, 5937.029525999998, 6223.367465, 4797.231267, 12779.37964, 34435.367439999995, 36126.4927, 29796.04834, 1391.253792, 33692.60508, 1441.284873, 3822.137084, 7446.298803, 12569.85177, 9065.800825, 10680.79282, 1217.032994, 430.0706916, 1713.778686, 2042.09524, 36319.23501, 706.016537, 1704.063724, 13171.63885, 4959.114854, 7006.580419, 986.1478792, 277.5518587, 3632.557798, 9645.06142, 1544.750112, 14619.222719999998, 8948.102923, 22833.30851, 35278.41874, 2082.4815670000007, 6025.3747520000015, 6873.262326000001, 5581.180998, 5728.353514, 12154.08975, 641.3695236000002, 690.8055759, 33207.0844, 30470.0167, 13206.48452, 752.7497265, 32170.37442, 1327.60891, 27538.41188, 5186.050003, 942.6542111, 579.2317429999998, 1201.637154, 3548.3308460000007, 39724.97867, 18008.94444, 36180.78919, 2452.210407, 3540.651564, 11605.71449, 4471.061906, 40675.99635, 25523.2771, 28569.7197, 7320.8802620000015, 31656.06806, 4519.461171, 1463.249282, 1593.06548, 23348.139730000006, 47306.98978, 10461.05868, 1569.331442, 414.5073415, 12057.49928, 1044.770126, 759.3499101, 12451.6558, 1042.581557, 1803.151496, 10956.99112, 11977.57496, 3095.7722710000007, 9253.896111, 3820.17523, 823.6856205, 944.0, 4811.060429, 1091.359778, 36797.93332, 25185.00911, 2749.320965, 619.6768923999998, 2013.977305, 49357.19017, 22316.19287, 2605.94758, 9809.185636, 4172.838464, 7408.905561, 3190.481016, 15389.924680000002, 20509.64777, 19328.70901, 7670.122558, 10808.47561, 863.0884639000002, 1598.435089, 21654.83194, 1712.472136, 9786.534714, 862.5407561000002, 47143.17964, 18678.31435, 25768.25759, 926.1410683, 9269.657808, 28821.0637, 3970.095407, 2602.394995, 4513.480643, 33859.74835, 37506.41907, 4184.548089, 28718.27684, 1107.482182, 7458.396326999998, 882.9699437999999, 18008.50924, 7092.923025, 8458.276384, 1056.380121, 33203.26128, 42951.65309, 10611.46299, 11415.80569, 2441.576404, 3025.349798, 2280.769906, 1271.211593, 469.70929810000007
]
# define life_expectancy list
life_expectancy = [
43.828, 76.423, 72.301, 42.731, 75.32, 81.235, 79.829, 75.635, 64.062, 79.441, 56.728, 65.554, 74.852, 50.728, 72.39, 73.005, 52.295, 49.58, 59.723, 50.43, 80.653, 44.74100000000001, 50.651, 78.553, 72.961, 72.889, 65.152, 46.462, 55.322, 78.782, 48.328, 75.748, 78.273, 76.486, 78.332, 54.791, 72.235, 74.994, 71.33800000000002, 71.878, 51.57899999999999, 58.04, 52.947, 79.313, 80.657, 56.735, 59.448, 79.406, 60.022, 79.483, 70.259, 56.007, 46.38800000000001, 60.916, 70.19800000000001, 82.208, 73.33800000000002, 81.757, 64.69800000000001, 70.65, 70.964, 59.545, 78.885, 80.745, 80.546, 72.567, 82.603, 72.535, 54.11, 67.297, 78.623, 77.58800000000002, 71.993, 42.592, 45.678, 73.952, 59.44300000000001, 48.303, 74.241, 54.467, 64.164, 72.801, 76.195, 66.803, 74.543, 71.164, 42.082, 62.069, 52.90600000000001, 63.785, 79.762, 80.204, 72.899, 56.867, 46.859, 80.196, 75.64, 65.483, 75.53699999999998, 71.752, 71.421, 71.688, 75.563, 78.098, 78.74600000000002, 76.442, 72.476, 46.242, 65.528, 72.777, 63.062, 74.002, 42.56800000000001, 79.972, 74.663, 77.926, 48.159, 49.339, 80.941, 72.396, 58.556, 39.613, 80.884, 81.70100000000002, 74.143, 78.4, 52.517, 70.616, 58.42, 69.819, 73.923, 71.777, 51.542, 79.425, 78.242, 76.384, 73.747, 74.249, 73.422, 62.698, 42.38399999999999, 43.487
]
# define population_number list
population_number = [
31.889923, 3.600523, 33.333216, 12.420476, 40.301927, 20.434176, 8.199783, 0.708573, 150.448339, 10.392226, 8.078314, 9.119152, 4.552198, 1.639131, 190.010647, 7.322858, 14.326203, 8.390505, 14.131858, 17.696293, 33.390141, 4.369038, 10.238807, 16.284741, 1318.683096, 44.22755, 0.71096, 64.606759, 3.80061, 4.133884, 18.013409, 4.493312, 11.416987, 10.228744, 5.46812, 0.496374, 9.319622, 13.75568, 80.264543, 6.939688, 0.551201, 4.906585, 76.511887, 5.23846, 61.083916, 1.454867, 1.688359, 82.400996, 22.873338, 10.70629, 12.572928, 9.947814, 1.472041, 8.502814, 7.483763, 6.980412, 9.956108, 0.301931, 1110.396331, 223.547, 69.45357, 27.499638, 4.109086, 6.426679, 58.147733, 2.780132, 127.467972, 6.053193, 35.610177, 23.301725, 49.04479, 2.505559, 3.921278, 2.012649, 3.193942, 6.036914, 19.167654, 13.327079, 24.821286, 12.031795, 3.270065, 1.250882, 108.700891, 2.874127, 0.684736, 33.757175, 19.951656, 47.76198, 2.05508, 28.90179, 16.570613, 4.115771, 5.675356, 12.894865, 135.031164, 4.627926, 3.204897, 169.270617, 3.242173, 6.667147, 28.674757, 91.077287, 38.518241, 10.642836, 3.942491, 0.798094, 22.276056, 8.860588, 0.199579, 27.601038, 12.267493, 10.150265, 6.144562, 4.553009, 5.447502, 2.009245, 9.118773, 43.997828, 40.448191, 20.378239, 42.292929, 1.133066, 9.031088, 7.554661, 19.314747, 23.174294, 38.13964, 65.068149, 5.701579, 1.056608, 10.276158, 71.158647, 29.170398, 60.776238, 301.139947, 3.447496, 26.084662, 85.262356, 4.018332, 22.211743, 11.746035, 12.311143
]
# Definition of colors
colors = [
'red', 'green', 'blue', 'blue', 'yellow', 'black', 'green', 'red', 'red', 'green', 'blue', 'yellow', 'green', 'blue', 'yellow', 'green', 'blue', 'blue', 'red', 'blue', 'yellow', 'blue', 'blue', 'yellow', 'red', 'yellow', 'blue', 'blue', 'blue', 'yellow', 'blue', 'green', 'yellow', 'green', 'green', 'blue', 'yellow', 'yellow', 'blue', 'yellow', 'blue', 'blue', 'blue', 'green', 'green', 'blue', 'blue', 'green', 'blue', 'green', 'yellow', 'blue', 'blue', 'yellow', 'yellow', 'red', 'green', 'green', 'red', 'red', 'red', 'red', 'green', 'red', 'green', 'yellow', 'red', 'red', 'blue', 'red', 'red', 'red', 'red', 'blue', 'blue', 'blue', 'blue', 'blue', 'red', 'blue', 'blue', 'blue', 'yellow', 'red', 'green', 'blue', 'blue', 'red', 'blue', 'red', 'green', 'black', 'yellow', 'blue', 'blue', 'green', 'red', 'red', 'yellow', 'yellow', 'yellow', 'red', 'green', 'green', 'yellow', 'blue', 'green', 'blue', 'blue', 'red', 'blue', 'green', 'blue', 'red', 'green', 'green', 'blue', 'blue', 'green', 'red', 'blue', 'blue', 'green', 'green', 'red', 'red', 'blue', 'red', 'blue', 'yellow', 'blue', 'green', 'blue', 'green', 'yellow', 'yellow', 'yellow', 'red', 'red', 'red', 'blue', 'blue'
]
# import matplotlib
import matplotlib.pyplot as plt
# import numpy
import numpy as np
# define numpy population number array
np_population_number = np.array(population_number) * 2
# Basic scatter plot, log scale
plt.scatter(gross_domestic_product_per_capita, life_expectancy, s = np_population_number, c = colors, alpha = 0.8)
plt.xscale('log')
# Labels & Title
xlab = 'GDP per Capita [in USD]'
ylab = 'Life Expectancy [in years]'
title = 'World Development in 2007'
# Add axis labels
plt.xlabel(xlab)
plt.ylabel(ylab)
# Add title
plt.title(title)
# Definition of tick_val and tick_lab
tick_val = [1000,10000,100000]
tick_lab = ['1k','10k','100k']
# Adapt the ticks on the x-axis
plt.xticks(tick_val, tick_lab)
# Punctual information in the graph
plt.text(1550, 71, 'India')
plt.text(5700, 80, 'China')
# Add grid
plt.grid(True)
# After customizing, display the plot
plt.show()
| 114.209677
| 1,952
| 0.696794
| 1,166
| 7,081
| 4.20669
| 0.611492
| 0.034251
| 0.015902
| 0.012232
| 0.076045
| 0
| 0
| 0
| 0
| 0
| 0
| 0.552149
| 0.106341
| 7,081
| 61
| 1,953
| 116.081967
| 0.222977
| 0.061432
| 0
| 0
| 0
| 0
| 0.107558
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.066667
| 0
| 0.066667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
24c4961f5b7c9d677745b702935296031e391294
| 117
|
py
|
Python
|
biopharma/server/autoapp.py
|
UCL/PyBioPharma
|
69f0c7e21a8d015d58082ab70b668e57116768ff
|
[
"BSD-3-Clause"
] | 1
|
2019-12-05T11:23:27.000Z
|
2019-12-05T11:23:27.000Z
|
biopharma/server/autoapp.py
|
UCL/PyBioPharma
|
69f0c7e21a8d015d58082ab70b668e57116768ff
|
[
"BSD-3-Clause"
] | null | null | null |
biopharma/server/autoapp.py
|
UCL/PyBioPharma
|
69f0c7e21a8d015d58082ab70b668e57116768ff
|
[
"BSD-3-Clause"
] | 2
|
2019-11-25T13:12:40.000Z
|
2019-12-05T11:23:29.000Z
|
"""Launcher for running on developer machines."""
from biopharma.server.app import create_app
app = create_app()
| 14.625
| 49
| 0.752137
| 16
| 117
| 5.375
| 0.75
| 0.209302
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145299
| 117
| 7
| 50
| 16.714286
| 0.86
| 0.367521
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
24d07e268b7ff0a3f2a36a269aaa171241aa8f20
| 92
|
py
|
Python
|
Codewars/8kyu/volume-of-a-cuboid/Python/solution1.py
|
RevansChen/online-judge
|
ad1b07fee7bd3c49418becccda904e17505f3018
|
[
"MIT"
] | 7
|
2017-09-20T16:40:39.000Z
|
2021-08-31T18:15:08.000Z
|
Codewars/8kyu/volume-of-a-cuboid/Python/solution1.py
|
RevansChen/online-judge
|
ad1b07fee7bd3c49418becccda904e17505f3018
|
[
"MIT"
] | null | null | null |
Codewars/8kyu/volume-of-a-cuboid/Python/solution1.py
|
RevansChen/online-judge
|
ad1b07fee7bd3c49418becccda904e17505f3018
|
[
"MIT"
] | null | null | null |
# Python - 3.6.0
getVolumeOfCubiod = lambda length, width, height: length * width * height
| 23
| 73
| 0.717391
| 12
| 92
| 5.5
| 0.75
| 0.333333
| 0.515152
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.039474
| 0.173913
| 92
| 3
| 74
| 30.666667
| 0.828947
| 0.152174
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
| 4
|
24d452c6d10e3affe652601b52da28c872a17808
| 1,335
|
py
|
Python
|
src/bindings/python/src/openvino/runtime/passes/graph_rewrite.py
|
artkuli/openvino
|
eb2fb5bf7df36ae55e3251816999b801ce053335
|
[
"Apache-2.0"
] | 1,127
|
2018-10-15T14:36:58.000Z
|
2020-04-20T09:29:44.000Z
|
src/bindings/python/src/openvino/runtime/passes/graph_rewrite.py
|
artkuli/openvino
|
eb2fb5bf7df36ae55e3251816999b801ce053335
|
[
"Apache-2.0"
] | 439
|
2018-10-20T04:40:35.000Z
|
2020-04-19T05:56:25.000Z
|
src/bindings/python/src/openvino/runtime/passes/graph_rewrite.py
|
tuxedcat/openvino
|
5939cb1b363ebb56b73c2ad95d8899961a084677
|
[
"Apache-2.0"
] | 414
|
2018-10-17T05:53:46.000Z
|
2020-04-16T17:29:53.000Z
|
# -*- coding: utf-8 -*-
# Copyright (C) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# type: ignore
from openvino.pyopenvino.passes import MatcherPass
from openvino.pyopenvino.passes import GraphRewrite as GraphRewriteBase
from openvino.pyopenvino.passes import BackwardGraphRewrite as BackwardGraphRewriteBase
class GraphRewrite(GraphRewriteBase):
"""GraphRewrite that additionally holds python transformations objects."""
def __init__(self) -> None:
super().__init__()
self.passes_list = [] # need to keep python instances alive
def add_matcher(self, transformation: MatcherPass) -> MatcherPass:
"""Append MatcherPass instance to the end of execution list."""
self.passes_list.append(transformation)
return super().add_matcher(transformation)
class BackwardGraphRewrite(BackwardGraphRewriteBase):
"""BackwardGraphRewriteBase that additionally holds python transformations objects."""
def __init__(self) -> None:
super().__init__()
self.passes_list = [] # need to keep python instances alive
def add_matcher(self, transformation: MatcherPass) -> MatcherPass:
"""Append MatcherPass instance to the end of execution list."""
self.passes_list.append(transformation)
return super().add_matcher(transformation)
| 41.71875
| 90
| 0.737079
| 140
| 1,335
| 6.857143
| 0.392857
| 0.033333
| 0.058333
| 0.0875
| 0.704167
| 0.597917
| 0.597917
| 0.597917
| 0.597917
| 0.597917
| 0
| 0.006329
| 0.171536
| 1,335
| 31
| 91
| 43.064516
| 0.861664
| 0.334082
| 0
| 0.705882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.235294
| false
| 0.529412
| 0.176471
| 0
| 0.647059
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
24e9e2af9ea0c161139c8ee9ab503147d259d615
| 250
|
py
|
Python
|
source/app/__init__.py
|
ZenRay/DialTest
|
699f35ebb6a19b81c2ed2b5bc0c1a3a2769193c2
|
[
"MIT"
] | null | null | null |
source/app/__init__.py
|
ZenRay/DialTest
|
699f35ebb6a19b81c2ed2b5bc0c1a3a2769193c2
|
[
"MIT"
] | null | null | null |
source/app/__init__.py
|
ZenRay/DialTest
|
699f35ebb6a19b81c2ed2b5bc0c1a3a2769193c2
|
[
"MIT"
] | null | null | null |
#coding:utf8
import sys
from PyQt5.QtWidgets import QMainWindow, QApplication
from os import path
from configparser import ConfigParser
sys.path.append(path.abspath(path.join(path.dirname(__file__), ".")))
from .communicator import MainWindow, Home
| 27.777778
| 69
| 0.812
| 33
| 250
| 6.030303
| 0.606061
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00885
| 0.096
| 250
| 9
| 70
| 27.777778
| 0.871681
| 0.044
| 0
| 0
| 0
| 0
| 0.004184
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.833333
| 0
| 0.833333
| 0
| 0
| 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
| 4
|
24ed56519776259759b16493f8032f0bb14df4a3
| 3,409
|
py
|
Python
|
sr-pwc/test_models.py
|
ashariati/srfnet
|
2171a635006d3ac98e39a9f07c17027b70e5aead
|
[
"MIT"
] | null | null | null |
sr-pwc/test_models.py
|
ashariati/srfnet
|
2171a635006d3ac98e39a9f07c17027b70e5aead
|
[
"MIT"
] | null | null | null |
sr-pwc/test_models.py
|
ashariati/srfnet
|
2171a635006d3ac98e39a9f07c17027b70e5aead
|
[
"MIT"
] | null | null | null |
import torch
import torch.nn as nn
import networks
import pdb
class PWC_NO_SR(nn.Module):
def __init__(self, checkpoint):
super(PWC_NO_SR, self).__init__()
self.model_id = 'PWC_NO_SR'
self.flow_model = networks.PWCNet().cuda()
self.flow_model.load_state_dict(torch.load(checkpoint))
def forward(self, x1, x2):
y_hat = self.flow_model(x1, x2)
return y_hat
class PWC_BICUBIC_SR(nn.Module):
def __init__(self, checkpoint):
super(PWC_BICUBIC_SR, self).__init__()
self.model_id = 'PWC_BICUBIC_SR'
self.flow_model = networks.PWCNet().cuda()
self.flow_model.load_state_dict(torch.load(checkpoint))
def forward(self, x1, x2):
y_hat = self.flow_model(x1, x2)
return y_hat
class PWC_SRResNet(nn.Module):
def __init__(self, sr_checkpoint, flow_checkpoint):
super(PWC_SRResNet, self).__init__()
self.model_id = 'PWC_SRResNet'
self.sr_model = networks.SRResNet().cuda()
self.sr_model.load_state_dict(torch.load(sr_checkpoint))
self.flow_model = networks.PWCNet().cuda()
self.flow_model.load_state_dict(torch.load(flow_checkpoint))
def forward(self, x1, x2):
x1, _, _, _ = self.sr_model(x1)
x2, _, _, _ = self.sr_model(x2)
# transform to correct range of tensor image values
x1 = 0.5 * (x1 + 1)
x2 = 0.5 * (x2 + 1)
y_hat = self.flow_model(x1, x2)
return y_hat
class PWC_ORACLE_SR(nn.Module):
def __init__(self, checkpoint):
super(PWC_ORACLE_SR, self).__init__()
self.model_id = 'PWC_ORACLE_SR'
self.flow_model = networks.PWCNet().cuda()
self.flow_model.load_state_dict(torch.load(checkpoint))
def forward(self, x1, x2):
y_hat = self.flow_model(x1, x2)
return y_hat
class SRFNet(nn.Module):
def __init__(self, checkpoint):
super(SRFNet, self).__init__()
self.model_id = 'SRFNet'
self.joint_model = networks.SRPWCNet(
networks.SRResNet().cuda(),
networks.PWCNet().cuda(),
freeze_pwc=False).cuda()
self.joint_model.load_state_dict(torch.load(checkpoint))
def forward(self, x1, x2):
y_hat = self.joint_model(x1, x2)
return y_hat
class SRFNet_K(nn.Module):
def __init__(self, checkpoint):
super(SRFNet_K, self).__init__()
self.model_id = 'SRFNet_K'
self.joint_model = networks.SRPWCNet(
networks.SRResNet().cuda(),
networks.PWCNet().cuda(),
freeze_pwc=False).cuda()
self.joint_model.load_state_dict(torch.load(checkpoint))
def forward(self, x1, x2):
y_hat = self.joint_model(x1, x2)
return y_hat
class SRFNet_EK(nn.Module):
def __init__(self, checkpoint):
super(SRFNet_EK, self).__init__()
self.model_id = 'SRFNet_EK'
self.joint_model = networks.SRPWCNet(
networks.SRResNet().cuda(),
networks.PWCNet().cuda(),
freeze_pwc=False).cuda()
self.joint_model.load_state_dict(torch.load(checkpoint))
def forward(self, x1, x2):
y_hat = self.joint_model(x1, x2)
return y_hat
| 26.632813
| 69
| 0.595189
| 435
| 3,409
| 4.301149
| 0.117241
| 0.032068
| 0.083378
| 0.076964
| 0.834313
| 0.824158
| 0.742918
| 0.704436
| 0.637092
| 0.574559
| 0
| 0.017363
| 0.290408
| 3,409
| 127
| 70
| 26.84252
| 0.756098
| 0.014374
| 0
| 0.597561
| 0
| 0
| 0.021981
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.170732
| false
| 0
| 0.04878
| 0
| 0.390244
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
700ae9c12624fef5fc005375eeaded128bbdd833
| 161
|
py
|
Python
|
wikipedia search.py
|
JehanKandy/Wikipedia-search-with-Python
|
cae8452b67d4b2d9f44e4369e5e3874475b4b028
|
[
"MIT"
] | 7
|
2021-12-24T14:42:16.000Z
|
2022-03-28T16:53:54.000Z
|
wikipedia search.py
|
JehanKandy/Wikipedia-search-with-Python
|
cae8452b67d4b2d9f44e4369e5e3874475b4b028
|
[
"MIT"
] | null | null | null |
wikipedia search.py
|
JehanKandy/Wikipedia-search-with-Python
|
cae8452b67d4b2d9f44e4369e5e3874475b4b028
|
[
"MIT"
] | null | null | null |
import pywhatkit
pywhatkit.info("Car", lines=5)
# "Car" means that you want to type to search
# lines=5 -----> means how many lines do you wnat to display
| 26.833333
| 61
| 0.689441
| 27
| 161
| 4.111111
| 0.666667
| 0.108108
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015504
| 0.198758
| 161
| 5
| 62
| 32.2
| 0.844961
| 0.63354
| 0
| 0
| 0
| 0
| 0.058824
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
701e26addcf163e50f96bda9a5f74de9bd8b8b14
| 85
|
py
|
Python
|
src/tic/plane/apps.py
|
gunduzhuseyn/Tic-SPLE
|
d6321be0a3824c6b071e558df47f372bcf855e07
|
[
"MIT"
] | null | null | null |
src/tic/plane/apps.py
|
gunduzhuseyn/Tic-SPLE
|
d6321be0a3824c6b071e558df47f372bcf855e07
|
[
"MIT"
] | null | null | null |
src/tic/plane/apps.py
|
gunduzhuseyn/Tic-SPLE
|
d6321be0a3824c6b071e558df47f372bcf855e07
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class PlaneConfig(AppConfig):
name = 'plane'
| 14.166667
| 33
| 0.741176
| 10
| 85
| 6.3
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.176471
| 85
| 5
| 34
| 17
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0.058824
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
704b14460f20b61b9e11e64d90c893af83342894
| 63
|
py
|
Python
|
iridiumSBD/directip/__init__.py
|
uhsealevelcenter/iridiumSBD
|
857476c215988dfeb48c058352931cb37d97d9dd
|
[
"BSD-3-Clause"
] | 5
|
2020-06-22T20:48:27.000Z
|
2022-03-21T12:34:55.000Z
|
iridiumSBD/directip/__init__.py
|
uhsealevelcenter/iridiumSBD
|
857476c215988dfeb48c058352931cb37d97d9dd
|
[
"BSD-3-Clause"
] | 3
|
2021-02-16T03:39:12.000Z
|
2021-11-15T17:51:09.000Z
|
iridiumSBD/directip/__init__.py
|
uhsealevelcenter/iridiumSBD
|
857476c215988dfeb48c058352931cb37d97d9dd
|
[
"BSD-3-Clause"
] | 4
|
2020-05-28T18:47:36.000Z
|
2022-02-16T15:01:53.000Z
|
# -*- coding: utf-8 -*-
"""DirectIP module of Iridium SBD."""
| 15.75
| 37
| 0.571429
| 8
| 63
| 4.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019231
| 0.174603
| 63
| 3
| 38
| 21
| 0.673077
| 0.857143
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
704b1ebc462ef65fe79dc77e46ddd26a96b513e0
| 74
|
py
|
Python
|
beaker/__init__.py
|
fengluo/beaker
|
e35de39f1dc169cf3b27b1c118acf60b1afc8b43
|
[
"Apache-2.0"
] | null | null | null |
beaker/__init__.py
|
fengluo/beaker
|
e35de39f1dc169cf3b27b1c118acf60b1afc8b43
|
[
"Apache-2.0"
] | null | null | null |
beaker/__init__.py
|
fengluo/beaker
|
e35de39f1dc169cf3b27b1c118acf60b1afc8b43
|
[
"Apache-2.0"
] | null | null | null |
__version__ = '0.1.0'
from app import App
from resource import Resource
| 12.333333
| 29
| 0.756757
| 12
| 74
| 4.333333
| 0.583333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.04918
| 0.175676
| 74
| 5
| 30
| 14.8
| 0.803279
| 0
| 0
| 0
| 0
| 0
| 0.068493
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
705c8c870358a1181ade0f98d384dbd2e519a0f3
| 56
|
py
|
Python
|
Scrap11888/lib/DataManagement/__init__.py
|
GeorgeVasiliadis/Scrap11888
|
f485ac894c681489e15c71597b4110859cfc7645
|
[
"MIT"
] | 1
|
2021-12-14T22:28:43.000Z
|
2021-12-14T22:28:43.000Z
|
Scrap11888/lib/DataManagement/__init__.py
|
GeorgeVasiliadis/Scrap11888
|
f485ac894c681489e15c71597b4110859cfc7645
|
[
"MIT"
] | null | null | null |
Scrap11888/lib/DataManagement/__init__.py
|
GeorgeVasiliadis/Scrap11888
|
f485ac894c681489e15c71597b4110859cfc7645
|
[
"MIT"
] | null | null | null |
from . import Cacher, Exporter, Filter, Importer, Miner
| 28
| 55
| 0.767857
| 7
| 56
| 6.142857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 56
| 1
| 56
| 56
| 0.895833
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
7061ef3ac20523d0a305b67ada013a3e78e87566
| 114
|
py
|
Python
|
cap9/ex1.py
|
felipesch92/livroPython
|
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
|
[
"MIT"
] | null | null | null |
cap9/ex1.py
|
felipesch92/livroPython
|
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
|
[
"MIT"
] | null | null | null |
cap9/ex1.py
|
felipesch92/livroPython
|
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
|
[
"MIT"
] | null | null | null |
import sys
print(f'Número de parâmetros: {len(sys.argv)}')
for n, p in enumerate(sys.argv):
print(f'{n} {p}')
| 22.8
| 47
| 0.649123
| 21
| 114
| 3.52381
| 0.666667
| 0.162162
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.149123
| 114
| 4
| 48
| 28.5
| 0.762887
| 0
| 0
| 0
| 0
| 0
| 0.385965
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.25
| 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
| 0
| 0
| 0
| 1
|
0
| 4
|
707bb55acb1f7e7b48ec91b6d872eda851238974
| 6,093
|
py
|
Python
|
src/year2017/day13a.py
|
lancelote/advent_of_code
|
06dda6ca034bc1e86addee7798bb9b2a34ff565b
|
[
"Unlicense"
] | 10
|
2017-12-11T17:54:52.000Z
|
2021-12-09T20:16:30.000Z
|
src/year2017/day13a.py
|
lancelote/advent_of_code
|
06dda6ca034bc1e86addee7798bb9b2a34ff565b
|
[
"Unlicense"
] | 260
|
2015-12-09T11:03:03.000Z
|
2021-12-12T14:32:23.000Z
|
src/year2017/day13a.py
|
lancelote/advent_of_code
|
06dda6ca034bc1e86addee7798bb9b2a34ff565b
|
[
"Unlicense"
] | null | null | null |
"""2017 - Day 13 Part 1: Packet Scanners.
You need to cross a vast firewall. The firewall consists of several layers,
each with a security scanner that moves back and forth across the layer. To
succeed, you must not be detected by a scanner.
By studying the firewall briefly, you are able to record (in your puzzle
input) the depth of each layer and the range of the scanning area for the
scanner within it, written as depth: range. Each layer has a thickness of
exactly 1. A layer at depth 0 begins immediately inside the firewall; a layer
at depth 1 would start immediately after that.
For example, suppose you've recorded the following:
0: 3
1: 2
4: 4
6: 4
This means that there is a layer immediately inside the firewall (with range
3), a second layer immediately after that (with range 2), a third layer which
begins at depth 4 (with range 4), and a fourth layer which begins at depth 6
(also with range 4). Visually, it might look like this:
0 1 2 3 4 5 6
[ ] [ ] ... ... [ ] ... [ ]
[ ] [ ] [ ] [ ]
[ ] [ ] [ ]
[ ] [ ]
Within each layer, a security scanner moves back and forth within its range.
Each security scanner starts at the top and moves down until it reaches the
bottom, then moves up until it reaches the top, and repeats. A security
scanner takes one picosecond to move one step. Drawing scanners as S, the
first few picoseconds look like this:
Picosecond 0:
0 1 2 3 4 5 6
[S] [S] ... ... [S] ... [S]
[ ] [ ] [ ] [ ]
[ ] [ ] [ ]
[ ] [ ]
Picosecond 1:
0 1 2 3 4 5 6
[ ] [ ] ... ... [ ] ... [ ]
[S] [S] [S] [S]
[ ] [ ] [ ]
[ ] [ ]
Picosecond 2:
0 1 2 3 4 5 6
[ ] [S] ... ... [ ] ... [ ]
[ ] [ ] [ ] [ ]
[S] [S] [S]
[ ] [ ]
Picosecond 3:
0 1 2 3 4 5 6
[ ] [ ] ... ... [ ] ... [ ]
[S] [S] [ ] [ ]
[ ] [ ] [ ]
[S] [S]
Your plan is to hitch a ride on a packet about to move through the firewall.
The packet will travel along the top of each layer, and it moves at one layer
per picosecond. Each picosecond, the packet moves one layer forward (its
first move takes it into layer 0), and then the scanners move one step. If
there is a scanner at the top of the layer as your packet enters it, you are
caught. (If a scanner moves into the top of its layer while you are there, you
are not caught: it doesn't have time to notice you before you leave.) If you
were to do this in the configuration above, marking your current position with
parentheses, your passage through the firewall would look like this:
Initial state:
0 1 2 3 4 5 6
[S] [S] ... ... [S] ... [S]
[ ] [ ] [ ] [ ]
[ ] [ ] [ ]
[ ] [ ]
Picosecond 0:
0 1 2 3 4 5 6
(S) [S] ... ... [S] ... [S]
[ ] [ ] [ ] [ ]
[ ] [ ] [ ]
[ ] [ ]
0 1 2 3 4 5 6
( ) [ ] ... ... [ ] ... [ ]
[S] [S] [S] [S]
[ ] [ ] [ ]
[ ] [ ]
Picosecond 1:
0 1 2 3 4 5 6
[ ] ( ) ... ... [ ] ... [ ]
[S] [S] [S] [S]
[ ] [ ] [ ]
[ ] [ ]
0 1 2 3 4 5 6
[ ] (S) ... ... [ ] ... [ ]
[ ] [ ] [ ] [ ]
[S] [S] [S]
[ ] [ ]
Picosecond 2:
0 1 2 3 4 5 6
[ ] [S] (.) ... [ ] ... [ ]
[ ] [ ] [ ] [ ]
[S] [S] [S]
[ ] [ ]
0 1 2 3 4 5 6
[ ] [ ] (.) ... [ ] ... [ ]
[S] [S] [ ] [ ]
[ ] [ ] [ ]
[S] [S]
Picosecond 3:
0 1 2 3 4 5 6
[ ] [ ] ... (.) [ ] ... [ ]
[S] [S] [ ] [ ]
[ ] [ ] [ ]
[S] [S]
0 1 2 3 4 5 6
[S] [S] ... (.) [ ] ... [ ]
[ ] [ ] [ ] [ ]
[ ] [S] [S]
[ ] [ ]
Picosecond 4:
0 1 2 3 4 5 6
[S] [S] ... ... ( ) ... [ ]
[ ] [ ] [ ] [ ]
[ ] [S] [S]
[ ] [ ]
0 1 2 3 4 5 6
[ ] [ ] ... ... ( ) ... [ ]
[S] [S] [S] [S]
[ ] [ ] [ ]
[ ] [ ]
Picosecond 5:
0 1 2 3 4 5 6
[ ] [ ] ... ... [ ] (.) [ ]
[S] [S] [S] [S]
[ ] [ ] [ ]
[ ] [ ]
0 1 2 3 4 5 6
[ ] [S] ... ... [S] (.) [S]
[ ] [ ] [ ] [ ]
[S] [ ] [ ]
[ ] [ ]
Picosecond 6:
0 1 2 3 4 5 6
[ ] [S] ... ... [S] ... (S)
[ ] [ ] [ ] [ ]
[S] [ ] [ ]
[ ] [ ]
0 1 2 3 4 5 6
[ ] [ ] ... ... [ ] ... ( )
[S] [S] [S] [S]
[ ] [ ] [ ]
[ ] [ ]
In this situation, you are caught in layers 0 and 6, because your packet
entered the layer when its scanner was at the top when you entered it. You are
not caught in layer 1, since the scanner moved into the top of the layer once
you were already there.
The severity of getting caught on a layer is equal to its depth multiplied by
its range. (Ignore layers in which you do not get caught.) The severity of the
whole trip is the sum of these values. In the example above, the trip severity
is 0*3 + 6*4 = 24.
Given the details of the firewall you've recorded, if you leave immediately,
what is the severity of your whole trip?
"""
def solve() -> int:
"""Solve the puzzle."""
| 32.068421
| 78
| 0.393566
| 732
| 6,093
| 3.275956
| 0.230874
| 0.04754
| 0.04754
| 0.033361
| 0.17181
| 0.139283
| 0.139283
| 0.136364
| 0.136364
| 0.136364
| 0
| 0.057579
| 0.472674
| 6,093
| 189
| 79
| 32.238095
| 0.688764
| 0.993435
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| true
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
560e8091f3879b70ae05e8bda48545e18755d233
| 173
|
py
|
Python
|
podcasts/errors.py
|
Vexed01/vex-unsupported-cogs
|
f96d81e36edcd8dda465eb473820a42e0d2cb646
|
[
"MIT"
] | null | null | null |
podcasts/errors.py
|
Vexed01/vex-unsupported-cogs
|
f96d81e36edcd8dda465eb473820a42e0d2cb646
|
[
"MIT"
] | null | null | null |
podcasts/errors.py
|
Vexed01/vex-unsupported-cogs
|
f96d81e36edcd8dda465eb473820a42e0d2cb646
|
[
"MIT"
] | null | null | null |
class PodcastError(Exception):
"""Base class for all podcast exceptions."""
pass
class NoResults(PodcastError):
"""Raised when no results are found."""
pass
| 24.714286
| 48
| 0.687861
| 20
| 173
| 5.95
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.196532
| 173
| 7
| 49
| 24.714286
| 0.856115
| 0.416185
| 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 | 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
| 4
|
561143cc490a68779fc74682f742185be9bbc865
| 239
|
py
|
Python
|
app/data/__init__.py
|
Nathanlauga/football-python-flask-app
|
65e6ad31140514646342033dc5227be254fb998e
|
[
"MIT"
] | 1
|
2021-01-02T07:16:53.000Z
|
2021-01-02T07:16:53.000Z
|
app/data/__init__.py
|
laelasbuch/football-python-flask-app
|
65e6ad31140514646342033dc5227be254fb998e
|
[
"MIT"
] | 1
|
2021-06-02T00:40:37.000Z
|
2021-06-02T00:40:37.000Z
|
app/data/__init__.py
|
laelasbuch/football-python-flask-app
|
65e6ad31140514646342033dc5227be254fb998e
|
[
"MIT"
] | 5
|
2019-11-16T09:21:30.000Z
|
2022-02-12T15:36:39.000Z
|
from .data import load_countries
from .data import load_results
from .data import load_predictions
countries = load_countries(path='app/data/')
game_results = load_results(path='app/data/')
predictions = load_predictions(path='app/data/')
| 34.142857
| 48
| 0.799163
| 34
| 239
| 5.411765
| 0.294118
| 0.130435
| 0.228261
| 0.293478
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.087866
| 239
| 7
| 48
| 34.142857
| 0.844037
| 0
| 0
| 0
| 0
| 0
| 0.1125
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
56381680665edf23b44b5f4864d283d660853fd8
| 364
|
py
|
Python
|
app/models.py
|
putuwinda/palette
|
2d36d34d2366f81f381ca26d7d7167517b6c34b3
|
[
"MIT"
] | 1
|
2022-02-25T17:52:05.000Z
|
2022-02-25T17:52:05.000Z
|
app/models.py
|
putuwinda/palette
|
2d36d34d2366f81f381ca26d7d7167517b6c34b3
|
[
"MIT"
] | null | null | null |
app/models.py
|
putuwinda/palette
|
2d36d34d2366f81f381ca26d7d7167517b6c34b3
|
[
"MIT"
] | null | null | null |
from app import db
class Color(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(64), index=True, unique=False)
r = db.Column(db.SmallInteger)
g = db.Column(db.SmallInteger)
b = db.Column(db.SmallInteger)
def __repr__(self):
return '<Color {}: {},{},{}>'.format(self.name, self.r, self.g, self.b)
| 30.333333
| 79
| 0.637363
| 55
| 364
| 4.127273
| 0.509091
| 0.176211
| 0.220264
| 0.290749
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006734
| 0.184066
| 364
| 11
| 80
| 33.090909
| 0.757576
| 0
| 0
| 0
| 0
| 0
| 0.054945
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0
| 0.111111
| 0.111111
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
563ee4183b812d666c7fcc54ead93731fca65437
| 106
|
py
|
Python
|
crawler/main.py
|
craterkamath/summarizer
|
fcf7706bbef3e155c29ffd44cee90468159a1477
|
[
"Apache-2.0"
] | 2
|
2020-02-01T19:54:19.000Z
|
2021-06-08T16:53:00.000Z
|
crawler/main.py
|
craterkamath/summarizer
|
fcf7706bbef3e155c29ffd44cee90468159a1477
|
[
"Apache-2.0"
] | null | null | null |
crawler/main.py
|
craterkamath/summarizer
|
fcf7706bbef3e155c29ffd44cee90468159a1477
|
[
"Apache-2.0"
] | 4
|
2016-09-01T21:31:07.000Z
|
2019-02-06T16:41:41.000Z
|
from scrapy import cmdline
cmdline.execute("scrapy crawl udayavani -o udayavani_cinema_news.json".split())
| 53
| 79
| 0.830189
| 15
| 106
| 5.733333
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075472
| 106
| 2
| 79
| 53
| 0.877551
| 0
| 0
| 0
| 0
| 0
| 0.485981
| 0.242991
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
5646b173eaef406955e57722100c9aba360fc495
| 93
|
py
|
Python
|
bank-helper.py
|
tejas-9er/SVM-vs-LSSVM
|
e44f63458680c39df370ddfcdf22e8c450d23128
|
[
"MIT"
] | 5
|
2019-12-16T03:29:24.000Z
|
2022-02-14T01:26:28.000Z
|
bank-helper.py
|
tejas-9er/SVM-vs-LSSVM
|
e44f63458680c39df370ddfcdf22e8c450d23128
|
[
"MIT"
] | null | null | null |
bank-helper.py
|
tejas-9er/SVM-vs-LSSVM
|
e44f63458680c39df370ddfcdf22e8c450d23128
|
[
"MIT"
] | 5
|
2019-06-18T06:59:35.000Z
|
2020-12-19T11:10:56.000Z
|
import pandas as pd
bank = pd.read_csv('bank.csv',sep=';')
bank.to_csv('bank-modified.csv')
| 18.6
| 38
| 0.698925
| 17
| 93
| 3.705882
| 0.588235
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 93
| 5
| 39
| 18.6
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0.276596
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
564df0364426b17ada209594694a9082afa56330
| 93
|
py
|
Python
|
web/molecules/apps.py
|
mlugowska/residence_time
|
4546f29ac956725e1c8ca5d74d31e2c0a62b6a94
|
[
"MIT"
] | null | null | null |
web/molecules/apps.py
|
mlugowska/residence_time
|
4546f29ac956725e1c8ca5d74d31e2c0a62b6a94
|
[
"MIT"
] | 2
|
2021-06-09T18:53:43.000Z
|
2021-06-10T19:42:20.000Z
|
web/molecules/apps.py
|
mlugowska/residence_time
|
4546f29ac956725e1c8ca5d74d31e2c0a62b6a94
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class MoleculesConfig(AppConfig):
name = 'molecules'
| 15.5
| 33
| 0.763441
| 10
| 93
| 7.1
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16129
| 93
| 5
| 34
| 18.6
| 0.910256
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
564e1449b77ea147e7cec6bf93159a0bd5f51bd9
| 70
|
py
|
Python
|
model/stacked_parser_tdt_xlnet/__init__.py
|
NLP-Discourse-SoochowU/sota_end2end_parser
|
fc3fde603b12fb41eb1cc40df79495569318bd88
|
[
"Apache-2.0"
] | 1
|
2021-12-20T07:56:13.000Z
|
2021-12-20T07:56:13.000Z
|
model/stacked_parser_tdt_xlnet/__init__.py
|
NLP-Discourse-SoochowU/sota_end2end_parser
|
fc3fde603b12fb41eb1cc40df79495569318bd88
|
[
"Apache-2.0"
] | null | null | null |
model/stacked_parser_tdt_xlnet/__init__.py
|
NLP-Discourse-SoochowU/sota_end2end_parser
|
fc3fde603b12fb41eb1cc40df79495569318bd88
|
[
"Apache-2.0"
] | 1
|
2021-08-16T07:27:02.000Z
|
2021-08-16T07:27:02.000Z
|
# -*- coding: utf-8 -*-
"""
@Author: Lyzhang
@Date:
@Description:
"""
| 10
| 23
| 0.542857
| 7
| 70
| 5.428571
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016949
| 0.157143
| 70
| 7
| 24
| 10
| 0.627119
| 0.857143
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5659c8162e1f1cd6d0194d589223b2230eb8dd9f
| 4,018
|
py
|
Python
|
tests/integration/test_user.py
|
jmagnusson/prodapi
|
7eba2bc5d9faf44181e1d2f579d05c0fdfc9bcdf
|
[
"MIT"
] | 4
|
2021-04-11T22:50:13.000Z
|
2021-04-12T13:50:25.000Z
|
tests/integration/test_user.py
|
jmagnusson/prodapi
|
7eba2bc5d9faf44181e1d2f579d05c0fdfc9bcdf
|
[
"MIT"
] | null | null | null |
tests/integration/test_user.py
|
jmagnusson/prodapi
|
7eba2bc5d9faf44181e1d2f579d05c0fdfc9bcdf
|
[
"MIT"
] | null | null | null |
import pytest
from fastapi import Depends
from fastapi.security import HTTPBasicCredentials
from fastapi.testclient import TestClient
from fastapi_security.exceptions import AuthNotConfigured
from prodapi import FastAPISecurity, ProdAPI, User
def test_that_user_route_raise_exception_when_auth_is_not_configured():
security = FastAPISecurity()
app = ProdAPI().with_user_routes(security)
c = TestClient(app)
with pytest.raises(AuthNotConfigured):
c.get("/users/me")
def test_that_user_route_works_with_auth_configured():
cred = HTTPBasicCredentials(username="johndoe", password="123")
security = FastAPISecurity()
security.init_basic_auth([cred])
app = ProdAPI().with_user_routes(security)
with TestClient(app) as c:
resp = c.get("/users/me")
assert resp.status_code == 200
data = resp.json()
assert data["auth"]["auth_method"] == "none"
with TestClient(app) as c:
resp = c.get("/users/me", auth=("johndoe", "123"))
assert resp.status_code == 200
data = resp.json()
assert data["auth"]["auth_method"] == "basic_auth"
assert data["auth"]["subject"] == "johndoe"
def test_that_user_route_includes_user_permissions():
cred = HTTPBasicCredentials(username="johndoe", password="123")
security = FastAPISecurity()
security.init_basic_auth([cred])
security.add_permission_overrides({"johndoe": "*"})
security.user_permission("products:create")
security.user_permission("products:delete")
app = ProdAPI().with_user_routes(security)
with TestClient(app) as c:
resp = c.get("/users/me")
assert resp.status_code == 200
data = resp.json()
assert data["auth"]["auth_method"] == "none"
with TestClient(app) as c:
resp = c.get("/users/me", auth=("johndoe", "123"))
data = resp.json()
assert data["auth"]["permissions"] == ["products:create", "products:delete"]
def test_that_user_without_permission_is_denied_access():
cred = HTTPBasicCredentials(username="johndoe", password="123")
security = FastAPISecurity()
security.init_basic_auth([cred])
app = ProdAPI()
create_product_perm = security.user_permission("products:create")
@app.post("/products")
def create_product(
user: User = Depends(security.user_holding(create_product_perm)),
):
return {}
with TestClient(app) as c:
resp = c.post("/products", auth=("johndoe", "123"))
assert resp.status_code == 403
assert resp.json() == {"detail": "Missing required permission products:create"}
def test_that_user_with_permission_is_granted_access():
cred = HTTPBasicCredentials(username="johndoe", password="123")
security = FastAPISecurity()
security.init_basic_auth([cred])
security.add_permission_overrides({"johndoe": ["products:create"]})
app = ProdAPI()
create_product_perm = security.user_permission("products:create")
@app.post("/products")
def create_product(
user: User = Depends(security.user_holding(create_product_perm)),
):
return {"ok": True}
with TestClient(app) as c:
resp = c.post("/products", auth=("johndoe", "123"))
assert resp.status_code == 200
assert resp.json() == {"ok": True}
def test_that_user_with_wildcard_permission_is_granted_access():
cred = HTTPBasicCredentials(username="johndoe", password="123")
security = FastAPISecurity()
security.init_basic_auth([cred])
security.add_permission_overrides({"johndoe": "*"})
app = ProdAPI()
create_product_perm = security.user_permission("products:create")
@app.post("/products")
def create_product(
user: User = Depends(security.user_holding(create_product_perm)),
):
return {"ok": True}
with TestClient(app) as c:
resp = c.post("/products", auth=("johndoe", "123"))
assert resp.status_code == 200
assert resp.json() == {"ok": True}
| 31.147287
| 87
| 0.672972
| 465
| 4,018
| 5.597849
| 0.16129
| 0.034575
| 0.045716
| 0.051095
| 0.764503
| 0.713023
| 0.690741
| 0.690741
| 0.690741
| 0.690741
| 0
| 0.014778
| 0.191638
| 4,018
| 128
| 88
| 31.390625
| 0.786638
| 0
| 0
| 0.73913
| 0
| 0
| 0.123196
| 0
| 0
| 0
| 0
| 0
| 0.152174
| 1
| 0.097826
| false
| 0.054348
| 0.065217
| 0.032609
| 0.195652
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
567bf55604623f8a00948adcd14ff5e9befb5d48
| 224
|
py
|
Python
|
models/bvlc_googlenet.py
|
Flying-Tiantian/tf-templet
|
7e50f9d515285e9d75179704425b9df4d13aa248
|
[
"MIT"
] | null | null | null |
models/bvlc_googlenet.py
|
Flying-Tiantian/tf-templet
|
7e50f9d515285e9d75179704425b9df4d13aa248
|
[
"MIT"
] | null | null | null |
models/bvlc_googlenet.py
|
Flying-Tiantian/tf-templet
|
7e50f9d515285e9d75179704425b9df4d13aa248
|
[
"MIT"
] | null | null | null |
from .py_model import py_model
from .from_caffe.bvlc_googlenet import GoogleNet
class bvlc_googlenet_model(py_model):
def __new__(self, hyparams):
return py_model(hyparams, GoogleNet, 224, name='bvlc_googlenet')
| 37.333333
| 72
| 0.785714
| 32
| 224
| 5.09375
| 0.46875
| 0.171779
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015464
| 0.133929
| 224
| 6
| 72
| 37.333333
| 0.824742
| 0
| 0
| 0
| 0
| 0
| 0.062222
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0.2
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
567fa77987466081075f6238d1965d1054efe857
| 138
|
py
|
Python
|
config.py
|
ramateja/covid-severity-web
|
2aee07d975b36938be5e086c65d8fb7376bef452
|
[
"Apache-2.0"
] | null | null | null |
config.py
|
ramateja/covid-severity-web
|
2aee07d975b36938be5e086c65d8fb7376bef452
|
[
"Apache-2.0"
] | null | null | null |
config.py
|
ramateja/covid-severity-web
|
2aee07d975b36938be5e086c65d8fb7376bef452
|
[
"Apache-2.0"
] | null | null | null |
import os
BASE_DIR="."
APP_FOLDER = "app"
INCOMING_FILES_PATH = "data"
VISUALISATION_FILES_PATH = "data"
STATIC_FILES_PATH = "templates"
| 17.25
| 33
| 0.768116
| 19
| 138
| 5.157895
| 0.684211
| 0.27551
| 0.265306
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115942
| 138
| 7
| 34
| 19.714286
| 0.803279
| 0
| 0
| 0
| 0
| 0
| 0.152174
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 0.166667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
56874bdbaabb27dbd38851d379b78233a5639710
| 239
|
py
|
Python
|
integration_test_models.py
|
ntardiff/PyDDM
|
d5d7747cce212c0ebe550324bf33f8625a24e2fd
|
[
"MIT"
] | 41
|
2018-07-16T21:07:26.000Z
|
2022-02-17T15:20:23.000Z
|
integration_test_models.py
|
ntardiff/PyDDM
|
d5d7747cce212c0ebe550324bf33f8625a24e2fd
|
[
"MIT"
] | 41
|
2019-05-22T21:22:41.000Z
|
2022-03-20T09:42:49.000Z
|
integration_test_models.py
|
ntardiff/PyDDM
|
d5d7747cce212c0ebe550324bf33f8625a24e2fd
|
[
"MIT"
] | 16
|
2018-08-02T21:28:04.000Z
|
2022-02-27T11:55:34.000Z
|
import ddm
class DriftCond(ddm.Drift):
name = "Drift with a condition"
required_conditions = ['cond']
required_parameters = ["param"]
def get_drift(self, conditions, **kwargs):
return conditions["cond"]*self.param
| 26.555556
| 46
| 0.677824
| 28
| 239
| 5.678571
| 0.678571
| 0.176101
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.196653
| 239
| 8
| 47
| 29.875
| 0.828125
| 0
| 0
| 0
| 0
| 0
| 0.146444
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0.142857
| 0.142857
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
56a34dddb9d9f4854c4d240e78c61ac99303b4ca
| 1,861
|
py
|
Python
|
hyaline/errors/ChannelErrors.py
|
5elenay/hyaline
|
117321c972b43cdb7e4e4a749bc4fa41396c12cb
|
[
"MIT"
] | 11
|
2021-06-09T05:23:01.000Z
|
2021-11-12T11:33:00.000Z
|
hyaline/errors/ChannelErrors.py
|
5elenay/hyaline
|
117321c972b43cdb7e4e4a749bc4fa41396c12cb
|
[
"MIT"
] | 1
|
2021-06-13T13:37:40.000Z
|
2021-06-13T14:06:20.000Z
|
hyaline/errors/ChannelErrors.py
|
5elenay/hyaline
|
117321c972b43cdb7e4e4a749bc4fa41396c12cb
|
[
"MIT"
] | 5
|
2021-06-09T13:53:31.000Z
|
2021-06-25T20:37:42.000Z
|
class GetChannelError(Exception):
"""Raises when fetch channel is failed."""
pass
class SendMessageToChannelFailed(Exception):
"""Raises when send message to channel is failed."""
pass
class EditChannelFailed(Exception):
"""Raises when editing the channel is failed."""
pass
class DeleteChannelFailed(Exception):
"""Raises when deleting the channel is failed."""
pass
class FetchChannelHistoryFailed(Exception):
"""Raises when fetching the channel history is failed."""
pass
class FetchChannelMessageFailed(Exception):
"""Raises when fetching the channel message is failed."""
pass
class FetchChannelInvitesFailed(Exception):
"""Raises when fetching the channel invites is failed."""
pass
class CreateInviteFailed(Exception):
"""Raises when creating new invite is failed."""
pass
class FetchPinnedMessagesFailed(Exception):
"""Raises when fetching the pinned messages is failed."""
pass
class PinMessageFailed(Exception):
"""Raises when pinning a message is failed."""
pass
class UnpinMessageFailed(Exception):
"""Raises when unpinning a message is failed."""
pass
class EditChannelPermissionsFailed(Exception):
"""Raises when editing the channel permissions is failed."""
pass
class DeleteChannelPermissionsFailed(Exception):
"""Raises when deleting the channel permissions is failed."""
pass
class TriggerTypingFailed(Exception):
"""Raises when trigger the typing is failed."""
pass
class DeleteChannelMessageFailed(Exception):
"""Raises when deleting a channel message is failed."""
pass
class CreateWebhookFailed(Exception):
"""Raises when creating a webhook is failed."""
pass
class FetchWebhooksFailed(Exception):
"""Raises when fetching the webhooks is failed."""
pass
| 18.425743
| 65
| 0.714132
| 194
| 1,861
| 6.850515
| 0.247423
| 0.191874
| 0.24304
| 0.204665
| 0.421369
| 0.340105
| 0.057186
| 0
| 0
| 0
| 0
| 0
| 0.194519
| 1,861
| 100
| 66
| 18.61
| 0.886591
| 0.42719
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
56a87e9dacb8244c898689310658efc2ed7eda7e
| 567
|
py
|
Python
|
mechroutines/es/runner/__init__.py
|
sjklipp/mechdriver
|
17c3d9bc82116954b331955e87a60e9adc5e1de9
|
[
"Apache-2.0"
] | null | null | null |
mechroutines/es/runner/__init__.py
|
sjklipp/mechdriver
|
17c3d9bc82116954b331955e87a60e9adc5e1de9
|
[
"Apache-2.0"
] | null | null | null |
mechroutines/es/runner/__init__.py
|
sjklipp/mechdriver
|
17c3d9bc82116954b331955e87a60e9adc5e1de9
|
[
"Apache-2.0"
] | null | null | null |
"""
Various electronic structure job runnerss
"""
from mechroutines.es.runner._run import execute_job
from mechroutines.es.runner._run import run_job
from mechroutines.es.runner._run import read_job
from mechroutines.es.runner._opt import multi_stage_optimization
from mechroutines.es.runner._seq import molpro_opts_mat
from mechroutines.es.runner._par import qchem_params
from mechroutines.es.runner import scan
__all__ = [
'execute_job',
'run_job',
'read_job',
'multi_stage_optimization',
'molpro_opts_mat',
'qchem_params',
'scan'
]
| 24.652174
| 64
| 0.776014
| 77
| 567
| 5.376623
| 0.337662
| 0.270531
| 0.304348
| 0.405797
| 0.318841
| 0.253623
| 0.173913
| 0
| 0
| 0
| 0
| 0
| 0.137566
| 567
| 22
| 65
| 25.772727
| 0.846626
| 0.07231
| 0
| 0
| 0
| 0
| 0.156673
| 0.046422
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4375
| 0
| 0.4375
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
3b0a8b0e557624015c306a45d3c6228ba92042cd
| 5,756
|
py
|
Python
|
union/tests/common.py
|
fsi-sandbox/fsi-sdk-python
|
6387cc5ac0fbd0a1eff5ff07b52df574c3857f28
|
[
"MIT"
] | 1
|
2020-03-09T23:15:27.000Z
|
2020-03-09T23:15:27.000Z
|
union/tests/common.py
|
fsi-sandbox/fsi-sdk-python
|
6387cc5ac0fbd0a1eff5ff07b52df574c3857f28
|
[
"MIT"
] | 2
|
2020-03-09T12:18:45.000Z
|
2021-06-02T00:59:26.000Z
|
union/tests/common.py
|
fsi-sandbox/fsi-sdk-python
|
6387cc5ac0fbd0a1eff5ff07b52df574c3857f28
|
[
"MIT"
] | 3
|
2020-03-07T09:42:59.000Z
|
2020-03-26T21:58:46.000Z
|
from faker import Faker
header = {
"base_url": "",
"Sandbox-Key": str(Faker().text()),
"Content-Type": "application/json"
}
body = {
"AccessTokenGenerator": {
"client_secret": str(Faker().text()),
"client_id": str(Faker().text()),
"grant_type": str(Faker().text()),
"username": str(Faker().text()),
"password": str(Faker().text())
},
"AccountEnquiry": {
"accountNumber": str(Faker().credit_card_number()),
"accountType": str(Faker().text())
},
"CustomerEnquiry": {
"accountNumber": str(Faker().credit_card_number()),
"accountType": str(Faker().text())
},
"CustomerAndAccountEnquiry": {
"accountNumber": str(Faker().credit_card_number()),
"accountType": str(Faker().text())
},
"ChangeUserCredentials": {
"username": str(Faker().name()),
"oldPassword": str(Faker().text()),
"password": str(Faker().text()),
"moduleId": "UNION_ONE",
"clientSecret": str(Faker().text())
}
}
responses = {
"AccessTokenGenerator": {
"message": "OK",
"data": {
"access_token": str(Faker().text()),
"token_type": "bearer",
"refresh_token": str(Faker().text()),
"expires_in": Faker().random_int(),
"scope": "read"
}
},
"AccountEnquiry": {
"message": "OK",
"data": {
"code": "00",
"message": "Account Enquiry Successful",
"accountNumber": str(Faker().random_int()),
"accountName": str(Faker().name()),
"accountBranchCode": Faker().random_int(),
"customerNumber": str(Faker().credit_card_number()),
"accountClass": str(Faker().random_int()),
"accountCurrency": "NGN",
"accountType": "Current",
"availableBalance": str(Faker().random_int()),
"customerAddress": str(Faker().address()),
"customerEmail": str(Faker().email()),
"customerPhoneNumber": str(Faker().phone_number())
}
},
"CustomerEnquiry": {
"message": "OK",
"data": {
"code": "00",
"message": "Customer Enquiry Successful",
"country": str(Faker().country()),
"countryOfBirth": str(Faker().country()),
"dob": str(Faker().date()),
"nationality": "NG",
"lastName": str(Faker().name()),
"firstName": str(Faker().name()),
"otherNames": str(Faker().name()),
"customerType": "I",
"email": str(Faker().email()),
"phoneNumber": str(Faker().phone_number()),
"idType": "OTHERS",
"idNumber": str(Faker().random_int()),
"countryOfIssue": str(Faker().country()),
"effectiveDate": str(Faker().date()),
"expiryDate": str(Faker().date()),
"addressLine1": str(Faker().address()),
"addressLine2": str(Faker().address()),
"city": str(Faker().city()),
"state": str(Faker().state()),
"postalCode": str(Faker().random_int()),
"bvn": str(Faker().random_int())
}
},
"CustomerAndAccountEnquiry": {
"message": "OK",
"data": {
"code": "00",
"message": "Enquiry successful",
"account": {
"code": "00",
"message": "Account Enquiry Successful",
"accountNumber": str(Faker().random_int()),
"accountName": str(Faker().name()),
"accountBranchCode": Faker().random_int(),
"customerNumber": str(Faker().credit_card_number()),
"accountClass": str(Faker().random_int()),
"accountCurrency": "NGN",
"accountType": "Current",
"availableBalance": str(Faker().random_int()),
"customerAddress": str(Faker().address()),
"customerEmail": str(Faker().email()),
"customerPhoneNumber": str(Faker().phone_number())
},
"customer": {
"code": "00",
"message": "Customer Enquiry Successful",
"country": str(Faker().country()),
"countryOfBirth": str(Faker().country()),
"dob": str(Faker().date()),
"nationality": "NG",
"lastName": str(Faker().name()),
"firstName": str(Faker().name()),
"otherNames": str(Faker().name()),
"customerType": "I",
"email": str(Faker().email()),
"phoneNumber": str(Faker().phone_number()),
"idType": "OTHERS",
"idNumber": str(Faker().random_int()),
"countryOfIssue": str(Faker().country()),
"effectiveDate": str(Faker().date()),
"expiryDate": str(Faker().date()),
"addressLine1": str(Faker().address()),
"addressLine2": str(Faker().address()),
"city": str(Faker().city()),
"state": str(Faker().state()),
"postalCode": str(Faker().random_int()),
"bvn": str(Faker().random_int())
}
}
},
"ChangeUserCredentials": {
"message": "OK",
"data": {
"code": "00",
"message": "Password changes successfully",
"reference": str(Faker().text())
}
}
}
params = {
"access_token": str(Faker().text())
}
class R:
def __init__(self, text):
self.status_code = 200
self.text = text
def json(self):
return self.text
| 34.884848
| 68
| 0.480368
| 457
| 5,756
| 5.954048
| 0.234136
| 0.211687
| 0.070562
| 0.074972
| 0.752664
| 0.735759
| 0.707093
| 0.683572
| 0.683572
| 0.683572
| 0
| 0.004891
| 0.325052
| 5,756
| 164
| 69
| 35.097561
| 0.695496
| 0
| 0
| 0.641026
| 0
| 0
| 0.265636
| 0.015983
| 0
| 0
| 0
| 0
| 0
| 1
| 0.012821
| false
| 0.025641
| 0.00641
| 0.00641
| 0.032051
| 0
| 0
| 0
| 0
| null | 1
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3b1b90baed5950cd51507ddd57be8fa0d5b5dc35
| 269
|
py
|
Python
|
cl_gym/utils/metrics/__init__.py
|
imirzadeh/CL-Gym
|
302bf7f0d9a96df61c32dec1dd4cacd19746179d
|
[
"MIT"
] | 26
|
2021-06-23T17:16:10.000Z
|
2022-03-14T05:04:14.000Z
|
cl_gym/utils/metrics/__init__.py
|
imirzadeh/CL-Gym
|
302bf7f0d9a96df61c32dec1dd4cacd19746179d
|
[
"MIT"
] | null | null | null |
cl_gym/utils/metrics/__init__.py
|
imirzadeh/CL-Gym
|
302bf7f0d9a96df61c32dec1dd4cacd19746179d
|
[
"MIT"
] | 2
|
2021-07-09T01:30:12.000Z
|
2022-01-02T04:15:46.000Z
|
from cl_gym.utils.metrics.base import ContinualMetric
from cl_gym.utils.metrics.accuracy import PerformanceMetric
from cl_gym.utils.metrics.forgetting import ForgettingMetric
__all__ = ['ContinualMetric',
'PerformanceMetric',
'ForgettingMetric']
| 33.625
| 60
| 0.776952
| 28
| 269
| 7.214286
| 0.464286
| 0.089109
| 0.133663
| 0.207921
| 0.311881
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148699
| 269
| 7
| 61
| 38.428571
| 0.882096
| 0
| 0
| 0
| 0
| 0
| 0.178439
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
3b7d5e5ac40899620ab53db36275335d8d47e69b
| 117
|
py
|
Python
|
func.py
|
TheSodacan/linebotTeacher
|
208798bcfd6470a0fd47b24dfe3b4007e9fad98f
|
[
"Apache-2.0"
] | 2
|
2021-06-08T01:47:19.000Z
|
2021-06-14T16:52:01.000Z
|
func.py
|
TheSodacan/linebotTeacher
|
208798bcfd6470a0fd47b24dfe3b4007e9fad98f
|
[
"Apache-2.0"
] | null | null | null |
func.py
|
TheSodacan/linebotTeacher
|
208798bcfd6470a0fd47b24dfe3b4007e9fad98f
|
[
"Apache-2.0"
] | 1
|
2021-06-18T13:11:00.000Z
|
2021-06-18T13:11:00.000Z
|
def change_var(a):
global x
x=a
return x
def change_var2(b):
x=b
return x
change_var(3)
print(x)
| 11.7
| 19
| 0.606838
| 23
| 117
| 2.956522
| 0.478261
| 0.264706
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.024096
| 0.290598
| 117
| 9
| 20
| 13
| 0.795181
| 0
| 0
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0
| 0
| 0.444444
| 0.111111
| 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
| 0
|
0
| 4
|
3b96328fbd5f566e17be122dc482e724fdbf4481
| 1,202
|
py
|
Python
|
compiler/semantic/analyzer.py
|
danielbibit/COMP1-UFG
|
8c2ffdb4049bedc8e91a6bfe5da65fe5a105db3e
|
[
"MIT"
] | null | null | null |
compiler/semantic/analyzer.py
|
danielbibit/COMP1-UFG
|
8c2ffdb4049bedc8e91a6bfe5da65fe5a105db3e
|
[
"MIT"
] | null | null | null |
compiler/semantic/analyzer.py
|
danielbibit/COMP1-UFG
|
8c2ffdb4049bedc8e91a6bfe5da65fe5a105db3e
|
[
"MIT"
] | null | null | null |
import logging as log
class Analyzer():
def semantic_analyzer(state, rule):
if state == '5':
pass
elif state == '6':
pass
elif state == '7':
pass
elif state == '8':
pass
elif state == '9':
pass
elif state == '10':
pass
elif state == '11':
pass
elif state == '13':
pass
elif state == '14':
pass
elif state == '15':
pass
elif state == '16':
pass
elif state == '17':
pass
elif state == '19':
pass
elif state == '20':
pass
elif state == '21':
pass
elif state == '22':
pass
elif state == '23':
pass
elif state == '25':
pass
elif state == '26':
pass
elif state == '27':
pass
elif state == '33':
pass
elif state == '34':
pass
elif state == '35':
pass
elif state == '36':
pass
elif state == '37':
pass
| 20.724138
| 39
| 0.356073
| 111
| 1,202
| 3.846847
| 0.342342
| 0.449649
| 0.730679
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.080357
| 0.53411
| 1,202
| 57
| 40
| 21.087719
| 0.682143
| 0
| 0
| 0.471698
| 0
| 0
| 0.037531
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.018868
| false
| 0.471698
| 0.018868
| 0
| 0.056604
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
3b9dee031adfd8d38aeb50fc199dcd823953feef
| 262
|
py
|
Python
|
evaluation.py
|
valorcurse/neat
|
c277a25787e7c4d7027ab16256ca9a09505c2fa2
|
[
"MIT"
] | null | null | null |
evaluation.py
|
valorcurse/neat
|
c277a25787e7c4d7027ab16256ca9a09505c2fa2
|
[
"MIT"
] | null | null | null |
evaluation.py
|
valorcurse/neat
|
c277a25787e7c4d7027ab16256ca9a09505c2fa2
|
[
"MIT"
] | null | null | null |
from typing import List, Tuple
import numpy as np
from neat.phenotypes import Phenotype
class Evaluation:
def __init__(self):
self.num_of_envs = 0
def evaluate(self, phenotypes: List[Phenotype]) -> Tuple[np.ndarray, np.ndarray]:
pass
| 20.153846
| 85
| 0.70229
| 36
| 262
| 4.944444
| 0.638889
| 0.101124
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004854
| 0.21374
| 262
| 13
| 86
| 20.153846
| 0.859223
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.125
| 0.375
| 0
| 0.75
| 0
| 0
| 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
| 4
|
8e5d4d7bf75b91dd5ec9617bcc16963b4aed337a
| 2,474
|
py
|
Python
|
sdks/python/bjr4py/models/__init__.py
|
barryw/bjr
|
de56f22198b34a9d303ee43ac01134b5cf1ce863
|
[
"BSD-3-Clause"
] | 2
|
2020-06-04T03:04:15.000Z
|
2020-06-13T12:53:58.000Z
|
sdks/python/bjr4py/models/__init__.py
|
barryw/bjr
|
de56f22198b34a9d303ee43ac01134b5cf1ce863
|
[
"BSD-3-Clause"
] | 6
|
2020-05-24T12:56:25.000Z
|
2022-02-26T07:13:17.000Z
|
sdks/python/bjr4py/models/__init__.py
|
barryw/bjr
|
de56f22198b34a9d303ee43ac01134b5cf1ce863
|
[
"BSD-3-Clause"
] | null | null | null |
# flake8: noqa
# import all models into this package
# if you have many models here with many references from one model to another this may
# raise a RecursionError
# to avoid this, import only the models that you directly need like:
# from from bjr4py.model.pet import Pet
# or import this package, but before doing it, use:
# import sys
# sys.setrecursionlimit(n)
from bjr4py.model.auth_in import AuthIn
from bjr4py.model.auth_out import AuthOut
from bjr4py.model.busy_thread_count_message import BusyThreadCountMessage
from bjr4py.model.busy_thread_count_message_object import BusyThreadCountMessageObject
from bjr4py.model.busy_thread_count_message_object_hosts import BusyThreadCountMessageObjectHosts
from bjr4py.model.date_time_array import DateTimeArray
from bjr4py.model.folder_array import FolderArray
from bjr4py.model.folder_array_message import FolderArrayMessage
from bjr4py.model.generic_message import GenericMessage
from bjr4py.model.job_array import JobArray
from bjr4py.model.job_array_message import JobArrayMessage
from bjr4py.model.job_in import JobIn
from bjr4py.model.job_run_array import JobRunArray
from bjr4py.model.job_run_array_message import JobRunArrayMessage
from bjr4py.model.job_stat import JobStat
from bjr4py.model.job_stat_array import JobStatArray
from bjr4py.model.job_stat_message import JobStatMessage
from bjr4py.model.occurrence_message import OccurrenceMessage
from bjr4py.model.server_version import ServerVersion
from bjr4py.model.single_folder import SingleFolder
from bjr4py.model.single_folder_message import SingleFolderMessage
from bjr4py.model.single_job import SingleJob
from bjr4py.model.single_job_message import SingleJobMessage
from bjr4py.model.single_job_run import SingleJobRun
from bjr4py.model.single_job_run_message import SingleJobRunMessage
from bjr4py.model.single_user import SingleUser
from bjr4py.model.single_user_message import SingleUserMessage
from bjr4py.model.string_array import StringArray
from bjr4py.model.tag import Tag
from bjr4py.model.tag_array import TagArray
from bjr4py.model.tag_message import TagMessage
from bjr4py.model.timezone_message import TimezoneMessage
from bjr4py.model.todays_stats import TodaysStats
from bjr4py.model.todays_stats_message import TodaysStatsMessage
from bjr4py.model.user_array import UserArray
from bjr4py.model.user_array_message import UserArrayMessage
from bjr4py.model.user_new_in import UserNewIn
from bjr4py.model.user_update_in import UserUpdateIn
| 49.48
| 97
| 0.872676
| 352
| 2,474
| 5.951705
| 0.306818
| 0.186158
| 0.279236
| 0.068735
| 0.307876
| 0.109308
| 0.058711
| 0.04105
| 0
| 0
| 0
| 0.017738
| 0.088521
| 2,474
| 49
| 98
| 50.489796
| 0.911308
| 0.140259
| 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
| 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
| 4
|
8e5fe06814446cba27b6df329eb5d7f2bd17539b
| 1,733
|
py
|
Python
|
app/api/api_v1/validators.py
|
dghy/WRTC-Hub
|
430a30fa7ecb200028957dc1a316837c631ef996
|
[
"MIT"
] | null | null | null |
app/api/api_v1/validators.py
|
dghy/WRTC-Hub
|
430a30fa7ecb200028957dc1a316837c631ef996
|
[
"MIT"
] | null | null | null |
app/api/api_v1/validators.py
|
dghy/WRTC-Hub
|
430a30fa7ecb200028957dc1a316837c631ef996
|
[
"MIT"
] | null | null | null |
"""
Serializers used for checking Web Socket bodies.
"""
from typing import Union
from uuid import UUID
from pydantic import BaseModel, Field
from app.api.api_v1.enums import RTCActionEnum, RTCSubActionEnum, RTCTypeEnum
class BaseSerializer(BaseModel):
pass
class ValidatedSocketPayload(BaseSerializer):
action: RTCActionEnum
type: RTCTypeEnum
sub_type: Union[RTCSubActionEnum, None] = Field(None)
data: Union[str, dict]
uuid_key: Union[UUID, None] = Field(None)
# class RTCSessionDescriptionSerializable(RTCSessionDescription):
# def dict(self) -> dict:
# return dict(type=self.type, sdp=self.sdp)
#
# def json(self) -> str:
# return ujson.dumps(self.dict())
#
#
# @dataclass
# class RTCWebSocketSerializer(BaseSerializer):
#
# raw_data: Union[RTCOfferSchemaOut, dict]
# session_description: Union[RTCSessionDescriptionSerializable, None] = None
#
# def __post_init__(self):
# if type(self.raw_data) is RTCOfferSchemaOut:
# self.raw_data: dict = ujson.loads(self.raw_data.data.json())
#
# def is_valid(self) -> bool:
# if "sdp" not in self.raw_data:
# raise ValidationError
#
# if "type" not in self.raw_data:
# raise ValidationError
#
# self.session_description = RTCSessionDescriptionSerializable(
# sdp=self.raw_data["sdp"], type=self.raw_data["type"]
# )
# return True
#
# def validated_description_dict(self) -> dict:
# if self.session_description:
# return dict(sdp=self.session_description.sdp, type=self.session_description.type)
# raise ValidationError("You must validate the data before accessing validated description.")
| 29.87931
| 101
| 0.684939
| 192
| 1,733
| 6.057292
| 0.354167
| 0.048151
| 0.066208
| 0.025795
| 0.061909
| 0.061909
| 0.061909
| 0
| 0
| 0
| 0
| 0.000731
| 0.210617
| 1,733
| 57
| 102
| 30.403509
| 0.849415
| 0.703405
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.083333
| 0.333333
| 0
| 0.916667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
8e68334e788c448ae7f5b6fc5c74027abd6ac604
| 396
|
py
|
Python
|
security/views.py
|
danielsinaga1/djangonewsfix
|
04b84240daabb840c1e715fbade8ae15b3b0f22c
|
[
"BSD-3-Clause"
] | null | null | null |
security/views.py
|
danielsinaga1/djangonewsfix
|
04b84240daabb840c1e715fbade8ae15b3b0f22c
|
[
"BSD-3-Clause"
] | null | null | null |
security/views.py
|
danielsinaga1/djangonewsfix
|
04b84240daabb840c1e715fbade8ae15b3b0f22c
|
[
"BSD-3-Clause"
] | null | null | null |
from django.core.urlresolvers import reverse_lazy
from django.contrib.auth.decorators import login_required
from allauth.account.views import PasswordChangeView
class LoginAfterPasswordChangeView(PasswordChangeView):
@property
def success_url(self):
return reverse_lazy('user.profile')
login_after_password_change = login_required(
LoginAfterPasswordChangeView.as_view())
| 28.285714
| 57
| 0.818182
| 43
| 396
| 7.325581
| 0.72093
| 0.063492
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.118687
| 396
| 13
| 58
| 30.461538
| 0.902579
| 0
| 0
| 0
| 0
| 0
| 0.030303
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0.444444
| 0.333333
| 0.111111
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
|
0
| 4
|
8e8424fa902b390c04922cc2db89599f0956bf0b
| 105
|
py
|
Python
|
basic/listlen.py
|
Nagendra1997/GooglePythonClass
|
d03fce6199c8df813719a2ed3707c3458c996cc4
|
[
"Apache-2.0"
] | null | null | null |
basic/listlen.py
|
Nagendra1997/GooglePythonClass
|
d03fce6199c8df813719a2ed3707c3458c996cc4
|
[
"Apache-2.0"
] | null | null | null |
basic/listlen.py
|
Nagendra1997/GooglePythonClass
|
d03fce6199c8df813719a2ed3707c3458c996cc4
|
[
"Apache-2.0"
] | null | null | null |
mylist=[1,2,3,4,5]
for i in range(len(mylist)):
print(i,len(mylist),range(len(mylist)))
mylist.pop()
| 21
| 41
| 0.657143
| 21
| 105
| 3.285714
| 0.619048
| 0.391304
| 0.405797
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.053191
| 0.104762
| 105
| 4
| 42
| 26.25
| 0.680851
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8e8868a4d151f57d654eb55f54e5e8538897f860
| 553
|
py
|
Python
|
funcmod1.py
|
mkseth4774/ine-guide-to-network-programmability-python-course-files
|
35c49dfcf8e8f1b69435987a00fb9a236b803d9f
|
[
"MIT"
] | null | null | null |
funcmod1.py
|
mkseth4774/ine-guide-to-network-programmability-python-course-files
|
35c49dfcf8e8f1b69435987a00fb9a236b803d9f
|
[
"MIT"
] | null | null | null |
funcmod1.py
|
mkseth4774/ine-guide-to-network-programmability-python-course-files
|
35c49dfcf8e8f1b69435987a00fb9a236b803d9f
|
[
"MIT"
] | null | null | null |
'''
This is literally ONLY a few functions, but a great example
of a file that I might want to fill up with function definitons
and import to use at some point. I don't want to run it as a
script, I am just going to keep some functions that do things
I need...thee is NO main() either and no need to check to see
if __name__ == '__main__'
'''
def howdy():
'''This is my function that greets the user!'''
print('Howdy!')
def later():
'''This is my function that tells the user I am outta here!'''
print('Later!')
##
## End of file...
| 27.65
| 66
| 0.679928
| 100
| 553
| 3.68
| 0.61
| 0.048913
| 0.043478
| 0.086957
| 0.108696
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.218807
| 553
| 19
| 67
| 29.105263
| 0.851852
| 0.813743
| 0
| 0
| 0
| 0
| 0.146341
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0
| 0.5
| 0.5
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
8e9df68d3ca37d9b0855128d62d57c5bbcccddf1
| 204
|
py
|
Python
|
wechat_django/tests/test_setting.py
|
UltraVacuum/wechat-django
|
0ea243067f5bc5e69cab6c4585d5e46d9399a583
|
[
"MIT"
] | 166
|
2019-02-23T10:19:33.000Z
|
2022-02-03T06:50:15.000Z
|
wechat_django/tests/test_setting.py
|
UltraVacuum/wechat-django
|
0ea243067f5bc5e69cab6c4585d5e46d9399a583
|
[
"MIT"
] | 19
|
2019-05-07T07:28:32.000Z
|
2021-06-02T06:56:03.000Z
|
wechat_django/tests/test_setting.py
|
UltraVacuum/wechat-django
|
0ea243067f5bc5e69cab6c4585d5e46d9399a583
|
[
"MIT"
] | 54
|
2019-02-27T07:55:57.000Z
|
2021-09-02T06:47:51.000Z
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from .base import WeChatTestCase
class SettingTestCase(WeChatTestCase):
def test_settings(self):
"""测试配置是否有效"""
pass
| 18.545455
| 39
| 0.686275
| 21
| 204
| 6.380952
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006173
| 0.205882
| 204
| 10
| 40
| 20.4
| 0.820988
| 0.151961
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0.2
| 0.4
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
8ec5af271a2481d8c8f2432ce55d6fb28f95f23b
| 111
|
py
|
Python
|
xsdata/formats/dataclass/parsers/config.py
|
nimish/xsdata
|
7afe2781b66982428cc1731f53c065086acd35c1
|
[
"MIT"
] | null | null | null |
xsdata/formats/dataclass/parsers/config.py
|
nimish/xsdata
|
7afe2781b66982428cc1731f53c065086acd35c1
|
[
"MIT"
] | null | null | null |
xsdata/formats/dataclass/parsers/config.py
|
nimish/xsdata
|
7afe2781b66982428cc1731f53c065086acd35c1
|
[
"MIT"
] | null | null | null |
from dataclasses import dataclass
@dataclass
class ParserConfig:
fail_on_unknown_properties: bool = True
| 15.857143
| 43
| 0.810811
| 13
| 111
| 6.692308
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153153
| 111
| 6
| 44
| 18.5
| 0.925532
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
d92216c0ecc009dea3bbae79861c0d85d6124b96
| 104
|
py
|
Python
|
app_covid19data/apps.py
|
falken20/covid19web
|
3826e5cc51dc24d373a1f614ccdb7c30993312ce
|
[
"MIT"
] | null | null | null |
app_covid19data/apps.py
|
falken20/covid19web
|
3826e5cc51dc24d373a1f614ccdb7c30993312ce
|
[
"MIT"
] | null | null | null |
app_covid19data/apps.py
|
falken20/covid19web
|
3826e5cc51dc24d373a1f614ccdb7c30993312ce
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class AppCovid19DataConfig(AppConfig):
name = 'app_covid19data'
| 17.333333
| 38
| 0.788462
| 11
| 104
| 7.363636
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.044944
| 0.144231
| 104
| 5
| 39
| 20.8
| 0.865169
| 0
| 0
| 0
| 0
| 0
| 0.144231
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
d925af04710325238895e8c9252900d7a1aa3f80
| 194
|
py
|
Python
|
old/wdbc/structures/wdb/item.py
|
jleclanche/pywow
|
d0bebff446510d1b241c775807f5164d084e53f9
|
[
"CC0-1.0"
] | 6
|
2015-05-17T18:12:59.000Z
|
2018-11-02T12:55:39.000Z
|
old/wdbc/structures/wdb/item.py
|
jleclanche/pywow
|
d0bebff446510d1b241c775807f5164d084e53f9
|
[
"CC0-1.0"
] | null | null | null |
old/wdbc/structures/wdb/item.py
|
jleclanche/pywow
|
d0bebff446510d1b241c775807f5164d084e53f9
|
[
"CC0-1.0"
] | 1
|
2018-06-26T08:54:03.000Z
|
2018-06-26T08:54:03.000Z
|
from ..structure import Structure, register
from ..fields import *
@register(magic="XTIW", name="itemtextcache.wdb")
class ItemTextCache(Structure):
id = IntegerField()
text = StringField()
| 21.555556
| 49
| 0.747423
| 21
| 194
| 6.904762
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.118557
| 194
| 8
| 50
| 24.25
| 0.847953
| 0
| 0
| 0
| 0
| 0
| 0.108247
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.833333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
d928dd0ae94be1803cbe6d60dbfa3de454592e57
| 250
|
py
|
Python
|
bio_embeddings/__init__.py
|
HannesStark/bio_embeddings
|
8c2e2b4a17903495fcced99fccb7f7287daacc49
|
[
"MIT"
] | null | null | null |
bio_embeddings/__init__.py
|
HannesStark/bio_embeddings
|
8c2e2b4a17903495fcced99fccb7f7287daacc49
|
[
"MIT"
] | 1
|
2021-01-31T20:06:52.000Z
|
2021-01-31T20:06:52.000Z
|
bio_embeddings/__init__.py
|
konstin/bio_embeddings
|
a7de49fd8e152f8e735283818e6f2e2de7b824c8
|
[
"MIT"
] | 1
|
2021-12-26T22:20:48.000Z
|
2021-12-26T22:20:48.000Z
|
"""
The functionality of bio_embeddings is split into 5 different modules
.. autosummary::
:toctree: modules
bio_embeddings.embed
bio_embeddings.extract
bio_embeddings.project
bio_embeddings.utilities
bio_embeddings.visualize
"""
| 19.230769
| 69
| 0.768
| 29
| 250
| 6.413793
| 0.62069
| 0.419355
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004785
| 0.164
| 250
| 12
| 70
| 20.833333
| 0.885167
| 0.964
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d93aff39cda85e20e13be6f6dcb72771f550eeec
| 141
|
py
|
Python
|
datacatalog/views/observations_table_aggregation_view/__init__.py
|
SD2E/python-datacatalog
|
51ab366639505fb6e8a14cd6b446de37080cd20d
|
[
"CNRI-Python"
] | null | null | null |
datacatalog/views/observations_table_aggregation_view/__init__.py
|
SD2E/python-datacatalog
|
51ab366639505fb6e8a14cd6b446de37080cd20d
|
[
"CNRI-Python"
] | 2
|
2019-07-25T15:39:04.000Z
|
2019-10-21T15:31:46.000Z
|
datacatalog/views/observations_table_aggregation_view/__init__.py
|
SD2E/python-datacatalog
|
51ab366639505fb6e8a14cd6b446de37080cd20d
|
[
"CNRI-Python"
] | 1
|
2019-10-15T14:33:44.000Z
|
2019-10-15T14:33:44.000Z
|
AUTHOR = 'ngaffney@tacc.utexas.edu'
DESCRIPTION = 'Aggregation of observations_dev table'
MONGODB_VIEW_NAME = 'observations_dev_aggregation'
| 35.25
| 53
| 0.829787
| 17
| 141
| 6.588235
| 0.823529
| 0.267857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085106
| 141
| 3
| 54
| 47
| 0.868217
| 0
| 0
| 0
| 0
| 0
| 0.631206
| 0.368794
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.