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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
365ec265345ef65c5e575925f8df985d501230dd | 2,204 | py | Python | epytope/Data/pssms/smm/mat/B_15_02_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 7 | 2021-02-01T18:11:28.000Z | 2022-01-31T19:14:07.000Z | epytope/Data/pssms/smm/mat/B_15_02_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 22 | 2021-01-02T15:25:23.000Z | 2022-03-14T11:32:53.000Z | epytope/Data/pssms/smm/mat/B_15_02_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 4 | 2021-05-28T08:50:38.000Z | 2022-03-14T11:45:32.000Z | B_15_02_9 = {0: {'A': 0.092, 'C': 0.0, 'E': 0.132, 'D': 0.0, 'G': 0.175, 'F': -0.476, 'I': 0.145, 'H': -0.147, 'K': 0.338, 'M': -0.256, 'L': 0.172, 'N': -0.086, 'Q': -0.041, 'P': 0.0, 'S': -0.196, 'R': 0.415, 'T': -0.025, 'W': -0.116, 'V': 0.115, 'Y': -0.242}, 1: {'A': -0.051, 'C': 0.0, 'E': 0.0, 'D': 0.0, 'G': 0.057, ... | 2,204 | 2,204 | 0.371143 | 557 | 2,204 | 1.463196 | 0.244165 | 0.120245 | 0.018405 | 0.02454 | 0.209816 | 0.106748 | 0.106748 | 0.094479 | 0.06135 | 0.06135 | 0 | 0.34462 | 0.169238 | 2,204 | 1 | 2,204 | 2,204 | 0.100492 | 0 | 0 | 0 | 0 | 0 | 0.082993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
366a402a4fd7697d799f454f1b3450ea73c0950e | 16,673 | py | Python | metpy/calc/tests/test_turbulence.py | SuccessionEcologicalServices/MetPy | 2b685023351a89168a7e06c3858ff3493af670e7 | [
"BSD-3-Clause"
] | null | null | null | metpy/calc/tests/test_turbulence.py | SuccessionEcologicalServices/MetPy | 2b685023351a89168a7e06c3858ff3493af670e7 | [
"BSD-3-Clause"
] | null | null | null | metpy/calc/tests/test_turbulence.py | SuccessionEcologicalServices/MetPy | 2b685023351a89168a7e06c3858ff3493af670e7 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
"""Tests for the `turbulence` module."""
import numpy as np
from numpy.testing import assert_almost_equal, assert_array_equal
import pytest
from metpy.calc.turbulence import f... | 39.792363 | 95 | 0.65723 | 2,634 | 16,673 | 3.899013 | 0.049355 | 0.044401 | 0.068549 | 0.065725 | 0.883155 | 0.871568 | 0.845667 | 0.80224 | 0.746641 | 0.697468 | 0 | 0.01884 | 0.216878 | 16,673 | 418 | 96 | 39.88756 | 0.767711 | 0.187549 | 0 | 0.699647 | 0 | 0 | 0.007195 | 0 | 0 | 0 | 0 | 0 | 0.19788 | 1 | 0.120141 | false | 0 | 0.014134 | 0 | 0.159011 | 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 |
3d18065b904462505d779f8775ae89a07025dddc | 142 | py | Python | Marlin/scripts/due_pins.py | tadawson/Marlin4Due-Dawson | 710764472a95128264bd9bea376cb15caf15208b | [
"RSA-MD"
] | null | null | null | Marlin/scripts/due_pins.py | tadawson/Marlin4Due-Dawson | 710764472a95128264bd9bea376cb15caf15208b | [
"RSA-MD"
] | null | null | null | Marlin/scripts/due_pins.py | tadawson/Marlin4Due-Dawson | 710764472a95128264bd9bea376cb15caf15208b | [
"RSA-MD"
] | null | null | null | __author__ = 'Nico'
for i in range(0, 87+1):
print('#define DIO{0}_PIN '.format(i))
print('#define DIO{0}_WPORT PIO\n'.format(i)) | 28.4 | 49 | 0.612676 | 25 | 142 | 3.24 | 0.68 | 0.271605 | 0.345679 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0.183099 | 142 | 5 | 49 | 28.4 | 0.646552 | 0 | 0 | 0 | 0 | 0 | 0.352518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
3d24f7c9384f89705b46866f7f7f403fd958ccc9 | 12,404 | py | Python | ptuner/spaces/tests/test_classifiers.py | rmill040/ptuner | bf76ca75ad79a0def7965dd29f3e44056b1d8f09 | [
"MIT"
] | 1 | 2020-06-24T16:04:44.000Z | 2020-06-24T16:04:44.000Z | ptuner/spaces/tests/test_classifiers.py | rmill040/ptuner | bf76ca75ad79a0def7965dd29f3e44056b1d8f09 | [
"MIT"
] | null | null | null | ptuner/spaces/tests/test_classifiers.py | rmill040/ptuner | bf76ca75ad79a0def7965dd29f3e44056b1d8f09 | [
"MIT"
] | null | null | null | from math import log
import pandas as pd
import pytest
import re
# Package imports
from ptuner.spaces import LightGBMClassifierSampler, MLPClassifierSampler, XGBClassifierSampler
from ptuner.utils import helper
@pytest.mark.parametrize("dynamic_update", [True, False])
@pytest.mark.parametrize("early_stopping", [True... | 42.479452 | 95 | 0.614882 | 1,450 | 12,404 | 5.10069 | 0.138621 | 0.050974 | 0.024337 | 0.027582 | 0.792591 | 0.78218 | 0.75676 | 0.734992 | 0.726339 | 0.721606 | 0 | 0.011129 | 0.304579 | 12,404 | 292 | 96 | 42.479452 | 0.846279 | 0.18881 | 0 | 0.713514 | 0 | 0 | 0.2359 | 0 | 0 | 0 | 0 | 0 | 0.156757 | 1 | 0.016216 | false | 0 | 0.032432 | 0 | 0.048649 | 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 |
e9fb0bc0f91e0135f34140cea7dafc0c5476e48f | 100 | py | Python | llvm/utils/lit/tests/Inputs/shtest-not/fail2.py | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | llvm/utils/lit/tests/Inputs/shtest-not/fail2.py | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | llvm/utils/lit/tests/Inputs/shtest-not/fail2.py | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | #!/usr/bin/env python
import print_environment
import sys
print_environment.execute()
sys.exit(2)
| 12.5 | 27 | 0.79 | 15 | 100 | 5.133333 | 0.733333 | 0.415584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.1 | 100 | 7 | 28 | 14.285714 | 0.844444 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 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 | 1 | 0 | 6 |
1830a30938984d77f985624004052868b3a8a99d | 24 | py | Python | sucuri/__init__.py | sirvan3tr/sucuri | edc0d9cf9d32258e3e043cf859da22ec33852da1 | [
"BSD-3-Clause"
] | 24 | 2018-03-22T18:22:52.000Z | 2021-04-19T18:56:19.000Z | sucuri/__init__.py | sirvan3tr/sucuri | edc0d9cf9d32258e3e043cf859da22ec33852da1 | [
"BSD-3-Clause"
] | 27 | 2018-03-20T17:34:24.000Z | 2020-08-08T22:30:50.000Z | sucuri/__init__.py | sirvan3tr/sucuri | edc0d9cf9d32258e3e043cf859da22ec33852da1 | [
"BSD-3-Clause"
] | 19 | 2018-05-10T17:40:23.000Z | 2022-02-22T19:33:26.000Z | from .files import Files | 24 | 24 | 0.833333 | 4 | 24 | 5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.952381 | 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 |
1868c7ef10d64aa2559c2c8039e2e771034792cf | 133 | py | Python | app/content_management/__init__.py | mwhittemore2/vocab_manager | 05d8ec2bac925a53e1882c645f5e086a540bfe6b | [
"MIT"
] | null | null | null | app/content_management/__init__.py | mwhittemore2/vocab_manager | 05d8ec2bac925a53e1882c645f5e086a540bfe6b | [
"MIT"
] | null | null | null | app/content_management/__init__.py | mwhittemore2/vocab_manager | 05d8ec2bac925a53e1882c645f5e086a540bfe6b | [
"MIT"
] | null | null | null | from flask import Blueprint
#Set up content management blueprint
cm = Blueprint('content_management', __name__)
from . import views | 22.166667 | 46 | 0.804511 | 17 | 133 | 6 | 0.647059 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135338 | 133 | 6 | 47 | 22.166667 | 0.886957 | 0.263158 | 0 | 0 | 0 | 0 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
43e8a062448359cc1db6cb4caf0932b6359f0ab4 | 76 | py | Python | notedrive/base/__init__.py | notechats/notepan | be63bad0cb6b26ec1990862bf4c9e04172bacb31 | [
"Apache-2.0"
] | 24 | 2020-02-26T03:56:46.000Z | 2022-03-18T07:15:26.000Z | notedrive/base/__init__.py | notechats/notepan | be63bad0cb6b26ec1990862bf4c9e04172bacb31 | [
"Apache-2.0"
] | 2 | 2020-05-02T19:52:20.000Z | 2021-07-11T07:19:44.000Z | notedrive/base/__init__.py | notechats/notepan | be63bad0cb6b26ec1990862bf4c9e04172bacb31 | [
"Apache-2.0"
] | 5 | 2020-10-15T11:33:25.000Z | 2022-01-25T17:42:21.000Z | from .core import MultiThreadDownload, SingleThreadDownload, PyCurlDownLoad
| 38 | 75 | 0.881579 | 6 | 76 | 11.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 76 | 1 | 76 | 76 | 0.957143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a115a0e8838c66436fb4d1fce9879553dd6889bb | 236 | py | Python | testing.py | Jeanne-Chris/DXCPythonBootcamp | 9d394035a700d4364acfebf80316cb6281a5776b | [
"MIT"
] | 1 | 2022-03-03T09:54:06.000Z | 2022-03-03T09:54:06.000Z | testing.py | Jeanne-Chris/DXCPythonBootcamp | 9d394035a700d4364acfebf80316cb6281a5776b | [
"MIT"
] | null | null | null | testing.py | Jeanne-Chris/DXCPythonBootcamp | 9d394035a700d4364acfebf80316cb6281a5776b | [
"MIT"
] | null | null | null | import mathfuncs
#import pytest
def test_add():
assert mathfuncs.add(7, 3) == 10
assert mathfuncs.add(7) == 9
def test_multiply():
assert mathfuncs.multiply(7, 3) == 21
assert mathfuncs.multiply(7, 2) == 14
| 21.454545 | 42 | 0.635593 | 33 | 236 | 4.484848 | 0.454545 | 0.405405 | 0.243243 | 0.256757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077778 | 0.237288 | 236 | 10 | 43 | 23.6 | 0.744444 | 0.055085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.285714 | true | 0 | 0.142857 | 0 | 0.428571 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a1185c3527f92f65c4474220aeb4474831087364 | 2,595 | py | Python | init_scripts/load_default_tasks.py | kelceydamage/axol | b5288577ee769bcd609c361cb0ac5e2a678289da | [
"Apache-2.0"
] | null | null | null | init_scripts/load_default_tasks.py | kelceydamage/axol | b5288577ee769bcd609c361cb0ac5e2a678289da | [
"Apache-2.0"
] | null | null | null | init_scripts/load_default_tasks.py | kelceydamage/axol | b5288577ee769bcd609c361cb0ac5e2a678289da | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
#-----------------------------------------#
# Written by Kelcey Damage, 2013
# Imports
#-----------------------------------------------------------------------#
import urllib2
import time
# Main script
#-----------------------------------------------------------------------#
# re... | 13.657895 | 81 | 0.539114 | 263 | 2,595 | 5.114068 | 0.239544 | 0.154647 | 0.202974 | 0.241636 | 0.779182 | 0.763569 | 0.733086 | 0.719703 | 0.640149 | 0.539777 | 0 | 0.020751 | 0.220039 | 2,595 | 189 | 82 | 13.730159 | 0.643775 | 0.158767 | 0 | 0.666667 | 0 | 0 | 0.247248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026667 | null | null | 0.053333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a12ebf9831d3506279ed6bbd5df00b0828045311 | 21,795 | py | Python | codes/rl/upbit_rl_policy.py | bluebibi/trade | 32145c2a139f4172159ace8dfad11591ad8839ea | [
"MIT"
] | 2 | 2021-02-03T19:03:13.000Z | 2021-03-06T15:58:08.000Z | codes/rl/upbit_rl_policy.py | bluebibi/trade | 32145c2a139f4172159ace8dfad11591ad8839ea | [
"MIT"
] | 10 | 2020-01-28T23:09:34.000Z | 2022-02-10T00:23:12.000Z | codes/rl/upbit_rl_policy.py | bluebibi/trade | 32145c2a139f4172159ace8dfad11591ad8839ea | [
"MIT"
] | 1 | 2019-11-03T11:37:37.000Z | 2019-11-03T11:37:37.000Z | import glob
import math
import warnings
import boto3
import numpy as np
from statsmodels.tools.sm_exceptions import ConvergenceWarning
from torch import optim
from codes.rl.upbit_rl_replay_buffer import PrioritizedReplayBuffer, ReplayBuffer
warnings.filterwarnings("ignore")
with warnings.catch_warnings():
warnin... | 38.304042 | 141 | 0.588254 | 2,816 | 21,795 | 4.253906 | 0.091264 | 0.048752 | 0.039068 | 0.036898 | 0.837799 | 0.807997 | 0.791301 | 0.747976 | 0.717589 | 0.715669 | 0 | 0.019889 | 0.307915 | 21,795 | 569 | 142 | 38.304042 | 0.774264 | 0.138013 | 0 | 0.655779 | 0 | 0.005025 | 0.017379 | 0.003208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062814 | false | 0 | 0.035176 | 0.007538 | 0.145729 | 0.01005 | 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 |
a15d4813ac1b6a85f28515a6b070a4cde6c5e700 | 81 | py | Python | pty/__init__.py | dxm447/ptychogpu | 337d136b1b738ddbc3241144e49fa0129b7bcac1 | [
"MIT"
] | 1 | 2021-09-14T01:28:43.000Z | 2021-09-14T01:28:43.000Z | pty/__init__.py | Rydeness/ptychogpu | 337d136b1b738ddbc3241144e49fa0129b7bcac1 | [
"MIT"
] | null | null | null | pty/__init__.py | Rydeness/ptychogpu | 337d136b1b738ddbc3241144e49fa0129b7bcac1 | [
"MIT"
] | 2 | 2021-09-14T01:28:42.000Z | 2021-09-16T00:08:59.000Z | from .pie import *
from .wdd import *
from .ssb import *
from .pty_utils import * | 20.25 | 24 | 0.716049 | 13 | 81 | 4.384615 | 0.538462 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 81 | 4 | 24 | 20.25 | 0.863636 | 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 |
a19045bf7d2e19f25e0626258925a3ac4297e7d1 | 125 | py | Python | info/moduels/user/__init__.py | haczfdx/information | 7364fb6eea54bb1d17b70c626cdceda129f99902 | [
"MIT"
] | null | null | null | info/moduels/user/__init__.py | haczfdx/information | 7364fb6eea54bb1d17b70c626cdceda129f99902 | [
"MIT"
] | null | null | null | info/moduels/user/__init__.py | haczfdx/information | 7364fb6eea54bb1d17b70c626cdceda129f99902 | [
"MIT"
] | null | null | null | """这个蓝图对应的是登录注册相关的操作"""
from flask import Blueprint
user_blue = Blueprint('user', __name__)
import info.moduels.user.views
| 17.857143 | 39 | 0.776 | 15 | 125 | 6.133333 | 0.733333 | 0.282609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104 | 125 | 6 | 40 | 20.833333 | 0.821429 | 0.136 | 0 | 0 | 0 | 0 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
a197006904377108462430660c440d0dc3911b28 | 74 | py | Python | survae/tests/nn/nets/__init__.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 262 | 2020-07-05T20:57:44.000Z | 2022-03-28T02:24:43.000Z | survae/tests/nn/nets/__init__.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 17 | 2020-08-15T05:43:34.000Z | 2022-01-31T12:24:21.000Z | survae/tests/nn/nets/__init__.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 35 | 2020-08-24T06:55:37.000Z | 2022-02-11T05:17:58.000Z | from .mlp import *
from .autoregressive import *
from .matching import *
| 14.8 | 29 | 0.743243 | 9 | 74 | 6.111111 | 0.555556 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175676 | 74 | 4 | 30 | 18.5 | 0.901639 | 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 |
a1b902e0a936293db8d03d8edefb592700f709b0 | 19 | py | Python | labot/__init__.py | hyperfraise/LaBot | 1150067a28aa0f2d4465270b1f84248facc09e91 | [
"MIT"
] | 47 | 2018-04-10T12:03:48.000Z | 2022-02-09T14:55:08.000Z | labot/__init__.py | hyperfraise/LaBot | 1150067a28aa0f2d4465270b1f84248facc09e91 | [
"MIT"
] | 23 | 2018-05-12T21:55:26.000Z | 2021-12-30T09:03:48.000Z | labot/__init__.py | hyperfraise/LaBot | 1150067a28aa0f2d4465270b1f84248facc09e91 | [
"MIT"
] | 31 | 2018-05-01T18:33:42.000Z | 2022-02-04T03:55:34.000Z | from . import logs
| 9.5 | 18 | 0.736842 | 3 | 19 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 19 | 1 | 19 | 19 | 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 | 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 |
b810a3dd2e550f8a10df8cfd23c0fa2343ccb54c | 201 | py | Python | tatter/tests/__init__.py | afarahi/tatter | e206b761baec0deb79ddc692a25bfd063f8d5ce1 | [
"MIT"
] | 2 | 2020-03-13T23:24:00.000Z | 2021-09-12T16:41:53.000Z | tatter/tests/__init__.py | afarahi/tatter | e206b761baec0deb79ddc692a25bfd063f8d5ce1 | [
"MIT"
] | 2 | 2021-06-17T01:37:10.000Z | 2021-06-17T01:56:22.000Z | tatter/tests/__init__.py | afarahi/tatter | e206b761baec0deb79ddc692a25bfd063f8d5ce1 | [
"MIT"
] | null | null | null |
from gaussian_vs_lognormal import test_gaussian_vs_lognormal
from cluster_catalog_comp import RM_clusters_consistency_check, RM_clusters_witness_function
from mnist_test import mnist_digits_distance | 33.5 | 92 | 0.920398 | 29 | 201 | 5.827586 | 0.62069 | 0.118343 | 0.224852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074627 | 201 | 6 | 93 | 33.5 | 0.908602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a7f39a24a4de48a99b2e55aecd516edb8bc51c7c | 139 | py | Python | sneruz/__init__.py | Sn00pbom/sneruz | 1bc1eb2986d419e43a258d9e19cb80c57e618b52 | [
"MIT"
] | null | null | null | sneruz/__init__.py | Sn00pbom/sneruz | 1bc1eb2986d419e43a258d9e19cb80c57e618b52 | [
"MIT"
] | null | null | null | sneruz/__init__.py | Sn00pbom/sneruz | 1bc1eb2986d419e43a258d9e19cb80c57e618b52 | [
"MIT"
] | null | null | null | from sneruz.prop import Prop
from sneruz.domain import Domain
from sneruz.util.truthtable import TruthTable
from sneruz.proof import Proof
| 27.8 | 45 | 0.848921 | 21 | 139 | 5.619048 | 0.380952 | 0.338983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115108 | 139 | 4 | 46 | 34.75 | 0.95935 | 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 |
c503596b830cdb9b9524b61a0a691a6ad5711585 | 70 | py | Python | utils/Generator.py | Zigars/Yolov4-Pytorch | 4f4291df2d43f97884345a154eb20191cef6f49f | [
"MIT"
] | 1 | 2021-07-06T13:18:41.000Z | 2021-07-06T13:18:41.000Z | utils/Generator.py | Zigars/Yolov4-Pytorch | 4f4291df2d43f97884345a154eb20191cef6f49f | [
"MIT"
] | null | null | null | utils/Generator.py | Zigars/Yolov4-Pytorch | 4f4291df2d43f97884345a154eb20191cef6f49f | [
"MIT"
] | null | null | null | '''
TODO
@Description:数据增强
@Author:Zigar
@Date:2021/03/29 09:09:45
''' | 11.666667 | 25 | 0.685714 | 12 | 70 | 4 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 0.085714 | 70 | 6 | 26 | 11.666667 | 0.53125 | 0.885714 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.166667 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c503b8505a013e55b9c96da7f3ba0e21600c114d | 108 | py | Python | core/exceptions.py | danmcelroy/VoSeq | e22bd5d971154170bf3f4f24b684b95a12418637 | [
"BSD-3-Clause"
] | 2 | 2019-08-20T04:16:12.000Z | 2020-08-25T02:05:12.000Z | core/exceptions.py | danmcelroy/VoSeq | e22bd5d971154170bf3f4f24b684b95a12418637 | [
"BSD-3-Clause"
] | 65 | 2016-09-27T23:14:51.000Z | 2022-03-19T14:17:58.000Z | core/exceptions.py | danmcelroy/VoSeq | e22bd5d971154170bf3f4f24b684b95a12418637 | [
"BSD-3-Clause"
] | 4 | 2018-07-02T16:57:44.000Z | 2021-03-23T02:12:15.000Z | class MissingReadingFrameForGene(Exception):
pass
class InadequateCodonPositions(Exception):
pass
| 15.428571 | 44 | 0.796296 | 8 | 108 | 10.75 | 0.625 | 0.302326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 108 | 6 | 45 | 18 | 0.934783 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
c50d2229a01918af2fef1df99ae4178607c10493 | 123,181 | py | Python | tests/v2/test_0914-types-and-forms.py | scikit-hep/awkward-1.0 | a440328f8097d22c2ba053fd117fed543829afc0 | [
"BSD-3-Clause"
] | 519 | 2019-10-17T12:36:22.000Z | 2022-03-26T23:28:19.000Z | tests/v2/test_0914-types-and-forms.py | scikit-hep/awkward-1.0 | a440328f8097d22c2ba053fd117fed543829afc0 | [
"BSD-3-Clause"
] | 924 | 2019-11-03T21:05:01.000Z | 2022-03-31T22:44:30.000Z | tests/v2/test_0914-types-and-forms.py | scikit-hep/awkward-1.0 | a440328f8097d22c2ba053fd117fed543829afc0 | [
"BSD-3-Clause"
] | 56 | 2019-12-17T15:49:22.000Z | 2022-03-09T20:34:06.000Z | # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
from __future__ import absolute_import
import pytest # noqa: F401
import numpy as np # noqa: F401
import awkward as ak # noqa: F401
pytestmark = pytest.mark.skipif(
ak._util.py27, reason="No Python 2.7 support in Awkward 2... | 28.854767 | 161 | 0.468765 | 10,106 | 123,181 | 5.520087 | 0.019197 | 0.050048 | 0.057272 | 0.044276 | 0.970172 | 0.964238 | 0.952156 | 0.926684 | 0.912953 | 0.865325 | 0 | 0.032791 | 0.366217 | 123,181 | 4,268 | 162 | 28.861528 | 0.681773 | 0.001559 | 0 | 0.681201 | 0 | 0.003574 | 0.251856 | 0.024906 | 0 | 0 | 0 | 0 | 0.096259 | 1 | 0.004765 | false | 0 | 0.000953 | 0 | 0.005718 | 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 |
c549469be341d0314d20ed8441e56aa198a21b25 | 6,775 | py | Python | runner_master/runner/transforms/image/common.py | bigvideoresearch/SCC | f26cdb6aaf248b5112812dbdac1f1b5086aebccc | [
"MIT"
] | 5 | 2021-09-15T21:48:55.000Z | 2022-03-22T11:21:58.000Z | runner_master/runner/transforms/image/common.py | bigvideoresearch/SCC | f26cdb6aaf248b5112812dbdac1f1b5086aebccc | [
"MIT"
] | null | null | null | runner_master/runner/transforms/image/common.py | bigvideoresearch/SCC | f26cdb6aaf248b5112812dbdac1f1b5086aebccc | [
"MIT"
] | 1 | 2021-08-20T08:40:15.000Z | 2021-08-20T08:40:15.000Z | from .. import image as run_trans
import torchvision.transforms as tvs_trans
from .interpolate_mapping import interpolate_any2int
STD_RATIO = 256 / 224
class PartialRemainTransform:
def __init__(self, trans1, trans2, partial=False):
if partial:
self.partial = tvs_trans.Compose(trans1)
... | 34.92268 | 103 | 0.597786 | 646 | 6,775 | 6 | 0.125387 | 0.063983 | 0.067337 | 0.076625 | 0.805986 | 0.78612 | 0.711816 | 0.711816 | 0.711816 | 0.711816 | 0 | 0.057725 | 0.296827 | 6,775 | 193 | 104 | 35.103627 | 0.755877 | 0 | 0 | 0.682927 | 0 | 0 | 0.012989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060976 | false | 0 | 0.018293 | 0.006098 | 0.140244 | 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 |
c568c77b4573ed93b9724b4a625a5adcde42b1d5 | 240 | py | Python | pdf_struct/__init__.py | koreyou/pdf-struct | 2a1549f21e63c9291f4daf62d7832b87ab20f7fd | [
"Apache-2.0"
] | 10 | 2021-11-08T14:40:23.000Z | 2022-03-29T13:57:33.000Z | pdf_struct/__init__.py | koreyou/pdf-struct | 2a1549f21e63c9291f4daf62d7832b87ab20f7fd | [
"Apache-2.0"
] | 1 | 2022-03-04T11:48:16.000Z | 2022-03-09T15:43:36.000Z | pdf_struct/__init__.py | koreyou/pdf-struct | 2a1549f21e63c9291f4daf62d7832b87ab20f7fd | [
"Apache-2.0"
] | 4 | 2021-12-25T22:12:06.000Z | 2022-03-13T17:44:10.000Z | from pdf_struct._version import __version__
from pdf_struct import core
from pdf_struct import export
from pdf_struct import feature_extractor
from pdf_struct import features
from pdf_struct import loader
from pdf_struct.cli import predict
| 30 | 43 | 0.875 | 38 | 240 | 5.184211 | 0.342105 | 0.248731 | 0.461929 | 0.482234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 240 | 7 | 44 | 34.285714 | 0.929245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3de9fcc4d67dc3ee6b33da3f386b3a7585b38834 | 240 | py | Python | python/taichi/types/__init__.py | hikaru-sysu/taichi | 73bd8451c306e87b0e159a4853d4b05f77c25458 | [
"MIT"
] | null | null | null | python/taichi/types/__init__.py | hikaru-sysu/taichi | 73bd8451c306e87b0e159a4853d4b05f77c25458 | [
"MIT"
] | null | null | null | python/taichi/types/__init__.py | hikaru-sysu/taichi | 73bd8451c306e87b0e159a4853d4b05f77c25458 | [
"MIT"
] | null | null | null | from taichi.types.annotations import *
from taichi.types.compound_types import *
from taichi.types.ndarray_type import *
from taichi.types.primitive_types import *
from taichi.types.quantized_types import *
from taichi.types.utils import *
| 34.285714 | 42 | 0.825 | 34 | 240 | 5.705882 | 0.323529 | 0.309278 | 0.463918 | 0.541237 | 0.402062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 240 | 6 | 43 | 40 | 0.898148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9a75df9ccdd1a2b7465e0bd7e23be58634b5291b | 104 | py | Python | app/diet_diary/__init__.py | MartinHeinz/LifestyleTracker | 87975b85c78182cd184b31f436c62967e76289ee | [
"MIT"
] | 2 | 2020-01-19T11:39:26.000Z | 2020-02-11T12:19:46.000Z | app/diet_diary/__init__.py | MartinHeinz/LifestyleTracker | 87975b85c78182cd184b31f436c62967e76289ee | [
"MIT"
] | null | null | null | app/diet_diary/__init__.py | MartinHeinz/LifestyleTracker | 87975b85c78182cd184b31f436c62967e76289ee | [
"MIT"
] | 2 | 2020-10-20T05:42:42.000Z | 2022-03-18T13:27:35.000Z | from flask import Blueprint
diet_diary = Blueprint('diet_diary', __name__)
from . import views # noqa | 20.8 | 46 | 0.769231 | 14 | 104 | 5.285714 | 0.642857 | 0.351351 | 0.486486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 104 | 5 | 47 | 20.8 | 0.840909 | 0.038462 | 0 | 0 | 0 | 0 | 0.10101 | 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 |
9a8d4e7cfd070a36be7a02a19bc05882e15007e1 | 217 | py | Python | App/__init__.py | passed-by/WeatherTornado | 05f1ccc56b93c3267d65fbee312de4b99fb1a5e4 | [
"MIT"
] | null | null | null | App/__init__.py | passed-by/WeatherTornado | 05f1ccc56b93c3267d65fbee312de4b99fb1a5e4 | [
"MIT"
] | null | null | null | App/__init__.py | passed-by/WeatherTornado | 05f1ccc56b93c3267d65fbee312de4b99fb1a5e4 | [
"MIT"
] | null | null | null | import tornado.web
from App.urls import patterns
from App.settings import app_settings
# 创建应用,并设置了路由规则
def make_app():
return tornado.web.Application(
handlers=patterns,
**app_settings,
)
| 14.466667 | 37 | 0.700461 | 27 | 217 | 5.518519 | 0.555556 | 0.221477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221198 | 217 | 14 | 38 | 15.5 | 0.881657 | 0.059908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.375 | 0.125 | 0.625 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
9acef8cd8484dfe998b9b4e90c87fb08ab29eea0 | 62 | py | Python | kats/models/reconciliation/__init__.py | menefotto/Kats | 3fc8a3f819502d45736734eabb3601f42a6b7759 | [
"MIT"
] | 1 | 2021-06-22T03:40:33.000Z | 2021-06-22T03:40:33.000Z | kats/models/reconciliation/__init__.py | menefotto/Kats | 3fc8a3f819502d45736734eabb3601f42a6b7759 | [
"MIT"
] | null | null | null | kats/models/reconciliation/__init__.py | menefotto/Kats | 3fc8a3f819502d45736734eabb3601f42a6b7759 | [
"MIT"
] | null | null | null | from . import base_models # noqa
from . import thm # noqa
| 20.666667 | 34 | 0.677419 | 9 | 62 | 4.555556 | 0.666667 | 0.487805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258065 | 62 | 2 | 35 | 31 | 0.891304 | 0.145161 | 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 |
b1110e26aa32f214eeedfe8ec1339ea35b5218de | 29 | py | Python | metatools/apps/__init__.py | westernx/metatools | dcaaf3402a4cda2a28f2a78e38fb6f1661fc9821 | [
"BSD-3-Clause"
] | 1 | 2016-09-18T14:22:06.000Z | 2016-09-18T14:22:06.000Z | metatools/apps/__init__.py | westernx/metatools | dcaaf3402a4cda2a28f2a78e38fb6f1661fc9821 | [
"BSD-3-Clause"
] | null | null | null | metatools/apps/__init__.py | westernx/metatools | dcaaf3402a4cda2a28f2a78e38fb6f1661fc9821 | [
"BSD-3-Clause"
] | null | null | null | from .build import build_app
| 14.5 | 28 | 0.827586 | 5 | 29 | 4.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 0.92 | 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 |
b12e8d1629246b707c6d3766ec5fadae0e4fdafd | 33 | py | Python | twython/streaming/__init__.py | vaidashwin/twython | cf01359855fecc28d300e4ae396ca8a984d3657d | [
"MIT"
] | 1,154 | 2015-01-02T02:39:41.000Z | 2022-03-30T12:04:03.000Z | twython/streaming/__init__.py | antrofranc-ai/twython | 0c405604285364457f3c309969f11ba68163bd05 | [
"MIT"
] | 213 | 2015-01-26T18:04:40.000Z | 2021-12-31T00:29:52.000Z | twython/streaming/__init__.py | antrofranc-ai/twython | 0c405604285364457f3c309969f11ba68163bd05 | [
"MIT"
] | 294 | 2015-01-04T22:33:20.000Z | 2022-03-29T16:47:36.000Z | from .api import TwythonStreamer
| 16.5 | 32 | 0.848485 | 4 | 33 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.965517 | 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 |
b1384967a66c0d2f6bbda69a98cd111084a128c0 | 19 | py | Python | final_project/machinetranslation/tests/__init__.py | rawan-alsubeai/xzceb-flask_eng_fr | 757f2509a534d105aa6eb186fb75e135b478c4d5 | [
"Apache-2.0"
] | null | null | null | final_project/machinetranslation/tests/__init__.py | rawan-alsubeai/xzceb-flask_eng_fr | 757f2509a534d105aa6eb186fb75e135b478c4d5 | [
"Apache-2.0"
] | null | null | null | final_project/machinetranslation/tests/__init__.py | rawan-alsubeai/xzceb-flask_eng_fr | 757f2509a534d105aa6eb186fb75e135b478c4d5 | [
"Apache-2.0"
] | null | null | null | from . import tests | 19 | 19 | 0.789474 | 3 | 19 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 19 | 1 | 19 | 19 | 0.9375 | 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 |
49627b7a7dffed9a99dee59fef7a708361b19a25 | 13,358 | py | Python | rnn/model.py | lorylei/DARTS-et | f22cfd53c14afd6ba602b8ecfbff9cdf77fc2ff8 | [
"Apache-2.0"
] | 1 | 2020-12-29T14:44:00.000Z | 2020-12-29T14:44:00.000Z | rnn/model.py | lorylei/DARTS-et | f22cfd53c14afd6ba602b8ecfbff9cdf77fc2ff8 | [
"Apache-2.0"
] | null | null | null | rnn/model.py | lorylei/DARTS-et | f22cfd53c14afd6ba602b8ecfbff9cdf77fc2ff8 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from operations import *
from torch.autograd import Variable
import math
# genotype = {'gene_encoder': [{'combine_func': 'cat', 'left_activation': 'Swish', 'left_input': 1, 'left_layer': 'SA_h8', 'left_norm': 'batch_norm', 'right_activation': 'Swish', ... | 47.537367 | 2,220 | 0.671732 | 1,912 | 13,358 | 4.387029 | 0.085251 | 0.025751 | 0.034096 | 0.02432 | 0.775751 | 0.773486 | 0.750119 | 0.727945 | 0.718884 | 0.705532 | 0 | 0.015572 | 0.158706 | 13,358 | 280 | 2,221 | 47.707143 | 0.730824 | 0.374981 | 0 | 0.598985 | 0 | 0 | 0.013809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071066 | false | 0 | 0.030457 | 0 | 0.172589 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
49718345ae9a1b1fa85cc8c274eba1c382d7af9c | 45,124 | py | Python | pymatflow/cp2k/base/dft_qs.py | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 6 | 2020-03-06T16:13:08.000Z | 2022-03-09T07:53:34.000Z | pymatflow/cp2k/base/dft_qs.py | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 1 | 2021-10-02T02:23:08.000Z | 2021-11-08T13:29:37.000Z | pymatflow/cp2k/base/dft_qs.py | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 1 | 2021-07-10T16:28:14.000Z | 2021-07-10T16:28:14.000Z | #!/usr/bin/env python
# _*_ coding: utf-8 _*_
# ============================
# CP2K / FORCE_EVAL / DFT / QS
# ============================
class cp2k_dft_qs_becke_constraint_atom_group:
def __init__(self):
self.params = {
}
self.status = False
def to_input(self, f... | 33.057875 | 89 | 0.507291 | 5,823 | 45,124 | 3.749442 | 0.019921 | 0.038382 | 0.039024 | 0.027665 | 0.889708 | 0.863464 | 0.848257 | 0.824577 | 0.817203 | 0.762195 | 0 | 0.008221 | 0.353005 | 45,124 | 1,364 | 90 | 33.082111 | 0.739613 | 0.039691 | 0 | 0.663673 | 0 | 0 | 0.082349 | 0.014055 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134731 | false | 0.04491 | 0 | 0 | 0.179641 | 0.016966 | 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 |
49962c3444128d6621caec65d1bc0622026f4654 | 8,856 | py | Python | test/test_beam_search.py | isl-mt/xnmt-isl | 0f25c8f7f90cd5fa39de03302219a66d640a44f0 | [
"Apache-2.0"
] | 4 | 2020-07-20T08:53:32.000Z | 2020-11-25T21:21:23.000Z | test/test_beam_search.py | isl-mt/xnmt-isl | 0f25c8f7f90cd5fa39de03302219a66d640a44f0 | [
"Apache-2.0"
] | null | null | null | test/test_beam_search.py | isl-mt/xnmt-isl | 0f25c8f7f90cd5fa39de03302219a66d640a44f0 | [
"Apache-2.0"
] | 1 | 2020-09-04T07:19:10.000Z | 2020-09-04T07:19:10.000Z | import unittest
import dynet as dy
from xnmt.modelparts.attenders import MlpAttender
from xnmt import batchers, event_trigger, events
from xnmt.modelparts.bridges import CopyBridge
from xnmt.modelparts.decoders import AutoRegressiveDecoder
from xnmt.modelparts.embedders import SimpleWordEmbedder
from xnmt.input_reade... | 49.2 | 160 | 0.699187 | 1,149 | 8,856 | 5.100087 | 0.122715 | 0.092833 | 0.120137 | 0.076451 | 0.790444 | 0.786519 | 0.786519 | 0.786519 | 0.786519 | 0.786519 | 0 | 0.012637 | 0.195799 | 8,856 | 179 | 161 | 49.47486 | 0.810166 | 0.007904 | 0 | 0.703947 | 0 | 0 | 0.052428 | 0.043766 | 0 | 0 | 0 | 0 | 0.059211 | 1 | 0.065789 | false | 0 | 0.105263 | 0 | 0.197368 | 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 |
77189984772302ccdb12bf55b593ebd933e3f408 | 19,743 | py | Python | tests/test_rules.py | zaibacu/rita-dsl | aea496ac1bc870646d12086d220eb216960d78f6 | [
"MIT"
] | 66 | 2019-07-17T05:23:04.000Z | 2022-03-15T12:06:06.000Z | tests/test_rules.py | zaibacu/rita-dsl | aea496ac1bc870646d12086d220eb216960d78f6 | [
"MIT"
] | 90 | 2019-07-18T10:21:13.000Z | 2021-11-09T19:54:57.000Z | tests/test_rules.py | zaibacu/rita-dsl | aea496ac1bc870646d12086d220eb216960d78f6 | [
"MIT"
] | 3 | 2020-08-20T06:57:11.000Z | 2022-03-03T16:11:45.000Z | import os.path
import re
import tempfile
import pytest
import rita
class TestSpacy(object):
@property
def punct(self):
return {'IS_PUNCT': True, 'OP': '?'}
def compiler(self, rules):
pytest.importorskip("spacy", minversion="2.1")
return rita.compile_string(rules, use_engine="spac... | 32.579208 | 130 | 0.476625 | 2,168 | 19,743 | 4.2131 | 0.083487 | 0.068645 | 0.0612 | 0.098861 | 0.834684 | 0.805671 | 0.788483 | 0.761988 | 0.724217 | 0.70878 | 0 | 0.025958 | 0.303399 | 19,743 | 605 | 131 | 32.633058 | 0.638188 | 0.005825 | 0 | 0.667304 | 0 | 0.038241 | 0.389911 | 0.190115 | 0 | 0 | 0 | 0 | 0.191205 | 1 | 0.09369 | false | 0 | 0.022945 | 0.007648 | 0.130019 | 0.082218 | 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 |
773114922f9d43539b6cd41def5d0bba0621825c | 125 | py | Python | lwrl/executions/__init__.py | sealday/lwrl | 52bcd67751e605c38db4afa609c58938c7034e8d | [
"MIT"
] | 2 | 2019-04-11T11:55:48.000Z | 2020-05-29T18:09:51.000Z | lwrl/executions/__init__.py | sealday/lwrl | 52bcd67751e605c38db4afa609c58938c7034e8d | [
"MIT"
] | 6 | 2021-06-01T22:21:00.000Z | 2022-03-11T23:24:36.000Z | lwrl/executions/__init__.py | sealday/lwrl | 52bcd67751e605c38db4afa609c58938c7034e8d | [
"MIT"
] | 1 | 2019-04-12T03:09:47.000Z | 2019-04-12T03:09:47.000Z | from lwrl.executions.runner import Runner
from lwrl.executions.threaded_runner import ThreadedRunner, threaded_agent_wrapper
| 41.666667 | 82 | 0.888 | 16 | 125 | 6.75 | 0.5625 | 0.148148 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072 | 125 | 2 | 83 | 62.5 | 0.931034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
91f26782088d79019bc4f02ecd720aa9fc815596 | 2,626 | py | Python | Assembler/tests/test_labels_beta.py | Laegluin/mikrorechner | 7e5e878072c941e422889465c43dea838b83e5fd | [
"MIT"
] | 1 | 2019-01-28T01:53:20.000Z | 2019-01-28T01:53:20.000Z | Assembler/tests/test_labels_beta.py | Laegluin/mikrorechner | 7e5e878072c941e422889465c43dea838b83e5fd | [
"MIT"
] | null | null | null | Assembler/tests/test_labels_beta.py | Laegluin/mikrorechner | 7e5e878072c941e422889465c43dea838b83e5fd | [
"MIT"
] | null | null | null | from tests import test
import labels as lb
def test_is_datastring():
test.assertTrue(lb.is_datastring('0xFfA'))
test.assertTrue(lb.is_datastring('-123645'))
test.assertTrue(lb.is_datastring('235'))
test.assertTrue(lb.is_datastring('0b0101001'))
test.assertFalse(lb.is_datastring('0xFfg'))
test.a... | 45.275862 | 113 | 0.706778 | 345 | 2,626 | 5.075362 | 0.15942 | 0.219303 | 0.246716 | 0.167904 | 0.81325 | 0.64763 | 0.436893 | 0.370074 | 0.370074 | 0.292404 | 0 | 0.020346 | 0.120335 | 2,626 | 57 | 114 | 46.070175 | 0.737662 | 0 | 0 | 0.042553 | 0 | 0 | 0.193979 | 0.008765 | 0 | 0 | 0.00686 | 0 | 0.680851 | 1 | 0.148936 | true | 0 | 0.042553 | 0 | 0.191489 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
62435c05a8fb288e12cbddb9e71791c87559c07f | 44 | py | Python | pytoso/main.py | yc19890920/Learn | 3990e75b469225ba7b430539ef9a16abe89eb863 | [
"Apache-2.0"
] | 1 | 2021-01-11T06:30:44.000Z | 2021-01-11T06:30:44.000Z | pytoso/main.py | yc19890920/Learn | 3990e75b469225ba7b430539ef9a16abe89eb863 | [
"Apache-2.0"
] | 23 | 2020-02-12T02:35:49.000Z | 2022-02-11T03:45:40.000Z | pytoso/main.py | yc19890920/Learn | 3990e75b469225ba7b430539ef9a16abe89eb863 | [
"Apache-2.0"
] | 2 | 2020-04-08T15:39:46.000Z | 2020-10-10T10:13:09.000Z | from ppp.utils import add
print(add(1, 3)) | 11 | 25 | 0.704545 | 9 | 44 | 3.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0.159091 | 44 | 4 | 26 | 11 | 0.783784 | 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 |
6264615defc693d7ec467590c14b66bfbc60a5a4 | 109 | py | Python | main.py | david-fischer/Anki_CardGen | 909d088ed4e98b97f65a2c896dc607941b00e4da | [
"MIT"
] | 2 | 2021-01-11T08:59:57.000Z | 2021-02-01T12:15:30.000Z | main.py | david-fischer/Anki_CardGen | 909d088ed4e98b97f65a2c896dc607941b00e4da | [
"MIT"
] | null | null | null | main.py | david-fischer/Anki_CardGen | 909d088ed4e98b97f65a2c896dc607941b00e4da | [
"MIT"
] | null | null | null | from acg import BASE_PATH
from acg.main import main
from acg.utils import CD
with CD(BASE_PATH):
main()
| 15.571429 | 25 | 0.752294 | 20 | 109 | 4 | 0.45 | 0.2625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183486 | 109 | 6 | 26 | 18.166667 | 0.898876 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
02f561fca764c32764a026947f5e6eddb893cbd6 | 17 | py | Python | tests/network/globals/test_functionalities.py | montefesp/REplan | e1eb0e80fa3c087e07f3d0c7601534aaf93ac7b7 | [
"MIT"
] | 1 | 2021-12-10T14:13:37.000Z | 2021-12-10T14:13:37.000Z | tests/network/globals/test_functionalities.py | montefesp/replan | e1eb0e80fa3c087e07f3d0c7601534aaf93ac7b7 | [
"MIT"
] | null | null | null | tests/network/globals/test_functionalities.py | montefesp/replan | e1eb0e80fa3c087e07f3d0c7601534aaf93ac7b7 | [
"MIT"
] | null | null | null | # TODO: complete
| 8.5 | 16 | 0.705882 | 2 | 17 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 17 | 1 | 17 | 17 | 0.857143 | 0.823529 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 1 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f3234f246be60595a44143704dd5fefd8e30a384 | 42 | py | Python | app/managers/__init__.py | actini/storage-manager | 0f6995fe65e2ed8dd862ffd03b52c3808c0ff873 | [
"MIT"
] | null | null | null | app/managers/__init__.py | actini/storage-manager | 0f6995fe65e2ed8dd862ffd03b52c3808c0ff873 | [
"MIT"
] | null | null | null | app/managers/__init__.py | actini/storage-manager | 0f6995fe65e2ed8dd862ffd03b52c3808c0ff873 | [
"MIT"
] | null | null | null | from .mongodbmanager import MongoDBManager | 42 | 42 | 0.904762 | 4 | 42 | 9.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 42 | 1 | 42 | 42 | 0.974359 | 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 |
b83796d331da10b07da497761a2b6f4cea0afc63 | 227 | py | Python | python_modules/libraries/dagster-twilio/dagster_twilio/__init__.py | dbatten5/dagster | d76e50295054ffe5a72f9b292ef57febae499528 | [
"Apache-2.0"
] | 4,606 | 2018-06-21T17:45:20.000Z | 2022-03-31T23:39:42.000Z | python_modules/libraries/dagster-twilio/dagster_twilio/__init__.py | dbatten5/dagster | d76e50295054ffe5a72f9b292ef57febae499528 | [
"Apache-2.0"
] | 6,221 | 2018-06-12T04:36:01.000Z | 2022-03-31T21:43:05.000Z | python_modules/libraries/dagster-twilio/dagster_twilio/__init__.py | dbatten5/dagster | d76e50295054ffe5a72f9b292ef57febae499528 | [
"Apache-2.0"
] | 619 | 2018-08-22T22:43:09.000Z | 2022-03-31T22:48:06.000Z | from dagster.core.utils import check_dagster_package_version
from .resources import twilio_resource
from .version import __version__
check_dagster_package_version("dagster-twilio", __version__)
__all__ = ["twilio_resource"]
| 25.222222 | 60 | 0.845815 | 28 | 227 | 6.142857 | 0.428571 | 0.139535 | 0.22093 | 0.302326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088106 | 227 | 8 | 61 | 28.375 | 0.830918 | 0 | 0 | 0 | 0 | 0 | 0.127753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b85bd6c3d8e28dfb86e4de2d2882f26281c8fd69 | 4,789 | py | Python | tests/test_gget_muscle.py | lauraluebbert/gget | 43b24f46e910ee88af9b62f649d386cdfa3354b1 | [
"MIT"
] | 3 | 2022-02-22T03:28:31.000Z | 2022-03-01T23:30:33.000Z | tests/test_gget_muscle.py | lauraluebbert/gget | 43b24f46e910ee88af9b62f649d386cdfa3354b1 | [
"MIT"
] | null | null | null | tests/test_gget_muscle.py | lauraluebbert/gget | 43b24f46e910ee88af9b62f649d386cdfa3354b1 | [
"MIT"
] | null | null | null | import unittest
# Library to test functions that have calls to print()
from unittest import mock
import os
import contextlib
import filecmp
from gget.gget_muscle import muscle
class TestMuscle(unittest.TestCase):
def test_muscle_nt(self):
# File with sequences to align
fasta = "tests/fixtures/mu... | 33.256944 | 97 | 0.634162 | 602 | 4,789 | 4.933555 | 0.177741 | 0.091919 | 0.07037 | 0.063973 | 0.831987 | 0.79697 | 0.755892 | 0.755892 | 0.755892 | 0.755892 | 0 | 0.01087 | 0.269994 | 4,789 | 143 | 98 | 33.48951 | 0.838673 | 0.201295 | 0 | 0.542169 | 0 | 0.012048 | 0.26048 | 0.166886 | 0 | 0 | 0 | 0 | 0.072289 | 1 | 0.13253 | false | 0 | 0.072289 | 0 | 0.26506 | 0.048193 | 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 |
b86c75bd7baf069c9410eb4e2e4e200bc3630b89 | 143 | py | Python | file_import_export/urls.py | sharif-42/News_Aggregation_System | 8df4b562e57410bf059bb38367a14ac5ba12fb00 | [
"MIT"
] | null | null | null | file_import_export/urls.py | sharif-42/News_Aggregation_System | 8df4b562e57410bf059bb38367a14ac5ba12fb00 | [
"MIT"
] | 4 | 2021-03-19T02:55:45.000Z | 2021-06-10T19:08:12.000Z | file_import_export/urls.py | sharif-42/News_Aggregation_System | 8df4b562e57410bf059bb38367a14ac5ba12fb00 | [
"MIT"
] | null | null | null | from django.urls import path, include
from .views import import_export_data
urlpatterns = [
path('news-processor/', import_export_data)
]
| 20.428571 | 47 | 0.769231 | 19 | 143 | 5.578947 | 0.631579 | 0.226415 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13986 | 143 | 6 | 48 | 23.833333 | 0.861789 | 0 | 0 | 0 | 0 | 0 | 0.104895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 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 |
b8a623d1edd1a87f5ab63636685bf870ba40ca4e | 128 | py | Python | transformers_interpret/explainers/__init__.py | MichalMalyska/transformers-interpret | 878ec4b6928e2417a3ffe8499be52033938090f0 | [
"Apache-2.0"
] | 1 | 2021-07-06T21:07:49.000Z | 2021-07-06T21:07:49.000Z | transformers_interpret/explainers/__init__.py | MichalMalyska/transformers-interpret | 878ec4b6928e2417a3ffe8499be52033938090f0 | [
"Apache-2.0"
] | null | null | null | transformers_interpret/explainers/__init__.py | MichalMalyska/transformers-interpret | 878ec4b6928e2417a3ffe8499be52033938090f0 | [
"Apache-2.0"
] | null | null | null | from .question_answering import QuestionAnsweringExplainer
from .sequence_classification import SequenceClassificationExplainer
| 42.666667 | 68 | 0.921875 | 10 | 128 | 11.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 128 | 2 | 69 | 64 | 0.966667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b229c562203fd99d0baecd8100ebda42038568d6 | 36 | py | Python | src/case_rate/cli/__init__.py | richengguy/case-rate | 4486343d091cbf3be1a850c0bef28c2c9da4c0a6 | [
"BSD-3-Clause"
] | null | null | null | src/case_rate/cli/__init__.py | richengguy/case-rate | 4486343d091cbf3be1a850c0bef28c2c9da4c0a6 | [
"BSD-3-Clause"
] | null | null | null | src/case_rate/cli/__init__.py | richengguy/case-rate | 4486343d091cbf3be1a850c0bef28c2c9da4c0a6 | [
"BSD-3-Clause"
] | 1 | 2021-10-25T00:03:14.000Z | 2021-10-25T00:03:14.000Z | from .cli import main # noqa: F401
| 18 | 35 | 0.694444 | 6 | 36 | 4.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 0.222222 | 36 | 1 | 36 | 36 | 0.785714 | 0.277778 | 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 |
a28449f5194c6ada88d6d0133300d04ed9f67bfc | 403 | py | Python | tests/test_django_proj/app/views.py | HakurouKen/django-auto-route | 1f98ba24cb04e271b2c475524eb797a1bc12ae56 | [
"MIT"
] | null | null | null | tests/test_django_proj/app/views.py | HakurouKen/django-auto-route | 1f98ba24cb04e271b2c475524eb797a1bc12ae56 | [
"MIT"
] | null | null | null | tests/test_django_proj/app/views.py | HakurouKen/django-auto-route | 1f98ba24cb04e271b2c475524eb797a1bc12ae56 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.http import HttpResponse
from autoroute import route
@route()
def auto_generated(request):
return HttpResponse("A default auto-generated route")
@route(name='with-name')
def with_name(request):
return HttpResponse("A route with name.")
@route(url='/custom/',name='custom-na... | 25.1875 | 57 | 0.727047 | 55 | 403 | 5.272727 | 0.418182 | 0.134483 | 0.258621 | 0.17931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002857 | 0.131514 | 403 | 15 | 58 | 26.866667 | 0.825714 | 0.052109 | 0 | 0 | 1 | 0 | 0.260526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.272727 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
a2a51b6d9c03750552a501e7c016162250ed91c3 | 12,259 | py | Python | ecsclient/common/monitoring/dashboard.py | lipak2345/python-ecsclient | d3f61497348f7c89c760c036d010aa6ca1317c22 | [
"Apache-2.0"
] | null | null | null | ecsclient/common/monitoring/dashboard.py | lipak2345/python-ecsclient | d3f61497348f7c89c760c036d010aa6ca1317c22 | [
"Apache-2.0"
] | null | null | null | ecsclient/common/monitoring/dashboard.py | lipak2345/python-ecsclient | d3f61497348f7c89c760c036d010aa6ca1317c22 | [
"Apache-2.0"
] | null | null | null | # Standard lib imports
import logging
# Third party imports
# None
# Project level imports
# None
log = logging.getLogger(__name__)
class Dashboard(object):
def __init__(self, connection):
"""
Initialize a new instance
"""
self.conn = connection
def get_local_zone(self, *... | 26.883772 | 102 | 0.555347 | 1,347 | 12,259 | 4.946548 | 0.083148 | 0.048026 | 0.033618 | 0.040822 | 0.875431 | 0.866877 | 0.835059 | 0.775026 | 0.751763 | 0.721897 | 0 | 0.002463 | 0.337711 | 12,259 | 455 | 103 | 26.942857 | 0.818204 | 0.275308 | 0 | 0.654321 | 0 | 0 | 0.225764 | 0.058483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104938 | false | 0 | 0.006173 | 0 | 0.216049 | 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 |
a2c99c67067d0e9fd54ac9db1406ffcbab3fb8b7 | 38 | py | Python | api/__init__.py | satyamroy001/Magnum | 7311b861514e039be48d72cfb3bfb6145f06d3dd | [
"MIT"
] | 2 | 2021-01-31T04:33:25.000Z | 2022-03-05T03:34:57.000Z | api/__init__.py | satyamroy001/Magnum | 7311b861514e039be48d72cfb3bfb6145f06d3dd | [
"MIT"
] | null | null | null | api/__init__.py | satyamroy001/Magnum | 7311b861514e039be48d72cfb3bfb6145f06d3dd | [
"MIT"
] | null | null | null | """Exports GPT"""
from .gpt import *
| 9.5 | 18 | 0.605263 | 5 | 38 | 4.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 38 | 3 | 19 | 12.666667 | 0.741935 | 0.289474 | 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 |
a2e5d16805050250e4444720f22b21983d1baac8 | 172,437 | py | Python | RLBotPack/Kamael/beard_states.py | FootlessQuill54/RLBotPack | 6960df7cd7d35e9af6d082c808b1bd3983f17823 | [
"MIT"
] | null | null | null | RLBotPack/Kamael/beard_states.py | FootlessQuill54/RLBotPack | 6960df7cd7d35e9af6d082c808b1bd3983f17823 | [
"MIT"
] | null | null | null | RLBotPack/Kamael/beard_states.py | FootlessQuill54/RLBotPack | 6960df7cd7d35e9af6d082c808b1bd3983f17823 | [
"MIT"
] | null | null | null | from beard_utilities import *
import math
from rlbot.agents.base_agent import BaseAgent, SimpleControllerState
from rlbot.utils.structures.game_data_struct import GameTickPacket
from rlbot.utils.game_state_util import (
GameState,
BallState,
CarState,
Physics,
Vector3,
Rotator,
)
import random
... | 37.227332 | 246 | 0.501169 | 16,221 | 172,437 | 5.219407 | 0.046236 | 0.072392 | 0.01793 | 0.019749 | 0.808443 | 0.761693 | 0.734244 | 0.701337 | 0.682628 | 0.661533 | 0 | 0.025264 | 0.415126 | 172,437 | 4,631 | 247 | 37.23537 | 0.814207 | 0.161688 | 0 | 0.723533 | 0 | 0.000605 | 0.006469 | 0.001188 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03176 | false | 0.000302 | 0.001815 | 0.003932 | 0.121597 | 0.00121 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a74126eceee0e97f36e2476a01cb78c7b5f4037e | 356,526 | py | Python | src/windows/RMF_HDF5.py | salilab/rmf_chimerax | c744866f3bc8777a9aae56d9eee5bf2b0fce3419 | [
"MIT"
] | null | null | null | src/windows/RMF_HDF5.py | salilab/rmf_chimerax | c744866f3bc8777a9aae56d9eee5bf2b0fce3419 | [
"MIT"
] | null | null | null | src/windows/RMF_HDF5.py | salilab/rmf_chimerax | c744866f3bc8777a9aae56d9eee5bf2b0fce3419 | [
"MIT"
] | null | null | null | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def... | 40.648273 | 204 | 0.687602 | 39,736 | 356,526 | 5.595656 | 0.010117 | 0.065923 | 0.066418 | 0.016132 | 0.835317 | 0.792452 | 0.731233 | 0.691692 | 0.607275 | 0.506429 | 0 | 0.01989 | 0.200973 | 356,526 | 8,770 | 205 | 40.652908 | 0.760628 | 0.307576 | 0 | 0.562191 | 1 | 0 | 0.018665 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.283565 | false | 0.000449 | 0.004266 | 0.00247 | 0.760889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
a76a4a0dadc7692a808b833e00c197559d120526 | 10,924 | py | Python | tests/tools/wapiti/test_parser.py | owtf/ptp | b43e581d7646330810f526432c689c3d88995df9 | [
"BSD-3-Clause"
] | 23 | 2015-03-22T09:18:35.000Z | 2022-03-10T23:28:13.000Z | tests/tools/wapiti/test_parser.py | owtf/ptp | b43e581d7646330810f526432c689c3d88995df9 | [
"BSD-3-Clause"
] | 22 | 2015-07-12T12:23:40.000Z | 2017-02-26T12:39:48.000Z | tests/tools/wapiti/test_parser.py | owtf/ptp | b43e581d7646330810f526432c689c3d88995df9 | [
"BSD-3-Clause"
] | 14 | 2015-06-03T19:16:22.000Z | 2022-03-10T23:28:15.000Z | # -*- coding: UTF-8 -*-
import mock
import unittest
from lxml import etree
from hamcrest import assert_that, has_entry, has_item, has_items, is_not
from ptp.libptp.constants import UNKNOWN, INFO, LOW, MEDIUM, HIGH
from ptp.libptp.exceptions import NotSupportedVersionError
from ptp.tools.wapiti.parser import WapitiXML... | 58.731183 | 397 | 0.725009 | 1,351 | 10,924 | 5.46336 | 0.092524 | 0.067064 | 0.104322 | 0.043896 | 0.884704 | 0.884704 | 0.884704 | 0.881452 | 0.862485 | 0.834846 | 0 | 0.017832 | 0.168345 | 10,924 | 185 | 398 | 59.048649 | 0.794606 | 0.018125 | 0 | 0.661972 | 0 | 0.014085 | 0.21803 | 0.101573 | 0 | 0 | 0 | 0 | 0.161972 | 1 | 0.133803 | false | 0 | 0.161972 | 0.007042 | 0.309859 | 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 |
a78a08f7b70bcd7d25516db43c076a2d817e62ec | 14,057 | py | Python | smartsheet/discussions.py | Funtimes-Smarts/Python-import-Smart | ffb99887d03e31d10da553c9ee8c7be1238816fc | [
"Apache-2.0"
] | null | null | null | smartsheet/discussions.py | Funtimes-Smarts/Python-import-Smart | ffb99887d03e31d10da553c9ee8c7be1238816fc | [
"Apache-2.0"
] | null | null | null | smartsheet/discussions.py | Funtimes-Smarts/Python-import-Smart | ffb99887d03e31d10da553c9ee8c7be1238816fc | [
"Apache-2.0"
] | null | null | null | # pylint: disable=C0111,R0902,R0913
# Smartsheet Python SDK.
#
# Copyright 2016 Smartsheet.com, Inc.
#
# 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/LICE... | 34.453431 | 88 | 0.591663 | 1,557 | 14,057 | 5.06808 | 0.123956 | 0.047903 | 0.018122 | 0.023064 | 0.839818 | 0.822709 | 0.775567 | 0.742111 | 0.730833 | 0.719427 | 0 | 0.003684 | 0.30483 | 14,057 | 408 | 89 | 34.453431 | 0.803827 | 0.298001 | 0 | 0.664706 | 0 | 0 | 0.187268 | 0.049826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082353 | false | 0 | 0.029412 | 0 | 0.194118 | 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 |
a7dca45e8c39042ead1502ecb2864b7e509590a9 | 217 | py | Python | src/pydrs/bsmp/__init__.py | lnls-sirius/pydrs | 4e44cf0272fcf0020139a6c176a708b4642a644a | [
"MIT"
] | null | null | null | src/pydrs/bsmp/__init__.py | lnls-sirius/pydrs | 4e44cf0272fcf0020139a6c176a708b4642a644a | [
"MIT"
] | 1 | 2022-01-14T14:59:09.000Z | 2022-01-21T18:48:32.000Z | src/pydrs/bsmp/__init__.py | lnls-sirius/pydrs | 4e44cf0272fcf0020139a6c176a708b4642a644a | [
"MIT"
] | 1 | 2022-01-14T14:54:14.000Z | 2022-01-14T14:54:14.000Z | from .command import CommonPSBSMP
from .entities import EntitiesPS, Parameter, Parameters
from .interface import SerialInterface
__all__ = ["CommonPSBSMP", "SerialInterface", "EntitiesPS", "Parameter", "Parameters"]
| 36.166667 | 86 | 0.797235 | 20 | 217 | 8.45 | 0.55 | 0.224852 | 0.343195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101382 | 217 | 5 | 87 | 43.4 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.258065 | 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 |
ac00fae6d3100df3adc8da00d4c54068e68d2ba2 | 6,662 | py | Python | tests/test_elasticsearch.py | kohtoa15/zubbi | 479d8d88e306915d93e8bf88a395a79ee88fffdc | [
"Apache-2.0"
] | 17 | 2018-11-09T11:56:50.000Z | 2022-01-20T08:50:56.000Z | tests/test_elasticsearch.py | kohtoa15/zubbi | 479d8d88e306915d93e8bf88a395a79ee88fffdc | [
"Apache-2.0"
] | 8 | 2019-02-26T00:39:14.000Z | 2021-03-10T13:57:14.000Z | tests/test_elasticsearch.py | kohtoa15/zubbi | 479d8d88e306915d93e8bf88a395a79ee88fffdc | [
"Apache-2.0"
] | 2 | 2019-02-26T09:03:56.000Z | 2021-03-16T07:12:23.000Z | import ssl
from unittest import mock
import elasticsearch_dsl
import pytest
from elasticsearch_dsl.serializer import serializer
from zubbi.models import (
AnsibleRole,
GitRepo,
init_elasticsearch_con,
ZuulJob,
ZuulTenant,
)
@pytest.fixture(scope="function")
def elmock():
with mock.patch.obje... | 32.656863 | 90 | 0.680126 | 875 | 6,662 | 5.004571 | 0.176 | 0.02375 | 0.050468 | 0.015072 | 0.787166 | 0.76296 | 0.746746 | 0.746746 | 0.728934 | 0.717515 | 0 | 0.017996 | 0.207595 | 6,662 | 203 | 91 | 32.817734 | 0.811517 | 0.188082 | 0 | 0.627737 | 0 | 0 | 0.170071 | 0 | 0 | 0 | 0 | 0 | 0.138686 | 1 | 0.065693 | false | 0.080292 | 0.043796 | 0 | 0.109489 | 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 |
ac10052d36898da2e1d7229b4f1e0db5ab5a942a | 342 | py | Python | Codewars/8kyu/nba-full-48-minutes-average/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codewars/8kyu/nba-full-48-minutes-average/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codewars/8kyu/nba-full-48-minutes-average/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python - 2.7.6
test.assert_equals(nba_extrap(12, 20), 28.8)
test.assert_equals(nba_extrap(10, 10), 48.0)
test.assert_equals(nba_extrap(5, 17), 14.1)
test.assert_equals(nba_extrap(0, 0), 0)
test.assert_equals(nba_extrap(30.8, 34.7), 42.6) # Russell Westbrook 1/15/17
test.assert_equals(nba_extrap(22.9, 33.8), 32.5) ... | 42.75 | 77 | 0.72807 | 71 | 342 | 3.338028 | 0.450704 | 0.253165 | 0.405063 | 0.481013 | 0.64135 | 0.219409 | 0 | 0 | 0 | 0 | 0 | 0.174194 | 0.093567 | 342 | 8 | 78 | 42.75 | 0.590323 | 0.178363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ac1a0f783b0f7ff748803fe5723c62d1e10dde19 | 34 | py | Python | 2019/## Python/Basico-MacBook-Ed/NaoEhHelloWorld3.py | ed1rac/AulasEstruturasDados | 1a351abee539a2be5e73cba60a61c3225c80164b | [
"MIT"
] | 8 | 2016-05-06T01:07:21.000Z | 2021-05-27T16:30:17.000Z | 2019/## Python/Basico-MacBook-Ed/NaoEhHelloWorld3.py | ed1rac/AulasEstruturasDados | 1a351abee539a2be5e73cba60a61c3225c80164b | [
"MIT"
] | null | null | null | 2019/## Python/Basico-MacBook-Ed/NaoEhHelloWorld3.py | ed1rac/AulasEstruturasDados | 1a351abee539a2be5e73cba60a61c3225c80164b | [
"MIT"
] | 3 | 2017-06-24T00:49:53.000Z | 2018-03-29T02:09:17.000Z | print("Não é um HELLO WORLD!!!!")
| 17 | 33 | 0.617647 | 6 | 34 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 34 | 1 | 34 | 34 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
ac334fbcc359be189952b8fd5ed1999a1240ea65 | 486 | py | Python | educative/slidingWindow/find_permutation.py | monishshah18/python-cp-cheatsheet | a5514b08816959de1198156f7764c54a7a585f20 | [
"Apache-2.0"
] | 140 | 2020-10-21T13:23:52.000Z | 2022-03-31T15:09:45.000Z | educative/slidingWindow/find_permutation.py | stacykutyepov/python-cp-cheatsheet | a00a57e1b36433648d1cace331e15ff276cef189 | [
"Apache-2.0"
] | 1 | 2021-07-22T14:01:25.000Z | 2021-07-22T14:01:25.000Z | educative/slidingWindow/find_permutation.py | stacykutyepov/python-cp-cheatsheet | a00a57e1b36433648d1cace331e15ff276cef189 | [
"Apache-2.0"
] | 33 | 2020-10-21T14:17:02.000Z | 2022-03-25T11:25:03.000Z | """
time: 19min
errors:
misread directions, didn't go into big example
permcount = 0
Mis leveled if statement
"""
def find_permutation(str, pattern):
return False
def main():
print('Permutation exist: ' + str(find_permutation("oidbcaf", "abc")))
print('Permutation exist: ' + str(find_permutation("odicf", "dc... | 21.130435 | 80 | 0.695473 | 59 | 486 | 5.644068 | 0.576271 | 0.225225 | 0.252252 | 0.288288 | 0.468468 | 0.468468 | 0 | 0 | 0 | 0 | 0 | 0.007177 | 0.139918 | 486 | 22 | 81 | 22.090909 | 0.789474 | 0.218107 | 0 | 0 | 0 | 0 | 0.319892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.375 | 0.5 | 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 | 0 | 1 | 0 | 6 |
ac34514b121e2c2a77e3099e51364e3fa0b62b4c | 18,891 | py | Python | custom_components/ipx800v5/light.py | Aohzan/ipx800v5 | 2aeaa6e7f5f9cb19469d334fc13ce6aab19441b6 | [
"Apache-2.0"
] | 2 | 2021-12-03T23:53:22.000Z | 2022-01-20T10:53:05.000Z | custom_components/ipx800v5/light.py | Aohzan/ipx800v5 | 2aeaa6e7f5f9cb19469d334fc13ce6aab19441b6 | [
"Apache-2.0"
] | 3 | 2021-12-06T21:28:54.000Z | 2022-01-20T10:16:30.000Z | custom_components/ipx800v5/light.py | Aohzan/ipx800v5 | 2aeaa6e7f5f9cb19469d334fc13ce6aab19441b6 | [
"Apache-2.0"
] | null | null | null | """Support for IPX800 V5 lights."""
from asyncio import gather as async_gather
import logging
from pypx800v5 import IPX800, X8R, XPWM, IPX800Relay, XDimmer
from pypx800v5.const import EXT_X8R, EXT_XDIMMER, EXT_XPWM, IPX
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
ATTR_RGB_COLOR,
ATTR_RGB... | 36.896484 | 88 | 0.60685 | 2,102 | 18,891 | 5.161275 | 0.074691 | 0.065813 | 0.061388 | 0.038529 | 0.842658 | 0.817771 | 0.795834 | 0.774081 | 0.740621 | 0.720343 | 0 | 0.028062 | 0.296385 | 18,891 | 511 | 89 | 36.968689 | 0.788143 | 0.052724 | 0 | 0.647643 | 0 | 0 | 0.003517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049628 | false | 0 | 0.029777 | 0 | 0.129032 | 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 |
3ba3ec4876e7b21dc208751382042621a4cdf030 | 32,899 | py | Python | impohhciscofmcapi/impohhfmcapi.py | impohh/impohhciscofmcapi | daa0f95473aa6de727b1687d77bb66d38d7b9559 | [
"MIT"
] | null | null | null | impohhciscofmcapi/impohhfmcapi.py | impohh/impohhciscofmcapi | daa0f95473aa6de727b1687d77bb66d38d7b9559 | [
"MIT"
] | null | null | null | impohhciscofmcapi/impohhfmcapi.py | impohh/impohhciscofmcapi | daa0f95473aa6de727b1687d77bb66d38d7b9559 | [
"MIT"
] | null | null | null | #
# Generated FMC REST API sample script
#
import json
import sys
import requests
import os
import time
from openpyxl import Workbook
from openpyxl.styles import Color, Border, Side, PatternFill, Font, GradientFill, Alignment, colors
## Function Connect API FMC ##
def connect(server,username,password):
... | 45.128944 | 154 | 0.496246 | 3,306 | 32,899 | 4.753479 | 0.067151 | 0.098759 | 0.048107 | 0.064143 | 0.817308 | 0.797455 | 0.713777 | 0.700795 | 0.69965 | 0.688832 | 0 | 0.007118 | 0.33387 | 32,899 | 728 | 155 | 45.190934 | 0.70997 | 0.194839 | 0 | 0.620283 | 1 | 0 | 0.150899 | 0.026521 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014151 | false | 0.023585 | 0.016509 | 0 | 0.033019 | 0.106132 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 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 |
3beaadba30d1dd0a6e1aa97a1c80373815ba88fa | 96 | py | Python | venv/lib/python3.8/site-packages/pip/_internal/utils/logging.py | Retraces/UkraineBot | 3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71 | [
"MIT"
] | 2 | 2022-03-13T01:58:52.000Z | 2022-03-31T06:07:54.000Z | venv/lib/python3.8/site-packages/pip/_internal/utils/logging.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/pip/_internal/utils/logging.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/13/95/44/d67fa9aa075de436a33d03caa66bbb56925577b7408617633d936c6231 | 96 | 96 | 0.895833 | 9 | 96 | 9.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.479167 | 0 | 96 | 1 | 96 | 96 | 0.416667 | 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 |
ce10c1346950cb743a3357d3225ec5885664acda | 4,988 | py | Python | tests/test_client_device.py | buttplugio/buttplug-py | ad1972e23143beb5fcb67586f1612d264f87fb17 | [
"Apache-2.0"
] | 58 | 2018-11-06T12:08:33.000Z | 2022-02-18T07:10:48.000Z | tests/test_client_device.py | buttplugio/buttplug-py | ad1972e23143beb5fcb67586f1612d264f87fb17 | [
"Apache-2.0"
] | 13 | 2019-07-23T01:54:00.000Z | 2021-06-11T17:54:14.000Z | tests/test_client_device.py | buttplugio/buttplug-py | ad1972e23143beb5fcb67586f1612d264f87fb17 | [
"Apache-2.0"
] | 11 | 2019-10-16T03:11:15.000Z | 2022-02-25T02:40:49.000Z | import unittest
import pytest
import logging
from buttplug.core import (ButtplugMessage, Ok, Error, ButtplugErrorCode,
Test, DeviceAdded, MessageAttributes, DeviceRemoved,
DeviceInfo, DeviceList, VibrateCmd, SpeedSubcommand,
RotateCmd, Rot... | 42.271186 | 80 | 0.511828 | 428 | 4,988 | 5.808411 | 0.142523 | 0.014481 | 0.061545 | 0.079646 | 0.821802 | 0.821802 | 0.821802 | 0.821802 | 0.796862 | 0.791231 | 0 | 0.032598 | 0.391139 | 4,988 | 117 | 81 | 42.632479 | 0.785973 | 0 | 0 | 0.65625 | 0 | 0 | 0.077386 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 1 | 0.010417 | false | 0 | 0.052083 | 0 | 0.072917 | 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 |
023c62ffe1968741991a1389ca252e983c634d12 | 31,849 | py | Python | user/views/user_view.py | dev-jochland/Employee-Management-System | e4a1e87b7bd9b72a2fa6eaf11293eaad50803ad8 | [
"MIT"
] | null | null | null | user/views/user_view.py | dev-jochland/Employee-Management-System | e4a1e87b7bd9b72a2fa6eaf11293eaad50803ad8 | [
"MIT"
] | null | null | null | user/views/user_view.py | dev-jochland/Employee-Management-System | e4a1e87b7bd9b72a2fa6eaf11293eaad50803ad8 | [
"MIT"
] | null | null | null | import re
from django.db import transaction, IntegrityError
from django.utils.translation import gettext_lazy as _
from rest_framework import status, viewsets
from rest_framework.decorators import action
from rest_framework.exceptions import ValidationError
from rest_framework.response import Response
import user.ser... | 64.211694 | 120 | 0.611291 | 3,379 | 31,849 | 5.504587 | 0.069251 | 0.066237 | 0.072258 | 0.068441 | 0.874946 | 0.851828 | 0.82543 | 0.780538 | 0.764731 | 0.737849 | 0 | 0.01182 | 0.293384 | 31,849 | 495 | 121 | 64.341414 | 0.814663 | 0.008038 | 0 | 0.625277 | 0 | 0.002217 | 0.110467 | 0.00228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031042 | false | 0.008869 | 0.028825 | 0 | 0.261641 | 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 |
5a115d2b6501f5da6415c49552e4ed0c6f4d1002 | 147 | py | Python | src/main/calc_02.py | Hacksbr/cov-test | 7ccf209e7f996c5281edba5ab2ad250e3004cb16 | [
"MIT"
] | null | null | null | src/main/calc_02.py | Hacksbr/cov-test | 7ccf209e7f996c5281edba5ab2ad250e3004cb16 | [
"MIT"
] | 4 | 2021-03-18T04:35:57.000Z | 2021-03-28T03:08:54.000Z | src/main/calc_02.py | Hacksbr/cov-test | 7ccf209e7f996c5281edba5ab2ad250e3004cb16 | [
"MIT"
] | null | null | null | def division(a, b):
return a / b
def multiplication(a, b):
return a * b
def multiplication_2(a, b, c, d):
return (a * b) + (c - d)
| 13.363636 | 33 | 0.55102 | 26 | 147 | 3.076923 | 0.346154 | 0.15 | 0.3 | 0.225 | 0.675 | 0.675 | 0.675 | 0 | 0 | 0 | 0 | 0.009615 | 0.292517 | 147 | 10 | 34 | 14.7 | 0.759615 | 0 | 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 | 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 |
5a8267f44e7d70da005c251a162009914468054f | 62 | py | Python | tests/cases/stats/tests/__init__.py | rysdyk/avocado | 655c1a766be616cb1357ddff8bc345ab61ae9e8a | [
"BSD-2-Clause"
] | null | null | null | tests/cases/stats/tests/__init__.py | rysdyk/avocado | 655c1a766be616cb1357ddff8bc345ab61ae9e8a | [
"BSD-2-Clause"
] | null | null | null | tests/cases/stats/tests/__init__.py | rysdyk/avocado | 655c1a766be616cb1357ddff8bc345ab61ae9e8a | [
"BSD-2-Clause"
] | 2 | 2020-01-13T20:40:09.000Z | 2020-01-16T15:26:11.000Z | from .agg import * # noqa
from .kmeans import * # noqa
| 20.666667 | 30 | 0.596774 | 8 | 62 | 4.625 | 0.625 | 0.540541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.306452 | 62 | 2 | 31 | 31 | 0.860465 | 0.145161 | 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 |
ce68caea4fae514f0ff102ba465fb387e547f3b6 | 76 | py | Python | src/ormar_postgres_extensions/fields/__init__.py | tophat/ormar-postgres-extensions | 88fcab5a73bc89090739c38f063191d8473957a5 | [
"Apache-2.0"
] | 6 | 2021-08-02T22:24:34.000Z | 2022-03-21T08:59:22.000Z | src/ormar_postgres_extensions/fields/__init__.py | tophat/ormar-postgres-extensions | 88fcab5a73bc89090739c38f063191d8473957a5 | [
"Apache-2.0"
] | 14 | 2021-08-03T00:03:55.000Z | 2022-02-17T02:10:08.000Z | src/ormar_postgres_extensions/fields/__init__.py | tophat/ormar-postgres-extensions | 88fcab5a73bc89090739c38f063191d8473957a5 | [
"Apache-2.0"
] | 2 | 2022-01-28T20:10:12.000Z | 2022-02-09T16:49:01.000Z | from .jsonb import JSONB # noqa: F401
from .uuid import UUID # noqa: F401
| 25.333333 | 38 | 0.710526 | 12 | 76 | 4.5 | 0.5 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.210526 | 76 | 2 | 39 | 38 | 0.8 | 0.276316 | 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 |
ce7a0dbe0c15954c52ab3929af28c57db4ce39ea | 3,665 | py | Python | cinder/tests/unit/image/test_accelerator.py | lightsey/cinder | e03d68e42e57a63f8d0f3e177fb4287290612b24 | [
"Apache-2.0"
] | 3 | 2015-04-02T21:44:36.000Z | 2016-04-29T21:19:04.000Z | cinder/tests/unit/image/test_accelerator.py | lightsey/cinder | e03d68e42e57a63f8d0f3e177fb4287290612b24 | [
"Apache-2.0"
] | 3 | 2016-04-29T21:45:26.000Z | 2016-05-04T19:41:23.000Z | cinder/tests/unit/image/test_accelerator.py | lightsey/cinder | e03d68e42e57a63f8d0f3e177fb4287290612b24 | [
"Apache-2.0"
] | 4 | 2016-01-27T00:25:52.000Z | 2021-03-25T19:54:08.000Z | #
# 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
# ... | 36.287129 | 78 | 0.685402 | 466 | 3,665 | 5.094421 | 0.2103 | 0.037911 | 0.068239 | 0.065712 | 0.749789 | 0.734625 | 0.734625 | 0.734625 | 0.711879 | 0.711879 | 0 | 0.001431 | 0.237381 | 3,665 | 100 | 79 | 36.65 | 0.847943 | 0.148977 | 0 | 0.746032 | 0 | 0 | 0.126329 | 0.126329 | 0 | 0 | 0 | 0 | 0.063492 | 1 | 0.111111 | false | 0.047619 | 0.047619 | 0 | 0.190476 | 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 |
ce9eebf58160a5f34dd05a336888ec51ae036a3e | 28 | py | Python | strategies/ewc/__init__.py | rmassidda/reproducible-continual-learning | ed7b7db634038d9d4312c2c54b15ca8eead1c07c | [
"MIT"
] | 53 | 2021-04-20T15:41:23.000Z | 2022-03-30T17:24:36.000Z | strategies/ewc/__init__.py | rmassidda/reproducible-continual-learning | ed7b7db634038d9d4312c2c54b15ca8eead1c07c | [
"MIT"
] | 14 | 2021-10-08T10:35:31.000Z | 2022-03-29T14:00:06.000Z | strategies/ewc/__init__.py | rmassidda/reproducible-continual-learning | ed7b7db634038d9d4312c2c54b15ca8eead1c07c | [
"MIT"
] | 7 | 2021-11-02T15:39:57.000Z | 2022-03-31T03:25:04.000Z | from .experiment import EWC
| 14 | 27 | 0.821429 | 4 | 28 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 28 | 1 | 28 | 28 | 0.958333 | 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 |
cebc6ace5fd9f287df685bc8f3b3d7e6f07341f5 | 154 | py | Python | blockformer/builder.py | colinski/blockformer | 56be6abc08dc25ab97c526384e9c69f6c814c3ed | [
"MIT"
] | null | null | null | blockformer/builder.py | colinski/blockformer | 56be6abc08dc25ab97c526384e9c69f6c814c3ed | [
"MIT"
] | null | null | null | blockformer/builder.py | colinski/blockformer | 56be6abc08dc25ab97c526384e9c69f6c814c3ed | [
"MIT"
] | null | null | null | from mmcv import build_from_cfg
from mmcv.utils import Registry
BLOCKS = Registry('block')
def build_block(cfg):
return build_from_cfg(cfg, BLOCKS)
| 19.25 | 38 | 0.779221 | 24 | 154 | 4.791667 | 0.458333 | 0.13913 | 0.208696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 154 | 7 | 39 | 22 | 0.871212 | 0 | 0 | 0 | 0 | 0 | 0.032468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 0.8 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
ced4e990d301bf48d3657f71c147ece973d5d950 | 44 | py | Python | tatk/nlu/svm/camrest/__init__.py | yqzhangthu/tatk | 4d27e89604a33f19f1c7b8fe5dc92d4ba6c6f10a | [
"Apache-2.0"
] | 81 | 2019-03-12T13:40:29.000Z | 2022-01-17T10:59:21.000Z | tatk/nlu/svm/camrest/__init__.py | zqwerty/tatk | fafabc45d02ad889f59354acac4e3b1367e7d4bf | [
"Apache-2.0"
] | 35 | 2019-03-13T14:05:05.000Z | 2021-08-25T15:38:14.000Z | tatk/nlu/svm/camrest/__init__.py | zqwerty/tatk | fafabc45d02ad889f59354acac4e3b1367e7d4bf | [
"Apache-2.0"
] | 41 | 2019-03-13T09:40:24.000Z | 2022-03-07T17:59:07.000Z | from tatk.nlu.svm.camrest.nlu import SVMNLU
| 22 | 43 | 0.818182 | 8 | 44 | 4.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 44 | 1 | 44 | 44 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0c71aa95bdd236c8fb5f4699996ad1bf9dfed915 | 286 | py | Python | CIFAR10/models/__init__.py | UBCDingXin/DDRE_Sampling_GANs | 72ec41f8a0913a72ed7cf2c57ded1c65c6fe6823 | [
"MIT"
] | 2 | 2019-11-17T15:14:19.000Z | 2020-06-13T18:02:37.000Z | CIFAR10/models/__init__.py | UBCDingXin/DDRE_Sampling_GANs | 72ec41f8a0913a72ed7cf2c57ded1c65c6fe6823 | [
"MIT"
] | 1 | 2021-11-20T13:11:37.000Z | 2021-11-21T04:28:43.000Z | CIFAR10/models/__init__.py | UBCDingXin/DDRE_Sampling_GANs | 72ec41f8a0913a72ed7cf2c57ded1c65c6fe6823 | [
"MIT"
] | 1 | 2021-07-06T04:53:47.000Z | 2021-07-06T04:53:47.000Z | from .InceptionV3 import *
from .ResNet import *
from .DR_MLP import *
from .DR_ResNet import *
from .DR_VGG import *
from .cnn_generator_discriminator import *
from .MMDGAN import *
from .Binary_Classifier import *
from .DR_2layersCNN import *
from .DR_6layersCNN import *
| 23.833333 | 43 | 0.748252 | 38 | 286 | 5.421053 | 0.394737 | 0.436893 | 0.291262 | 0.174757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.181818 | 286 | 11 | 44 | 26 | 0.867521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0c8b6e5676fa79e39ce5ea05e934593c8aa1470f | 8,624 | py | Python | evo.py | empyriumz/Entanglement-Dynamics | 433228042517000ae3bf2a5105b36f82272170fa | [
"MIT"
] | 5 | 2020-04-08T19:10:11.000Z | 2022-03-22T14:54:27.000Z | evo.py | empyriumz/Entanglement-Dynamics | 433228042517000ae3bf2a5105b36f82272170fa | [
"MIT"
] | 1 | 2020-05-13T02:25:33.000Z | 2020-05-19T15:32:47.000Z | evo.py | empyriumz/Entanglement-Dynamics | 433228042517000ae3bf2a5105b36f82272170fa | [
"MIT"
] | 5 | 2019-12-02T19:31:10.000Z | 2021-11-17T19:13:48.000Z | from circuit_dynamics_init import *
from pybind_circuit import unitary_cxx_parallel, unitary_cxx, unitary_conventional_cxx
from timeit import default_timer as timer
# reading parameters from file
para = open('para_haar.txt', 'r')
para = para.readlines()
# the paramters are system size, measurement probability and disc... | 37.659389 | 128 | 0.608071 | 1,253 | 8,624 | 4.158819 | 0.155627 | 0.034926 | 0.057571 | 0.081558 | 0.799271 | 0.787949 | 0.787949 | 0.782383 | 0.782383 | 0.782383 | 0 | 0.025426 | 0.26577 | 8,624 | 229 | 128 | 37.659389 | 0.797536 | 0.280496 | 0 | 0.817518 | 0 | 0 | 0.043986 | 0.003952 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036496 | false | 0 | 0.021898 | 0 | 0.094891 | 0.021898 | 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 |
0c9a504465940e2f4f859d53be981646a6dbfcf9 | 267 | py | Python | riscv/helpers.py | kevinyuan/pydgin | 9e5dea526a17b23929b2a1d24598154b42323073 | [
"BSD-3-Clause"
] | 159 | 2015-02-12T03:28:25.000Z | 2022-02-24T22:40:35.000Z | riscv/helpers.py | kevinyuan/pydgin | 9e5dea526a17b23929b2a1d24598154b42323073 | [
"BSD-3-Clause"
] | 21 | 2015-01-31T23:47:26.000Z | 2020-12-21T12:41:08.000Z | riscv/helpers.py | kevinyuan/pydgin | 9e5dea526a17b23929b2a1d24598154b42323073 | [
"BSD-3-Clause"
] | 40 | 2015-01-28T21:31:30.000Z | 2022-01-25T12:50:23.000Z | from utils import trim_64
def BRANCH_TARGET( s, inst ):
return trim_64( s.pc + inst.sb_imm )
def JUMP_TARGET( s, inst ):
return trim_64( s.pc + inst.uj_imm )
def SHAMT( s, inst ):
return inst.i_imm & 0x3F
class TRAP_ILLEGAL_INSTRUCTION( Exception ):
pass
| 19.071429 | 44 | 0.70412 | 46 | 267 | 3.869565 | 0.543478 | 0.101124 | 0.185393 | 0.191011 | 0.337079 | 0.337079 | 0.337079 | 0.337079 | 0.337079 | 0 | 0 | 0.037209 | 0.194757 | 267 | 13 | 45 | 20.538462 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014981 | 0 | 0 | 1 | 0.333333 | false | 0.111111 | 0.111111 | 0.333333 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 6 |
0cd57169d4049b03d640aa55a8a78e236004500c | 7,444 | py | Python | custom/icds_reports/tests/agg_tests/test_data_accessor.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | 1 | 2020-07-14T13:00:23.000Z | 2020-07-14T13:00:23.000Z | custom/icds_reports/tests/agg_tests/test_data_accessor.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | 1 | 2021-06-02T04:45:16.000Z | 2021-06-02T04:45:16.000Z | custom/icds_reports/tests/agg_tests/test_data_accessor.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | null | null | null | from django.test import TestCase
import mock
from custom.icds_reports.utils.data_accessor import get_program_summary_data_with_retrying,\
get_awc_covered_data_with_retrying
class DataAccessorTest(TestCase):
side_effect = [
{
'records': [
[
{'value': 0, ... | 39.807487 | 96 | 0.526061 | 921 | 7,444 | 3.986971 | 0.100977 | 0.025599 | 0.030501 | 0.034314 | 0.816449 | 0.802015 | 0.769336 | 0.758987 | 0.741558 | 0.712146 | 0 | 0.034049 | 0.337184 | 7,444 | 186 | 97 | 40.021505 | 0.710174 | 0 | 0 | 0.447674 | 0 | 0 | 0.200699 | 0.060183 | 0 | 0 | 0 | 0 | 0.040698 | 1 | 0.040698 | false | 0 | 0.017442 | 0 | 0.104651 | 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 |
0b3d8fca7f109680f0494f6c7487b172a81fcc7a | 95 | py | Python | chat_utils.py | MrUpyachka/bothometh | f806a3d711efe03c49833effdb7e152dda0dbeb9 | [
"Apache-2.0"
] | 1 | 2021-03-06T17:20:12.000Z | 2021-03-06T17:20:12.000Z | chat_utils.py | MrUpyachka/bothometh | f806a3d711efe03c49833effdb7e152dda0dbeb9 | [
"Apache-2.0"
] | 2 | 2021-03-06T16:48:00.000Z | 2021-03-06T16:51:55.000Z | chat_utils.py | MrUpyachka/bothometh | f806a3d711efe03c49833effdb7e152dda0dbeb9 | [
"Apache-2.0"
] | null | null | null | from telebot.types import Chat
def is_private(chat: Chat):
return chat.type == 'private'
| 15.833333 | 33 | 0.715789 | 14 | 95 | 4.785714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178947 | 95 | 5 | 34 | 19 | 0.858974 | 0 | 0 | 0 | 0 | 0 | 0.073684 | 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 |
0b405c2fc835b3f2f1b570a68b792f9ae9628709 | 14,754 | py | Python | tests/test_filled.py | contourpy/contourpy | 3854f86f4ff080a9bf9c4988849b5b9f0a63666e | [
"BSD-3-Clause"
] | 14 | 2021-09-17T18:23:07.000Z | 2022-03-20T14:28:48.000Z | tests/test_filled.py | ianthomas23/contourpy | 10df582b7631332467b848981a0255f4739ef901 | [
"BSD-3-Clause"
] | 9 | 2021-04-22T07:56:38.000Z | 2022-03-05T14:28:36.000Z | tests/test_filled.py | ianthomas23/contourpy | 10df582b7631332467b848981a0255f4739ef901 | [
"BSD-3-Clause"
] | 1 | 2021-02-19T16:08:56.000Z | 2021-02-19T16:08:56.000Z | from contourpy import contour_generator, FillType
from contourpy.util.data import random, simple
from contourpy.util.mpl_renderer import MplTestRenderer
from image_comparison import compare_images
import numpy as np
from numpy.testing import assert_array_equal
import pytest
import util_test
@pytest.fixture
def two_ou... | 39.98374 | 93 | 0.671004 | 2,189 | 14,754 | 4.269986 | 0.063042 | 0.094148 | 0.051353 | 0.041083 | 0.849256 | 0.827859 | 0.803894 | 0.766556 | 0.743875 | 0.720231 | 0 | 0.035394 | 0.199539 | 14,754 | 368 | 94 | 40.092391 | 0.756054 | 0.001491 | 0 | 0.589831 | 0 | 0 | 0.063883 | 0.025255 | 0 | 0 | 0 | 0 | 0.176271 | 1 | 0.054237 | false | 0 | 0.027119 | 0 | 0.084746 | 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 |
0bb633ad9cde42afd37ce845581f45a86ebc8971 | 84 | py | Python | micatutorial3/plotting/__init__.py | OualidBenkarim/micatutorial3 | 412fc148aaff62ab2b18aa68ee289efaac2d0946 | [
"BSD-3-Clause"
] | 1 | 2022-03-17T19:45:27.000Z | 2022-03-17T19:45:27.000Z | micatutorial3/plotting/__init__.py | OualidBenkarim/micatutorial3 | 412fc148aaff62ab2b18aa68ee289efaac2d0946 | [
"BSD-3-Clause"
] | null | null | null | micatutorial3/plotting/__init__.py | OualidBenkarim/micatutorial3 | 412fc148aaff62ab2b18aa68ee289efaac2d0946 | [
"BSD-3-Clause"
] | null | null | null |
from .utils import plot_primes, plot_fibo
__all__ = ['plot_primes', 'plot_fibo']
| 14 | 41 | 0.738095 | 12 | 84 | 4.5 | 0.583333 | 0.37037 | 0.518519 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 84 | 5 | 42 | 16.8 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.243902 | 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 |
e7f255d72d8ba6a46e1a7309af08762973dfa053 | 6,557 | py | Python | tests/PPO/test_model.py | CVxTz/RL | 59437bb4aee4052852dfde74d95e85a0d024819c | [
"MIT"
] | 9 | 2020-11-22T04:44:39.000Z | 2022-02-18T16:16:46.000Z | tests/PPO/test_model.py | CVxTz/RL | 59437bb4aee4052852dfde74d95e85a0d024819c | [
"MIT"
] | null | null | null | tests/PPO/test_model.py | CVxTz/RL | 59437bb4aee4052852dfde74d95e85a0d024819c | [
"MIT"
] | 3 | 2021-01-23T02:53:46.000Z | 2021-09-15T01:54:45.000Z | import gym
import numpy as np
import torch
import torch.optim as optim
from torch.utils.data import DataLoader
from PPO.model import (
PolicyNetwork,
ValueNetwork,
device,
train_value_network,
train_policy_network,
)
from PPO.replay import Episode, History
def test_model_1():
env = gym.make("... | 24.106618 | 85 | 0.628641 | 785 | 6,557 | 5.035669 | 0.140127 | 0.028333 | 0.043258 | 0.026562 | 0.750569 | 0.745004 | 0.739185 | 0.735897 | 0.710094 | 0.687326 | 0 | 0.018546 | 0.276346 | 6,557 | 271 | 86 | 24.195572 | 0.814542 | 0 | 0 | 0.709302 | 0 | 0 | 0.012811 | 0 | 0 | 0 | 0 | 0 | 0.063953 | 1 | 0.034884 | false | 0 | 0.040698 | 0 | 0.075581 | 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 |
f0167f7cb56947745fd63d5fbf5ecba1bf79926f | 6,944 | py | Python | openstackinabox/tests/services/keystone/v2/user/test_listing.py | BenjamenMeyer/openstackinabox | b5097695719b818dd06e3773899f80a15e7e71c1 | [
"Apache-2.0"
] | 1 | 2017-11-19T20:31:48.000Z | 2017-11-19T20:31:48.000Z | openstackinabox/tests/services/keystone/v2/user/test_listing.py | TestInABox/openstackinabox | 00dcac601d14e1cfc240840dd92895ee322caf96 | [
"Apache-2.0"
] | 38 | 2016-05-05T18:03:21.000Z | 2020-04-11T03:33:01.000Z | openstackinabox/tests/services/keystone/v2/user/test_listing.py | BenjamenMeyer/openstackinabox | b5097695719b818dd06e3773899f80a15e7e71c1 | [
"Apache-2.0"
] | 1 | 2015-05-28T14:53:46.000Z | 2015-05-28T14:53:46.000Z | """
Stack-In-A-Box: Basic Test
"""
import unittest
import requests
import stackinabox.util.requests_mock.core
from stackinabox.stack import StackInABox
from openstackinabox.services.keystone import KeystoneV2Service
class TestKeystoneV2UserListing(unittest.TestCase):
def setUp(self):
super(TestKeystone... | 34.894472 | 79 | 0.547811 | 709 | 6,944 | 5.172073 | 0.132581 | 0.068721 | 0.088083 | 0.080993 | 0.800109 | 0.765476 | 0.765476 | 0.765476 | 0.739842 | 0.728116 | 0 | 0.011231 | 0.346054 | 6,944 | 198 | 80 | 35.070707 | 0.7963 | 0.003744 | 0 | 0.658385 | 0 | 0 | 0.11563 | 0 | 0 | 0 | 0 | 0 | 0.099379 | 1 | 0.043478 | false | 0.012422 | 0.031056 | 0 | 0.080745 | 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 |
f02a4b229a536558e7ff0751f50d32c6fc2560c2 | 8,956 | py | Python | test/brahe/test_epoch.py | duncaneddy/brahe | 4a1746ef3c14211b0709de6e7e34b6f52fc0e686 | [
"MIT"
] | 14 | 2019-05-29T13:36:55.000Z | 2022-02-11T15:26:13.000Z | test/brahe/test_epoch.py | duncaneddy/brahe | 4a1746ef3c14211b0709de6e7e34b6f52fc0e686 | [
"MIT"
] | 1 | 2020-05-27T12:14:39.000Z | 2020-05-27T15:51:21.000Z | test/brahe/test_epoch.py | duncaneddy/brahe | 4a1746ef3c14211b0709de6e7e34b6f52fc0e686 | [
"MIT"
] | 2 | 2019-10-24T05:20:54.000Z | 2019-12-08T03:59:10.000Z | # Test Imports
from pytest import approx
# Modules Under Test
import brahe.constants as _constants
from brahe.epoch import *
# Set Log level
LOG_FORMAT = '%(levelname)s [%(filename)s:%(funcName)s:%(lineno)d] %(message)s'
logging.basicConfig(format=LOG_FORMAT, level=logging.DEBUG)
# Other imports
import math
def tes... | 32.33213 | 101 | 0.572465 | 1,213 | 8,956 | 4.192086 | 0.112119 | 0.074336 | 0.055064 | 0.06057 | 0.792527 | 0.770108 | 0.754966 | 0.7353 | 0.711504 | 0.711504 | 0 | 0.1985 | 0.300246 | 8,956 | 277 | 102 | 32.33213 | 0.612893 | 0.067887 | 0 | 0.582938 | 0 | 0.004739 | 0.054655 | 0.020901 | 0 | 0 | 0 | 0 | 0.696682 | 1 | 0.052133 | false | 0 | 0.018957 | 0 | 0.07109 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b2d55d4cfd831d0168dbbdf51e39c3374689aba2 | 60 | py | Python | python/comp_200/importing.py | sethmccauley/cohort4 | 9f862e3e1f13d2c0f81430d16d67564c7c19f8a1 | [
"MIT"
] | null | null | null | python/comp_200/importing.py | sethmccauley/cohort4 | 9f862e3e1f13d2c0f81430d16d67564c7c19f8a1 | [
"MIT"
] | 11 | 2020-11-16T22:45:04.000Z | 2022-02-27T00:13:50.000Z | python/comp_200/importing.py | sethmccauley/cohort4 | 9f862e3e1f13d2c0f81430d16d67564c7c19f8a1 | [
"MIT"
] | null | null | null | def divide(divident, divisor):
return divident / divisor | 30 | 30 | 0.75 | 7 | 60 | 6.428571 | 0.714286 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 60 | 2 | 31 | 30 | 0.9 | 0 | 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 | 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 |
b2e1f9b1af4cacbbe03cca21c889e5277d803452 | 60 | py | Python | sparkserve/datamanagement/JSONOutputConverter.py | ruturajpatel/SparkServe | 3fcbb87b8c7ba5662a375ad48f8d05be3c0bac76 | [
"MIT"
] | null | null | null | sparkserve/datamanagement/JSONOutputConverter.py | ruturajpatel/SparkServe | 3fcbb87b8c7ba5662a375ad48f8d05be3c0bac76 | [
"MIT"
] | null | null | null | sparkserve/datamanagement/JSONOutputConverter.py | ruturajpatel/SparkServe | 3fcbb87b8c7ba5662a375ad48f8d05be3c0bac76 | [
"MIT"
] | null | null | null | import json
def getString(obj):
return json.dumps(obj) | 12 | 26 | 0.716667 | 9 | 60 | 4.777778 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183333 | 60 | 5 | 26 | 12 | 0.877551 | 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 |
65216fb892ba91ea0be0989b69de7a50b6708d24 | 34 | py | Python | mine_torch/model_zoo.py | buoyancy99/MineTorch | d1b0a3a19c09f477f13e03d736f7d7a522c05916 | [
"MIT"
] | 16 | 2019-08-09T21:54:25.000Z | 2022-03-05T14:56:22.000Z | mine_torch/model_zoo.py | buoyancy99/MineTorch | d1b0a3a19c09f477f13e03d736f7d7a522c05916 | [
"MIT"
] | null | null | null | mine_torch/model_zoo.py | buoyancy99/MineTorch | d1b0a3a19c09f477f13e03d736f7d7a522c05916 | [
"MIT"
] | 3 | 2019-08-10T20:43:22.000Z | 2020-10-25T07:25:34.000Z | import torch
import torchvision
| 6.8 | 18 | 0.823529 | 4 | 34 | 7 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 34 | 4 | 19 | 8.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 |
e8e52a5f167f17da87cca87a8bbef6164d35f191 | 164 | py | Python | photos/admin.py | maurinesinami/gallery | 63230d18a268a8ebf264e13128c74439dedc5977 | [
"MIT"
] | null | null | null | photos/admin.py | maurinesinami/gallery | 63230d18a268a8ebf264e13128c74439dedc5977 | [
"MIT"
] | 3 | 2020-06-05T21:21:20.000Z | 2021-09-08T01:03:44.000Z | photos/admin.py | maurinesinami/gallery | 63230d18a268a8ebf264e13128c74439dedc5977 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Image,Location,Category
admin.site.register(Image)
admin.site.register(Category)
admin.site.register(Location)
| 27.333333 | 43 | 0.835366 | 23 | 164 | 5.956522 | 0.478261 | 0.19708 | 0.372263 | 0.364964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067073 | 164 | 5 | 44 | 32.8 | 0.895425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 |
335ac61f9eb54dcc4a15e092d0dc5b0c816f99a6 | 203 | py | Python | src/test_hash.py | skandabhairava/Scripting_tools | cb36358412732bbd36ecdad079c719518689105e | [
"MIT"
] | 1 | 2021-10-11T13:49:57.000Z | 2021-10-11T13:49:57.000Z | src/test_hash.py | skandabhairava/Scripting_tools | cb36358412732bbd36ecdad079c719518689105e | [
"MIT"
] | 1 | 2022-02-16T18:57:36.000Z | 2022-02-16T18:57:36.000Z | src/test_hash.py | skandabhairava/Scripting_tools | cb36358412732bbd36ecdad079c719518689105e | [
"MIT"
] | null | null | null | from scripting_tools.hash import hash, validate_hash
hashed_code = hash("Hello!")
print(hashed_code)
print(validate_hash(hashed_code, "Hello")) #False
print(validate_hash(hashed_code, "Hello!")) #True | 25.375 | 52 | 0.783251 | 29 | 203 | 5.206897 | 0.413793 | 0.264901 | 0.357616 | 0.437086 | 0.423841 | 0.423841 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083744 | 203 | 8 | 53 | 25.375 | 0.811828 | 0.044335 | 0 | 0 | 0 | 0 | 0.088083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.6 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
335cd20e7c97c030d6c96b03ca45ac4baa190102 | 445 | py | Python | odoo-13.0/addons/sale/tests/__init__.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | 12 | 2021-03-26T08:39:40.000Z | 2022-03-16T02:20:10.000Z | odoo-13.0/addons/sale/tests/__init__.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | 13 | 2020-12-20T16:00:21.000Z | 2022-03-14T14:55:30.000Z | odoo-13.0/addons/sale/tests/__init__.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | 17 | 2020-08-31T11:18:49.000Z | 2022-02-09T05:57:31.000Z | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import test_sale_product_attribute_value_config
from . import test_sale_to_invoice
from . import test_sale_order
from . import test_sale_pricelist
from . import test_onchange
from . import test_reinvoice
from . im... | 31.785714 | 74 | 0.817978 | 67 | 445 | 5.104478 | 0.507463 | 0.292398 | 0.409357 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002591 | 0.132584 | 445 | 13 | 75 | 34.230769 | 0.88342 | 0.211236 | 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 |
33607d568a073e7d4e7bf82646ad1f457cb1ae1e | 131 | py | Python | Assignments/Assignment_03/ekf/utils/check_array.py | chrstrom/TTK4250 | f453c3a59597d3fe6cff7d35b790689919798b94 | [
"Unlicense"
] | 2 | 2022-01-26T11:13:38.000Z | 2022-02-22T21:18:30.000Z | Assignments/Assignment_03/ekf/utils/check_array.py | chrstrom/TTK4250 | f453c3a59597d3fe6cff7d35b790689919798b94 | [
"Unlicense"
] | 42 | 2022-01-25T17:10:43.000Z | 2022-03-29T18:41:34.000Z | Assignments/Assignment_03/ekf/utils/check_array.py | chrstrom/TTK4250 | f453c3a59597d3fe6cff7d35b790689919798b94 | [
"Unlicense"
] | null | null | null | import numpy as np
def isPSD(arr: np.ndarray) -> bool:
return np.allclose(arr, arr.T) and np.all(np.linalg.eigvals(arr) >= 0)
| 26.2 | 74 | 0.679389 | 24 | 131 | 3.708333 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.160305 | 131 | 4 | 75 | 32.75 | 0.8 | 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 |
3366ae2b5ef10f8a42bd01040ead69e70fa816f8 | 160 | py | Python | subbreaker/__init__.py | healym3/SubstitutionBreaker | 8507179a30c0f2f31e90535110726574159db7f7 | [
"MIT"
] | null | null | null | subbreaker/__init__.py | healym3/SubstitutionBreaker | 8507179a30c0f2f31e90535110726574159db7f7 | [
"MIT"
] | null | null | null | subbreaker/__init__.py | healym3/SubstitutionBreaker | 8507179a30c0f2f31e90535110726574159db7f7 | [
"MIT"
] | null | null | null | from subbreaker.key import Key
from subbreaker.breaker import Breaker, BreakerResult, BreakerInfo
__all__ = ["Key", "Breaker", "BreakerResult", "BreakerInfo"]
| 32 | 66 | 0.78125 | 17 | 160 | 7.117647 | 0.470588 | 0.231405 | 0.512397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10625 | 160 | 4 | 67 | 40 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.2125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 |
6855914c8c0781636444f71e0676d1538976c161 | 80 | py | Python | Python/VasyaTheHipster.py | Zardosh/code-forces-solutions | ea1446b8e4f391f3e9ef63094816c7bdaded1557 | [
"MIT"
] | null | null | null | Python/VasyaTheHipster.py | Zardosh/code-forces-solutions | ea1446b8e4f391f3e9ef63094816c7bdaded1557 | [
"MIT"
] | null | null | null | Python/VasyaTheHipster.py | Zardosh/code-forces-solutions | ea1446b8e4f391f3e9ef63094816c7bdaded1557 | [
"MIT"
] | null | null | null | a, b = map(int, input().split())
print(min(a, b), (max(a, b) - min(a, b)) // 2) | 26.666667 | 46 | 0.4875 | 17 | 80 | 2.294118 | 0.588235 | 0.205128 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.175 | 80 | 3 | 46 | 26.666667 | 0.575758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 1 | 0 | 6 |
687ca5a3a4a3121f0828e6d8307eaad0d490be85 | 7,253 | py | Python | lymph/test_anallyze.py | shifvb/GraduationProject | 08166b49c329014bf852faafa14db14a6231370a | [
"MIT"
] | 1 | 2018-04-27T15:25:01.000Z | 2018-04-27T15:25:01.000Z | lymph/test_anallyze.py | shifvb/Undergraduate_GraduationProject | 08166b49c329014bf852faafa14db14a6231370a | [
"MIT"
] | null | null | null | lymph/test_anallyze.py | shifvb/Undergraduate_GraduationProject | 08166b49c329014bf852faafa14db14a6231370a | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
s = """[DEBUG] i=0, loss=28.609, accuracy=0.000 loss=11.049, accuracy=0.130
[DEBUG] i=10, loss=6.586, accuracy=0.350 loss=14.784, accuracy=0.033
[DEBUG] i=20, loss=5.510, accuracy=0.300 loss=9.616, accuracy=0.098
[DEBUG] i=30, loss=2.327, accuracy=0.550 loss=8.296, accuracy=0.109
[DEBUG... | 64.185841 | 76 | 0.702192 | 1,565 | 7,253 | 3.251757 | 0.199361 | 0.353704 | 0.157988 | 0.217135 | 0.618 | 0.020043 | 0.020043 | 0.020043 | 0 | 0 | 0 | 0.287876 | 0.089067 | 7,253 | 112 | 77 | 64.758929 | 0.482367 | 0 | 0 | 0 | 0 | 0.909091 | 0.951606 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 1 | 0 | false | 0 | 0.009091 | 0 | 0.009091 | 0.009091 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
68a1ecd40dd5dfdc52d17eb73d8bd0dc428b7971 | 54,994 | py | Python | tests/resources/generator/fabbri_fantini_wilders_severi_human_san_model_2017/model.py | awickens/libcellml | 1fe0aecc9651285dfa6b9d43c0b45edf1378edf5 | [
"Apache-2.0"
] | 1 | 2020-11-16T05:43:00.000Z | 2020-11-16T05:43:00.000Z | tests/resources/generator/fabbri_fantini_wilders_severi_human_san_model_2017/model.py | awickens/libcellml | 1fe0aecc9651285dfa6b9d43c0b45edf1378edf5 | [
"Apache-2.0"
] | 16 | 2019-11-29T11:36:30.000Z | 2021-03-08T23:59:14.000Z | tests/resources/generator/fabbri_fantini_wilders_severi_human_san_model_2017/model.py | kerimoyle/libcellml | 63b677e4b22c28a7dcb69513df1495f0f8eccefa | [
"Apache-2.0"
] | null | null | null | # The content of this file was generated using the Python profile of libCellML 0.2.0.
from enum import Enum
from math import *
__version__ = "0.2.0"
LIBCELLML_VERSION = "0.2.0"
STATE_COUNT = 33
VARIABLE_COUNT = 217
class VariableType(Enum):
CONSTANT = 1
COMPUTED_CONSTANT = 2
ALGEBRAIC = 3
VOI_INFO =... | 79.128058 | 291 | 0.658399 | 7,660 | 54,994 | 4.626632 | 0.077285 | 0.097968 | 0.071247 | 0.081828 | 0.846191 | 0.816535 | 0.783042 | 0.729007 | 0.709086 | 0.582816 | 0 | 0.121786 | 0.108321 | 54,994 | 694 | 292 | 79.242075 | 0.600934 | 0.001509 | 0 | 0.287443 | 1 | 0 | 0.220838 | 0.011401 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016641 | false | 0 | 0.003026 | 0.01059 | 0.036309 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
68ada9f559b6880610e7c925d951ea009ddd6104 | 103 | py | Python | tests/fixtures/compound_statements/compound_statements3_out.py | spulec/pep8ify | cf1815f7bad9882027289bdb2f77604b68962ca7 | [
"Apache-2.0"
] | 50 | 2015-01-04T04:24:41.000Z | 2021-09-13T01:01:29.000Z | tests/fixtures/compound_statements/compound_statements3_out.py | michaelBenin/pep8ify | 3cd8a9e8baaab33d66e792185a6870338bdf0911 | [
"Apache-2.0"
] | 2 | 2016-05-15T12:01:28.000Z | 2019-03-08T03:27:20.000Z | tests/fixtures/compound_statements/compound_statements3_out.py | michaelBenin/pep8ify | 3cd8a9e8baaab33d66e792185a6870338bdf0911 | [
"Apache-2.0"
] | 5 | 2016-07-27T13:44:54.000Z | 2020-11-19T16:00:08.000Z |
do_it()
def x():
do_it()
dont_do_it()
def y():
do_it()
# comment
dont_do_it()
| 7.357143 | 16 | 0.485437 | 17 | 103 | 2.529412 | 0.411765 | 0.465116 | 0.325581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.349515 | 103 | 13 | 17 | 7.923077 | 0.641791 | 0.067961 | 0 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | true | 0 | 0 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d79a5447e678fcfdca9db5ad742718da254c7a03 | 49 | py | Python | Python/libraries/recognizers-number/recognizers_number/number/portuguese/__init__.py | hongman/Recognizers-Text | f5c158b9f60a86574633d7d67c47965dcab90abd | [
"MIT"
] | 10 | 2019-05-11T18:07:14.000Z | 2021-08-20T03:02:47.000Z | Python/libraries/recognizers-number/recognizers_number/number/portuguese/__init__.py | hongman/Recognizers-Text | f5c158b9f60a86574633d7d67c47965dcab90abd | [
"MIT"
] | 76 | 2018-11-09T18:19:44.000Z | 2019-08-20T20:29:53.000Z | Python/libraries/recognizers-number/recognizers_number/number/portuguese/__init__.py | hongman/Recognizers-Text | f5c158b9f60a86574633d7d67c47965dcab90abd | [
"MIT"
] | 18 | 2019-08-19T12:11:00.000Z | 2021-10-12T09:36:27.000Z | from .extractors import *
from .parsers import *
| 16.333333 | 25 | 0.755102 | 6 | 49 | 6.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 49 | 2 | 26 | 24.5 | 0.902439 | 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 |
d7e90c81e1d7213261d68edfd5007ba523aa9890 | 22 | py | Python | proj/__init__.py | LibAestheticism/djcelery-demo | f92b1ac697e23206bbcc2b2431a2ee553e6256cd | [
"Apache-2.0"
] | 5 | 2019-01-23T07:31:52.000Z | 2021-09-23T10:03:21.000Z | proj/__init__.py | LibAestheticism/djcelery-demo | f92b1ac697e23206bbcc2b2431a2ee553e6256cd | [
"Apache-2.0"
] | null | null | null | proj/__init__.py | LibAestheticism/djcelery-demo | f92b1ac697e23206bbcc2b2431a2ee553e6256cd | [
"Apache-2.0"
] | 1 | 2020-11-18T06:32:45.000Z | 2020-11-18T06:32:45.000Z | from .celery import *
| 11 | 21 | 0.727273 | 3 | 22 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 22 | 1 | 22 | 22 | 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 |
0be1e38b59b5b1714ceec69bafe9c2a123426c85 | 114 | py | Python | deeprank/rank_module/__init__.py | pl8787/DeepRank_PyTorch | ec24f83168aeadad7f89fd9fae5992abd0da89b1 | [
"MIT"
] | 31 | 2019-07-03T15:26:02.000Z | 2022-03-06T14:38:25.000Z | deeprank/rank_module/__init__.py | pl8787/DeepRank_PyTorch | ec24f83168aeadad7f89fd9fae5992abd0da89b1 | [
"MIT"
] | 1 | 2020-08-13T21:56:15.000Z | 2021-08-10T02:52:52.000Z | deeprank/rank_module/__init__.py | pl8787/DeepRank_PyTorch | ec24f83168aeadad7f89fd9fae5992abd0da89b1 | [
"MIT"
] | 8 | 2019-09-03T01:28:54.000Z | 2020-10-30T14:36:37.000Z | from .rank_net import RankNet
from .matchpyramid_net import MatchPyramidNet
from .deeprank_net import DeepRankNet
| 28.5 | 45 | 0.868421 | 15 | 114 | 6.4 | 0.6 | 0.28125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 114 | 3 | 46 | 38 | 0.941176 | 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 |
0beee745e6c92ed99d1b5170ccaf5413eabac436 | 76 | py | Python | decavision/model_training/__init__.py | Decathlon/decavision | b79d2b5611025a5f8519b9154acf04844ef8fb91 | [
"MIT"
] | 3 | 2020-12-08T19:14:46.000Z | 2021-03-30T15:12:44.000Z | decavision/model_training/__init__.py | Decathlon/decavision | b79d2b5611025a5f8519b9154acf04844ef8fb91 | [
"MIT"
] | 13 | 2021-03-30T15:12:49.000Z | 2022-03-12T00:51:57.000Z | decavision/model_training/__init__.py | Decathlon/decavision | b79d2b5611025a5f8519b9154acf04844ef8fb91 | [
"MIT"
] | 1 | 2021-03-30T15:20:56.000Z | 2021-03-30T15:20:56.000Z | from . import progressive_learning
from . import tfrecords_image_classifier
| 25.333333 | 40 | 0.868421 | 9 | 76 | 7 | 0.777778 | 0.31746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 76 | 2 | 41 | 38 | 0.926471 | 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 |
04008d58db2304654002d4639143d1cadbcf6132 | 37 | py | Python | riposte/__init__.py | macdaliot/riposte | 4f51528e31636586c36218ed0993ba1f4b4a8ab8 | [
"MIT"
] | 481 | 2018-11-20T10:35:10.000Z | 2022-03-26T20:33:54.000Z | riposte/__init__.py | macdaliot/riposte | 4f51528e31636586c36218ed0993ba1f4b4a8ab8 | [
"MIT"
] | 11 | 2019-07-03T21:01:46.000Z | 2021-05-22T10:00:49.000Z | riposte/__init__.py | macdaliot/riposte | 4f51528e31636586c36218ed0993ba1f4b4a8ab8 | [
"MIT"
] | 53 | 2019-07-08T07:53:16.000Z | 2022-01-09T03:32:57.000Z | from .riposte import Riposte # noqa
| 18.5 | 36 | 0.756757 | 5 | 37 | 5.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 37 | 1 | 37 | 37 | 0.933333 | 0.108108 | 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 |
042e058bea286191e4d3200701c251c03174fa56 | 6,538 | py | Python | test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/queries_operations.py | iscai-msft/autorest.python | a9f38dd762fbc046ce6197bfabea2f56045d2957 | [
"MIT"
] | null | null | null | test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/queries_operations.py | iscai-msft/autorest.python | a9f38dd762fbc046ce6197bfabea2f56045d2957 | [
"MIT"
] | null | null | null | test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/queries_operations.py | iscai-msft/autorest.python | a9f38dd762fbc046ce6197bfabea2f56045d2957 | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 40.358025 | 112 | 0.654329 | 705 | 6,538 | 5.900709 | 0.178723 | 0.043269 | 0.034615 | 0.017308 | 0.823077 | 0.823077 | 0.788221 | 0.788221 | 0.788221 | 0.788221 | 0 | 0.002402 | 0.235852 | 6,538 | 161 | 113 | 40.608696 | 0.830264 | 0.427807 | 0 | 0.7 | 0 | 0 | 0.058718 | 0.02921 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.033333 | 0 | 0.183333 | 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 |
f0f371f6b7ddfaea5ec44b3a7a40c78808cc5783 | 19,423 | py | Python | model_utils.py | BoyuanChen/neural-state-variables | 10483d93ac8c006f3786c434fb57d70d9ab465ec | [
"MIT"
] | 17 | 2021-12-29T16:48:46.000Z | 2022-03-25T01:57:13.000Z | model_utils.py | BoyuanChen/neural-state-variables | 10483d93ac8c006f3786c434fb57d70d9ab465ec | [
"MIT"
] | null | null | null | model_utils.py | BoyuanChen/neural-state-variables | 10483d93ac8c006f3786c434fb57d70d9ab465ec | [
"MIT"
] | 1 | 2022-01-22T11:26:09.000Z | 2022-01-22T11:26:09.000Z |
import torch
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
def conv2d_bn_relu(inch,outch,kernel_size,stride=1,padding=1):
convlayer = torch.nn.Sequential(
torch.nn.Conv2d(inch,outch,kernel_size=kernel_size,stride=stride,padding=padding),
torch.nn.BatchNorm2d(outch),
... | 34.560498 | 99 | 0.610977 | 2,714 | 19,423 | 4.184967 | 0.049742 | 0.053619 | 0.034337 | 0.01981 | 0.857105 | 0.844427 | 0.836415 | 0.828139 | 0.788255 | 0.736133 | 0 | 0.080327 | 0.263554 | 19,423 | 561 | 100 | 34.622103 | 0.713716 | 0 | 0 | 0.682105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077895 | false | 0 | 0.008421 | 0 | 0.164211 | 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 |
5018c2d7419779f3e944e8a416f957ffabe33721 | 63 | py | Python | www/speed/benchmarks/add_strings.py | raspberrypieman/brython | 2cc23d1da6acda604d4a56b4c9d464eb7e374eda | [
"BSD-3-Clause"
] | 5,926 | 2015-01-01T07:45:08.000Z | 2022-03-31T12:34:38.000Z | www/speed/benchmarks/add_strings.py | raspberrypieman/brython | 2cc23d1da6acda604d4a56b4c9d464eb7e374eda | [
"BSD-3-Clause"
] | 1,728 | 2015-01-01T01:09:12.000Z | 2022-03-30T23:25:22.000Z | www/speed/benchmarks/add_strings.py | raspberrypieman/brython | 2cc23d1da6acda604d4a56b4c9d464eb7e374eda | [
"BSD-3-Clause"
] | 574 | 2015-01-02T01:36:10.000Z | 2022-03-26T10:18:48.000Z | a, b, c = 'a', 'b', 'c'
for i in range(1000000):
a + b + c
| 15.75 | 24 | 0.428571 | 14 | 63 | 1.928571 | 0.571429 | 0.222222 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 0.31746 | 63 | 3 | 25 | 21 | 0.465116 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
501a92c5594c5c9d490f12afee2e38f8bfadec07 | 2,358 | py | Python | regression_labs/sample_generator.py | miguelrfernandes/regressionLabs | 849630019bbe3e56870341a284bc51c0b063bd13 | [
"MIT"
] | null | null | null | regression_labs/sample_generator.py | miguelrfernandes/regressionLabs | 849630019bbe3e56870341a284bc51c0b063bd13 | [
"MIT"
] | null | null | null | regression_labs/sample_generator.py | miguelrfernandes/regressionLabs | 849630019bbe3e56870341a284bc51c0b063bd13 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python
import math
import numpy as np
class SampleGenerator:
def __init__(self):
self.c0 = np.random.random()*2
self.c1 = -np.random.random()*4
self.c2 = -np.random.random()*4
self.c3 = np.random.random()*4
def generate_non_linear_samples(self, x):
"""... | 32.30137 | 121 | 0.581849 | 342 | 2,358 | 3.935673 | 0.192982 | 0.053492 | 0.08321 | 0.044577 | 0.875929 | 0.847697 | 0.847697 | 0.825409 | 0.794205 | 0.794205 | 0 | 0.026234 | 0.321035 | 2,358 | 72 | 122 | 32.75 | 0.814491 | 0.378287 | 0 | 0.516129 | 0 | 0 | 0.025923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.064516 | 0 | 0.387097 | 0.032258 | 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 |
acab5db46bb8ededf4b187bb83e3ec2a35fce321 | 109 | py | Python | app/users/exceptions.py | ExiledNarwal28/glo-2005-project | 3b5b5f9cdcfe53d1e6e702609587068c4bd3310d | [
"MIT"
] | null | null | null | app/users/exceptions.py | ExiledNarwal28/glo-2005-project | 3b5b5f9cdcfe53d1e6e702609587068c4bd3310d | [
"MIT"
] | null | null | null | app/users/exceptions.py | ExiledNarwal28/glo-2005-project | 3b5b5f9cdcfe53d1e6e702609587068c4bd3310d | [
"MIT"
] | 1 | 2020-05-21T10:07:07.000Z | 2020-05-21T10:07:07.000Z | class UserNotFoundException(Exception):
pass
class UserAlreadyRegisteredException(Exception):
pass
| 15.571429 | 48 | 0.798165 | 8 | 109 | 10.875 | 0.625 | 0.298851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146789 | 109 | 6 | 49 | 18.166667 | 0.935484 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 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.