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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1a32d705e4eb9fd556d57f6c1aed9ef238141835 | 17,047 | py | Python | pybind/slxos/v17r_2_00/qos_mpls/map_apply/apply_exp_traffic_class_map_name/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v17r_2_00/qos_mpls/map_apply/apply_exp_traffic_class_map_name/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v17r_2_00/qos_mpls/map_apply/apply_exp_traffic_class_map_name/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | 1 | 2021-11-05T22:15:42.000Z | 2021-11-05T22:15:42.000Z |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | 74.767544 | 665 | 0.730451 | 2,622 | 17,047 | 4.504195 | 0.072082 | 0.035563 | 0.032176 | 0.053091 | 0.844708 | 0.805419 | 0.782896 | 0.772735 | 0.762659 | 0.751312 | 0 | 0.011007 | 0.126005 | 17,047 | 227 | 666 | 75.096916 | 0.781663 | 0.136212 | 0 | 0.422819 | 0 | 0.04698 | 0.417837 | 0.194284 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100671 | false | 0 | 0.053691 | 0 | 0.288591 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1a5d6c83e6cdcdaef627bd8853c683bc3d3c9da0 | 4,943 | py | Python | tests/float/test_float_declaration.py | nikitanovosibirsk/district42 | 0c13248919fc96bde16b9634a8ea468e4882752a | [
"Apache-2.0"
] | 1 | 2016-09-16T04:09:19.000Z | 2016-09-16T04:09:19.000Z | tests/float/test_float_declaration.py | nikitanovosibirsk/district42 | 0c13248919fc96bde16b9634a8ea468e4882752a | [
"Apache-2.0"
] | 2 | 2021-06-14T05:53:49.000Z | 2022-02-01T14:26:31.000Z | tests/float/test_float_declaration.py | nikitanovosibirsk/district42 | 0c13248919fc96bde16b9634a8ea468e4882752a | [
"Apache-2.0"
] | null | null | null | from baby_steps import given, then, when
from pytest import raises
from district42 import schema
from district42.errors import DeclarationError
from district42.types import FloatSchema
def test_float_declaration():
with when:
sch = schema.float
with then:
assert isinstance(sch, FloatSchema)
... | 27.926554 | 95 | 0.660732 | 666 | 4,943 | 4.72973 | 0.081081 | 0.025714 | 0.060952 | 0.073016 | 0.891746 | 0.852381 | 0.833016 | 0.775873 | 0.703175 | 0.664762 | 0 | 0.030547 | 0.244993 | 4,943 | 176 | 96 | 28.085227 | 0.813505 | 0 | 0 | 0.591667 | 0 | 0.016667 | 0.123609 | 0.019219 | 0 | 0 | 0 | 0 | 0.241667 | 1 | 0.133333 | false | 0 | 0.041667 | 0 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1a79b24b5616ca73426a521527499ee47a52fa74 | 176 | py | Python | pbxd/v3/__init__.py | benroy73/pbxd | a2bb677f6502d09e5da51470b8be706436bcb3c7 | [
"Apache-2.0"
] | 7 | 2015-01-22T18:48:03.000Z | 2020-10-01T18:58:15.000Z | pbxd/v3/__init__.py | benroy73/pbxd | a2bb677f6502d09e5da51470b8be706436bcb3c7 | [
"Apache-2.0"
] | null | null | null | pbxd/v3/__init__.py | benroy73/pbxd | a2bb677f6502d09e5da51470b8be706436bcb3c7 | [
"Apache-2.0"
] | 2 | 2015-04-20T19:15:54.000Z | 2015-10-05T19:47:20.000Z | # the order of imports is important here. "v3" uses "api"
# so "v3" must be imported before "views".
from ..blueprint import v3 # noqa: F401
from . import views # noqa: F401
| 35.2 | 57 | 0.693182 | 28 | 176 | 4.357143 | 0.75 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 0.198864 | 176 | 4 | 58 | 44 | 0.801418 | 0.670455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
1a9a8686e7fdec7428df3ace1f3bd523aea58873 | 109 | py | Python | ivory/utils/__init__.py | daizutabi/ivory | d961e6c05ece112d99b8f8c2d6dad530f60b7303 | [
"MIT"
] | 1 | 2019-05-16T10:38:53.000Z | 2019-05-16T10:38:53.000Z | ivory/utils/__init__.py | daizutabi/ivory | d961e6c05ece112d99b8f8c2d6dad530f60b7303 | [
"MIT"
] | null | null | null | ivory/utils/__init__.py | daizutabi/ivory | d961e6c05ece112d99b8f8c2d6dad530f60b7303 | [
"MIT"
] | null | null | null | from ivory.utils import data, fold, params, path, tqdm
__all__ = ["data", "fold", "params", "path", "tqdm"]
| 27.25 | 54 | 0.651376 | 15 | 109 | 4.466667 | 0.666667 | 0.238806 | 0.41791 | 0.537313 | 0.656716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146789 | 109 | 3 | 55 | 36.333333 | 0.72043 | 0 | 0 | 0 | 0 | 0 | 0.201835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
1aa1f97ac073a4aa9795be81256869731031333a | 39,429 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/EXT/direct_state_access.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/EXT/direct_state_access.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/EXT/direct_state_access.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
# End users want this...
from OpenGL.raw.GL._types import *
from OpenGL.raw.GL import _errors
from OpenGL.constant import Constant as _C
import... | 50.420716 | 153 | 0.811915 | 5,690 | 39,429 | 5.320211 | 0.071529 | 0.090909 | 0.08754 | 0.092297 | 0.740123 | 0.722186 | 0.711747 | 0.698798 | 0.692224 | 0.668142 | 0 | 0.0041 | 0.0473 | 39,429 | 781 | 154 | 50.485275 | 0.801778 | 0.002536 | 0 | 0.512227 | 1 | 0 | 0.003555 | 0.003555 | 0 | 0 | 0.000467 | 0 | 0 | 1 | 0.329472 | false | 0.328185 | 0.007722 | 0.001287 | 0.338481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
1ac1a0c2d3f47cae7dc0860d96e81a99adf5417b | 96 | py | Python | venv/lib/python3.8/site-packages/urllib3/connection.py | GiulianaPola/select_repeats | 17a0d053d4f874e42cf654dd142168c2ec8fbd11 | [
"MIT"
] | 1 | 2022-02-22T04:49:18.000Z | 2022-02-22T04:49:18.000Z | venv/lib/python3.8/site-packages/urllib3/connection.py | GiulianaPola/select_repeats | 17a0d053d4f874e42cf654dd142168c2ec8fbd11 | [
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/urllib3/connection.py | GiulianaPola/select_repeats | 17a0d053d4f874e42cf654dd142168c2ec8fbd11 | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/f1/38/84/6d0ac9320c92a8e96528d797e6d32ff2796e2918cd8f98fd872cd2eb1d | 96 | 96 | 0.895833 | 9 | 96 | 9.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.427083 | 0 | 96 | 1 | 96 | 96 | 0.46875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
46c41ff4bcbdab85fa0d677e6c668fbf3014e2f5 | 96 | py | Python | tfConstrainedGauss/__init__.py | smrfeld/tf-constrained-gauss | d25ab67de1c55999d25644a0b2ed90443cbb96f2 | [
"MIT"
] | null | null | null | tfConstrainedGauss/__init__.py | smrfeld/tf-constrained-gauss | d25ab67de1c55999d25644a0b2ed90443cbb96f2 | [
"MIT"
] | null | null | null | tfConstrainedGauss/__init__.py | smrfeld/tf-constrained-gauss | d25ab67de1c55999d25644a0b2ed90443cbb96f2 | [
"MIT"
] | null | null | null | from .solve_id import *
from .solve_me import *
from .helpers import *
from .net_common import * | 24 | 25 | 0.760417 | 15 | 96 | 4.666667 | 0.533333 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 96 | 4 | 25 | 24 | 0.864198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
46d083913f0fb7f5006d5022c732077e74ae5d12 | 252 | py | Python | src/jbdl/rbdl/dynamics/__init__.py | yz-mao/jbdl | a5380233b3795c8aaa9acd9e5c07fa44f8a5dadb | [
"MIT"
] | 21 | 2021-08-29T06:59:18.000Z | 2022-01-13T22:53:02.000Z | src/jbdl/rbdl/dynamics/__init__.py | yz-mao/jbdl | a5380233b3795c8aaa9acd9e5c07fa44f8a5dadb | [
"MIT"
] | 2 | 2021-08-31T08:34:09.000Z | 2021-09-06T07:40:51.000Z | src/jbdl/rbdl/dynamics/__init__.py | yz-mao/jbdl | a5380233b3795c8aaa9acd9e5c07fa44f8a5dadb | [
"MIT"
] | 4 | 2021-08-29T06:59:22.000Z | 2021-10-04T05:59:41.000Z | from .composite_rigid_body_algorithm import composite_rigid_body_algorithm, composite_rigid_body_algorithm_core
from .forward_dynamics import forward_dynamics, forward_dynamics_core
from .inverse_dynamics import inverse_dynamics, inverse_dynamics_core
| 63 | 111 | 0.916667 | 33 | 252 | 6.454545 | 0.30303 | 0.197183 | 0.253521 | 0.380282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059524 | 252 | 3 | 112 | 84 | 0.898734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
46f7d465da1363bb704589320f80cd184e481ad8 | 6,574 | py | Python | src/wrf/api.py | khallock/wrf-python | 9c5825c101722e7eddece2ca13cc8e9d9f96a21e | [
"Apache-2.0"
] | 1 | 2018-10-30T18:06:26.000Z | 2018-10-30T18:06:26.000Z | src/wrf/api.py | mostamndi/wrf-python | 3806bcdd01b31fa67da980eafefa0d1245faf6a6 | [
"Apache-2.0"
] | null | null | null | src/wrf/api.py | mostamndi/wrf-python | 3806bcdd01b31fa67da980eafefa0d1245faf6a6 | [
"Apache-2.0"
] | null | null | null | from .config import (xarray_enabled, disable_xarray, enable_xarray,
cartopy_enabled, disable_cartopy, enable_cartopy,
basemap_enabled, disable_basemap, enable_basemap,
pyngl_enabled, enable_pyngl, disable_pyngl,
set_cache_size, get_cach... | 57.666667 | 80 | 0.624582 | 744 | 6,574 | 4.920699 | 0.224462 | 0.049167 | 0.030046 | 0.017482 | 0.853865 | 0.841846 | 0.841846 | 0.812893 | 0.764272 | 0.764272 | 0 | 0.003545 | 0.270612 | 6,574 | 113 | 81 | 58.176991 | 0.759958 | 0 | 0 | 0 | 0 | 0 | 0.281607 | 0.014909 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.144144 | 0 | 0.144144 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
20202fbc87fe1e8ad6e3028a3f2485cb2d0fe03b | 4,493 | py | Python | vvspy/__init__.py | zaanposni/vvs | c69503c9fd12dcb87f8d98e422d38e3bc12a10fe | [
"MIT"
] | 13 | 2019-12-02T12:47:05.000Z | 2020-01-29T09:56:38.000Z | vvspy/__init__.py | zaanposni/vvspy | c69503c9fd12dcb87f8d98e422d38e3bc12a10fe | [
"MIT"
] | 16 | 2019-12-01T19:20:06.000Z | 2019-12-21T11:50:00.000Z | vvspy/__init__.py | FI18-Trainees/vvs-py | c69503c9fd12dcb87f8d98e422d38e3bc12a10fe | [
"MIT"
] | 2 | 2021-01-30T18:58:33.000Z | 2021-08-30T07:07:22.000Z | from datetime import datetime as __datetime
from typing import List as __List
from typing import Union as __Union
from requests.models import Response as __Response
from .obj import Arrival as __Arrival
from .obj import Departure as __Departure
from .obj import Trip as __Trip
from .trip import get_trips
from .departur... | 40.477477 | 117 | 0.643668 | 546 | 4,493 | 5.005495 | 0.135531 | 0.075741 | 0.052689 | 0.046103 | 0.814124 | 0.774607 | 0.76363 | 0.76363 | 0.73326 | 0.716429 | 0 | 0.003674 | 0.273091 | 4,493 | 110 | 118 | 40.845455 | 0.833129 | 0.178277 | 0 | 0.637681 | 0 | 0 | 0.031197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0 | 0.144928 | 0 | 0.391304 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
64587878c66d7f345bf50ea29a05cdba5c500ec8 | 32 | py | Python | frontend/__init__.py | perrycharlton/forms | 4e2d18538a0b08ebdd88a4ddad8fb614f04b1a51 | [
"MIT"
] | null | null | null | frontend/__init__.py | perrycharlton/forms | 4e2d18538a0b08ebdd88a4ddad8fb614f04b1a51 | [
"MIT"
] | null | null | null | frontend/__init__.py | perrycharlton/forms | 4e2d18538a0b08ebdd88a4ddad8fb614f04b1a51 | [
"MIT"
] | null | null | null | from .FrontView import frontend
| 16 | 31 | 0.84375 | 4 | 32 | 6.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 32 | 1 | 32 | 32 | 0.964286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
647e0d5f079eff3f3cf725bd3351ad9a26f1d0db | 31,368 | py | Python | keen/__init__.py | ferpection/KeenClient-Python | d54fb6dbea78769fe781169a58931786a4294d77 | [
"MIT"
] | 85 | 2015-01-06T14:04:34.000Z | 2021-11-22T19:10:50.000Z | keen/__init__.py | ferpection/KeenClient-Python | d54fb6dbea78769fe781169a58931786a4294d77 | [
"MIT"
] | 115 | 2015-01-11T19:11:42.000Z | 2021-05-12T07:36:00.000Z | keen/__init__.py | ferpection/KeenClient-Python | d54fb6dbea78769fe781169a58931786a4294d77 | [
"MIT"
] | 61 | 2015-01-13T23:37:40.000Z | 2021-09-18T21:08:23.000Z | import os
from keen.client import KeenClient
from keen.exceptions import InvalidEnvironmentError
__author__ = 'dkador'
_client = None
project_id = None
write_key = None
read_key = None
master_key = None
base_url = None
def _initialize_client_from_environment():
''' Initialize a KeenClient instance using environm... | 49.711569 | 120 | 0.725357 | 4,405 | 31,368 | 5.024064 | 0.070148 | 0.018978 | 0.028015 | 0.043423 | 0.818671 | 0.808685 | 0.76255 | 0.739596 | 0.736704 | 0.71863 | 0 | 0.001717 | 0.201447 | 31,368 | 630 | 121 | 49.790476 | 0.881792 | 0.645467 | 0 | 0.345912 | 0 | 0 | 0.015736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.194969 | false | 0 | 0.018868 | 0 | 0.396226 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
64a9197b274bcbeeba66e986a70caacd5736ecc8 | 3,179 | py | Python | pycmc/charts/cm_score.py | RomeoDespres/pycmc | 7f9abb0e8c076f0cd85f78ce66d3da4a3f1b52ee | [
"MIT"
] | 23 | 2020-05-19T13:19:19.000Z | 2022-02-23T12:38:19.000Z | pycmc/charts/cm_score.py | RomeoDespres/pycmc | 7f9abb0e8c076f0cd85f78ce66d3da4a3f1b52ee | [
"MIT"
] | 9 | 2020-05-14T17:00:14.000Z | 2021-02-08T05:55:41.000Z | pycmc/charts/cm_score.py | RomeoDespres/pycmc | 7f9abb0e8c076f0cd85f78ce66d3da4a3f1b52ee | [
"MIT"
] | 2 | 2020-12-03T16:33:33.000Z | 2021-04-28T01:03:29.000Z | from .. import utilities
def tracks(cm_track_id, chart_type, start_date, end_date=None):
"""
Gets the Chartmetric Score for tracks given the CM track ID.
https://api.chartmetric.com/api/charts/track/:type_id/:chart_type/cm-score
**Parameters**
- `cm_track_id`: Chartmetric track ID
- `c... | 29.990566 | 79 | 0.609311 | 393 | 3,179 | 4.791349 | 0.165394 | 0.071694 | 0.070101 | 0.041423 | 0.855019 | 0.831652 | 0.831652 | 0.779076 | 0.724907 | 0.724907 | 0 | 0 | 0.268953 | 3,179 | 105 | 80 | 30.27619 | 0.810241 | 0.59956 | 0 | 0.6 | 0 | 0 | 0.165894 | 0.138091 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.04 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b3a6750d9bb3bf7bc90c933b2d731824fca0d07a | 4,485 | py | Python | utils/scripts/OOOlevelGen/src/levels/level_3_1.py | fullscreennl/bullettime | 8967449cdf926aaed6bb7ec217d92e0689fb0c3c | [
"MIT"
] | null | null | null | utils/scripts/OOOlevelGen/src/levels/level_3_1.py | fullscreennl/bullettime | 8967449cdf926aaed6bb7ec217d92e0689fb0c3c | [
"MIT"
] | null | null | null | utils/scripts/OOOlevelGen/src/levels/level_3_1.py | fullscreennl/bullettime | 8967449cdf926aaed6bb7ec217d92e0689fb0c3c | [
"MIT"
] | null | null | null | import LevelBuilder
from sprites import *
def render(name,bg):
lb = LevelBuilder.LevelBuilder(name+".plist",background="NO",scrollmode=2)
lb.addObject(Hero.HeroSprite(x=49, y=58,width=42,height=74))
lb.addObject(Bullet.BulletSprite(x=0, y=0,width=10,height=10,angle='0',restitution=0.5,static='false',frictio... | 121.216216 | 187 | 0.742029 | 722 | 4,485 | 4.601108 | 0.180055 | 0.099338 | 0.063215 | 0.107465 | 0.798314 | 0.754064 | 0.716135 | 0.704696 | 0.704696 | 0.704696 | 0 | 0.110085 | 0.058194 | 4,485 | 37 | 188 | 121.216216 | 0.676373 | 0 | 0 | 0 | 0 | 0 | 0.100981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.057143 | 0 | 0.085714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3748d7ce0ec95da1555e45b9922bbd29f8884242 | 33 | py | Python | ws_server/test-ws.py | kiesenverseist/discord-game | 83ab73f8971e06019998722cbc611a86d9dc0a31 | [
"MIT"
] | null | null | null | ws_server/test-ws.py | kiesenverseist/discord-game | 83ab73f8971e06019998722cbc611a86d9dc0a31 | [
"MIT"
] | null | null | null | ws_server/test-ws.py | kiesenverseist/discord-game | 83ab73f8971e06019998722cbc611a86d9dc0a31 | [
"MIT"
] | null | null | null | import asyncio
import websockets
| 11 | 17 | 0.878788 | 4 | 33 | 7.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 2 | 18 | 16.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
376e13bb85f8b43146158753fb4cee92e1e6df2f | 270 | py | Python | graphgallery/sequence/__init__.py | Jie-Re/GraphGallery | 37a2e807bb21e5ed986ade935ac9619b62bfdd90 | [
"MIT"
] | null | null | null | graphgallery/sequence/__init__.py | Jie-Re/GraphGallery | 37a2e807bb21e5ed986ade935ac9619b62bfdd90 | [
"MIT"
] | null | null | null | graphgallery/sequence/__init__.py | Jie-Re/GraphGallery | 37a2e807bb21e5ed986ade935ac9619b62bfdd90 | [
"MIT"
] | null | null | null | from .base_sequence import Sequence
from .minibatch_sequence import MiniBatchSequence, SAGEMiniBatchSequence, FastGCNBatchSequence
from .fullbatch_sequence import FullBatchSequence
from .sample_sequence import SBVATSampleSequence
from .null_sequence import NullSequence
| 45 | 94 | 0.892593 | 27 | 270 | 8.740741 | 0.518519 | 0.29661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081481 | 270 | 5 | 95 | 54 | 0.951613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3794799b753168c918772f1f6e9ee56dfaa06afc | 2,630 | py | Python | test/pytest/test_roots.py | leannejdong/NumCpp | 2ecc1312f5f4fd8aeba298f917228c120f98d155 | [
"MIT"
] | null | null | null | test/pytest/test_roots.py | leannejdong/NumCpp | 2ecc1312f5f4fd8aeba298f917228c120f98d155 | [
"MIT"
] | null | null | null | test/pytest/test_roots.py | leannejdong/NumCpp | 2ecc1312f5f4fd8aeba298f917228c120f98d155 | [
"MIT"
] | 1 | 2020-08-29T14:56:50.000Z | 2020-08-29T14:56:50.000Z | import numpy as np
import os
import sys
sys.path.append(os.path.abspath(r'../lib'))
import NumCpp # noqa E402
np.random.seed(666)
####################################################################################
def test_bisection():
root = np.random.randint(-50, 50, [1, ]).item()
roots = np.array([root,... | 38.676471 | 90 | 0.544867 | 306 | 2,630 | 4.650327 | 0.147059 | 0.061841 | 0.084329 | 0.133521 | 0.867182 | 0.846803 | 0.846803 | 0.846803 | 0.846803 | 0.807449 | 0 | 0.0309 | 0.150951 | 2,630 | 67 | 91 | 39.253731 | 0.606359 | 0.003422 | 0 | 0.686275 | 0 | 0 | 0.002729 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 1 | 0.098039 | false | 0 | 0.078431 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
37a1f320c314dcb480254cd590ac9a9394f311ed | 17,456 | py | Python | com/beiwei/flask/indicators.py | wtwong316/tsd_analysis_with_es | 04e9667b5fb6c5052e55053fe7838a79aab24fb5 | [
"Apache-2.0"
] | null | null | null | com/beiwei/flask/indicators.py | wtwong316/tsd_analysis_with_es | 04e9667b5fb6c5052e55053fe7838a79aab24fb5 | [
"Apache-2.0"
] | null | null | null | com/beiwei/flask/indicators.py | wtwong316/tsd_analysis_with_es | 04e9667b5fb6c5052e55053fe7838a79aab24fb5 | [
"Apache-2.0"
] | null | null | null | from flask_restplus import Resource, Namespace
from flask import request, Response
import json
from flask_restplus import fields
from com.beiwei.indicators.bollingerband import bollinger_band, iex_bollinger_band, iex_bollinger_band_trend, \
bollinger_band_trend, convert_response_to_df, iex_convert_response_to_d... | 56.859935 | 111 | 0.705374 | 2,372 | 17,456 | 4.892074 | 0.064503 | 0.060496 | 0.050758 | 0.037229 | 0.887022 | 0.875991 | 0.848242 | 0.812048 | 0.792227 | 0.760514 | 0 | 0.041309 | 0.179022 | 17,456 | 306 | 112 | 57.045752 | 0.768404 | 0 | 0 | 0.538168 | 0 | 0 | 0.172807 | 0.037071 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057252 | false | 0 | 0.038168 | 0 | 0.194656 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
37bc3ac3276c07d5799bc3d9c3109f34397eacce | 2,786 | py | Python | src/FFEAT/test/scaling/RankScaleTest.py | PatrikValkovic/MasterThesis | 6e9f3b186541db6c8395ebc96ace7289d01c805b | [
"MIT"
] | null | null | null | src/FFEAT/test/scaling/RankScaleTest.py | PatrikValkovic/MasterThesis | 6e9f3b186541db6c8395ebc96ace7289d01c805b | [
"MIT"
] | null | null | null | src/FFEAT/test/scaling/RankScaleTest.py | PatrikValkovic/MasterThesis | 6e9f3b186541db6c8395ebc96ace7289d01c805b | [
"MIT"
] | null | null | null | ###############################
#
# Created by Patrik Valkovic
# 3/16/2021
#
###############################
import unittest
import math
import torch as t
from ffeat.utils import scaling
class RankScaleTest(unittest.TestCase):
def test_zero_one(self):
s = scaling.RankScale(0.0, 1.0)
f = t.arange(1... | 37.648649 | 83 | 0.584709 | 396 | 2,786 | 4.007576 | 0.169192 | 0.141147 | 0.060491 | 0.10586 | 0.809074 | 0.793951 | 0.730309 | 0.730309 | 0.730309 | 0.730309 | 0 | 0.067626 | 0.251615 | 2,786 | 73 | 84 | 38.164384 | 0.693525 | 0.012922 | 0 | 0.535714 | 0 | 0 | 0.011927 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.232143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
37c8ead57d3a5fda58d565d90f4cc10d69783c50 | 21,475 | py | Python | fuxi/tests/unit/volumeprovider/test_cinder.py | xxwjj/fuxi | 8e720cfed8c9afcd2bab21d7c9e9ebb1b6f80fcd | [
"Apache-2.0"
] | null | null | null | fuxi/tests/unit/volumeprovider/test_cinder.py | xxwjj/fuxi | 8e720cfed8c9afcd2bab21d7c9e9ebb1b6f80fcd | [
"Apache-2.0"
] | null | null | null | fuxi/tests/unit/volumeprovider/test_cinder.py | xxwjj/fuxi | 8e720cfed8c9afcd2bab21d7c9e9ebb1b6f80fcd | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 48.476298 | 79 | 0.615087 | 2,241 | 21,475 | 5.568942 | 0.087907 | 0.047596 | 0.075721 | 0.079087 | 0.83726 | 0.815224 | 0.79976 | 0.755929 | 0.725321 | 0.688942 | 0 | 0.007289 | 0.290896 | 21,475 | 442 | 80 | 48.585973 | 0.812254 | 0.024307 | 0 | 0.682667 | 0 | 0 | 0.093549 | 0.012941 | 0 | 0 | 0 | 0 | 0.077333 | 1 | 0.093333 | false | 0.005333 | 0.032 | 0.010667 | 0.146667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8080601d62f9b3df63d3293ed299032b9d577d51 | 134 | py | Python | web/settings/__init__.py | beniaminonobile/www.albertifra.it | 721b6125bbe56e806cf3abd5270d9c5cd85034be | [
"MIT"
] | null | null | null | web/settings/__init__.py | beniaminonobile/www.albertifra.it | 721b6125bbe56e806cf3abd5270d9c5cd85034be | [
"MIT"
] | null | null | null | web/settings/__init__.py | beniaminonobile/www.albertifra.it | 721b6125bbe56e806cf3abd5270d9c5cd85034be | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .base import *
from .settings import *
try:
from .local import *
except ImportError as e:
pass
| 13.4 | 24 | 0.626866 | 18 | 134 | 4.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.246269 | 134 | 9 | 25 | 14.888889 | 0.821782 | 0.156716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
808a193ff68efa61f7aef67ad45ad7d43013f767 | 15,832 | py | Python | webserver/webserver.py | tarent/osm_service | 462f3d74d3ed16d307b65da6f24dcea5a982aacf | [
"Apache-2.0"
] | null | null | null | webserver/webserver.py | tarent/osm_service | 462f3d74d3ed16d307b65da6f24dcea5a982aacf | [
"Apache-2.0"
] | null | null | null | webserver/webserver.py | tarent/osm_service | 462f3d74d3ed16d307b65da6f24dcea5a982aacf | [
"Apache-2.0"
] | null | null | null | # Fix Cannot import name 'cached_property': https://stackoverflow.com/a/60157748/3593881
import werkzeug
werkzeug.cached_property = werkzeug.utils.cached_property
from flask import Flask
from flask.json import jsonify
from osm_service import OsmService
from flask_restplus import Api, Resource, reqparse
app = Flask(__n... | 54.405498 | 275 | 0.620958 | 1,719 | 15,832 | 5.705643 | 0.087842 | 0.04894 | 0.100836 | 0.071778 | 0.857157 | 0.791089 | 0.791089 | 0.784666 | 0.780281 | 0.780281 | 0 | 0.017645 | 0.273307 | 15,832 | 290 | 276 | 54.593103 | 0.834854 | 0.110915 | 0 | 0.648305 | 0 | 0 | 0.406571 | 0.061357 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063559 | false | 0.004237 | 0.021186 | 0 | 0.275424 | 0.059322 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
80951f6f47bd4fcf33b58ff5fccaa5ff214e904c | 180 | py | Python | batchflow/models/torch/losses/__init__.py | bestetc/batchflow | d2a843640383fbe860654236881483f755227e06 | [
"Apache-2.0"
] | 101 | 2017-06-05T07:33:54.000Z | 2018-10-28T04:55:23.000Z | batchflow/models/torch/losses/__init__.py | bestetc/batchflow | d2a843640383fbe860654236881483f755227e06 | [
"Apache-2.0"
] | 243 | 2018-11-29T02:03:55.000Z | 2022-02-21T08:28:29.000Z | batchflow/models/torch/losses/__init__.py | bestetc/batchflow | d2a843640383fbe860654236881483f755227e06 | [
"Apache-2.0"
] | 35 | 2019-01-29T14:26:14.000Z | 2021-12-30T01:39:02.000Z | """ Custom losses """
#pylint: disable=wildcard-import
from .core import CrossEntropyLoss
from .binary import *
from .multiclass import *
from .lovasz import *
from .ssim import *
| 22.5 | 34 | 0.75 | 22 | 180 | 6.136364 | 0.590909 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144444 | 180 | 7 | 35 | 25.714286 | 0.876623 | 0.255556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
80b490d4dee09de329fa7b7d36bbbcd4e6d4c9e2 | 198 | py | Python | bot/errors.py | Things-N-Stuff/Turt | 3c17d86870823b54be63c4bb11a0053a85e26d67 | [
"MIT"
] | null | null | null | bot/errors.py | Things-N-Stuff/Turt | 3c17d86870823b54be63c4bb11a0053a85e26d67 | [
"MIT"
] | null | null | null | bot/errors.py | Things-N-Stuff/Turt | 3c17d86870823b54be63c4bb11a0053a85e26d67 | [
"MIT"
] | null | null | null |
class NotInServer(Exception): # The whole point of this is to do nothing
def __init__(self):
pass
class NotWhitelisted(Exception):
def __init__(self):
pass
| 22 | 72 | 0.621212 | 23 | 198 | 5 | 0.73913 | 0.121739 | 0.191304 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313131 | 198 | 8 | 73 | 24.75 | 0.845588 | 0.20202 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
80bcd41083221d2cbc0ae1ccd239fbcdbe40b623 | 45 | py | Python | darts/models/forecasting/__init__.py | M-PRERNA/darts | 8ad6a626585b2904425631ca16bc3db5e7e58055 | [
"Apache-2.0"
] | 3,756 | 2020-06-22T13:33:41.000Z | 2022-03-31T23:28:40.000Z | darts/models/forecasting/__init__.py | M-PRERNA/darts | 8ad6a626585b2904425631ca16bc3db5e7e58055 | [
"Apache-2.0"
] | 578 | 2020-06-17T17:04:14.000Z | 2022-03-31T11:42:37.000Z | darts/models/forecasting/__init__.py | M-PRERNA/darts | 8ad6a626585b2904425631ca16bc3db5e7e58055 | [
"Apache-2.0"
] | 384 | 2020-06-22T13:33:54.000Z | 2022-03-31T22:55:35.000Z | """
Forecasting Models
------------------
""" | 11.25 | 18 | 0.377778 | 2 | 45 | 8.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 45 | 4 | 19 | 11.25 | 0.414634 | 0.822222 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
039fe94b9cbd730246bd7047e83c4a4c9a6f62f4 | 36 | py | Python | codeup100/6020.py | chicCode/dspstutorial_python-ver | 89a1b4a76b7f8143aa7ef9d93cf2b2a9db1f1405 | [
"MIT"
] | 1 | 2021-09-02T08:03:42.000Z | 2021-09-02T08:03:42.000Z | codeup100/6020.py | chicCode/dspstutorial_python-ver | 89a1b4a76b7f8143aa7ef9d93cf2b2a9db1f1405 | [
"MIT"
] | null | null | null | codeup100/6020.py | chicCode/dspstutorial_python-ver | 89a1b4a76b7f8143aa7ef9d93cf2b2a9db1f1405 | [
"MIT"
] | null | null | null | a,b = input().split('-')
print(a+b)
| 12 | 24 | 0.527778 | 7 | 36 | 2.714286 | 0.714286 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 36 | 2 | 25 | 18 | 0.59375 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
03b6496cce0e2f11ce8b998a48acadf94db24b77 | 1,756 | py | Python | utils/comp_ray_dir.py | icannistraci/nerfmm | 514ae420f41ba5b6447be853f73e37beca136f85 | [
"MIT"
] | 266 | 2021-04-19T10:27:52.000Z | 2022-03-31T13:20:30.000Z | utils/comp_ray_dir.py | icannistraci/nerfmm | 514ae420f41ba5b6447be853f73e37beca136f85 | [
"MIT"
] | 22 | 2021-04-20T15:15:59.000Z | 2022-01-20T01:19:44.000Z | utils/comp_ray_dir.py | icannistraci/nerfmm | 514ae420f41ba5b6447be853f73e37beca136f85 | [
"MIT"
] | 35 | 2021-04-20T05:54:15.000Z | 2022-03-21T10:13:22.000Z | import torch
def comp_ray_dir_cam(H, W, focal):
"""Compute ray directions in the camera coordinate, which only depends on intrinsics.
This could be further transformed to world coordinate later, using camera poses.
:return: (H, W, 3) torch.float32
"""
y, x = torch.meshgrid(torch.arange(H, dtype=to... | 40.837209 | 91 | 0.605353 | 289 | 1,756 | 3.598616 | 0.235294 | 0.030769 | 0.098077 | 0.069231 | 0.959615 | 0.928846 | 0.876923 | 0.876923 | 0.855769 | 0.811538 | 0 | 0.033872 | 0.260251 | 1,756 | 43 | 92 | 40.837209 | 0.766744 | 0.461276 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
03d13f7fc53e4ba82b7fe9b139ea91d28c15acdf | 30 | py | Python | ksvd/__init__.py | guker/pyksvd | baf79ee4ec74863ac96777224e8c5431c211a178 | [
"BSD-2-Clause"
] | 1 | 2015-11-06T05:30:57.000Z | 2015-11-06T05:30:57.000Z | ksvd/__init__.py | guker/pyksvd | baf79ee4ec74863ac96777224e8c5431c211a178 | [
"BSD-2-Clause"
] | null | null | null | ksvd/__init__.py | guker/pyksvd | baf79ee4ec74863ac96777224e8c5431c211a178 | [
"BSD-2-Clause"
] | null | null | null | from ksvd_wrapper import KSVD
| 15 | 29 | 0.866667 | 5 | 30 | 5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 30 | 1 | 30 | 30 | 0.961538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ff017b0bf895685a43c213dd24966f4532e948f8 | 1,210 | py | Python | MTandHJ/p524.py | MTandHJ/leetcode | f3832ed255d259cb881666ec8bd3de090d34e883 | [
"MIT"
] | null | null | null | MTandHJ/p524.py | MTandHJ/leetcode | f3832ed255d259cb881666ec8bd3de090d34e883 | [
"MIT"
] | null | null | null | MTandHJ/p524.py | MTandHJ/leetcode | f3832ed255d259cb881666ec8bd3de090d34e883 | [
"MIT"
] | null | null | null |
from typing import List
from base import version
class Solution:
@version("naive")
def findLongestWord(self, s: str, dictionary: List[str]) -> str:
def check(item):
first, second = len(s) - 1, len(item) - 1
while second >= 0:
if first < 0:
... | 26.304348 | 68 | 0.467769 | 129 | 1,210 | 4.387597 | 0.27907 | 0.063604 | 0.077739 | 0.081272 | 0.756184 | 0.756184 | 0.756184 | 0.756184 | 0.756184 | 0.756184 | 0 | 0.017467 | 0.432231 | 1,210 | 45 | 69 | 26.888889 | 0.806405 | 0 | 0 | 0.777778 | 0 | 0 | 0.020747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ff2061282071de802e80084a99b2b3414ee9314d | 168 | py | Python | tests/tests/__init__.py | ollien/Timpani | 0d1aac467e0bcbe2d1dadb4e6c025315d6be45cb | [
"MIT"
] | 3 | 2015-10-16T11:26:53.000Z | 2016-08-28T19:28:52.000Z | tests/tests/__init__.py | ollien/timpani | 0d1aac467e0bcbe2d1dadb4e6c025315d6be45cb | [
"MIT"
] | 22 | 2015-09-14T23:00:07.000Z | 2016-07-22T08:39:39.000Z | tests/tests/__init__.py | ollien/timpani | 0d1aac467e0bcbe2d1dadb4e6c025315d6be45cb | [
"MIT"
] | null | null | null | import sys
sys.path.insert(0, "..")
from . import login
from . import addpost
from . import logout
from . import permissions
from . import settings
from . import query
| 18.666667 | 25 | 0.744048 | 24 | 168 | 5.208333 | 0.5 | 0.48 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.166667 | 168 | 8 | 26 | 21 | 0.885714 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.875 | 0 | 0.875 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
205c1b97c3560b77f2ac61f803e6224a7192bc03 | 98 | py | Python | app/controllers/details/__init__.py | Igor-Felipy/Tcc-back | 9bc6030c93ff96302b6d020cf665caff672363fb | [
"Apache-2.0"
] | null | null | null | app/controllers/details/__init__.py | Igor-Felipy/Tcc-back | 9bc6030c93ff96302b6d020cf665caff672363fb | [
"Apache-2.0"
] | 1 | 2021-03-21T18:35:13.000Z | 2021-03-21T18:35:13.000Z | app/controllers/details/__init__.py | Igor-Felipy/Tcc-back | 9bc6030c93ff96302b6d020cf665caff672363fb | [
"Apache-2.0"
] | null | null | null | from flask import Blueprint
post_detail = Blueprint("post_detail",__name__)
from . import routes | 19.6 | 47 | 0.806122 | 13 | 98 | 5.615385 | 0.615385 | 0.356164 | 0.520548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 98 | 5 | 48 | 19.6 | 0.848837 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
208cf6322af2e449f48baf17a1d90950e31fe5c1 | 173 | py | Python | web_interface/persistents/db/get_connection.py | shifvb/GraduationProject | 08166b49c329014bf852faafa14db14a6231370a | [
"MIT"
] | 1 | 2018-04-27T15:25:01.000Z | 2018-04-27T15:25:01.000Z | web_interface/persistents/db/get_connection.py | shifvb/Undergraduate_GraduationProject | 08166b49c329014bf852faafa14db14a6231370a | [
"MIT"
] | null | null | null | web_interface/persistents/db/get_connection.py | shifvb/Undergraduate_GraduationProject | 08166b49c329014bf852faafa14db14a6231370a | [
"MIT"
] | null | null | null | import pymysql
def get_connection():
return pymysql.connect(host='127.0.0.1', port=3306, database='test',
user='root', password='97033925')
| 24.714286 | 72 | 0.601156 | 21 | 173 | 4.904762 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 0.248555 | 173 | 6 | 73 | 28.833333 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0.144509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0.25 | 0.25 | 0.25 | 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 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 6 |
20a83772912fc6230d4382aaab479db8717e3a76 | 1,117 | py | Python | pytools/api/status.py | Jwuthri/PythonTools | 7281fc5e41eb874bc8cb0aae844abe669d00a1a2 | [
"MIT"
] | null | null | null | pytools/api/status.py | Jwuthri/PythonTools | 7281fc5e41eb874bc8cb0aae844abe669d00a1a2 | [
"MIT"
] | null | null | null | pytools/api/status.py | Jwuthri/PythonTools | 7281fc5e41eb874bc8cb0aae844abe669d00a1a2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on July 2017
@author: JulienWuthrich
"""
import flask
def not_found(error, metainfo=None):
body = {
"success": False,
"error": error
}
if metainfo:
body.update(metainfo)
return flask.make_response(flask.jsonify(body), 404)
def bad_request... | 16.671642 | 56 | 0.586392 | 125 | 1,117 | 5.16 | 0.328 | 0.102326 | 0.139535 | 0.213953 | 0.75814 | 0.75814 | 0.75814 | 0.75814 | 0.75814 | 0.682171 | 0 | 0.028607 | 0.280215 | 1,117 | 66 | 57 | 16.924242 | 0.773632 | 0.060877 | 0 | 0.536585 | 0 | 0 | 0.073007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0.02439 | 0 | 0.317073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
45ae030258f3c28ab23968b9d817e72fa06dd2bc | 90 | py | Python | LinkLayer/__init__.py | BorisChenCZY/ImplementTheNetwork | cfa6c025c02224641e6dad87fe8f3753fd8ca6a0 | [
"MIT"
] | null | null | null | LinkLayer/__init__.py | BorisChenCZY/ImplementTheNetwork | cfa6c025c02224641e6dad87fe8f3753fd8ca6a0 | [
"MIT"
] | null | null | null | LinkLayer/__init__.py | BorisChenCZY/ImplementTheNetwork | cfa6c025c02224641e6dad87fe8f3753fd8ca6a0 | [
"MIT"
] | null | null | null | import LinkLayer.util
import LinkLayer.error
from LinkLayer.ether import LinkLayer
| 15 | 38 | 0.8 | 11 | 90 | 6.545455 | 0.545455 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 90 | 5 | 39 | 18 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b314624fab150fd958fb746db3e951c96e9a9ed1 | 1,985 | py | Python | tests/integrationtests/common/TestApiClient.py | muhammetbolat/pythondataintegrator | 5b274db8d39ca1340d535a500f04f6e734f1d54d | [
"MIT"
] | 14 | 2020-12-19T15:06:13.000Z | 2022-01-12T19:52:17.000Z | tests/integrationtests/common/TestApiClient.py | muhammetbolat/pythondataintegrator | 5b274db8d39ca1340d535a500f04f6e734f1d54d | [
"MIT"
] | 43 | 2021-01-06T22:05:22.000Z | 2022-03-10T10:30:30.000Z | tests/integrationtests/common/TestApiClient.py | muhammetbolat/pythondataintegrator | 5b274db8d39ca1340d535a500f04f6e734f1d54d | [
"MIT"
] | 4 | 2020-12-18T23:10:09.000Z | 2021-04-02T13:03:12.000Z | import json
class TestApiClient:
def __init__(self, client):
self.client = client
def print_error_detail(self, data):
print(data['message'] if 'message' in data else '')
print(data['traceback'] if 'traceback' in data else '')
print(data['message'] if 'message' in data else '')... | 31.015625 | 67 | 0.611587 | 230 | 1,985 | 5.052174 | 0.169565 | 0.165232 | 0.068847 | 0.089501 | 0.82358 | 0.807229 | 0.807229 | 0.807229 | 0.710843 | 0.710843 | 0 | 0.008565 | 0.294207 | 1,985 | 63 | 68 | 31.507937 | 0.820842 | 0.008564 | 0 | 0.666667 | 0 | 0 | 0.055951 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.111111 | false | 0 | 0.018519 | 0 | 0.222222 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
2fcae5320fdb8efe6e4fb919ccd71fe5933760fd | 143 | py | Python | rawnode.py | creativcoder/templar | 8d6e9ed7a1ea8a22a69db07c731c132416a5f69b | [
"MIT"
] | null | null | null | rawnode.py | creativcoder/templar | 8d6e9ed7a1ea8a22a69db07c731c132416a5f69b | [
"MIT"
] | 2 | 2017-03-03T17:42:56.000Z | 2017-03-03T17:43:58.000Z | rawnode.py | creativcoder/templar | 8d6e9ed7a1ea8a22a69db07c731c132416a5f69b | [
"MIT"
] | null | null | null |
class RawNode(object):
def __init__(self, chunk):
self.chunk = chunk
def render(self, ctx={}):
return str(self.chunk) | 20.428571 | 30 | 0.601399 | 18 | 143 | 4.555556 | 0.611111 | 0.329268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265734 | 143 | 7 | 31 | 20.428571 | 0.780952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
2feef6297f036c25f3c54082ef1e86dfa93351d5 | 41 | py | Python | api/app/main.py | rdkap42/caedus-covid | f64a833bdf386708fcb9394f94026c48f8d474ee | [
"MIT"
] | 10 | 2020-03-17T21:21:50.000Z | 2020-04-30T02:30:47.000Z | api/app/main.py | rdkap42/caedus-covid | f64a833bdf386708fcb9394f94026c48f8d474ee | [
"MIT"
] | 5 | 2020-03-17T04:39:03.000Z | 2021-04-30T21:11:14.000Z | api/app/main.py | rdkap42/caedus-covid | f64a833bdf386708fcb9394f94026c48f8d474ee | [
"MIT"
] | null | null | null | from .app import app
from . import views
| 13.666667 | 20 | 0.756098 | 7 | 41 | 4.428571 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 41 | 2 | 21 | 20.5 | 0.939394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6413476721a045c9e3283edaea553a0f9610f3cb | 7,502 | py | Python | models/prednet/data_utils.py | rmoin/MLOps_VideoAnomalyDetection | e67e58b9f1042d9efde449585b7b34ef846cee34 | [
"MIT"
] | null | null | null | models/prednet/data_utils.py | rmoin/MLOps_VideoAnomalyDetection | e67e58b9f1042d9efde449585b7b34ef846cee34 | [
"MIT"
] | null | null | null | models/prednet/data_utils.py | rmoin/MLOps_VideoAnomalyDetection | e67e58b9f1042d9efde449585b7b34ef846cee34 | [
"MIT"
] | null | null | null | import numpy as np
import keras
import hickle as hkl
from keras import backend as K
class SequenceGenerator(keras.utils.Sequence):
'Generates data for Keras'
def __init__(self, X_data_file, source_file, nt, y_data_file=None,
batch_size=8, shuffle=False, seed=None,
output_mode... | 39.484211 | 93 | 0.60024 | 1,006 | 7,502 | 4.274354 | 0.16501 | 0.087907 | 0.096279 | 0.024419 | 0.745116 | 0.735814 | 0.727907 | 0.727907 | 0.727907 | 0.727907 | 0 | 0.009021 | 0.305519 | 7,502 | 189 | 94 | 39.693122 | 0.816315 | 0.204079 | 0 | 0.685039 | 1 | 0 | 0.07584 | 0 | 0 | 0 | 0 | 0 | 0.023622 | 1 | 0.07874 | false | 0 | 0.031496 | 0 | 0.188976 | 0.007874 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
642f5c176ef60a90afd4ff84ddd16543c6fa41d1 | 44 | py | Python | pytools/modules/desktoppet/__init__.py | maopucheng/pytools | 7d42b0fb1ef539559d931db7b70ef6725d32617a | [
"MIT"
] | 757 | 2018-08-25T07:59:26.000Z | 2021-12-20T12:44:11.000Z | pytools/modules/desktoppet/__init__.py | junyang-zhou/pytools | eca4dbace589ba74a95628d1c285e75e20ea7d1e | [
"MIT"
] | 7 | 2020-02-19T00:42:44.000Z | 2021-09-04T07:42:51.000Z | pytools/modules/desktoppet/__init__.py | junyang-zhou/pytools | eca4dbace589ba74a95628d1c285e75e20ea7d1e | [
"MIT"
] | 485 | 2018-08-25T13:53:51.000Z | 2021-12-21T05:11:08.000Z | '''初始化'''
from .desktoppet import DesktopPet | 22 | 34 | 0.75 | 5 | 44 | 6.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 44 | 2 | 34 | 22 | 0.825 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ff42391b7f1864c071160dd6c46927b48cf9fd62 | 120 | py | Python | src/shortify/common.py | enniomara/shortify | 0a04c9dd4d70cf1e15dc812d3c917d1ca54760ec | [
"MIT"
] | 1 | 2021-02-17T13:02:49.000Z | 2021-02-17T13:02:49.000Z | src/shortify/common.py | chrillebile/shortify | 5002331e537c30df6a0f69e59316758b6ec1c8df | [
"MIT"
] | 10 | 2020-12-31T11:37:52.000Z | 2022-02-07T20:51:31.000Z | src/shortify/common.py | chrillebile/shortify | 5002331e537c30df6a0f69e59316758b6ec1c8df | [
"MIT"
] | 1 | 2020-09-02T12:30:16.000Z | 2020-09-02T12:30:16.000Z | import boto3
TABLE_NAME = "Shortify"
def initialize_table():
return boto3.resource("dynamodb").Table(TABLE_NAME)
| 15 | 55 | 0.75 | 15 | 120 | 5.8 | 0.666667 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.133333 | 120 | 7 | 56 | 17.142857 | 0.817308 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
ff56f5cd8ae156f5f15b37948c9c48ffe70f4651 | 42 | py | Python | passwd_checker/__init__.py | universami/passwd-checker | 31e83a4d7d63eedd09e456be4b56526be0ead9bc | [
"MIT"
] | 1 | 2022-02-08T21:15:08.000Z | 2022-02-08T21:15:08.000Z | passwd_checker/__init__.py | e2f5db0/passwd-checker | 31e83a4d7d63eedd09e456be4b56526be0ead9bc | [
"MIT"
] | null | null | null | passwd_checker/__init__.py | e2f5db0/passwd-checker | 31e83a4d7d63eedd09e456be4b56526be0ead9bc | [
"MIT"
] | null | null | null | from passwd_checker.checker import seclist | 42 | 42 | 0.904762 | 6 | 42 | 6.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 42 | 1 | 42 | 42 | 0.948718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 6 |
ff8b972c1b4f03e8b618b5a69006293f101674c4 | 37 | py | Python | arachne/__init__.py | sliderSun/arachne | ed8d22f10e69b7b29c9b68d4f9e2eabc00e77472 | [
"BSD-3-Clause"
] | 137 | 2015-11-17T18:37:54.000Z | 2021-05-18T08:29:39.000Z | arachne/__init__.py | sliderSun/arachne | ed8d22f10e69b7b29c9b68d4f9e2eabc00e77472 | [
"BSD-3-Clause"
] | 20 | 2015-11-17T10:40:43.000Z | 2020-03-03T06:43:13.000Z | arachne/__init__.py | sliderSun/arachne | ed8d22f10e69b7b29c9b68d4f9e2eabc00e77472 | [
"BSD-3-Clause"
] | 40 | 2015-11-20T06:49:02.000Z | 2020-08-15T09:15:59.000Z | from arachne.flaskapp import Arachne
| 18.5 | 36 | 0.864865 | 5 | 37 | 6.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 37 | 1 | 37 | 37 | 0.969697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ffa2f1804a8d003e2fedc7408f1489ef8184323c | 361 | py | Python | python_package/src/sinatra_pro/__init__.py | wtang8/SINATRA_python | a88925ca9d7206780ed36c845c7e03d37960b53d | [
"MIT"
] | null | null | null | python_package/src/sinatra_pro/__init__.py | wtang8/SINATRA_python | a88925ca9d7206780ed36c845c7e03d37960b53d | [
"MIT"
] | null | null | null | python_package/src/sinatra_pro/__init__.py | wtang8/SINATRA_python | a88925ca9d7206780ed36c845c7e03d37960b53d | [
"MIT"
] | null | null | null | #!/bin/python3
import os, sys
import numpy as np
from scipy.stats import norm, rankdata
from scipy.linalg import pinv
from sinatra_pro.mesh import *
from sinatra_pro.RATE import *
from sinatra_pro.directions import *
from sinatra_pro.traj_reader import *
from sinatra_pro.euler import *
from sinatra_pro.gp import *
f... | 21.235294 | 40 | 0.803324 | 56 | 361 | 5.035714 | 0.446429 | 0.27305 | 0.347518 | 0.425532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003205 | 0.135734 | 361 | 16 | 41 | 22.5625 | 0.900641 | 0.036011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ffa7227f5e8b255c50c7e31583e413cea79cfb1e | 125 | py | Python | problems/multiply.py | stereoabuse/codewars | d6437afaef38c3601903891b8b9cb0f84c108c54 | [
"MIT"
] | null | null | null | problems/multiply.py | stereoabuse/codewars | d6437afaef38c3601903891b8b9cb0f84c108c54 | [
"MIT"
] | null | null | null | problems/multiply.py | stereoabuse/codewars | d6437afaef38c3601903891b8b9cb0f84c108c54 | [
"MIT"
] | null | null | null | ## Multiply
## 8 kyu
## https://www.codewars.com//kata/50654ddff44f800200000004
def multiply(a, b):
return a * b | 17.857143 | 60 | 0.64 | 16 | 125 | 5 | 0.8125 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20202 | 0.208 | 125 | 7 | 61 | 17.857143 | 0.606061 | 0.576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 6 |
ffad6290920c3d36515797694c791da17aa81470 | 17,119 | py | Python | ball.py | Samyak005/Brick-Breaker-Game | f7d07f87c42d2504f17e8a8d07cdbdd0831ed04c | [
"MIT"
] | null | null | null | ball.py | Samyak005/Brick-Breaker-Game | f7d07f87c42d2504f17e8a8d07cdbdd0831ed04c | [
"MIT"
] | null | null | null | ball.py | Samyak005/Brick-Breaker-Game | f7d07f87c42d2504f17e8a8d07cdbdd0831ed04c | [
"MIT"
] | null | null | null | import sys
from colorama import init, Fore, Back, Style
import config
import logging
from random import randint
import os
logging.basicConfig(filename='logname',
filemode='a',
format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
datefmt='%H:%M:%S',
level=logging.DEBUG)
def yay():
p... | 31.760668 | 190 | 0.581284 | 2,751 | 17,119 | 3.510723 | 0.071247 | 0.101574 | 0.082108 | 0.088424 | 0.829261 | 0.802754 | 0.784945 | 0.771174 | 0.765065 | 0.763512 | 0 | 0.032772 | 0.208599 | 17,119 | 539 | 191 | 31.760668 | 0.6801 | 0.099305 | 0 | 0.615566 | 0 | 0.004717 | 0.051062 | 0.004885 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025943 | false | 0 | 0.016509 | 0.002358 | 0.110849 | 0.023585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ffb097c63eacea9f2bc5b9a81765872329a21a1e | 171 | py | Python | exchanges/__init__.py | nitrocode/CoinTaxes | 356ac07296b8fb55d154855fb84b9176fdc2bea9 | [
"MIT"
] | 9 | 2018-04-16T22:26:57.000Z | 2022-02-11T22:10:20.000Z | exchanges/__init__.py | nitrocode/CoinTaxes | 356ac07296b8fb55d154855fb84b9176fdc2bea9 | [
"MIT"
] | 9 | 2018-04-16T22:33:47.000Z | 2021-07-06T06:04:30.000Z | exchanges/__init__.py | nitrocode/CoinTaxes | 356ac07296b8fb55d154855fb84b9176fdc2bea9 | [
"MIT"
] | 3 | 2018-10-10T20:49:55.000Z | 2021-03-27T21:14:11.000Z | from .exchange import Exchange
from .coinbase_reader import Coinbase
from .gdax_reader import Gdax
# from bittrex_reader import Bittrex
# from gemini_reader import Gemini
| 28.5 | 37 | 0.842105 | 24 | 171 | 5.833333 | 0.333333 | 0.342857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128655 | 171 | 5 | 38 | 34.2 | 0.939597 | 0.391813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
80feadc913f60458e3ebbd6ec4249f08236e4f42 | 217 | py | Python | core/data/initdata.py | pimmpo/translate-telegram_bot | 3062a6b84216f63fd64df1ff1d25ed2ef9fabdd0 | [
"MIT"
] | 1 | 2020-02-07T11:57:57.000Z | 2020-02-07T11:57:57.000Z | core/data/initdata.py | pimmpo/translate-telegram_bot | 3062a6b84216f63fd64df1ff1d25ed2ef9fabdd0 | [
"MIT"
] | null | null | null | core/data/initdata.py | pimmpo/translate-telegram_bot | 3062a6b84216f63fd64df1ff1d25ed2ef9fabdd0 | [
"MIT"
] | null | null | null | #Файл созданный для записи необходимых токенов для сервиса
#оформлен в виде get функций для того, чтобы данные нельзя было изменить
def bot_token():
return "your_token"
def yandex_token():
return "your_token" | 31 | 72 | 0.774194 | 32 | 217 | 5.125 | 0.75 | 0.134146 | 0.182927 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165899 | 217 | 7 | 73 | 31 | 0.906077 | 0.589862 | 0 | 0.5 | 0 | 0 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 6 |
44199f44f3ea35aa58b7162f89bbc8da926e8a17 | 25 | py | Python | gen3/python/lsst/obs/necam/translators/__init__.py | mjosmith/obs_condorCCD | 2e30612d852c9ef74c535d52d9443668f843f27d | [
"Info-ZIP"
] | null | null | null | gen3/python/lsst/obs/necam/translators/__init__.py | mjosmith/obs_condorCCD | 2e30612d852c9ef74c535d52d9443668f843f27d | [
"Info-ZIP"
] | null | null | null | gen3/python/lsst/obs/necam/translators/__init__.py | mjosmith/obs_condorCCD | 2e30612d852c9ef74c535d52d9443668f843f27d | [
"Info-ZIP"
] | null | null | null | from .condorCCD import *
| 12.5 | 24 | 0.76 | 3 | 25 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4426ce71aeaa7d660954aa094a2d81efc6720bca | 209 | py | Python | onegan/external/__init__.py | leVirve/OneGAN | e0d5f387c957fbf599919078d8c6277740015336 | [
"MIT"
] | 6 | 2018-01-26T08:58:10.000Z | 2018-05-03T20:44:06.000Z | onegan/external/__init__.py | leVirve/OneGAN | e0d5f387c957fbf599919078d8c6277740015336 | [
"MIT"
] | 3 | 2018-08-13T03:02:13.000Z | 2020-10-20T04:15:13.000Z | onegan/external/__init__.py | leVirve/OneGAN | e0d5f387c957fbf599919078d8c6277740015336 | [
"MIT"
] | 3 | 2019-11-21T07:44:29.000Z | 2020-09-08T14:15:06.000Z | # Copyright (c) 2017 Salas Lin (leVirve)
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
import onegan.external.pix2pix # noqa
import onegan.external.dcgan # noqa
| 26.125 | 50 | 0.755981 | 29 | 209 | 5.448276 | 0.827586 | 0.151899 | 0.253165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027933 | 0.143541 | 209 | 7 | 51 | 29.857143 | 0.854749 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4452bbad08c7c9f73a2bee9a18aa2a3bcf1d57d9 | 1,694 | py | Python | semantic-segmentation/lib/Activation.py | bcrafton/icsrl-deep-learning | e3616982d1dda5f978d61d6591c91cb0da76ab02 | [
"MIT"
] | 1 | 2019-11-21T21:15:59.000Z | 2019-11-21T21:15:59.000Z | semantic-segmentation/lib/Activation.py | bcrafton/icsrl-deep-learning | e3616982d1dda5f978d61d6591c91cb0da76ab02 | [
"MIT"
] | null | null | null | semantic-segmentation/lib/Activation.py | bcrafton/icsrl-deep-learning | e3616982d1dda5f978d61d6591c91cb0da76ab02 | [
"MIT"
] | null | null | null |
import numpy as np
import tensorflow as tf
from lib.Layer import Layer
###################################################################
class Relu(Layer):
def __init__(self):
pass
#########
def get_weights(self):
return []
def num_params(self):
return 0
def... | 19.697674 | 67 | 0.418536 | 201 | 1,694 | 3.447761 | 0.243781 | 0.05772 | 0.08658 | 0.15873 | 0.715729 | 0.689755 | 0.689755 | 0.689755 | 0.689755 | 0.689755 | 0 | 0.008636 | 0.316411 | 1,694 | 85 | 68 | 19.929412 | 0.58981 | 0 | 0 | 0.756757 | 0 | 0 | 0.029173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.378378 | false | 0.054054 | 0.081081 | 0.216216 | 0.837838 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 6 |
44642c933bcbaf4d5269e9ebaf01b52c58776a97 | 208 | py | Python | test/smoke_test.py | DecodEPFL/eiv-grid-id | 093a0f6f3537ee2d4003b6af6a10caaca986fa7a | [
"CC-BY-4.0"
] | 1 | 2021-07-13T07:26:23.000Z | 2021-07-13T07:26:23.000Z | test/smoke_test.py | DecodEPFL/eiv-grid-id | 093a0f6f3537ee2d4003b6af6a10caaca986fa7a | [
"CC-BY-4.0"
] | null | null | null | test/smoke_test.py | DecodEPFL/eiv-grid-id | 093a0f6f3537ee2d4003b6af6a10caaca986fa7a | [
"CC-BY-4.0"
] | 2 | 2022-02-22T17:14:38.000Z | 2022-02-25T10:29:35.000Z | def test_can_import_pandapower_and_pandas():
import pandas
import pandapower.timeseries
print(f'Pandapower version: {pandapower.__version__}')
print(f'Pandas version: {pandas.__version__}')
| 26 | 58 | 0.759615 | 24 | 208 | 6.041667 | 0.458333 | 0.22069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 208 | 7 | 59 | 29.714286 | 0.814607 | 0 | 0 | 0 | 0 | 0 | 0.38835 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.6 | 0 | 0.8 | 0.4 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4498fdb0c32bee7eea6616019e8933aa7632c3e9 | 455 | py | Python | Python 101/Chapter 2/String_Formatting_3.py | enemy123456789/Python-101-Notes | aafd38826f18b3af11d5ce4c16d29bbf3de915cd | [
"Apache-2.0"
] | null | null | null | Python 101/Chapter 2/String_Formatting_3.py | enemy123456789/Python-101-Notes | aafd38826f18b3af11d5ce4c16d29bbf3de915cd | [
"Apache-2.0"
] | null | null | null | Python 101/Chapter 2/String_Formatting_3.py | enemy123456789/Python-101-Notes | aafd38826f18b3af11d5ce4c16d29bbf3de915cd | [
"Apache-2.0"
] | null | null | null | int_float_err = "%i + %f" % ("1", "2.00")
#Output
"""
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
int_float_err = "%i + %f" % ("1", "2.00")
TypeError: %i format: a number is required, not str
"""
int_float_err = "%i + %f" % (1, "2.00")
#Output
"""
Traceback (most recent call la... | 20.681818 | 51 | 0.575824 | 74 | 455 | 3.432432 | 0.405405 | 0.125984 | 0.173228 | 0.188976 | 0.787402 | 0.787402 | 0.787402 | 0.787402 | 0.787402 | 0.787402 | 0 | 0.055249 | 0.204396 | 455 | 21 | 52 | 21.666667 | 0.646409 | 0.026374 | 0 | 0 | 0 | 0 | 0.252747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
449984b8b444dfb235dffba17b53aed5ff6b6282 | 26 | py | Python | __init__.py | vitalwarley/Hypothesis | 6f891fb3e8fda41017a96298c4f68ce7d176e228 | [
"Apache-2.0"
] | null | null | null | __init__.py | vitalwarley/Hypothesis | 6f891fb3e8fda41017a96298c4f68ce7d176e228 | [
"Apache-2.0"
] | null | null | null | __init__.py | vitalwarley/Hypothesis | 6f891fb3e8fda41017a96298c4f68ce7d176e228 | [
"Apache-2.0"
] | null | null | null | from .hypothesis import *
| 13 | 25 | 0.769231 | 3 | 26 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 26 | 1 | 26 | 26 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
9260876f2bc37b3b3bb06faa32efc9c91bfddb75 | 122 | py | Python | pyhton/modules/internal-module/src/main/python/main.py | NovaOrdis/playground | 6fe076b5d246ac5b492ab8d5de04eef43d797b62 | [
"Apache-2.0"
] | 5 | 2016-11-16T02:18:45.000Z | 2018-03-14T19:57:11.000Z | pyhton/modules/internal-module/src/main/python/main.py | NovaOrdis/playground | 6fe076b5d246ac5b492ab8d5de04eef43d797b62 | [
"Apache-2.0"
] | null | null | null | pyhton/modules/internal-module/src/main/python/main.py | NovaOrdis/playground | 6fe076b5d246ac5b492ab8d5de04eef43d797b62 | [
"Apache-2.0"
] | 10 | 2016-06-06T18:28:13.000Z | 2018-07-01T18:20:06.000Z | import os
import sys
sys.path.append(os.path.dirname(__file__) + "/my_module")
import my_module
my_module.some_function() | 20.333333 | 57 | 0.795082 | 20 | 122 | 4.45 | 0.55 | 0.269663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081967 | 122 | 6 | 58 | 20.333333 | 0.794643 | 0 | 0 | 0 | 0 | 0 | 0.081301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
9269652f30694e9e93a48ce62d5d2a460e54ee16 | 123 | py | Python | kernel/object.py | FLBP/Zat | 98ccc9125bbcdccdb91858249ffa7c0a412e3a8a | [
"Apache-2.0"
] | 1 | 2019-07-21T15:16:01.000Z | 2019-07-21T15:16:01.000Z | kernel/object.py | FLBP/Zat | 98ccc9125bbcdccdb91858249ffa7c0a412e3a8a | [
"Apache-2.0"
] | null | null | null | kernel/object.py | FLBP/Zat | 98ccc9125bbcdccdb91858249ffa7c0a412e3a8a | [
"Apache-2.0"
] | null | null | null | # coding : utf8
# version : 0.0
class Object:
"""
Main class
"""
def size():
return self.size
| 12.3 | 24 | 0.487805 | 14 | 123 | 4.285714 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 0.382114 | 123 | 9 | 25 | 13.666667 | 0.75 | 0.317073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
9283efcb69263309f302972dcf6ef2423bf2d611 | 84 | py | Python | redata/backends/redshift.py | mociarain/redata | fc4e9826ab47920677383c97e51b6a8bdbd58a4b | [
"MIT"
] | null | null | null | redata/backends/redshift.py | mociarain/redata | fc4e9826ab47920677383c97e51b6a8bdbd58a4b | [
"MIT"
] | null | null | null | redata/backends/redshift.py | mociarain/redata | fc4e9826ab47920677383c97e51b6a8bdbd58a4b | [
"MIT"
] | null | null | null | from redata.backends.postgrsql import Postgres
class Redshift(Postgres):
pass
| 14 | 46 | 0.785714 | 10 | 84 | 6.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154762 | 84 | 5 | 47 | 16.8 | 0.929577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
928dc8595f2eb54bf0af8e5bf4603e2cc4754d0c | 5,721 | py | Python | pympc/optimization/programs.py | sidsen/VRL_CodeReview | 6ee6114215ee49570c47ae41789f5d9bd11ce820 | [
"MIT"
] | 10 | 2019-10-22T16:58:43.000Z | 2021-12-05T06:12:53.000Z | pympc/optimization/programs.py | sidsen/VRL_CodeReview | 6ee6114215ee49570c47ae41789f5d9bd11ce820 | [
"MIT"
] | 6 | 2020-11-13T19:09:43.000Z | 2022-02-10T02:23:23.000Z | pympc/optimization/programs.py | sidsen/VRL_CodeReview | 6ee6114215ee49570c47ae41789f5d9bd11ce820 | [
"MIT"
] | 5 | 2019-02-23T04:10:06.000Z | 2020-09-06T22:59:26.000Z | # external imports
import numpy as np
# internal inputs
from pympc.optimization.solvers.pnnls import linear_program as lp_pnnls, quadratic_program as qp_pnnls
#from pympc.optimization.solvers.gurobi import linear_program as lp_gurobi, quadratic_program as qp_gurobi, mixed_integer_quadratic_program as miqp_gurobi
#from... | 37.887417 | 154 | 0.632232 | 781 | 5,721 | 4.577465 | 0.145967 | 0.039161 | 0.033566 | 0.043636 | 0.837483 | 0.813427 | 0.780979 | 0.767273 | 0.746014 | 0.701818 | 0 | 0.000968 | 0.277399 | 5,721 | 150 | 155 | 38.14 | 0.863812 | 0.753714 | 0 | 0.47619 | 0 | 0 | 0.093212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.095238 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
92a8977f4b954e4e7a2e6ab09b3ac457496ccd0d | 147 | py | Python | enphaseAI/utils/constants.py | jimleroux/interview_problems | b00e4ecf7f3e9460c78fd6398a9579a356436a29 | [
"MIT"
] | null | null | null | enphaseAI/utils/constants.py | jimleroux/interview_problems | b00e4ecf7f3e9460c78fd6398a9579a356436a29 | [
"MIT"
] | null | null | null | enphaseAI/utils/constants.py | jimleroux/interview_problems | b00e4ecf7f3e9460c78fd6398a9579a356436a29 | [
"MIT"
] | null | null | null | from pathlib import Path
DATA_DIR = Path(__file__).parent.parent.parent / "data"
FIGURE_DIR = Path(__file__).parent.parent.parent / "figures"
| 29.4 | 61 | 0.748299 | 20 | 147 | 5 | 0.5 | 0.48 | 0.22 | 0.34 | 0.58 | 0.58 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129252 | 147 | 4 | 62 | 36.75 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
9206b385901680bc22ebd927ccdb64d8f9a2af37 | 202 | py | Python | testSimpleXMLClient.py | suzanada/swe545_Assignment | 97e08b02d7e6415c9ed28657b5e28802e88ffeae | [
"MIT"
] | null | null | null | testSimpleXMLClient.py | suzanada/swe545_Assignment | 97e08b02d7e6415c9ed28657b5e28802e88ffeae | [
"MIT"
] | null | null | null | testSimpleXMLClient.py | suzanada/swe545_Assignment | 97e08b02d7e6415c9ed28657b5e28802e88ffeae | [
"MIT"
] | null | null | null | import xmlrpclib
client = xmlrpclib.ServerProxy('http://localhost:8000/')
print client.system.listMethods()
print client.add(3, 1 )
print client.subtract(5,2)
print client.system.methodHelp('subtract') | 28.857143 | 56 | 0.782178 | 27 | 202 | 5.851852 | 0.62963 | 0.278481 | 0.21519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042781 | 0.074257 | 202 | 7 | 57 | 28.857143 | 0.802139 | 0 | 0 | 0 | 0 | 0 | 0.147783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
a60188ebd9ce9151f0c0ae56757f6f6f2691cebc | 35 | py | Python | pythonDemo.py | shuiys/Demo | 3afb167066a9e5013c5453902440280be73d093a | [
"MIT"
] | null | null | null | pythonDemo.py | shuiys/Demo | 3afb167066a9e5013c5453902440280be73d093a | [
"MIT"
] | null | null | null | pythonDemo.py | shuiys/Demo | 3afb167066a9e5013c5453902440280be73d093a | [
"MIT"
] | null | null | null | import os
print(os.path.getcwd())
| 8.75 | 23 | 0.714286 | 6 | 35 | 4.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 35 | 3 | 24 | 11.666667 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
a650dc6e412c3ddf9301c720ae6e6077764d99bd | 49 | py | Python | byol_pytorch/__init__.py | hagiss/byol-pytorch | 7b0537547baccadb177e28c9178fbfc64d8a02dc | [
"MIT"
] | null | null | null | byol_pytorch/__init__.py | hagiss/byol-pytorch | 7b0537547baccadb177e28c9178fbfc64d8a02dc | [
"MIT"
] | null | null | null | byol_pytorch/__init__.py | hagiss/byol-pytorch | 7b0537547baccadb177e28c9178fbfc64d8a02dc | [
"MIT"
] | null | null | null | from byol_pytorch.byol_pytorch import NetWrapper
| 24.5 | 48 | 0.897959 | 7 | 49 | 6 | 0.714286 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 49 | 1 | 49 | 49 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
a6794da7c1a90e82694b4b52197507283004c24f | 123 | py | Python | lang/Python/sum-digits-of-an-integer-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2021-05-05T13:42:20.000Z | 2021-05-05T13:42:20.000Z | lang/Python/sum-digits-of-an-integer-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/sum-digits-of-an-integer-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | from numpy import base_repr
def sumDigits(num, base=10):
return sum(int(x, base) for x in list(base_repr(num, base)))
| 24.6 | 64 | 0.715447 | 23 | 123 | 3.73913 | 0.695652 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019417 | 0.162602 | 123 | 4 | 65 | 30.75 | 0.815534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
a68e01eed0e69be222a154688fde3c09c8024c48 | 23 | py | Python | nn/layers/__init__.py | mbed92/rl-physnet | 62b6e8a84a6704a50855434933a147f507f94263 | [
"MIT"
] | 1 | 2021-07-02T13:33:49.000Z | 2021-07-02T13:33:49.000Z | nn/layers/__init__.py | mbed92/dao-perception | 62b6e8a84a6704a50855434933a147f507f94263 | [
"MIT"
] | 3 | 2021-09-01T16:16:42.000Z | 2021-09-10T11:18:59.000Z | nn/layers/__init__.py | mbed92/dao-perception | 62b6e8a84a6704a50855434933a147f507f94263 | [
"MIT"
] | 1 | 2021-08-30T08:26:21.000Z | 2021-08-30T08:26:21.000Z | from . import recurrent | 23 | 23 | 0.826087 | 3 | 23 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a6e54d47c87a45bbf8274f00224ce4becd4168c0 | 104 | py | Python | getnet/services/subscriptions/customer.py | rafagonc/getnet-py | d2a5278b497408b5245d5d0fecd2e424f4ddb0d5 | [
"MIT"
] | 2 | 2021-04-09T20:17:41.000Z | 2021-04-09T20:18:06.000Z | getnet/services/subscriptions/customer.py | rafagonc/getnet-py | d2a5278b497408b5245d5d0fecd2e424f4ddb0d5 | [
"MIT"
] | 5 | 2019-11-24T16:24:11.000Z | 2021-02-22T16:10:05.000Z | getnet/services/subscriptions/customer.py | rafagonc/getnet-py | d2a5278b497408b5245d5d0fecd2e424f4ddb0d5 | [
"MIT"
] | 3 | 2020-07-25T23:00:59.000Z | 2022-02-15T02:37:27.000Z | from getnet.services.customers import Customer as BaseCustomer
class Customer(BaseCustomer):
pass
| 17.333333 | 62 | 0.807692 | 12 | 104 | 7 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 104 | 5 | 63 | 20.8 | 0.94382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
a6ff53c84fbe8761a9f95888798c96be5d520cef | 864 | py | Python | tests/test_util.py | soundstripe/jamberry | e5f7400ca274ceb357ef7098a32068f1b21db324 | [
"MIT"
] | null | null | null | tests/test_util.py | soundstripe/jamberry | e5f7400ca274ceb357ef7098a32068f1b21db324 | [
"MIT"
] | null | null | null | tests/test_util.py | soundstripe/jamberry | e5f7400ca274ceb357ef7098a32068f1b21db324 | [
"MIT"
] | null | null | null | from decimal import Decimal
from src.jamberry.util import currency_to_decimal
def test_currency_to_decimal():
result = currency_to_decimal('$4.00')
assert result == Decimal('4.00')
result = currency_to_decimal('$4.00 USD')
assert result == Decimal('4.00')
result = currency_to_decimal('($8.00)')
... | 30.857143 | 49 | 0.659722 | 122 | 864 | 4.483607 | 0.180328 | 0.201097 | 0.341865 | 0.378428 | 0.817185 | 0.751371 | 0.683729 | 0.661792 | 0.661792 | 0 | 0 | 0.090395 | 0.180556 | 864 | 27 | 50 | 32 | 0.682203 | 0 | 0 | 0.380952 | 0 | 0 | 0.136574 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4725fe8aebae3a4295cb382b2767bc62077d2d33 | 6,889 | py | Python | test/test_command_template.py | TorkamaniLab/metapipe | 15592e5b0c217afb00ac03503f8d0d7453d4baf4 | [
"MIT"
] | 11 | 2016-01-26T06:47:05.000Z | 2022-02-23T19:12:00.000Z | test/test_command_template.py | TorkamaniLab/metapipe | 15592e5b0c217afb00ac03503f8d0d7453d4baf4 | [
"MIT"
] | 44 | 2016-01-08T00:46:47.000Z | 2016-04-13T00:46:47.000Z | test/test_command_template.py | TorkamaniLab/metapipe | 15592e5b0c217afb00ac03503f8d0d7453d4baf4 | [
"MIT"
] | 4 | 2015-10-30T19:24:13.000Z | 2020-01-25T02:56:53.000Z | """ Tests for the output of the command template. """
import sure
from .fixtures import *
from metapipe.parser import Parser
from metapipe.models import *
def test_eval_1():
parser = Parser(overall)
templates = parser.consume()
vals = [CommentToken(['#PBS_O_WORKDIR=~/someuser']),
CommentToken... | 27.337302 | 83 | 0.578458 | 885 | 6,889 | 4.429379 | 0.125424 | 0.012755 | 0.089796 | 0.106122 | 0.807143 | 0.792092 | 0.756888 | 0.741071 | 0.704592 | 0.654082 | 0 | 0.036913 | 0.217448 | 6,889 | 251 | 84 | 27.446215 | 0.690224 | 0.006532 | 0 | 0.656977 | 0 | 0.005814 | 0.205091 | 0.035108 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.023256 | 0 | 0.116279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5b78d50c58dd9619e0d54c36047861297c4d005e | 38 | py | Python | opyapi/__init__.py | dkraczkowski/opyapi | 93f9ca4a39ec3dc0622e3248b96f2efad8323827 | [
"MIT"
] | 5 | 2019-06-05T19:06:56.000Z | 2020-05-02T07:57:51.000Z | opyapi/__init__.py | dkraczkowski/opyapi | 93f9ca4a39ec3dc0622e3248b96f2efad8323827 | [
"MIT"
] | 12 | 2019-06-05T19:34:09.000Z | 2019-09-08T18:50:48.000Z | opyapi/__init__.py | dkraczkowski/opyapi | 93f9ca4a39ec3dc0622e3248b96f2efad8323827 | [
"MIT"
] | 1 | 2019-06-05T20:03:26.000Z | 2019-06-05T20:03:26.000Z | from .opyapi_error import OpyapiError
| 19 | 37 | 0.868421 | 5 | 38 | 6.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 38 | 1 | 38 | 38 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7519064ba69b5605dfef4c71a9eaef7607236b1e | 74 | py | Python | scriptable/ast/property/__init__.py | c7nw3r/scriptable | b285d865da41774c8321ebf51f5a468ef1c92402 | [
"Apache-2.0"
] | null | null | null | scriptable/ast/property/__init__.py | c7nw3r/scriptable | b285d865da41774c8321ebf51f5a468ef1c92402 | [
"Apache-2.0"
] | null | null | null | scriptable/ast/property/__init__.py | c7nw3r/scriptable | b285d865da41774c8321ebf51f5a468ef1c92402 | [
"Apache-2.0"
] | null | null | null | from .property import Property
from .property_access import PropertyAccess | 37 | 43 | 0.878378 | 9 | 74 | 7.111111 | 0.555556 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094595 | 74 | 2 | 43 | 37 | 0.955224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7532f923c559f26019b0a793d970c1db52b03f84 | 39,101 | py | Python | api/sparts-api.py | pkthein/sparts_all_fam | ff162e4ea8c3919a197dc0cc13fde6b32da113c7 | [
"Apache-2.0"
] | 1 | 2019-04-03T18:31:36.000Z | 2019-04-03T18:31:36.000Z | api/sparts-api.py | pkthein/sparts_all_fam | ff162e4ea8c3919a197dc0cc13fde6b32da113c7 | [
"Apache-2.0"
] | null | null | null | api/sparts-api.py | pkthein/sparts_all_fam | ff162e4ea8c3919a197dc0cc13fde6b32da113c7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Wind River Systems
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 35.38552 | 84 | 0.568118 | 4,559 | 39,101 | 4.811143 | 0.060759 | 0.028723 | 0.047871 | 0.054254 | 0.830856 | 0.814033 | 0.789186 | 0.738853 | 0.707577 | 0.686924 | 0 | 0.018487 | 0.276489 | 39,101 | 1,104 | 85 | 35.417572 | 0.75684 | 0.369632 | 0 | 0.484252 | 0 | 0.007874 | 0.220474 | 0.067212 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094488 | false | 0 | 0.019685 | 0.001969 | 0.230315 | 0.001969 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
754df7d0e8a9e5506d75ce22ca367297a76326bc | 194 | py | Python | CSIKit/reader/readers/__init__.py | FredeJ/CSIKit | 5ce1b114be3d8b24a05576e5345ef43c9e5cd136 | [
"MIT"
] | 67 | 2020-03-14T03:32:06.000Z | 2022-03-31T18:51:57.000Z | CSIKit/reader/readers/__init__.py | FredeJ/CSIKit | 5ce1b114be3d8b24a05576e5345ef43c9e5cd136 | [
"MIT"
] | 25 | 2020-09-23T16:43:58.000Z | 2022-03-30T13:20:16.000Z | CSIKit/reader/readers/__init__.py | FredeJ/CSIKit | 5ce1b114be3d8b24a05576e5345ef43c9e5cd136 | [
"MIT"
] | 18 | 2020-04-01T09:51:35.000Z | 2022-03-09T12:46:24.000Z | # from CSIKit.reader.readers.read_atheros import ATHBeamformReader
# from CSIKit.reader.readers.read_bfee import IWLBeamformReader
# from CSIKit.reader.readers.read_pcap import NEXBeamformReader | 64.666667 | 66 | 0.865979 | 24 | 194 | 6.875 | 0.5 | 0.181818 | 0.290909 | 0.418182 | 0.490909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072165 | 194 | 3 | 67 | 64.666667 | 0.916667 | 0.969072 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 1 | 1 | 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 | 6 |
f32a73057b1ce957c350d43dd7caa28c93e9a056 | 31 | py | Python | utils/__init__.py | SauryStand/sentiment_detection | cfb2dcb2ef98341d3dd51b07ed37e7b610fd7492 | [
"Apache-2.0"
] | 3 | 2020-02-10T19:36:10.000Z | 2020-10-20T13:32:45.000Z | utils/__init__.py | SauryStand/sentiment_detection | cfb2dcb2ef98341d3dd51b07ed37e7b610fd7492 | [
"Apache-2.0"
] | null | null | null | utils/__init__.py | SauryStand/sentiment_detection | cfb2dcb2ef98341d3dd51b07ed37e7b610fd7492 | [
"Apache-2.0"
] | 1 | 2020-02-19T22:37:28.000Z | 2020-02-19T22:37:28.000Z | from utils.config import Config | 31 | 31 | 0.870968 | 5 | 31 | 5.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 31 | 1 | 31 | 31 | 0.964286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f36f7190ff2ea5ecb8da0c1551224b74ba4c29f8 | 162 | py | Python | scripto_dev_server.py | MoussLatr/scripto | 06691c4e30b9d01764971571aa2cd1dd538386cf | [
"MIT"
] | null | null | null | scripto_dev_server.py | MoussLatr/scripto | 06691c4e30b9d01764971571aa2cd1dd538386cf | [
"MIT"
] | 4 | 2019-04-19T16:11:22.000Z | 2021-08-22T19:19:29.000Z | scripto_dev_server.py | MoussLatr/scripto | 06691c4e30b9d01764971571aa2cd1dd538386cf | [
"MIT"
] | 2 | 2019-03-15T15:20:01.000Z | 2019-03-21T20:13:52.000Z | from scripto import app
from scripto import db
if __name__ == '__main__':
db.create_all() # make our sqlalchemy tabless
app.run(port=5000, debug=True)
| 20.25 | 50 | 0.716049 | 24 | 162 | 4.458333 | 0.791667 | 0.205607 | 0.317757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030534 | 0.191358 | 162 | 7 | 51 | 23.142857 | 0.78626 | 0.166667 | 0 | 0 | 0 | 0 | 0.06015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
f38778ce99583b2f068530c28ef4925c32734320 | 128 | py | Python | class2/my_func_1.py | SamerLabban/Network_Automation_Course | ca68e83a7699fded251aa6ec2f021e8a7e53ffed | [
"Apache-2.0"
] | 1 | 2017-04-30T17:43:51.000Z | 2017-04-30T17:43:51.000Z | class2/my_func_1.py | SamerLabban/Network_Automation_Course | ca68e83a7699fded251aa6ec2f021e8a7e53ffed | [
"Apache-2.0"
] | null | null | null | class2/my_func_1.py | SamerLabban/Network_Automation_Course | ca68e83a7699fded251aa6ec2f021e8a7e53ffed | [
"Apache-2.0"
] | null | null | null | #Python module with function to print Hello - my_func_1.py
def print_hello_1():
print "Hello 1 - located in same directory"
| 32 | 58 | 0.75 | 22 | 128 | 4.181818 | 0.727273 | 0.326087 | 0.23913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.179688 | 128 | 3 | 59 | 42.666667 | 0.847619 | 0.445313 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
45edba344500180c48df2525175f603cad0b52fc | 122 | py | Python | lisdf/components/model_urdf.py | Learning-and-Intelligent-Systems/LISdf | 55faac02bfa462d5ae665b703305fc265feb8e0c | [
"MIT"
] | 7 | 2022-03-19T17:41:19.000Z | 2022-03-25T23:03:30.000Z | lisdf/components/model_urdf.py | Learning-and-Intelligent-Systems/LISdf | 55faac02bfa462d5ae665b703305fc265feb8e0c | [
"MIT"
] | 9 | 2022-03-25T17:31:54.000Z | 2022-03-28T18:09:07.000Z | lisdf/components/model_urdf.py | Learning-and-Intelligent-Systems/LISdf | 55faac02bfa462d5ae665b703305fc265feb8e0c | [
"MIT"
] | 3 | 2022-03-23T18:52:55.000Z | 2022-03-25T16:41:54.000Z | from dataclasses import dataclass
from lisdf.components.model import Model
@dataclass
class URDFModel(Model):
pass
| 13.555556 | 40 | 0.795082 | 15 | 122 | 6.466667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155738 | 122 | 8 | 41 | 15.25 | 0.941748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
3407d2fdedc88e914f3827fb9dfc62338228b95b | 30 | py | Python | src/neuralkg/eval_task/__init__.py | zjukg/NeuralKG | 9fe97c29496ed08bc72c76e4dd71e72cbfbe5afa | [
"Apache-2.0"
] | 52 | 2022-01-19T09:08:07.000Z | 2022-03-31T07:02:17.000Z | src/neuralkg/eval_task/__init__.py | zjukg/NeuralKG | 9fe97c29496ed08bc72c76e4dd71e72cbfbe5afa | [
"Apache-2.0"
] | 2 | 2022-03-08T20:47:38.000Z | 2022-03-18T09:52:33.000Z | src/neuralkg/eval_task/__init__.py | zjukg/NeuralKG | 9fe97c29496ed08bc72c76e4dd71e72cbfbe5afa | [
"Apache-2.0"
] | 10 | 2022-02-28T07:54:14.000Z | 2022-03-23T14:06:33.000Z | from .link_prediction import * | 30 | 30 | 0.833333 | 4 | 30 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 30 | 1 | 30 | 30 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
344663e6e7147eba2c9c51cf6302e89bee6c8fd8 | 122 | py | Python | app/apis.py | Fivegoodmen/AXF | 846a5cc7ce9172abe7d144e8fe0fa8d0fccb84e0 | [
"Apache-2.0"
] | null | null | null | app/apis.py | Fivegoodmen/AXF | 846a5cc7ce9172abe7d144e8fe0fa8d0fccb84e0 | [
"Apache-2.0"
] | null | null | null | app/apis.py | Fivegoodmen/AXF | 846a5cc7ce9172abe7d144e8fe0fa8d0fccb84e0 | [
"Apache-2.0"
] | null | null | null | # import flask_restful
from flask_restful import Resource
class axf(Resource):
def get(self):
return '11'
| 12.2 | 34 | 0.688525 | 16 | 122 | 5.125 | 0.75 | 0.292683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.237705 | 122 | 9 | 35 | 13.555556 | 0.860215 | 0.163934 | 0 | 0 | 0 | 0 | 0.02 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
34467638ca6d9ee7ae3b9984f6cda7b1738dce1f | 3,770 | py | Python | src/vector_spherical_harmonics.py | smellouk/DarkARC | f103f6f733ba4d98ac4246b15dfd986afefbe820 | [
"MIT"
] | 5 | 2019-12-18T08:09:18.000Z | 2021-09-14T17:40:40.000Z | src/vector_spherical_harmonics.py | smellouk/DarkARC | f103f6f733ba4d98ac4246b15dfd986afefbe820 | [
"MIT"
] | 2 | 2019-12-24T12:18:06.000Z | 2020-10-02T08:34:44.000Z | src/vector_spherical_harmonics.py | smellouk/DarkARC | f103f6f733ba4d98ac4246b15dfd986afefbe820 | [
"MIT"
] | 3 | 2021-02-14T09:09:33.000Z | 2021-09-13T07:48:18.000Z | import numpy as np
from scipy.special import sph_harm
# Vector spherical harmonics (VSH) following the conventions of of Barrera et al.
# First VSH \vec{Y}_{lm} = Y_\lm \vec{r}
def vector_spherical_harmonics_Y(l,m,theta,phi):
unit_vectors =[ np.array([1,0,0]) , np.array([0,1,0]) , np.array([0,0,1]) ]
erYlm = np.a... | 38.865979 | 90 | 0.541379 | 857 | 3,770 | 2.350058 | 0.074679 | 0.067527 | 0.044687 | 0.099305 | 0.836147 | 0.835154 | 0.835154 | 0.835154 | 0.835154 | 0.835154 | 0 | 0.088793 | 0.202387 | 3,770 | 97 | 91 | 38.865979 | 0.580978 | 0.042971 | 0 | 0.595238 | 0 | 0 | 0.030522 | 0.012209 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.02381 | 0 | 0.404762 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
caa0c6d3f7f6b0c40f84dd5fc4111eed03c6d40c | 3,852 | py | Python | cfgov/v1/tests/test_util.py | Mario-Kart-Felix/cfgov-refresh | 7978fedeb7aaf4d96a87720e6545567085e056a9 | [
"CC0-1.0"
] | 1 | 2019-12-29T17:50:07.000Z | 2019-12-29T17:50:07.000Z | cfgov/v1/tests/test_util.py | ascott1/cfgov-refresh | 9c916aaed3a48110a199eb4675474290a51f815d | [
"CC0-1.0"
] | 1 | 2021-04-22T01:09:52.000Z | 2021-04-22T01:09:52.000Z | cfgov/v1/tests/test_util.py | ascott1/cfgov-refresh | 9c916aaed3a48110a199eb4675474290a51f815d | [
"CC0-1.0"
] | 1 | 2021-02-02T08:59:38.000Z | 2021-02-02T08:59:38.000Z | import mock
from django.test import TestCase
from django.test.client import RequestFactory
from ..util import util
class TestUtilFunctions(TestCase):
def setUp(self):
self.page = mock.Mock()
self.request = mock.Mock()
self.page_versions = [
mock.Mock(**{'content_json': {'liv... | 48.759494 | 92 | 0.67082 | 519 | 3,852 | 4.705202 | 0.125241 | 0.09828 | 0.157248 | 0.117936 | 0.802621 | 0.795659 | 0.785422 | 0.758395 | 0.742834 | 0.686732 | 0 | 0.008376 | 0.194185 | 3,852 | 78 | 93 | 49.384615 | 0.778351 | 0.008567 | 0 | 0.61194 | 0 | 0 | 0.090981 | 0 | 0 | 0 | 0 | 0 | 0.268657 | 1 | 0.089552 | false | 0 | 0.059701 | 0 | 0.164179 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
caa13f3b285f42acc0a3ec4a64d52842ac9b277e | 441 | py | Python | keras_perturbation/constraint.py | CyberZHG/keras-perturbation | 3bb15849c10d71cef29f0d9626cb83d522fc23da | [
"MIT"
] | 3 | 2018-10-11T03:02:53.000Z | 2019-06-26T14:08:46.000Z | keras_perturbation/constraint.py | CyberZHG/keras-perturbation | 3bb15849c10d71cef29f0d9626cb83d522fc23da | [
"MIT"
] | null | null | null | keras_perturbation/constraint.py | CyberZHG/keras-perturbation | 3bb15849c10d71cef29f0d9626cb83d522fc23da | [
"MIT"
] | null | null | null | import keras
import keras.backend as K
class Clip(keras.constraints.Constraint):
def __init__(self, min_value, max_value):
self.min_value = min_value
self.max_value = max_value
def get_config(self):
return {
'min_value': self.min_value,
'max_value': self.max_v... | 23.210526 | 76 | 0.641723 | 62 | 441 | 4.193548 | 0.322581 | 0.215385 | 0.184615 | 0.173077 | 0.4 | 0.4 | 0.307692 | 0.307692 | 0.307692 | 0.307692 | 0 | 0 | 0.260771 | 441 | 18 | 77 | 24.5 | 0.797546 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.153846 | 0.615385 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
cabbae561f7ab8c4bd7fa6221c5601b27aa499c7 | 196 | py | Python | app/group/serializers/__init__.py | TIHLDE/Lepton | 60ec0793381f1c1b222f305586e8c2d4345fb566 | [
"MIT"
] | 7 | 2021-03-04T18:49:12.000Z | 2021-03-08T18:25:51.000Z | app/group/serializers/__init__.py | TIHLDE/Lepton | 60ec0793381f1c1b222f305586e8c2d4345fb566 | [
"MIT"
] | 251 | 2021-03-04T19:19:14.000Z | 2022-03-31T14:47:53.000Z | app/group/serializers/__init__.py | tihlde/Lepton | 5cab3522c421b76373a5c25f49267cfaef7b826a | [
"MIT"
] | 3 | 2021-10-05T19:03:04.000Z | 2022-02-25T13:32:09.000Z | from app.group.serializers.group import GroupSerializer
from app.group.serializers.membership import (
MembershipSerializer,
UpdateMembershipSerializer,
MembershipHistorySerializer,
)
| 28 | 55 | 0.821429 | 16 | 196 | 10.0625 | 0.625 | 0.086957 | 0.149068 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 196 | 6 | 56 | 32.666667 | 0.936047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
caf6f42e6a4c0527d9ac8a5e0447a22135a9e19e | 250 | py | Python | tests/ea/selection/selector/select/select_1/fixtures/__init__.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | 21 | 2018-04-12T16:25:24.000Z | 2022-02-14T23:05:43.000Z | tests/ea/selection/selector/select/select_1/fixtures/__init__.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | 8 | 2019-03-19T12:36:36.000Z | 2020-11-11T12:46:00.000Z | tests/ea/selection/selector/select/select_1/fixtures/__init__.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | 5 | 2018-08-07T13:00:16.000Z | 2021-11-01T00:55:10.000Z | from .above_average import * # noqa
from .best import * # noqa
from .filter_batches import * # noqa
from .filter_molecules import * # noqa
from .remove_batches import * # noqa
from .remove_molecules import * # noqa
from .worst import * # noqa
| 31.25 | 39 | 0.72 | 33 | 250 | 5.30303 | 0.333333 | 0.4 | 0.48 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196 | 250 | 7 | 40 | 35.714286 | 0.870647 | 0.136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
1b3d6df10d9e795cb708e0b027b6b42c8908b8bb | 90,715 | py | Python | tests/api_tests/test_public_metrics.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 39 | 2017-10-13T19:16:27.000Z | 2021-09-24T16:58:21.000Z | tests/api_tests/test_public_metrics.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 312 | 2017-09-08T15:42:13.000Z | 2022-03-23T18:21:40.000Z | tests/api_tests/test_public_metrics.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 19 | 2017-09-15T13:58:00.000Z | 2022-02-07T18:33:20.000Z | import datetime
from rdr_service.clock import FakeClock
from rdr_service.code_constants import (
PMI_SKIP_CODE,
PPI_SYSTEM,
RACE_AIAN_CODE,
RACE_HISPANIC_CODE,
RACE_MENA_CODE,
RACE_NONE_OF_THESE_CODE,
RACE_WHITE_CODE,
)
from rdr_service.concepts import Concept
from rdr_service.dao.calendar_... | 34.154744 | 116 | 0.465634 | 8,091 | 90,715 | 4.989371 | 0.058831 | 0.015309 | 0.033689 | 0.03468 | 0.837648 | 0.809805 | 0.794273 | 0.778444 | 0.767643 | 0.751492 | 0 | 0.05837 | 0.429091 | 90,715 | 2,655 | 117 | 34.167608 | 0.721104 | 0.016105 | 0 | 0.692022 | 0 | 0 | 0.19906 | 0.067284 | 0 | 0 | 0 | 0 | 0.036379 | 1 | 0.009095 | false | 0 | 0.008681 | 0.000413 | 0.023977 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1b5f4b95b08020ae5fa061d6bee0423d26ed26e7 | 74 | py | Python | virtual/lib/python3.6/site-packages/tests/custom_reviews/models.py | Eccie-K/Awards | 05bedf7c8aba4168d25715197d5bf3ad3e712ff8 | [
"MIT"
] | 15 | 2019-02-16T12:17:30.000Z | 2022-03-27T20:11:49.000Z | virtual/lib/python3.6/site-packages/tests/custom_reviews/models.py | Eccie-K/Awards | 05bedf7c8aba4168d25715197d5bf3ad3e712ff8 | [
"MIT"
] | 7 | 2019-05-10T08:27:14.000Z | 2021-04-26T15:19:06.000Z | virtual/lib/python3.6/site-packages/tests/custom_reviews/models.py | Eccie-K/Awards | 05bedf7c8aba4168d25715197d5bf3ad3e712ff8 | [
"MIT"
] | 8 | 2019-11-07T21:05:10.000Z | 2021-08-03T06:59:37.000Z | from django.db import models
class CustomReview(models.Model):
pass
| 12.333333 | 33 | 0.756757 | 10 | 74 | 5.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175676 | 74 | 5 | 34 | 14.8 | 0.918033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
1b67df336f5aab19dff11f62f45cea80157064da | 279 | py | Python | waveflow/__init__.py | waveflow-team/waveflow | b540a6c670e29071118ba773c26c2e2bd3839ecb | [
"Apache-2.0"
] | 11 | 2018-03-20T16:06:35.000Z | 2020-12-09T12:21:34.000Z | waveflow/__init__.py | kelu124/waveflow | b540a6c670e29071118ba773c26c2e2bd3839ecb | [
"Apache-2.0"
] | 4 | 2018-04-16T13:09:17.000Z | 2018-05-21T06:12:07.000Z | waveflow/__init__.py | kelu124/waveflow | b540a6c670e29071118ba773c26c2e2bd3839ecb | [
"Apache-2.0"
] | 4 | 2018-11-28T20:49:18.000Z | 2021-08-10T07:30:50.000Z | from __future__ import absolute_import
# Operators.
from waveflow.python.ops.math import *
import waveflow.python.ops.signal as signal
# I/O & Environments.
from waveflow.python.envs import io
from waveflow.python.envs import physics
from waveflow.python.envs import ultrasound | 27.9 | 43 | 0.820789 | 40 | 279 | 5.6 | 0.45 | 0.3125 | 0.321429 | 0.294643 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 279 | 10 | 44 | 27.9 | 0.903226 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
1bc3cdb70340337ea421c4bf331d843ded5bf31d | 125 | py | Python | cats/v2/server/__init__.py | AdamBrianBright/cats-python | 163cbde06c0d56520c217c0d66ddca34c7e0f63b | [
"MIT"
] | 2 | 2021-10-04T05:39:03.000Z | 2021-10-07T06:44:19.000Z | cats/v2/server/__init__.py | AdamBrianBright/cats-python | 163cbde06c0d56520c217c0d66ddca34c7e0f63b | [
"MIT"
] | 7 | 2021-08-17T17:50:23.000Z | 2021-08-31T08:44:13.000Z | cats/v2/server/__init__.py | AdamBrianBright/cats-python | 163cbde06c0d56520c217c0d66ddca34c7e0f63b | [
"MIT"
] | 2 | 2021-10-01T20:58:25.000Z | 2021-10-04T05:40:35.000Z | from .application import *
from .connection import *
from .handlers import *
from .middleware import *
from .server import *
| 20.833333 | 26 | 0.76 | 15 | 125 | 6.333333 | 0.466667 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 125 | 5 | 27 | 25 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
94134a32f174fc8b6ed50b688296e8e8b36a89d9 | 25 | py | Python | testsuite/modulegraph-dir/package/circular_a.py | xoviat/modulegraph2 | 766d00bdb40e5b2fe206b53a87b1bce3f9dc9c2a | [
"MIT"
] | 9 | 2020-03-22T14:48:01.000Z | 2021-05-30T12:18:12.000Z | testsuite/modulegraph-dir/package/circular_a.py | xoviat/modulegraph2 | 766d00bdb40e5b2fe206b53a87b1bce3f9dc9c2a | [
"MIT"
] | 15 | 2020-01-06T10:02:32.000Z | 2021-05-28T12:22:44.000Z | testsuite/modulegraph-dir/package/circular_a.py | ronaldoussoren/modulegraph2 | b6ab1766b0098651b51083235ff8a18a5639128b | [
"MIT"
] | 4 | 2020-05-10T18:51:41.000Z | 2021-04-07T14:03:12.000Z | from . import circular_b
| 12.5 | 24 | 0.8 | 4 | 25 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
9451c50049bdabde1210786b29a3319af92a17d1 | 19 | py | Python | code/python/array_is_include.py | evmorov/ruby-coffeescript | 1c61c5ce351509b210e26feceee6efab0b255442 | [
"MIT"
] | 29 | 2016-06-15T09:19:18.000Z | 2022-03-21T14:34:47.000Z | code/python/array_is_include.py | evmorov/ruby-coffeescript | 1c61c5ce351509b210e26feceee6efab0b255442 | [
"MIT"
] | 7 | 2016-06-16T07:02:43.000Z | 2020-01-08T21:12:30.000Z | code/python/array_is_include.py | evmorov/ruby-coffeescript | 1c61c5ce351509b210e26feceee6efab0b255442 | [
"MIT"
] | 7 | 2016-06-15T14:57:46.000Z | 2021-12-09T17:57:22.000Z | print(1 in [1, 2])
| 9.5 | 18 | 0.526316 | 5 | 19 | 2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.210526 | 19 | 1 | 19 | 19 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
945c3f50c1576518154d4fc1170f4e937df0f794 | 116 | py | Python | keyvalue_sqlite/__init__.py | zackees/keyvalue_sqlite | 801e7fb224fe043ad35013e83c998a5324b87bc4 | [
"MIT"
] | null | null | null | keyvalue_sqlite/__init__.py | zackees/keyvalue_sqlite | 801e7fb224fe043ad35013e83c998a5324b87bc4 | [
"MIT"
] | null | null | null | keyvalue_sqlite/__init__.py | zackees/keyvalue_sqlite | 801e7fb224fe043ad35013e83c998a5324b87bc4 | [
"MIT"
] | null | null | null | """
Bring KeyValueSqlite into the main namespace.
"""
from keyvalue_sqlite.keyvalue_sqlite import KeyValueSqlite
| 19.333333 | 58 | 0.801724 | 13 | 116 | 7 | 0.769231 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12931 | 116 | 5 | 59 | 23.2 | 0.90099 | 0.387931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
9474828e4b4eff67a60a860a95210ac7c853e5d8 | 232 | py | Python | tools/data_util.py | CryptoRichy/OctoBot | 1ca5bd2ba4b8fc09859518fcb2a62f74a1435019 | [
"Apache-2.0"
] | 1 | 2018-11-26T16:43:36.000Z | 2018-11-26T16:43:36.000Z | tools/data_util.py | CryptoRichy/OctoBot | 1ca5bd2ba4b8fc09859518fcb2a62f74a1435019 | [
"Apache-2.0"
] | null | null | null | tools/data_util.py | CryptoRichy/OctoBot | 1ca5bd2ba4b8fc09859518fcb2a62f74a1435019 | [
"Apache-2.0"
] | null | null | null | import numpy as np
class DataUtil:
@staticmethod
def normalize_data(data):
return (data - np.mean(data)) / (data.max() - data.min())
@staticmethod
def drop_nan(data):
return data[~np.isnan(data)]
| 17.846154 | 65 | 0.616379 | 30 | 232 | 4.7 | 0.566667 | 0.212766 | 0.198582 | 0.22695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 232 | 12 | 66 | 19.333333 | 0.810345 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
8492c58473f127fdb99b0c1d0e1f5bf5eba11eac | 167 | py | Python | Python/Tests/TestData/Grammar/YieldFromStmtIllegal.py | nanshuiyu/pytools | 9f9271fe8cf564b4f94e9456d400f4306ea77c23 | [
"Apache-2.0"
] | null | null | null | Python/Tests/TestData/Grammar/YieldFromStmtIllegal.py | nanshuiyu/pytools | 9f9271fe8cf564b4f94e9456d400f4306ea77c23 | [
"Apache-2.0"
] | null | null | null | Python/Tests/TestData/Grammar/YieldFromStmtIllegal.py | nanshuiyu/pytools | 9f9271fe8cf564b4f94e9456d400f4306ea77c23 | [
"Apache-2.0"
] | null | null | null | yield from 1
def f():
return 42
yield from 1
def f():
yield from 1
return 42
def f():
yield from
def f():
yield from 1, 2, 3 | 11.133333 | 22 | 0.497006 | 29 | 167 | 2.896552 | 0.344828 | 0.535714 | 0.47619 | 0.464286 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102041 | 0.413174 | 167 | 15 | 22 | 11.133333 | 0.744898 | 0 | 0 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
84a8e24f27835f0043acb03e0d163cee1c9fb11e | 92 | py | Python | pttydev/__init__.py | kr-g/pttydev | 3c5ff960e4a1d76e0b1f7ca1c29cbec69edb41d3 | [
"MIT"
] | null | null | null | pttydev/__init__.py | kr-g/pttydev | 3c5ff960e4a1d76e0b1f7ca1c29cbec69edb41d3 | [
"MIT"
] | null | null | null | pttydev/__init__.py | kr-g/pttydev | 3c5ff960e4a1d76e0b1f7ca1c29cbec69edb41d3 | [
"MIT"
] | null | null | null | from .pttydev import *
from .dev_serial import *
from .dev_ws import *
VERSION = "v0.0.5"
| 13.142857 | 25 | 0.695652 | 15 | 92 | 4.133333 | 0.666667 | 0.322581 | 0.419355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.184783 | 92 | 6 | 26 | 15.333333 | 0.786667 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ca751064da191343fc4597d08e50f1be02aae5a8 | 591 | py | Python | imports.py | InterfaceGuy/pydeation-legacy | 44c2ef08809d18545e052f016352021ebe4187e1 | [
"MIT"
] | 1 | 2021-12-03T11:01:15.000Z | 2021-12-03T11:01:15.000Z | imports.py | InterfaceGuy/pydeationlib | 44c2ef08809d18545e052f016352021ebe4187e1 | [
"MIT"
] | null | null | null | imports.py | InterfaceGuy/pydeationlib | 44c2ef08809d18545e052f016352021ebe4187e1 | [
"MIT"
] | null | null | null | """
this file is used to simplify importing the necessary modules for video scripting
this way we just have to include "from pydeationlib.imports import *" in our scripts
"""
from pydeationlib.scene.scene import *
from pydeationlib.constants import *
from pydeationlib.project import *
from pydeationlib.object.object i... | 34.764706 | 84 | 0.815567 | 78 | 591 | 6.153846 | 0.5 | 0.333333 | 0.366667 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003854 | 0.121827 | 591 | 16 | 85 | 36.9375 | 0.921002 | 0.28088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ca8dd0913db2ac7468d93e2a283218374cf504bc | 124 | py | Python | src/artlearn/__init__.py | ground0state/artlearn | 6eb6b4a880b44c3c3911dc1dba3a228538d5be6f | [
"MIT"
] | null | null | null | src/artlearn/__init__.py | ground0state/artlearn | 6eb6b4a880b44c3c3911dc1dba3a228538d5be6f | [
"MIT"
] | null | null | null | src/artlearn/__init__.py | ground0state/artlearn | 6eb6b4a880b44c3c3911dc1dba3a228538d5be6f | [
"MIT"
] | null | null | null | from artlearn.__version__ import __version__
from artlearn.art import ART1, ART2, ART2A, FuzzyART, SFAM, BayesianART, L2ART
| 41.333333 | 78 | 0.822581 | 16 | 124 | 5.875 | 0.75 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0.112903 | 124 | 2 | 79 | 62 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
047dd8297ac886fb005772314ab4139f7df4ee2d | 29 | py | Python | python_cuda/lanedetection.py | suvam0451/vehicle-counting-toolkit | 69b69f544c60c106f014c1a00f58d3ba2651ca6a | [
"Apache-2.0"
] | null | null | null | python_cuda/lanedetection.py | suvam0451/vehicle-counting-toolkit | 69b69f544c60c106f014c1a00f58d3ba2651ca6a | [
"Apache-2.0"
] | null | null | null | python_cuda/lanedetection.py | suvam0451/vehicle-counting-toolkit | 69b69f544c60c106f014c1a00f58d3ba2651ca6a | [
"Apache-2.0"
] | null | null | null | import cv2
import json, math | 14.5 | 17 | 0.793103 | 5 | 29 | 4.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.172414 | 29 | 2 | 17 | 14.5 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0480228f51a0c515c0e9de7d3c659c93532c86bb | 18,107 | py | Python | src/verify.py | BenWiederhake/steppow | 71561529600909b252cd5eb777e869d072af16fc | [
"MIT"
] | 3 | 2019-09-15T21:25:54.000Z | 2019-09-16T02:22:22.000Z | src/verify.py | BenWiederhake/steppow | 71561529600909b252cd5eb777e869d072af16fc | [
"MIT"
] | null | null | null | src/verify.py | BenWiederhake/steppow | 71561529600909b252cd5eb777e869d072af16fc | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
from hashlib import sha256
from math import ceil, log2
from struct import Struct
TEST_CERTS = [
(b'\x01' * 32, b'\x02' * 8, 8, 8, 1, # Just for debugging x1
b'\x00\xF7', 780, True),
(b'\x01' * 32, b'\x02' * 8, 8, 8, 1, # Just for debugging x1
b'\x03\x0B', 780, Tr... | 87.898058 | 1,947 | 0.680566 | 3,671 | 18,107 | 3.312721 | 0.125034 | 0.006578 | 0.007401 | 0.004029 | 0.48047 | 0.469287 | 0.44692 | 0.435655 | 0.427267 | 0.412384 | 0 | 0.278335 | 0.10195 | 18,107 | 205 | 1,948 | 88.326829 | 0.469528 | 0.037444 | 0 | 0.205714 | 0 | 0.085714 | 0.668122 | 0.61774 | 0 | 1 | 0.00023 | 0 | 0.051429 | 1 | 0.051429 | false | 0 | 0.022857 | 0.005714 | 0.131429 | 0.154286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
04ae902da095002204f8dc15d17f2571b5ba33d5 | 9,336 | py | Python | NetManager/devices/tests/test_views.py | jwhite-12/NetManager | 6bd57dc18cbccce4808f8b6df0831f9fee9a45ac | [
"CC0-1.0"
] | 4 | 2021-02-21T21:51:50.000Z | 2022-01-14T10:52:58.000Z | NetManager/devices/tests/test_views.py | jwhite-12/NetManager | 6bd57dc18cbccce4808f8b6df0831f9fee9a45ac | [
"CC0-1.0"
] | null | null | null | NetManager/devices/tests/test_views.py | jwhite-12/NetManager | 6bd57dc18cbccce4808f8b6df0831f9fee9a45ac | [
"CC0-1.0"
] | 1 | 2021-12-16T06:35:30.000Z | 2021-12-16T06:35:30.000Z | """
DEVICES VIEWS UNIT TESTS
"""
from django.test import TestCase
from django.urls import reverse
from django.contrib.auth.models import User
from devices.models import Device, Security
class TestViews(TestCase):
"""
Constructor
* Create test user
* Create test device - Device must be connected!
... | 35.498099 | 107 | 0.648886 | 1,058 | 9,336 | 5.530246 | 0.092628 | 0.086139 | 0.071783 | 0.086139 | 0.765681 | 0.755597 | 0.744317 | 0.732695 | 0.726713 | 0.726713 | 0 | 0.015015 | 0.236718 | 9,336 | 262 | 108 | 35.633588 | 0.806062 | 0.031384 | 0 | 0.564516 | 0 | 0 | 0.079137 | 0.014894 | 0 | 0 | 0 | 0 | 0.236559 | 1 | 0.107527 | false | 0.129032 | 0.021505 | 0 | 0.134409 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
04c8e99112eb551e1b62f2021de9fbd586c386d0 | 37 | py | Python | admin_shuffle/__init__.py | ojayyezzir/django-admin-shuffle | 614553a83bbbbe391bbca29be349ad3575fc54b8 | [
"MIT"
] | 4 | 2020-07-19T10:23:58.000Z | 2020-07-20T01:21:36.000Z | admin_shuffle/__init__.py | ojayyezzir/django-admin-shuffle | 614553a83bbbbe391bbca29be349ad3575fc54b8 | [
"MIT"
] | 11 | 2020-08-17T09:17:35.000Z | 2020-10-07T01:08:52.000Z | admin_shuffle/__init__.py | ojayyezzir/django-admin-shuffle | 614553a83bbbbe391bbca29be349ad3575fc54b8 | [
"MIT"
] | null | null | null | from .admin import AdminShuffleMixin
| 18.5 | 36 | 0.864865 | 4 | 37 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 37 | 1 | 37 | 37 | 0.969697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b6f45adb4c37f769c4b293a2ccfd80393d2dafed | 12,488 | py | Python | calliope_app/client/tests/test_urls.py | jmorrisnrel/engage | 250ecc24c0225d48363afe4e40335a89dd9b6a44 | [
"BSD-3-Clause"
] | null | null | null | calliope_app/client/tests/test_urls.py | jmorrisnrel/engage | 250ecc24c0225d48363afe4e40335a89dd9b6a44 | [
"BSD-3-Clause"
] | null | null | null | calliope_app/client/tests/test_urls.py | jmorrisnrel/engage | 250ecc24c0225d48363afe4e40335a89dd9b6a44 | [
"BSD-3-Clause"
] | null | null | null | """
Unit tests for Django app "client" urls.
"""
import uuid
from django.conf import settings
from django.test import TestCase
from django.urls import reverse, resolve
from django.utils import translation
class ClientConfigurationComponentURLTestCase(TestCase):
def test_all_tech_params(self):
view_name ... | 38.189602 | 82 | 0.584001 | 1,295 | 12,488 | 5.366023 | 0.059459 | 0.128939 | 0.048352 | 0.068499 | 0.824867 | 0.818679 | 0.811484 | 0.809613 | 0.809613 | 0.809613 | 0 | 0.000471 | 0.319507 | 12,488 | 326 | 83 | 38.306748 | 0.817251 | 0.003203 | 0 | 0.561538 | 0 | 0 | 0.130627 | 0.090032 | 0 | 0 | 0 | 0 | 0.215385 | 1 | 0.115385 | false | 0 | 0.019231 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8e347bff76ac157762a1380fbed1f218d9f4c782 | 25 | py | Python | planer_zoo/obj_recognize/__init__.py | BioinfoTongLI/planer-zoo | a22ed4ecc980488ad3d37a352340344c355261b0 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T03:15:17.000Z | 2022-03-03T03:15:17.000Z | planer_zoo/obj_recognize/__init__.py | Image-Py/planer-store | 64b22a99a90e3a43d86cd95749e8e8936540199d | [
"BSD-3-Clause"
] | null | null | null | planer_zoo/obj_recognize/__init__.py | Image-Py/planer-store | 64b22a99a90e3a43d86cd95749e8e8936540199d | [
"BSD-3-Clause"
] | 1 | 2022-03-03T10:54:41.000Z | 2022-03-03T10:54:41.000Z | from .recognize import *
| 12.5 | 24 | 0.76 | 3 | 25 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6d19ebab2f385ade6940f81938432c74b59ef1f5 | 66 | py | Python | p0sx/p0sx/settings/__init__.py | bluesnail95m/nuxis | 7539404c65972efb988e5fd2eca216f4fc59d9ab | [
"MIT"
] | 3 | 2016-04-28T10:38:43.000Z | 2020-10-05T17:46:09.000Z | p0sx/p0sx/settings/__init__.py | bluesnail95m/nuxis | 7539404c65972efb988e5fd2eca216f4fc59d9ab | [
"MIT"
] | 12 | 2016-04-20T11:11:17.000Z | 2021-08-22T09:28:02.000Z | p0sx/p0sx/settings/__init__.py | bluesnail95m/nuxis | 7539404c65972efb988e5fd2eca216f4fc59d9ab | [
"MIT"
] | 6 | 2016-04-28T09:47:30.000Z | 2021-02-19T15:47:36.000Z | from p0sx.settings.base import *
from p0sx.settings.dev import *
| 16.5 | 32 | 0.772727 | 10 | 66 | 5.1 | 0.6 | 0.313725 | 0.627451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 0.136364 | 66 | 3 | 33 | 22 | 0.859649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.