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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
194e3a6635255674f63ea891d7cd6ab9582ffe8d | 220 | py | Python | sthima/todo/views.py | bratomes/work-at-sthima | 28f3a60153001169f101cbe11f1755f3bfe103e3 | [
"MIT"
] | null | null | null | sthima/todo/views.py | bratomes/work-at-sthima | 28f3a60153001169f101cbe11f1755f3bfe103e3 | [
"MIT"
] | null | null | null | sthima/todo/views.py | bratomes/work-at-sthima | 28f3a60153001169f101cbe11f1755f3bfe103e3 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views.generic import View
class TodoView(View):
"""
Todo list app index view
"""
def get(self, request):
return render(request, 'todo/todo.html')
| 20 | 48 | 0.672727 | 29 | 220 | 5.103448 | 0.689655 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222727 | 220 | 10 | 49 | 22 | 0.865497 | 0.109091 | 0 | 0 | 0 | 0 | 0.077778 | 0 | 0 | 0 | 0 | 0.1 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 5 |
1956558a70a0d91ffb1dcf961883d8f57daffd67 | 68 | py | Python | HW6/HOhorodnyk/CW4.py | kolyasalubov/Lv-677.PythonCore | c9f9107c734a61e398154a90b8a3e249276c2704 | [
"MIT"
] | null | null | null | HW6/HOhorodnyk/CW4.py | kolyasalubov/Lv-677.PythonCore | c9f9107c734a61e398154a90b8a3e249276c2704 | [
"MIT"
] | null | null | null | HW6/HOhorodnyk/CW4.py | kolyasalubov/Lv-677.PythonCore | c9f9107c734a61e398154a90b8a3e249276c2704 | [
"MIT"
] | 6 | 2022-02-22T22:30:49.000Z | 2022-03-28T12:51:19.000Z | def number_to_string(num):
num_new = str(num)
return num_new | 22.666667 | 26 | 0.705882 | 12 | 68 | 3.666667 | 0.666667 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 68 | 3 | 27 | 22.666667 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 5 |
195cb7b69dd0a3748404da67280751e25ac8624b | 453 | py | Python | captchabreaker/views/__init__.py | arthurwozniak/CaptchaBreaker | 697daa0bc592bf3ac7b4711d821c4387b129b334 | [
"MIT"
] | 1 | 2020-08-08T22:27:30.000Z | 2020-08-08T22:27:30.000Z | captchabreaker/views/__init__.py | arthurwozniak/CaptchaBreaker | 697daa0bc592bf3ac7b4711d821c4387b129b334 | [
"MIT"
] | null | null | null | captchabreaker/views/__init__.py | arthurwozniak/CaptchaBreaker | 697daa0bc592bf3ac7b4711d821c4387b129b334 | [
"MIT"
] | null | null | null | from .classificators import blueprint as classificators_blueprint
from .datasets import blueprint as datasets_blueprint
from .overview import blueprint as overview_blueprint
from .general import blueprint as general_blueprint
from .demo import blueprint as demo_blueprint
def blueprints():
return [classificators_blueprint,
datasets_blueprint,
demo_blueprint,
overview_blueprint,
general_blueprint]
| 32.357143 | 65 | 0.766004 | 48 | 453 | 7.020833 | 0.25 | 0.222552 | 0.252226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203091 | 453 | 13 | 66 | 34.846154 | 0.933518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | true | 0 | 0.454545 | 0.090909 | 0.636364 | 1 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 5 |
195cf715d18c35f0313d180907ebe77d4eee4a38 | 117 | py | Python | matchlib/__init__.py | qweeze/matchlib | 1352dac0eff654fa6f219d53c76bc03213424d88 | [
"MIT"
] | 12 | 2019-02-17T20:36:37.000Z | 2021-08-25T07:10:25.000Z | matchlib/__init__.py | qweeze/matchlib | 1352dac0eff654fa6f219d53c76bc03213424d88 | [
"MIT"
] | 1 | 2020-12-20T17:47:17.000Z | 2020-12-20T20:47:36.000Z | matchlib/__init__.py | qweeze/matchlib | 1352dac0eff654fa6f219d53c76bc03213424d88 | [
"MIT"
] | null | null | null | from .main import matches, Partial, Regex, Any
__all__ = [
'matches',
'Partial',
'Regex',
'Any',
]
| 11.7 | 46 | 0.555556 | 12 | 117 | 5.083333 | 0.666667 | 0.459016 | 0.622951 | 0.721311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282051 | 117 | 9 | 47 | 13 | 0.72619 | 0 | 0 | 0 | 0 | 0 | 0.188034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
197b108260b19ec350316199533b6f2fbf3e5705 | 56 | py | Python | nu/v3/Membranes/__init__.py | bullgom/pysnn2 | dad5ae26b029afd5c5bf76fe141249b0f7b7a36c | [
"MIT"
] | null | null | null | nu/v3/Membranes/__init__.py | bullgom/pysnn2 | dad5ae26b029afd5c5bf76fe141249b0f7b7a36c | [
"MIT"
] | null | null | null | nu/v3/Membranes/__init__.py | bullgom/pysnn2 | dad5ae26b029afd5c5bf76fe141249b0f7b7a36c | [
"MIT"
] | null | null | null | from .Mv2 import Mv2
from .RateFiring import RateFiring
| 18.666667 | 34 | 0.821429 | 8 | 56 | 5.75 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.142857 | 56 | 2 | 35 | 28 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
197b5fe7e99d6cea630df0a98b12d897395f5c7f | 42 | py | Python | homeassistant/components/irish_rail_transport/__init__.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/irish_rail_transport/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/irish_rail_transport/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """The irish_rail_transport component."""
| 21 | 41 | 0.761905 | 5 | 42 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 42 | 1 | 42 | 42 | 0.769231 | 0.833333 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
1986f5c6655e3404f396fa0dc15cc7afa24ff88e | 322 | py | Python | src/a01/output/__init__.py | Azure/adx-automation-client | 53ba242d76cccdf923b75f46e980028870e2effc | [
"MIT"
] | 3 | 2018-02-28T06:22:39.000Z | 2020-05-20T12:39:00.000Z | src/a01/output/__init__.py | Azure/adx-automation-client | 53ba242d76cccdf923b75f46e980028870e2effc | [
"MIT"
] | 19 | 2018-02-26T21:13:43.000Z | 2018-05-02T16:33:35.000Z | src/a01/output/__init__.py | Azure/adx-automation-client | 53ba242d76cccdf923b75f46e980028870e2effc | [
"MIT"
] | 6 | 2018-02-26T18:10:31.000Z | 2020-12-30T10:21:31.000Z | # pylint: disable=unused-import
from .table_format import output_in_table
from .command_output import CommandOutput
from .task_output import TaskBriefOutput, TaskLogOutput, TasksSummary, TasksOutput
from .table_output import TableOutput
from .sequential_output import SequentialOutput
from .json_output import JsonOutput
| 35.777778 | 82 | 0.863354 | 39 | 322 | 6.923077 | 0.538462 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096273 | 322 | 8 | 83 | 40.25 | 0.927835 | 0.090062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
1992235162960546f2add0f4de74bce7d1de449b | 132 | py | Python | buzzbnb/base/models/__init__.py | AmidBidee/buzzbnb | 632b44096229a9e346f57e918bc8d6f2d777e143 | [
"CC0-1.0"
] | null | null | null | buzzbnb/base/models/__init__.py | AmidBidee/buzzbnb | 632b44096229a9e346f57e918bc8d6f2d777e143 | [
"CC0-1.0"
] | null | null | null | buzzbnb/base/models/__init__.py | AmidBidee/buzzbnb | 632b44096229a9e346f57e918bc8d6f2d777e143 | [
"CC0-1.0"
] | null | null | null |
from .album import Album
from .artist import Artist
from .category import Categorie
from .genre import Genre
from .song import Song | 22 | 31 | 0.810606 | 20 | 132 | 5.35 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 132 | 6 | 32 | 22 | 0.955357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
2715af23dcd4330c5e568f0b6ba4c5148d65f1f5 | 101 | py | Python | RNAPuzzles/RNAPuzzles/__init__.py | whinyadventure/RNA-Puzzles | bbd147e1a0748a77b5e3424a93ad57bb430b5a0e | [
"Apache-2.0"
] | null | null | null | RNAPuzzles/RNAPuzzles/__init__.py | whinyadventure/RNA-Puzzles | bbd147e1a0748a77b5e3424a93ad57bb430b5a0e | [
"Apache-2.0"
] | 26 | 2019-10-08T11:11:25.000Z | 2022-03-12T00:52:30.000Z | RNAPuzzles/RNAPuzzles/__init__.py | whinyadventure/RNA-Puzzles | bbd147e1a0748a77b5e3424a93ad57bb430b5a0e | [
"Apache-2.0"
] | 1 | 2020-05-11T18:51:04.000Z | 2020-05-11T18:51:04.000Z | from __future__ import absolute_import
from .celery import app as celery_app
__all_ = ('celery_app') | 25.25 | 38 | 0.811881 | 15 | 101 | 4.8 | 0.533333 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128713 | 101 | 4 | 39 | 25.25 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
273539d230a9959d7f616b12a0cee81e522bb071 | 152 | py | Python | Diena_16_misc/hello_vs.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 8 | 2020-08-31T16:10:54.000Z | 2021-11-24T06:37:37.000Z | Diena_16_misc/hello_vs.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 8 | 2021-06-08T22:30:29.000Z | 2022-03-12T00:48:55.000Z | Diena_16_misc/hello_vs.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 12 | 2020-09-28T17:06:52.000Z | 2022-02-17T12:12:46.000Z | print("Hello World!")
print("Hello there!")
print()
# how is the sound when I am typing can you guys hear me ?
# how is this keyboard when I am typing
| 21.714286 | 58 | 0.703947 | 28 | 152 | 3.821429 | 0.678571 | 0.186916 | 0.130841 | 0.242991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197368 | 152 | 6 | 59 | 25.333333 | 0.877049 | 0.618421 | 0 | 0 | 0 | 0 | 0.436364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
2743f460aa81bba986f522d43894387248c00382 | 151 | py | Python | Practice/AllDomains/Languages/Python/Strings/StringSplitandJoin.py | DHS009/HackerRankSolutions | cc74ecc436c4d3e8ca7d62986a7cbe482f3c24ba | [
"MIT"
] | 15 | 2017-11-10T06:20:22.000Z | 2022-03-20T15:33:19.000Z | Practice/AllDomains/Languages/Python/Strings/StringSplitandJoin.py | DHS009/HackerRankSolutions | cc74ecc436c4d3e8ca7d62986a7cbe482f3c24ba | [
"MIT"
] | 1 | 2018-12-12T15:12:33.000Z | 2018-12-12T15:12:33.000Z | Practice/AllDomains/Languages/Python/Strings/StringSplitandJoin.py | DHS009/HackerRankSolutions | cc74ecc436c4d3e8ca7d62986a7cbe482f3c24ba | [
"MIT"
] | 9 | 2017-07-28T12:54:19.000Z | 2021-08-13T12:00:08.000Z | #/* author:@shivkrthakur */
# Enter your code here. Read input from STDIN. Print output to STDOUT
print "-".join([a for a in raw_input().split(" ")])
| 37.75 | 69 | 0.675497 | 23 | 151 | 4.391304 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15894 | 151 | 3 | 70 | 50.333333 | 0.795276 | 0.629139 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
2757306f7321a2ebbd51e5cbce98851ddce4a4a4 | 269 | py | Python | bflib/items/containers/__init__.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | 3 | 2017-10-28T11:28:38.000Z | 2018-09-12T09:47:00.000Z | bflib/items/containers/__init__.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | bflib/items/containers/__init__.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | from bflib.items.containers.common import (
Backpack, BeltPouch, Chest, LargeSack, Saddlebags, SmallBackpack, SmallSack
)
from bflib.items.containers.liquid import GlassBottle, Vial, Waterskin
from bflib.items.containers.special import BoltCase, Quiver, ScrollCase
| 44.833333 | 79 | 0.817844 | 31 | 269 | 7.096774 | 0.677419 | 0.122727 | 0.190909 | 0.327273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104089 | 269 | 5 | 80 | 53.8 | 0.912863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
27675e805b716a9eb0572a45ed13ff622d9c6ffb | 143 | py | Python | topCoder/srms/400s/srm440/div2/incredible_machine_easy.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 25 | 2015-01-21T16:39:18.000Z | 2021-05-24T07:01:24.000Z | topCoder/srms/400s/srm440/div2/incredible_machine_easy.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 2 | 2020-09-30T19:39:36.000Z | 2020-10-01T17:15:16.000Z | topCoder/srms/400s/srm440/div2/incredible_machine_easy.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 15 | 2015-01-21T16:39:27.000Z | 2020-10-01T17:00:22.000Z | class IncredibleMachineEasy:
def gravitationalAcceleration(self, height, T):
return (sum((2 * h) ** 0.5 for h in height) / T) ** 2
| 35.75 | 61 | 0.643357 | 19 | 143 | 4.842105 | 0.789474 | 0.152174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 0.223776 | 143 | 3 | 62 | 47.666667 | 0.792793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
27b17ae265416f5d1fd69f6a8fb1712e22f10a01 | 81 | py | Python | src/__main__.py | gabfl/redis-priority-queue | e358b9ed6ff65b8c0072ff9e500cdd3fe5d18a7c | [
"MIT"
] | 28 | 2016-12-17T01:33:54.000Z | 2022-03-27T09:13:17.000Z | src/__main__.py | gabfl/redis-priority-queue | e358b9ed6ff65b8c0072ff9e500cdd3fe5d18a7c | [
"MIT"
] | 6 | 2018-05-25T13:21:24.000Z | 2022-01-25T00:11:21.000Z | src/__main__.py | gabfl/redis-priority-queue | e358b9ed6ff65b8c0072ff9e500cdd3fe5d18a7c | [
"MIT"
] | 7 | 2017-01-30T15:11:11.000Z | 2021-03-07T06:37:07.000Z | from . import queue_monitor
if __name__ == '__main__':
queue_monitor.main()
| 16.2 | 27 | 0.716049 | 10 | 81 | 4.8 | 0.7 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17284 | 81 | 4 | 28 | 20.25 | 0.716418 | 0 | 0 | 0 | 0 | 0 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
27d4603debede52b22a957f9ef853aca563cbc8c | 60 | py | Python | api/weather/yandex/__init__.py | artslob/artslob-bot | 41c8b7f7f37e60369a3fa219db665de7d3e52ece | [
"MIT"
] | null | null | null | api/weather/yandex/__init__.py | artslob/artslob-bot | 41c8b7f7f37e60369a3fa219db665de7d3e52ece | [
"MIT"
] | null | null | null | api/weather/yandex/__init__.py | artslob/artslob-bot | 41c8b7f7f37e60369a3fa219db665de7d3e52ece | [
"MIT"
] | null | null | null | from .yandex import YandexWeather
from .exceptions import *
| 20 | 33 | 0.816667 | 7 | 60 | 7 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 60 | 2 | 34 | 30 | 0.942308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
27f10c60087d9bdcf6c12dc5e735d086ee0327ee | 276 | py | Python | snipar/tests/__init__.py | AlexTISYoung/snipar | dfb5beb96ce82aebac156f0b230109609393172d | [
"MIT"
] | 1 | 2019-10-18T13:49:37.000Z | 2019-10-18T13:49:37.000Z | snipar/tests/__init__.py | AlexTISYoung/snipar | dfb5beb96ce82aebac156f0b230109609393172d | [
"MIT"
] | null | null | null | snipar/tests/__init__.py | AlexTISYoung/snipar | dfb5beb96ce82aebac156f0b230109609393172d | [
"MIT"
] | null | null | null | import os
from snipar.tests.test_sibreg import *
from snipar.tests.test_impute_from_sibs import *
from snipar.tests.test_impute import *
from snipar.tests.test_pedigree_creation import *
from snipar.tests.test_example import *
if __name__ == '__main__':
unittest.main()
| 25.090909 | 49 | 0.797101 | 40 | 276 | 5.1 | 0.4 | 0.245098 | 0.367647 | 0.465686 | 0.54902 | 0.303922 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119565 | 276 | 10 | 50 | 27.6 | 0.839506 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
27f2165918c18bef541c28ba976413391906c53f | 104 | py | Python | bitmovin_api_sdk/encoding/configurations/video/h262/customdata/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 11 | 2019-07-03T10:41:16.000Z | 2022-02-25T21:48:06.000Z | bitmovin_api_sdk/encoding/configurations/video/h262/customdata/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 8 | 2019-11-23T00:01:25.000Z | 2021-04-29T12:30:31.000Z | bitmovin_api_sdk/encoding/configurations/video/h262/customdata/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 13 | 2020-01-02T14:58:18.000Z | 2022-03-26T12:10:30.000Z | from bitmovin_api_sdk.encoding.configurations.video.h262.customdata.customdata_api import CustomdataApi
| 52 | 103 | 0.903846 | 13 | 104 | 7 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03 | 0.038462 | 104 | 1 | 104 | 104 | 0.88 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
fda19c165242f7d479738d913bd8e41dea3e3020 | 1,330 | py | Python | euler/8.py | DevStarSJ/algorithmExercise | 66b42c54cdd594ff3f229613fd83446f8c1f9153 | [
"MIT"
] | null | null | null | euler/8.py | DevStarSJ/algorithmExercise | 66b42c54cdd594ff3f229613fd83446f8c1f9153 | [
"MIT"
] | null | null | null | euler/8.py | DevStarSJ/algorithmExercise | 66b42c54cdd594ff3f229613fd83446f8c1f9153 | [
"MIT"
] | null | null | null | # 5자리 숫자의 곱 중에서 가장 큰 값
p = [
"73167176531330624919225119674426574742355349194934",
"96983520312774506326239578318016984801869478851843",
"85861560789112949495459501737958331952853208805511",
"12540698747158523863050715693290963295227443043557",
"66896648950445244523161731856403098711121722383113",
"62229893423380308135336276614282806444486645238749",
"30358907296290491560440772390713810515859307960866",
"70172427121883998797908792274921901699720888093776",
"65727333001053367881220235421809751254540594752243",
"52584907711670556013604839586446706324415722155397",
"53697817977846174064955149290862569321978468622482",
"83972241375657056057490261407972968652414535100474",
"82166370484403199890008895243450658541227588666881",
"16427171479924442928230863465674813919123162824586",
"17866458359124566529476545682848912883142607690042",
"24219022671055626321111109370544217506941658960408",
"07198403850962455444362981230987879927244284909188",
"84580156166097919133875499200524063689912560717606",
"05886116467109405077541002256983155200055935729725",
"71636269561882670428252483600823257530420752963450"
]
import functools
s = functools.reduce(lambda x,y: x+y, p)
max = 0
for i in range(0,len(s)-5):
v = functools.reduce(lambda x,y: x*y,[int(x) for x in s[i:i+5]])
if v > max:
max = v
print(max)
| 35 | 68 | 0.854135 | 73 | 1,330 | 15.561644 | 0.643836 | 0.007042 | 0.036972 | 0.038732 | 0.044014 | 0.044014 | 0.044014 | 0 | 0 | 0 | 0 | 0.813107 | 0.070677 | 1,330 | 37 | 69 | 35.945946 | 0.105987 | 0.015038 | 0 | 0 | 0 | 0 | 0.765697 | 0.765697 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 0.033333 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
fdc216b746c9f2fba117b3473811d969a4da1d53 | 50 | py | Python | script.py | Stefwangxl/Casimir-Programming | a821f9c075cf763c91bb53e985344c8ae3ca62b9 | [
"MIT"
] | null | null | null | script.py | Stefwangxl/Casimir-Programming | a821f9c075cf763c91bb53e985344c8ae3ca62b9 | [
"MIT"
] | null | null | null | script.py | Stefwangxl/Casimir-Programming | a821f9c075cf763c91bb53e985344c8ae3ca62b9 | [
"MIT"
] | null | null | null | import test.py
print(test.area(6), test.cir(6))
| 10 | 32 | 0.68 | 10 | 50 | 3.4 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.12 | 50 | 4 | 33 | 12.5 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 5 |
fdc2ac0aab530b029b3fcca54edf48b07bce9a84 | 5,962 | py | Python | puco/new.py | 2218084076/hotpoor_autoclick_xhs | a52446ba691ac19e43410a465dc63f940c0e444d | [
"Apache-2.0"
] | 1 | 2021-12-21T10:42:46.000Z | 2021-12-21T10:42:46.000Z | puco/new.py | 2218084076/hotpoor_autoclick_xhs | a52446ba691ac19e43410a465dc63f940c0e444d | [
"Apache-2.0"
] | null | null | null | puco/new.py | 2218084076/hotpoor_autoclick_xhs | a52446ba691ac19e43410a465dc63f940c0e444d | [
"Apache-2.0"
] | null | null | null | import pyautogui
import time
import json
# 921.6
'''
ids=[]
cards=document.getElementsByClassName("daren-card")
for(i=0;i<cards.length;i++){
ids.push(cards[i].dataset["itemUid"])
}
'''
id_list = [
'a54490f3273f9172f412112cdbb35493', '144799b97ccf3f494463a9f298fed65e', '39e2b9d0b28ae81614bf110e23ef36b7', 'e3a3fd3aaaf15cb7563b723acc3b670f', '424f2540dbff65051e4b9c772c10dcc5', '636ae73fa05f5f7dd08cbec44b52686b', '0ef8fb88fd6c33e9e933cc91ae6f84e9', '89f73558e4450eff76a70b2a2b00ed70', 'ed5bbd2711213a357a79b3c2d83b4f46', '7a1e6463464a70640d0b8ffd75ffc82e', '5450f53b909d970c298139229b7eded3', '34eafa722d3caaefc47fac7f6f9cfac3', '2ff1e3b7a27c50490918ac553e55ad5a', 'cfb9102337479109e278223cffa5e177', '086da61d658b2e5db2d9636942e73d6b', '6b5dc7221d4e369451c988623c55b151', 'c008e927c56fdef1413f6b2eff94b6e1', '7c111ea647dd10b2eba196e51881c73f', '5e1a48686cf559e941f349290e87c834', '214249b4492cd5f0d97646f370809f46',
'2a5f8569a17d69b7c5f258903633a995', 'b7b61babf17e065170218d46abdc7ac8', 'e72ef669fec75854b0307e19c2646881', 'fb683aff1ce2c9c6c05a0079e2ca01f6', '9c86c057572a505df34fa5c6cf505603', 'f23aa077d6208c2699c810c7b626dc17', 'c514f91ccbc4e62057d664f7e4c56cb1', '8cab5a735ec1d381a039f0d0dff2c52e', '9c1df559984e3239a57f8ced8b003af8', 'bd3dc8bcd46fabd6ddceecbca58a1e0b', '0cc4fdc949e75c70974ccd8d4948ab08', '0874a46b9b7612494cfe38d0ef77667a', 'e1ca5ccfd718baede435dac8d2ca961a', '0fbe15b925d15ebe84c75c623d60f8b7', 'ad73b0eb0a13ecf53de9c636868fd5b8', '7d2e43a076ffd475d0b8cdade873ed7d', 'fb029c9ee92947789a70e0998f707f6d', '72549be604a326d08d4152e8d29979d7', '91fc7ce0e6df8d2661c209e0d1d6c31e', '7c00752f9723449c86d06494f73bb482',
'fa4a9cd615186e9cbea467aa92a94c8d', '7880164a12bdedbab67078177e3b1611', '50062d74499a5a38bb5f3e91553ae9cc', '76e5e189cc5fa3605b642ba154fb5fe4', 'd7bd6d96cd0ba8ba2cdb7dfaa9e5adda', 'd987181d71650f8fd242c7fc253d3d28', '63aaba7a1500215e85d8fbb3c82c4a87', 'db968a55fe28ce15925f5ff0fd7db44c', '2531df8bd290dbc1667aa1d67b7a5ac4', 'b7da9a60581dea3d705659e094954fa5', '4ccecd47d3d340682ed3f7328ab0064b', 'd07d8d8bc6839850be18d0bb50d0b205', 'f44f112747c00071d81d1d6def8fb459', '8737e63f328902f56a49a5840785102e', '7eca039ebee629540f95433727e88a3e', 'ae0b30aa806f8a25ff2fa073e69d2822', '6c630104d3e2789accdae5246fb3d630', '07f33529a73d4064c0d870f1b0d8e459', 'b4233e066fb5e9d867669aa9034e9897', 'c2f28ca3104a91d895f86a6c764b0735',
'8a770bca0de3383a4edb2c64bad5c3ad', '0c9e0cbb32f57c5b0419062b0c7270b1', '1f3b19dcb2dcd522f0918706ba250622', 'd1858da5baeed8eb3d3ee328a9d237c2', '775423e1f307b34754d503d7f9382198', 'fc8d4c19b58862b01abc11d2e7e70bd9', 'c370c9fd511de34bc4f161600e105959', '793ba34bc8e136c6ce66d0d8023d783c', 'ae98443f549d94deebf88023ead25768', '3774778ef6836d7edd80af6194b3ee21', '104615fd19ead73e49689e5430ee0d05', '75b0e92855046ffa6bee5cb951c06d17', 'a861702db6d234de13c6b7bdb8fb00e6', '476966da4a9a32cf0ea1a6d74a2ca7ec', 'f2cffa153d125f3cf682c9fc1408d598', '66d7efeac0eb328ec3d5df76d8c778a1', '6d1fd508688ed7bce9867659fa2df77f', 'ce2cd8ac691de9242b01f411140250df', '0e2717df09e827b3e9df1dd6f57adc49', '491e69112264c41da305575746856d08',
'5133ca2b8a8957c70d8bebe7173748d6', '11b91ba14171d3acefbe2a1adef9e45e', 'e959c6c7fb6e9b281ae7ad121ee933f5', '2910b1f6ccefab98812cfe58f69cfbb2', '969c71955d195b4387fde6e4b94225a3', 'dedd268106e247d089a17e3d56197a82', '6330fffc058f0c8042a53ba13f3ade3c', 'b7b6e1cf25ac2875ad8aed85b6e1ce4f', '0abfe8f7d92768cf62860485a96539c7', '80c8c6fdcd22fa8a9bbb007ba162df0e', '89b28f4c1c64c02d891b7877ad153dd4', 'f81497600517d22da705a165fb0bb065', '11c6a3c6f08492ff344dd567721917b9', '17c1e0872a9f0da10758fddbaa68aacf', 'f7d64f2c8cb6d9cb699efd8d649ded5f', 'ae01e32f45cb353181048c455e85b2b9', 'd67d8c6c8df0c4e869098e47c925b8d8', 'cc0eb154f9a00f20b11174a5247ced6a', 'f978ffdc52473397e35104ad27dafef7', '173de73a1899319d7a8b40877e3c5369'
]
url_list=[]
news_urls = []
print('url_list',len(id_list))
news_ids = []
for id in id_list:
if id not in news_ids:
news_ids.append(id)
print('news_ids:',len(news_ids))
url = 'https://buyin.jinritemai.com/dashboard/servicehall/daren-profile?uid='
for i in news_ids:
user_url = url + i
url_list.append(user_url)
num = 1
for n in range(0,100):
if url_list[n] not in news_urls:
news_urls.append(url_list[n])
pyautogui.moveTo(x=617,y=74,duration=0.3)
pyautogui.click(x=617,y=74,button='left')
pyautogui.hotkey('ctrl','l')
pyautogui.typewrite(f'{url_list[n]}')
pyautogui.keyDown('enter')
time.sleep(8)
pyautogui.moveTo(x=1209,y=178,duration=0.3)
pyautogui.click(x=1209,y=178, button='left')
time.sleep(0.5)
pyautogui.moveTo(x=1209,y=178,duration=0.3)
pyautogui.click(x=1209,y=178,button='left')
time.sleep(0.5)
pyautogui.moveTo(x=1324,y=819,duration=0.3)
pyautogui.click(x=1324,y=819,button='left')
time.sleep(0.5)
pyautogui.typewrite('document.getElementsByClassName("contact-btn")[0].click()')
pyautogui.keyDown('enter')
time.sleep(2)
pyautogui.typewrite('document.getElementsByClassName("add-product-operate")[0].getElementsByTagName("button")[0].click()')
pyautogui.keyDown('enter')
time.sleep(0.5)
pyautogui.moveTo(x=350,y=535,duration=0.3)
pyautogui.click(x=350,y=535,button='left')
time.sleep(0.5)
pyautogui.moveTo(x=241,y=490,duration=0.3)
pyautogui.click(x=241,y=490,button='left')
time.sleep(0.5)
# pyautogui.typewrite('document.getElementsByClassName("ant-checkbox")[0].getElementsByTagName("input")[0].click()')
# pyautogui.keyDown('enter')
# time.sleep(2)
pyautogui.moveTo(x=781,y=848,duration=0.3)
pyautogui.click(x=781,y=848,button='left')
time.sleep(0.5)
pyautogui.moveTo(x=962,y=984,duration=0.3)
pyautogui.click(x=962,y=984,button='left')
time.sleep(3)
print(num)
print(url_list[n])
num+=1 | 64.804348 | 719 | 0.785978 | 445 | 5,962 | 10.483146 | 0.417978 | 0.021222 | 0.027438 | 0.032583 | 0.152197 | 0.145766 | 0.113612 | 0.102036 | 0.102036 | 0.066452 | 0 | 0.394288 | 0.095606 | 5,962 | 92 | 720 | 64.804348 | 0.470883 | 0.027004 | 0 | 0.225806 | 0 | 0 | 0.619611 | 0.592933 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.048387 | 0 | 0.048387 | 0.064516 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
fde3bc7a4222007ce319630de0b8b961597cd546 | 8,887 | py | Python | test/tracecontext/test_traceparent.py | w3c/tracecontext-spec | cd1c099bda3192cd227b513413fd0cd9909793fb | [
"Apache-2.0"
] | 39 | 2017-04-07T01:45:56.000Z | 2018-01-02T11:30:07.000Z | test/tracecontext/test_traceparent.py | TraceContext/tracecontext-spec | 84b583d86ecb7005a9eab8fed86ab7117b050b48 | [
"Apache-2.0"
] | 38 | 2017-04-07T01:45:51.000Z | 2018-01-02T16:41:10.000Z | test/tracecontext/test_traceparent.py | w3c/tracecontext-spec | cd1c099bda3192cd227b513413fd0cd9909793fb | [
"Apache-2.0"
] | 8 | 2017-03-22T07:54:04.000Z | 2017-12-06T19:03:56.000Z | import unittest
from tracecontext import BaseTraceparent, Traceparent
class BaseTraceparentTest(unittest.TestCase):
def test_ctor_default(self):
traceparent = BaseTraceparent()
self.assertEqual(traceparent.version, 0)
self.assertEqual(traceparent.trace_id, b'\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0')
self.assertEqual(traceparent.parent_id, b'\0\0\0\0\0\0\0\0')
self.assertEqual(traceparent.trace_flags, 0)
def test_ctor(self):
self.assertRaises(ValueError, lambda: BaseTraceparent(version = 0xff))
def test_ctor_with_variadic_arguments(self):
traceparent = BaseTraceparent(0, None, None, 0, 'foo', 'bar', 'baz')
def test_version_limit(self):
traceparent = BaseTraceparent(version = 0)
self.assertEqual(traceparent.version, 0)
traceparent = BaseTraceparent(version = 254)
self.assertEqual(traceparent.version, 254)
self.assertRaises(ValueError, lambda: BaseTraceparent(version = -1))
self.assertRaises(ValueError, lambda: BaseTraceparent(version = 255))
def test_trace_id_limit(self):
traceparent = BaseTraceparent(trace_id = b'\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0')
self.assertEqual(traceparent.trace_id, b'\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0')
self.assertRaises(ValueError, lambda: BaseTraceparent(trace_id = b'\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0'))
self.assertRaises(ValueError, lambda: BaseTraceparent(trace_id = b'\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0'))
def test_parent_id_limit(self):
traceparent = BaseTraceparent(parent_id = b'\0\0\0\0\0\0\0\0')
self.assertEqual(traceparent.parent_id, b'\0\0\0\0\0\0\0\0')
self.assertRaises(ValueError, lambda: BaseTraceparent(parent_id = b'\0\0\0\0\0\0\0'))
self.assertRaises(ValueError, lambda: BaseTraceparent(parent_id = b'\0\0\0\0\0\0\0\0\0'))
def test_trace_flags_limit(self):
traceparent = BaseTraceparent(trace_flags = 0)
self.assertEqual(traceparent.trace_flags, 0)
traceparent = BaseTraceparent(trace_flags = 0xff)
self.assertEqual(traceparent.trace_flags, 0xff)
self.assertRaises(ValueError, lambda: BaseTraceparent(trace_flags = -1))
self.assertRaises(ValueError, lambda: BaseTraceparent(trace_flags = 0xff + 1))
def test_from_string(self):
traceparent = BaseTraceparent.from_string('00-12345678901234567890123456789012-1234567890123456-00')
traceparent = BaseTraceparent.from_string('01-12345678901234567890123456789012-1234567890123456-00')
traceparent = BaseTraceparent.from_string('02-12345678901234567890123456789012-1234567890123456-00')
traceparent = BaseTraceparent.from_string('cc-12345678901234567890123456789012-1234567890123456-00')
self.assertRaises(ValueError, lambda: BaseTraceparent.from_string('ff-12345678901234567890123456789012-1234567890123456-00'))
traceparent = BaseTraceparent.from_string('00-00000000000000000000000000000000-1234567890123456-00')
traceparent = BaseTraceparent.from_string('00-12345678901234567890123456789012-1234567890123456-00')
traceparent = BaseTraceparent.from_string('00-ffffffffffffffffffffffffffffffff-1234567890123456-00')
traceparent = BaseTraceparent.from_string('00-12345678901234567890123456789012-0000000000000000-00')
traceparent = BaseTraceparent.from_string('00-12345678901234567890123456789012-1234567890123456-00')
traceparent = BaseTraceparent.from_string('00-12345678901234567890123456789012-ffffffffffffffff-00')
traceparent = BaseTraceparent.from_string('00-12345678901234567890123456789012-1234567890123456-00')
traceparent = BaseTraceparent.from_string('00-12345678901234567890123456789012-1234567890123456-01')
traceparent = BaseTraceparent.from_string('00-12345678901234567890123456789012-1234567890123456-02')
traceparent = BaseTraceparent.from_string('00-12345678901234567890123456789012-1234567890123456-03')
traceparent = BaseTraceparent.from_string('00-12345678901234567890123456789012-1234567890123456-ff')
self.assertRaises(ValueError, lambda: BaseTraceparent.from_string('0-12345678901234567890123456789012-1234567890123456-00'))
self.assertRaises(ValueError, lambda: BaseTraceparent.from_string('000-12345678901234567890123456789012-1234567890123456-00'))
self.assertRaises(ValueError, lambda: BaseTraceparent.from_string('00-1234567890123456789012345678901-1234567890123456-00'))
self.assertRaises(ValueError, lambda: BaseTraceparent.from_string('00-123456789012345678901234567890123-1234567890123456-00'))
self.assertRaises(ValueError, lambda: BaseTraceparent.from_string('00-12345678901234567890123456789012-123456789012345-00'))
self.assertRaises(ValueError, lambda: BaseTraceparent.from_string('00-12345678901234567890123456789012-12345678901234567-00'))
def test_repr(self):
string = '12-12345678901234567890123456789012-1234567890123456-ff'
traceparent = BaseTraceparent.from_string('12-12345678901234567890123456789012-1234567890123456-ff')
self.assertEqual(repr(traceparent), 'BaseTraceparent({})'.format(repr(string)))
def test_str(self):
string = '12-12345678901234567890123456789012-1234567890123456-ff'
traceparent = BaseTraceparent.from_string('12-12345678901234567890123456789012-1234567890123456-ff')
self.assertEqual(str(traceparent), string)
def test_set_trace_id(self):
traceparent = BaseTraceparent()
traceparent.set_trace_id(None)
traceparent.set_trace_id(b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff')
self.assertRaises(ValueError, lambda: traceparent.set_trace_id('fffffffffffffffffffffffffffffff'))
traceparent.set_trace_id('ffffffffffffffffffffffffffffffff')
self.assertRaises(ValueError, lambda: traceparent.set_trace_id('fffffffffffffffffffffffffffffffff'))
def test_set_parent_id(self):
traceparent = BaseTraceparent()
traceparent.set_parent_id(None)
traceparent.set_parent_id(b'\xff\xff\xff\xff\xff\xff\xff\xff')
self.assertRaises(ValueError, lambda: traceparent.set_parent_id('fffffffffffffff'))
traceparent.set_parent_id('ffffffffffffffff')
self.assertRaises(ValueError, lambda: traceparent.set_parent_id('fffffffffffffffff'))
class TraceparentTest(unittest.TestCase):
def test_ctor_default(self):
traceparent = Traceparent()
self.assertEqual(traceparent.version, 0)
self.assertNotEqual(traceparent.trace_id, b'\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0')
self.assertNotEqual(traceparent.parent_id, b'\0\0\0\0\0\0\0\0')
self.assertEqual(traceparent.trace_flags, 0)
def test_ctor(self):
self.assertRaises(ValueError, lambda: Traceparent(version = 1))
self.assertRaises(ValueError, lambda: Traceparent(version = 0xff))
self.assertRaises(ValueError, lambda: Traceparent(trace_id = b'\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0'))
self.assertRaises(ValueError, lambda: Traceparent(parent_id = b'\0\0\0\0\0\0\0\0'))
def test_from_string(self):
traceparent = Traceparent.from_string('00-12345678901234567890123456789012-1234567890123456-00')
traceparent = Traceparent.from_string('00-12345678901234567890123456789012-1234567890123456-01')
traceparent = Traceparent.from_string('00-12345678901234567890123456789012-1234567890123456-02')
traceparent = Traceparent.from_string('00-12345678901234567890123456789012-1234567890123456-03')
traceparent = Traceparent.from_string('00-12345678901234567890123456789012-1234567890123456-ff')
self.assertRaises(ValueError, lambda: Traceparent.from_string('01-12345678901234567890123456789012-1234567890123456-00'))
self.assertRaises(ValueError, lambda: Traceparent.from_string('02-12345678901234567890123456789012-1234567890123456-00'))
self.assertRaises(ValueError, lambda: Traceparent.from_string('cc-12345678901234567890123456789012-1234567890123456-00'))
self.assertRaises(ValueError, lambda: Traceparent.from_string('ff-12345678901234567890123456789012-1234567890123456-00'))
self.assertRaises(ValueError, lambda: Traceparent.from_string('00-00000000000000000000000000000000-1234567890123456-00'))
self.assertRaises(ValueError, lambda: Traceparent.from_string('00-12345678901234567890123456789012-0000000000000000-00'))
def test_repr(self):
string = '00-12345678901234567890123456789012-1234567890123456-ff'
traceparent = Traceparent.from_string('00-12345678901234567890123456789012-1234567890123456-ff')
self.assertEqual(repr(traceparent), 'Traceparent({})'.format(repr(string)))
def test_str(self):
string = '00-12345678901234567890123456789012-1234567890123456-ff'
traceparent = Traceparent.from_string('00-12345678901234567890123456789012-1234567890123456-ff')
self.assertEqual(str(traceparent), string)
def test_set_version(self):
traceparent = Traceparent()
traceparent.set_version(0)
self.assertRaises(ValueError, lambda: traceparent.set_version(1))
def test_set_trace_id(self):
traceparent = Traceparent()
self.assertRaises(ValueError, lambda: traceparent.set_trace_id(None))
def test_set_parent_id(self):
traceparent = Traceparent()
self.assertRaises(ValueError, lambda: traceparent.set_parent_id(None))
if __name__ == '__main__':
unittest.main()
| 56.246835 | 128 | 0.808259 | 1,023 | 8,887 | 6.888563 | 0.068426 | 0.043707 | 0.0596 | 0.07152 | 0.867887 | 0.834823 | 0.752803 | 0.608628 | 0.542926 | 0.535263 | 0 | 0.272716 | 0.06999 | 8,887 | 157 | 129 | 56.605096 | 0.579915 | 0 | 0 | 0.365079 | 0 | 0.063492 | 0.324294 | 0.300551 | 0 | 0 | 0.00225 | 0 | 0.404762 | 1 | 0.15873 | false | 0 | 0.015873 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 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 | 5 |
e3092e3bef1d0740bdc27645aea249d92a590150 | 177 | py | Python | adbus/__init__.py | jameshilliard/adbus | 3b16f02d6cc5ff27b50f1f60b429710ecac7233b | [
"MIT"
] | 31 | 2017-09-07T22:57:54.000Z | 2021-08-15T01:45:42.000Z | adbus/__init__.py | jameshilliard/adbus | 3b16f02d6cc5ff27b50f1f60b429710ecac7233b | [
"MIT"
] | 41 | 2017-08-23T17:44:02.000Z | 2021-04-21T21:22:24.000Z | adbus/__init__.py | ccxtechnologies/python-adbus | 091e3cf83d770996502a2b39cf53234e5b77cd75 | [
"MIT"
] | 10 | 2018-08-22T06:08:20.000Z | 2020-07-06T11:05:04.000Z | # == Copyright: 2017, CCX Technologies
from .__version__ import __version__
from adbus.service import Service
import adbus.server
import adbus.client
from . import exceptions
| 19.666667 | 38 | 0.80791 | 22 | 177 | 6.136364 | 0.545455 | 0.192593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026144 | 0.135593 | 177 | 8 | 39 | 22.125 | 0.856209 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
e30b0c9ced0696906bc5066ab2a83f3ff6e2ce0d | 172 | py | Python | bin/cubes/pentacubes-plus-5x5x10-steps.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | null | null | null | bin/cubes/pentacubes-plus-5x5x10-steps.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | null | null | null | bin/cubes/pentacubes-plus-5x5x10-steps.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | 1 | 2022-01-02T16:54:14.000Z | 2022-01-02T16:54:14.000Z | #!/usr/bin/env python
# $Id$
"""many solutions"""
import puzzler
from puzzler.puzzles.pentacubes import PentacubesPlus5x5x10Steps
puzzler.run(PentacubesPlus5x5x10Steps)
| 17.2 | 64 | 0.796512 | 18 | 172 | 7.611111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0.093023 | 172 | 9 | 65 | 19.111111 | 0.826923 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
e320bacaaeb7160c9cf90ec18b13d7afdd646df4 | 18,130 | py | Python | result/listed.py | Uqhs-1/uqhs | 1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40 | [
"MIT"
] | 3 | 2020-06-16T20:03:31.000Z | 2021-01-17T20:45:51.000Z | result/listed.py | Uqhs-1/uqhs | 1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40 | [
"MIT"
] | 8 | 2020-02-08T09:04:08.000Z | 2021-06-09T18:31:03.000Z | result/listed.py | Uqhs-1/uqhs | 1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 19 05:46:42 2021
@author: AdeolaOlalekan
"""
listed = [["2020/1866", "1-3-23", 20, 5, 5, 30, 41, 71, "A", "17th", "Abdkerim"], ["2020/1869", "1-3-23", 20, 5, 5, 30, 35, 65, "C", "26th", "Abdkerim"], ["2020/1868", "1-3-23", 10, 5, 5, 20, 55, 75, "A", "12th", "Abdkerim"], ["2020/1863", "1-3-23", 20, 5, 5, 30, 51, 81, "A", "7th", "Abdkerim"], ["2020/1870", "1-3-23", 18, 5, 5, 28, 29, 57, "C", "32nd", "Abdkerim"], ["2020/1872", "1-3-23", 20, 5, 5, 30, 68, 98, "A", "1st", "Abdkerim"], ["2020/1874", "1-3-23", 20, 5, 5, 30, 59, 89, "A", "3rd", "Abdkerim"], ["2020/1877", "1-3-23", 12, 5, 5, 22, 42, 64, "C", "28th", "Abdkerim"], ["2020/1881", "1-3-23", 20, 5, 5, 30, 38, 68, "C", "20th", "Abdkerim"], ["2020/1882", "1-3-23", 18, 5, 5, 28, 37, 65, "C", "26th", "Abdkerim"], ["2020/1858", "1-3-23", 20, 5, 5, 30, 49, 79, "A", "10th", "Abdkerim"], ["2020/1884", "1-3-23", 20, 5, 5, 30, 47, 77, "A", "11th", "Abdkerim"], ["2020/1885", "1-3-23", 20, 5, 5, 30, 54, 84, "A", "5th", "Abdkerim"], ["2020/1886", "1-3-23", 10, 5, 5, 20, 48, 68, "C", "20th", "Abdkerim"], ["2020/1859", "1-3-23", 16, 5, 5, 26, 65, 91, "A", "2nd", "Abdkerim"], ["2020/1860", "1-3-23", 16, 5, 5, 26, 45, 71, "A", "17th", "Abdkerim"], ["2020/1862", "1-3-23", 12, 5, 5, 22, 44, 66, "C", "23rd", "Abdkerim"], ["2020/1864", "1-3-23", 13, 5, 5, 23, 51, 74, "A", "14th", "Abdkerim"], ["2020/1871", "1-3-23", 7, 5, 5, 17, 50, 67, "C", "22nd", "Abdkerim"], ["2020/1873", "1-3-23", 18, 5, 5, 28, 31, 59, "C", "31st", "Abdkerim"], ["2020/1883", "1-3-23", 20, 5, 5, 30, 50, 80, "A", "8th", "Abdkerim"], ["2020/1861", "1-3-23", 12, 5, 5, 22, 60, 82, "A", "6th", "Abdkerim"], ["2020/1875", "1-3-23", 10, 5, 5, 20, 44, 64, "C", "28th", "Abdkerim"], ["2020/1876", "1-3-23", 16, 5, 5, 26, 48, 74, "A", "14th", "Abdkerim"], ["2020/1880", "1-3-23", 16, 5, 5, 26, 54, 80, "A", "8th", "Abdkerim"], ["2020/1887", "1-3-23", 18, 5, 5, 28, 47, 75, "A", "12th", "Abdkerim"], ["2020/1888", "1-3-23", 16, 5, 5, 26, 60, 86, "A", "4th", "Abdkerim"], ["2020/1889", "1-3-23", 16, 5, 5, 26, 46, 72, "A", "16th", "Abdkerim"], ["2020/1878", "1-3-23", 16, 5, 5, 26, 44, 70, "A", "19th", "Abdkerim"], ["2020/1879", "1-3-23", 14, 5, 5, 24, 37, 61, "C", "30th", "Abdkerim"], ["2020/1865", "1-3-23", 19, 5, 5, 29, 37, 66, "C", "23rd", "Abdkerim"], ["2020/1867", "1-3-23", 16, 5, 5, 26, 40, 66, "C", "23rd", "Abdkerim"], ["2020/1870", "1-4-29", 9, 5, 5, 19, 25, 44, "P", "11th", "Adebayo"], ["2020/1873", "1-4-29", 7, 5, 5, 17, 21, 38, "F", "18th", "Adebayo"], ["2020/1865", "1-4-29", 3, 5, 5, 13, 11, 24, "F", "32nd", "Adebayo"], ["2020/1869", "1-4-29", 1, 5, 5, 11, 18, 29, "F", "30th", "Adebayo"], ["2020/1860", "1-4-29", 9, 5, 5, 19, 17, 36, "F", "20th", "Adebayo"], ["2020/1867", "1-4-29", 10, 5, 5, 20, 32, 52, "C", "5th", "Adebayo"], ["2020/1859", "1-4-29", 9, 5, 5, 19, 28, 47, "P", "9th", "Adebayo"], ["2020/1875", "1-4-29", 3, 5, 5, 13, 21, 34, "F", "24th", "Adebayo"], ["2020/1876", "1-4-29", 10, 5, 5, 20, 29, 49, "P", "8th", "Adebayo"], ["2020/1889", "1-4-29", 8, 5, 5, 18, 18, 36, "F", "20th", "Adebayo"], ["2020/1879", "1-4-29", 4, 5, 5, 14, 30, 44, "P", "11th", "Adebayo"], ["2020/1887", "1-4-29", 5, 5, 5, 15, 18, 33, "F", "26th", "Adebayo"], ["2020/1868", "1-4-29", 4, 5, 5, 14, 20, 34, "F", "24th", "Adebayo"], ["2020/1872", "1-4-29", 13, 5, 5, 23, 39, 62, "C", "1st", "Adebayo"], ["2020/1871", "1-4-29", 4, 5, 5, 14, 17, 31, "F", "28th", "Adebayo"], ["2020/1878", "1-4-29", 11, 5, 5, 21, 36, 57, "C", "3rd", "Adebayo"], ["2020/1880", "1-4-29", 10, 5, 5, 20, 32, 52, "C", "5th", "Adebayo"], ["2020/1888", "1-4-29", 10, 5, 5, 20, 33, 53, "C", "4th", "Adebayo"], ["2020/1862", "1-4-29", 7, 5, 5, 17, 18, 35, "F", "22nd", "Adebayo"], ["2020/1864", "1-4-29", 8, 5, 5, 18, 25, 43, "P", "16th", "Adebayo"], ["2020/1858", "1-4-29", 10, 5, 5, 20, 25, 45, "P", "10th", "Adebayo"], ["2020/1863", "1-4-29", 1, 5, 5, 11, 20, 31, "F", "28th", "Adebayo"], ["2020/1886", "1-4-29", 9, 5, 5, 19, 16, 35, "F", "22nd", "Adebayo"], ["2020/1885", "1-4-29", 10, 5, 5, 20, 24, 44, "P", "11th", "Adebayo"], ["2020/1874", "1-4-29", 9, 5, 5, 19, 25, 44, "P", "11th", "Adebayo"], ["2020/1877", "1-4-29", 7, 5, 5, 17, 15, 32, "F", "27th", "Adebayo"], ["2020/1883", "1-4-29", 4, 5, 5, 14, 13, 27, "F", "31st", "Adebayo"], ["2020/1884", "1-4-29", 10, 5, 5, 20, 30, 50, "C", "7th", "Adebayo"], ["2020/1866", "1-4-29", 10, 5, 5, 20, 17, 37, "F", "19th", "Adebayo"], ["2020/1882", "1-4-29", 12, 5, 5, 22, 37, 59, "C", "2nd", "Adebayo"], ["2020/1861", "1-4-29", 8, 5, 5, 18, 26, 44, "P", "11th", "Adebayo"], ["2020/1881", "1-4-29", 9, 5, 5, 19, 21, 40, "P", "17th", "Adebayo"], ["2020/1866", "1-6-25", 16, 5, 5, 26, 44, 70, "A", "8th", "Adisa"], ["2020/1881", "1-6-25", 17, 5, 5, 27, 45, 72, "A", "5th", "Adisa"], ["2020/1886", "1-6-25", 3, 5, 4, 12, 35, 47, "P", "30th", "Adisa"], ["2020/1885", "1-6-25", 10, 5, 4, 19, 36, 55, "C", "25th", "Adisa"], ["2020/1884", "1-6-25", 13, 5, 5, 23, 48, 71, "A", "7th", "Adisa"], ["2020/1868", "1-6-25", 13, 5, 4, 22, 32, 54, "C", "26th", "Adisa"], ["2020/1875", "1-6-25", 8, 5, 5, 18, 42, 60, "C", "17th", "Adisa"], ["2020/1867", "1-6-25", 17, 5, 5, 27, 46, 73, "A", "3rd", "Adisa"], ["2020/1888", "1-6-25", 11, 5, 5, 21, 44, 65, "C", "13th", "Adisa"], ["2020/1873", "1-6-25", 13, 5, 5, 23, 50, 73, "A", "3rd", "Adisa"], ["2020/1883", "1-6-25", 16, 5, 4, 25, 34, 59, "C", "18th", "Adisa"], ["2020/1889", "1-6-25", 13, 5, 5, 23, 40, 63, "C", "15th", "Adisa"], ["2020/1858", "1-6-25", 4, 5, 5, 14, 36, 50, "C", "28th", "Adisa"], ["2020/1861", "1-6-25", 13, 5, 5, 23, 43, 66, "C", "11th", "Adisa"], ["2020/1887", "1-6-25", 6, 5, 5, 16, 41, 57, "C", "24th", "Adisa"], ["2020/1870", "1-6-25", 8, 5, 4, 17, 41, 58, "C", "22nd", "Adisa"], ["2020/1863", "1-6-25", 3, 4, 4, 11, 27, 38, "F", "32nd", "Adisa"], ["2020/1877", "1-6-25", 7, 5, 5, 17, 42, 59, "C", "18th", "Adisa"], ["2020/1865", "1-6-25", 3, 5, 4, 12, 29, 41, "P", "31st", "Adisa"], ["2020/1874", "1-6-25", 18, 5, 5, 28, 35, 63, "C", "15th", "Adisa"], ["2020/1872", "1-6-25", 12, 5, 5, 22, 62, 84, "A", "1st", "Adisa"], ["2020/1880", "1-6-25", 15, 5, 5, 25, 44, 69, "C", "10th", "Adisa"], ["2020/1879", "1-6-25", 9, 5, 5, 19, 46, 65, "C", "13th", "Adisa"], ["2020/1878", "1-6-25", 7, 5, 5, 17, 42, 59, "C", "18th", "Adisa"], ["2020/1876", "1-6-25", 16, 5, 5, 26, 55, 81, "A", "2nd", "Adisa"], ["2020/1860", "1-6-25", 14, 5, 5, 24, 35, 59, "C", "18th", "Adisa"], ["2020/1871", "1-6-25", 11, 5, 4, 20, 38, 58, "C", "22nd", "Adisa"], ["2020/1869", "1-6-25", 3, 5, 4, 12, 38, 50, "C", "28th", "Adisa"], ["2020/1864", "1-6-25", 11, 5, 5, 21, 51, 72, "A", "5th", "Adisa"], ["2020/1862", "1-6-25", 11, 5, 5, 21, 33, 54, "C", "26th", "Adisa"], ["2020/1859", "1-6-25", 12, 5, 5, 22, 48, 70, "A", "8th", "Adisa"], ["2020/1882", "1-6-25", 7, 5, 5, 17, 49, 66, "C", "11th", "Adisa"], ["2020/1882", "1-13-34", 14, 5, 5, 24, 34, 58, "C", "10th", "Adetona"], ["2020/1866", "1-13-34", 6, 5, 5, 16, 20, 36, "F", "28th", "Adetona"], ["2020/1867", "1-13-34", 8, 5, 5, 18, 38, 56, "C", "15th", "Adetona"], ["2020/1868", "1-13-34", 6, 5, 5, 16, 22, 38, "F", "24th", "Adetona"], ["2020/1870", "1-13-34", 8, 5, 5, 18, 23, 41, "P", "23rd", "Adetona"], ["2020/1872", "1-13-34", 11, 5, 5, 21, 44, 65, "C", "3rd", "Adetona"], ["2020/1874", "1-13-34", 11, 5, 5, 21, 22, 43, "P", "21st", "Adetona"], ["2020/1859", "1-13-34", 18, 5, 5, 28, 31, 59, "C", "9th", "Adetona"], ["2020/1861", "1-13-34", 12, 5, 5, 22, 35, 57, "C", "12th", "Adetona"], ["2020/1858", "1-13-34", 9, 5, 5, 19, 19, 38, "F", "24th", "Adetona"], ["2020/1860", "1-13-34", 11, 5, 5, 21, 31, 52, "C", "16th", "Adetona"], ["2020/1862", "1-13-34", 7, 5, 5, 17, 32, 49, "P", "18th", "Adetona"], ["2020/1864", "1-13-34", 15, 5, 5, 25, 37, 62, "C", "5th", "Adetona"], ["2020/1881", "1-13-34", 10, 5, 5, 20, 28, 48, "P", "19th", "Adetona"], ["2020/1883", "1-13-34", 12, 5, 5, 22, 12, 34, "F", "30th", "Adetona"], ["2020/1884", "1-13-34", 10, 5, 5, 20, 38, 58, "C", "10th", "Adetona"], ["2020/1885", "1-13-34", 10, 5, 5, 20, 17, 37, "F", "26th", "Adetona"], ["2020/1869", "1-13-34", 9, 5, 5, 19, 33, 52, "C", "16th", "Adetona"], ["2020/1871", "1-13-34", 8, 5, 5, 18, 39, 57, "C", "12th", "Adetona"], ["2020/1873", "1-13-34", 10, 5, 5, 20, 41, 61, "C", "6th", "Adetona"], ["2020/1875", "1-13-34", 10, 5, 5, 20, 16, 36, "F", "28th", "Adetona"], ["2020/1876", "1-13-34", 16, 5, 5, 26, 38, 64, "C", "4th", "Adetona"], ["2020/1863", "1-13-34", 10, 5, 5, 20, 17, 37, "F", "26th", "Adetona"], ["2020/1878", "1-13-34", 19, 5, 5, 29, 44, 73, "A", "2nd", "Adetona"], ["2020/1879", "1-13-34", 4, 5, 5, 14, 32, 46, "P", "20th", "Adetona"], ["2020/1880", "1-13-34", 16, 5, 5, 26, 48, 74, "A", "1st", "Adetona"], ["2020/1887", "1-13-34", 11, 5, 5, 21, 22, 43, "P", "21st", "Adetona"], ["2020/1888", "1-13-34", 13, 5, 5, 23, 38, 61, "C", "6th", "Adetona"], ["2020/1889", "1-13-34", 13, 5, 5, 23, 37, 60, "C", "8th", "Adetona"], ["2020/1877", "1-13-34", 10, 5, 5, 20, 37, 57, "C", "12th", "Adetona"], ["2020/1865", "1-13-34", 4, 5, 5, 14, 12, 26, "F", "31st", "Adetona"], ["2020/1889", "1-20-24", 10, 5, 5, 20, 44, 64, "C", "20th", "Haddy"], ["2020/1858", "1-20-24", 7, 5, 5, 17, 47, 64, "C", "20th", "Haddy"], ["2020/1861", "1-20-24", 20, 5, 5, 30, 63, 93, "A", "2nd", "Haddy"], ["2020/1863", "1-20-24", 12, 5, 5, 22, 26, 48, "P", "32nd", "Haddy"], ["2020/1865", "1-20-24", 13, 5, 5, 23, 35, 58, "C", "26th", "Haddy"], ["2020/1866", "1-20-24", 8, 5, 5, 18, 49, 67, "C", "19th", "Haddy"], ["2020/1867", "1-20-24", 11, 5, 5, 21, 47, 68, "C", "18th", "Haddy"], ["2020/1868", "1-20-24", 15, 5, 5, 25, 54, 79, "A", "5th", "Haddy"], ["2020/1870", "1-20-24", 7, 5, 5, 17, 37, 54, "C", "29th", "Haddy"], ["2020/1872", "1-20-24", 14, 5, 5, 24, 66, 90, "A", "3rd", "Haddy"], ["2020/1874", "1-20-24", 14, 5, 5, 24, 52, 76, "A", "6th", "Haddy"], ["2020/1877", "1-20-24", 18, 5, 5, 28, 48, 76, "A", "6th", "Haddy"], ["2020/1881", "1-20-24", 7, 5, 5, 17, 54, 71, "A", "12th", "Haddy"], ["2020/1882", "1-20-24", 20, 5, 5, 30, 41, 71, "A", "12th", "Haddy"], ["2020/1883", "1-20-24", 12, 5, 5, 22, 35, 57, "C", "27th", "Haddy"], ["2020/1884", "1-20-24", 10, 5, 5, 20, 63, 83, "A", "4th", "Haddy"], ["2020/1885", "1-20-24", 7, 5, 5, 17, 47, 64, "C", "20th", "Haddy"], ["2020/1886", "1-20-24", 8, 5, 5, 18, 41, 59, "C", "25th", "Haddy"], ["2020/1859", "1-20-24", 10, 5, 5, 20, 55, 75, "A", "8th", "Haddy"], ["2020/1860", "1-20-24", 10, 5, 5, 20, 50, 70, "A", "14th", "Haddy"], ["2020/1862", "1-20-24", 10, 5, 5, 20, 36, 56, "C", "28th", "Haddy"], ["2020/1864", "1-20-24", 12, 5, 5, 22, 47, 69, "C", "15th", "Haddy"], ["2020/1869", "1-20-24", 10, 5, 5, 20, 41, 61, "C", "24th", "Haddy"], ["2020/1871", "1-20-24", 8, 5, 5, 18, 36, 54, "C", "29th", "Haddy"], ["2020/1873", "1-20-24", 14, 5, 5, 24, 45, 69, "C", "15th", "Haddy"], ["2020/1875", "1-20-24", 5, 5, 5, 15, 38, 53, "C", "31st", "Haddy"], ["2020/1876", "1-20-24", 12, 5, 5, 22, 51, 73, "A", "10th", "Haddy"], ["2020/1878", "1-20-24", 19, 5, 5, 29, 68, 97, "A", "1st", "Haddy"], ["2020/1879", "1-20-24", 15, 5, 5, 25, 44, 69, "C", "15th", "Haddy"], ["2020/1880", "1-20-24", 10, 5, 5, 20, 54, 74, "A", "9th", "Haddy"], ["2020/1887", "1-20-24", 5, 5, 5, 15, 47, 62, "C", "23rd", "Haddy"], ["2020/1888", "1-20-24", 9, 5, 5, 19, 53, 72, "A", "11th", "Haddy"], ["2020/1858", "1-22-42", 20, 5, 4, 29, 64, 93, "A", "5th", "Sulyman"], ["2020/1888", "1-22-42", 20, 5, 4, 29, 57, 86, "A", "13th", "Sulyman"], ["2020/1887", "1-22-42", 20, 4, 5, 29, 65, 94, "A", "2nd", "Sulyman"], ["2020/1880", "1-22-42", 20, 4, 5, 29, 65, 94, "A", "2nd", "Sulyman"], ["2020/1879", "1-22-42", 17, 5, 5, 27, 51, 78, "A", "21st", "Sulyman"], ["2020/1878", "1-22-42", 20, 4, 5, 29, 60, 89, "A", "8th", "Sulyman"], ["2020/1876", "1-22-42", 17, 5, 5, 27, 57, 84, "A", "15th", "Sulyman"], ["2020/1875", "1-22-42", 10, 5, 5, 20, 34, 54, "C", "30th", "Sulyman"], ["2020/1873", "1-22-42", 13, 5, 5, 23, 59, 82, "A", "17th", "Sulyman"], ["2020/1871", "1-22-42", 14, 5, 5, 24, 37, 61, "C", "27th", "Sulyman"], ["2020/1869", "1-22-42", 19, 5, 4, 28, 54, 82, "A", "17th", "Sulyman"], ["2020/1864", "1-22-42", 8, 5, 5, 18, 33, 51, "C", "31st", "Sulyman"], ["2020/1862", "1-22-42", 18, 5, 4, 27, 53, 80, "A", "20th", "Sulyman"], ["2020/1860", "1-22-42", 11, 5, 5, 21, 53, 74, "A", "22nd", "Sulyman"], ["2020/1859", "1-22-42", 20, 4, 5, 29, 66, 95, "A", "1st", "Sulyman"], ["2020/1886", "1-22-42", 11, 5, 5, 21, 51, 72, "A", "24th", "Sulyman"], ["2020/1885", "1-22-42", 20, 5, 4, 29, 56, 85, "A", "14th", "Sulyman"], ["2020/1884", "1-22-42", 20, 4, 5, 29, 65, 94, "A", "2nd", "Sulyman"], ["2020/1883", "1-22-42", 20, 5, 4, 29, 37, 66, "C", "25th", "Sulyman"], ["2020/1882", "1-22-42", 20, 4, 5, 29, 58, 87, "A", "11th", "Sulyman"], ["2020/1881", "1-22-42", 17, 5, 5, 27, 39, 66, "C", "25th", "Sulyman"], ["2020/1889", "1-22-42", 17, 5, 5, 27, 61, 88, "A", "10th", "Sulyman"], ["2020/1877", "1-22-42", 8, 5, 5, 18, 43, 61, "C", "27th", "Sulyman"], ["2020/1874", "1-22-42", 18, 5, 5, 28, 64, 92, "A", "6th", "Sulyman"], ["2020/1872", "1-22-42", 20, 4, 5, 29, 60, 89, "A", "8th", "Sulyman"], ["2020/1870", "1-22-42", 20, 5, 4, 29, 31, 60, "C", "29th", "Sulyman"], ["2020/1868", "1-22-42", 14, 5, 5, 24, 49, 73, "A", "23rd", "Sulyman"], ["2020/1867", "1-22-42", 18, 5, 5, 28, 55, 83, "A", "16th", "Sulyman"], ["2020/1866", "1-22-42", 20, 4, 5, 29, 62, 91, "A", "7th", "Sulyman"], ["2020/1865", "1-22-42", 3, 5, 5, 13, 22, 35, "F", "32nd", "Sulyman"], ["2020/1863", "1-22-42", 20, 5, 4, 29, 53, 82, "A", "17th", "Sulyman"], ["2020/1861", "1-22-42", 17, 5, 5, 27, 60, 87, "A", "11th", "Sulyman"], ["2020/1871", "1-25-26", 15, 5, 5, 25, 28, 53, "C", "15th", "MikailF"], ["2020/1882", "1-25-26", 17, 5, 5, 27, 28, 55, "C", "11th", "MikailF"], ["2020/1883", "1-25-26", 15, 5, 5, 25, 24, 49, "P", "18th", "MikailF"], ["2020/1884", "1-25-26", 16, 5, 5, 26, 38, 64, "C", "4th", "MikailF"], ["2020/1885", "1-25-26", 13, 5, 5, 23, 34, 57, "C", "7th", "MikailF"], ["2020/1886", "1-25-26", 11, 5, 5, 21, 21, 42, "P", "27th", "MikailF"], ["2020/1859", "1-25-26", 17, 5, 5, 27, 37, 64, "C", "4th", "MikailF"], ["2020/1860", "1-25-26", 16, 5, 5, 26, 31, 57, "C", "7th", "MikailF"], ["2020/1862", "1-25-26", 8, 5, 5, 18, 22, 40, "P", "30th", "MikailF"], ["2020/1864", "1-25-26", 14, 5, 5, 24, 23, 47, "P", "22nd", "MikailF"], ["2020/1869", "1-25-26", 7, 5, 5, 17, 19, 36, "F", "31st", "MikailF"], ["2020/1873", "1-25-26", 11, 5, 5, 21, 27, 48, "P", "20th", "MikailF"], ["2020/1875", "1-25-26", 10, 5, 5, 20, 21, 41, "P", "28th", "MikailF"], ["2020/1876", "1-25-26", 17, 5, 5, 27, 38, 65, "C", "3rd", "MikailF"], ["2020/1878", "1-25-26", 17, 5, 5, 27, 27, 54, "C", "13th", "MikailF"], ["2020/1879", "1-25-26", 14, 5, 5, 24, 33, 57, "C", "7th", "MikailF"], ["2020/1880", "1-25-26", 17, 5, 5, 27, 39, 66, "C", "2nd", "MikailF"], ["2020/1887", "1-25-26", 10, 5, 5, 20, 23, 43, "P", "25th", "MikailF"], ["2020/1888", "1-25-26", 17, 5, 5, 27, 31, 58, "C", "6th", "MikailF"], ["2020/1889", "1-25-26", 16, 5, 5, 26, 18, 44, "P", "24th", "MikailF"], ["2020/1858", "1-25-26", 13, 5, 5, 23, 20, 43, "P", "25th", "MikailF"], ["2020/1861", "1-25-26", 18, 5, 5, 28, 27, 55, "C", "11th", "MikailF"], ["2020/1863", "1-25-26", 8, 5, 5, 18, 17, 35, "F", "32nd", "MikailF"], ["2020/1865", "1-25-26", 10, 5, 5, 20, 26, 46, "P", "23rd", "MikailF"], ["2020/1866", "1-25-26", 9, 5, 5, 19, 22, 41, "P", "28th", "MikailF"], ["2020/1867", "1-25-26", 15, 5, 5, 25, 29, 54, "C", "13th", "MikailF"], ["2020/1868", "1-25-26", 16, 5, 5, 26, 22, 48, "P", "20th", "MikailF"], ["2020/1870", "1-25-26", 17, 5, 5, 27, 26, 53, "C", "15th", "MikailF"], ["2020/1872", "1-25-26", 19, 5, 5, 29, 51, 80, "A", "1st", "MikailF"], ["2020/1874", "1-25-26", 12, 5, 5, 22, 29, 51, "C", "17th", "MikailF"], ["2020/1877", "1-25-26", 11, 5, 5, 21, 28, 49, "P", "18th", "MikailF"], ["2020/1881", "1-25-26", 16, 5, 5, 26, 30, 56, "C", "10th", "MikailF"], ["2020/1888", "1-26-40", 16, 5, 5, 26, 53, 79, "A", "5th", "Oladele"], ["2020/1858", "1-26-40", 12, 5, 5, 22, 27, 49, "P", "26th", "Oladele"], ["2020/1861", "1-26-40", 17, 5, 5, 27, 57, 84, "A", "3rd", "Oladele"], ["2020/1863", "1-26-40", 3, 4, 4, 11, 30, 41, "P", "29th", "Oladele"], ["2020/1865", "1-26-40", 3, 4, 4, 11, 29, 40, "P", "30th", "Oladele"], ["2020/1866", "1-26-40", 10, 5, 5, 20, 48, 68, "C", "14th", "Oladele"], ["2020/1867", "1-26-40", 15, 5, 5, 25, 45, 70, "A", "10th", "Oladele"], ["2020/1868", "1-26-40", 17, 5, 5, 27, 47, 74, "A", "8th", "Oladele"], ["2020/1870", "1-26-40", 8, 4, 4, 16, 42, 58, "C", "19th", "Oladele"], ["2020/1872", "1-26-40", 19, 5, 5, 29, 64, 93, "A", "1st", "Oladele"], ["2020/1874", "1-26-40", 13, 5, 5, 23, 55, 78, "A", "6th", "Oladele"], ["2020/1877", "1-26-40", 10, 5, 5, 20, 36, 56, "C", "22nd", "Oladele"], ["2020/1881", "1-26-40", 6, 4, 4, 14, 21, 35, "F", "31st", "Oladele"], ["2020/1882", "1-26-40", 10, 5, 5, 20, 50, 70, "A", "10th", "Oladele"], ["2020/1883", "1-26-40", 5, 4, 4, 13, 16, 29, "F", "32nd", "Oladele"], ["2020/1884", "1-26-40", 13, 5, 5, 23, 39, 62, "C", "15th", "Oladele"], ["2020/1885", "1-26-40", 17, 5, 5, 27, 44, 71, "A", "9th", "Oladele"], ["2020/1886", "1-26-40", 11, 5, 5, 21, 39, 60, "C", "17th", "Oladele"], ["2020/1859", "1-26-40", 16, 10, 10, 36, 40, 76, "A", "7th", "Oladele"], ["2020/1860", "1-26-40", 14, 5, 5, 24, 46, 70, "A", "10th", "Oladele"], ["2020/1889", "1-26-40", 5, 4, 4, 13, 29, 42, "P", "28th", "Oladele"], ["2020/1862", "1-26-40", 8, 4, 4, 16, 35, 51, "C", "24th", "Oladele"], ["2020/1864", "1-26-40", 6, 4, 4, 14, 47, 61, "C", "16th", "Oladele"], ["2020/1869", "1-26-40", 10, 5, 5, 20, 37, 57, "C", "21st", "Oladele"], ["2020/1871", "1-26-40", 7, 4, 4, 15, 29, 44, "P", "27th", "Oladele"], ["2020/1873", "1-26-40", 11, 5, 5, 21, 34, 55, "C", "23rd", "Oladele"], ["2020/1875", "1-26-40", 9, 5, 5, 19, 31, 50, "C", "25th", "Oladele"], ["2020/1876", "1-26-40", 12, 5, 5, 22, 36, 58, "C", "19th", "Oladele"], ["2020/1878", "1-26-40", 17, 5, 5, 27, 58, 85, "A", "2nd", "Oladele"], ["2020/1879", "1-26-40", 10, 5, 5, 20, 39, 59, "C", "18th", "Oladele"], ["2020/1880", "1-26-40", 17, 5, 5, 27, 56, 83, "A", "4th", "Oladele"], ["2020/1887", "1-26-40", 13, 5, 5, 23, 47, 70, "A", "10th", "Oladele"]] | 2,266.25 | 18,036 | 0.477386 | 3,585 | 18,130 | 2.414226 | 0.051325 | 0.051531 | 0.015713 | 0.02357 | 0.520162 | 0.312652 | 0.312652 | 0.061005 | 0.05777 | 0.05777 | 0 | 0.401869 | 0.155764 | 18,130 | 8 | 18,036 | 2,266.25 | 0.163596 | 0.004578 | 0 | 0 | 0 | 0 | 0.381153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
e34c2613231b91a16260662a915d8d1ca7ea7375 | 1,643 | py | Python | tests/test_constants/test_arrays_cases/color_cases/case_rgb.py | not-a-feature/tueplots | 7c99ae576fd9508c7f3f2aea75d7821c6376753a | [
"MIT"
] | 110 | 2021-12-07T15:10:37.000Z | 2022-03-28T13:20:35.000Z | tests/test_constants/test_arrays_cases/color_cases/case_rgb.py | not-a-feature/tueplots | 7c99ae576fd9508c7f3f2aea75d7821c6376753a | [
"MIT"
] | 35 | 2021-12-07T19:02:07.000Z | 2022-03-31T12:31:29.000Z | tests/test_constants/test_arrays_cases/color_cases/case_rgb.py | not-a-feature/tueplots | 7c99ae576fd9508c7f3f2aea75d7821c6376753a | [
"MIT"
] | 5 | 2022-01-14T15:14:39.000Z | 2022-02-15T08:12:31.000Z | """Test cases for RGB constants."""
from tueplots.constants.color import rgb
# Tuebingen primary colors
def case_rgb_tue_red():
return rgb.tue_red
def case_rgb_tue_dark():
return rgb.tue_dark
def case_rgb_tue_gray():
return rgb.tue_gray
def case_rgb_tue_gold():
return rgb.tue_gold
def case_rgb_tue_lightgold():
return rgb.tue_lightgold
# Tuebingen secondary colors
def case_rgb_tue_darkblue():
return rgb.tue_darkblue
def case_rgb_tue_blue():
return rgb.tue_blue
def case_rgb_tue_lightblue():
return rgb.tue_lightblue
def case_rgb_tue_lightgreen():
return rgb.tue_lightgreen
def case_rgb_tue_green():
return rgb.tue_green
def case_rgb_tue_darkgreen():
return rgb.tue_darkgreen
def case_rgb_tue_ocre():
return rgb.tue_ocre
def case_rgb_tue_violet():
return rgb.tue_violet
def case_rgb_tue_mauve():
return rgb.tue_mauve
def case_rgb_tue_lightorange():
return rgb.tue_lightorange
def case_rgb_tue_orange():
return rgb.tue_orange
def case_rgb_tue_brown():
return rgb.tue_brown
# Probnum primary colors
def case_rgb_pn_green():
return rgb.pn_green
def case_rgb_pn_blue():
return rgb.pn_blue
# Probnum secondary colors
def case_rgb_pn_orange():
return rgb.pn_orange
def case_rgb_pn_gray():
return rgb.pn_gray
def case_rgb_pn_red():
return rgb.pn_red
# Max-Planck Society colors
def case_rgb_mpg_green():
return rgb.mps_green
def case_rgb_mpg_lightgreen():
return rgb.mps_lightgreen
def case_rgb_mpg_gray():
return rgb.mps_gray
def case_rgb_mpg_lightgray():
return rgb.mps_lightgray
| 13.467213 | 40 | 0.745587 | 261 | 1,643 | 4.295019 | 0.16092 | 0.18198 | 0.231936 | 0.197145 | 0.094558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181984 | 1,643 | 121 | 41 | 13.578512 | 0.834077 | 0.094948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.490566 | true | 0 | 0.018868 | 0.490566 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 5 |
e37d271d012022ad4758c0fc31fe58d2b0bd1b9d | 19 | py | Python | cloudmesh/burn/__version__.py | cloudmesh/cloudmesh_pi_burn | 0d080c0b6057e2c761e90ebd4144d04b4dff6d6b | [
"Apache-2.0"
] | 16 | 2021-01-16T16:18:08.000Z | 2022-03-07T16:09:18.000Z | cloudmesh/burn/__version__.py | cloudmesh/cloudmesh-pi-burn | ad76a310e3ebe2b6111b00de0d2a80693ceeb6f4 | [
"Apache-2.0"
] | 11 | 2021-01-16T12:39:56.000Z | 2021-05-06T21:57:43.000Z | cloudmesh/burn/__version__.py | cloudmesh/cloudmesh_pi_burn | 0d080c0b6057e2c761e90ebd4144d04b4dff6d6b | [
"Apache-2.0"
] | 3 | 2020-02-06T02:38:39.000Z | 2020-03-23T03:10:30.000Z | version = "4.3.29"
| 9.5 | 18 | 0.578947 | 4 | 19 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.157895 | 19 | 1 | 19 | 19 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
e388cac747e5518440f7e61b16017288393914b6 | 67 | py | Python | vulture_whitelist/__init__.py | RJ722/vulture-whitelist-generators | 4f208e5bb62dd3b73406eae2d15b0ffad01f7bc4 | [
"MIT"
] | null | null | null | vulture_whitelist/__init__.py | RJ722/vulture-whitelist-generators | 4f208e5bb62dd3b73406eae2d15b0ffad01f7bc4 | [
"MIT"
] | 5 | 2018-07-15T11:15:24.000Z | 2018-08-13T06:09:14.000Z | vulture_whitelist/__init__.py | RJ722/vulture-whitelist-generators | 4f208e5bb62dd3b73406eae2d15b0ffad01f7bc4 | [
"MIT"
] | null | null | null | from vulture_whitelist.main import __version__
assert __version__
| 16.75 | 46 | 0.880597 | 8 | 67 | 6.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 67 | 3 | 47 | 22.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
8b51f36b096e5cf2ac650bc9281253e8095f86a3 | 393 | py | Python | src/eurocodepy/__init__.py | pcachim/eurocodepy | 8b68e733e5ccaa41b16135d3a3f8e9d2544fc112 | [
"MIT"
] | null | null | null | src/eurocodepy/__init__.py | pcachim/eurocodepy | 8b68e733e5ccaa41b16135d3a3f8e9d2544fc112 | [
"MIT"
] | null | null | null | src/eurocodepy/__init__.py | pcachim/eurocodepy | 8b68e733e5ccaa41b16135d3a3f8e9d2544fc112 | [
"MIT"
] | null | null | null | from .db import get_timber
from .db import get_concrete
from .db import get_prestress
from .db import get_reinforcement
from .db import get_materials
from .db import get_eurocodes
from .db import PrestressClasses
from .db import ReinforcementBars
from .db import ReinforcementClasses
from .db import ConcreteClasses
from .db import db
from . import ec2
from . import ec5
from . import utils
| 23.117647 | 36 | 0.816794 | 59 | 393 | 5.338983 | 0.288136 | 0.209524 | 0.419048 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00597 | 0.147583 | 393 | 16 | 37 | 24.5625 | 0.934328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
8b59a27b619d1fecee7ba8c2a2ca88a46b7c32a0 | 7,967 | py | Python | train.py | sara-nl/egnn-md-trajectories | 81077433fffc2a28fcba90c0a040658d22fff098 | [
"MIT"
] | null | null | null | train.py | sara-nl/egnn-md-trajectories | 81077433fffc2a28fcba90c0a040658d22fff098 | [
"MIT"
] | null | null | null | train.py | sara-nl/egnn-md-trajectories | 81077433fffc2a28fcba90c0a040658d22fff098 | [
"MIT"
] | null | null | null | from tqdm import tqdm
from torch.cuda.amp import autocast
import torch.nn.functional as F
from torch.autograd import grad
import torch
import argparse
import numpy as np
import pdb
def move_to(var, device):
if var is None:
return None
elif isinstance(var, (int, str, float)):
return var
elif isinstance(var, dict):
return {k: move_to(v, device) for k, v in var.items()}
elif isinstance(var, list):
return [move_to(k, device) for k in var]
elif isinstance(var, tuple):
return (move_to(k, device) for k in var)
return var.to(device)
def train_epoch(model: torch.nn.Module,
criterion: torch.nn.modules.loss._Loss,
optimizer: torch.optim.Optimizer,
train_loader: torch.utils.data.DataLoader,
opts: argparse.Namespace,
p: int = 20,
scheduler: torch.optim.lr_scheduler._LRScheduler = None,
scaler: torch.cuda.amp.GradScaler = None) -> dict:
"""
Train on the energy task for one epoch
:param model: the model
:param criterion: the loss function
:param optimizer: the optimizer
:param train_loader: the train data loader
:param opts: the options object
:param p: the scaling of the force loss term
:param scheduler: the learning rate scheduler
:param scaler: the mixed precision scaler
:return: train_loss_epoch and mae
"""
# Put model in train mode and reset gradients
model.train()
model.zero_grad()
train_losses, energy_losses, force_losses, energy_errors, force_errors = [], [], [], [], []
for batch_id, batch in enumerate(tqdm(train_loader)):
batch_size = batch['batch_size']
batch = move_to(batch, opts.device)
optimizer.zero_grad()
with autocast(enabled=opts.mixed_precision):
# Set to require gradients
if opts.force_and_energy:
batch['coords'].requires_grad_(True)
prediction = model(h=batch['nodes'],
x=batch['coords'],
edges=batch['edges'],
edge_attr=batch['edge_attr'])
if opts.force_and_energy:
force = -grad(outputs=prediction['energy'], inputs=batch['coords'],
grad_outputs=torch.ones_like(prediction['energy']), create_graph=True, retain_graph=True)[
0]
force = force.view(batch_size, -1, force.shape[-1])
e_loss = criterion(prediction['energy'], (batch['energies'] - batch['energy_meann']) / batch['energy_mad'])
f_loss = p * criterion(force, (batch['forces'] - batch['force_meann'][0]) / batch['force_mad'][0])
loss = e_loss + f_loss
f_pred_error = criterion((force * batch['force_mad'][0]) + batch['force_meann'][0], batch['forces'])
else:
e_loss = criterion(prediction['energy'],
(batch['energies'] - batch['energy_meann']) / batch['energy_mad'])
f_loss = f_pred_error = torch.tensor([0], device='cpu')
loss = e_loss
e_pred_error = criterion((prediction['energy'] * batch['energy_mad']) + batch['energy_meann'],
batch['energies'])
scaler.scale(loss).backward()
scaler.step(optimizer)
scaler.update()
if scheduler is not None and opts.scheduler_update == 'batch':
scheduler.step()
train_losses.append(loss.detach().cpu().item())
energy_losses.append(e_loss.detach().cpu().item())
force_losses.append(f_loss.detach().cpu().item())
energy_errors.append(e_pred_error.detach().cpu().item())
force_errors.append(f_pred_error.detach().cpu().item())
train_loss_epoch = np.round(np.mean(train_losses), 4)
energy_loss_epoch = np.round(np.mean(energy_losses), 4)
force_loss_epoch = np.round(np.mean(force_losses), 4)
energy_errors = np.round(np.mean(energy_errors), 4)
force_errors = np.round(np.mean(force_errors), 4)
# Convert from kcal/mol to meV
mae_energy = energy_errors * 0.0433641153087705 * 1000
mae_force = force_errors * 0.0433641153087705 * 1000
return {'train_loss_epoch': train_loss_epoch,
'energy_loss_epoch': energy_loss_epoch,
'force_loss_epoch': force_loss_epoch,
'mae_energy': mae_energy,
'mae_force': mae_force}
def evaluate_epoch(model: torch.nn.Module,
criterion: torch.nn.modules.loss._Loss,
test_loader: torch.utils.data.DataLoader,
opts: argparse.Namespace,
p: int = 20) -> dict:
"""
Evaluate the validation dataset for the energy task
:param model: the model
:param criterion: the loss function
:param test_loader: the test_loader
:param opts: the options object
:param p: the scaling of the force loss term
:return: the test_loss_epoch and mae
"""
# Put model in eval mode and reset gradients
model.eval()
model.zero_grad()
test_losses, energy_losses, force_losses, energy_errors, force_errors = [], [], [], [], []
for batch_id, batch in enumerate(tqdm(test_loader)):
batch_size = batch['batch_size']
batch = move_to(batch, opts.device)
with autocast(enabled=opts.mixed_precision):
# Set to require gradients
if opts.force_and_energy:
batch['coords'].requires_grad_(True)
prediction = model(h=batch['nodes'],
x=batch['coords'],
edges=batch['edges'],
edge_attr=batch['edge_attr'])
if opts.force_and_energy:
force = -grad(outputs=prediction['energy'], inputs=batch['coords'],
grad_outputs=torch.ones_like(prediction['energy']), create_graph=True, retain_graph=True)[
0]
force = force.view(batch_size, -1, force.shape[-1])
e_loss = criterion(prediction['energy'], (batch['energies'] - batch['energy_meann']) / batch['energy_mad'])
f_loss = p * criterion(force, (batch['forces'] - batch['force_meann'][0]) / batch['force_mad'][0])
loss = e_loss + f_loss
f_pred_error = criterion((force * batch['force_mad'][0]) + batch['force_meann'][0], batch['forces'])
else:
e_loss = criterion(prediction['energy'],
(batch['energies'] - batch['energy_meann']) / batch['energy_mad'])
f_loss = f_pred_error = torch.tensor([0], device='cpu')
loss = e_loss
e_pred_error = criterion((prediction['energy'] * batch['energy_mad']) + batch['energy_meann'],
batch['energies'])
test_losses.append(loss.detach().cpu().item())
energy_losses.append(e_loss.detach().cpu().item())
force_losses.append(f_loss.detach().cpu().item())
energy_errors.append(e_pred_error.detach().cpu().item())
force_errors.append(f_pred_error.detach().cpu().item())
test_loss_epoch = np.round(np.mean(test_losses), 4)
energy_loss_epoch = np.round(np.mean(energy_losses), 4)
force_loss_epoch = np.round(np.mean(force_losses), 4)
energy_errors = np.round(np.mean(energy_errors), 4)
force_errors = np.round(np.mean(force_errors), 4)
# Convert from kcal/mol to meV
mae_energy = energy_errors * 0.0433641153087705 * 1000
mae_force = force_errors * 0.0433641153087705 * 1000
return {'test_loss_epoch': test_loss_epoch,
'energy_loss_epoch': energy_loss_epoch,
'force_loss_epoch': force_loss_epoch,
'mae_energy': mae_energy,
'mae_force': mae_force}
| 40.85641 | 123 | 0.596837 | 973 | 7,967 | 4.676259 | 0.152107 | 0.03956 | 0.028571 | 0.028571 | 0.785495 | 0.774066 | 0.764396 | 0.753407 | 0.753407 | 0.741099 | 0 | 0.019909 | 0.281285 | 7,967 | 194 | 124 | 41.06701 | 0.774712 | 0.104305 | 0 | 0.641221 | 0 | 0 | 0.082955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022901 | false | 0 | 0.061069 | 0 | 0.145038 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
8ba3e323c45617c0da4f4c88ad2edf6381d8c52c | 116 | py | Python | mundo 1/ex003.py | jorgeduartejr/Ex-PYTHON | 266b656ad94065e77ece7cdbc9e09062c5933100 | [
"MIT"
] | null | null | null | mundo 1/ex003.py | jorgeduartejr/Ex-PYTHON | 266b656ad94065e77ece7cdbc9e09062c5933100 | [
"MIT"
] | null | null | null | mundo 1/ex003.py | jorgeduartejr/Ex-PYTHON | 266b656ad94065e77ece7cdbc9e09062c5933100 | [
"MIT"
] | null | null | null | n1 = int(input('Digite aqui a nota 1: '))
n2 = int(input('Digite aqui a nota 2: '))
média = (n1 + n2)/2
print(média) | 29 | 41 | 0.62069 | 22 | 116 | 3.272727 | 0.545455 | 0.222222 | 0.388889 | 0.5 | 0.638889 | 0.638889 | 0 | 0 | 0 | 0 | 0 | 0.073684 | 0.181034 | 116 | 4 | 42 | 29 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0.376068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
8bacbe1cd11d88a69143016034b9fec21dc843ee | 48 | py | Python | microblog.py | rodcordeiro/flaskProject | 23155b1e6348e3f238d199fe4c6e5a490fdb9e76 | [
"MIT"
] | null | null | null | microblog.py | rodcordeiro/flaskProject | 23155b1e6348e3f238d199fe4c6e5a490fdb9e76 | [
"MIT"
] | 1 | 2021-09-03T18:22:14.000Z | 2021-09-03T18:22:14.000Z | microblog.py | rodcordeiro/flaskProject | 23155b1e6348e3f238d199fe4c6e5a490fdb9e76 | [
"MIT"
] | null | null | null |
from app import app
app.config["DEBUG"] = True
| 12 | 26 | 0.708333 | 8 | 48 | 4.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 48 | 3 | 27 | 16 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
8bafcbe19362583b438d38ddd4b0c443aa630e66 | 19 | py | Python | tests/__init__.py | vg-mjg/tablecloth-generator | 14c11be418309a5fde4c98f024a9d0aa982202ad | [
"MIT"
] | 1 | 2021-05-13T22:13:08.000Z | 2021-05-13T22:13:08.000Z | tests/__init__.py | vg-mjg/tablecloth-generator | 14c11be418309a5fde4c98f024a9d0aa982202ad | [
"MIT"
] | 10 | 2021-05-13T22:08:15.000Z | 2021-06-15T19:24:06.000Z | tests/__init__.py | vg-mjg/tablecloth-generator | 14c11be418309a5fde4c98f024a9d0aa982202ad | [
"MIT"
] | 1 | 2021-05-16T18:39:40.000Z | 2021-05-16T18:39:40.000Z | # Here go the tests | 19 | 19 | 0.736842 | 4 | 19 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 19 | 1 | 19 | 19 | 0.933333 | 0.894737 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
8bb9e2b2c729dc61e202f123f30b3e664bc45aa0 | 379 | py | Python | smallest_positive.py | OuedraogoAbdoul/python-review | 644cbfdd6f77d11241d0ca30d4717c3d9c8b7cc2 | [
"MIT"
] | null | null | null | smallest_positive.py | OuedraogoAbdoul/python-review | 644cbfdd6f77d11241d0ca30d4717c3d9c8b7cc2 | [
"MIT"
] | null | null | null | smallest_positive.py | OuedraogoAbdoul/python-review | 644cbfdd6f77d11241d0ca30d4717c3d9c8b7cc2 | [
"MIT"
] | null | null | null | def smallest_positive(in_list):
# TODO: Define a control structure that finds the smallest positive
# number in in_list and returns the correct smallest number.
return sorted([i for i in in_list if i > 0])[0]
# Test cases
print(smallest_positive([4, -6, 7, 2, -4, 10]))
# Correct output: 2
print(smallest_positive([.2, 5, 3, -.1, 7, 7, 6]))
# Correct output: 0.2
| 27.071429 | 71 | 0.680739 | 65 | 379 | 3.876923 | 0.538462 | 0.253968 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062092 | 0.192612 | 379 | 13 | 72 | 29.153846 | 0.761438 | 0.456464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0.5 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 5 |
8bd196d34d2ef0b08de69d535eeb1479646a64e0 | 19 | py | Python | kge/run_norm_templates.py | cbmnbe/kge | 9b6e02088d91b9c7442a39742e838694d1aa23b4 | [
"MIT"
] | null | null | null | kge/run_norm_templates.py | cbmnbe/kge | 9b6e02088d91b9c7442a39742e838694d1aa23b4 | [
"MIT"
] | null | null | null | kge/run_norm_templates.py | cbmnbe/kge | 9b6e02088d91b9c7442a39742e838694d1aa23b4 | [
"MIT"
] | null | null | null | print('Normalized') | 19 | 19 | 0.789474 | 2 | 19 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 19 | 1 | 19 | 19 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
8bdadfcdff9475a2c3e58999c9fc7c65f5b3db3c | 142 | py | Python | doj/db/backends/mssql/__init__.py | beachmachine/django-jython | 35aaabe31c5dce0ce0c7752e6a98228c3ed6c987 | [
"BSD-3-Clause"
] | 23 | 2015-02-13T07:58:23.000Z | 2020-04-03T03:36:45.000Z | doj/db/backends/mssql/__init__.py | beachmachine/django-jython | 35aaabe31c5dce0ce0c7752e6a98228c3ed6c987 | [
"BSD-3-Clause"
] | 15 | 2015-02-13T07:59:48.000Z | 2021-07-16T01:16:21.000Z | doj/db/backends/mssql/__init__.py | beachmachine/django-jython | 35aaabe31c5dce0ce0c7752e6a98228c3ed6c987 | [
"BSD-3-Clause"
] | 13 | 2015-02-13T08:05:14.000Z | 2022-03-21T20:52:47.000Z | # -*- coding: utf-8 -*-
"""
The MSSQL backend is based on the work of ``django-mssql``.
https://bitbucket.org/Manfre/django-mssql/
"""
| 20.285714 | 60 | 0.619718 | 20 | 142 | 4.4 | 0.8 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.176056 | 142 | 6 | 61 | 23.666667 | 0.74359 | 0.887324 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
47b8b2a7572b3ded5bfdaad32339b2bb3070ec16 | 135 | py | Python | generators/__init__.py | hertzsprung/seamless-wave-uq | 10a9b2e18d11cf3f4e711a90523f85758e5fb531 | [
"MIT"
] | null | null | null | generators/__init__.py | hertzsprung/seamless-wave-uq | 10a9b2e18d11cf3f4e711a90523f85758e5fb531 | [
"MIT"
] | null | null | null | generators/__init__.py | hertzsprung/seamless-wave-uq | 10a9b2e18d11cf3f4e711a90523f85758e5fb531 | [
"MIT"
] | null | null | null | from .criticalSteadyState import CriticalSteadyState
from .lakeAtRest import LakeAtRest
from .tsengSteadyState import TsengSteadyState
| 33.75 | 52 | 0.888889 | 12 | 135 | 10 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 135 | 3 | 53 | 45 | 0.97561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
47bed2a890fc7bfeffcbc72924a41090361398fc | 118 | py | Python | algorithms/1672. Richest Customer Wealth.py | vuzway9132/leetcode | e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf | [
"MIT"
] | 1 | 2020-12-02T13:54:30.000Z | 2020-12-02T13:54:30.000Z | algorithms/1672. Richest Customer Wealth.py | vuzway9132/leetcode | e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf | [
"MIT"
] | null | null | null | algorithms/1672. Richest Customer Wealth.py | vuzway9132/leetcode | e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf | [
"MIT"
] | null | null | null | class Solution:
def maximumWealth(self, accounts: List[List[int]]) -> int:
return max(sum(c) for c in accounts)
| 29.5 | 60 | 0.694915 | 18 | 118 | 4.555556 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169492 | 118 | 3 | 61 | 39.333333 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
9a1b610568f498f8cbea7d0ed8d3a917eec86962 | 191 | py | Python | qmk_cli/subcommands/__init__.py | NCPlayz/qmk_cli | f3e83794c99aede51ea5329c96dcbe7bf31069a3 | [
"MIT"
] | null | null | null | qmk_cli/subcommands/__init__.py | NCPlayz/qmk_cli | f3e83794c99aede51ea5329c96dcbe7bf31069a3 | [
"MIT"
] | null | null | null | qmk_cli/subcommands/__init__.py | NCPlayz/qmk_cli | f3e83794c99aede51ea5329c96dcbe7bf31069a3 | [
"MIT"
] | null | null | null | """QMK CLI Subcommands
We list each subcommand here explicitly because all the reliable ways of searching for modules are slow and delay startup.
"""
from . import clone
from . import setup
| 27.285714 | 122 | 0.780105 | 29 | 191 | 5.137931 | 0.931034 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172775 | 191 | 6 | 123 | 31.833333 | 0.943038 | 0.748691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
d084f33e330355b95a60551f9cac51ab5e3cbf63 | 136 | py | Python | __init__.py | nano-bio/fitlib | 299703dbc9ecafa528b965ccac538173801923b2 | [
"BSD-3-Clause"
] | null | null | null | __init__.py | nano-bio/fitlib | 299703dbc9ecafa528b965ccac538173801923b2 | [
"BSD-3-Clause"
] | null | null | null | __init__.py | nano-bio/fitlib | 299703dbc9ecafa528b965ccac538173801923b2 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
import SF6_calibration
import loglib, helplib, fitlib
__all__ = ['loglib', 'fitlib', 'helplib', 'SF6_calibration']
| 17 | 60 | 0.727941 | 16 | 136 | 5.8125 | 0.625 | 0.301075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.117647 | 136 | 7 | 61 | 19.428571 | 0.758333 | 0.117647 | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
d0895f3eba05f12ab4cf8712cc0d3b2b7d56a727 | 161 | py | Python | blog_project/views.py | shriekdj/django-blog-project | b0d121aba38d280badbfd159832a418d8a9f545c | [
"MIT"
] | 4 | 2022-01-13T17:52:15.000Z | 2022-03-24T08:12:30.000Z | blog_project/views.py | shriekdj/django-blog-project | b0d121aba38d280badbfd159832a418d8a9f545c | [
"MIT"
] | 8 | 2022-03-18T16:28:29.000Z | 2022-03-28T13:06:20.000Z | blog_project/views.py | shriekdj/django-blog-project | b0d121aba38d280badbfd159832a418d8a9f545c | [
"MIT"
] | 2 | 2022-03-18T16:25:14.000Z | 2022-03-24T08:13:34.000Z | from django.shortcuts import HttpResponseRedirect
from django.urls import reverse
def index(request):
return HttpResponseRedirect(reverse('app_blog:blogs')) | 32.2 | 58 | 0.826087 | 19 | 161 | 6.947368 | 0.736842 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099379 | 161 | 5 | 58 | 32.2 | 0.910345 | 0 | 0 | 0 | 0 | 0 | 0.08642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 5 |
d0b89fb6bbbb110696043f219b9111568b49bb47 | 256 | py | Python | skypy/gravitational_wave/__init__.py | ArthurTolley/skypy | 5621877ada75c667b1af7e665b02a91026f7ef0f | [
"BSD-3-Clause"
] | 1 | 2020-12-28T18:00:24.000Z | 2020-12-28T18:00:24.000Z | skypy/gravitational_wave/__init__.py | ArthurTolley/skypy | 5621877ada75c667b1af7e665b02a91026f7ef0f | [
"BSD-3-Clause"
] | 2 | 2020-12-28T20:14:40.000Z | 2020-12-28T21:49:27.000Z | skypy/gravitational_wave/__init__.py | ArthurTolley/skypy | 5621877ada75c667b1af7e665b02a91026f7ef0f | [
"BSD-3-Clause"
] | null | null | null | """
This module contains methods that model the properties of gravitational wave
populations.
Merger Rates
================
.. autosummary::
:nosignatures:
:toctree: ../api/
b_band_merger_rate
"""
from .merger_rate import * # noqa F401,F403
| 15.058824 | 76 | 0.671875 | 29 | 256 | 5.793103 | 0.896552 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028436 | 0.175781 | 256 | 16 | 77 | 16 | 0.767773 | 0.84375 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
d0dfb33312717b3185b8cecc6e6736cafa6d2335 | 369 | py | Python | python/utils.py | santi/val-lang | f00c6617edc3963ac92f93f356c4b49a6ea4f525 | [
"MIT"
] | null | null | null | python/utils.py | santi/val-lang | f00c6617edc3963ac92f93f356c4b49a6ea4f525 | [
"MIT"
] | null | null | null | python/utils.py | santi/val-lang | f00c6617edc3963ac92f93f356c4b49a6ea4f525 | [
"MIT"
] | null | null | null | import re
def is_int(string):
try:
int(string)
return True
except ValueError:
return False
def is_string(string):
return re.match("'.*'", string)
def is_regex(string):
return re.match("/.*/", string)
def is_variable(string):
return re.match("[a-zA-Z]+[a-zA-Z0-9]*", string)
def print_context(context):
print(context) | 18.45 | 52 | 0.620596 | 52 | 369 | 4.307692 | 0.423077 | 0.089286 | 0.1875 | 0.254464 | 0.267857 | 0.267857 | 0.267857 | 0 | 0 | 0 | 0 | 0.006969 | 0.222222 | 369 | 20 | 53 | 18.45 | 0.773519 | 0 | 0 | 0 | 0 | 0 | 0.078378 | 0.056757 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.066667 | 0.2 | 0.733333 | 0.133333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
d0e5665fd2e5c15ddfacd792d23eef2c1eedd252 | 67 | py | Python | tests/parser/query.08.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/query.08.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/query.08.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | input = """
c :- b.
c?
"""
output = """
c :- b.
c?
"""
| 5.153846 | 12 | 0.253731 | 8 | 67 | 2.125 | 0.5 | 0.235294 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.41791 | 67 | 12 | 13 | 5.583333 | 0.435897 | 0 | 0 | 0.75 | 0 | 0 | 0.474576 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
1900d7243e15031378f83c6e66d2fbcb6a173059 | 43 | py | Python | tests/__init__.py | Aria57/data_science_course | 94db4c2ab81c92be2b6c16f6fc6daf717c342c5c | [
"MIT"
] | null | null | null | tests/__init__.py | Aria57/data_science_course | 94db4c2ab81c92be2b6c16f6fc6daf717c342c5c | [
"MIT"
] | null | null | null | tests/__init__.py | Aria57/data_science_course | 94db4c2ab81c92be2b6c16f6fc6daf717c342c5c | [
"MIT"
] | null | null | null | """Unit test package for final_project."""
| 21.5 | 42 | 0.72093 | 6 | 43 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 43 | 1 | 43 | 43 | 0.789474 | 0.837209 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
19080ab67a5370a9b8c64910b074cd23087f2ec7 | 184 | py | Python | test/test_helloworld_hypothesis.py | tdcox/pytorch1 | d3c7a51eb38d0a56c3d77251b52dd8b3c111902d | [
"Apache-2.0"
] | null | null | null | test/test_helloworld_hypothesis.py | tdcox/pytorch1 | d3c7a51eb38d0a56c3d77251b52dd8b3c111902d | [
"Apache-2.0"
] | null | null | null | test/test_helloworld_hypothesis.py | tdcox/pytorch1 | d3c7a51eb38d0a56c3d77251b52dd8b3c111902d | [
"Apache-2.0"
] | null | null | null | import helloworld
from hypothesis import given
from hypothesis.strategies import text
@given(text())
def test_helloname(s):
assert helloworld.helloname(s) == 'Hello, ' + s + '!'
| 20.444444 | 57 | 0.728261 | 23 | 184 | 5.782609 | 0.565217 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 184 | 8 | 58 | 23 | 0.852564 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
ef6fc53c30b6526a9990087dee012a665a8a97fe | 997 | py | Python | src/deep_rlsp/util/dist.py | HumanCompatibleAI/deep-rlsp | 81941693aba2aa9157ca96e96567f4e3cb95fbc3 | [
"MIT"
] | 24 | 2021-04-17T21:32:43.000Z | 2021-08-07T17:20:15.000Z | src/deep_rlsp/util/dist.py | HumanCompatibleAI/deep-rlsp | 81941693aba2aa9157ca96e96567f4e3cb95fbc3 | [
"MIT"
] | null | null | null | src/deep_rlsp/util/dist.py | HumanCompatibleAI/deep-rlsp | 81941693aba2aa9157ca96e96567f4e3cb95fbc3 | [
"MIT"
] | 7 | 2021-04-17T21:32:48.000Z | 2022-02-09T04:18:39.000Z | import numpy as np
from scipy.stats import norm, laplace
class NormalDistribution(object):
def __init__(self, mu, sigma=1):
self.mu = mu
self.sigma = sigma
self.distribution = norm(loc=mu, scale=sigma)
def rvs(self):
"""sample"""
return self.distribution.rvs()
def pdf(self, x):
return self.distribution.pdf(x)
def logpdf(self, x):
return self.distribution.logpdf(x)
def logdistr_grad(self, x):
return (self.mu - x) / (self.sigma ** 2)
class LaplaceDistribution(object):
def __init__(self, mu, b=1):
self.mu = mu
self.b = b
self.distribution = laplace(loc=mu, scale=b)
def rvs(self):
"""sample"""
return self.distribution.rvs()
def pdf(self, x):
return self.distribution.pdf(x)
def logpdf(self, x):
return self.distribution.logpdf(x)
def logdistr_grad(self, x):
return (self.mu - x) / (np.fabs(x - self.mu) * self.b)
| 23.186047 | 62 | 0.591775 | 134 | 997 | 4.328358 | 0.246269 | 0.22069 | 0.227586 | 0.155172 | 0.641379 | 0.531034 | 0.531034 | 0.531034 | 0.531034 | 0.531034 | 0 | 0.004155 | 0.275827 | 997 | 42 | 63 | 23.738095 | 0.799169 | 0.013039 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.071429 | 0.214286 | 0.785714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
ef9848aa794ca6fd191e658f520cc28ef32694c1 | 77 | py | Python | pythonteste/aula08.py | kaue-pessoa/cursoemvideo-python | d0f651a85d43c1800fcbc14cad0d8c20c86dbacf | [
"MIT"
] | null | null | null | pythonteste/aula08.py | kaue-pessoa/cursoemvideo-python | d0f651a85d43c1800fcbc14cad0d8c20c86dbacf | [
"MIT"
] | null | null | null | pythonteste/aula08.py | kaue-pessoa/cursoemvideo-python | d0f651a85d43c1800fcbc14cad0d8c20c86dbacf | [
"MIT"
] | null | null | null | import emoji
print(emoji('Olá mundo : kiss_closed_eyes :',use_aliases=True))
| 25.666667 | 63 | 0.779221 | 12 | 77 | 4.75 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 77 | 2 | 64 | 38.5 | 0.814286 | 0 | 0 | 0 | 0 | 0 | 0.38961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 5 |
efbdc3ae661d089dc47aaa82c6ef3324fcdf6c48 | 1,048 | py | Python | test/test_text_location_annotation.py | Sage-Bionetworks/nlp-sandbox-client | e51720b35ca3413ccee71b9cdc223ce3578fe0fd | [
"Apache-2.0"
] | 3 | 2021-06-15T16:36:10.000Z | 2021-11-15T01:44:46.000Z | test/test_text_location_annotation.py | nlpsandbox/nlpsandbox-client | 8cba4f65ff2c06cbef7dc50f45b0aec9b8ee0476 | [
"Apache-2.0"
] | 165 | 2020-11-23T00:36:40.000Z | 2022-03-24T00:53:59.000Z | test/test_text_location_annotation.py | data2health/nlp-sandbox-evaluation | e51720b35ca3413ccee71b9cdc223ce3578fe0fd | [
"Apache-2.0"
] | 3 | 2020-12-11T00:04:13.000Z | 2022-01-03T16:59:10.000Z | """
NLP Sandbox API
NLP Sandbox REST API # noqa: E501
The version of the OpenAPI document: 1.2.0
Contact: team@nlpsandbox.io
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import nlpsandbox
from nlpsandbox.model.text_annotation import TextAnnotation
from nlpsandbox.model.text_location_annotation_all_of import TextLocationAnnotationAllOf
globals()['TextAnnotation'] = TextAnnotation
globals()['TextLocationAnnotationAllOf'] = TextLocationAnnotationAllOf
from nlpsandbox.model.text_location_annotation import TextLocationAnnotation
class TestTextLocationAnnotation(unittest.TestCase):
"""TextLocationAnnotation unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testTextLocationAnnotation(self):
"""Test TextLocationAnnotation"""
# FIXME: construct object with mandatory attributes with example values
# model = TextLocationAnnotation() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()
| 25.560976 | 88 | 0.742366 | 105 | 1,048 | 7.266667 | 0.552381 | 0.055046 | 0.074705 | 0.090433 | 0.107471 | 0.107471 | 0 | 0 | 0 | 0 | 0 | 0.010477 | 0.180344 | 1,048 | 40 | 89 | 26.2 | 0.877765 | 0.335878 | 0 | 0.176471 | 1 | 0 | 0.074695 | 0.041159 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.176471 | false | 0.176471 | 0.352941 | 0 | 0.588235 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 5 |
ef0d1d8ccaa984dbfd72e2aa50b6f98e127d2bac | 150 | py | Python | dnspod/admin.py | huzichunjohn/compass | aacd85ad8df3e9c24eab045be1c5b4e3a72d577f | [
"Apache-2.0"
] | null | null | null | dnspod/admin.py | huzichunjohn/compass | aacd85ad8df3e9c24eab045be1c5b4e3a72d577f | [
"Apache-2.0"
] | null | null | null | dnspod/admin.py | huzichunjohn/compass | aacd85ad8df3e9c24eab045be1c5b4e3a72d577f | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import Domain
class DomainAdmin(admin.ModelAdmin):
pass
admin.site.register(Domain, DomainAdmin)
| 16.666667 | 40 | 0.793333 | 19 | 150 | 6.263158 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 150 | 8 | 41 | 18.75 | 0.915385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 5 |
ef4d665243428eb77b1a6f93e8dc44dec92cc837 | 82 | py | Python | statcode/__main__.py | luckyvs1/statcode | 320705248b9263c16540945d7735d597390ea8d5 | [
"MIT"
] | 248 | 2018-07-10T04:51:21.000Z | 2022-01-27T00:24:26.000Z | statcode/__main__.py | luckyvs1/statcode | 320705248b9263c16540945d7735d597390ea8d5 | [
"MIT"
] | 13 | 2018-07-10T08:12:11.000Z | 2019-05-01T16:47:35.000Z | statcode/__main__.py | luckyvs1/statcode | 320705248b9263c16540945d7735d597390ea8d5 | [
"MIT"
] | 18 | 2018-07-10T06:55:00.000Z | 2021-01-19T03:52:03.000Z | import statcode.statcode
if __name__ == "__main__":
statcode.statcode.main()
| 16.4 | 28 | 0.731707 | 9 | 82 | 5.777778 | 0.555556 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 82 | 4 | 29 | 20.5 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
3272c8d2fec5f52e73e24a813594612b5f0f7db6 | 167 | py | Python | flowutils/tests/__init__.py | DavHau/FlowUtils | c221a8d2ab5ecd09e340183b17d710c157109589 | [
"BSD-3-Clause"
] | 10 | 2018-12-04T18:33:57.000Z | 2022-03-26T17:00:20.000Z | flowutils/tests/__init__.py | DavHau/FlowUtils | c221a8d2ab5ecd09e340183b17d710c157109589 | [
"BSD-3-Clause"
] | 8 | 2015-05-16T19:17:47.000Z | 2022-03-21T14:49:24.000Z | flowutils/tests/__init__.py | DavHau/FlowUtils | c221a8d2ab5ecd09e340183b17d710c157109589 | [
"BSD-3-Clause"
] | 5 | 2019-03-15T01:11:36.000Z | 2021-05-14T09:21:26.000Z | import unittest
from .transform_tests import TransformsTestCase
from .compensation_tests import CompensationTestCase
if __name__ == "__main__":
unittest.main()
| 18.555556 | 52 | 0.808383 | 17 | 167 | 7.352941 | 0.647059 | 0.176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131737 | 167 | 8 | 53 | 20.875 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0.047904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
328ccb4faa296f13d22a8b2ef84aea5cdd97b0e5 | 50 | py | Python | icevision/core/components/__init__.py | ai-fast-track/mantisshrimp | cc6d6a4a048f6ddda2782b6593dcd6b083a673e4 | [
"Apache-2.0"
] | 580 | 2020-09-10T06:29:57.000Z | 2022-03-29T19:34:54.000Z | icevision/core/components/__init__.py | ai-fast-track/mantisshrimp | cc6d6a4a048f6ddda2782b6593dcd6b083a673e4 | [
"Apache-2.0"
] | 691 | 2020-09-05T03:08:34.000Z | 2022-03-31T23:47:06.000Z | icevision/core/components/__init__.py | lgvaz/mantisshrimp2 | 743cb7df0dae7eb1331fc2bb66fc9ca09db496cd | [
"Apache-2.0"
] | 105 | 2020-09-09T10:41:35.000Z | 2022-03-25T17:16:49.000Z | from icevision.core.components.composite import *
| 25 | 49 | 0.84 | 6 | 50 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 50 | 1 | 50 | 50 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
32973b21f2f987902e2973cb07d3c7bb9520f2e9 | 192 | py | Python | howfairis/exceptions/howfairis_unknown_platform_exception.py | cffbots/howfairis | 008552b7266e229bd38553631d7dfe3554df18b2 | [
"Apache-2.0"
] | 27 | 2020-09-10T10:04:56.000Z | 2022-02-07T23:24:13.000Z | howfairis/exceptions/howfairis_unknown_platform_exception.py | cffbots/howfairis | 008552b7266e229bd38553631d7dfe3554df18b2 | [
"Apache-2.0"
] | 297 | 2020-09-07T14:10:08.000Z | 2022-02-18T09:46:30.000Z | howfairis/exceptions/howfairis_unknown_platform_exception.py | cffbots/howfairis | 008552b7266e229bd38553631d7dfe3554df18b2 | [
"Apache-2.0"
] | 6 | 2020-09-10T12:58:37.000Z | 2022-03-11T10:17:21.000Z | from .howfairis_exception import HowfairisException
class HowfairisUnknownPlatformException(HowfairisException):
"""Raised when trying to use an unsupported code repository platform."""
| 32 | 76 | 0.828125 | 18 | 192 | 8.777778 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 192 | 5 | 77 | 38.4 | 0.929412 | 0.34375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
0863b5c1d5faebf9bef9d421d0dd597e9d274a48 | 9,428 | py | Python | core/samples/gmm_manager.py | hehewa/CAT | 448b5e9bc8b81706a325cfdcb2d7f44a38c9a6f1 | [
"Apache-2.0"
] | 1 | 2021-08-19T06:40:25.000Z | 2021-08-19T06:40:25.000Z | core/samples/gmm_manager.py | wahahamyt/CAT | 448b5e9bc8b81706a325cfdcb2d7f44a38c9a6f1 | [
"Apache-2.0"
] | null | null | null | core/samples/gmm_manager.py | wahahamyt/CAT | 448b5e9bc8b81706a325cfdcb2d7f44a38c9a6f1 | [
"Apache-2.0"
] | null | null | null | import os
import cv2
import numpy as np
import torch
import torchvision
from net.wae64 import WAE64
from tracking.options import opts
BIGNUM = 1e22 # e22
class postive_samples_manager():
def __init__(self, pos_num):
# postive samples
self.pos_features = []
# Distance matrix stores the square of the euclidean distance between each pair of samples. Initialise it to inf
self.distance_matrix = torch.ones((pos_num, pos_num), dtype=torch.float32).cuda() * BIGNUM
# Kernel matrix, used to update distance matrix
self.gram_matrix = torch.ones((pos_num, pos_num), dtype=torch.float32).cuda() * BIGNUM
# Find the minimum allowed sample weight.Samples are discarded if their weights become lower
self.minimum_sample_weight = opts['lr_init'] * np.power((1 - opts['lr_init']), (2 * pos_num))
# Initialize and allocate
# self.prior_weights = torch.zeros((pos_num, 1), dtype=torch.float32).cuda()
self.sample_weights = torch.zeros((pos_num, 1), dtype=torch.float32).cuda()
self.num_training_samples = 0
self.pos_num = pos_num
self.samples = []
self.pos_ious = []
self.step_vis = 0
self.last_added = -1
if opts["debug"]:
encoder = WAE64().cuda().eval()
checkpoint = torch.load(opts["ckpt_path"])
pretrain_dict = checkpoint['model_states']['net']
model_dict = encoder.state_dict()
pretrain_dict = {k: v for k, v in pretrain_dict.items() if k in model_dict
and model_dict[k].size() == v.size()}
encoder.load_state_dict(pretrain_dict)
self.decoder = encoder.decoder
del encoder
def insert(self, new_train_samples, ious):
if len(self.pos_features) < self.pos_num:
self.pos_features.append(new_train_samples)
self.samples.append(new_train_samples.mean(0))
self.pos_ious.append(ious)
else:
self.distance_matrix = compute_distance_matrix(self.samples)
self.gram_matrix = compute_gram_matrix(self.samples)
self.update_sample_space_model(new_train_samples, ious)
if opts["debug"]:
a = torchvision.utils.make_grid(self.decoder(torch.stack(self.samples)), nrow=10)
a = a.mul(255).byte()
a = a.cpu().numpy().transpose((1, 2, 0))
cv2.imshow("pos sample space", a)
# writer.add_image("SampleSpace", a, self.step_vis)
self.num_training_samples += 1
def update_sample_space_model(self, new_train_samples, ious):
# Set mean feature as the current features' representation
new_train_sample = torch.sum(new_train_samples, 0) / len(new_train_samples)
dist_vector = calc_distvector(new_train_sample.unsqueeze(0), torch.stack(self.samples))
new_sample_id = -1
# Find sample closest to the new sample
new_sample_min_dist, closest_sample_to_new_sample = torch.min(dist_vector), torch.argmin(dist_vector)
# Find the closest pair amongst existing samples
existing_samples_min_dist, closest_existing_sample_pair = torch.min(self.distance_matrix.view(-1)), torch.argmin(self.distance_matrix.view(-1))
closest_existing_sample1, closest_existing_sample2 = ind2sub(self.distance_matrix.shape, closest_existing_sample_pair)
if torch.equal(closest_existing_sample1, closest_existing_sample2):
os.error('Score matrix diagonal filled wrongly')
if new_sample_min_dist < existing_samples_min_dist:
new_sample_id = closest_sample_to_new_sample
# Update distance matrix and the gram matrix
self.update_distance_matrix(dist_vector, new_sample_id)
if new_sample_id >= 0:
# self.step_vis += 1
self.pos_features[new_sample_id] = new_train_samples
self.samples[new_sample_id] = new_train_samples.mean(0)
self.pos_ious[new_sample_id] = ious
if self.num_training_samples < self.pos_num:
self.num_training_samples += 1
self.last_added = new_sample_id
def update_distance_matrix(self, dist_vector, new_id):
if new_id >= 0:
# Update distance matrix
if self.distance_matrix[:, new_id].shape == dist_vector.t().shape:
self.distance_matrix[:, new_id] = dist_vector.t()
self.distance_matrix[new_id, :] = dist_vector
self.distance_matrix[new_id, new_id] = BIGNUM
else:
self.distance_matrix[:, new_id] = dist_vector
self.distance_matrix[new_id, :] = dist_vector
self.distance_matrix[new_id, new_id] = BIGNUM
elif new_id < 0:
pass
# The new sample is discared
class negative_samples_manger():
def __init__(self, neg_num):
# postive samples
self.neg_features = []
# Distance matrix stores the square of the euclidean distance between each pair of samples. Initialise it to inf
self.distance_matrix = torch.ones((neg_num, neg_num), dtype=torch.float32).cuda() * BIGNUM
# Kernel matrix, used to update distance matrix
self.gram_matrix = torch.ones((neg_num, neg_num), dtype=torch.float32).cuda() * BIGNUM
# Initialize and allocate
self.sample_weights = torch.zeros((neg_num, 1), dtype=torch.float32).cuda()
self.num_training_samples = 0
self.neg_num = neg_num
self.samples = []
self.neg_ious = []
def insert(self, new_train_samples, ious):
if len(self.neg_features) < self.neg_num:
self.neg_features.append(new_train_samples)
self.samples.append(new_train_samples.mean(0))
self.neg_ious.append(ious)
else:
self.distance_matrix = compute_distance_matrix(self.samples)
self.gram_matrix = compute_gram_matrix(self.samples)
self.update_sample_space_model(new_train_samples, ious)
self.num_training_samples += 1
def update_sample_space_model(self, new_train_samples, ious):
# Set mean feature as the current features' representation
new_train_sample = torch.sum(new_train_samples, 0) / len(new_train_samples)
dist_vector = calc_distvector(new_train_sample.unsqueeze(0), torch.stack(self.samples))
new_sample_id = -1
# Find sample closest to the new sample
new_sample_min_dist, closest_sample_to_new_sample = torch.min(dist_vector), torch.argmin(dist_vector)
# Find the closest pair amongst existing samples
existing_samples_min_dist, closest_existing_sample_pair = torch.min(self.distance_matrix.view(-1)), torch.argmin(self.distance_matrix.view(-1))
closest_existing_sample1, closest_existing_sample2 = ind2sub(self.distance_matrix.shape, closest_existing_sample_pair)
if torch.equal(closest_existing_sample1, closest_existing_sample2):
os.error('Score matrix diagonal filled wrongly')
if new_sample_min_dist < existing_samples_min_dist:
# Set the position of the merged sample
new_sample_id = closest_sample_to_new_sample
# Update distance matrix and the gram matrix
self.update_distance_matrix(dist_vector, new_sample_id)
if new_sample_id >= 0:
# self.step_vis += 1
self.neg_features[new_sample_id] = new_train_samples
self.samples[new_sample_id] = new_train_samples.mean(0)
self.neg_ious[new_sample_id] = ious
if self.num_training_samples < self.neg_num:
self.num_training_samples += 1
self.last_added = new_sample_id
def update_distance_matrix(self, dist_vector, new_id):
if new_id >= 0:
# Update distance matrix
if self.distance_matrix[:, new_id].shape == dist_vector.t().shape:
self.distance_matrix[:, new_id] = dist_vector.t()
self.distance_matrix[new_id, :] = dist_vector
self.distance_matrix[new_id, new_id] = BIGNUM
else:
self.distance_matrix[:, new_id] = dist_vector
self.distance_matrix[new_id, :] = dist_vector
self.distance_matrix[new_id, new_id] = BIGNUM
elif new_id < 0:
pass
# The new sample is discared
def compute_distance_matrix(x):
x = torch.stack(x)
m, n = x.shape
G = x.mm(x.t())
H = G.diagonal().repeat((m,1))
distance_matrix = H + H.t() - 2 * G
for i in range(distance_matrix.shape[0]):
distance_matrix[i][i] = BIGNUM
return distance_matrix
def compute_gram_matrix(x):
x = torch.stack(x)
gram_matrix = x.mm(x.t())
return gram_matrix
def sub2ind(array_shape, rows, cols):
ind = rows*array_shape[1] + cols
ind[ind < 0] = -1
ind[ind >= array_shape[0]*array_shape[1]] = -1
return ind
def ind2sub(array_shape, ind):
ind[ind < 0] = -1
ind[ind >= array_shape[0]*array_shape[1]] = -1
rows = (ind.int() / array_shape[1])
cols = ind.int() % array_shape[1]
return rows, cols
def calc_distvector(A, B):
m = A.shape[0]
n = B.shape[0]
M = A.mm(B.t())
H = A.pow(2).sum(dim=1).repeat(1, n)
K = B.pow(2).sum(dim=1).repeat(m, 1)
return torch.sqrt(-2 * M + H + K)
| 42.089286 | 151 | 0.648176 | 1,284 | 9,428 | 4.48053 | 0.140187 | 0.104641 | 0.075091 | 0.051104 | 0.755606 | 0.740309 | 0.727794 | 0.727794 | 0.725708 | 0.725708 | 0 | 0.015214 | 0.254031 | 9,428 | 223 | 152 | 42.278027 | 0.802787 | 0.123144 | 0 | 0.515723 | 0 | 0 | 0.016511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081761 | false | 0.012579 | 0.044025 | 0 | 0.169811 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
3eade1a05ec4e7d01542008e02e5a391b6ac45a2 | 66 | py | Python | snorkel/slicing/sf/__init__.py | melonwater211/snorkel | c5d00629e087130d1946bb6a85c58827790af425 | [
"Apache-2.0"
] | 2,906 | 2016-07-12T11:11:21.000Z | 2019-08-12T20:38:19.000Z | snorkel/slicing/sf/__init__.py | melonwater211/snorkel | c5d00629e087130d1946bb6a85c58827790af425 | [
"Apache-2.0"
] | 1,080 | 2016-07-12T21:07:22.000Z | 2019-08-12T19:33:54.000Z | snorkel/slicing/sf/__init__.py | melonwater211/snorkel | c5d00629e087130d1946bb6a85c58827790af425 | [
"Apache-2.0"
] | 609 | 2016-07-13T16:03:55.000Z | 2019-08-08T17:47:54.000Z | from .core import SlicingFunction, slicing_function # noqa: F401
| 33 | 65 | 0.80303 | 8 | 66 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.136364 | 66 | 1 | 66 | 66 | 0.859649 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
3eccebd63b29b119fdc34072908f7e06f61dd43c | 264 | py | Python | autoflow/workflow/components/preprocessing/reduce/random_trees_embedding.py | auto-flow/autoflow | f5903424ad8694d57741a0bd6dfeaba320ea6517 | [
"BSD-3-Clause"
] | 49 | 2020-04-16T11:17:28.000Z | 2020-05-06T01:32:44.000Z | autoflow/workflow/components/preprocessing/reduce/random_trees_embedding.py | auto-flow/autoflow | f5903424ad8694d57741a0bd6dfeaba320ea6517 | [
"BSD-3-Clause"
] | null | null | null | autoflow/workflow/components/preprocessing/reduce/random_trees_embedding.py | auto-flow/autoflow | f5903424ad8694d57741a0bd6dfeaba320ea6517 | [
"BSD-3-Clause"
] | 3 | 2020-04-17T00:53:24.000Z | 2020-04-23T03:04:26.000Z | from autoflow.workflow.components.feature_engineer_base import AutoFlowFeatureEngineerAlgorithm
__all__=["RandomTreesEmbedding"]
class RandomTreesEmbedding(AutoFlowFeatureEngineerAlgorithm):
module__ = "sklearn.ensemble"
class__ = "RandomTreesEmbedding"
| 33 | 95 | 0.844697 | 19 | 264 | 11.210526 | 0.789474 | 0.234742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087121 | 264 | 7 | 96 | 37.714286 | 0.883817 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 5 |
3ecd345ff641ba5f3649ff5e46a57ef4dfd7d673 | 18 | py | Python | abcdqc_batchserver/__init__.py | abcdqc/abcdqc_backend | 6b6b178c3e8d2bfe23a783c84463b23718c3d8e0 | [
"CC0-1.0"
] | null | null | null | abcdqc_batchserver/__init__.py | abcdqc/abcdqc_backend | 6b6b178c3e8d2bfe23a783c84463b23718c3d8e0 | [
"CC0-1.0"
] | null | null | null | abcdqc_batchserver/__init__.py | abcdqc/abcdqc_backend | 6b6b178c3e8d2bfe23a783c84463b23718c3d8e0 | [
"CC0-1.0"
] | null | null | null | # import main.py?
| 9 | 17 | 0.666667 | 3 | 18 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 18 | 1 | 18 | 18 | 0.8 | 0.833333 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
3eefe0b5d5fc2d1e79983f3be54dd50e700aa975 | 223 | py | Python | simconnect/__init__.py | patricksurry/pysimconnect | fa9b05d41d7f6ff0c3f6fa630cc514f57be8f6f0 | [
"MIT"
] | 3 | 2022-02-16T02:23:42.000Z | 2022-03-21T00:05:40.000Z | simconnect/__init__.py | patricksurry/pysimconnect | fa9b05d41d7f6ff0c3f6fa630cc514f57be8f6f0 | [
"MIT"
] | 2 | 2022-03-29T11:10:59.000Z | 2022-03-30T14:48:08.000Z | simconnect/__init__.py | patricksurry/pysimconnect | fa9b05d41d7f6ff0c3f6fa630cc514f57be8f6f0 | [
"MIT"
] | null | null | null | from .scdefs import *
from .sc import SimConnect, RECV_P
from .receiver import Receiver, ReceiverInstance
from .datadef import SimData, SimDataHandler , DataDefinition
from .scvars import SIMVARS, EVENTS, UNITS, DIMENSIONS
| 37.166667 | 61 | 0.816143 | 27 | 223 | 6.703704 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125561 | 223 | 5 | 62 | 44.6 | 0.928205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
f5ed39ce6bb91fba619acf3a10753ee680dc9cd3 | 228 | py | Python | server/server/organizations/signals.py | connectiveproject/connective | 8866082b2147feef0e5254ac4215987b9d881396 | [
"MIT"
] | 4 | 2021-07-05T10:49:26.000Z | 2021-11-24T11:34:43.000Z | server/server/organizations/signals.py | connectiveproject/connective | 8866082b2147feef0e5254ac4215987b9d881396 | [
"MIT"
] | 39 | 2021-06-21T15:02:37.000Z | 2022-02-28T15:07:42.000Z | server/server/organizations/signals.py | connectiveproject/connective | 8866082b2147feef0e5254ac4215987b9d881396 | [
"MIT"
] | 17 | 2021-06-16T08:59:45.000Z | 2021-09-29T11:35:38.000Z | from django.dispatch import Signal, receiver
activity_order_created_signal: Signal = Signal()
@receiver(activity_order_created_signal)
def activity_order_created(sender, **kwargs): # noqa:F811
pass # do nothing for now
| 25.333333 | 58 | 0.789474 | 30 | 228 | 5.733333 | 0.633333 | 0.226744 | 0.348837 | 0.313953 | 0.465116 | 0.465116 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.131579 | 228 | 8 | 59 | 28.5 | 0.853535 | 0.122807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
f5ee99ec5e1a50b98c9f975092cf474550fcb0c0 | 200 | py | Python | tests/hypothesis.py | aluhrs13/HPI | e750666e30e8987f3a4c46755857dc85dd64446c | [
"MIT"
] | 1,026 | 2020-03-16T16:53:29.000Z | 2022-03-29T16:03:38.000Z | tests/hypothesis.py | aluhrs13/HPI | e750666e30e8987f3a4c46755857dc85dd64446c | [
"MIT"
] | 102 | 2020-03-18T22:53:29.000Z | 2022-03-22T00:34:46.000Z | tests/hypothesis.py | aluhrs13/HPI | e750666e30e8987f3a4c46755857dc85dd64446c | [
"MIT"
] | 50 | 2020-03-17T21:00:34.000Z | 2022-03-28T08:37:13.000Z | from .common import skip_if_not_karlicoss as pytestmark
def test() -> None:
from my.hypothesis import pages, highlights
assert len(list(pages())) > 10
assert len(list(highlights())) > 10
| 28.571429 | 55 | 0.71 | 28 | 200 | 4.964286 | 0.714286 | 0.129496 | 0.18705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.18 | 200 | 6 | 56 | 33.333333 | 0.823171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
f5fdfd80b4c8be3c3697b1d2126ce066ea392ffc | 24 | py | Python | hlfbt/serial_console/_argparse/__init__.py | hlfbt/serial-console | f9c770ea841c8ac1283b84f5883326363d4db1a8 | [
"MIT"
] | 1 | 2020-04-15T15:29:45.000Z | 2020-04-15T15:29:45.000Z | hlfbt/serial_console/_argparse/__init__.py | hlfbt/serial-console | f9c770ea841c8ac1283b84f5883326363d4db1a8 | [
"MIT"
] | null | null | null | hlfbt/serial_console/_argparse/__init__.py | hlfbt/serial-console | f9c770ea841c8ac1283b84f5883326363d4db1a8 | [
"MIT"
] | null | null | null | from .formatter import * | 24 | 24 | 0.791667 | 3 | 24 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
eb0227f1807b356a08258a3b6e3e9542a5382d0f | 5,621 | py | Python | tests/osm/helpers.py | CN-UPB/python-mano-wrappers | 8e3607feaa97bc3e2c906ee8e4b25b21853ea6cf | [
"Apache-2.0"
] | null | null | null | tests/osm/helpers.py | CN-UPB/python-mano-wrappers | 8e3607feaa97bc3e2c906ee8e4b25b21853ea6cf | [
"Apache-2.0"
] | null | null | null | tests/osm/helpers.py | CN-UPB/python-mano-wrappers | 8e3607feaa97bc3e2c906ee8e4b25b21853ea6cf | [
"Apache-2.0"
] | null | null | null | import json
import time
from wrappers import OSMClient
from .config import *
class Helpers():
def _upload_test_vnf():
time.sleep(3) # Wait
osm_vnfpkgm = OSMClient.VnfPkgm(HOST_URL)
osm_auth = OSMClient.Auth(HOST_URL)
_token = json.loads(osm_auth.auth(username=USERNAME, password=PASSWORD))
_token = json.loads(_token["data"])
response = json.loads(osm_vnfpkgm.post_vnf_packages(token=_token["id"],
package_path="tests/samples/test_osm_cirros_vnfd.tar.gz"))
if response["error"]:
return True
else:
return False
def _delete_test_vnf(vnfname="test_osm_cirros_vnfd"):
time.sleep(3) # Wait
osm_vnfpkgm = OSMClient.VnfPkgm(HOST_URL)
osm_auth = OSMClient.Auth(HOST_URL)
_token = json.loads(osm_auth.auth(username=USERNAME, password=PASSWORD))
_token = json.loads(_token["data"])
_vnfd_list = json.loads(osm_vnfpkgm.get_vnf_packages(token=_token["id"]))
_vnfd_list = json.loads(_vnfd_list["data"])
_vnfd = None
for _v in _vnfd_list:
if vnfname == _v['id']:
_vnfd = _v['_id']
response = None
if _vnfd:
response = json.loads(osm_vnfpkgm.delete_vnf_packages_vnfpkgid(
token=_token["id"],
vnfPkgId=_vnfd))
def _upload_test_nsd():
time.sleep(3) # Wait
osm_vnfpkgm = OSMClient.VnfPkgm(HOST_URL)
osm_nsd = OSMClient.Nsd(HOST_URL)
osm_auth = OSMClient.Auth(HOST_URL)
_token = json.loads(osm_auth.auth(username=USERNAME, password=PASSWORD))
_token = json.loads(_token["data"])
osm_vnfpkgm.post_vnf_packages(token=_token["id"],
package_path="tests/samples/test_osm_cirros_vnfd.tar.gz")
response = json.loads(osm_nsd.post_ns_descriptors(token=_token["id"],
package_path="tests/samples/test_osm_cirros_nsd.tar.gz"))
if response["error"]:
return True
else:
return False
def _delete_test_nsd(nsdname="test_osm_cirros_2vnf_nsd"):
osm_vnfpkgm = OSMClient.VnfPkgm(HOST_URL)
osm_nsd = OSMClient.Nsd(HOST_URL)
osm_auth = OSMClient.Auth(HOST_URL)
_token = json.loads(osm_auth.auth(username=USERNAME, password=PASSWORD))
_token = json.loads(_token["data"])
_nsd_list = json.loads(osm_nsd.get_ns_descriptors(token=_token["id"]))
_nsd_list = json.loads(_nsd_list["data"])
_nsd = None
for _n in _nsd_list:
if "test_osm_cirros_2vnf_nsd" == _n['id']:
_nsd = _n['_id']
time.sleep(10) # Wait for NSD onboarding
response = json.loads(osm_nsd.delete_ns_descriptors_nsdinfoid(
token=_token["id"],
nsdinfoid=_nsd))
time.sleep(2) # Wait for NSD onboarding
_vnfd_list = json.loads(osm_vnfpkgm.get_vnf_packages(token=_token["id"]))
_vnfd_list = json.loads(_vnfd_list["data"])
_vnfd = None
for _v in _vnfd_list:
if nsdname == _v['id']:
_vnfd = _v['_id']
response = None
if _vnfd:
response = json.loads(osm_vnfpkgm.delete_vnf_packages_vnfpkgid(
token=_token["id"],
vnfPkgId=_vnfd))
def _upload_reference_vnfd_for_nsd(_referencevnfdname="test_osm_cirros_vnfd"):
time.sleep(3) # Wait
osm_vnfpkgm = OSMClient.VnfPkgm(HOST_URL)
osm_auth = OSMClient.Auth(HOST_URL)
_token = json.loads(osm_auth.auth(username=USERNAME, password=PASSWORD))
_token = json.loads(_token["data"])
if _referencevnfdname:
response = json.loads(osm_vnfpkgm.post_vnf_packages(token=_token["id"],
package_path="tests/samples/test_osm_cirros_vnfd.tar.gz"))
if response["error"]:
return True
else:
return False
def _upload_test_ns_instance():
time.sleep(3) # Wait
osm_nslcm = OSMClient.Nslcm(HOST_URL)
osm_auth = OSMClient.Auth(HOST_URL)
_token = json.loads(osm_auth.auth(username=USERNAME, password=PASSWORD))
_token = json.loads(_token["data"])
response = json.loads(osm_nslcm.post_ns_instances(token=_token["id"],
nsDescription = NSDESCRIPTION, nsName = NSNAME,
nsdId = NSDID, vimAccountId = VIMACCOUNTID))
response = json.loads(response["data"])
def _delete_test_ns_instance():
time.sleep(3) # Wait
osm_nslcm = OSMClient.Nslcm(HOST_URL)
osm_auth = OSMClient.Auth(HOST_URL)
_token = json.loads(osm_auth.auth(username=USERNAME, password=PASSWORD))
_token = json.loads(_token["data"])
_ns_list = json.loads(osm_nslcm.get_ns_instances(token=_token["id"]))
_ns_list = json.loads(_ns_list["data"])
_ns = None
for _n in _ns_list:
if "test" == _n['short-name']:
_ns = _n['_id']
# time.sleep(5) #wait for NS Creation
response = None
if _ns:
response = json.loads(osm_nslcm.post_ns_instances_nsinstanceid_terminate(
token=_token["id"],
nsInstanceId=_ns))
_rid = response["data"]
| 37.225166 | 86 | 0.581035 | 647 | 5,621 | 4.680062 | 0.122102 | 0.09214 | 0.075297 | 0.05284 | 0.768494 | 0.715984 | 0.715984 | 0.715984 | 0.696169 | 0.696169 | 0 | 0.00311 | 0.313467 | 5,621 | 151 | 87 | 37.225166 | 0.78155 | 0.020993 | 0 | 0.635593 | 0 | 0 | 0.068451 | 0.038413 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059322 | false | 0.059322 | 0.033898 | 0 | 0.152542 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
eb3d2f87c870ec42c4a41901601a4b538492ecab | 157 | py | Python | django_jinja/builtins/__init__.py | hartym/django-jinja | 97c93c37b5d9ccc4b2ae34e1fc2f63929780e271 | [
"BSD-3-Clause"
] | 1 | 2015-11-07T12:37:58.000Z | 2015-11-07T12:37:58.000Z | django_jinja/builtins/__init__.py | hartym/django-jinja | 97c93c37b5d9ccc4b2ae34e1fc2f63929780e271 | [
"BSD-3-Clause"
] | null | null | null | django_jinja/builtins/__init__.py | hartym/django-jinja | 97c93c37b5d9ccc4b2ae34e1fc2f63929780e271 | [
"BSD-3-Clause"
] | 1 | 2021-02-12T14:15:58.000Z | 2021-02-12T14:15:58.000Z | # -*- coding: utf-8 -*-
from . import filters
from . import global_context
from . import extensions
__all__ = ['filters', 'global_context', 'extensions']
| 17.444444 | 53 | 0.694268 | 18 | 157 | 5.722222 | 0.555556 | 0.291262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.159236 | 157 | 8 | 54 | 19.625 | 0.772727 | 0.133758 | 0 | 0 | 0 | 0 | 0.233083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
de3fc3d77815eb920becf32fb10cf7ae6acf467f | 131 | py | Python | pythonshow3/tests/test_first.py | amol-/blackhole | 8dc1c13ce9fa4565a67fd9cb2a07b69fba894244 | [
"MIT"
] | 1 | 2019-03-22T17:00:03.000Z | 2019-03-22T17:00:03.000Z | pythonshow3/tests/test_first.py | amol-/blackhole | 8dc1c13ce9fa4565a67fd9cb2a07b69fba894244 | [
"MIT"
] | null | null | null | pythonshow3/tests/test_first.py | amol-/blackhole | 8dc1c13ce9fa4565a67fd9cb2a07b69fba894244 | [
"MIT"
] | null | null | null | import unittest
class TestFirstCase(unittest.TestCase):
def test_one(self):
pass
def test_two(self):
pass | 16.375 | 39 | 0.656489 | 16 | 131 | 5.25 | 0.6875 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267176 | 131 | 8 | 40 | 16.375 | 0.875 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.166667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 5 |
de58e421884e640f946f877264fd4c02d833351d | 121 | py | Python | Binance-/ui_to_py.py | SeveruS400/Binance-Api--Python | 660b8c3577ddaa0b5aeb08f7e543bec935ed4cfd | [
"MIT"
] | null | null | null | Binance-/ui_to_py.py | SeveruS400/Binance-Api--Python | 660b8c3577ddaa0b5aeb08f7e543bec935ed4cfd | [
"MIT"
] | null | null | null | Binance-/ui_to_py.py | SeveruS400/Binance-Api--Python | 660b8c3577ddaa0b5aeb08f7e543bec935ed4cfd | [
"MIT"
] | null | null | null | from PyQt5 import uic
with open('Coin_Trader.py','w',encoding="utf-8") as fout:
uic.compileUi('Coin_Trader.ui',fout) | 30.25 | 57 | 0.719008 | 21 | 121 | 4.047619 | 0.809524 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.107438 | 121 | 4 | 58 | 30.25 | 0.768519 | 0 | 0 | 0 | 0 | 0 | 0.278689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
de609e2b367b281eeca21161b11fcf4c2fe7bfea | 157 | py | Python | learnet/initializers.py | ker-zhao/Learnet | ebac1810016c0dab96286331fa08f26e338115bc | [
"Apache-2.0"
] | 2 | 2020-01-22T08:37:29.000Z | 2020-03-10T13:08:19.000Z | learnet/initializers.py | ker-zhao/Learnet | ebac1810016c0dab96286331fa08f26e338115bc | [
"Apache-2.0"
] | null | null | null | learnet/initializers.py | ker-zhao/Learnet | ebac1810016c0dab96286331fa08f26e338115bc | [
"Apache-2.0"
] | null | null | null | from .core import lib
def normal(shape):
scale = 0.1
return lib.np.random.randn(*shape) * scale
def zeros(shape):
return lib.np.zeros(shape)
| 14.272727 | 46 | 0.66242 | 25 | 157 | 4.16 | 0.6 | 0.192308 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.210191 | 157 | 10 | 47 | 15.7 | 0.822581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
de71518081a9adc572af0ce14a0d88c49f601126 | 170 | py | Python | utils/authentication.py | pwqbot/eoj3 | 46be6a6f192798e74eab7b327bb8df7ca73575d9 | [
"MIT"
] | 107 | 2017-03-15T11:53:45.000Z | 2019-09-06T11:23:44.000Z | utils/authentication.py | OS-EDU/eoj3 | f117dcd4e3cea7d150c3e3794e7255e00d486c88 | [
"MIT"
] | 27 | 2019-09-24T12:44:48.000Z | 2022-03-11T23:18:21.000Z | utils/authentication.py | OS-EDU/eoj3 | f117dcd4e3cea7d150c3e3794e7255e00d486c88 | [
"MIT"
] | 25 | 2019-10-11T10:39:12.000Z | 2022-03-18T05:15:57.000Z | from rest_framework.authentication import SessionAuthentication
class UnsafeSessionAuthentication(SessionAuthentication):
def enforce_csrf(self, request):
return
| 24.285714 | 63 | 0.847059 | 15 | 170 | 9.466667 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105882 | 170 | 6 | 64 | 28.333333 | 0.934211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
de8a467965195e9a61c3bd97511ca85b29081b06 | 307 | py | Python | test.py | deprekate/fasta36 | 239b58f8b860aca66c304a668129f41c26c35c94 | [
"Apache-2.0"
] | null | null | null | test.py | deprekate/fasta36 | 239b58f8b860aca66c304a668129f41c26c35c94 | [
"Apache-2.0"
] | null | null | null | test.py | deprekate/fasta36 | 239b58f8b860aca66c304a668129f41c26c35c94 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import fasta36
import faulthandler; faulthandler.enable()
seq = ">test\nMTGLTIKQEAFCQAYIETGNASEAYRTAYAADKMKPEVVHVQACKLQDNPKIALRIKELRGEIKQRHNVTVDSLLAELEEARQKALSAETPQSSAAVAATMGKAKLVGLDKQIIDHTSSDGTMATKPTTIRLVGVDPANGKPS"
filename = '10702.1.fas'
print(fasta36.best_pid(seq, filename))
| 30.7 | 158 | 0.859935 | 23 | 307 | 11.434783 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038062 | 0.058632 | 307 | 9 | 159 | 34.111111 | 0.871972 | 0.068404 | 0 | 0 | 0 | 0 | 0.564912 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
dea4ed6497eb6705b1a44ad6f284a4dc27c5fdce | 226 | py | Python | src/app/pages/dmca.py | ThatOneAnimeGuy/seiso | f8ad20a0ec59b86b88149723eafc8e6d9f8be451 | [
"BSD-3-Clause"
] | 3 | 2021-11-08T05:23:08.000Z | 2021-11-08T09:46:51.000Z | src/app/pages/dmca.py | ThatOneAnimeGuy/seiso | f8ad20a0ec59b86b88149723eafc8e6d9f8be451 | [
"BSD-3-Clause"
] | null | null | null | src/app/pages/dmca.py | ThatOneAnimeGuy/seiso | f8ad20a0ec59b86b88149723eafc8e6d9f8be451 | [
"BSD-3-Clause"
] | 2 | 2021-11-08T05:23:12.000Z | 2021-11-16T01:16:35.000Z | from flask import Blueprint, make_response, redirect, url_for
from ...utils.utils import make_template
dmca = Blueprint('dmca', __name__)
@dmca.route('/dmca')
def get_dmca():
return make_template('dmca/dmca.html', 200)
| 22.6 | 61 | 0.743363 | 32 | 226 | 4.96875 | 0.59375 | 0.150943 | 0.201258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.123894 | 226 | 9 | 62 | 25.111111 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0.10177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.666667 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 5 |
dec07513c837dbfa7b53262ecf0f12b7a37a9d25 | 185 | py | Python | article/admin.py | dolikemc/hostthewaytry | a1dcbc596da18aac760a18773bb89896a44e842d | [
"BSD-2-Clause"
] | null | null | null | article/admin.py | dolikemc/hostthewaytry | a1dcbc596da18aac760a18773bb89896a44e842d | [
"BSD-2-Clause"
] | 38 | 2019-01-22T10:50:01.000Z | 2019-01-28T15:19:15.000Z | article/admin.py | dolikemc/hostthewaytry | a1dcbc596da18aac760a18773bb89896a44e842d | [
"BSD-2-Clause"
] | null | null | null | from django.contrib import admin
from article.models import TextArticle, ImageArticle
# Register your models here.
admin.site.register(TextArticle)
admin.site.register(ImageArticle)
| 20.555556 | 52 | 0.827027 | 23 | 185 | 6.652174 | 0.565217 | 0.117647 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102703 | 185 | 8 | 53 | 23.125 | 0.921687 | 0.140541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
dee738e3e5e65fda04e09cf67541c57fc73fe1f1 | 117 | py | Python | fake_site_pkg/null_ast.py | aroberge/pyextensions | cd18f6936df2c4ffafacb445fe77f8908d67f4f1 | [
"MIT"
] | null | null | null | fake_site_pkg/null_ast.py | aroberge/pyextensions | cd18f6936df2c4ffafacb445fe77f8908d67f4f1 | [
"MIT"
] | null | null | null | fake_site_pkg/null_ast.py | aroberge/pyextensions | cd18f6936df2c4ffafacb445fe77f8908d67f4f1 | [
"MIT"
] | null | null | null | """Returns the same AST tree it receives as input.
Used for testing.
"""
def transform_ast(tree):
return tree
| 13 | 50 | 0.700855 | 18 | 117 | 4.5 | 0.833333 | 0.17284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 117 | 8 | 51 | 14.625 | 0.870968 | 0.564103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
721369f6460802695eefd5906a87304a34bda4d5 | 123 | py | Python | qqc_include.py | barneydesmond/qqc | 8fb89892a600931c5b93d9e78420b9676ffb6b28 | [
"MIT"
] | null | null | null | qqc_include.py | barneydesmond/qqc | 8fb89892a600931c5b93d9e78420b9676ffb6b28 | [
"MIT"
] | null | null | null | qqc_include.py | barneydesmond/qqc | 8fb89892a600931c5b93d9e78420b9676ffb6b28 | [
"MIT"
] | null | null | null | db_host = 'localhost'
db_name = 'qqc_PROJECTNAME'
db_user = 'qqc_PROJECTNAME'
db_pass = 'SECUREPASSWORD'
__tabout = "\t"
| 15.375 | 27 | 0.731707 | 16 | 123 | 5.125 | 0.6875 | 0.341463 | 0.390244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138211 | 123 | 7 | 28 | 17.571429 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0.45082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
7235ac1a044f9d520a64152480524da8755d0a8a | 8,641 | py | Python | tests/api/test_confusion_matrix.py | RUrlus/ModelMetricUncertainty | f401a25dd196d6e4edf4901fcfee4b56ebd7c10b | [
"Apache-2.0"
] | null | null | null | tests/api/test_confusion_matrix.py | RUrlus/ModelMetricUncertainty | f401a25dd196d6e4edf4901fcfee4b56ebd7c10b | [
"Apache-2.0"
] | 11 | 2021-12-08T10:34:17.000Z | 2022-01-20T13:40:05.000Z | tests/api/test_confusion_matrix.py | RUrlus/ModelMetricUncertainty | f401a25dd196d6e4edf4901fcfee4b56ebd7c10b | [
"Apache-2.0"
] | null | null | null | import itertools
from pandas.core.reshape.reshape import _stack_multi_column_index
import pytest
import sklearn as sk
import sklearn.metrics as skm
import numpy as np
import mmu
from mmu.commons._testing import generate_test_labels
from mmu.commons._testing import greater_equal_tol
import mmu.lib._mmu_core as _core
Y_DTYPES = [
bool,
np.bool_,
int,
np.int32,
np.int64,
float,
np.float32,
np.float64,
]
YHAT_DTYPES = [
bool,
np.bool_,
int,
np.int32,
np.int64,
float,
np.float32,
np.float64,
]
PROBA_DTYPES = [
float,
np.float32,
np.float64,
]
def test_confusion_matrix():
"""Check that supported dtypes are handled."""
for y_dtype, yhat_dtype in itertools.product(Y_DTYPES, YHAT_DTYPES):
_, yhat, y = generate_test_labels(
N=1000,
y_dtype=y_dtype,
yhat_dtype=yhat_dtype
)
conf_mat = mmu.confusion_matrix(y, yhat)
sk_conf_mat = skm.confusion_matrix(y, yhat)
assert np.array_equal(conf_mat, sk_conf_mat), (
f"test failed for dtypes: {y_dtype}, {yhat_dtype}"
)
def test_confusion_matrix_shapes():
"""Check if different shapes are handled correctly."""
_, yhat, y = generate_test_labels(1000)
y_shapes = [y, y[None, :], y[:, None]]
yhat_shapes = [yhat, yhat[None, :], yhat[:, None]]
sk_conf_mat = skm.confusion_matrix(y, yhat)
for y_, yhat_ in itertools.product(y_shapes, yhat_shapes):
conf_mat = mmu.confusion_matrix(y_, yhat_)
assert np.array_equal(conf_mat, sk_conf_mat), (
f"test failed for shape: {y_.shape}, {yhat_.shape}"
)
# unequal length
with pytest.raises(ValueError):
mmu.confusion_matrix(y, yhat[:100])
with pytest.raises(ValueError):
mmu.confusion_matrix(y[:100], yhat)
# 2d with more than one row/column for the second dimension or 3d
y_shapes = [
np.tile(y[:, None], 2),
np.tile(y[None, :], (2, 1)),
np.tile(y[None, :], (2, 2, 1)),
]
yhat_shapes = [
np.tile(yhat[:, None], 2),
np.tile(yhat[None, :], (2, 1)),
np.tile(yhat[None, :], (2, 2, 1)),
]
for y_, yhat_ in itertools.product(y_shapes, yhat_shapes):
with pytest.raises(ValueError):
mmu.confusion_matrix(y_, yhat_)
def test_confusion_matrix_order():
"""Check that different orders and shapes are handled correctly."""
_, yhat, y = generate_test_labels(1000)
y_orders = [
y.copy(order='C'),
y.copy(order='F'),
y[None, :].copy(order='C'),
y[:, None].copy(order='C'),
y[None, :].copy(order='F'),
y[:, None].copy(order='F'),
]
yhat_orders = [
yhat.copy(order='C'),
yhat.copy(order='F'),
yhat[None, :].copy(order='C'),
yhat[:, None].copy(order='C'),
yhat[None, :].copy(order='F'),
yhat[:, None].copy(order='F'),
]
sk_conf_mat = skm.confusion_matrix(y, yhat)
for y_, yhat_ in itertools.product(y_orders, yhat_orders):
conf_mat = mmu.confusion_matrix(y_, yhat_)
assert np.array_equal(conf_mat, sk_conf_mat), (
f"test failed for shape: {y_.shape}, {yhat_.shape}"
)
def test_confusion_matrix_proba():
"""Check that supported dtypes are handled correctly."""
thresholds = np.random.uniform(0, 1, 10)
for y_dtype, proba_dtype, threshold in itertools.product(
Y_DTYPES, PROBA_DTYPES, thresholds
):
proba, _, y = generate_test_labels(
N=1000,
y_dtype=y_dtype,
proba_dtype=proba_dtype
)
yhat = greater_equal_tol(proba, threshold)
sk_conf_mat = skm.confusion_matrix(y, yhat)
conf_mat = mmu.confusion_matrix(
y, scores=proba, threshold=threshold
)
assert np.array_equal(conf_mat, sk_conf_mat), (
f"test failed for dtypes: {y_dtype}, {proba_dtype}"
f" and threshold: {threshold}"
)
def test_confusion_matrix_proba_shapes():
"""Check if different shapes are handled correctly."""
proba, _, y = generate_test_labels(1000)
y_shapes = [y, y[None, :], y[:, None]]
proba_shapes = [proba, proba[None, :], proba[:, None]]
yhat = greater_equal_tol(proba, 0.5)
sk_conf_mat = skm.confusion_matrix(y, yhat)
for y_, proba_ in itertools.product(y_shapes, proba_shapes):
conf_mat = mmu.confusion_matrix(
y, scores=proba, threshold=0.5
)
assert np.array_equal(conf_mat, sk_conf_mat), (
f"test failed for shape: {y_.shape}, {proba_.shape}"
)
# unequal length
with pytest.raises(ValueError):
mmu.confusion_matrix(y, scores=proba[:100])
with pytest.raises(ValueError):
mmu.confusion_matrix(y[:100], scores=proba)
# 2d with more than one row/column for the second dimension or 3d
y_shapes = [
np.tile(y[:, None], 2),
np.tile(y[None, :], (2, 1)),
np.tile(y[None, :], (2, 2, 1)),
]
proba_shapes = [
np.tile(proba[:, None], 2),
np.tile(proba[None, :], (2, 1)),
proba[None, None, :],
np.tile(proba[None, :], (2, 2, 1)),
]
for y_, proba_ in itertools.product(y_shapes, proba_shapes):
with pytest.raises(ValueError):
mmu.confusion_matrix(y_, scores=proba_)
def test_confusion_matrix_proba_order():
"""Check that different orders and shapes are handled correctly."""
proba, _, y = generate_test_labels(1000)
y_orders = [
y.copy(order='C'),
y.copy(order='F'),
y[None, :].copy(order='C'),
y[:, None].copy(order='C'),
y[None, :].copy(order='F'),
y[:, None].copy(order='F'),
]
proba_orders = [
proba.copy(order='C'),
proba.copy(order='F'),
proba[None, :].copy(order='C'),
proba[:, None].copy(order='C'),
proba[None, :].copy(order='F'),
proba[:, None].copy(order='F'),
]
yhat = greater_equal_tol(proba, 0.5)
sk_conf_mat = skm.confusion_matrix(y, yhat)
for y_, proba_ in itertools.product(y_orders, proba_orders):
conf_mat = mmu.confusion_matrix(y_, scores=proba_)
assert np.array_equal(conf_mat, sk_conf_mat), (
f"test failed for shape: {y_.shape}, {proba.shape}"
)
def test_confusion_matrix_runs():
for y_dtype, yhat_dtype in itertools.product(Y_DTYPES, YHAT_DTYPES):
_, yhat, y = generate_test_labels(
N=4000,
y_dtype=y_dtype,
yhat_dtype=yhat_dtype
)
yhat = yhat.reshape((1000, 4), order='F')
y = y.reshape((1000, 4), order='F')
sk_conf_mats = np.empty((4, 4), dtype=np.int64)
for i in range(4):
sk_conf_mats[i, :] = skm.confusion_matrix(y[:, i], yhat[:, i]).flatten()
conf_mat = mmu.confusion_matrices(y, yhat)
assert np.array_equal(conf_mat, sk_conf_mats), (
f"test failed for dtypes: {y_dtype}, {yhat_dtype}"
)
def test_confusion_matrix_scores_runs():
for y_dtype, proba_dtype in itertools.product(Y_DTYPES, PROBA_DTYPES):
scores, _, y = generate_test_labels(
N=4000,
y_dtype=y_dtype,
proba_dtype=proba_dtype
)
scores = scores.reshape((1000, 4), order='F')
y = y.reshape((1000, 4), order='F')
sk_conf_mats = np.empty((4, 4), dtype=np.int64)
for i in range(4):
yhat = greater_equal_tol(scores[:, i], 0.5, return_dtype=np.bool_)
sk_conf_mats[i, :] = skm.confusion_matrix(y[:, i], yhat).flatten()
conf_mat = mmu.confusion_matrices(y, scores=scores, threshold=0.5)
assert np.array_equal(conf_mat, sk_conf_mats), (
f"test failed for dtypes: {y_dtype}, {proba_dtype}"
)
def test_confusion_matrices_thresholds():
thresholds = np.random.uniform(0, 1, 10)
for y_dtype, proba_dtype in itertools.product(Y_DTYPES, PROBA_DTYPES):
scores, _, y = generate_test_labels(
N=1000,
y_dtype=y_dtype,
proba_dtype=proba_dtype
)
sk_conf_mats = np.empty((10, 4), dtype=np.int64)
for i in range(10):
yhat = greater_equal_tol(scores, thresholds[i], return_dtype=np.bool_)
sk_conf_mats[i, :] = skm.confusion_matrix(y, yhat).flatten()
conf_mat = mmu.confusion_matrices_thresholds(y, scores=scores, thresholds=thresholds)
assert np.array_equal(conf_mat, sk_conf_mats), (
f"test failed for dtypes: {y_dtype}, {proba_dtype}"
)
| 31.885609 | 93 | 0.600162 | 1,180 | 8,641 | 4.15339 | 0.090678 | 0.042848 | 0.068557 | 0.046521 | 0.867578 | 0.789431 | 0.772699 | 0.723322 | 0.681494 | 0.629463 | 0 | 0.023668 | 0.26166 | 8,641 | 270 | 94 | 32.003704 | 0.744514 | 0.054623 | 0 | 0.522523 | 0 | 0 | 0.059742 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 1 | 0.040541 | false | 0 | 0.045045 | 0 | 0.085586 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
9d0685786c6c4a2375f5f9776701d5064dd6b86e | 49 | py | Python | 10-Embedding/py_embedding.py | arttet/boost-python-examples | 3b4ac42adadf8a721be982974b53d86e2e1e3373 | [
"MIT"
] | null | null | null | 10-Embedding/py_embedding.py | arttet/boost-python-examples | 3b4ac42adadf8a721be982974b53d86e2e1e3373 | [
"MIT"
] | null | null | null | 10-Embedding/py_embedding.py | arttet/boost-python-examples | 3b4ac42adadf8a721be982974b53d86e2e1e3373 | [
"MIT"
] | null | null | null | print("Object was {}".format(precreated_object))
| 24.5 | 48 | 0.755102 | 6 | 49 | 6 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 49 | 1 | 49 | 49 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.265306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
9d1b64437ea2be8e80b022d59266608b671650d3 | 22 | py | Python | flaskblog/users/__init__.py | Va1a/flask-cms | 6f32767c10f470e51ed78f8a199a43daf5b7e2ec | [
"Apache-2.0"
] | null | null | null | flaskblog/users/__init__.py | Va1a/flask-cms | 6f32767c10f470e51ed78f8a199a43daf5b7e2ec | [
"Apache-2.0"
] | null | null | null | flaskblog/users/__init__.py | Va1a/flask-cms | 6f32767c10f470e51ed78f8a199a43daf5b7e2ec | [
"Apache-2.0"
] | null | null | null | #this file is required | 22 | 22 | 0.818182 | 4 | 22 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.947368 | 0.954545 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
19eb59459fe344bfba4d75614eaed559b7b355dc | 287 | py | Python | lib/datasets/__init__.py | Wastoon/TSAL | 0f880c600f1a2e128de9c9fdfb94ae0776948cbe | [
"Apache-2.0"
] | 3 | 2021-01-26T07:36:08.000Z | 2021-04-25T13:47:12.000Z | lib/datasets/__init__.py | Wastoon/TSAL | 0f880c600f1a2e128de9c9fdfb94ae0776948cbe | [
"Apache-2.0"
] | null | null | null | lib/datasets/__init__.py | Wastoon/TSAL | 0f880c600f1a2e128de9c9fdfb94ae0776948cbe | [
"Apache-2.0"
] | null | null | null | from .GeneralDataset import GeneralDataset
from .VideoDataset import VideoDataset
from .dataset_utils import pil_loader
from .point_meta import Point_Meta
from .dataset_utils import PTSconvert2str
from .dataset_utils import PTSconvert2box
from .dataset_utils import merge_lists_from_file | 41 | 48 | 0.881533 | 38 | 287 | 6.394737 | 0.394737 | 0.18107 | 0.263374 | 0.36214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.094077 | 287 | 7 | 48 | 41 | 0.926923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
c20c64d24fce511f5782cc2868abed1e66288f1d | 121 | py | Python | neverbounce/__init__.py | martinkosir/neverbounce-python | 8d8b3f381dbff2a753a8770fac0d2bfab80d5bec | [
"MIT"
] | 7 | 2016-09-25T20:26:54.000Z | 2021-02-26T21:25:44.000Z | neverbounce/__init__.py | martinkosir/neverbounce-python | 8d8b3f381dbff2a753a8770fac0d2bfab80d5bec | [
"MIT"
] | 3 | 2016-10-25T03:47:45.000Z | 2017-08-28T12:39:27.000Z | neverbounce/__init__.py | martinkosir/neverbounce-python | 8d8b3f381dbff2a753a8770fac0d2bfab80d5bec | [
"MIT"
] | 1 | 2016-09-25T20:27:25.000Z | 2016-09-25T20:27:25.000Z | from neverbounce.client import NeverBounce
from neverbounce.exceptions import NeverBounceAPIError
__version__ = '0.2.0'
| 24.2 | 54 | 0.842975 | 14 | 121 | 7 | 0.642857 | 0.306122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0.099174 | 121 | 4 | 55 | 30.25 | 0.87156 | 0 | 0 | 0 | 0 | 0 | 0.041322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
c2297d72735345bc0a73985a123776ef29bc37ae | 98 | py | Python | rudder/__init__.py | MSAdministrator/conductor | 62ed869cd06d2a1735317f39396bb3bac68fa036 | [
"MIT"
] | 1 | 2020-11-21T17:53:21.000Z | 2020-11-21T17:53:21.000Z | rudder/__init__.py | MSAdministrator/conductor | 62ed869cd06d2a1735317f39396bb3bac68fa036 | [
"MIT"
] | 1 | 2020-09-04T17:23:51.000Z | 2020-09-04T17:23:51.000Z | rudder/__init__.py | MSAdministrator/conductor | 62ed869cd06d2a1735317f39396bb3bac68fa036 | [
"MIT"
] | null | null | null | from .utils.version import __version__
from .rudder import Rudder
from .runner import Host, Runner | 32.666667 | 38 | 0.826531 | 14 | 98 | 5.5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 98 | 3 | 39 | 32.666667 | 0.895349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
df9c03a4aadd755b5d95851a4843cab5f69abf1c | 3,952 | py | Python | compiler/tests/test_python_runner.py | okcompute/vim-python-tests-runner | 8ea2884e77935e3c1f01a4066a4db325839a7faf | [
"MIT"
] | 1 | 2015-09-17T07:10:55.000Z | 2015-09-17T07:10:55.000Z | compiler/tests/test_python_runner.py | okcompute/vim-runners | 8ea2884e77935e3c1f01a4066a4db325839a7faf | [
"MIT"
] | 1 | 2016-10-17T11:29:26.000Z | 2016-10-18T10:02:06.000Z | compiler/tests/test_python_runner.py | okcompute/vim-python-tests-runner | 8ea2884e77935e3c1f01a4066a4db325839a7faf | [
"MIT"
] | 1 | 2015-09-16T15:17:37.000Z | 2015-09-16T15:17:37.000Z | #!/usr/bin/env python
# encoding: utf-8
import unittest
from runners.python import (
match_file_location,
match_code_pattern,
parse_traceback,
)
class TestPythonRunner(unittest.TestCase):
"""Test case for runner.python.py module"""
def test_match_file_location(self):
input = " File \"/Users/okcompute/Developer/venv/lib/python3.4/site-packages//config.py\", line 513, in getconftestmodules"
expected = {
"file_path": "/Users/okcompute/Developer/venv/lib/python3.4/site-packages//config.py",
"line_no": "513",
}
result = match_file_location(input)
self.assertEqual(expected, result)
def test_match_code_pattern(self):
input = " mod = conftestpath.pyimport()"
result = match_code_pattern(input)
self.assertTrue(result)
def test_parse_traceback(self):
input = [
"ERROR:tornado.application:Uncaught exception POST /api/signup (127.0.0.1)",
"HTTPServerRequest(protocol='http', host='localhost:55219', method='POST', uri='/api/signup', version='HTTP/1.1', remote_ip='127.0.0.1', headers={'Connection': 'close', 'Content-Type': 'application/json charset=utf-8', 'Host': 'localhost:55219', 'Content-Length': '66', 'Accept-Encoding': 'gzip'})",
"Traceback (most recent call last):",
" File \"/Git/Backend/venv/lib/python3.4/site-packages/tornado/web.py\", line 1332, in _execute",
" result = method(*self.path_args, **self.path_kwargs)",
" File \"/Git/Backend/application/rest/__init__.py\", line 135, in wrapper",
" return method(self, *args, **kwargs)",
" File \"/Git/Backend/application/rest/__init__.py\", line 105, in request_wrapper",
" response = request(self, arguments, *args, **kwargs)",
" File \"/Git/Backend/application/rest/authentication.py\", line 105, in post",
" body['email']",
" File \"/Git/Backend/application/dal.py\", line 257, in create_user",
" return self._convert_to_user(user)",
" File \"/Git/Backend/application/dal.py\", line 236, in _convert_to_user",
" blarg",
"NameError: name 'blarg' is not defined",
"ERROR:tornado.access:500 POST /api/signup (127.0.0.1) 4.70ms",
]
expected = [
"ERROR:tornado.application:Uncaught exception POST /api/signup (127.0.0.1)",
"HTTPServerRequest(protocol='http', host='localhost:55219', method='POST', uri='/api/signup', version='HTTP/1.1', remote_ip='127.0.0.1', headers={'Connection': 'close', 'Content-Type': 'application/json charset=utf-8', 'Host': 'localhost:55219', 'Content-Length': '66', 'Accept-Encoding': 'gzip'})",
"Traceback (most recent call last):",
" File \"/Git/Backend/venv/lib/python3.4/site-packages/tornado/web.py\", line 1332, in _execute",
" result = method(*self.path_args, **self.path_kwargs)",
" File \"/Git/Backend/application/rest/__init__.py\", line 135, in wrapper",
" return method(self, *args, **kwargs)",
" File \"/Git/Backend/application/rest/__init__.py\", line 105, in request_wrapper",
" response = request(self, arguments, *args, **kwargs)",
" File \"/Git/Backend/application/rest/authentication.py\", line 105, in post",
" body['email']",
" File \"/Git/Backend/application/dal.py\", line 257, in create_user",
" return self._convert_to_user(user)",
" File \"/Git/Backend/application/dal.py\", line 236, in _convert_to_user",
" blarg",
"NameError: name 'blarg' is not defined",
"/Git/Backend/application/dal.py:236 <NameError: name 'blarg' is not defined>",
]
result = parse_traceback(input)
self.assertEqual(expected, result)
| 54.888889 | 311 | 0.608553 | 467 | 3,952 | 5.021413 | 0.267666 | 0.035821 | 0.071642 | 0.10661 | 0.798721 | 0.758635 | 0.745842 | 0.73774 | 0.73774 | 0.73774 | 0 | 0.040171 | 0.231528 | 3,952 | 71 | 312 | 55.661972 | 0.731972 | 0.018725 | 0 | 0.566667 | 0 | 0.116667 | 0.520021 | 0.134849 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.116667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
dfd9e9a096e72cb04c25499dbc0b782d4b76f092 | 22 | py | Python | 12_module_basic/11_package/pack1/pack2/pack3/pack3_mod.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | 12_module_basic/11_package/pack1/pack2/pack3/pack3_mod.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | 12_module_basic/11_package/pack1/pack2/pack3/pack3_mod.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | print('pack3_mod.py')
| 11 | 21 | 0.727273 | 4 | 22 | 3.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.045455 | 22 | 1 | 22 | 22 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
dff0951d6aaa7d24e9d87394f66f6203330b6482 | 292 | py | Python | src/hks_pylib/logger/__init__.py | huykingsofm/hks_pylib | d73a896a395df301ef8082a358ec8e23f7bc708a | [
"MIT"
] | 2 | 2021-04-06T07:01:27.000Z | 2021-07-30T11:08:59.000Z | src/hks_pylib/logger/__init__.py | huykingsofm/hks_pylib | d73a896a395df301ef8082a358ec8e23f7bc708a | [
"MIT"
] | null | null | null | src/hks_pylib/logger/__init__.py | huykingsofm/hks_pylib | d73a896a395df301ef8082a358ec8e23f7bc708a | [
"MIT"
] | null | null | null | from hks_pylib.logger.logger import BaseLogger, StandardLogger, Display, InvisibleLogger
from hks_pylib.logger.logger_generator import StandardLoggerGenerator, LoggerGenerator, InvisibleLoggerGenerator
from hks_pylib.logger.config import LogConfig, console_output, Output, FileOutput, acprint | 97.333333 | 112 | 0.880137 | 32 | 292 | 7.875 | 0.59375 | 0.083333 | 0.142857 | 0.214286 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068493 | 292 | 3 | 113 | 97.333333 | 0.926471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
5f21d752508bf34faa748dab5d428f3e090af023 | 23,278 | py | Python | privex/helpers/net/common.py | Privex/python-helpers | 1c976ce5b0e2c5241ea0bdf330bd6701b5e31153 | [
"X11"
] | 12 | 2019-06-18T11:17:41.000Z | 2021-09-13T23:00:21.000Z | privex/helpers/net/common.py | Privex/python-helpers | 1c976ce5b0e2c5241ea0bdf330bd6701b5e31153 | [
"X11"
] | 1 | 2019-10-13T07:34:44.000Z | 2019-10-13T07:34:44.000Z | privex/helpers/net/common.py | Privex/python-helpers | 1c976ce5b0e2c5241ea0bdf330bd6701b5e31153 | [
"X11"
] | 4 | 2019-10-10T10:15:09.000Z | 2021-05-16T01:55:48.000Z | """
General uncategorised functions/classes for network related helper code
**Copyright**::
+===================================================+
| © 2019 Privex Inc. |
| https://www.privex.io |
+===================================================+
| |
| Originally Developed by Privex Inc. |
| License: X11 / MIT |
| |
| Core Developer(s): |
| |
| (+) Chris (@someguy123) [Privex] |
| (+) Kale (@kryogenic) [Privex] |
| |
+===================================================+
Copyright 2019 Privex Inc. ( https://www.privex.io )
"""
import asyncio
import logging
import random
import socket
from datetime import datetime
from math import ceil
from typing import List, Tuple
from privex.helpers.decorators import r_cache, r_cache_async
from privex.helpers import settings
from privex.helpers.common import byteify, empty, empty_if, is_true
from privex.helpers.asyncx import run_coro_thread_async
from privex.helpers.net import base as netbase
from privex.helpers.net.dns import resolve_ip, resolve_ip_async
from privex.helpers.net.socket import AsyncSocketWrapper
from privex.helpers.net.util import get_ssl_context, ip_is_v6
from privex.helpers.types import AUTO, AnyNum, IP_OR_STR
log = logging.getLogger(__name__)
__all__ = [
'check_host', 'check_host_async', 'check_host_http', 'check_host_http_async', 'test_hosts_async',
'test_hosts', 'check_v4', 'check_v6', 'check_v4_async', 'check_v6_async'
]
def check_host(host: IP_OR_STR, port: AnyNum, version='any', throw=False, **kwargs) -> bool:
"""
Test if the service on port ``port`` for host ``host`` is working. AsyncIO version: :func:`.check_host_async`
Basic usage (services which send the client data immediately after connecting)::
>>> check_host('hiveseed-se.privex.io', 2001)
True
>>> check_host('hiveseed-se.privex.io', 9991)
False
For some services, such as HTTP - it's necessary to transmit some data to the host before it will
send a response. Using the ``send`` kwarg, you can transmit an arbitrary string/bytes upon connection.
Sending data to ``host`` after connecting::
>>> check_host('files.privex.io', 80, send=b"GET / HTTP/1.1\\n\\n")
True
:param str|IPv4Address|IPv6Address host: Hostname or IP to test
:param int|str port: Port number on ``host`` to connect to
:param str|int version: When connecting to a hostname, this can be set to ``'v4'``, ``'v6'`` or similar
to ensure the connection is via that IP version
:param bool throw: (default: ``False``) When ``True``, will raise exceptions instead of returning ``False``
:param kwargs: Additional configuration options (see below)
:keyword int receive: (default: ``100``) Amount of bytes to attempt to receive from the server (``0`` to disable)
:keyword bytes|str send: If ``send`` is specified, the data in ``send`` will be transmitted to the server before receiving.
:keyword int stype: Socket type, e.g. :attr:`socket.SOCK_STREAM`
:keyword float|int timeout: Socket timeout. If not passed, uses the default from :func:`socket.getdefaulttimeout`.
If the global default timeout is ``None``, then falls back to ``5.0``
:raises socket.timeout: When ``throw=True`` and a timeout occurs.
:raises socket.gaierror: When ``throw=True`` and various errors occur
:raises ConnectionRefusedError: When ``throw=True`` and the connection was refused
:raises ConnectionResetError: When ``throw=True`` and the connection was reset
:return bool success: ``True`` if successfully connected + sent/received data. Otherwise ``False``.
"""
receive, stype = int(kwargs.get('receive', 100)), kwargs.get('stype', socket.SOCK_STREAM)
timeout, send, use_ssl = kwargs.get('timeout', 'n/a'), kwargs.get('send'), kwargs.get('ssl', kwargs.get('use_ssl'))
ssl_params = kwargs.get('ssl_params', dict(verify_cert=False, check_hostname=False))
if timeout == 'n/a':
t = socket.getdefaulttimeout()
timeout = 10.0 if not t else t
try:
s_ver = socket.AF_INET
ip = resolve_ip(host, version)
if ip_is_v6(ip): s_ver = socket.AF_INET6
if port == 443 and use_ssl is None:
log.warning("check_host: automatically setting use_ssl=True as port is 443 and use_ssl was not specified.")
use_ssl = True
with socket.socket(s_ver, stype) as s:
orig_sock = s
if timeout: s.settimeout(float(timeout))
if use_ssl:
ctx = get_ssl_context(**ssl_params)
s = ctx.wrap_socket(
s,
server_hostname=kwargs.get('server_hostname'),
session=kwargs.get('session'),
do_handshake_on_connect=kwargs.get('do_handshake_on_connect', True),
)
s.connect((ip, int(port)))
if not empty(send):
s.sendall(byteify(send))
if receive > 0:
s.recv(int(receive))
if use_ssl:
s.close()
return True
except (socket.timeout, TimeoutError, ConnectionRefusedError, ConnectionResetError, socket.gaierror) as e:
if throw:
raise e
return False
async def check_host_async(host: IP_OR_STR, port: AnyNum, version='any', throw=False, **kwargs) -> bool:
"""
AsyncIO version of :func:`.check_host`. Test if the service on port ``port`` for host ``host`` is working.
Basic usage (services which send the client data immediately after connecting)::
>>> await check_host_async('hiveseed-se.privex.io', 2001)
True
>>> await check_host_async('hiveseed-se.privex.io', 9991)
False
For some services, such as HTTP - it's necessary to transmit some data to the host before it will
send a response. Using the ``send`` kwarg, you can transmit an arbitrary string/bytes upon connection.
Sending data to ``host`` after connecting::
>>> await check_host_async('files.privex.io', 80, send=b"GET / HTTP/1.1\\n\\n")
True
:param str|IPv4Address|IPv6Address host: Hostname or IP to test
:param int|str port: Port number on ``host`` to connect to
:param str|int version: When connecting to a hostname, this can be set to ``'v4'``, ``'v6'`` or similar
to ensure the connection is via that IP version
:param bool throw: (default: ``False``) When ``True``, will raise exceptions instead of returning ``False``
:param kwargs: Additional configuration options (see below)
:keyword int receive: (default: ``100``) Amount of bytes to attempt to receive from the server (``0`` to disable)
:keyword bytes|str send: If ``send`` is specified, the data in ``send`` will be transmitted to the server before receiving.
:keyword int stype: Socket type, e.g. :attr:`socket.SOCK_STREAM`
:keyword float|int timeout: Socket timeout. If not passed, uses the default from :func:`socket.getdefaulttimeout`.
If the global default timeout is ``None``, then falls back to ``5.0``
:raises socket.timeout: When ``throw=True`` and a timeout occurs.
:raises socket.gaierror: When ``throw=True`` and various errors occur
:raises ConnectionRefusedError: When ``throw=True`` and the connection was refused
:raises ConnectionResetError: When ``throw=True`` and the connection was reset
:return bool success: ``True`` if successfully connected + sent/received data. Otherwise ``False``.
"""
receive, stype = int(kwargs.get('receive', 16)), kwargs.get('stype', socket.SOCK_STREAM)
timeout, send = kwargs.get('timeout', 'n/a'), kwargs.get('send')
http_test, use_ssl = kwargs.get('http_test', False), kwargs.get('use_ssl', False)
if timeout == 'n/a':
t = socket.getdefaulttimeout()
timeout = settings.DEFAULT_SOCKET_TIMEOUT if not t else t
# loop = asyncio.get_event_loop()
s_ver = socket.AF_INET
ip = await resolve_ip_async(host, version)
if ip_is_v6(ip): s_ver = socket.AF_INET6
try:
aw = AsyncSocketWrapper(host, int(port), family=s_ver, use_ssl=use_ssl, timeout=timeout)
await aw.connect()
if http_test:
log.info("Sending HTTP request to %s", host)
log.info("Response from %s : %s", host, await aw.http_request())
elif not empty(send) and receive > 0:
log.info("Sending query data '%s' and trying to receive data from %s", send, host)
log.info("Response from %s : %s", host, await aw.query(send, receive, read_timeout=kwargs.get('read_timeout', AUTO)))
elif not empty(send):
log.info("Sending query data '%s' to %s", send, host)
await aw.sendall(send)
else:
log.info("Receiving data from %s", host)
log.info("Response from %s : %s", host, await aw.read_eof(
receive, strip=False, read_timeout=kwargs.get('read_timeout', AUTO),
))
# with socket.socket(s_ver, stype) as s:
# if timeout: s.settimeout(float(timeout))
# await loop.sock_connect(s, (ip, int(port)))
# if not empty(send):
# await loop.sock_sendall(s, byteify(send))
# if receive > 0:
# await loop.sock_recv(s, int(receive))
return True
except (socket.timeout, TimeoutError, ConnectionRefusedError, ConnectionResetError, socket.gaierror) as e:
if throw:
raise e
return False
def check_host_http(host: IP_OR_STR, port: AnyNum = 80, version='any', throw=False, **kwargs) -> bool:
return netbase.check_host(host, port, version, throw=throw, http_test=True, **kwargs)
async def check_host_http_async(
host: IP_OR_STR, port: AnyNum = 80, version='any', throw=False, send=b"GET / HTTP/1.1\\n\\n", **kwargs
) -> bool:
# return await check_host_async(host, port, version, throw=throw, send=send, **kwargs)
return await netbase.check_host_async(host, port, version, throw=throw, http_test=True, **kwargs)
async def test_hosts_async(hosts: List[str] = None, ipver: str = 'any', timeout: AnyNum = None, **kwargs) -> bool:
randomise = is_true(kwargs.get('randomise', True))
max_hosts = kwargs.get('max_hosts', settings.NET_CHECK_HOST_COUNT_TRY)
if max_hosts is not None: max_hosts = int(max_hosts)
timeout = empty_if(timeout, empty_if(socket.getdefaulttimeout(), 4, zero=True), zero=True)
v4h, v6h = list(settings.V4_TEST_HOSTS), list(settings.V6_TEST_HOSTS)
if randomise: random.shuffle(v4h)
if randomise: random.shuffle(v6h)
if empty(hosts, True, True):
# if empty(ipver, True, True) or ipver in ['any', 'all', 'both', 10, '10', '46', 46]:
# settings.V4_CHECKED_AT
if isinstance(ipver, str): ipver = ipver.lower()
if ipver in [4, '4', 'v4', 'ipv4']:
hosts = v4h
ipver = 4
elif ipver in [6, '6', 'v6', 'ipv6']:
hosts = v6h
ipver = 6
else:
ipver = 'any'
if max_hosts:
hosts = v4h[:int(ceil(max_hosts / 2))] + v6h[:int(ceil(max_hosts / 2))]
else:
hosts = v4h + v6h
if max_hosts: hosts = hosts[:max_hosts]
# st4_empty = any([empty(settings.HAS_WORKING_V4, True, True), empty(settings.V4_CHECKED_AT, True, True)])
# st6_empty = any([empty(settings.HAS_WORKING_V6, True, True), empty(settings.V6_CHECKED_AT, True, True)])
# if ipver == 6 and not st6_empty and settings.V6_CHECKED_AT > datetime.utcnow():
# # if settings.V6_CHECKED_AT > datetime.utcnow()
# log.debug("Returning cached IPv6 status: working = %s", settings.HAS_WORKING_V6)
# return settings.HAS_WORKING_V6
# if ipver == 4 and not st4_empty and settings.V4_CHECKED_AT > datetime.utcnow():
# # if settings.V6_CHECKED_AT > datetime.utcnow()
# log.debug("Returning cached IPv4 status: working = %s", settings.HAS_WORKING_V4)
# return settings.HAS_WORKING_V4
#
# if ipver == 'any' and any([not st4_empty, not st6_empty]) and settings.V4_CHECKED_AT > datetime.utcnow():
# # if settings.V6_CHECKED_AT > datetime.utcnow()
# if st4_empty:
# log.debug("test_hosts being requested for 'any' ip ver. IPv6 status cached, but not IPv4 status. Checking IPv4 status...")
# await check_v4_async()
# if st6_empty:
# log.debug("test_hosts being requested for 'any' ip ver. IPv4 status cached, but not IPv6 status. Checking IPv6 status...")
# await check_v6_async(hosts)
# # if not st4_empty and not st6_empty:
# log.debug(
# "Returning status %s based on: Working IPv4 = %s || Working IPv6 = %s",
# settings.HAS_WORKING_V4 or settings.HAS_WORKING_V6, settings.HAS_WORKING_V4, settings.HAS_WORKING_V6
# )
# return settings.HAS_WORKING_V4 or settings.HAS_WORKING_V6
# max_hosts = int(kwargs.get('max_hosts', settings.NET_CHECK_HOST_COUNT_TRY))
min_hosts_pos = int(kwargs.get('required_positive', settings.NET_CHECK_HOST_COUNT))
# hosts = empty_if(hosts, settings.V4_TEST_HOSTS, itr=True)
hosts = [x for x in hosts]
if randomise: random.shuffle(hosts)
if len(hosts) > max_hosts: hosts = hosts[:max_hosts]
# port = empty_if(port, 80, zero=True)
total_hosts = len(hosts)
total_working, total_broken = 0, 0
working_list, broken_list = [], []
log.debug("Testing %s hosts with IP version '%s' - timeout: %s", total_hosts, ipver, timeout)
host_checks = []
host_checks_hosts = []
for h in hosts:
# host_checks.append(
# asyncio.create_task(_test_host_async(h, ipver=ipver, timeout=timeout))
# )
host_checks.append(
asyncio.create_task(
run_coro_thread_async(_test_host_async, h, ipver=ipver, timeout=timeout)
)
)
host_checks_hosts.append(h)
host_checks_res = await asyncio.gather(*host_checks, return_exceptions=True)
for i, _res in enumerate(host_checks_res):
h = host_checks_hosts[i]
if isinstance(_res, Exception):
log.warning("Exception while checking host %s", h)
total_broken += 1
continue
res, h, port = _res
if res:
total_working += 1
working_list.append(f"{h}:{port}")
log.debug("check_host for %s (port %s) came back True (WORKING). incremented working hosts: %s", h, port, total_working)
else:
total_broken += 1
broken_list.append(f"{h}:{port}")
log.debug("check_host for %s (port %s) came back False (! BROKEN !). incremented broken hosts: %s", h, port, total_broken)
# port = 80
# for h in hosts:
# try:
# h, port, res = await _test_host_async(h, ipver, timeout)
# if res:
# total_working += 1
# log.debug("check_host for %s came back true. incremented working hosts: %s", h, total_working)
# else:
# total_broken += 1
# log.debug("check_host for %s came back false. incremented broken hosts: %s", h, total_broken)
#
# except Exception as e:
# log.warning("Exception while checking host %s port %s", h, port)
working = total_working >= min_hosts_pos
log.info("test_hosts - proto: %s - protocol working? %s || total hosts: %s || working hosts: %s || broken hosts: %s",
ipver, working, total_hosts, total_working, total_broken)
log.debug("working hosts: %s", working_list)
log.debug("broken hosts: %s", broken_list)
return working
async def _test_host_async(host, ipver: str = 'any', timeout: AnyNum = None) -> Tuple[bool, str, int]:
nh = host.split(':')
if len(nh) > 1:
port = int(nh[-1])
host = ':'.join(nh[:-1])
else:
host = ':'.join(nh)
log.warning("Host is missing port: %s - falling back to port 80")
port = 80
log.debug("Checking host %s via port %s + IP version '%s'", host, port, ipver)
if port == 80:
res = await check_host_http_async(host, port, ipver, throw=False, timeout=timeout)
elif port == 53:
res = await netbase.check_host_async(host, port, ipver, throw=False, timeout=timeout, send="hello\nworld\n")
else:
res = await netbase.check_host_async(host, port, ipver, throw=False, timeout=timeout)
return res, host, port
def test_hosts(hosts: List[str] = None, ipver: str = 'any', timeout: AnyNum = None, **kwargs) -> bool:
randomise = is_true(kwargs.get('randomise', True))
max_hosts = kwargs.get('max_hosts', settings.NET_CHECK_HOST_COUNT_TRY)
if max_hosts is not None: max_hosts = int(max_hosts)
timeout = empty_if(timeout, empty_if(socket.getdefaulttimeout(), 4, zero=True), zero=True)
v4h, v6h = list(settings.V4_TEST_HOSTS), list(settings.V6_TEST_HOSTS)
if randomise: random.shuffle(v4h)
if randomise: random.shuffle(v6h)
if empty(hosts, True, True):
# if empty(ipver, True, True) or ipver in ['any', 'all', 'both', 10, '10', '46', 46]:
# settings.V4_CHECKED_AT
if isinstance(ipver, str): ipver = ipver.lower()
if ipver in [4, '4', 'v4', 'ipv4']:
hosts = v4h
ipver = 4
elif ipver in [6, '6', 'v6', 'ipv6']:
hosts = v6h
ipver = 6
else:
ipver = 'any'
if max_hosts:
hosts = v4h[:int(ceil(max_hosts / 2))] + v6h[:int(ceil(max_hosts / 2))]
else:
hosts = v4h + v6h
if max_hosts: hosts = hosts[:max_hosts]
# st4_empty = any([empty(settings.HAS_WORKING_V4, True, True), empty(settings.V4_CHECKED_AT, True, True)])
# st6_empty = any([empty(settings.HAS_WORKING_V6, True, True), empty(settings.V6_CHECKED_AT, True, True)])
# if ipver == 6 and not st6_empty and settings.V6_CHECKED_AT > datetime.utcnow():
# # if settings.V6_CHECKED_AT > datetime.utcnow()
# log.debug("Returning cached IPv6 status: working = %s", settings.HAS_WORKING_V6)
# return settings.HAS_WORKING_V6
# if ipver == 4 and not st4_empty and settings.V4_CHECKED_AT > datetime.utcnow():
# # if settings.V6_CHECKED_AT > datetime.utcnow()
# log.debug("Returning cached IPv4 status: working = %s", settings.HAS_WORKING_V4)
# return settings.HAS_WORKING_V4
# if ipver == 'any' and any([not st4_empty, not st6_empty]) and settings.V4_CHECKED_AT > datetime.utcnow():
# # if settings.V6_CHECKED_AT > datetime.utcnow()
# if st4_empty:
# log.debug("test_hosts being requested for 'any' ip ver. IPv6 status cached, but not IPv4 status. Checking IPv4 status...")
# check_v4()
# if st6_empty:
# log.debug("test_hosts being requested for 'any' ip ver. IPv4 status cached, but not IPv6 status. Checking IPv6 status...")
# check_v6()
# # if not st4_empty and not st6_empty:
# log.debug(
# "Returning status %s based on: Working IPv4 = %s || Working IPv6 = %s",
# settings.HAS_WORKING_V4 or settings.HAS_WORKING_V6, settings.HAS_WORKING_V4, settings.HAS_WORKING_V6
# )
# return settings.HAS_WORKING_V4 or settings.HAS_WORKING_V6
# max_hosts = int(kwargs.get('max_hosts', settings.NET_CHECK_HOST_COUNT_TRY))
min_hosts_pos = int(kwargs.get('required_positive', settings.NET_CHECK_HOST_COUNT))
# hosts = empty_if(hosts, settings.V4_TEST_HOSTS, itr=True)
hosts = [x for x in hosts]
if randomise: random.shuffle(hosts)
if len(hosts) > max_hosts: hosts = hosts[:max_hosts]
total_hosts = len(hosts)
total_working, total_broken = 0, 0
log.debug("Testing %s hosts with IP version '%s' - timeout: %s", total_hosts, ipver, timeout)
port = 80
for h in hosts:
try:
nh = h.split(':')
if len(nh) > 1:
port = int(nh[-1])
h = ':'.join(nh[:-1])
else:
h = ':'.join(nh)
log.warning("Host is missing port: %s - falling back to port 80")
port = 80
log.debug("Checking host %s via port %s + IP version '%s'", h, port, ipver)
if port == 80:
res = check_host_http(h, port, ipver, throw=False, timeout=timeout)
else:
res = check_host(h, port, ipver, throw=False, timeout=timeout)
if res:
total_working += 1
log.debug("check_host for %s came back true. incremented working hosts: %s", h, total_working)
else:
total_broken += 1
log.debug("check_host for %s came back false. incremented broken hosts: %s", h, total_broken)
except Exception as e:
log.warning("Exception while checking host %s port %s", h, port)
working = total_working >= min_hosts_pos
log.info("test_hosts - proto: %s - protocol working? %s || total hosts: %s || working hosts: %s || broken hosts: %s",
ipver, working, total_hosts, total_working, total_broken)
return working
@r_cache("pvxhelpers:check_v4", settings.NET_CHECK_TIMEOUT)
def check_v4(hosts: List[str] = None, *args, **kwargs) -> bool:
"""Check and cache whether IPv4 is functional by testing a handful of IPv4 hosts"""
return test_hosts(hosts, ipver='v4', *args, **kwargs)
@r_cache("pvxhelpers:check_v6", settings.NET_CHECK_TIMEOUT)
def check_v6(hosts: List[str] = None, *args, **kwargs) -> bool:
"""Check and cache whether IPv6 is functional by testing a handful of IPv6 hosts"""
return test_hosts(hosts, ipver='v6', *args, **kwargs)
@r_cache_async("pvxhelpers:check_v4", settings.NET_CHECK_TIMEOUT)
async def check_v4_async(hosts: List[str] = None, *args, **kwargs) -> bool:
"""(Async ver of :func:`.check_v4`) Check and cache whether IPv4 is functional by testing a handful of IPv4 hosts"""
return await test_hosts_async(hosts, ipver='v4', *args, **kwargs)
@r_cache_async("pvxhelpers:check_v6", settings.NET_CHECK_TIMEOUT)
async def check_v6_async(hosts: List[str] = None, *args, **kwargs) -> bool:
"""(Async ver of :func:`.check_v6`) Check and cache whether IPv6 is functional by testing a handful of IPv6 hosts"""
return await test_hosts_async(hosts, ipver='v6', *args, **kwargs)
| 45.287938 | 136 | 0.611693 | 3,094 | 23,278 | 4.452812 | 0.106658 | 0.024171 | 0.031357 | 0.01742 | 0.81128 | 0.792553 | 0.76635 | 0.718662 | 0.687813 | 0.677651 | 0 | 0.0179 | 0.265616 | 23,278 | 513 | 137 | 45.376218 | 0.78795 | 0.334522 | 0 | 0.473469 | 0 | 0.016327 | 0.137344 | 0.003438 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.065306 | 0.004082 | 0.138776 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
a09765f9db2233e01b46468131b617e690fa1c99 | 504 | py | Python | aspy/exceptions.py | raidery/aspy | d8b4e9514a7a76482734a50e7df3e9308b2db4c1 | [
"MIT"
] | null | null | null | aspy/exceptions.py | raidery/aspy | d8b4e9514a7a76482734a50e7df3e9308b2db4c1 | [
"MIT"
] | null | null | null | aspy/exceptions.py | raidery/aspy | d8b4e9514a7a76482734a50e7df3e9308b2db4c1 | [
"MIT"
] | null | null | null |
__all__ = ["PreCheckException", "PostCheckException"]
class PreCheckException(Exception):
def __init__(self, messages):
'''
Constructor
'''
self.message = messages
def __str__(self):
return repr(self.message)
class PostCheckException(Exception):
def __init__(self, messages):
'''
Constructor
'''
self.message = messages
def __str__(self):
return repr(self.message)
| 20.16 | 54 | 0.55754 | 39 | 504 | 6.692308 | 0.358974 | 0.168582 | 0.122605 | 0.153257 | 0.681992 | 0.681992 | 0.681992 | 0.681992 | 0.681992 | 0.681992 | 0 | 0 | 0.343254 | 504 | 24 | 55 | 21 | 0.78852 | 0.045635 | 0 | 0.727273 | 0 | 0 | 0.085575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0.181818 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
a0c07876373ca2a3ff2fc52bd2086808ebafa04c | 76 | py | Python | run_client.py | ayush9818/Message-Queue-Prototype | 2bfe22e4b7dc714cf4230850151dc69a3189d38b | [
"MIT"
] | null | null | null | run_client.py | ayush9818/Message-Queue-Prototype | 2bfe22e4b7dc714cf4230850151dc69a3189d38b | [
"MIT"
] | null | null | null | run_client.py | ayush9818/Message-Queue-Prototype | 2bfe22e4b7dc714cf4230850151dc69a3189d38b | [
"MIT"
] | null | null | null | from imqclient.client import Client
new_client = Client()
new_client.run()
| 15.2 | 35 | 0.789474 | 11 | 76 | 5.272727 | 0.545455 | 0.310345 | 0.517241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118421 | 76 | 4 | 36 | 19 | 0.865672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
2602d9f873d83b636eaaa1837c9bcdbe476852a0 | 109 | py | Python | modules/2.79/bpy/types/GroupObjects.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/GroupObjects.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/GroupObjects.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | class GroupObjects:
def link(self, object):
pass
def unlink(self, object):
pass
| 9.909091 | 29 | 0.559633 | 12 | 109 | 5.083333 | 0.666667 | 0.327869 | 0.459016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.357798 | 109 | 10 | 30 | 10.9 | 0.871429 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.4 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
260919103b3b4ea9a8e3b14908ec56129f27d8fa | 178 | py | Python | trade_remedies_api/content/services/urls.py | uktrade/trade-remedies-api | fbe2d142ef099c7244788a0f72dd1003eaa7edce | [
"MIT"
] | 1 | 2020-08-13T10:37:15.000Z | 2020-08-13T10:37:15.000Z | trade_remedies_api/content/services/urls.py | uktrade/trade-remedies-api | fbe2d142ef099c7244788a0f72dd1003eaa7edce | [
"MIT"
] | 4 | 2020-09-10T13:41:52.000Z | 2020-12-16T09:00:21.000Z | trade_remedies_api/content/services/urls.py | uktrade/trade-remedies-api | fbe2d142ef099c7244788a0f72dd1003eaa7edce | [
"MIT"
] | null | null | null | from django.urls import path
from .api import ContentAPIView
urlpatterns = [
path("", ContentAPIView.as_view()),
path("<uuid:content_id>/", ContentAPIView.as_view()),
]
| 22.25 | 57 | 0.707865 | 21 | 178 | 5.857143 | 0.619048 | 0.260163 | 0.325203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140449 | 178 | 7 | 58 | 25.428571 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0.101124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
260ded0aa87fa07ae1ab37429a9e5c0b4835936a | 605 | py | Python | data_structures/queue/list_deque.py | hongta/practice-python | 52d5278ea5402ea77054bfa5c4bfdbdf81c9c963 | [
"MIT"
] | null | null | null | data_structures/queue/list_deque.py | hongta/practice-python | 52d5278ea5402ea77054bfa5c4bfdbdf81c9c963 | [
"MIT"
] | null | null | null | data_structures/queue/list_deque.py | hongta/practice-python | 52d5278ea5402ea77054bfa5c4bfdbdf81c9c963 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class ListDeque(object):
def __init__(self):
self._items = []
def __iter__(self):
for cur in range(len(self._items)):
yield self._items[cur]
def is_empty(self):
return self._items == []
def size(self):
return len(self._items)
def enqueue_first(self, item):
self._items.append(item)
def enqueue_last(self, item):
self._items.insert(0, item)
def dequeue_first(self):
return self._items.pop()
def dequeue_last(self):
return self._items.pop(0)
| 18.90625 | 43 | 0.58843 | 79 | 605 | 4.227848 | 0.43038 | 0.242515 | 0.107784 | 0.170659 | 0.131737 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006865 | 0.277686 | 605 | 31 | 44 | 19.516129 | 0.757437 | 0.069421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0 | 0.222222 | 0.722222 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
263fd6bc23f385e9969d123c60ff6bc0e19b81dc | 126 | py | Python | backend/Experience/admin.py | sourabhmandal/Showcase | 8bf6379291bea852fd49e3aeec511a9d64659e44 | [
"MIT"
] | null | null | null | backend/Experience/admin.py | sourabhmandal/Showcase | 8bf6379291bea852fd49e3aeec511a9d64659e44 | [
"MIT"
] | null | null | null | backend/Experience/admin.py | sourabhmandal/Showcase | 8bf6379291bea852fd49e3aeec511a9d64659e44 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Experience
# Register your models here.
admin.site.register(Experience)
| 21 | 32 | 0.81746 | 17 | 126 | 6.058824 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 126 | 5 | 33 | 25.2 | 0.927928 | 0.206349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
265f87f933e9202b8841969d90163a5300028054 | 227 | py | Python | src/afterpay/exceptions/server_error.py | nyneava/afterpay-python | ec9f9230ce321a2d9876ac93f222c24ffe7eee1a | [
"MIT"
] | null | null | null | src/afterpay/exceptions/server_error.py | nyneava/afterpay-python | ec9f9230ce321a2d9876ac93f222c24ffe7eee1a | [
"MIT"
] | null | null | null | src/afterpay/exceptions/server_error.py | nyneava/afterpay-python | ec9f9230ce321a2d9876ac93f222c24ffe7eee1a | [
"MIT"
] | null | null | null | from afterpay.exceptions.afterpay_error import AfterpayError
class ServerError(AfterpayError):
"""
A common cause of this response from PUT/POST endpoints is that the request body is missing or empty.
"""
pass
| 28.375 | 105 | 0.748899 | 30 | 227 | 5.633333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193833 | 227 | 7 | 106 | 32.428571 | 0.923497 | 0.444934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 5 |
cd033f29f01b7fdcec1f267266671ae7b9242a91 | 160 | py | Python | blousebrothers/friends/admin.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | 1 | 2022-01-27T11:58:10.000Z | 2022-01-27T11:58:10.000Z | blousebrothers/friends/admin.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | 5 | 2021-03-19T00:01:54.000Z | 2022-03-11T23:46:21.000Z | blousebrothers/friends/admin.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import FriendShipRequest, Relationship
admin.site.register(FriendShipRequest)
admin.site.register(Relationship)
| 22.857143 | 51 | 0.85 | 18 | 160 | 7.555556 | 0.555556 | 0.132353 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08125 | 160 | 6 | 52 | 26.666667 | 0.92517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
cd4c5a5e3fe5c14eb661a7e030be889e07f6ec60 | 30,213 | py | Python | nfl/seasonsdata.py | sansbacon/nfl | 11605b1a7725cce062ce0d7f15ebcf0a2f91a86e | [
"MIT"
] | 2 | 2019-12-07T18:45:34.000Z | 2021-06-13T00:45:44.000Z | nfl/seasonsdata.py | sansbacon/nfl | 11605b1a7725cce062ce0d7f15ebcf0a2f91a86e | [
"MIT"
] | 4 | 2017-01-07T20:19:23.000Z | 2018-11-01T18:19:50.000Z | nfl/seasonsdata.py | sansbacon/nfl | 11605b1a7725cce062ce0d7f15ebcf0a2f91a86e | [
"MIT"
] | null | null | null | """
seasonsdata.py
"""
import datetime
SEASONS = {
2000: {
1: {"end": datetime.date(2000, 9, 9), "start": datetime.date(2000, 9, 3)},
2: {"end": datetime.date(2000, 9, 16), "start": datetime.date(2000, 9, 10)},
3: {"end": datetime.date(2000, 9, 23), "start": datetime.date(2000, 9, 17)},
4: {"end": datetime.date(2000, 9, 30), "start": datetime.date(2000, 9, 24)},
5: {"end": datetime.date(2000, 10, 7), "start": datetime.date(2000, 10, 1)},
6: {"end": datetime.date(2000, 10, 14), "start": datetime.date(2000, 10, 8)},
7: {"end": datetime.date(2000, 10, 21), "start": datetime.date(2000, 10, 15)},
8: {"end": datetime.date(2000, 10, 28), "start": datetime.date(2000, 10, 22)},
9: {"end": datetime.date(2000, 11, 4), "start": datetime.date(2000, 10, 29)},
10: {"end": datetime.date(2000, 11, 11), "start": datetime.date(2000, 11, 5)},
11: {"end": datetime.date(2000, 11, 18), "start": datetime.date(2000, 11, 12)},
12: {"end": datetime.date(2000, 11, 25), "start": datetime.date(2000, 11, 19)},
13: {"end": datetime.date(2000, 12, 2), "start": datetime.date(2000, 11, 26)},
14: {"end": datetime.date(2000, 12, 9), "start": datetime.date(2000, 12, 3)},
15: {"end": datetime.date(2000, 12, 16), "start": datetime.date(2000, 12, 10)},
16: {"end": datetime.date(2000, 12, 23), "start": datetime.date(2000, 12, 17)},
17: {"end": datetime.date(2000, 12, 30), "start": datetime.date(2000, 12, 24)},
},
2001: {
1: {"end": datetime.date(2001, 9, 15), "start": datetime.date(2001, 9, 9)},
2: {"end": datetime.date(2001, 9, 22), "start": datetime.date(2001, 9, 16)},
3: {"end": datetime.date(2001, 9, 29), "start": datetime.date(2001, 9, 23)},
4: {"end": datetime.date(2001, 10, 6), "start": datetime.date(2001, 9, 30)},
5: {"end": datetime.date(2001, 10, 13), "start": datetime.date(2001, 10, 7)},
6: {"end": datetime.date(2001, 10, 20), "start": datetime.date(2001, 10, 14)},
7: {"end": datetime.date(2001, 10, 27), "start": datetime.date(2001, 10, 21)},
8: {"end": datetime.date(2001, 11, 3), "start": datetime.date(2001, 10, 28)},
9: {"end": datetime.date(2001, 11, 10), "start": datetime.date(2001, 11, 4)},
10: {"end": datetime.date(2001, 11, 17), "start": datetime.date(2001, 11, 11)},
11: {"end": datetime.date(2001, 11, 24), "start": datetime.date(2001, 11, 18)},
12: {"end": datetime.date(2001, 12, 1), "start": datetime.date(2001, 11, 25)},
13: {"end": datetime.date(2001, 12, 8), "start": datetime.date(2001, 12, 2)},
14: {"end": datetime.date(2001, 12, 15), "start": datetime.date(2001, 12, 9)},
15: {"end": datetime.date(2001, 12, 22), "start": datetime.date(2001, 12, 16)},
16: {"end": datetime.date(2001, 12, 29), "start": datetime.date(2001, 12, 23)},
17: {"end": datetime.date(2002, 1, 5), "start": datetime.date(2001, 12, 30)},
},
2002: {
1: {"end": datetime.date(2002, 9, 11), "start": datetime.date(2002, 9, 5)},
2: {"end": datetime.date(2002, 9, 18), "start": datetime.date(2002, 9, 12)},
3: {"end": datetime.date(2002, 9, 25), "start": datetime.date(2002, 9, 19)},
4: {"end": datetime.date(2002, 10, 2), "start": datetime.date(2002, 9, 26)},
5: {"end": datetime.date(2002, 10, 9), "start": datetime.date(2002, 10, 3)},
6: {"end": datetime.date(2002, 10, 16), "start": datetime.date(2002, 10, 10)},
7: {"end": datetime.date(2002, 10, 23), "start": datetime.date(2002, 10, 17)},
8: {"end": datetime.date(2002, 10, 30), "start": datetime.date(2002, 10, 24)},
9: {"end": datetime.date(2002, 11, 6), "start": datetime.date(2002, 10, 31)},
10: {"end": datetime.date(2002, 11, 13), "start": datetime.date(2002, 11, 7)},
11: {"end": datetime.date(2002, 11, 20), "start": datetime.date(2002, 11, 14)},
12: {"end": datetime.date(2002, 11, 27), "start": datetime.date(2002, 11, 21)},
13: {"end": datetime.date(2002, 12, 4), "start": datetime.date(2002, 11, 28)},
14: {"end": datetime.date(2002, 12, 11), "start": datetime.date(2002, 12, 5)},
15: {"end": datetime.date(2002, 12, 18), "start": datetime.date(2002, 12, 12)},
16: {"end": datetime.date(2002, 12, 25), "start": datetime.date(2002, 12, 19)},
17: {"end": datetime.date(2003, 1, 1), "start": datetime.date(2002, 12, 26)},
},
2003: {
1: {"end": datetime.date(2003, 9, 10), "start": datetime.date(2003, 9, 4)},
2: {"end": datetime.date(2003, 9, 17), "start": datetime.date(2003, 9, 11)},
3: {"end": datetime.date(2003, 9, 24), "start": datetime.date(2003, 9, 18)},
4: {"end": datetime.date(2003, 10, 1), "start": datetime.date(2003, 9, 25)},
5: {"end": datetime.date(2003, 10, 8), "start": datetime.date(2003, 10, 2)},
6: {"end": datetime.date(2003, 10, 15), "start": datetime.date(2003, 10, 9)},
7: {"end": datetime.date(2003, 10, 22), "start": datetime.date(2003, 10, 16)},
8: {"end": datetime.date(2003, 10, 29), "start": datetime.date(2003, 10, 23)},
9: {"end": datetime.date(2003, 11, 5), "start": datetime.date(2003, 10, 30)},
10: {"end": datetime.date(2003, 11, 12), "start": datetime.date(2003, 11, 6)},
11: {"end": datetime.date(2003, 11, 19), "start": datetime.date(2003, 11, 13)},
12: {"end": datetime.date(2003, 11, 26), "start": datetime.date(2003, 11, 20)},
13: {"end": datetime.date(2003, 12, 3), "start": datetime.date(2003, 11, 27)},
14: {"end": datetime.date(2003, 12, 10), "start": datetime.date(2003, 12, 4)},
15: {"end": datetime.date(2003, 12, 17), "start": datetime.date(2003, 12, 11)},
16: {"end": datetime.date(2003, 12, 24), "start": datetime.date(2003, 12, 18)},
17: {"end": datetime.date(2003, 12, 31), "start": datetime.date(2003, 12, 25)},
},
2004: {
1: {"end": datetime.date(2004, 9, 15), "start": datetime.date(2004, 9, 9)},
2: {"end": datetime.date(2004, 9, 22), "start": datetime.date(2004, 9, 16)},
3: {"end": datetime.date(2004, 9, 29), "start": datetime.date(2004, 9, 23)},
4: {"end": datetime.date(2004, 10, 6), "start": datetime.date(2004, 9, 30)},
5: {"end": datetime.date(2004, 10, 13), "start": datetime.date(2004, 10, 7)},
6: {"end": datetime.date(2004, 10, 20), "start": datetime.date(2004, 10, 14)},
7: {"end": datetime.date(2004, 10, 27), "start": datetime.date(2004, 10, 21)},
8: {"end": datetime.date(2004, 11, 3), "start": datetime.date(2004, 10, 28)},
9: {"end": datetime.date(2004, 11, 10), "start": datetime.date(2004, 11, 4)},
10: {"end": datetime.date(2004, 11, 17), "start": datetime.date(2004, 11, 11)},
11: {"end": datetime.date(2004, 11, 24), "start": datetime.date(2004, 11, 18)},
12: {"end": datetime.date(2004, 12, 1), "start": datetime.date(2004, 11, 25)},
13: {"end": datetime.date(2004, 12, 8), "start": datetime.date(2004, 12, 2)},
14: {"end": datetime.date(2004, 12, 15), "start": datetime.date(2004, 12, 9)},
15: {"end": datetime.date(2004, 12, 22), "start": datetime.date(2004, 12, 16)},
16: {"end": datetime.date(2004, 12, 29), "start": datetime.date(2004, 12, 23)},
17: {"end": datetime.date(2005, 1, 5), "start": datetime.date(2004, 12, 30)},
},
2005: {
1: {"end": datetime.date(2005, 9, 14), "start": datetime.date(2005, 9, 8)},
2: {"end": datetime.date(2005, 9, 21), "start": datetime.date(2005, 9, 15)},
3: {"end": datetime.date(2005, 9, 28), "start": datetime.date(2005, 9, 22)},
4: {"end": datetime.date(2005, 10, 5), "start": datetime.date(2005, 9, 29)},
5: {"end": datetime.date(2005, 10, 12), "start": datetime.date(2005, 10, 6)},
6: {"end": datetime.date(2005, 10, 19), "start": datetime.date(2005, 10, 13)},
7: {"end": datetime.date(2005, 10, 26), "start": datetime.date(2005, 10, 20)},
8: {"end": datetime.date(2005, 11, 2), "start": datetime.date(2005, 10, 27)},
9: {"end": datetime.date(2005, 11, 9), "start": datetime.date(2005, 11, 3)},
10: {"end": datetime.date(2005, 11, 16), "start": datetime.date(2005, 11, 10)},
11: {"end": datetime.date(2005, 11, 23), "start": datetime.date(2005, 11, 17)},
12: {"end": datetime.date(2005, 11, 30), "start": datetime.date(2005, 11, 24)},
13: {"end": datetime.date(2005, 12, 7), "start": datetime.date(2005, 12, 1)},
14: {"end": datetime.date(2005, 12, 14), "start": datetime.date(2005, 12, 8)},
15: {"end": datetime.date(2005, 12, 21), "start": datetime.date(2005, 12, 15)},
16: {"end": datetime.date(2005, 12, 28), "start": datetime.date(2005, 12, 22)},
17: {"end": datetime.date(2006, 1, 4), "start": datetime.date(2005, 12, 29)},
},
2006: {
1: {"end": datetime.date(2006, 9, 13), "start": datetime.date(2006, 9, 7)},
2: {"end": datetime.date(2006, 9, 20), "start": datetime.date(2006, 9, 14)},
3: {"end": datetime.date(2006, 9, 27), "start": datetime.date(2006, 9, 21)},
4: {"end": datetime.date(2006, 10, 4), "start": datetime.date(2006, 9, 28)},
5: {"end": datetime.date(2006, 10, 11), "start": datetime.date(2006, 10, 5)},
6: {"end": datetime.date(2006, 10, 18), "start": datetime.date(2006, 10, 12)},
7: {"end": datetime.date(2006, 10, 25), "start": datetime.date(2006, 10, 19)},
8: {"end": datetime.date(2006, 11, 1), "start": datetime.date(2006, 10, 26)},
9: {"end": datetime.date(2006, 11, 8), "start": datetime.date(2006, 11, 2)},
10: {"end": datetime.date(2006, 11, 15), "start": datetime.date(2006, 11, 9)},
11: {"end": datetime.date(2006, 11, 22), "start": datetime.date(2006, 11, 16)},
12: {"end": datetime.date(2006, 11, 29), "start": datetime.date(2006, 11, 23)},
13: {"end": datetime.date(2006, 12, 6), "start": datetime.date(2006, 11, 30)},
14: {"end": datetime.date(2006, 12, 13), "start": datetime.date(2006, 12, 7)},
15: {"end": datetime.date(2006, 12, 20), "start": datetime.date(2006, 12, 14)},
16: {"end": datetime.date(2006, 12, 27), "start": datetime.date(2006, 12, 21)},
17: {"end": datetime.date(2007, 1, 3), "start": datetime.date(2006, 12, 28)},
},
2007: {
1: {"end": datetime.date(2007, 9, 12), "start": datetime.date(2007, 9, 6)},
2: {"end": datetime.date(2007, 9, 19), "start": datetime.date(2007, 9, 13)},
3: {"end": datetime.date(2007, 9, 26), "start": datetime.date(2007, 9, 20)},
4: {"end": datetime.date(2007, 10, 3), "start": datetime.date(2007, 9, 27)},
5: {"end": datetime.date(2007, 10, 10), "start": datetime.date(2007, 10, 4)},
6: {"end": datetime.date(2007, 10, 17), "start": datetime.date(2007, 10, 11)},
7: {"end": datetime.date(2007, 10, 24), "start": datetime.date(2007, 10, 18)},
8: {"end": datetime.date(2007, 10, 31), "start": datetime.date(2007, 10, 25)},
9: {"end": datetime.date(2007, 11, 7), "start": datetime.date(2007, 11, 1)},
10: {"end": datetime.date(2007, 11, 14), "start": datetime.date(2007, 11, 8)},
11: {"end": datetime.date(2007, 11, 21), "start": datetime.date(2007, 11, 15)},
12: {"end": datetime.date(2007, 11, 28), "start": datetime.date(2007, 11, 22)},
13: {"end": datetime.date(2007, 12, 5), "start": datetime.date(2007, 11, 29)},
14: {"end": datetime.date(2007, 12, 12), "start": datetime.date(2007, 12, 6)},
15: {"end": datetime.date(2007, 12, 19), "start": datetime.date(2007, 12, 13)},
16: {"end": datetime.date(2007, 12, 26), "start": datetime.date(2007, 12, 20)},
17: {"end": datetime.date(2008, 1, 2), "start": datetime.date(2007, 12, 27)},
},
2008: {
1: {"end": datetime.date(2008, 9, 10), "start": datetime.date(2008, 9, 4)},
2: {"end": datetime.date(2008, 9, 17), "start": datetime.date(2008, 9, 11)},
3: {"end": datetime.date(2008, 9, 24), "start": datetime.date(2008, 9, 18)},
4: {"end": datetime.date(2008, 10, 1), "start": datetime.date(2008, 9, 25)},
5: {"end": datetime.date(2008, 10, 8), "start": datetime.date(2008, 10, 2)},
6: {"end": datetime.date(2008, 10, 15), "start": datetime.date(2008, 10, 9)},
7: {"end": datetime.date(2008, 10, 22), "start": datetime.date(2008, 10, 16)},
8: {"end": datetime.date(2008, 10, 29), "start": datetime.date(2008, 10, 23)},
9: {"end": datetime.date(2008, 11, 5), "start": datetime.date(2008, 10, 30)},
10: {"end": datetime.date(2008, 11, 12), "start": datetime.date(2008, 11, 6)},
11: {"end": datetime.date(2008, 11, 19), "start": datetime.date(2008, 11, 13)},
12: {"end": datetime.date(2008, 11, 26), "start": datetime.date(2008, 11, 20)},
13: {"end": datetime.date(2008, 12, 3), "start": datetime.date(2008, 11, 27)},
14: {"end": datetime.date(2008, 12, 10), "start": datetime.date(2008, 12, 4)},
15: {"end": datetime.date(2008, 12, 17), "start": datetime.date(2008, 12, 11)},
16: {"end": datetime.date(2008, 12, 24), "start": datetime.date(2008, 12, 18)},
17: {"end": datetime.date(2008, 12, 31), "start": datetime.date(2008, 12, 25)},
},
2009: {
1: {"end": datetime.date(2009, 9, 16), "start": datetime.date(2009, 9, 10)},
2: {"end": datetime.date(2009, 9, 23), "start": datetime.date(2009, 9, 17)},
3: {"end": datetime.date(2009, 9, 30), "start": datetime.date(2009, 9, 24)},
4: {"end": datetime.date(2009, 10, 7), "start": datetime.date(2009, 10, 1)},
5: {"end": datetime.date(2009, 10, 14), "start": datetime.date(2009, 10, 8)},
6: {"end": datetime.date(2009, 10, 21), "start": datetime.date(2009, 10, 15)},
7: {"end": datetime.date(2009, 10, 28), "start": datetime.date(2009, 10, 22)},
8: {"end": datetime.date(2009, 11, 4), "start": datetime.date(2009, 10, 29)},
9: {"end": datetime.date(2009, 11, 11), "start": datetime.date(2009, 11, 5)},
10: {"end": datetime.date(2009, 11, 18), "start": datetime.date(2009, 11, 12)},
11: {"end": datetime.date(2009, 11, 25), "start": datetime.date(2009, 11, 19)},
12: {"end": datetime.date(2009, 12, 2), "start": datetime.date(2009, 11, 26)},
13: {"end": datetime.date(2009, 12, 9), "start": datetime.date(2009, 12, 3)},
14: {"end": datetime.date(2009, 12, 16), "start": datetime.date(2009, 12, 10)},
15: {"end": datetime.date(2009, 12, 23), "start": datetime.date(2009, 12, 17)},
16: {"end": datetime.date(2009, 12, 30), "start": datetime.date(2009, 12, 24)},
17: {"end": datetime.date(2010, 1, 6), "start": datetime.date(2009, 12, 31)},
},
2010: {
1: {"end": datetime.date(2010, 9, 15), "start": datetime.date(2010, 9, 9)},
2: {"end": datetime.date(2010, 9, 22), "start": datetime.date(2010, 9, 16)},
3: {"end": datetime.date(2010, 9, 29), "start": datetime.date(2010, 9, 23)},
4: {"end": datetime.date(2010, 10, 6), "start": datetime.date(2010, 9, 30)},
5: {"end": datetime.date(2010, 10, 13), "start": datetime.date(2010, 10, 7)},
6: {"end": datetime.date(2010, 10, 20), "start": datetime.date(2010, 10, 14)},
7: {"end": datetime.date(2010, 10, 27), "start": datetime.date(2010, 10, 21)},
8: {"end": datetime.date(2010, 11, 3), "start": datetime.date(2010, 10, 28)},
9: {"end": datetime.date(2010, 11, 10), "start": datetime.date(2010, 11, 4)},
10: {"end": datetime.date(2010, 11, 17), "start": datetime.date(2010, 11, 11)},
11: {"end": datetime.date(2010, 11, 24), "start": datetime.date(2010, 11, 18)},
12: {"end": datetime.date(2010, 12, 1), "start": datetime.date(2010, 11, 25)},
13: {"end": datetime.date(2010, 12, 8), "start": datetime.date(2010, 12, 2)},
14: {"end": datetime.date(2010, 12, 15), "start": datetime.date(2010, 12, 9)},
15: {"end": datetime.date(2010, 12, 22), "start": datetime.date(2010, 12, 16)},
16: {"end": datetime.date(2010, 12, 29), "start": datetime.date(2010, 12, 23)},
17: {"end": datetime.date(2011, 1, 5), "start": datetime.date(2010, 12, 30)},
},
2011: {
1: {"end": datetime.date(2011, 9, 14), "start": datetime.date(2011, 9, 8)},
2: {"end": datetime.date(2011, 9, 21), "start": datetime.date(2011, 9, 15)},
3: {"end": datetime.date(2011, 9, 28), "start": datetime.date(2011, 9, 22)},
4: {"end": datetime.date(2011, 10, 5), "start": datetime.date(2011, 9, 29)},
5: {"end": datetime.date(2011, 10, 12), "start": datetime.date(2011, 10, 6)},
6: {"end": datetime.date(2011, 10, 19), "start": datetime.date(2011, 10, 13)},
7: {"end": datetime.date(2011, 10, 26), "start": datetime.date(2011, 10, 20)},
8: {"end": datetime.date(2011, 11, 2), "start": datetime.date(2011, 10, 27)},
9: {"end": datetime.date(2011, 11, 9), "start": datetime.date(2011, 11, 3)},
10: {"end": datetime.date(2011, 11, 16), "start": datetime.date(2011, 11, 10)},
11: {"end": datetime.date(2011, 11, 23), "start": datetime.date(2011, 11, 17)},
12: {"end": datetime.date(2011, 11, 30), "start": datetime.date(2011, 11, 24)},
13: {"end": datetime.date(2011, 12, 7), "start": datetime.date(2011, 12, 1)},
14: {"end": datetime.date(2011, 12, 14), "start": datetime.date(2011, 12, 8)},
15: {"end": datetime.date(2011, 12, 21), "start": datetime.date(2011, 12, 15)},
16: {"end": datetime.date(2011, 12, 28), "start": datetime.date(2011, 12, 22)},
17: {"end": datetime.date(2012, 1, 4), "start": datetime.date(2011, 12, 29)},
},
2012: {
1: {"end": datetime.date(2012, 9, 11), "start": datetime.date(2012, 9, 5)},
2: {"end": datetime.date(2012, 9, 18), "start": datetime.date(2012, 9, 12)},
3: {"end": datetime.date(2012, 9, 25), "start": datetime.date(2012, 9, 19)},
4: {"end": datetime.date(2012, 10, 2), "start": datetime.date(2012, 9, 26)},
5: {"end": datetime.date(2012, 10, 9), "start": datetime.date(2012, 10, 3)},
6: {"end": datetime.date(2012, 10, 16), "start": datetime.date(2012, 10, 10)},
7: {"end": datetime.date(2012, 10, 23), "start": datetime.date(2012, 10, 17)},
8: {"end": datetime.date(2012, 10, 30), "start": datetime.date(2012, 10, 24)},
9: {"end": datetime.date(2012, 11, 6), "start": datetime.date(2012, 10, 31)},
10: {"end": datetime.date(2012, 11, 13), "start": datetime.date(2012, 11, 7)},
11: {"end": datetime.date(2012, 11, 20), "start": datetime.date(2012, 11, 14)},
12: {"end": datetime.date(2012, 11, 27), "start": datetime.date(2012, 11, 21)},
13: {"end": datetime.date(2012, 12, 4), "start": datetime.date(2012, 11, 28)},
14: {"end": datetime.date(2012, 12, 11), "start": datetime.date(2012, 12, 5)},
15: {"end": datetime.date(2012, 12, 18), "start": datetime.date(2012, 12, 12)},
16: {"end": datetime.date(2012, 12, 25), "start": datetime.date(2012, 12, 19)},
17: {"end": datetime.date(2013, 1, 1), "start": datetime.date(2012, 12, 26)},
},
2013: {
1: {"end": datetime.date(2013, 9, 11), "start": datetime.date(2013, 9, 5)},
2: {"end": datetime.date(2013, 9, 18), "start": datetime.date(2013, 9, 12)},
3: {"end": datetime.date(2013, 9, 25), "start": datetime.date(2013, 9, 19)},
4: {"end": datetime.date(2013, 10, 2), "start": datetime.date(2013, 9, 26)},
5: {"end": datetime.date(2013, 10, 9), "start": datetime.date(2013, 10, 3)},
6: {"end": datetime.date(2013, 10, 16), "start": datetime.date(2013, 10, 10)},
7: {"end": datetime.date(2013, 10, 23), "start": datetime.date(2013, 10, 17)},
8: {"end": datetime.date(2013, 10, 30), "start": datetime.date(2013, 10, 24)},
9: {"end": datetime.date(2013, 11, 6), "start": datetime.date(2013, 10, 31)},
10: {"end": datetime.date(2013, 11, 13), "start": datetime.date(2013, 11, 7)},
11: {"end": datetime.date(2013, 11, 20), "start": datetime.date(2013, 11, 14)},
12: {"end": datetime.date(2013, 11, 27), "start": datetime.date(2013, 11, 21)},
13: {"end": datetime.date(2013, 12, 4), "start": datetime.date(2013, 11, 28)},
14: {"end": datetime.date(2013, 12, 11), "start": datetime.date(2013, 12, 5)},
15: {"end": datetime.date(2013, 12, 18), "start": datetime.date(2013, 12, 12)},
16: {"end": datetime.date(2013, 12, 25), "start": datetime.date(2013, 12, 19)},
17: {"end": datetime.date(2014, 1, 1), "start": datetime.date(2013, 12, 26)},
},
2014: {
1: {"end": datetime.date(2014, 9, 10), "start": datetime.date(2014, 9, 4)},
2: {"end": datetime.date(2014, 9, 17), "start": datetime.date(2014, 9, 11)},
3: {"end": datetime.date(2014, 9, 24), "start": datetime.date(2014, 9, 18)},
4: {"end": datetime.date(2014, 10, 1), "start": datetime.date(2014, 9, 25)},
5: {"end": datetime.date(2014, 10, 8), "start": datetime.date(2014, 10, 2)},
6: {"end": datetime.date(2014, 10, 15), "start": datetime.date(2014, 10, 9)},
7: {"end": datetime.date(2014, 10, 22), "start": datetime.date(2014, 10, 16)},
8: {"end": datetime.date(2014, 10, 29), "start": datetime.date(2014, 10, 23)},
9: {"end": datetime.date(2014, 11, 5), "start": datetime.date(2014, 10, 30)},
10: {"end": datetime.date(2014, 11, 12), "start": datetime.date(2014, 11, 6)},
11: {"end": datetime.date(2014, 11, 19), "start": datetime.date(2014, 11, 13)},
12: {"end": datetime.date(2014, 11, 26), "start": datetime.date(2014, 11, 20)},
13: {"end": datetime.date(2014, 12, 3), "start": datetime.date(2014, 11, 27)},
14: {"end": datetime.date(2014, 12, 10), "start": datetime.date(2014, 12, 4)},
15: {"end": datetime.date(2014, 12, 17), "start": datetime.date(2014, 12, 11)},
16: {"end": datetime.date(2014, 12, 24), "start": datetime.date(2014, 12, 18)},
17: {"end": datetime.date(2014, 12, 31), "start": datetime.date(2014, 12, 25)},
},
2015: {
1: {"end": datetime.date(2015, 9, 16), "start": datetime.date(2015, 9, 10)},
2: {"end": datetime.date(2015, 9, 23), "start": datetime.date(2015, 9, 17)},
3: {"end": datetime.date(2015, 9, 30), "start": datetime.date(2015, 9, 24)},
4: {"end": datetime.date(2015, 10, 7), "start": datetime.date(2015, 10, 1)},
5: {"end": datetime.date(2015, 10, 14), "start": datetime.date(2015, 10, 8)},
6: {"end": datetime.date(2015, 10, 21), "start": datetime.date(2015, 10, 15)},
7: {"end": datetime.date(2015, 10, 28), "start": datetime.date(2015, 10, 22)},
8: {"end": datetime.date(2015, 11, 4), "start": datetime.date(2015, 10, 29)},
9: {"end": datetime.date(2015, 11, 11), "start": datetime.date(2015, 11, 5)},
10: {"end": datetime.date(2015, 11, 18), "start": datetime.date(2015, 11, 12)},
11: {"end": datetime.date(2015, 11, 25), "start": datetime.date(2015, 11, 19)},
12: {"end": datetime.date(2015, 12, 2), "start": datetime.date(2015, 11, 26)},
13: {"end": datetime.date(2015, 12, 9), "start": datetime.date(2015, 12, 3)},
14: {"end": datetime.date(2015, 12, 16), "start": datetime.date(2015, 12, 10)},
15: {"end": datetime.date(2015, 12, 23), "start": datetime.date(2015, 12, 17)},
16: {"end": datetime.date(2015, 12, 30), "start": datetime.date(2015, 12, 24)},
17: {"end": datetime.date(2016, 1, 6), "start": datetime.date(2015, 12, 31)},
},
2016: {
1: {"end": datetime.date(2016, 9, 14), "start": datetime.date(2016, 9, 8)},
2: {"end": datetime.date(2016, 9, 21), "start": datetime.date(2016, 9, 15)},
3: {"end": datetime.date(2016, 9, 28), "start": datetime.date(2016, 9, 22)},
4: {"end": datetime.date(2016, 10, 5), "start": datetime.date(2016, 9, 29)},
5: {"end": datetime.date(2016, 10, 12), "start": datetime.date(2016, 10, 6)},
6: {"end": datetime.date(2016, 10, 19), "start": datetime.date(2016, 10, 13)},
7: {"end": datetime.date(2016, 10, 26), "start": datetime.date(2016, 10, 20)},
8: {"end": datetime.date(2016, 11, 2), "start": datetime.date(2016, 10, 27)},
9: {"end": datetime.date(2016, 11, 9), "start": datetime.date(2016, 11, 3)},
10: {"end": datetime.date(2016, 11, 16), "start": datetime.date(2016, 11, 10)},
11: {"end": datetime.date(2016, 11, 23), "start": datetime.date(2016, 11, 17)},
12: {"end": datetime.date(2016, 11, 30), "start": datetime.date(2016, 11, 24)},
13: {"end": datetime.date(2016, 12, 7), "start": datetime.date(2016, 12, 1)},
14: {"end": datetime.date(2016, 12, 14), "start": datetime.date(2016, 12, 8)},
15: {"end": datetime.date(2016, 12, 21), "start": datetime.date(2016, 12, 15)},
16: {"end": datetime.date(2016, 12, 28), "start": datetime.date(2016, 12, 22)},
17: {"end": datetime.date(2017, 1, 4), "start": datetime.date(2016, 12, 29)},
},
2017: {
1: {"start": datetime.date(2017, 9, 7), "end": datetime.date(2017, 9, 13)},
2: {"start": datetime.date(2017, 9, 14), "end": datetime.date(2017, 9, 20)},
3: {"start": datetime.date(2017, 9, 21), "end": datetime.date(2017, 9, 27)},
4: {"start": datetime.date(2017, 9, 28), "end": datetime.date(2017, 10, 4)},
5: {"start": datetime.date(2017, 10, 5), "end": datetime.date(2017, 10, 11)},
6: {"start": datetime.date(2017, 10, 12), "end": datetime.date(2017, 10, 18)},
7: {"start": datetime.date(2017, 10, 19), "end": datetime.date(2017, 10, 25)},
8: {"start": datetime.date(2017, 10, 26), "end": datetime.date(2017, 11, 1)},
9: {"start": datetime.date(2017, 11, 2), "end": datetime.date(2017, 11, 8)},
10: {"start": datetime.date(2017, 11, 9), "end": datetime.date(2017, 11, 15)},
11: {"start": datetime.date(2017, 11, 16), "end": datetime.date(2017, 11, 22)},
12: {"start": datetime.date(2017, 11, 23), "end": datetime.date(2017, 11, 29)},
13: {"start": datetime.date(2017, 11, 30), "end": datetime.date(2017, 12, 6)},
14: {"start": datetime.date(2017, 12, 7), "end": datetime.date(2017, 12, 13)},
15: {"start": datetime.date(2017, 12, 14), "end": datetime.date(2017, 12, 20)},
16: {"start": datetime.date(2017, 12, 21), "end": datetime.date(2017, 12, 27)},
17: {"start": datetime.date(2017, 12, 28), "end": datetime.date(2018, 1, 4)},
},
2018: {
1: {"start": datetime.date(2018, 9, 10), "end": datetime.date(2018, 9, 16)},
2: {"start": datetime.date(2018, 9, 17), "end": datetime.date(2018, 9, 23)},
3: {"start": datetime.date(2018, 9, 24), "end": datetime.date(2018, 9, 30)},
4: {"start": datetime.date(2018, 10, 1), "end": datetime.date(2018, 10, 7)},
5: {"start": datetime.date(2018, 10, 8), "end": datetime.date(2018, 10, 14)},
6: {"start": datetime.date(2018, 10, 15), "end": datetime.date(2018, 10, 21)},
7: {"start": datetime.date(2018, 10, 22), "end": datetime.date(2018, 10, 28)},
8: {"start": datetime.date(2018, 10, 29), "end": datetime.date(2018, 10, 4)},
9: {"start": datetime.date(2018, 11, 5), "end": datetime.date(2018, 11, 11)},
10: {"start": datetime.date(2018, 11, 12), "end": datetime.date(2018, 11, 18)},
11: {"start": datetime.date(2018, 11, 19), "end": datetime.date(2018, 11, 25)},
12: {"start": datetime.date(2018, 11, 26), "end": datetime.date(2018, 12, 2)},
13: {"start": datetime.date(2018, 12, 3), "end": datetime.date(2018, 12, 9)},
14: {"start": datetime.date(2018, 12, 10), "end": datetime.date(2018, 12, 16)},
15: {"start": datetime.date(2018, 12, 17), "end": datetime.date(2018, 12, 23)},
16: {"start": datetime.date(2018, 12, 24), "end": datetime.date(2018, 12, 30)},
17: {"start": datetime.date(2018, 12, 31), "end": datetime.date(2019, 1, 6)},
},
2019: {
1: {"start": datetime.date(2019, 9, 5), "end": datetime.date(2019, 9, 9)},
2: {"start": datetime.date(2019, 9, 12), "end": datetime.date(2019, 9, 16)},
3: {"start": datetime.date(2019, 9, 19), "end": datetime.date(2019, 9, 23)},
4: {"start": datetime.date(2019, 9, 26), "end": datetime.date(2019, 9, 30)},
5: {"start": datetime.date(2019, 10, 3), "end": datetime.date(2019, 10, 7)},
6: {"start": datetime.date(2019, 10, 10), "end": datetime.date(2019, 10, 14)},
7: {"start": datetime.date(2019, 10, 17), "end": datetime.date(2019, 10, 21)},
8: {"start": datetime.date(2019, 10, 24), "end": datetime.date(2019, 10, 28)},
9: {"start": datetime.date(2019, 10, 31), "end": datetime.date(2019, 11, 4)},
10: {"start": datetime.date(2019, 11, 7), "end": datetime.date(2019, 11, 11)},
11: {"start": datetime.date(2019, 11, 14), "end": datetime.date(2019, 11, 18)},
12: {"start": datetime.date(2019, 11, 21), "end": datetime.date(2019, 11, 25)},
13: {"start": datetime.date(2019, 11, 28), "end": datetime.date(2019, 12, 2)},
14: {"start": datetime.date(2019, 12, 3), "end": datetime.date(2019, 12, 9)},
15: {"start": datetime.date(2019, 12, 10), "end": datetime.date(2019, 12, 16)},
16: {"start": datetime.date(2019, 12, 17), "end": datetime.date(2019, 12, 23)},
17: {"start": datetime.date(2019, 12, 24), "end": datetime.date(2019, 12, 30)},
18: {"start": datetime.date(2019, 12, 31), "end": datetime.date(2020, 1, 6)},
19: {"start": datetime.date(2020, 1, 7), "end": datetime.date(2020, 1, 13)},
20: {"start": datetime.date(2020, 1, 14), "end": datetime.date(2020, 1, 20)},
21: {"start": datetime.date(2020, 1, 21), "end": datetime.date(2020, 2, 8)},
},
}
if __name__ == "__main__":
pass
| 76.103275 | 87 | 0.556151 | 4,501 | 30,213 | 3.731393 | 0.014219 | 0.491575 | 0.307234 | 0.020006 | 0.960762 | 0.266329 | 0 | 0 | 0 | 0 | 0 | 0.237916 | 0.201602 | 30,213 | 396 | 88 | 76.295455 | 0.458337 | 0.000463 | 0 | 0 | 0 | 0 | 0.091418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.002571 | 0.002571 | 0 | 0.002571 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
cd4f1b2a9ce667d03c2090127b3d4aa63b4a5ac7 | 55 | py | Python | pilotoeducacao/pilotoeducacao.py | okfn-brasil/piloto-educacao | a71cac0c8ba562b7f96cf402b6bb8cefac8864de | [
"MIT"
] | 3 | 2021-09-24T20:19:38.000Z | 2022-01-27T22:03:13.000Z | pilotoeducacao/pilotoeducacao.py | okfn-brasil/piloto-educacao | a71cac0c8ba562b7f96cf402b6bb8cefac8864de | [
"MIT"
] | null | null | null | pilotoeducacao/pilotoeducacao.py | okfn-brasil/piloto-educacao | a71cac0c8ba562b7f96cf402b6bb8cefac8864de | [
"MIT"
] | null | null | null | from .queries import get_queries
from .search import *
| 18.333333 | 32 | 0.8 | 8 | 55 | 5.375 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 55 | 2 | 33 | 27.5 | 0.914894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
2695d510e1abdba5a0b492274f11212ec4b1c30a | 79 | py | Python | energyhubpython/__init__.py | Nitthinan/EnergyHubPython | b2b54f41e4478422f23df8e14ea17fc8d31d796f | [
"MIT"
] | null | null | null | energyhubpython/__init__.py | Nitthinan/EnergyHubPython | b2b54f41e4478422f23df8e14ea17fc8d31d796f | [
"MIT"
] | null | null | null | energyhubpython/__init__.py | Nitthinan/EnergyHubPython | b2b54f41e4478422f23df8e14ea17fc8d31d796f | [
"MIT"
] | null | null | null | #__init__.py
from energyhubpython.energyhubtest import Student, SpecialStudent | 39.5 | 65 | 0.873418 | 8 | 79 | 8.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075949 | 79 | 2 | 65 | 39.5 | 0.890411 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
26ae80e54c015145b8d21e1419716c2e831050f4 | 233 | py | Python | tests/test_100_messages.py | hyoungsookim/banzee | f582f58a77c634eee4176be098db82eeb05945c4 | [
"BSD-3-Clause"
] | null | null | null | tests/test_100_messages.py | hyoungsookim/banzee | f582f58a77c634eee4176be098db82eeb05945c4 | [
"BSD-3-Clause"
] | null | null | null | tests/test_100_messages.py | hyoungsookim/banzee | f582f58a77c634eee4176be098db82eeb05945c4 | [
"BSD-3-Clause"
] | null | null | null | import pytest
from server.messages import get_message
def test_get_message_200():
assert get_message(200) == 'The request was completed successfully.'
def test_get_message_501():
assert get_message(501) == 'Unknown code'
| 21.181818 | 72 | 0.763948 | 33 | 233 | 5.121212 | 0.575758 | 0.295858 | 0.118343 | 0.201183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0.150215 | 233 | 10 | 73 | 23.3 | 0.792929 | 0 | 0 | 0 | 0 | 0 | 0.219828 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
26e049995b784643a62e46410c991f841cb3589a | 189 | py | Python | spectral/database/__init__.py | wwlswj/spectral | e886e4d9f8c34f512c8e81867f0de76e15550572 | [
"MIT"
] | 398 | 2015-01-16T14:55:20.000Z | 2022-03-29T04:13:00.000Z | spectral/database/__init__.py | wwlswj/spectral | e886e4d9f8c34f512c8e81867f0de76e15550572 | [
"MIT"
] | 108 | 2015-01-20T15:39:17.000Z | 2022-02-23T09:59:55.000Z | spectral/database/__init__.py | wwlswj/spectral | e886e4d9f8c34f512c8e81867f0de76e15550572 | [
"MIT"
] | 123 | 2015-03-25T10:15:54.000Z | 2022-03-06T14:24:21.000Z | from __future__ import absolute_import, division, print_function, unicode_literals
from .aster import AsterDatabase
from .ecostress import EcostressDatabase
from .usgs import USGSDatabase
| 31.5 | 82 | 0.862434 | 22 | 189 | 7.090909 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10582 | 189 | 5 | 83 | 37.8 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
26fd23c2038410fb0f4025b299eeb81b5aab7943 | 100 | py | Python | src/speechless/readers/__init__.py | Exepp/SpeechLess | 6e7424e979f39132650db0d7426c1e9449dc43b8 | [
"MIT"
] | 1 | 2022-03-17T14:51:41.000Z | 2022-03-17T14:51:41.000Z | src/speechless/readers/__init__.py | Exepp/SpeechLess | 6e7424e979f39132650db0d7426c1e9449dc43b8 | [
"MIT"
] | 14 | 2021-06-23T02:27:22.000Z | 2021-11-27T15:43:39.000Z | src/speechless/readers/__init__.py | Exepp/SpeechLess | 6e7424e979f39132650db0d7426c1e9449dc43b8 | [
"MIT"
] | null | null | null | from .audio import AudioReader, StreamInfo, read_entire_audio
from .subtitles import read_subtitles
| 33.333333 | 61 | 0.86 | 13 | 100 | 6.384615 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 100 | 2 | 62 | 50 | 0.922222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
f80ed6c24ebf7ec5c0708c6581925c3bbfca90b4 | 910 | py | Python | src/pygcode_modules/haskell.py | kazetkazet/cnc | 8e207a71616a9a13bac57df85631714235589891 | [
"MIT"
] | null | null | null | src/pygcode_modules/haskell.py | kazetkazet/cnc | 8e207a71616a9a13bac57df85631714235589891 | [
"MIT"
] | null | null | null | src/pygcode_modules/haskell.py | kazetkazet/cnc | 8e207a71616a9a13bac57df85631714235589891 | [
"MIT"
] | null | null | null | def code() -> str:
"""
Example G-code module, Haskell logo.
Please simulate first, before milling.
"""
return """
G91
G0 Z30
G0 X-70 Y-60
G0 X0 Y120
G0 Z-30
G0 X40 Y-60
G0 X-40 Y-60
G0 X30 Y0
G0 X40 Y60
G0 X-40 Y60
G0 X-30 Y0
G0 Z30
G0 X50
G0 Z-30
G0 X40 Y-60
G0 X-40 Y-60
G0 X30 Y0
G0 X80 Y120
G0 X-30 Y0
G0 X-25 Y-37.5
G0 X-25 Y37.5
G0 X-30 Y0
G0 Z30
G0 X106.666667 Y-35
G0 Z-30
G0 X0 Y0
G0 X-13.3333 Y-20
G0 X46.66 Y0
G0 X0 Y20
G0 X-33.330 Y0
G0 Z30
G0 X-20 Y-35
G0 Z-30
G0 X-13.3333 Y-20
G0 X66.67
G0 Y20
G0 X-53.33
G0 Z30
G0 X-66.666667 Y10
G0 Z-30
"""
| 16.25 | 42 | 0.40989 | 159 | 910 | 2.345912 | 0.320755 | 0.120643 | 0.093834 | 0.075067 | 0.383378 | 0.359249 | 0.310992 | 0.160858 | 0.160858 | 0.160858 | 0 | 0.441379 | 0.521978 | 910 | 55 | 43 | 16.545455 | 0.416092 | 0.083516 | 0 | 0.488372 | 0 | 0 | 0.948403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | true | 0 | 0 | 0 | 0.046512 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
f855de0f57d8594d8599c764b0c22332bd21634a | 266 | py | Python | api/models.py | trinhcaokhoa/Mebook_hub | bb889d990e7b1bc6fd84b2b34733b00151a52f0d | [
"MIT"
] | 1 | 2022-03-30T20:00:33.000Z | 2022-03-30T20:00:33.000Z | api/models.py | trinhcaokhoa/Mebook_hub | bb889d990e7b1bc6fd84b2b34733b00151a52f0d | [
"MIT"
] | null | null | null | api/models.py | trinhcaokhoa/Mebook_hub | bb889d990e7b1bc6fd84b2b34733b00151a52f0d | [
"MIT"
] | null | null | null | from django.db import models
class Book(models.Model):
name = models.CharField(max_length=200, default="")
author = models.CharField(max_length=20, default="")
area = models.CharField(max_length=20)
link_to_book = models.CharField(max_length=200)
| 26.6 | 56 | 0.729323 | 37 | 266 | 5.081081 | 0.513514 | 0.319149 | 0.382979 | 0.510638 | 0.56383 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044053 | 0.146617 | 266 | 9 | 57 | 29.555556 | 0.784141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 5 |
f8724d41ce0103b685ed5c439035d4eabff1585f | 388 | py | Python | allennlp/semparse/domain_languages/__init__.py | entslscheia/allennlp | eeba62e34c8e211ed5963f830528c957f178607b | [
"Apache-2.0"
] | null | null | null | allennlp/semparse/domain_languages/__init__.py | entslscheia/allennlp | eeba62e34c8e211ed5963f830528c957f178607b | [
"Apache-2.0"
] | null | null | null | allennlp/semparse/domain_languages/__init__.py | entslscheia/allennlp | eeba62e34c8e211ed5963f830528c957f178607b | [
"Apache-2.0"
] | 1 | 2021-09-21T12:03:27.000Z | 2021-09-21T12:03:27.000Z | from allennlp.semparse.domain_languages.domain_language import (
DomainLanguage,
START_SYMBOL,
predicate,
predicate_with_side_args,
)
from allennlp.semparse.domain_languages.nlvr_language import NlvrLanguage
from allennlp.semparse.domain_languages.quarel_language import QuaRelLanguage
from allennlp.semparse.domain_languages.wikitables_language import WikiTablesLanguage
| 38.8 | 85 | 0.858247 | 43 | 388 | 7.465116 | 0.465116 | 0.149533 | 0.249221 | 0.323988 | 0.436137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095361 | 388 | 9 | 86 | 43.111111 | 0.91453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
f8905b42e41c18b0f84f38d635b69fb315925e0e | 70 | py | Python | hello-world/hello_world.py | olepunchy/exercism-python-solutions | 7710e49ec0188510d50a22928cdb951063ad1a44 | [
"BSD-3-Clause"
] | 1 | 2021-12-20T11:29:35.000Z | 2021-12-20T11:29:35.000Z | hello-world/hello_world.py | olepunchy/exercism-python-solutions | 7710e49ec0188510d50a22928cdb951063ad1a44 | [
"BSD-3-Clause"
] | null | null | null | hello-world/hello_world.py | olepunchy/exercism-python-solutions | 7710e49ec0188510d50a22928cdb951063ad1a44 | [
"BSD-3-Clause"
] | null | null | null | def hello():
# return 'Goodbye, Mars!'
return 'Hello, World!'
| 17.5 | 29 | 0.585714 | 8 | 70 | 5.125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242857 | 70 | 3 | 30 | 23.333333 | 0.773585 | 0.328571 | 0 | 0 | 0 | 0 | 0.288889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.