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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
49206ede4930182521d4ce9c6b49dda8aef894c6 | 97 | py | Python | cash/settings/product.py | anshengme/cash | 7b24338ea2f3f92fe82f668335bb2eb6e6479f9e | [
"MIT"
] | 18 | 2019-01-04T01:58:03.000Z | 2021-06-25T09:03:58.000Z | cash/settings/product.py | anshengme/cash | 7b24338ea2f3f92fe82f668335bb2eb6e6479f9e | [
"MIT"
] | 3 | 2019-02-26T16:24:40.000Z | 2020-04-04T10:41:38.000Z | cash/settings/product.py | anshengme/cash | 7b24338ea2f3f92fe82f668335bb2eb6e6479f9e | [
"MIT"
] | 5 | 2019-02-26T15:32:52.000Z | 2019-04-22T09:35:27.000Z | from .base import *
DEBUG = False
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', SECRET_KEY)
| 16.166667 | 60 | 0.752577 | 15 | 97 | 4.6 | 0.733333 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134021 | 97 | 5 | 61 | 19.4 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.175258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4924946192a3e01f6cc5df5f86d6a37b39e0f8e7 | 94 | py | Python | flights/urls.py | olubiyiontheweb/travelworld | ca9d2206108bd59fd222e384bcaab7efd6832e24 | [
"MIT"
] | null | null | null | flights/urls.py | olubiyiontheweb/travelworld | ca9d2206108bd59fd222e384bcaab7efd6832e24 | [
"MIT"
] | null | null | null | flights/urls.py | olubiyiontheweb/travelworld | ca9d2206108bd59fd222e384bcaab7efd6832e24 | [
"MIT"
] | null | null | null | from django.urls import path
from flights import views
urlpatterns = [path("", views.index)]
| 18.8 | 37 | 0.755319 | 13 | 94 | 5.461538 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138298 | 94 | 4 | 38 | 23.5 | 0.876543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
495701e22432966b0a7ba235c137600209fc7f19 | 578 | py | Python | website/error.py | TWoolhouse/Libraries | 26079ed387cb800cb97f20980720ae094008c7bf | [
"MIT"
] | 1 | 2020-10-11T15:34:56.000Z | 2020-10-11T15:34:56.000Z | website/error.py | TWoolhouse/Libraries | 26079ed387cb800cb97f20980720ae094008c7bf | [
"MIT"
] | null | null | null | website/error.py | TWoolhouse/Libraries | 26079ed387cb800cb97f20980720ae094008c7bf | [
"MIT"
] | null | null | null | class WebsiteBaseError(Exception):
pass
class TreeTraversal(WebsiteBaseError):
def __init__(self, tree, request, segment, req=None):
super().__init__()
self.tree, self.request, self.segment, self.req = tree, request, segment, req
def __str__(self) -> str:
return f"{self.tree} > {s... | 27.52381 | 101 | 0.647059 | 69 | 578 | 5.072464 | 0.318841 | 0.091429 | 0.131429 | 0.154286 | 0.297143 | 0.297143 | 0.137143 | 0 | 0 | 0 | 0 | 0 | 0.216263 | 578 | 20 | 102 | 28.9 | 0.772627 | 0 | 0 | 0.285714 | 0 | 0.071429 | 0.16609 | 0.051903 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.071429 | 0 | 0.142857 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
496df5ac2b816d0d93ed95d0c8119c0af62b55d9 | 91 | py | Python | controller/ORCA_CLEAN/execute.py | nestorcalvo/Backend-AudioClean | 7edb373c518193bc5643e9524d78d9ba32163b3f | [
"MIT"
] | null | null | null | controller/ORCA_CLEAN/execute.py | nestorcalvo/Backend-AudioClean | 7edb373c518193bc5643e9524d78d9ba32163b3f | [
"MIT"
] | null | null | null | controller/ORCA_CLEAN/execute.py | nestorcalvo/Backend-AudioClean | 7edb373c518193bc5643e9524d78d9ba32163b3f | [
"MIT"
] | null | null | null | from predict import predict
if __name__ == "__main__":
# predict()
print("A ")
| 15.166667 | 27 | 0.604396 | 10 | 91 | 4.7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263736 | 91 | 5 | 28 | 18.2 | 0.701493 | 0.098901 | 0 | 0 | 0 | 0 | 0.1625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
496f6fa945313ae8eb812d0256476b19fbb908f6 | 174 | py | Python | fperms_iscore/main.py | druids/django-fperms-iscore | 8e919cdc70ed57e0eb6407469de9ef2441ae06ad | [
"MIT"
] | 1 | 2019-10-07T12:40:38.000Z | 2019-10-07T12:40:38.000Z | fperms_iscore/main.py | druids/django-fperms-iscore | 8e919cdc70ed57e0eb6407469de9ef2441ae06ad | [
"MIT"
] | 3 | 2019-08-09T14:10:21.000Z | 2022-02-01T13:48:01.000Z | fperms_iscore/main.py | druids/django-fperms-iscore | 8e919cdc70ed57e0eb6407469de9ef2441ae06ad | [
"MIT"
] | null | null | null | from is_core.main import DjangoUiRestCore
from fperms_iscore.mixins import PermCoreMixin
class PermDjangoUiRestCore(PermCoreMixin, DjangoUiRestCore):
abstract = True
| 19.333333 | 60 | 0.833333 | 18 | 174 | 7.944444 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126437 | 174 | 8 | 61 | 21.75 | 0.940789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
49706257061fd5cb42e071e2e21ada1c26eefe8c | 593 | py | Python | graviteeio_cli/commands/apim/apis/definition.py | Shaker5191/graviteeio-cli | 318748bb8e631743ea58afaee24333249ca3d227 | [
"Apache-2.0"
] | null | null | null | graviteeio_cli/commands/apim/apis/definition.py | Shaker5191/graviteeio-cli | 318748bb8e631743ea58afaee24333249ca3d227 | [
"Apache-2.0"
] | null | null | null | graviteeio_cli/commands/apim/apis/definition.py | Shaker5191/graviteeio-cli | 318748bb8e631743ea58afaee24333249ca3d227 | [
"Apache-2.0"
] | null | null | null | import click
from .definition_group.apply import apply
from .definition_group.diff import diff
from .definition_group.generate import generate
from .definition_group.create import create
# from .definition_group.lint import lint
@click.group(short_help="Manage API definition configuration")
@click.pass_context
def d... | 26.954545 | 91 | 0.819562 | 79 | 593 | 6 | 0.367089 | 0.147679 | 0.200422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104553 | 593 | 21 | 92 | 28.238095 | 0.892655 | 0.254637 | 0 | 0 | 1 | 0 | 0.08046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.153846 | 0.384615 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
49788254641401f0ac3bea81c52abecf9425c9b7 | 58 | py | Python | test/__init__.py | stungkit/tfidf_matcher | 24182504d21f1eb978839b700f1c402c6288df2f | [
"MIT"
] | 13 | 2020-02-24T18:29:15.000Z | 2021-12-28T09:41:35.000Z | test/__init__.py | stungkit/tfidf_matcher | 24182504d21f1eb978839b700f1c402c6288df2f | [
"MIT"
] | null | null | null | test/__init__.py | stungkit/tfidf_matcher | 24182504d21f1eb978839b700f1c402c6288df2f | [
"MIT"
] | 3 | 2020-07-21T04:32:45.000Z | 2021-10-21T11:00:56.000Z | # AUTHOR: Louis Tsiattalou
# DESCRIPTION: Init for Tests.
| 19.333333 | 30 | 0.758621 | 7 | 58 | 6.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155172 | 58 | 2 | 31 | 29 | 0.897959 | 0.913793 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
498724366b10f885fa79f500eaf773989a21c6f1 | 358 | py | Python | tests/test_skeleton_says.py | thomascobb/skeleton-says | e2ea189e075a0847a6679dc066bad47ced5d397a | [
"Apache-2.0"
] | null | null | null | tests/test_skeleton_says.py | thomascobb/skeleton-says | e2ea189e075a0847a6679dc066bad47ced5d397a | [
"Apache-2.0"
] | null | null | null | tests/test_skeleton_says.py | thomascobb/skeleton-says | e2ea189e075a0847a6679dc066bad47ced5d397a | [
"Apache-2.0"
] | null | null | null | from skeleton_says import say
skeleton_saying_hello = r"""
-------
( Hello )
-------
\
\ .-.
\(o.o)
|=|
__|__
//.=|=.\\
// .=|=. \\
\\ .=|=. //
\\(_=_)//
(:| |:)
|| ||
() ()
|| ||
|| ||
l42 ==' '==
"""
def test_say_command_says_hello() -> None:
assert say.... | 13.259259 | 52 | 0.379888 | 27 | 358 | 4.481481 | 0.555556 | 0.231405 | 0.31405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0.312849 | 358 | 26 | 53 | 13.769231 | 0.48374 | 0 | 0 | 0.304348 | 0 | 0 | 0.564246 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.086957 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 4 |
498e87a7732f2915dd699629baa71c985e250298 | 143 | py | Python | app/sett.py | AndreyKaBelka/MoneySaver | 5ad2bc60379aeb0b02e71760e22b260bf29982e2 | [
"Apache-2.0"
] | null | null | null | app/sett.py | AndreyKaBelka/MoneySaver | 5ad2bc60379aeb0b02e71760e22b260bf29982e2 | [
"Apache-2.0"
] | 3 | 2020-12-12T23:33:36.000Z | 2020-12-12T23:35:54.000Z | app/sett.py | AndreyKaBelka/MoneySaver | 5ad2bc60379aeb0b02e71760e22b260bf29982e2 | [
"Apache-2.0"
] | null | null | null | class Settings:
BOT_KEY = ""
HOST_NAME = "127.0.0.1"
USER_NAME = "root"
USER_PASS = "Andrey171200"
SQL_NAME = "moneysaver"
| 20.428571 | 30 | 0.608392 | 19 | 143 | 4.315789 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 0.258741 | 143 | 6 | 31 | 23.833333 | 0.660377 | 0 | 0 | 0 | 0 | 0 | 0.244755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
49a17ebec39db4cc9cf78ab25d40d4459000d689 | 264 | py | Python | AiSD_03/Zadanie_7.py | DLQuake/Algorytmy_i_struktury_danych | 210d0b4e868e5cc9d6aa730a2297d8074e4d52a1 | [
"MIT"
] | null | null | null | AiSD_03/Zadanie_7.py | DLQuake/Algorytmy_i_struktury_danych | 210d0b4e868e5cc9d6aa730a2297d8074e4d52a1 | [
"MIT"
] | null | null | null | AiSD_03/Zadanie_7.py | DLQuake/Algorytmy_i_struktury_danych | 210d0b4e868e5cc9d6aa730a2297d8074e4d52a1 | [
"MIT"
] | null | null | null | # Zaimplementować funkcję n_sums(n: int) -> listint, która zwróci wszystkie n-cyfrowe liczby o takich samych sumach na indeksach parzystych i nieparzystych. Przykładowo, dla 3 cyfr będą to liczby m.in. 198, 220, 891, 990
def n_sums(n: int):
print(n_sums(3)) | 44 | 220 | 0.75 | 44 | 264 | 4.431818 | 0.772727 | 0.076923 | 0.061538 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063348 | 0.162879 | 264 | 6 | 221 | 44 | 0.819005 | 0.825758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
b8fe991a0b450794e796f906cb32a0c3c5911676 | 77 | py | Python | pyrepl/iconsole.py | thinkle/snippets | a19fd709fc618cee9d76b7481b834c3e0d4ed397 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | pyrepl/iconsole.py | thinkle/snippets | a19fd709fc618cee9d76b7481b834c3e0d4ed397 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | pyrepl/iconsole.py | thinkle/snippets | a19fd709fc618cee9d76b7481b834c3e0d4ed397 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-08-28T22:06:53.000Z | 2019-08-28T22:06:53.000Z | from IPython.Shell import IPShellEmbed
ipshell = IPShellEmbed()
ipshell()
| 11 | 38 | 0.779221 | 8 | 77 | 7.5 | 0.75 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 77 | 6 | 39 | 12.833333 | 0.909091 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7707130bae4f273be796d5022abf873f7542914d | 89 | py | Python | cookies/apps.py | hamishwillee/http_tester_site | 5c9fa6840c7931f4a7dbd669616cb7b06e29c068 | [
"MIT"
] | null | null | null | cookies/apps.py | hamishwillee/http_tester_site | 5c9fa6840c7931f4a7dbd669616cb7b06e29c068 | [
"MIT"
] | 8 | 2021-03-19T10:14:39.000Z | 2022-03-12T00:24:41.000Z | cookies/apps.py | ADpDinamo/site | d7313cd6c151a381ccc803b81768673587cb8d45 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class CookiesConfig(AppConfig):
name = 'cookies'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
770d1178d917aa0b3ade69999920d0f07b37f63c | 447 | py | Python | backend/src/util/observable.py | r2binx/heimboard | 42059d367e5b15c4910e61f4be0e3b462da8d5f7 | [
"MIT"
] | 6 | 2021-12-20T21:36:03.000Z | 2022-03-30T16:04:54.000Z | backend/src/util/observable.py | r2binx/heimboard | 42059d367e5b15c4910e61f4be0e3b462da8d5f7 | [
"MIT"
] | 16 | 2021-12-20T20:14:43.000Z | 2022-01-26T12:43:59.000Z | backend/src/util/observable.py | r2binx/heimboard | 42059d367e5b15c4910e61f4be0e3b462da8d5f7 | [
"MIT"
] | 1 | 2022-01-25T20:59:35.000Z | 2022-01-25T20:59:35.000Z | from typing import List
class Observable:
_observers: List = []
def __init__(self):
self._observers = []
def subscribe(self, observer):
self._observers.append(observer)
def notify_observers(self, *args, **kwargs):
for obs in self._observers:
obs.notify(self, *arg... | 20.318182 | 48 | 0.621924 | 49 | 447 | 5.469388 | 0.469388 | 0.19403 | 0.119403 | 0.186567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268456 | 447 | 21 | 49 | 21.285714 | 0.819572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0.071429 | 0.071429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
7738eed30266f468e9290a38da24497ebf1d541d | 357 | py | Python | project/Fast/django/decorators/auth.py | fael07/DRF-Project | f65b4177e56e7209d2369ba9d6d81bfe00321052 | [
"MIT"
] | null | null | null | project/Fast/django/decorators/auth.py | fael07/DRF-Project | f65b4177e56e7209d2369ba9d6d81bfe00321052 | [
"MIT"
] | null | null | null | project/Fast/django/decorators/auth.py | fael07/DRF-Project | f65b4177e56e7209d2369ba9d6d81bfe00321052 | [
"MIT"
] | null | null | null | from ...forms.checks import check_is_logged
from django.shortcuts import redirect
def no_login_required(view_function):
def exec_view_function(*args, **kwargs):
request = args[0]
if check_is_logged(request):
return redirect('/')
return view_function(*args, **kwargs) ... | 23.8 | 47 | 0.661064 | 43 | 357 | 5.209302 | 0.534884 | 0.214286 | 0.116071 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003731 | 0.2493 | 357 | 14 | 48 | 25.5 | 0.83209 | 0 | 0 | 0 | 0 | 0 | 0.002801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
773a2176b2ba4a1a9a4e1bd585d65e2d15549d01 | 226 | py | Python | HackerRank/CtCI/array_left_rotation.py | mahasak/Practice | 7ed125087b977b034161157830b8e415d52b6ed7 | [
"Unlicense"
] | null | null | null | HackerRank/CtCI/array_left_rotation.py | mahasak/Practice | 7ed125087b977b034161157830b8e415d52b6ed7 | [
"Unlicense"
] | null | null | null | HackerRank/CtCI/array_left_rotation.py | mahasak/Practice | 7ed125087b977b034161157830b8e415d52b6ed7 | [
"Unlicense"
] | null | null | null | def array_left_rotation(a, n, k):
return a[k:] + a[0:k]
n, k = map(int, raw_input().strip().split(' '))
a = map(int, raw_input().strip().split(' '))
answer = array_left_rotation(a, n, k);
print ' '.join(map(str,answer))
| 25.111111 | 47 | 0.610619 | 40 | 226 | 3.3 | 0.475 | 0.045455 | 0.257576 | 0.272727 | 0.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.146018 | 226 | 8 | 48 | 28.25 | 0.678756 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
773e5f3762c89c880f8d622fb33299a5f198d29d | 130 | bzl | Python | test/external_repo/repo.bzl | Vertexwahn/depend_on_what_you_use | 480732677a74fb7033848004d4d5015af0ad36c5 | [
"MIT"
] | null | null | null | test/external_repo/repo.bzl | Vertexwahn/depend_on_what_you_use | 480732677a74fb7033848004d4d5015af0ad36c5 | [
"MIT"
] | null | null | null | test/external_repo/repo.bzl | Vertexwahn/depend_on_what_you_use | 480732677a74fb7033848004d4d5015af0ad36c5 | [
"MIT"
] | null | null | null | def load_external_repo():
native.local_repository(
name = "ext_repo",
path = "test/external_repo/repo",
)
| 21.666667 | 41 | 0.615385 | 15 | 130 | 5 | 0.733333 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261538 | 130 | 5 | 42 | 26 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0.238462 | 0.176923 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 4 |
774ee32b7bd61777145b97c33929e59c467687c5 | 64 | py | Python | pyCameras/__init__.py | imr-luh/pyCameras | 30fc220022b0562f5244d9fd5f436b8630abe4cd | [
"MIT"
] | 2 | 2019-05-10T08:43:38.000Z | 2019-05-17T16:00:13.000Z | pyCameras/__init__.py | imr-luh/pyCameras | 30fc220022b0562f5244d9fd5f436b8630abe4cd | [
"MIT"
] | null | null | null | pyCameras/__init__.py | imr-luh/pyCameras | 30fc220022b0562f5244d9fd5f436b8630abe4cd | [
"MIT"
] | 2 | 2020-03-10T17:15:08.000Z | 2020-04-24T09:02:21.000Z | __version__ = '0.0.1'
from . import utils
from .utils import *
| 12.8 | 21 | 0.6875 | 10 | 64 | 4 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 0.1875 | 64 | 4 | 22 | 16 | 0.711538 | 0 | 0 | 0 | 0 | 0 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
62291b009a583ae54f27aedb9899f9e284646d88 | 598 | py | Python | Classes/ex17.py | oDallas/PythomBR | 7d3b3bcefe05ce483f6aa664bbc4962a1e0fd285 | [
"MIT"
] | 1 | 2019-06-02T18:59:18.000Z | 2019-06-02T18:59:18.000Z | Classes/ex17.py | oDallas/PythonBR | 7d3b3bcefe05ce483f6aa664bbc4962a1e0fd285 | [
"MIT"
] | null | null | null | Classes/ex17.py | oDallas/PythonBR | 7d3b3bcefe05ce483f6aa664bbc4962a1e0fd285 | [
"MIT"
] | null | null | null | """"
Crie uma Fazenda de Bichinhos instanciando vários objetos bichinho e mantendo o controle deles através de uma lista.
Imite o funcionamento do programa básico, mas ao invés de exigis que o usuário tome conta de um único bichinho,
exija que ele tome conta da fazenda inteira. Cada opção do menu deveria permitir que o... | 59.8 | 119 | 0.797659 | 97 | 598 | 4.917526 | 0.639175 | 0.0587 | 0.134172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168896 | 598 | 9 | 120 | 66.444444 | 0.959759 | 0.983278 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.222222 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
626c09d5e7442d6e48e408bb35182589e7d6f723 | 87 | py | Python | tests/periodicities/Business_Day/Cycle_Business_Day_200_B_24.py | jmabry/pyaf | afbc15a851a2445a7824bf255af612dc429265af | [
"BSD-3-Clause"
] | null | null | null | tests/periodicities/Business_Day/Cycle_Business_Day_200_B_24.py | jmabry/pyaf | afbc15a851a2445a7824bf255af612dc429265af | [
"BSD-3-Clause"
] | 1 | 2019-11-30T23:39:38.000Z | 2019-12-01T04:34:35.000Z | tests/periodicities/Business_Day/Cycle_Business_Day_200_B_24.py | jmabry/pyaf | afbc15a851a2445a7824bf255af612dc429265af | [
"BSD-3-Clause"
] | null | null | null | import pyaf.tests.periodicities.period_test as per
per.buildModel((24 , 'B' , 200));
| 17.4 | 50 | 0.724138 | 13 | 87 | 4.769231 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065789 | 0.126437 | 87 | 4 | 51 | 21.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
626cc4db6e624b921fb50a7db02432aa617a9dbd | 215 | py | Python | shell/response.py | YorkSu/deepgo | 2f22ad50d2958a4f1c7dfc0af6fcd448f5e7e18d | [
"Apache-2.0"
] | null | null | null | shell/response.py | YorkSu/deepgo | 2f22ad50d2958a4f1c7dfc0af6fcd448f5e7e18d | [
"Apache-2.0"
] | null | null | null | shell/response.py | YorkSu/deepgo | 2f22ad50d2958a4f1c7dfc0af6fcd448f5e7e18d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Response
======
Response Class
"""
from deepgo.core.kernel.popo import VO
class Response(VO):
def __init__(self):
self.code = 0
def json(self):
return self.__dict__
| 11.315789 | 38 | 0.609302 | 28 | 215 | 4.392857 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0.223256 | 215 | 18 | 39 | 11.944444 | 0.724551 | 0.251163 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
62781a4622485a3c3996f4345f375edf051908c6 | 83 | py | Python | backend/bios/apps.py | juanrmv/torre-test | 39c4f8928f6f51e462975ef5f89c7a9b5bb05733 | [
"Apache-2.0"
] | null | null | null | backend/bios/apps.py | juanrmv/torre-test | 39c4f8928f6f51e462975ef5f89c7a9b5bb05733 | [
"Apache-2.0"
] | null | null | null | backend/bios/apps.py | juanrmv/torre-test | 39c4f8928f6f51e462975ef5f89c7a9b5bb05733 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class BiosConfig(AppConfig):
name = 'bios'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
656dd6e36b81c8ae6c5f6face7c1c54668fb5ff1 | 307 | py | Python | stix_shifter_modules/secretserver/stix_transmission/delete_connector.py | grimmjow8/stix-shifter | 7d252fc241a606f0141ed50d64368d8a5e7e5c5a | [
"Apache-2.0"
] | 129 | 2019-10-09T17:13:03.000Z | 2022-03-03T08:25:46.000Z | stix_shifter_modules/secretserver/stix_transmission/delete_connector.py | grimmjow8/stix-shifter | 7d252fc241a606f0141ed50d64368d8a5e7e5c5a | [
"Apache-2.0"
] | 415 | 2019-10-03T14:29:20.000Z | 2022-03-31T18:23:41.000Z | stix_shifter_modules/secretserver/stix_transmission/delete_connector.py | grimmjow8/stix-shifter | 7d252fc241a606f0141ed50d64368d8a5e7e5c5a | [
"Apache-2.0"
] | 178 | 2019-10-08T22:18:48.000Z | 2022-03-21T11:04:05.000Z | from stix_shifter_utils.modules.base.stix_transmission.base_delete_connector import BaseDeleteConnector
class DeleteConnector(BaseDeleteConnector):
def __init__(self, api_client):
self.api_client = api_client
def delete_query_connection(self, search_id):
return {"success": True}
| 30.7 | 103 | 0.781759 | 36 | 307 | 6.25 | 0.694444 | 0.12 | 0.115556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14658 | 307 | 9 | 104 | 34.111111 | 0.858779 | 0 | 0 | 0 | 0 | 0 | 0.022801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
657895d9e23f4c721777cf7c3eb7603b0f1ecfd7 | 199 | py | Python | app/gunicorn_settings.py | jsonbinit/jsonbinit-api | babbf16f1fafe913d9fdb2646cb7a9542ec19355 | [
"MIT"
] | 3 | 2020-06-24T14:55:51.000Z | 2020-06-25T23:12:13.000Z | app/gunicorn_settings.py | jsonbinit/jsonbinit-api | babbf16f1fafe913d9fdb2646cb7a9542ec19355 | [
"MIT"
] | 3 | 2020-04-23T10:39:25.000Z | 2020-06-24T15:22:25.000Z | app/gunicorn_settings.py | jsonbinit/jsonbinit-api | babbf16f1fafe913d9fdb2646cb7a9542ec19355 | [
"MIT"
] | null | null | null | import multiprocessing
import os
bind = "{0}:{1}".format(os.environ.get('HOST', '0.0.0.0'), os.environ.get('PORT', '8080'))
workers = os.environ.get('WORKERS', multiprocessing.cpu_count() * 2 + 1)
| 28.428571 | 90 | 0.668342 | 31 | 199 | 4.258065 | 0.516129 | 0.204545 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067039 | 0.100503 | 199 | 6 | 91 | 33.166667 | 0.670391 | 0 | 0 | 0 | 0 | 0 | 0.165829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 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 | 4 |
65990aa07c9374074643ecde94fe1aa073f34786 | 4,310 | py | Python | tests/test_schema.py | LeafyLappa/starlette-jsonapi | 1cd7268fe78983c0203e4f65549f974d3f5d968f | [
"MIT"
] | 16 | 2020-07-05T18:12:41.000Z | 2022-03-11T21:12:17.000Z | tests/test_schema.py | LeafyLappa/starlette-jsonapi | 1cd7268fe78983c0203e4f65549f974d3f5d968f | [
"MIT"
] | 25 | 2020-07-04T17:06:40.000Z | 2021-08-18T09:24:30.000Z | tests/test_schema.py | LeafyLappa/starlette-jsonapi | 1cd7268fe78983c0203e4f65549f974d3f5d968f | [
"MIT"
] | 3 | 2020-07-10T14:17:44.000Z | 2021-08-12T11:43:45.000Z | import pytest
from marshmallow_jsonapi import fields
from starlette.applications import Starlette
from starlette_jsonapi.resource import BaseResource
from starlette_jsonapi.schema import JSONAPISchema
def test_schema_urls(app: Starlette):
class TResource(BaseResource):
type_ = 'test-resource'
TResour... | 30.567376 | 120 | 0.542691 | 460 | 4,310 | 4.93913 | 0.165217 | 0.116197 | 0.098592 | 0.073944 | 0.784771 | 0.761444 | 0.747359 | 0.733715 | 0.661092 | 0.661092 | 0 | 0.001359 | 0.316937 | 4,310 | 140 | 121 | 30.785714 | 0.77038 | 0 | 0 | 0.66087 | 0 | 0.017391 | 0.247564 | 0.010209 | 0 | 0 | 0 | 0 | 0.078261 | 1 | 0.034783 | false | 0 | 0.043478 | 0 | 0.356522 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
65a0da8d520c64ade98d09bb5d2663a8e3d3134d | 102 | py | Python | tftool/access/__init__.py | antsfamily/tftool | 0de72be13b3ca43e8a95c8be726c55841b389973 | [
"MIT"
] | null | null | null | tftool/access/__init__.py | antsfamily/tftool | 0de72be13b3ca43e8a95c8be726c55841b389973 | [
"MIT"
] | null | null | null | tftool/access/__init__.py | antsfamily/tftool | 0de72be13b3ca43e8a95c8be726c55841b389973 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from .load import load_ckpt
from .save import save_ckpt
| 17 | 39 | 0.794118 | 15 | 102 | 4.933333 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186275 | 102 | 5 | 40 | 20.4 | 0.891566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
65aa8588c528dddf9da0b75de2f8177f0b66e0ef | 1,043 | py | Python | Go6/policy_probabilistic_player.py | skyu0221/cmput496 | ad1e59805ab49324ec1e387ddeaf3dd3202518bc | [
"MIT"
] | null | null | null | Go6/policy_probabilistic_player.py | skyu0221/cmput496 | ad1e59805ab49324ec1e387ddeaf3dd3202518bc | [
"MIT"
] | null | null | null | Go6/policy_probabilistic_player.py | skyu0221/cmput496 | ad1e59805ab49324ec1e387ddeaf3dd3202518bc | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from board_util import GoBoardUtil
from gtp_connection import GtpConnection
class PolicyPlayer(object):
"""
Plays according to the Go4 playout policy.
No simulations, just random choice among current policy moves
"""
version = 0.1
name = "Policy Probabilistic Player... | 22.673913 | 80 | 0.633749 | 113 | 1,043 | 5.575221 | 0.522124 | 0.044444 | 0.034921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005333 | 0.28092 | 1,043 | 45 | 81 | 23.177778 | 0.834667 | 0.11697 | 0 | 0.142857 | 0 | 0 | 0.039238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.071429 | 0.107143 | 0.571429 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
65b51ba1b7053c61b8b8e0893b561770fa90e439 | 22 | py | Python | python/testData/keywordCompletion/noneInArgList.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/keywordCompletion/noneInArgList.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/keywordCompletion/noneInArgList.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def foo(x=Non<caret>): | 22 | 22 | 0.681818 | 5 | 22 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 22 | 1 | 22 | 22 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
65c34c95b750096053aaef54a2b648be5c44772c | 230 | py | Python | server.py | Peopple-Shopping-App/mockserver | c38c3f325e44f4eaba39cdbe24544e3181307218 | [
"MIT"
] | 1 | 2021-07-23T03:43:19.000Z | 2021-07-23T03:43:19.000Z | server.py | Peopple-Shopping-App/mockserver | c38c3f325e44f4eaba39cdbe24544e3181307218 | [
"MIT"
] | null | null | null | server.py | Peopple-Shopping-App/mockserver | c38c3f325e44f4eaba39cdbe24544e3181307218 | [
"MIT"
] | null | null | null | import uvicorn
if __name__ == '__main__':
<<<<<<< HEAD
uvicorn.run('app.main:app', host='0.0.0.0', port=80)
=======
uvicorn.run('app.main:app', host='0.0.0.0', port=2323)
>>>>>>> c583e3d93c9b7f8e76ce1d676a24740b62ef3552
| 23 | 58 | 0.630435 | 31 | 230 | 4.419355 | 0.451613 | 0.087591 | 0.087591 | 0.248175 | 0.467153 | 0.467153 | 0.467153 | 0.467153 | 0.467153 | 0.467153 | 0 | 0.197044 | 0.117391 | 230 | 9 | 59 | 25.555556 | 0.477833 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
65c8b9280ebaf25f0fb4b1658671be5a8f2ed641 | 228 | py | Python | apps/news/forms.py | LishenZz/my_project | c2ac8199efb467e303d343ea34ed1969b64280d7 | [
"Apache-2.0"
] | null | null | null | apps/news/forms.py | LishenZz/my_project | c2ac8199efb467e303d343ea34ed1969b64280d7 | [
"Apache-2.0"
] | null | null | null | apps/news/forms.py | LishenZz/my_project | c2ac8199efb467e303d343ea34ed1969b64280d7 | [
"Apache-2.0"
] | null | null | null | #Author:Li Shen
from django import forms
from apps.forms import FormMixin
class PublicCommentForm(forms.Form,FormMixin):
#CharField字长在form可不定义,但是在model模型中必须定义
content=forms.CharField()
news_id=forms.IntegerField()
| 22.8 | 46 | 0.79386 | 26 | 228 | 6.923077 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127193 | 228 | 9 | 47 | 25.333333 | 0.904523 | 0.219298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
02b0025b6adb156b789fef5aff0bf34cd7804353 | 87 | py | Python | sportstrackeranalyzer/plugin_handler/__init__.py | XeBoris/SportsTrackerAnalyzer | f211a9120b9ba91bb04b9742c80d0de7b4143f78 | [
"MIT"
] | 1 | 2021-02-12T08:00:34.000Z | 2021-02-12T08:00:34.000Z | sportstrackeranalyzer/plugin_handler/__init__.py | XeBoris/SportsTrackerAnalyzer | f211a9120b9ba91bb04b9742c80d0de7b4143f78 | [
"MIT"
] | null | null | null | sportstrackeranalyzer/plugin_handler/__init__.py | XeBoris/SportsTrackerAnalyzer | f211a9120b9ba91bb04b9742c80d0de7b4143f78 | [
"MIT"
] | null | null | null | from sportstrackeranalyzer.plugins.plugin_simple_distances import Plugin_SimpleDistance | 87 | 87 | 0.942529 | 9 | 87 | 8.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 87 | 1 | 87 | 87 | 0.940476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
02bf002db0ba833a4cef03b49b9c37dba336934d | 244 | py | Python | dask_ml/model_selection.py | lesteve/dask-ml | 0aca19c545be5c27bedcfbab5554b4ba39a6d754 | [
"BSD-3-Clause"
] | 1 | 2020-12-01T13:20:05.000Z | 2020-12-01T13:20:05.000Z | dask_ml/model_selection.py | lesteve/dask-ml | 0aca19c545be5c27bedcfbab5554b4ba39a6d754 | [
"BSD-3-Clause"
] | null | null | null | dask_ml/model_selection.py | lesteve/dask-ml | 0aca19c545be5c27bedcfbab5554b4ba39a6d754 | [
"BSD-3-Clause"
] | null | null | null | """Utilities for hyperparameter optimization.
These estimators will operate in parallel. Their scalability depends
on the underlying estimators being used.
"""
from dask_searchcv.model_selection import GridSearchCV, RandomizedSearchCV # noqa
| 34.857143 | 82 | 0.831967 | 28 | 244 | 7.178571 | 0.964286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118852 | 244 | 6 | 83 | 40.666667 | 0.934884 | 0.651639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
02c06f0c429f92d5e5a68c4d5f561cf2b85e43c8 | 23 | py | Python | code/sample_2-1-9.py | KoyanagiHitoshi/AtCoder-Python-Introduction | 6d014e333a873f545b4d32d438e57cf428b10b96 | [
"MIT"
] | 1 | 2022-03-29T13:50:12.000Z | 2022-03-29T13:50:12.000Z | code/sample_2-1-9.py | KoyanagiHitoshi/AtCoder-Python-Introduction | 6d014e333a873f545b4d32d438e57cf428b10b96 | [
"MIT"
] | null | null | null | code/sample_2-1-9.py | KoyanagiHitoshi/AtCoder-Python-Introduction | 6d014e333a873f545b4d32d438e57cf428b10b96 | [
"MIT"
] | null | null | null | x = 5
y = 6
print(x*y)
| 5.75 | 10 | 0.478261 | 7 | 23 | 1.571429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.304348 | 23 | 3 | 11 | 7.666667 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
02ec3adf599332a9c2e8596007821b919933d4a9 | 167 | py | Python | wsgi.py | emilan21/macvert | ac219507a6b20372861667f4ade8084c9902a231 | [
"MIT"
] | null | null | null | wsgi.py | emilan21/macvert | ac219507a6b20372861667f4ade8084c9902a231 | [
"MIT"
] | null | null | null | wsgi.py | emilan21/macvert | ac219507a6b20372861667f4ade8084c9902a231 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# mac_convertor.py - Converts mac address from various formats to other formats
from macvert.web import app
if __name__ == '__main__':
app.run()
| 20.875 | 79 | 0.742515 | 25 | 167 | 4.6 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155689 | 167 | 7 | 80 | 23.857143 | 0.815603 | 0.562874 | 0 | 0 | 0 | 0 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f30618f542da8cbd2c4223847a99725100131374 | 901 | py | Python | hsir/law.py | WenjieZ/wuhan-pneumonia | 3d26955daa2deedec57cdd3effb3118531bbea7f | [
"BSD-3-Clause"
] | 6 | 2020-01-26T07:33:41.000Z | 2020-02-25T22:15:43.000Z | hsir/law.py | WenjieZ/wuhan-pneumonia | 3d26955daa2deedec57cdd3effb3118531bbea7f | [
"BSD-3-Clause"
] | 2 | 2020-02-17T16:12:50.000Z | 2020-02-29T21:31:17.000Z | hsir/law.py | WenjieZ/wuhan-pneumonia | 3d26955daa2deedec57cdd3effb3118531bbea7f | [
"BSD-3-Clause"
] | 1 | 2020-03-07T00:13:05.000Z | 2020-03-07T00:13:05.000Z | from abc import ABCMeta, abstractmethod
import numpy as np
__all__ = ['Law', 'Bin', 'Poi', 'Gau']
class Law(metaclass=ABCMeta):
@staticmethod
@abstractmethod
def sample(n, d):
pass
@staticmethod
@abstractmethod
def loglikely(n, d, k):
pass
@staticmethod
def likeli... | 20.022222 | 89 | 0.54828 | 143 | 901 | 3.426573 | 0.258741 | 0.057143 | 0.042857 | 0.122449 | 0.334694 | 0.27551 | 0.232653 | 0.232653 | 0.118367 | 0.118367 | 0 | 0.015552 | 0.286349 | 901 | 44 | 90 | 20.477273 | 0.746501 | 0.035516 | 0 | 0.466667 | 0 | 0 | 0.013841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.066667 | 0.066667 | 0.233333 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
f30707b9e83fba3280f410223a1fd7949422e724 | 164 | py | Python | rpncalc/exceptions.py | newmanrs/rpncalc | 8663e5221efd78c12889b6db4eda20821b27d52a | [
"MIT"
] | null | null | null | rpncalc/exceptions.py | newmanrs/rpncalc | 8663e5221efd78c12889b6db4eda20821b27d52a | [
"MIT"
] | 11 | 2021-11-10T04:28:51.000Z | 2022-02-25T05:19:22.000Z | rpncalc/exceptions.py | newmanrs/rpncalc | 8663e5221efd78c12889b6db4eda20821b27d52a | [
"MIT"
] | null | null | null | class RpnCalcError(Exception):
"""Calculator Generic Exception"""
pass
class StackDepletedError(RpnCalcError):
""" Stack is out of items """
pass
| 18.222222 | 39 | 0.682927 | 16 | 164 | 7 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207317 | 164 | 8 | 40 | 20.5 | 0.861538 | 0.304878 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
f30ee9cbdc128ebb414011f1922779899d37a824 | 77 | py | Python | code/abc122_a_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/abc122_a_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/abc122_a_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | b=input()
print("A" if b=="T" else "T" if b=="A" else "G" if b=="C" else "C") | 38.5 | 67 | 0.506494 | 19 | 77 | 2.052632 | 0.473684 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168831 | 77 | 2 | 67 | 38.5 | 0.609375 | 0 | 0 | 0 | 0 | 0 | 0.089744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
b82b18f5c487a5e8f40d5acca12f69514df44f14 | 590 | py | Python | FisherExactTest/__version__.py | Ae-Mc/Fisher | 166e3ac68e304ed7418393d6a7717dd6f7032c15 | [
"MIT"
] | null | null | null | FisherExactTest/__version__.py | Ae-Mc/Fisher | 166e3ac68e304ed7418393d6a7717dd6f7032c15 | [
"MIT"
] | null | null | null | FisherExactTest/__version__.py | Ae-Mc/Fisher | 166e3ac68e304ed7418393d6a7717dd6f7032c15 | [
"MIT"
] | null | null | null | __title__ = "FisherExactTest"
__version__ = "1.0.1"
__author__ = "Ae-Mc"
__author_email__ = "ae_mc@mail.ru"
__description__ = "Two tailed Fisher's exact test wrote in pure Python"
__url__ = "https://github.com/Ae-Mc/Fisher"
__classifiers__ = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language... | 34.705882 | 71 | 0.661017 | 70 | 590 | 5.142857 | 0.642857 | 0.263889 | 0.347222 | 0.361111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024948 | 0.184746 | 590 | 16 | 72 | 36.875 | 0.723493 | 0 | 0 | 0 | 0 | 0 | 0.679661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b8522b1cda4c464e1d7c573371d89f13b40ae37b | 89 | py | Python | todoapi/apps.py | Faysa1/Gestion-Tickets-Taches | eeba92df59c3217d15b02a5bb1ed3c6e673537a4 | [
"Apache-2.0"
] | 51 | 2018-12-12T20:18:31.000Z | 2022-03-11T20:23:35.000Z | todoapi/apps.py | Faysa1/Gestion-Tickets-Taches | eeba92df59c3217d15b02a5bb1ed3c6e673537a4 | [
"Apache-2.0"
] | 11 | 2018-12-17T08:48:07.000Z | 2022-03-02T02:54:38.000Z | todoapi/apps.py | Faysa1/Gestion-Tickets-Taches | eeba92df59c3217d15b02a5bb1ed3c6e673537a4 | [
"Apache-2.0"
] | 29 | 2018-12-12T20:19:00.000Z | 2022-01-18T12:33:21.000Z | from django.apps import AppConfig
class TodoapiConfig(AppConfig):
name = 'todoapi'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b85e66013be32836e47b0a35176f156e7e93f2e2 | 352 | py | Python | utils/tracker.py | emarche/Fashion-MNIST | f8183e33ab7c3df673a60de3b16f2c4c979b89bb | [
"MIT"
] | null | null | null | utils/tracker.py | emarche/Fashion-MNIST | f8183e33ab7c3df673a60de3b16f2c4c979b89bb | [
"MIT"
] | null | null | null | utils/tracker.py | emarche/Fashion-MNIST | f8183e33ab7c3df673a60de3b16f2c4c979b89bb | [
"MIT"
] | null | null | null | import os
import numpy as np
class Tracker:
def __init__(self, seed, model_name):
self.save_tag = model_name + '_seed_' + str(seed)
self.model_save = "models/"
if not os.path.exists(self.model_save): os.makedirs(self.model_save)
def save_model(self, model):
model.save(self.mod... | 29.333333 | 76 | 0.661932 | 53 | 352 | 4.113208 | 0.433962 | 0.206422 | 0.238532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003623 | 0.215909 | 352 | 12 | 77 | 29.333333 | 0.786232 | 0 | 0 | 0 | 0 | 0 | 0.045326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 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 | 0 | 1 | 0 | 0 | 4 |
b865512ce604a1054ccd890643255a1593208d7a | 224 | py | Python | bootstrap_rmsf/__init__.py | jeeberhardt/bootstrap_rmsf | 1487251ffde91d34b7609aec147c0ff99fc7cded | [
"MIT"
] | 1 | 2021-08-06T02:31:32.000Z | 2021-08-06T02:31:32.000Z | bootstrap_rmsf/__init__.py | jeeberhardt/bootstrap_rmsf | 1487251ffde91d34b7609aec147c0ff99fc7cded | [
"MIT"
] | null | null | null | bootstrap_rmsf/__init__.py | jeeberhardt/bootstrap_rmsf | 1487251ffde91d34b7609aec147c0ff99fc7cded | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Jérôme Eberhardt 2018
# Bootstrap RMSF
# Author: Jérôme Eberhardt <qksonoe@gmail.com>
#
# License: MIT
from bootstrap_rmsf import Bootstrap_RMSF
from utils import plot_rmsf
| 18.666667 | 46 | 0.736607 | 31 | 224 | 5.225806 | 0.709677 | 0.240741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026178 | 0.147321 | 224 | 11 | 47 | 20.363636 | 0.82199 | 0.611607 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b8746c0bb1705159c5c6690183e9699670c24d04 | 217 | bzl | Python | bazel_versions.bzl | pennig/rules_xcodeproj | 109ab85a82954ea38f0529eafc291f5ce6f63483 | [
"MIT"
] | 1 | 2022-03-31T09:13:24.000Z | 2022-03-31T09:13:24.000Z | bazel_versions.bzl | pennig/rules_xcodeproj | 109ab85a82954ea38f0529eafc291f5ce6f63483 | [
"MIT"
] | null | null | null | bazel_versions.bzl | pennig/rules_xcodeproj | 109ab85a82954ea38f0529eafc291f5ce6f63483 | [
"MIT"
] | null | null | null | """Specifies the supported Bazel versions."""
CURRENT_BAZEL_VERSION = "5.0.0"
OTHER_BAZEL_VERSIONS = [
"6.0.0-pre.20220223.1",
]
SUPPORTED_BAZEL_VERSIONS = [
CURRENT_BAZEL_VERSION,
] + OTHER_BAZEL_VERSIONS
| 18.083333 | 45 | 0.728111 | 29 | 217 | 5.103448 | 0.482759 | 0.351351 | 0.297297 | 0.391892 | 0.554054 | 0.554054 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 0.142857 | 217 | 11 | 46 | 19.727273 | 0.715054 | 0.179724 | 0 | 0 | 0 | 0 | 0.145349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b8a247344049a96e9c957980e4d29c8b38b429af | 21 | py | Python | sgqlc/__init__.py | pberthonneau/sgqlc | 6fb29d381239ba9256589cf177d236eb79b3f8cc | [
"ISC"
] | null | null | null | sgqlc/__init__.py | pberthonneau/sgqlc | 6fb29d381239ba9256589cf177d236eb79b3f8cc | [
"ISC"
] | null | null | null | sgqlc/__init__.py | pberthonneau/sgqlc | 6fb29d381239ba9256589cf177d236eb79b3f8cc | [
"ISC"
] | null | null | null | __version__ = '10.0'
| 10.5 | 20 | 0.666667 | 3 | 21 | 3.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.142857 | 21 | 1 | 21 | 21 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b8b69dfcb1d5f6e006ee8b568536b7b0df129c02 | 5,521 | py | Python | models/Libraries/UnitTest.py | yangshiquan/GraphDialog | 5bb1239bf502c8d79c4c888f69c7aff0c02c2928 | [
"MIT"
] | 26 | 2020-09-25T02:19:43.000Z | 2022-03-27T09:03:34.000Z | models/Libraries/UnitTest.py | yangshiquan/GraphDialog | 5bb1239bf502c8d79c4c888f69c7aff0c02c2928 | [
"MIT"
] | 1 | 2020-10-28T11:28:35.000Z | 2020-10-28T11:28:35.000Z | models/Libraries/UnitTest.py | yangshiquan/GraphDialog | 5bb1239bf502c8d79c4c888f69c7aff0c02c2928 | [
"MIT"
] | 2 | 2020-12-17T08:49:13.000Z | 2021-04-18T13:08:48.000Z | import tensorflow as tf
from models.Libraries.BidirectionalGraphEncoder import BidirectionalGraphEncoder
from tensorflow.python.ops import array_ops
if __name__ == "__main__":
# units=2, input_dim=2, edge_types=10, recurrent_size=4
bi_graph_encoder = BidirectionalGraphEncoder(2, 2, 10, 4)
# inputs: batch_... | 197.178571 | 1,087 | 0.307915 | 983 | 5,521 | 1.658189 | 0.055951 | 0.143558 | 0.15092 | 0.083436 | 0.649693 | 0.634356 | 0.605521 | 0.476687 | 0.474233 | 0.474233 | 0 | 0.17844 | 0.161565 | 5,521 | 28 | 1,088 | 197.178571 | 0.173688 | 0.408803 | 0 | 0 | 0 | 0 | 0.046712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 0.1875 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b21c7a1509c7bfd68dcac48270c795470f743c73 | 89 | py | Python | recipe_backend/recipes/apps.py | jbernal0019/Recipe_site | 30090b521cac84156cf5f05429a12dd5889f8703 | [
"MIT"
] | null | null | null | recipe_backend/recipes/apps.py | jbernal0019/Recipe_site | 30090b521cac84156cf5f05429a12dd5889f8703 | [
"MIT"
] | 3 | 2020-02-12T01:22:24.000Z | 2021-06-10T21:49:21.000Z | recipe_backend/recipes/apps.py | jbernal0019/Recipe_site | 30090b521cac84156cf5f05429a12dd5889f8703 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class PluginsConfig(AppConfig):
name = 'recipes'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b2268ed3f38975678da47248462c6f15c287a3c3 | 387 | py | Python | sources/boltun/util/collections.py | meiblorn/boltun | d141f555b4f0ed604d8d71883c0bc8811e74370e | [
"MIT"
] | 1 | 2019-12-06T04:19:37.000Z | 2019-12-06T04:19:37.000Z | sources/boltun/util/collections.py | meiblorn/boltun | d141f555b4f0ed604d8d71883c0bc8811e74370e | [
"MIT"
] | null | null | null | sources/boltun/util/collections.py | meiblorn/boltun | d141f555b4f0ed604d8d71883c0bc8811e74370e | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
import attr
@attr.s
class Stack(object):
__items = attr.ib(type=list, factory=list)
def push(self, item):
self.__items.append(item)
def pop(self):
return self.__items.pop()
def peek(self):
return self.__items[... | 18.428571 | 64 | 0.648579 | 53 | 387 | 4.415094 | 0.566038 | 0.153846 | 0.119658 | 0.162393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00678 | 0.237726 | 387 | 20 | 65 | 19.35 | 0.786441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.153846 | 0.230769 | 0.846154 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
b22e2d62e71b8fbbd1c5658b31e4eb4e56a96389 | 140 | py | Python | secao5/exercicio6.py | robinson-1985/exercicios_python_geek_university | 6dfc740472de9ff7c029e26a2ba8f51080e3860b | [
"MIT"
] | null | null | null | secao5/exercicio6.py | robinson-1985/exercicios_python_geek_university | 6dfc740472de9ff7c029e26a2ba8f51080e3860b | [
"MIT"
] | null | null | null | secao5/exercicio6.py | robinson-1985/exercicios_python_geek_university | 6dfc740472de9ff7c029e26a2ba8f51080e3860b | [
"MIT"
] | null | null | null | '''6. Escreva um programa que, dados dois números inteiros, mostre na tela o maior deles,
assim como a diferença existente entre ambos.'''
| 35 | 89 | 0.757143 | 22 | 140 | 4.818182 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.164286 | 140 | 3 | 90 | 46.666667 | 0.897436 | 0.942857 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b2362a2c9bbd2b259775e9395541cd8ca6653d97 | 3,188 | py | Python | bokeh/util/terminal.py | kinghows/bokeh | aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7 | [
"BSD-3-Clause"
] | 1 | 2018-11-14T19:08:18.000Z | 2018-11-14T19:08:18.000Z | bokeh/util/terminal.py | kinghows/bokeh | aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7 | [
"BSD-3-Clause"
] | 1 | 2021-05-09T02:45:17.000Z | 2021-05-09T02:45:17.000Z | bokeh/util/terminal.py | kinghows/bokeh | aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7 | [
"BSD-3-Clause"
] | 1 | 2020-06-17T05:47:16.000Z | 2020-06-17T05:47:16.000Z | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved.
#
# Powered by the Bokeh Development Team.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#---------------------------------------------------... | 35.422222 | 91 | 0.414994 | 307 | 3,188 | 4.254072 | 0.319218 | 0.026034 | 0.01608 | 0.05513 | 0.261103 | 0.205207 | 0.14242 | 0.094946 | 0.094946 | 0.094946 | 0 | 0.003658 | 0.142409 | 3,188 | 89 | 92 | 35.820225 | 0.474031 | 0.466437 | 0 | 0.105263 | 0 | 0 | 0.058894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.473684 | false | 0.026316 | 0.157895 | 0.315789 | 0.631579 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
b237ee0ace32e691329070ad414c8eef66fccd44 | 175 | py | Python | waiguan/layers/modules/__init__.py | heixialeeLeon/SSD | afdc90fafea0c0629bba789f546e3e0ca279f205 | [
"MIT"
] | null | null | null | waiguan/layers/modules/__init__.py | heixialeeLeon/SSD | afdc90fafea0c0629bba789f546e3e0ca279f205 | [
"MIT"
] | null | null | null | waiguan/layers/modules/__init__.py | heixialeeLeon/SSD | afdc90fafea0c0629bba789f546e3e0ca279f205 | [
"MIT"
] | null | null | null | from .l2norm import L2Norm
from .multibox_loss import MultiBoxLoss
from .multibox_focalloss import MultiBoxFocalLoss
__all__ = ['L2Norm', 'MultiBoxLoss', 'MultiBoxFocalLoss'] | 35 | 57 | 0.822857 | 18 | 175 | 7.666667 | 0.5 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018987 | 0.097143 | 175 | 5 | 57 | 35 | 0.85443 | 0 | 0 | 0 | 0 | 0 | 0.198864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b2445103c2858f39d46bd3d45d182776355fdcdc | 90 | py | Python | grab_screen/__init__.py | andrei-shabanski/grab-screen | 758187262156aac85f6736c9b8299187b49e43a5 | [
"MIT"
] | 9 | 2017-08-15T03:45:03.000Z | 2022-02-21T18:06:32.000Z | grab_screen/__init__.py | andrei-shabanski/grab-screen | 758187262156aac85f6736c9b8299187b49e43a5 | [
"MIT"
] | 211 | 2017-07-03T15:24:15.000Z | 2022-02-21T14:09:36.000Z | grab_screen/__init__.py | andrei-shabanski/grab-screen | 758187262156aac85f6736c9b8299187b49e43a5 | [
"MIT"
] | 4 | 2017-08-15T03:44:46.000Z | 2022-02-03T10:25:20.000Z | from .cli import main
from .version import __version__
__all__ = ['__version__', 'main']
| 18 | 33 | 0.744444 | 11 | 90 | 5 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144444 | 90 | 4 | 34 | 22.5 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b248f043c0feea53fbb2ab2028061229d654718b | 693 | py | Python | build/beginner_tutorials/cmake/beginner_tutorials-genmsg-context.py | aracelis-git/beginner_tutorials | 3bb11e496c414237543e8783dd01b57ef8952bca | [
"Apache-2.0"
] | null | null | null | build/beginner_tutorials/cmake/beginner_tutorials-genmsg-context.py | aracelis-git/beginner_tutorials | 3bb11e496c414237543e8783dd01b57ef8952bca | [
"Apache-2.0"
] | null | null | null | build/beginner_tutorials/cmake/beginner_tutorials-genmsg-context.py | aracelis-git/beginner_tutorials | 3bb11e496c414237543e8783dd01b57ef8952bca | [
"Apache-2.0"
] | null | null | null | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/viki/catkin_ws/src/beginner_tutorials/msg/Num.msg"
services_str = "/home/viki/catkin_ws/src/beginner_tutorials/srv/ResetCount.srv;/home/viki/catkin_ws/src/beginner_tutorials/srv/AddTwoInts.srv"
pkg_name = "beginner_tutorials"
dependencies_str = ... | 57.75 | 145 | 0.799423 | 104 | 693 | 5.048077 | 0.490385 | 0.194286 | 0.106667 | 0.121905 | 0.308571 | 0.308571 | 0.308571 | 0.308571 | 0 | 0 | 0 | 0 | 0.049062 | 693 | 11 | 146 | 63 | 0.796662 | 0.070707 | 0 | 0 | 1 | 0.222222 | 0.683801 | 0.582555 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b25bc80a13089b17ce70ec72af0643fdd3cdbaca | 16,503 | py | Python | startracker/beast/beast.py | Oregon-Tech-Rocketry-and-Aerospace/space-debris-card | d72303436b6cb1a409d5217d0518db0b0335d10a | [
"MIT"
] | null | null | null | startracker/beast/beast.py | Oregon-Tech-Rocketry-and-Aerospace/space-debris-card | d72303436b6cb1a409d5217d0518db0b0335d10a | [
"MIT"
] | null | null | null | startracker/beast/beast.py | Oregon-Tech-Rocketry-and-Aerospace/space-debris-card | d72303436b6cb1a409d5217d0518db0b0335d10a | [
"MIT"
] | null | null | null | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise Runtime... | 39.57554 | 150 | 0.712719 | 2,392 | 16,503 | 4.434783 | 0.094482 | 0.066176 | 0.063348 | 0.032051 | 0.479921 | 0.323812 | 0.280449 | 0.241327 | 0.212481 | 0.16365 | 0 | 0.009763 | 0.168333 | 16,503 | 416 | 151 | 39.670673 | 0.763133 | 0.044416 | 0 | 0.139373 | 1 | 0 | 0.086208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.020906 | 0.229965 | 0.84669 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
b261027bb447ffd4f357da57323ee5f92a50b62a | 599 | py | Python | todoapp/todos/models.py | Buddheshwar-Nath-Keshari/test-ubuntu | 5e801ecd21503f160e52c091120a1a0c80c6600d | [
"MIT"
] | null | null | null | todoapp/todos/models.py | Buddheshwar-Nath-Keshari/test-ubuntu | 5e801ecd21503f160e52c091120a1a0c80c6600d | [
"MIT"
] | null | null | null | todoapp/todos/models.py | Buddheshwar-Nath-Keshari/test-ubuntu | 5e801ecd21503f160e52c091120a1a0c80c6600d | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
from django.utils.encoding import smart_text as smart_unicode
from django.utils.translation import ugettext_lazy as _
class Todo(models.Model):
"""
Needed fields
- user (fk to User Model - Use AUTH_USER_MODEL from django.conf.se... | 31.526316 | 81 | 0.707846 | 82 | 599 | 5 | 0.682927 | 0.097561 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008715 | 0.233723 | 599 | 18 | 82 | 33.277778 | 0.884532 | 0.517529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0 | true | 0 | 0.8 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b2743a4c76c53ef106ccb49cbbfbe8057b1bd708 | 2,136 | py | Python | input/utils/chi-squared-contingency-tests.py | g-p-m/GPM | 00aa3ea664e14b99eedd6cbeabbc2b85edf2b208 | [
"BSD-3-Clause"
] | null | null | null | input/utils/chi-squared-contingency-tests.py | g-p-m/GPM | 00aa3ea664e14b99eedd6cbeabbc2b85edf2b208 | [
"BSD-3-Clause"
] | null | null | null | input/utils/chi-squared-contingency-tests.py | g-p-m/GPM | 00aa3ea664e14b99eedd6cbeabbc2b85edf2b208 | [
"BSD-3-Clause"
] | null | null | null | import numpy, scipy.stats
T1 = numpy.asarray([
[ 316, 378, 393, 355, 391, 371, 400, 397, 385, 371, 382, 371, ],
[ 336, 339, 322, 341, 314, 311, 339, 310, 331, 355, 316, 306, ],
[ 375, 364, 375, 381, 381, 401, 374, 396, 422, 417, 372, 435, ],
[ 238, 231, 263, 268, 239, 259, 243, 206, 257, 228, 252, 203, ]])
T2 = numpy.... | 46.434783 | 65 | 0.558521 | 355 | 2,136 | 3.343662 | 0.377465 | 0.058972 | 0.075821 | 0.09604 | 0.707666 | 0.707666 | 0.707666 | 0.663858 | 0.62342 | 0.557709 | 0 | 0.542456 | 0.233614 | 2,136 | 45 | 66 | 47.466667 | 0.182651 | 0.007491 | 0 | 0.578947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026316 | 0 | 0.026316 | 0.184211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 4 |
b284e34183349b94655f2ba4c0ad549e6e0f8f3f | 273 | py | Python | dsfaker/generators/str.py | pajachiet/dsfaker | 0e65ba336608c2ccc5e32a541f3b66dfad019b35 | [
"MIT"
] | 3 | 2017-03-12T22:08:59.000Z | 2017-05-22T16:57:17.000Z | dsfaker/generators/str.py | pajachiet/dsfaker | 0e65ba336608c2ccc5e32a541f3b66dfad019b35 | [
"MIT"
] | 12 | 2017-03-01T10:14:08.000Z | 2017-04-23T12:15:10.000Z | dsfaker/generators/str.py | pajachiet/dsfaker | 0e65ba336608c2ccc5e32a541f3b66dfad019b35 | [
"MIT"
] | 2 | 2017-05-04T15:36:21.000Z | 2018-02-07T13:49:13.000Z | from random import Random
from rstr import Rstr
from . import Generator
class Regex(Generator):
def __init__(self, regex, seed=None):
self.gen = Rstr(Random(seed))
self.regex = regex
def get_single(self):
return self.gen.xeger(self.regex)
| 22.75 | 41 | 0.677656 | 38 | 273 | 4.736842 | 0.447368 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227106 | 273 | 11 | 42 | 24.818182 | 0.853081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
a231a6c5e1e9bfd374c54640c8a12d24c01e3857 | 93 | py | Python | lattedb/linksmear/apps.py | callat-qcd/lattedb | 75c06748f3d59332a84ec1b5794c215c5974a46f | [
"BSD-3-Clause"
] | 1 | 2019-12-11T02:33:23.000Z | 2019-12-11T02:33:23.000Z | lattedb/linksmear/apps.py | callat-qcd/lattedb | 75c06748f3d59332a84ec1b5794c215c5974a46f | [
"BSD-3-Clause"
] | 10 | 2020-01-29T17:06:01.000Z | 2021-05-31T14:41:19.000Z | lattedb/linksmear/apps.py | callat-qcd/lattedb | 75c06748f3d59332a84ec1b5794c215c5974a46f | [
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
class LinkSmearConfig(AppConfig):
name = "linksmear"
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a246d1c2c2b92da01d8058201ebb138463ac4efe | 105 | py | Python | tests/pyxl_original/test_eof.py | adrienbrunet/mixt | d725ec752ce430d135e993bc988bfdf2b8457c4b | [
"MIT"
] | 27 | 2018-06-04T19:11:42.000Z | 2022-02-23T22:46:39.000Z | tests/pyxl_original/test_eof.py | adrienbrunet/mixt | d725ec752ce430d135e993bc988bfdf2b8457c4b | [
"MIT"
] | 7 | 2018-06-09T15:27:51.000Z | 2021-03-11T20:00:35.000Z | tests/pyxl_original/test_eof.py | adrienbrunet/mixt | d725ec752ce430d135e993bc988bfdf2b8457c4b | [
"MIT"
] | 3 | 2018-07-29T10:20:02.000Z | 2021-11-18T19:55:07.000Z | # coding: mixt
from mixt import html
def test():
assert str(<Fragment>'''</Fragment>) == """'''"""
| 15 | 53 | 0.571429 | 12 | 105 | 5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180952 | 105 | 6 | 54 | 17.5 | 0.697674 | 0 | 0 | 0 | 0 | 0 | 0.208791 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | null | null | 0 | 0.333333 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a24a44290243b8973c58ac83bd9c32d62a1b7331 | 194 | py | Python | contact/views.py | rsHalford/xhalford-django | 970875bbcd23782af15f24361ec3bbda0230ee81 | [
"MIT"
] | 2 | 2020-11-02T22:04:01.000Z | 2020-11-14T14:45:45.000Z | contact/views.py | rsHalford/xhalford-django | 970875bbcd23782af15f24361ec3bbda0230ee81 | [
"MIT"
] | null | null | null | contact/views.py | rsHalford/xhalford-django | 970875bbcd23782af15f24361ec3bbda0230ee81 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views.generic import ListView
from contact.models import Profile
class Contact(ListView):
model = Profile
template_name = "contact.html"
| 24.25 | 41 | 0.78866 | 25 | 194 | 6.08 | 0.64 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149485 | 194 | 7 | 42 | 27.714286 | 0.921212 | 0 | 0 | 0 | 0 | 0 | 0.061856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a2513b451ec5004528a7e01bf0d9f3485e85254c | 64 | py | Python | integraph/core/__init__.py | nleguillarme/inteGraph | 65faae4b7c16977094c387f6359980a4e99f94cb | [
"Apache-2.0"
] | null | null | null | integraph/core/__init__.py | nleguillarme/inteGraph | 65faae4b7c16977094c387f6359980a4e99f94cb | [
"Apache-2.0"
] | null | null | null | integraph/core/__init__.py | nleguillarme/inteGraph | 65faae4b7c16977094c387f6359980a4e99f94cb | [
"Apache-2.0"
] | null | null | null | from .taxid import TaxId
from .uri import URIManager, URIMapper
| 21.333333 | 38 | 0.8125 | 9 | 64 | 5.777778 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140625 | 64 | 2 | 39 | 32 | 0.945455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a26076e09d7b45380034f14f9bab4f75147d9786 | 86 | py | Python | run.py | tdavislab/mapper-stitching | 09cb6949cea57ebece640b58ef5c449fb177db38 | [
"MIT"
] | 10 | 2019-06-12T01:18:44.000Z | 2021-12-19T16:12:08.000Z | run.py | tdavislab/mapper-stitching | 09cb6949cea57ebece640b58ef5c449fb177db38 | [
"MIT"
] | 7 | 2019-03-20T23:47:49.000Z | 2019-04-10T19:23:41.000Z | run.py | tdavislab/mapper-stitching | 09cb6949cea57ebece640b58ef5c449fb177db38 | [
"MIT"
] | 3 | 2020-10-16T04:30:09.000Z | 2021-03-16T18:45:33.000Z | #!flask/bin/python
from app import app
app.run(host='127.0.0.1',port=8080,debug=True)
| 21.5 | 46 | 0.732558 | 18 | 86 | 3.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.069767 | 86 | 3 | 47 | 28.666667 | 0.6625 | 0.197674 | 0 | 0 | 0 | 0 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a28511d4313faddcec24e963d4aea4b50f61ce85 | 135 | py | Python | sopy/admin/__init__.py | AlexFrazer/sopython-site | 4ede64cf6d04def596be13feeaa4d84ce8503ef3 | [
"BSD-3-Clause"
] | 81 | 2015-02-17T17:07:27.000Z | 2021-08-15T17:46:13.000Z | sopy/admin/__init__.py | AlexFrazer/sopython-site | 4ede64cf6d04def596be13feeaa4d84ce8503ef3 | [
"BSD-3-Clause"
] | 81 | 2015-02-17T17:04:16.000Z | 2021-02-21T03:52:55.000Z | sopy/admin/__init__.py | AlexFrazer/sopython-site | 4ede64cf6d04def596be13feeaa4d84ce8503ef3 | [
"BSD-3-Clause"
] | 29 | 2015-01-18T18:28:06.000Z | 2022-02-05T03:11:04.000Z | from flask import Blueprint
bp = Blueprint('admin', __name__)
@bp.record_once
def register(state):
from sopy.admin import views
| 15 | 33 | 0.748148 | 19 | 135 | 5.052632 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162963 | 135 | 8 | 34 | 16.875 | 0.849558 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a28a52e59294caa6c7f0ce984c5ca19e80db8e8f | 152 | py | Python | block/admin.py | amirkh75/user_block_chain | f9bdba11c1d8b724787151480cd52155ad8718e4 | [
"MIT"
] | null | null | null | block/admin.py | amirkh75/user_block_chain | f9bdba11c1d8b724787151480cd52155ad8718e4 | [
"MIT"
] | null | null | null | block/admin.py | amirkh75/user_block_chain | f9bdba11c1d8b724787151480cd52155ad8718e4 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Block
@admin.register(Block)
class ActionAdmin(admin.ModelAdmin):
list_filter = ('created',)
| 19 | 36 | 0.763158 | 19 | 152 | 6.052632 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 152 | 7 | 37 | 21.714286 | 0.871212 | 0 | 0 | 0 | 0 | 0 | 0.046053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a2cf483b7a318378a4b51126b7de177267f4c55e | 23 | py | Python | auto_ml/_version.py | amlanbanerjee/auto_ml | db8e1d2cfa93f13a21e55739acfc8d99837e91b0 | [
"MIT"
] | 1,671 | 2016-08-09T04:44:48.000Z | 2022-03-27T01:29:23.000Z | auto_ml/_version.py | amlanbanerjee/auto_ml | db8e1d2cfa93f13a21e55739acfc8d99837e91b0 | [
"MIT"
] | 428 | 2016-08-08T00:13:04.000Z | 2022-01-19T10:09:05.000Z | auto_ml/_version.py | amlanbanerjee/auto_ml | db8e1d2cfa93f13a21e55739acfc8d99837e91b0 | [
"MIT"
] | 334 | 2016-08-29T12:34:18.000Z | 2022-01-31T09:14:30.000Z | __version__ = "2.9.10"
| 11.5 | 22 | 0.652174 | 4 | 23 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.130435 | 23 | 1 | 23 | 23 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a2ebe5b887b32f0561c68f37282697177b6753ec | 3,880 | py | Python | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ATI/text_fragment_shader.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 210 | 2016-04-09T14:26:00.000Z | 2022-03-25T18:36:19.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ATI/text_fragment_shader.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 72 | 2016-09-04T09:30:19.000Z | 2022-03-27T17:06:53.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ATI/text_fragment_shader.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 64 | 2016-04-09T14:26:49.000Z | 2022-03-21T11:19:47.000Z | '''OpenGL extension ATI.text_fragment_shader
This module customises the behaviour of the
OpenGL.raw.GL.ATI.text_fragment_shader to provide a more
Python-friendly API
Overview (from the spec)
The ATI_fragment_shader extension exposes a powerful fragment
processing model that provides a very general means of expr... | 46.190476 | 71 | 0.802835 | 565 | 3,880 | 5.412389 | 0.410619 | 0.096141 | 0.058862 | 0.07554 | 0.070634 | 0.037933 | 0.037933 | 0.027469 | 0.027469 | 0 | 0 | 0.000932 | 0.170361 | 3,880 | 84 | 72 | 46.190476 | 0.949053 | 1.001031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0c3043c88aed8f6a40aafefe3d1e9548537a28e3 | 1,324 | py | Python | management/api/v1/serializers.py | bwksoftware/cypetulip | 4ea5c56d2d48a311220e144d094280a275109316 | [
"MIT"
] | 3 | 2019-08-03T12:00:22.000Z | 2020-02-02T08:37:09.000Z | management/api/v1/serializers.py | basetwode/cypetulip | d6be294a288706c5661afb433215fe6c3ffea92b | [
"MIT"
] | 47 | 2019-08-03T16:17:41.000Z | 2022-03-11T23:15:48.000Z | management/api/v1/serializers.py | basetwode/cypetulip | d6be294a288706c5661afb433215fe6c3ffea92b | [
"MIT"
] | null | null | null | from rest_framework import serializers
from management.models.main import MailSetting, LdapSetting, ShopSetting, LegalSetting, Header, CacheSetting, Footer
class MailSettingSerializer(serializers.ModelSerializer):
id = serializers.ReadOnlyField()
class Meta:
model = MailSetting
fields = '__a... | 22.066667 | 116 | 0.702417 | 108 | 1,324 | 8.342593 | 0.277778 | 0.201998 | 0.217536 | 0.302997 | 0.512764 | 0.512764 | 0.512764 | 0.512764 | 0 | 0 | 0 | 0 | 0.22281 | 1,324 | 59 | 117 | 22.440678 | 0.875607 | 0 | 0 | 0.567568 | 0 | 0 | 0.037009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.621622 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
0c39dce08e2639d2b8e9721a52545154b1694858 | 196 | py | Python | src/frr/tests/lib/test_nexthop_iter.py | zhouhaifeng/vpe | 9c644ffd561988e5740021ed26e0f7739844353d | [
"Apache-2.0"
] | null | null | null | src/frr/tests/lib/test_nexthop_iter.py | zhouhaifeng/vpe | 9c644ffd561988e5740021ed26e0f7739844353d | [
"Apache-2.0"
] | null | null | null | src/frr/tests/lib/test_nexthop_iter.py | zhouhaifeng/vpe | 9c644ffd561988e5740021ed26e0f7739844353d | [
"Apache-2.0"
] | null | null | null | import frrtest
class TestNexthopIter(frrtest.TestMultiOut):
program = "./test_nexthop_iter"
TestNexthopIter.onesimple("Simple test passed.")
TestNexthopIter.onesimple("PRNG test passed.")
| 19.6 | 48 | 0.785714 | 20 | 196 | 7.6 | 0.65 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 196 | 9 | 49 | 21.777778 | 0.868571 | 0 | 0 | 0 | 0 | 0 | 0.280612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.4 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
0c486c53d8fb3bd729143cb46efffc314acc492f | 23 | py | Python | Aulas/aula20/src/bb_circular.py | alexNeto/data-struct | f54917247a4e75ffe15783b0a025185d2215309a | [
"BSD-2-Clause"
] | 5 | 2017-08-25T19:24:47.000Z | 2020-01-19T15:52:02.000Z | Aulas/aula20/src/bb_circular.py | alexNeto/data-struct | f54917247a4e75ffe15783b0a025185d2215309a | [
"BSD-2-Clause"
] | null | null | null | Aulas/aula20/src/bb_circular.py | alexNeto/data-struct | f54917247a4e75ffe15783b0a025185d2215309a | [
"BSD-2-Clause"
] | 5 | 2017-09-25T14:49:43.000Z | 2019-11-27T00:05:56.000Z | class Circular():
| 11.5 | 18 | 0.565217 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 23 | 2 | 19 | 11.5 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0c51490cf6a9e00d3f171f44d583a875d050c2af | 244 | py | Python | store/admin.py | salemzii/ChopFast | 95ea88387ecfdb56bd643970b69425b1a1c6f388 | [
"MIT"
] | null | null | null | store/admin.py | salemzii/ChopFast | 95ea88387ecfdb56bd643970b69425b1a1c6f388 | [
"MIT"
] | null | null | null | store/admin.py | salemzii/ChopFast | 95ea88387ecfdb56bd643970b69425b1a1c6f388 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import (Dish, Payments, Order, Delivery, OrderItem)
admin.site.register(Dish)
admin.site.register(Payments)
admin.site.register(Order)
admin.site.register(Delivery)
admin.site.register(OrderItem)
| 24.4 | 64 | 0.807377 | 33 | 244 | 5.969697 | 0.393939 | 0.228426 | 0.431472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077869 | 244 | 9 | 65 | 27.111111 | 0.875556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0c53db086eb0eb7f6a00e60d3b14eacbfe7ba92e | 97 | py | Python | instaphotos/apps.py | LekamCharity/insta-IG | 0302440df3b2029297af54eb9c56090f82232973 | [
"MIT"
] | null | null | null | instaphotos/apps.py | LekamCharity/insta-IG | 0302440df3b2029297af54eb9c56090f82232973 | [
"MIT"
] | null | null | null | instaphotos/apps.py | LekamCharity/insta-IG | 0302440df3b2029297af54eb9c56090f82232973 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class InstaphotosConfig(AppConfig):
name = 'instaphotos'
| 16.166667 | 35 | 0.773196 | 10 | 97 | 7.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 97 | 5 | 36 | 19.4 | 0.914634 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a7574a31d3793e68486c1afc1807fc0afcd14ce5 | 6,594 | py | Python | project/apps/CI-producer/app/producers_test.py | Monxun/PortainerPractice | a3be077efe5c5eb2aa27b6a2fcf626989bdbbbe4 | [
"MIT"
] | null | null | null | project/apps/CI-producer/app/producers_test.py | Monxun/PortainerPractice | a3be077efe5c5eb2aa27b6a2fcf626989bdbbbe4 | [
"MIT"
] | 1 | 2022-03-02T22:54:36.000Z | 2022-03-02T22:54:36.000Z | project/apps/CI-producer/app/producers_test.py | Monxun/PortainerPractice | a3be077efe5c5eb2aa27b6a2fcf626989bdbbbe4 | [
"MIT"
] | null | null | null | from os import strerror
import os
import pytest
import datetime
import sqlalchemy
from sqlalchemy import inspect
from sqlalchemy import select
from sqlalchemy.orm import session
from sqlalchemy.sql.expression import func
#################################################
# DATABASE CONNECTOR
user = 'user'
password = ... | 30.957746 | 74 | 0.746588 | 825 | 6,594 | 5.741818 | 0.156364 | 0.213215 | 0.379987 | 0.493984 | 0.766519 | 0.654634 | 0.454296 | 0.40532 | 0.40532 | 0.40532 | 0 | 0.000714 | 0.15044 | 6,594 | 212 | 75 | 31.103774 | 0.844877 | 0.003488 | 0 | 0.288591 | 0 | 0 | 0.012117 | 0.008389 | 0 | 0 | 0 | 0 | 0.604027 | 1 | 0.073826 | false | 0.040268 | 0.067114 | 0 | 0.14094 | 0.006711 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a75f0071595f1cf5e30f78a377181f6b55570f76 | 61 | py | Python | core/models/__init__.py | Bhaskers-Blu-Org1/bLVNet-TAM | feadcd3a1a25723dc28bed867580032181e824a3 | [
"Apache-2.0"
] | 62 | 2019-10-22T14:52:30.000Z | 2021-07-27T12:07:38.000Z | core/models/__init__.py | Bhaskers-Blu-Org1/bLVNet-TAM | feadcd3a1a25723dc28bed867580032181e824a3 | [
"Apache-2.0"
] | 6 | 2019-12-16T06:03:42.000Z | 2020-08-31T07:59:04.000Z | core/models/__init__.py | IBM/bLVNet-TAM | feadcd3a1a25723dc28bed867580032181e824a3 | [
"Apache-2.0"
] | 16 | 2019-11-02T06:49:19.000Z | 2021-12-30T14:51:48.000Z |
from .blvnet_tam import bLVNet_TAM
__all__ = ['bLVNet_TAM'] | 15.25 | 34 | 0.770492 | 9 | 61 | 4.444444 | 0.555556 | 0.675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131148 | 61 | 4 | 35 | 15.25 | 0.754717 | 0 | 0 | 0 | 0 | 0 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a76eab46ba07f0fb8885169ad3e849032ee2d76c | 81 | py | Python | tests/conf.py | xncbf/django-dynamodb-cache | be6d1b4b8e92d581041043bcd694f2a9f00ee386 | [
"MIT"
] | 21 | 2022-02-16T10:18:24.000Z | 2022-03-31T23:40:06.000Z | tests/conf.py | xncbf/django-dynamodb-cache | be6d1b4b8e92d581041043bcd694f2a9f00ee386 | [
"MIT"
] | 9 | 2022-03-01T06:40:59.000Z | 2022-03-26T08:12:31.000Z | tests/conf.py | xncbf/django-dynamodb-cache | be6d1b4b8e92d581041043bcd694f2a9f00ee386 | [
"MIT"
] | null | null | null | from random import random
TABLE_NAME = f"test-django-dynamodb-cache-{random()}"
| 20.25 | 53 | 0.765432 | 12 | 81 | 5.083333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098765 | 81 | 3 | 54 | 27 | 0.835616 | 0 | 0 | 0 | 0 | 0 | 0.45679 | 0.45679 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a7857bc199ab6450358c23073cebf9f0bd31bb0d | 352 | py | Python | rules_default/castervoice/lib/ctrl/mgr/grammar_container/base_grammar_container.py | MLH-Fellowship/LarynxCode | 840fee18c689a357052825607c27fc8e3e56571c | [
"MIT"
] | 1 | 2021-09-17T06:11:02.000Z | 2021-09-17T06:11:02.000Z | rules_default/castervoice/lib/ctrl/mgr/grammar_container/base_grammar_container.py | soma2000-lang/LarynxCode | 840fee18c689a357052825607c27fc8e3e56571c | [
"MIT"
] | 5 | 2021-02-03T05:29:41.000Z | 2021-02-08T01:14:11.000Z | rules_default/castervoice/lib/ctrl/mgr/grammar_container/base_grammar_container.py | soma2000-lang/LarynxCode | 840fee18c689a357052825607c27fc8e3e56571c | [
"MIT"
] | 4 | 2021-02-03T05:05:00.000Z | 2021-07-14T06:21:10.000Z | from castervoice.lib.ctrl.mgr.errors.base_class_error import DontUseBaseClassError
class BaseGrammarContainer(object):
def set_non_ccr(self, rcn, grammar):
raise DontUseBaseClassError(self)
def set_ccr(self, ccr_grammars):
raise DontUseBaseClassError(self)
def wipe_ccr(self):
ra... | 25.142857 | 82 | 0.75 | 40 | 352 | 6.425 | 0.575 | 0.081712 | 0.350195 | 0.256809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176136 | 352 | 13 | 83 | 27.076923 | 0.886207 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a7b4c6f5823d6451d0e2b584c552a30bc5d41136 | 191 | py | Python | portal/template.py | SlapBass/nx-portal | ee262079db1e5230a24ebbc205e44926f11f8da9 | [
"Apache-2.0"
] | 5 | 2019-10-04T04:46:44.000Z | 2019-10-09T10:02:01.000Z | portal/template.py | SlapBass/nx-portal | ee262079db1e5230a24ebbc205e44926f11f8da9 | [
"Apache-2.0"
] | 9 | 2019-10-06T07:15:09.000Z | 2020-09-24T02:19:40.000Z | portal/template.py | SlapBass/nx-portal | ee262079db1e5230a24ebbc205e44926f11f8da9 | [
"Apache-2.0"
] | 1 | 2020-06-19T13:26:08.000Z | 2020-06-19T13:26:08.000Z | from django.conf import settings
def shared_view_contexts(request):
return {
'APP_NAME': settings.APPLICATION_NAME,
'SEASONABLE_EMOJI': settings.SEASONABLE_EMOJI,
}
| 21.222222 | 54 | 0.712042 | 21 | 191 | 6.190476 | 0.761905 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204188 | 191 | 8 | 55 | 23.875 | 0.855263 | 0 | 0 | 0 | 0 | 0 | 0.125654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
ac0aebc29b01daccd8a1302b366f51ee3eb40958 | 190 | py | Python | intered/bin/django-admin.py | allenallen/interedregistration | d6b93bfc33d7bb9bfbabdcdb27b685f3a6be3ea9 | [
"MIT"
] | null | null | null | intered/bin/django-admin.py | allenallen/interedregistration | d6b93bfc33d7bb9bfbabdcdb27b685f3a6be3ea9 | [
"MIT"
] | 6 | 2020-02-11T23:05:13.000Z | 2021-06-10T20:43:51.000Z | intered/bin/django-admin.py | allenallen/interedregistration | d6b93bfc33d7bb9bfbabdcdb27b685f3a6be3ea9 | [
"MIT"
] | null | null | null | #!/home/allen/Documents/TamarawTechProjects/interedregistration/intered/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 31.666667 | 83 | 0.821053 | 21 | 190 | 6.904762 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005714 | 0.078947 | 190 | 5 | 84 | 38 | 0.822857 | 0.431579 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ac1910c0faa98f5af77a97256be74c749f17725a | 279 | py | Python | DeepRTS/__init__.py | cair/deep-rts | 7aa5dde0c5df10ae3a3d057e7b89641aec58e115 | [
"MIT"
] | 144 | 2018-07-13T07:47:50.000Z | 2022-03-31T06:29:50.000Z | DeepRTS/__init__.py | cair/DeepRTS | 2ea4de0993ea0ca2677fdb36a172779db4ce7868 | [
"MIT"
] | 18 | 2019-03-29T10:37:01.000Z | 2022-03-02T12:47:34.000Z | DeepRTS/__init__.py | cair/DeepRTS | 2ea4de0993ea0ca2677fdb36a172779db4ce7868 | [
"MIT"
] | 23 | 2018-11-02T18:12:51.000Z | 2022-02-15T20:32:18.000Z | try:
from DeepRTS import Engine
except ImportError:
import Engine
try:
from DeepRTS.Engine import Map, UnitManager, Constants, Player
from DeepRTS.Engine import Constants
except ImportError:
from Engine import Map, UnitManager, Constants, Player, Constants
| 23.25 | 69 | 0.763441 | 33 | 279 | 6.454545 | 0.333333 | 0.15493 | 0.131455 | 0.215962 | 0.384977 | 0.384977 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189964 | 279 | 11 | 70 | 25.363636 | 0.942478 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.777778 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ac3000c2861cfc54577cebc22127160c6d8e95fb | 86 | py | Python | ipfsApi/__init__.py | dardevelin/python-ipfs-api | 841595f7d2b07db511eef34aa046163ee4a3020e | [
"MIT"
] | 1 | 2018-08-14T02:10:35.000Z | 2018-08-14T02:10:35.000Z | ipfsApi/__init__.py | ipfs-client-libraries/python-ipfs-api | 841595f7d2b07db511eef34aa046163ee4a3020e | [
"MIT"
] | null | null | null | ipfsApi/__init__.py | ipfs-client-libraries/python-ipfs-api | 841595f7d2b07db511eef34aa046163ee4a3020e | [
"MIT"
] | 1 | 2022-01-28T13:37:31.000Z | 2022-01-28T13:37:31.000Z | from __future__ import absolute_import
from .client import *
__version__ = '0.2.2'
| 12.285714 | 38 | 0.755814 | 12 | 86 | 4.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.162791 | 86 | 6 | 39 | 14.333333 | 0.736111 | 0 | 0 | 0 | 0 | 0 | 0.05814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ac45e6abbbb88f1ae1939bcf71db99437c006d19 | 154 | py | Python | desafios/des003/des003_p03.py | brenoedl0/python | 92ee4ea141584e0bd140449c093f871c2140b1a5 | [
"MIT"
] | null | null | null | desafios/des003/des003_p03.py | brenoedl0/python | 92ee4ea141584e0bd140449c093f871c2140b1a5 | [
"MIT"
] | null | null | null | desafios/des003/des003_p03.py | brenoedl0/python | 92ee4ea141584e0bd140449c093f871c2140b1a5 | [
"MIT"
] | null | null | null | nota1 = float(input('nota 1: '))
nota2 = float(input('nota 2: '))
media = (nota1 + nota2)/2
print('A media entre a nota 1 e a nota 2 é {}'.format(media))
| 30.8 | 61 | 0.62987 | 28 | 154 | 3.464286 | 0.5 | 0.206186 | 0.28866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070866 | 0.175325 | 154 | 4 | 62 | 38.5 | 0.692913 | 0 | 0 | 0 | 0 | 0 | 0.350649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ac4e9a7286b947fb0b00f67815da9872ce954025 | 161 | py | Python | Estrutura_Decisao/pair_or_odd.py | M3nin0/supreme-broccoli | 186c1ea3b839ba3139f9301660dec8fbd27a162e | [
"Apache-2.0"
] | null | null | null | Estrutura_Decisao/pair_or_odd.py | M3nin0/supreme-broccoli | 186c1ea3b839ba3139f9301660dec8fbd27a162e | [
"Apache-2.0"
] | null | null | null | Estrutura_Decisao/pair_or_odd.py | M3nin0/supreme-broccoli | 186c1ea3b839ba3139f9301660dec8fbd27a162e | [
"Apache-2.0"
] | null | null | null | num = int(input("Insira um numero para descobrir se este é par ou impar: "))
if num % 2 == 0:
print("Este numero é par")
else:
print("Este numero é impar")
| 17.888889 | 76 | 0.658385 | 29 | 161 | 3.655172 | 0.655172 | 0.075472 | 0.283019 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.21118 | 161 | 8 | 77 | 20.125 | 0.818898 | 0 | 0 | 0 | 0 | 0 | 0.578616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ac53b737b7f7790c24745dd75f232a7019768317 | 7,968 | py | Python | challenges/challenge1_test.py | jamiejamiebobamie/CS-2.2-Advanced-Recursion-and-Graphs | 3de50122ed783ee9dee251ae87173286a861f33d | [
"MIT"
] | null | null | null | challenges/challenge1_test.py | jamiejamiebobamie/CS-2.2-Advanced-Recursion-and-Graphs | 3de50122ed783ee9dee251ae87173286a861f33d | [
"MIT"
] | 5 | 2019-07-26T05:39:34.000Z | 2019-08-16T14:59:21.000Z | challenges/challenge1_test.py | jamiejamiebobamie/CS-2.2-Advanced-Recursion-and-Graphs | 3de50122ed783ee9dee251ae87173286a861f33d | [
"MIT"
] | null | null | null |
import unittest
from challenge1 import *
"""class Test_Read_Graph_Method(unittest.TestCase):
def __init__(self):
super(TestingClass, self).__init__()
self.filepath = "graph_data.txt"
self.vertices, self.edges = read_graph(filepath)
def test_read(self):
self.assertTrue(self.v... | 41.717277 | 190 | 0.616717 | 1,272 | 7,968 | 3.713836 | 0.062107 | 0.04276 | 0.048899 | 0.048264 | 0.823243 | 0.781118 | 0.75 | 0.689035 | 0.627434 | 0.568586 | 0 | 0.07639 | 0.185115 | 7,968 | 190 | 191 | 41.936842 | 0.651163 | 0.020833 | 0 | 0.358491 | 0 | 0 | 0.090297 | 0 | 0 | 0 | 0 | 0 | 0.54717 | 1 | 0 | false | 0.037736 | 0.056604 | 0 | 0.056604 | 0.075472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ac6d9ecff3da360afd64ff653a18f8313213ea89 | 13,844 | py | Python | evmosproto/evmos/incentives/v1/incentives_pb2.py | hanchon-live/evmosproto | 141f336cf027a88c5bf227ab49069dd1cf2e4853 | [
"MIT"
] | null | null | null | evmosproto/evmos/incentives/v1/incentives_pb2.py | hanchon-live/evmosproto | 141f336cf027a88c5bf227ab49069dd1cf2e4853 | [
"MIT"
] | null | null | null | evmosproto/evmos/incentives/v1/incentives_pb2.py | hanchon-live/evmosproto | 141f336cf027a88c5bf227ab49069dd1cf2e4853 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: evmos/incentives/v1/incentives.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflect... | 48.069444 | 1,372 | 0.769142 | 1,786 | 13,844 | 5.663494 | 0.113662 | 0.041127 | 0.061987 | 0.043599 | 0.75917 | 0.722096 | 0.641621 | 0.634701 | 0.626594 | 0.618092 | 0 | 0.046591 | 0.106978 | 13,844 | 287 | 1,373 | 48.236934 | 0.771576 | 0.038284 | 0 | 0.647059 | 1 | 0.011765 | 0.243534 | 0.207519 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027451 | 0 | 0.027451 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ac79385f0f5c532c4496afb0999dcc78d78a4e70 | 174 | py | Python | Python32/hackeandoface3.py | andersonsilvade/python_C | ffc00184883089f1c2d9b8a6c32503b2c8b8d035 | [
"MIT"
] | null | null | null | Python32/hackeandoface3.py | andersonsilvade/python_C | ffc00184883089f1c2d9b8a6c32503b2c8b8d035 | [
"MIT"
] | null | null | null | Python32/hackeandoface3.py | andersonsilvade/python_C | ffc00184883089f1c2d9b8a6c32503b2c8b8d035 | [
"MIT"
] | 1 | 2020-11-04T08:36:28.000Z | 2020-11-04T08:36:28.000Z | import urllib.request
import json
url = 'http://graph.facebook.com/fmasanori'
resp = urllib.request.urlopen(url).read()
data = json.loads(resp.decode('utf-8'))
print(data)
| 19.333333 | 43 | 0.735632 | 26 | 174 | 4.923077 | 0.730769 | 0.203125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006329 | 0.091954 | 174 | 8 | 44 | 21.75 | 0.803797 | 0 | 0 | 0 | 0 | 0 | 0.231214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ac844765c4ce5c32dfa9aa2da4c0094d7fbd95aa | 154 | py | Python | convert.py | Resist4263/span-aste-1 | 13815a262638592506b445315d03df8db965947b | [
"Apache-2.0"
] | null | null | null | convert.py | Resist4263/span-aste-1 | 13815a262638592506b445315d03df8db965947b | [
"Apache-2.0"
] | null | null | null | convert.py | Resist4263/span-aste-1 | 13815a262638592506b445315d03df8db965947b | [
"Apache-2.0"
] | null | null | null | from gensim.scripts.glove2word2vec import glove2word2vec
(count, dimensions) = glove2word2vec("dataset/glove.42B.300d.txt", "dataset/cropus/42B_w2v.txt") | 51.333333 | 96 | 0.811688 | 19 | 154 | 6.526316 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096552 | 0.058442 | 154 | 3 | 96 | 51.333333 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0.335484 | 0.335484 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3bb2017aa37b51490a6ff0089cf9d21b31b7addf | 220 | py | Python | basic_assignment/32.py | 1212091/python-learning | 30fad66460daf73fd3961cf667ee25b91dee923d | [
"MIT"
] | null | null | null | basic_assignment/32.py | 1212091/python-learning | 30fad66460daf73fd3961cf667ee25b91dee923d | [
"MIT"
] | null | null | null | basic_assignment/32.py | 1212091/python-learning | 30fad66460daf73fd3961cf667ee25b91dee923d | [
"MIT"
] | null | null | null | class Circle:
def __init__(self, radius):
self.radius = radius
def compute_area(self):
return self.radius ** 2 * 3.14
circle = Circle(2)
print("Area of circuit: " + str(circle.compute_area()))
| 20 | 55 | 0.631818 | 30 | 220 | 4.433333 | 0.533333 | 0.225564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029762 | 0.236364 | 220 | 10 | 56 | 22 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0.077273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
3bd475c386fa8a4a56cad45921819b936313ea64 | 162 | py | Python | exercise/6.py | zhaoshengshi/practicepython-exercise | 3e123eb602aaf1c9638c7a2199607146e860b96c | [
"Apache-2.0"
] | null | null | null | exercise/6.py | zhaoshengshi/practicepython-exercise | 3e123eb602aaf1c9638c7a2199607146e860b96c | [
"Apache-2.0"
] | null | null | null | exercise/6.py | zhaoshengshi/practicepython-exercise | 3e123eb602aaf1c9638c7a2199607146e860b96c | [
"Apache-2.0"
] | null | null | null | ss = input('Please give me a string: ')
if ss == ss[::-1]:
print("Yes, %s is a palindrome." % ss)
else:
print('Nevermind, %s isn\'t a palindrome.' % ss)
| 23.142857 | 52 | 0.574074 | 27 | 162 | 3.444444 | 0.666667 | 0.236559 | 0.27957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.222222 | 162 | 6 | 53 | 27 | 0.730159 | 0 | 0 | 0 | 0 | 0 | 0.41358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3bdb6220329725e793142bac8d5000ba99303cc3 | 989 | py | Python | common/permissions.py | pedro-hs/financial-account | 7e8e4d0f3ac888fa36a091d0e733a8e1926180d2 | [
"MIT"
] | null | null | null | common/permissions.py | pedro-hs/financial-account | 7e8e4d0f3ac888fa36a091d0e733a8e1926180d2 | [
"MIT"
] | null | null | null | common/permissions.py | pedro-hs/financial-account | 7e8e4d0f3ac888fa36a091d0e733a8e1926180d2 | [
"MIT"
] | null | null | null | from rest_framework.permissions import BasePermission, IsAuthenticated
class IsBackOffice(BasePermission):
def has_permission(self, request, view):
return bool(request.user and request.user.is_authenticated and request.user.role == 'collaborator')
class IsUserBase(IsAuthenticated):
def has_permissio... | 34.103448 | 107 | 0.706775 | 112 | 989 | 6.160714 | 0.294643 | 0.191304 | 0.130435 | 0.144928 | 0.675362 | 0.675362 | 0.675362 | 0.675362 | 0.675362 | 0.675362 | 0 | 0 | 0.196158 | 989 | 28 | 108 | 35.321429 | 0.867925 | 0 | 0 | 0.444444 | 0 | 0 | 0.072801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.111111 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
3bfae0d38025f9ed469b1477352c2cbb4d204cae | 9,752 | py | Python | tests/metrics/test_metrics.py | HiromuHota/emmental | eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0 | [
"MIT"
] | null | null | null | tests/metrics/test_metrics.py | HiromuHota/emmental | eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0 | [
"MIT"
] | null | null | null | tests/metrics/test_metrics.py | HiromuHota/emmental | eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0 | [
"MIT"
] | null | null | null | import logging
import numpy as np
from emmental.metrics.accuracy import accuracy_scorer
from emmental.metrics.accuracy_f1 import accuracy_f1_scorer
from emmental.metrics.fbeta import f1_scorer, fbeta_scorer
from emmental.metrics.matthews_correlation import (
matthews_correlation_coefficient_scorer,
)
from emmenta... | 31.869281 | 85 | 0.658839 | 1,505 | 9,752 | 4.080399 | 0.056478 | 0.130272 | 0.123758 | 0.149813 | 0.793845 | 0.738805 | 0.737502 | 0.718775 | 0.679205 | 0.637355 | 0 | 0.120311 | 0.182629 | 9,752 | 305 | 86 | 31.97377 | 0.650107 | 0.041427 | 0 | 0.446237 | 0 | 0 | 0.04264 | 0 | 0 | 0 | 0 | 0 | 0.215054 | 1 | 0.064516 | false | 0 | 0.075269 | 0 | 0.139785 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ce14a275a0957db889a40c045e5b451a0b8f836f | 331 | py | Python | examples/robot_mock.py | gmamaladze/robo-pi | f9affc63760774073a3b1de4e4ea064bde2eb074 | [
"MIT"
] | 1 | 2020-04-24T21:34:01.000Z | 2020-04-24T21:34:01.000Z | examples/robot_mock.py | gmamaladze/robo-pi | f9affc63760774073a3b1de4e4ea064bde2eb074 | [
"MIT"
] | 10 | 2019-12-16T20:55:38.000Z | 2022-02-09T23:33:51.000Z | examples/robot_mock.py | gmamaladze/tf-voice-pi | f9affc63760774073a3b1de4e4ea064bde2eb074 | [
"MIT"
] | null | null | null | class Robot:
def __init__(self, left="MOTOR4", right="MOTOR2", config=1):
print("init")
def forward(self):
print("forward")
def backward(self):
print("backward")
def left(self):
print("left")
def right(self):
print("right")
def stop(self):
pri... | 17.421053 | 64 | 0.537764 | 38 | 331 | 4.578947 | 0.394737 | 0.258621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.302115 | 331 | 18 | 65 | 18.388889 | 0.74026 | 0 | 0 | 0 | 0 | 0 | 0.132931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.461538 | false | 0 | 0 | 0 | 0.538462 | 0.461538 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 4 |
ce313caa11cce1219bbc0ca784238958335d4a0b | 529 | py | Python | Python/leetcode/Triangle.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | 2 | 2015-12-02T06:44:01.000Z | 2016-05-04T21:40:54.000Z | Python/leetcode/Triangle.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | null | null | null | Python/leetcode/Triangle.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | null | null | null | '''
Created on 1.12.2016
@author: Darren
''''''
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[3,4],
[6,5,7],
[4,1,8,3]
]
The minimum path... | 18.892857 | 126 | 0.587902 | 91 | 529 | 3.417582 | 0.681319 | 0.064309 | 0.090032 | 0.109325 | 0.205788 | 0.205788 | 0.205788 | 0.205788 | 0 | 0 | 0 | 0.068306 | 0.308129 | 529 | 27 | 127 | 19.592593 | 0.781421 | 0.918715 | 0 | 0.142857 | 0 | 0.214286 | 0.984683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cbec06c90522fab416454e28ed3f8f1ea15d10d0 | 96 | py | Python | startup.py | andreagia/WEBNMR | 512a8cc04cf69300796585feae722614501389a9 | [
"Apache-2.0"
] | null | null | null | startup.py | andreagia/WEBNMR | 512a8cc04cf69300796585feae722614501389a9 | [
"Apache-2.0"
] | null | null | null | startup.py | andreagia/WEBNMR | 512a8cc04cf69300796585feae722614501389a9 | [
"Apache-2.0"
] | null | null | null | from paste.deploy import loadapp
app = loadapp("config:/home/webenmr/WebENMR/development.ini")
| 24 | 61 | 0.791667 | 13 | 96 | 5.846154 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 96 | 3 | 62 | 32 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0.463158 | 0.463158 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
cbf2dc049f1ccb6bed778490aa18d0ea3f007439 | 793 | py | Python | src/opserver/plugins/alarm_process_connectivity/setup.py | biswajit-mandal/contrail-controller | 80c4a7e8515f7296b18ba4c21a439bd3daefcc4a | [
"Apache-2.0"
] | 3 | 2019-01-11T06:16:40.000Z | 2021-02-24T23:48:21.000Z | src/opserver/plugins/alarm_process_connectivity/setup.py | biswajit-mandal/contrail-controller | 80c4a7e8515f7296b18ba4c21a439bd3daefcc4a | [
"Apache-2.0"
] | null | null | null | src/opserver/plugins/alarm_process_connectivity/setup.py | biswajit-mandal/contrail-controller | 80c4a7e8515f7296b18ba4c21a439bd3daefcc4a | [
"Apache-2.0"
] | 18 | 2017-01-12T09:28:44.000Z | 2019-04-18T20:47:42.000Z | #
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
from setuptools import setup, find_packages
setup(
name='alarm_process_connectivity',
version='0.1dev',
packages=find_packages(),
entry_points = {
'contrail.analytics.alarms': [
'ObjectCollectorInfo = alarm_proces... | 34.478261 | 88 | 0.717528 | 68 | 793 | 8.117647 | 0.573529 | 0.130435 | 0.26087 | 0.253623 | 0.425725 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009375 | 0.192938 | 793 | 22 | 89 | 36.045455 | 0.853125 | 0.078184 | 0 | 0 | 0 | 0 | 0.595598 | 0.420908 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
024c8b636c73803ba5c14b996265676bb94e1dd0 | 592 | py | Python | notebooks/shared/ipypublish/export_plugins/html_standard.py | leonbett/debuggingbook | ae1fa940c306160429232fbc93a7a7f14b44efb7 | [
"MIT"
] | 728 | 2018-09-21T03:51:04.000Z | 2022-03-28T09:35:04.000Z | notebooks/shared/ipypublish/export_plugins/html_standard.py | leonbett/debuggingbook | ae1fa940c306160429232fbc93a7a7f14b44efb7 | [
"MIT"
] | 103 | 2018-09-02T12:26:32.000Z | 2022-02-09T07:19:08.000Z | notebooks/shared/ipypublish/export_plugins/html_standard.py | leonbett/debuggingbook | ae1fa940c306160429232fbc93a7a7f14b44efb7 | [
"MIT"
] | 157 | 2018-09-02T08:00:50.000Z | 2022-03-27T22:04:50.000Z | #!/usr/bin/env python
"""html in standard nbconvert format
"""
from ipypublish.html.create_tpl import create_tpl
from ipypublish.html.standard import content
from ipypublish.html.standard import content_tagging
from ipypublish.html.standard import document
from ipypublish.html.standard import inout_prompt
from ipypubl... | 28.190476 | 52 | 0.802365 | 81 | 592 | 5.703704 | 0.308642 | 0.212121 | 0.272727 | 0.337662 | 0.445887 | 0.168831 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118243 | 592 | 20 | 53 | 29.6 | 0.885057 | 0.091216 | 0 | 0 | 0 | 0 | 0.007533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.466667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
025c8c73c3dda45b9c81e36fafb6a8137598b6d5 | 254 | py | Python | tests/unit/test_databeardb.py | chrisrycx/pyDataLogger | 21094da9de54ab467519a26680247ddc3efa6696 | [
"MIT"
] | 1 | 2020-09-25T16:25:09.000Z | 2020-09-25T16:25:09.000Z | tests/unit/test_databeardb.py | chrisrycx/pyDataLogger | 21094da9de54ab467519a26680247ddc3efa6696 | [
"MIT"
] | 4 | 2020-10-06T17:16:58.000Z | 2020-12-18T17:06:16.000Z | tests/unit/test_databeardb.py | chrisrycx/pyDataLogger | 21094da9de54ab467519a26680247ddc3efa6696 | [
"MIT"
] | 2 | 2020-03-24T14:32:29.000Z | 2020-08-05T17:38:24.000Z | '''
A unit test for databearDB.py
Runs manually at this point...
'''
import unittest
from databear.databearDB import DataBearDB
#Tests
class testDataBearDB(unittest.TestCase):
def setUp(self):
'''
Hmm
'''
pass
| 14.111111 | 42 | 0.622047 | 28 | 254 | 5.642857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279528 | 254 | 18 | 43 | 14.111111 | 0.863388 | 0.275591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
026d6883b4b4ef48ca95ca7facd1d38932ace6a3 | 26 | py | Python | env/lib/python3.7/site-packages/grpc/_grpcio_metadata.py | PrudhviGNV/speechemotion | c99b4a7f644e1fd495cb5e6750ada0dd50d8b86f | [
"MIT"
] | 5 | 2019-04-16T20:43:47.000Z | 2020-10-24T22:35:39.000Z | Lib/site-packages/grpc/_grpcio_metadata.py | caiyongji/Anaconda-py36.5-tensorflow-built-env | f4eb40b5ca3f49dfc929ff3ad2b4bb877e9663e2 | [
"PSF-2.0"
] | 2 | 2021-04-30T20:43:55.000Z | 2021-06-10T21:34:23.000Z | Lib/site-packages/grpc/_grpcio_metadata.py | caiyongji/Anaconda-py36.5-tensorflow-built-env | f4eb40b5ca3f49dfc929ff3ad2b4bb877e9663e2 | [
"PSF-2.0"
] | 3 | 2019-08-03T13:47:09.000Z | 2021-08-03T14:20:25.000Z | __version__ = """1.19.0""" | 26 | 26 | 0.576923 | 4 | 26 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.076923 | 26 | 1 | 26 | 26 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
02824286d75d00e50642afe49b18a9fd9681523d | 22 | py | Python | backend_server/backend_globals.py | MSNLAB/SmartEye | 40b38190aeff5d5b970c8cbf43e8781634b38028 | [
"MIT",
"Unlicense"
] | 17 | 2021-06-27T04:33:13.000Z | 2022-03-21T02:54:52.000Z | backend_server/backend_globals.py | MSNLAB/SmartEye | 40b38190aeff5d5b970c8cbf43e8781634b38028 | [
"MIT",
"Unlicense"
] | null | null | null | backend_server/backend_globals.py | MSNLAB/SmartEye | 40b38190aeff5d5b970c8cbf43e8781634b38028 | [
"MIT",
"Unlicense"
] | 2 | 2021-10-31T05:14:24.000Z | 2022-03-25T18:53:49.000Z |
global loaded_model
| 5.5 | 19 | 0.818182 | 3 | 22 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 22 | 3 | 20 | 7.333333 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
65fdd0400541291beac65b8a408eaf8121f2b56b | 402 | py | Python | server/resources/platform.py | simon-dube/CARMIN-server | 1481d2c4231458d33119c57ab2e3e480375da63b | [
"MIT"
] | 1 | 2018-03-12T23:08:12.000Z | 2018-03-12T23:08:12.000Z | server/resources/platform.py | simon-dube/CARMIN-server | 1481d2c4231458d33119c57ab2e3e480375da63b | [
"MIT"
] | 15 | 2018-03-15T04:23:31.000Z | 2018-06-28T21:46:15.000Z | server/resources/platform.py | simon-dube/CARMIN-server | 1481d2c4231458d33119c57ab2e3e480375da63b | [
"MIT"
] | null | null | null | from flask_restful import Resource
from server.platform_properties import PLATFORM_PROPERTIES
from server.resources.models.platform_properties import PlatformPropertiesSchema
from server.resources.decorators import marshal_response
class Platform(Resource):
@marshal_response(PlatformPropertiesSchema())
def ge... | 36.545455 | 80 | 0.840796 | 42 | 402 | 7.880952 | 0.5 | 0.217523 | 0.145015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10199 | 402 | 10 | 81 | 40.2 | 0.916898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
5a0835b17e7c0f765c8aa93d7341da5395fe71d2 | 32 | py | Python | provider/__init__.py | depop/django-oauth2-provider | afcdef72747233dc0259a4bc068a8086ba7a69d3 | [
"MIT"
] | 1 | 2020-05-10T00:11:05.000Z | 2020-05-10T00:11:05.000Z | provider/__init__.py | depop/django-oauth2-provider | afcdef72747233dc0259a4bc068a8086ba7a69d3 | [
"MIT"
] | 1 | 2016-05-23T15:22:41.000Z | 2016-05-23T15:22:41.000Z | provider/__init__.py | depop/django-oauth2-provider | afcdef72747233dc0259a4bc068a8086ba7a69d3 | [
"MIT"
] | null | null | null | __version__ = "0.2.7+depop.6.1"
| 16 | 31 | 0.65625 | 7 | 32 | 2.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 0.09375 | 32 | 1 | 32 | 32 | 0.413793 | 0 | 0 | 0 | 0 | 0 | 0.46875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5a2a33ed323999913f0d3da3c440981176e3bcd7 | 159 | py | Python | Dashboard with Django/updates/forms.py | reddyprasade/Data-Analysis-with-Python- | 2440e23486856eea5556c8262467b3a618032bc2 | [
"MIT"
] | 1 | 2021-06-29T23:15:05.000Z | 2021-06-29T23:15:05.000Z | Dashboard with Django/updates/forms.py | reddyprasade/Data-Analysis-with-Python- | 2440e23486856eea5556c8262467b3a618032bc2 | [
"MIT"
] | null | null | null | Dashboard with Django/updates/forms.py | reddyprasade/Data-Analysis-with-Python- | 2440e23486856eea5556c8262467b3a618032bc2 | [
"MIT"
] | 1 | 2021-12-20T10:04:53.000Z | 2021-12-20T10:04:53.000Z | from django.forms import ModelForm
from updates.models import Post
class Postform(ModelForm):
class Meta:
model = Post
fields = ['title','body','date']
| 17.666667 | 34 | 0.72956 | 21 | 159 | 5.52381 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157233 | 159 | 8 | 35 | 19.875 | 0.865672 | 0 | 0 | 0 | 0 | 0 | 0.082278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5a41217fc99d7ef188d90f55041a7803b426c258 | 22 | py | Python | gsb/rest/__init__.py | pfrancois/grisbi_django | 4e27149522847c78ab9c0f0a06f0b1d371f7c205 | [
"BSD-3-Clause"
] | null | null | null | gsb/rest/__init__.py | pfrancois/grisbi_django | 4e27149522847c78ab9c0f0a06f0b1d371f7c205 | [
"BSD-3-Clause"
] | null | null | null | gsb/rest/__init__.py | pfrancois/grisbi_django | 4e27149522847c78ab9c0f0a06f0b1d371f7c205 | [
"BSD-3-Clause"
] | null | null | null | # coding=utf-8
# init
| 7.333333 | 14 | 0.636364 | 4 | 22 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.181818 | 22 | 2 | 15 | 11 | 0.722222 | 0.772727 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5a4d72f7295e946813a914b8b8596cf8a6802ccb | 2,691 | py | Python | cocotb/_py_compat.py | lavanyajagan/cocotb | 2f98612016e68510e264a2b4963303d3588d8404 | [
"BSD-3-Clause"
] | 350 | 2015-01-09T12:50:13.000Z | 2019-07-12T09:08:17.000Z | cocotb/_py_compat.py | lavanyajagan/cocotb | 2f98612016e68510e264a2b4963303d3588d8404 | [
"BSD-3-Clause"
] | 710 | 2015-01-05T16:42:29.000Z | 2019-07-16T13:40:00.000Z | cocotb/_py_compat.py | lavanyajagan/cocotb | 2f98612016e68510e264a2b4963303d3588d8404 | [
"BSD-3-Clause"
] | 182 | 2015-01-08T09:35:20.000Z | 2019-07-12T18:41:37.000Z | # Copyright (c) cocotb contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions a... | 42.046875 | 81 | 0.751394 | 382 | 2,691 | 5.232984 | 0.52356 | 0.022011 | 0.022511 | 0.023012 | 0.092046 | 0.068034 | 0.068034 | 0.068034 | 0.068034 | 0.068034 | 0 | 0.003238 | 0.196581 | 2,691 | 63 | 82 | 42.714286 | 0.921369 | 0.822742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0.153846 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
ce69ac58ca5435e4721a3c9bb26cdcd8b83c0839 | 160 | py | Python | exercise/newfile45.py | LeeBeral/python | 9f0d360d69ee5245e3ef13a9dc9fc666374587a4 | [
"MIT"
] | null | null | null | exercise/newfile45.py | LeeBeral/python | 9f0d360d69ee5245e3ef13a9dc9fc666374587a4 | [
"MIT"
] | null | null | null | exercise/newfile45.py | LeeBeral/python | 9f0d360d69ee5245e3ef13a9dc9fc666374587a4 | [
"MIT"
] | null | null | null | show databases;
show tables
desc table名
use database名
delete from 库名.表名 where id=5;
select * from 表名 where id=5;
update 表名 set age=15,home='北京' where id=5 | 22.857143 | 41 | 0.73125 | 31 | 160 | 3.774194 | 0.677419 | 0.179487 | 0.205128 | 0.17094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.1875 | 160 | 7 | 41 | 22.857143 | 0.861538 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.