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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8711414078d7b08aea3e8447b2ff97960980203f | 147 | py | Python | tests/modules/contrib/test_traffic.py | spxtr/bumblebee-status | 45125f39af8323775aeabf809ae5ae80cfe3ccd9 | [
"MIT"
] | 1,089 | 2016-11-06T10:02:53.000Z | 2022-03-26T12:53:30.000Z | tests/modules/contrib/test_traffic.py | spxtr/bumblebee-status | 45125f39af8323775aeabf809ae5ae80cfe3ccd9 | [
"MIT"
] | 817 | 2016-11-05T05:42:39.000Z | 2022-03-25T19:43:52.000Z | tests/modules/contrib/test_traffic.py | spxtr/bumblebee-status | 45125f39af8323775aeabf809ae5ae80cfe3ccd9 | [
"MIT"
] | 317 | 2016-11-05T00:35:06.000Z | 2022-03-24T13:35:03.000Z | import pytest
pytest.importorskip("psutil")
pytest.importorskip("netifaces")
def test_load_module():
__import__("modules.contrib.traffic")
| 14.7 | 41 | 0.768707 | 16 | 147 | 6.6875 | 0.75 | 0.336449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102041 | 147 | 9 | 42 | 16.333333 | 0.810606 | 0 | 0 | 0 | 0 | 0 | 0.260274 | 0.157534 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.8 | 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 |
87550096d72cf44392e9d9b9ed44401e244e882b | 572 | py | Python | test/01_util/util/test_loss_factors.py | OfficialCodexplosive/RESKit | e006e8c9923ddb044dab6951c95a15fa43489398 | [
"MIT"
] | 16 | 2020-01-08T09:44:37.000Z | 2022-03-24T15:56:02.000Z | test/01_util/util/test_loss_factors.py | OfficialCodexplosive/RESKit | e006e8c9923ddb044dab6951c95a15fa43489398 | [
"MIT"
] | 22 | 2020-04-25T18:01:40.000Z | 2020-10-07T14:11:57.000Z | test/01_util/util/test_loss_factors.py | OfficialCodexplosive/RESKit | e006e8c9923ddb044dab6951c95a15fa43489398 | [
"MIT"
] | 16 | 2020-02-26T14:31:26.000Z | 2021-04-28T10:34:51.000Z | import numpy as np
from reskit.util.loss_factors import low_generation_loss
def test_low_generation_loss():
assert np.isclose(low_generation_loss(0.05, base=0, sharpness=5), 0.7788007830714049)
assert np.isclose(low_generation_loss(0.05, base=0.5, sharpness=5), 0.38940039153570244)
assert np.isclose(low_g... | 52 | 94 | 0.77972 | 92 | 572 | 4.673913 | 0.326087 | 0.211628 | 0.276744 | 0.209302 | 0.432558 | 0.432558 | 0.432558 | 0.27907 | 0.27907 | 0.27907 | 0 | 0.229126 | 0.09965 | 572 | 10 | 95 | 57.2 | 0.605825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.625 | 1 | 0.125 | true | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5e3eb7c3fa35de56a51cad31b09370b16646260b | 3,138 | py | Python | rdmo/conditions/tests/test_views.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | null | null | null | rdmo/conditions/tests/test_views.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | null | null | null | rdmo/conditions/tests/test_views.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | null | null | null | import os
import pytest
from django.urls import reverse
users = (
('editor', 'editor'),
('reviewer', 'reviewer'),
('user', 'user'),
('api', 'api'),
('anonymous', None),
)
status_map = {
'conditions': {
'editor': 200, 'reviewer': 200, 'api': 200, 'user': 403, 'anonymous': 302
},
... | 35.258427 | 82 | 0.695029 | 372 | 3,138 | 5.706989 | 0.169355 | 0.135657 | 0.062647 | 0.081959 | 0.795572 | 0.795572 | 0.77626 | 0.752708 | 0.752708 | 0.695243 | 0 | 0.023169 | 0.147228 | 3,138 | 88 | 83 | 35.659091 | 0.770179 | 0 | 0 | 0.424242 | 0 | 0 | 0.208732 | 0.014659 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0.272727 | 0.257576 | 0 | 0.348485 | 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 |
5e40f1e6b1910b3e392787b2e8bc3d394e8fa868 | 43 | py | Python | python/random/ran.py | mifomen/codepuzzles | 430ffcc2d55a91746ce55c2881582f9db5a5b051 | [
"MIT"
] | null | null | null | python/random/ran.py | mifomen/codepuzzles | 430ffcc2d55a91746ce55c2881582f9db5a5b051 | [
"MIT"
] | null | null | null | python/random/ran.py | mifomen/codepuzzles | 430ffcc2d55a91746ce55c2881582f9db5a5b051 | [
"MIT"
] | null | null | null | import random
print(random.randint(1,100))
| 14.333333 | 28 | 0.790698 | 7 | 43 | 4.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.069767 | 43 | 2 | 29 | 21.5 | 0.75 | 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 |
5e4bcaaa482aa9d96ba11c7486707be9e253dc8a | 48 | py | Python | pygglz/memory/__init__.py | cbuschka/pygglz | 01f362024d6a5fd89d46b3b7da2cb5970ec43ed9 | [
"Apache-2.0"
] | 1 | 2020-05-16T14:38:10.000Z | 2020-05-16T14:38:10.000Z | pygglz/memory/__init__.py | cbuschka/pygglz | 01f362024d6a5fd89d46b3b7da2cb5970ec43ed9 | [
"Apache-2.0"
] | 1 | 2020-06-02T18:43:56.000Z | 2020-06-02T18:43:56.000Z | pygglz/memory/__init__.py | cbuschka/pygglz | 01f362024d6a5fd89d46b3b7da2cb5970ec43ed9 | [
"Apache-2.0"
] | 2 | 2020-05-16T14:25:46.000Z | 2020-05-16T14:55:46.000Z | from .memory_repository import MemoryRepository
| 24 | 47 | 0.895833 | 5 | 48 | 8.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 48 | 1 | 48 | 48 | 0.954545 | 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 |
5ecd9756929b2b6a188e603b98ee58b03a1f52c0 | 69,540 | py | Python | pybind/slxos/v16r_1_00b/isis_state/router_isis_config/is_address_family_v4/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v16r_1_00b/isis_state/router_isis_config/is_address_family_v4/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v16r_1_00b/isis_state/router_isis_config/is_address_family_v4/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | 1 | 2021-11-05T22:15:42.000Z | 2021-11-05T22:15:42.000Z |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | 80.766551 | 820 | 0.748519 | 9,403 | 69,540 | 5.246198 | 0.024992 | 0.036894 | 0.047679 | 0.030651 | 0.929455 | 0.904237 | 0.887938 | 0.871174 | 0.860126 | 0.846726 | 0 | 0.010813 | 0.126215 | 69,540 | 860 | 821 | 80.860465 | 0.80103 | 0.180659 | 0 | 0.501053 | 0 | 0.042105 | 0.397328 | 0.250009 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132632 | false | 0 | 0.031579 | 0 | 0.271579 | 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 |
0dd04ac0fb1dbbc393635034435d31e5a0163d24 | 6,668 | py | Python | tests/test_circuit.py | fabian-hk/Secure-Two-Party-Computation | f7e10a0a5c1b0361dd700391d81cdcc75612666d | [
"BSD-2-Clause"
] | 6 | 2019-05-21T18:40:50.000Z | 2021-10-19T10:27:50.000Z | tests/test_circuit.py | fabian-hk/Secure-Two-Party-Computation | f7e10a0a5c1b0361dd700391d81cdcc75612666d | [
"BSD-2-Clause"
] | null | null | null | tests/test_circuit.py | fabian-hk/Secure-Two-Party-Computation | f7e10a0a5c1b0361dd700391d81cdcc75612666d | [
"BSD-2-Clause"
] | null | null | null | import unittest
from random import randint, random
import numpy as np
from tests.test_circuit_creater import *
from tests.evaluate_circuit import evaluate_circuit
from tests.plain_evaluator import *
from tools.person import Person
class TestCircuit(unittest.TestCase):
def test_circuit_0(self):
for i in ... | 38.994152 | 116 | 0.594331 | 1,036 | 6,668 | 3.546332 | 0.067568 | 0.101252 | 0.137725 | 0.150245 | 0.859826 | 0.848122 | 0.839412 | 0.829069 | 0.829069 | 0.796407 | 0 | 0.056796 | 0.294991 | 6,668 | 170 | 117 | 39.223529 | 0.724739 | 0.091482 | 0 | 0.486239 | 0 | 0 | 0.005295 | 0 | 0 | 0 | 0 | 0 | 0.146789 | 1 | 0.119266 | false | 0 | 0.06422 | 0 | 0.211009 | 0.027523 | 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 |
0de708efca0bb14ea3f98e57baa7fdfbd2d92fde | 15,596 | py | Python | unit_tests/caseworker/cases/test_templates.py | uktrade/lite-frontend | c0f79d6c511a87406b953fe68cbf6546cc18874e | [
"MIT"
] | 1 | 2021-10-16T16:36:58.000Z | 2021-10-16T16:36:58.000Z | unit_tests/caseworker/cases/test_templates.py | uktrade/lite-frontend | c0f79d6c511a87406b953fe68cbf6546cc18874e | [
"MIT"
] | 45 | 2020-08-11T14:37:46.000Z | 2022-03-29T17:03:02.000Z | unit_tests/caseworker/cases/test_templates.py | uktrade/lite-frontend | c0f79d6c511a87406b953fe68cbf6546cc18874e | [
"MIT"
] | 3 | 2021-02-01T06:26:19.000Z | 2022-02-21T23:02:46.000Z | import pytest
import requests
from bs4 import BeautifulSoup
from django.template.loader import render_to_string
from caseworker.cases.objects import Case
team1 = {"id": "136cbb1f-390b-4f78-bfca-86300edec300", "name": "team1", "part_of_ecju": None}
team2 = {"id": "47762273-5655-4ce3-afa1-b34112f3e781", "name": "team2... | 38.039024 | 115 | 0.674468 | 1,973 | 15,596 | 5.069437 | 0.121135 | 0.039192 | 0.054389 | 0.032394 | 0.809338 | 0.79834 | 0.787043 | 0.782044 | 0.753849 | 0.74805 | 0 | 0.061533 | 0.159079 | 15,596 | 409 | 116 | 38.132029 | 0.701106 | 0.019877 | 0 | 0.641176 | 0 | 0 | 0.311866 | 0.153413 | 0 | 0 | 0 | 0 | 0.064706 | 1 | 0.052941 | false | 0 | 0.014706 | 0 | 0.067647 | 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 |
21797fe8cfb4e9f886b95aaa5567aba7aa0c5f59 | 32 | py | Python | services/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/__init__.py | colinRawlings/osparc-simcore | bf2f18d5bc1e574d5f4c238d08ad15156184c310 | [
"MIT"
] | 25 | 2018-04-13T12:44:12.000Z | 2022-03-12T15:01:17.000Z | services/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/__init__.py | colinRawlings/osparc-simcore | bf2f18d5bc1e574d5f4c238d08ad15156184c310 | [
"MIT"
] | 2,553 | 2018-01-18T17:11:55.000Z | 2022-03-31T16:26:40.000Z | services/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/__init__.py | mrnicegyu11/osparc-simcore | b6fa6c245dbfbc18cc74a387111a52de9b05d1f4 | [
"MIT"
] | 20 | 2018-01-18T19:45:33.000Z | 2022-03-29T07:08:47.000Z | from .module_setup import setup
| 16 | 31 | 0.84375 | 5 | 32 | 5.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 32 | 1 | 32 | 32 | 0.928571 | 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 |
21e154be265ff0545e1defc7008e310bd7c4d911 | 5,440 | py | Python | tests/test_device_manager.py | freundTech/pykdeconnect | 3834c7196796e96259222c2d19c5e687f1e6bd9c | [
"MIT"
] | 1 | 2022-03-07T12:15:37.000Z | 2022-03-07T12:15:37.000Z | tests/test_device_manager.py | freundTech/pykdeconnect | 3834c7196796e96259222c2d19c5e687f1e6bd9c | [
"MIT"
] | 13 | 2022-03-09T14:20:10.000Z | 2022-03-21T10:16:24.000Z | tests/test_device_manager.py | freundTech/pykdeconnect | 3834c7196796e96259222c2d19c5e687f1e6bd9c | [
"MIT"
] | null | null | null | from unittest.mock import AsyncMock, MagicMock
import pytest
from pykdeconnect.device_manager import DeviceManager
def test_device_manager_add_device():
storage = MagicMock()
device_manager = DeviceManager(storage)
device = MagicMock()
device.device_id = "foo"
device_manager.add_device(device)
... | 27.336683 | 68 | 0.765257 | 627 | 5,440 | 6.285486 | 0.100478 | 0.197919 | 0.039584 | 0.060898 | 0.87592 | 0.85765 | 0.819335 | 0.757929 | 0.676224 | 0.676224 | 0 | 0.000433 | 0.151471 | 5,440 | 198 | 69 | 27.474747 | 0.853336 | 0 | 0 | 0.742647 | 0 | 0 | 0.007721 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.029412 | false | 0 | 0.022059 | 0 | 0.051471 | 0 | 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 |
1d077a30cc52997d1c227a234e09b4b3bee43a13 | 682 | py | Python | calculate_anything/currency/providers/__init__.py | friday/ulauncher-albert-calculate-anything | 65e34ded08a4d88a66ec9fcd29bec41e57b32967 | [
"MIT"
] | null | null | null | calculate_anything/currency/providers/__init__.py | friday/ulauncher-albert-calculate-anything | 65e34ded08a4d88a66ec9fcd29bec41e57b32967 | [
"MIT"
] | null | null | null | calculate_anything/currency/providers/__init__.py | friday/ulauncher-albert-calculate-anything | 65e34ded08a4d88a66ec9fcd29bec41e57b32967 | [
"MIT"
] | null | null | null | from calculate_anything.currency.providers.provider import ApiKeyCurrencyProvider, FreeCurrencyProvider
from calculate_anything.currency.providers.fixerio import FixerIOCurrencyProvider
from calculate_anything.currency.providers.european_central_bank import ECBProvider
from calculate_anything.currency.providers.mycurre... | 75.777778 | 103 | 0.917889 | 65 | 682 | 9.476923 | 0.384615 | 0.168831 | 0.272727 | 0.329545 | 0.431818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 682 | 8 | 104 | 85.25 | 0.949153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
df0b2eadcbe13e8044b861f48fe91a3d66bd4102 | 93 | py | Python | blocksec2go/comm/__init__.py | DhruvKhemani/BlockchainSecurity2Go-Python-Library | ed4e432a18ee203840d2aa963ec35dc82f3e1399 | [
"MIT"
] | 2 | 2021-11-23T13:44:53.000Z | 2021-12-06T19:48:51.000Z | blocksec2go/comm/__init__.py | DhruvKhemani/BlockchainSecurity2Go-Python-Library | ed4e432a18ee203840d2aa963ec35dc82f3e1399 | [
"MIT"
] | null | null | null | blocksec2go/comm/__init__.py | DhruvKhemani/BlockchainSecurity2Go-Python-Library | ed4e432a18ee203840d2aa963ec35dc82f3e1399 | [
"MIT"
] | 1 | 2020-10-03T08:27:26.000Z | 2020-10-03T08:27:26.000Z | from blocksec2go.comm.pyscard import open_pyscard
from blocksec2go.comm.base import CardError | 46.5 | 49 | 0.88172 | 13 | 93 | 6.230769 | 0.615385 | 0.37037 | 0.469136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.075269 | 93 | 2 | 50 | 46.5 | 0.918605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
df4bddfa6f4cc3d98b75cd69d94b0b7685e7f496 | 20,190 | py | Python | pyechonest/playlist.py | gleitz/automaticdj | 3880c175bc09c17ed9f71ba9902e348a00bb64ef | [
"MIT"
] | 14 | 2015-06-19T22:00:41.000Z | 2021-03-14T07:41:38.000Z | pyechonest/playlist.py | gleitz/automaticdj | 3880c175bc09c17ed9f71ba9902e348a00bb64ef | [
"MIT"
] | null | null | null | pyechonest/playlist.py | gleitz/automaticdj | 3880c175bc09c17ed9f71ba9902e348a00bb64ef | [
"MIT"
] | 2 | 2015-07-19T10:51:23.000Z | 2019-04-10T14:46:23.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
Copyright (c) 2010 The Echo Nest. All rights reserved.
Created by Tyler Williams on 2010-04-25.
The Playlist module loosely covers http://developer.echonest.com/docs/v4/playlist.html
Refer to the official api documentation if you are unsure about something.
"""
import util... | 37.113971 | 133 | 0.594354 | 2,475 | 20,190 | 4.689697 | 0.116364 | 0.020246 | 0.036444 | 0.060739 | 0.775653 | 0.769536 | 0.767037 | 0.759025 | 0.753511 | 0.746446 | 0 | 0.016108 | 0.320456 | 20,190 | 543 | 134 | 37.18232 | 0.829883 | 0.450421 | 0 | 0.796117 | 0 | 0 | 0.114578 | 0.018315 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029126 | false | 0 | 0.019417 | 0.004854 | 0.097087 | 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 |
df5db499de8912de243a9be8c386a01fa9d800ad | 3,929 | py | Python | chaospy/quadrature/chebyshev.py | utsekaj42/chaospy | 0fb23cbb58eb987c3ca912e2a20b83ebab0514d0 | [
"MIT"
] | 333 | 2016-10-25T12:00:48.000Z | 2022-03-30T07:50:33.000Z | chaospy/quadrature/chebyshev.py | utsekaj42/chaospy | 0fb23cbb58eb987c3ca912e2a20b83ebab0514d0 | [
"MIT"
] | 327 | 2016-09-25T16:29:41.000Z | 2022-03-30T03:26:27.000Z | chaospy/quadrature/chebyshev.py | utsekaj42/chaospy | 0fb23cbb58eb987c3ca912e2a20b83ebab0514d0 | [
"MIT"
] | 74 | 2016-10-17T11:14:13.000Z | 2021-12-09T10:55:59.000Z | """Chebyshev-Gauss quadrature rule of the first kind."""
import numpy
import chaospy
from .hypercube import hypercube_quadrature
def chebyshev_1(order, lower=-1, upper=1, physicist=False):
r"""
Chebyshev-Gauss quadrature rule of the first kind.
Compute the sample points and weights for Chebyshev-Gauss q... | 36.045872 | 78 | 0.662001 | 493 | 3,929 | 5.245436 | 0.20284 | 0.037896 | 0.046404 | 0.034029 | 0.892111 | 0.892111 | 0.858855 | 0.858855 | 0.840681 | 0.730085 | 0 | 0.053981 | 0.24561 | 3,929 | 108 | 79 | 36.37963 | 0.818489 | 0.713668 | 0 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.368421 | 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 |
10c594c412eabe7e53c12af3ff5ec4ee2a317d6c | 210 | py | Python | sites_microsoft_auth/apps.py | gskudder/django_sites_microsoft_auth | da6be26c04ae9a8ed1e5515fd5f7e398e990b532 | [
"MIT"
] | null | null | null | sites_microsoft_auth/apps.py | gskudder/django_sites_microsoft_auth | da6be26c04ae9a8ed1e5515fd5f7e398e990b532 | [
"MIT"
] | 357 | 2019-10-07T10:01:50.000Z | 2022-03-26T02:49:25.000Z | sites_microsoft_auth/apps.py | gskudder/django_sites_microsoft_auth | da6be26c04ae9a8ed1e5515fd5f7e398e990b532 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class MicrosoftAuthConfig(AppConfig):
name = "sites_microsoft_auth"
verbose_name = "Microsoft Auth"
def ready(self):
import sites_microsoft_auth.signals
| 21 | 43 | 0.742857 | 24 | 210 | 6.291667 | 0.666667 | 0.258278 | 0.238411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 210 | 9 | 44 | 23.333333 | 0.888235 | 0 | 0 | 0 | 0 | 0 | 0.161905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
80417ceef2708d616eaa10d0776001a47a2095f6 | 47 | py | Python | yanapy/__init__.py | Sterals/INTERPRETATOR | 0a6a97ca4d9a560ae9682a42cf27a89c7146e682 | [
"MIT"
] | 1 | 2021-05-26T11:51:39.000Z | 2021-05-26T11:51:39.000Z | yanapy/__init__.py | Sterals/INTERPRETATOR | 0a6a97ca4d9a560ae9682a42cf27a89c7146e682 | [
"MIT"
] | 9 | 2021-05-20T19:37:05.000Z | 2021-06-03T20:55:39.000Z | yanapy/__init__.py | Sterals/INTERPRETATOR | 0a6a97ca4d9a560ae9682a42cf27a89c7146e682 | [
"MIT"
] | 1 | 2021-05-26T20:21:03.000Z | 2021-05-26T20:21:03.000Z | from .interpretators import baseinterpretator
| 15.666667 | 45 | 0.87234 | 4 | 47 | 10.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 47 | 2 | 46 | 23.5 | 0.97619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
804bb6af89c368f3c92a6d5af6133328d8c77969 | 251 | py | Python | in/sample/sample3.py | amihaylo/pycode_similar | ec3249aef6fd9d1e0f834ce0bffeb6e609075a78 | [
"MIT"
] | null | null | null | in/sample/sample3.py | amihaylo/pycode_similar | ec3249aef6fd9d1e0f834ce0bffeb6e609075a78 | [
"MIT"
] | null | null | null | in/sample/sample3.py | amihaylo/pycode_similar | ec3249aef6fd9d1e0f834ce0bffeb6e609075a78 | [
"MIT"
] | null | null | null | class Queue:
def __init__(self):
pass
def enqueue(self, item):
pass
def front(self):
pass
def dequeue(self):
pass
def isEmpty(self):
pass
def __str__(self):
pass
| 13.210526 | 28 | 0.482072 | 27 | 251 | 4.185185 | 0.444444 | 0.353982 | 0.389381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.438247 | 251 | 18 | 29 | 13.944444 | 0.801418 | 0 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.461538 | false | 0.461538 | 0 | 0 | 0.538462 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
33d68303711c4f392088af895bbdce86735ad36b | 35 | py | Python | dispike/followup/__init__.py | mitsuaky/dispike | bd3ffb28fc03307077d647ee233f4f0e5c594434 | [
"MIT"
] | 41 | 2020-12-29T03:07:38.000Z | 2022-01-30T09:05:03.000Z | dispike/followup/__init__.py | mitsuaky/dispike | bd3ffb28fc03307077d647ee233f4f0e5c594434 | [
"MIT"
] | 66 | 2020-12-28T08:04:27.000Z | 2021-11-04T09:12:54.000Z | dispike/followup/__init__.py | mitsuaky/dispike | bd3ffb28fc03307077d647ee233f4f0e5c594434 | [
"MIT"
] | 11 | 2021-01-21T22:36:34.000Z | 2021-11-04T07:23:30.000Z | from .main import FollowUpMessages
| 17.5 | 34 | 0.857143 | 4 | 35 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 35 | 1 | 35 | 35 | 0.967742 | 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 |
d508127bb5a285cc6dd8d34213ec4d3c1f51dbcd | 48 | py | Python | libshorttext/converter/stemmer/test_porter.py | mycollectingbox/LibShortText-for-Windows | 0630b5dfd598713210b14aefc5f6f4043aeb8ff4 | [
"BSD-3-Clause"
] | null | null | null | libshorttext/converter/stemmer/test_porter.py | mycollectingbox/LibShortText-for-Windows | 0630b5dfd598713210b14aefc5f6f4043aeb8ff4 | [
"BSD-3-Clause"
] | null | null | null | libshorttext/converter/stemmer/test_porter.py | mycollectingbox/LibShortText-for-Windows | 0630b5dfd598713210b14aefc5f6f4043aeb8ff4 | [
"BSD-3-Clause"
] | null | null | null | import porter
print(porter.stem("unexpected"))
| 12 | 32 | 0.770833 | 6 | 48 | 6.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 48 | 3 | 33 | 16 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 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 |
d514cdb5b424c8c36d1d0a65cdb73a9f0eeb8eac | 106 | py | Python | prescription_generator/helper/__init__.py | anshul2807/Automation-scripts | 1830437fc9cf5f97b1f5f194a704fb247849ef09 | [
"MIT"
] | 496 | 2020-10-07T15:45:34.000Z | 2022-03-29T16:40:30.000Z | prescription_generator/helper/__init__.py | anshul2807/Automation-scripts | 1830437fc9cf5f97b1f5f194a704fb247849ef09 | [
"MIT"
] | 550 | 2020-10-07T15:31:53.000Z | 2022-03-20T22:00:38.000Z | prescription_generator/helper/__init__.py | anshul2807/Automation-scripts | 1830437fc9cf5f97b1f5f194a704fb247849ef09 | [
"MIT"
] | 388 | 2020-10-07T15:45:21.000Z | 2022-03-27T14:54:46.000Z | # from .pdf_operations import save_pdf
# from .speech import speech_rec_for_windows, speech_rec_for_linux
| 35.333333 | 66 | 0.849057 | 17 | 106 | 4.823529 | 0.588235 | 0.219512 | 0.292683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103774 | 106 | 2 | 67 | 53 | 0.863158 | 0.95283 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1d1985bb9fd94c375378a089fb012ab0cb1bff82 | 50 | py | Python | masonite/contrib/cloudinary/providers/__init__.py | vaibhavmule/masonite-cloudinary-driver | 866b073717144b8e4755495a01cd4da20d295eaf | [
"MIT"
] | 1 | 2018-12-08T07:07:37.000Z | 2018-12-08T07:07:37.000Z | masonite/contrib/cloudinary/providers/__init__.py | vaibhavmule/masonite-cloudinary-driver | 866b073717144b8e4755495a01cd4da20d295eaf | [
"MIT"
] | null | null | null | masonite/contrib/cloudinary/providers/__init__.py | vaibhavmule/masonite-cloudinary-driver | 866b073717144b8e4755495a01cd4da20d295eaf | [
"MIT"
] | null | null | null | from .CloudinaryProvider import CloudinaryProvider | 50 | 50 | 0.92 | 4 | 50 | 11.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 50 | 1 | 50 | 50 | 0.978723 | 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 |
1d5c90e65553d5b5a8690e7a35f1474da8fc5244 | 198 | py | Python | test/test_make_index.py | 5267/QUANTAXIS | c3f38b805939e33309e2da7ea8cb32d245c3edfb | [
"MIT"
] | 5 | 2017-06-30T04:42:29.000Z | 2018-01-05T09:20:28.000Z | test/test_make_index.py | 5267/QUANTAXIS | c3f38b805939e33309e2da7ea8cb32d245c3edfb | [
"MIT"
] | null | null | null | test/test_make_index.py | 5267/QUANTAXIS | c3f38b805939e33309e2da7ea8cb32d245c3edfb | [
"MIT"
] | null | null | null |
import pymongo
#collection=pymongo.MongoClient().quantaxis.stock_day
#collection.ensure_index('code')
collection=pymongo.MongoClient().quantaxis.backtest_history
collection.ensure_index('cookie') | 24.75 | 59 | 0.838384 | 22 | 198 | 7.363636 | 0.590909 | 0.209877 | 0.345679 | 0.45679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040404 | 198 | 8 | 60 | 24.75 | 0.852632 | 0.419192 | 0 | 0 | 0 | 0 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
d5195c4fddbba9764f87e4095b195e0a9eda4d14 | 180 | py | Python | eegdrive/ingestion/__init__.py | lucagrementieri/eegdrive | 65b122246e2a75c0c7c80db3e544f6a6741ceb53 | [
"Apache-2.0"
] | null | null | null | eegdrive/ingestion/__init__.py | lucagrementieri/eegdrive | 65b122246e2a75c0c7c80db3e544f6a6741ceb53 | [
"Apache-2.0"
] | null | null | null | eegdrive/ingestion/__init__.py | lucagrementieri/eegdrive | 65b122246e2a75c0c7c80db3e544f6a6741ceb53 | [
"Apache-2.0"
] | null | null | null | from .eeg import EEG
from .episode_dataset import EpisodeDataset
from .ingest import ingest_session
from .transforms import HighPass, RemoveBeginning, RemoveLineNoise, Standardize
| 36 | 79 | 0.855556 | 21 | 180 | 7.238095 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105556 | 180 | 4 | 80 | 45 | 0.944099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
d53984c56b9132ca01c673067be4a73eb06de1e2 | 18 | py | Python | game/libs/IA/__init__.py | Gnukos/codingGame | 867e856c934731cf5bfb20919c4a4d0af20a3116 | [
"MIT"
] | 1 | 2022-02-15T23:15:28.000Z | 2022-02-15T23:15:28.000Z | botpunk/__init__.py | TisaneFruitRouge/botpunk | 6deb4a4239e71315ed03417ab7089c2290f425df | [
"MIT"
] | null | null | null | botpunk/__init__.py | TisaneFruitRouge/botpunk | 6deb4a4239e71315ed03417ab7089c2290f425df | [
"MIT"
] | null | null | null | from bot import *
| 9 | 17 | 0.722222 | 3 | 18 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 18 | 1 | 18 | 18 | 0.928571 | 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 |
d5613992bca5c1620906626acf6322baad0b20eb | 228 | py | Python | core/joblib/__init__.py | chuanli11/GFPGAN | 4adbf820cef782c7d33113be35e5f1a49f2a3793 | [
"BSD-3-Clause"
] | null | null | null | core/joblib/__init__.py | chuanli11/GFPGAN | 4adbf820cef782c7d33113be35e5f1a49f2a3793 | [
"BSD-3-Clause"
] | null | null | null | core/joblib/__init__.py | chuanli11/GFPGAN | 4adbf820cef782c7d33113be35e5f1a49f2a3793 | [
"BSD-3-Clause"
] | null | null | null | from .SubprocessorBase import Subprocessor
from .ThisThreadGenerator import ThisThreadGenerator
from .SubprocessGenerator import SubprocessGenerator
from .MPFunc import MPFunc
from .MPClassFuncOnDemand import MPClassFuncOnDemand | 45.6 | 52 | 0.894737 | 20 | 228 | 10.2 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 228 | 5 | 53 | 45.6 | 0.976077 | 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 |
6359f7bebe118dc875348db4aae921372f6cab8d | 45 | py | Python | worms/vis/__init__.py | abiedermann/worms | 026c45a88d5c71b0e035ac83de6f4dc107316ed8 | [
"Apache-2.0"
] | 4 | 2018-01-30T23:13:43.000Z | 2021-02-12T22:36:54.000Z | worms/vis/__init__.py | abiedermann/worms | 026c45a88d5c71b0e035ac83de6f4dc107316ed8 | [
"Apache-2.0"
] | 9 | 2018-02-23T00:52:25.000Z | 2022-01-26T00:02:32.000Z | worms/vis/__init__.py | abiedermann/worms | 026c45a88d5c71b0e035ac83de6f4dc107316ed8 | [
"Apache-2.0"
] | 4 | 2018-06-28T21:30:14.000Z | 2022-03-30T17:50:42.000Z | from .vis_pymol import *
from .plot import *
| 15 | 24 | 0.733333 | 7 | 45 | 4.571429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 45 | 2 | 25 | 22.5 | 0.864865 | 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 |
63aad6bf9e36c98fd93a1f833ee428f700566eab | 3,491 | py | Python | tests/api/test_repo_history_limit.py | saukrIppl/newsea | 0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603 | [
"Apache-2.0"
] | 2 | 2017-06-21T09:46:55.000Z | 2018-05-30T10:07:32.000Z | tests/api/test_repo_history_limit.py | saukrIppl/newsea | 0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603 | [
"Apache-2.0"
] | null | null | null | tests/api/test_repo_history_limit.py | saukrIppl/newsea | 0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603 | [
"Apache-2.0"
] | 1 | 2020-10-01T04:11:41.000Z | 2020-10-01T04:11:41.000Z | """seahub/api2/views.py::Repo api tests.
"""
import json
from django.core.urlresolvers import reverse
from constance import config
from seahub.test_utils import BaseTestCase
class RepoTest(BaseTestCase):
def setUp(self):
self.user_repo_id = self.repo.id
def tearDown(self):
self.remove_repo... | 35.262626 | 92 | 0.654254 | 495 | 3,491 | 4.393939 | 0.149495 | 0.051494 | 0.070805 | 0.057931 | 0.875402 | 0.867126 | 0.854253 | 0.854253 | 0.832644 | 0.825287 | 0 | 0.0124 | 0.214552 | 3,491 | 98 | 93 | 35.622449 | 0.780817 | 0.010599 | 0 | 0.676056 | 0 | 0 | 0.176675 | 0.129968 | 0 | 0 | 0 | 0 | 0.15493 | 1 | 0.126761 | false | 0 | 0.056338 | 0 | 0.197183 | 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 |
63b6637e25111984205588c8810f37bfa2ec37d3 | 29 | py | Python | algo/apg/func.py | xlnwel/grl | 7d42bb2e78bc3e7b7c3ebbcf356a4d1cf12abebf | [
"Apache-2.0"
] | 5 | 2021-09-04T14:50:39.000Z | 2022-03-13T09:53:09.000Z | algo/apg/func.py | xlnwel/d2rl | 7d42bb2e78bc3e7b7c3ebbcf356a4d1cf12abebf | [
"Apache-2.0"
] | null | null | null | algo/apg/func.py | xlnwel/d2rl | 7d42bb2e78bc3e7b7c3ebbcf356a4d1cf12abebf | [
"Apache-2.0"
] | 2 | 2022-01-25T09:32:01.000Z | 2022-03-13T09:53:14.000Z | from algo.seed.func import *
| 14.5 | 28 | 0.758621 | 5 | 29 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 0.88 | 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 |
893ced94a2d3a42d9b920906bebb2367e0d090ac | 48 | py | Python | app/data/enum/__init__.py | lokaimoma/Bugza | 93ffe344cb0be7dc4c45965f52798e02d05d320b | [
"Unlicense"
] | 2 | 2022-02-14T23:53:00.000Z | 2022-03-24T12:19:49.000Z | app/data/enum/__init__.py | lokaimoma/Bugza | 93ffe344cb0be7dc4c45965f52798e02d05d320b | [
"Unlicense"
] | null | null | null | app/data/enum/__init__.py | lokaimoma/Bugza | 93ffe344cb0be7dc4c45965f52798e02d05d320b | [
"Unlicense"
] | null | null | null | # Created by Kelvin_Clark on 1/30/2022, 9:54 PM
| 24 | 47 | 0.729167 | 11 | 48 | 3.090909 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.166667 | 48 | 1 | 48 | 48 | 0.6 | 0.9375 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
89463524c008dcd7c4ed2cffc0aee9dfd58fee28 | 26 | py | Python | marco/marco.py | Xlayton/my-hello-world | 26bbedfbd512f9e37e0813f605732e9c4845ee4c | [
"Apache-2.0"
] | 5 | 2018-10-03T17:52:48.000Z | 2021-03-18T05:53:38.000Z | marco/marco.py | Xlayton/my-hello-world | 26bbedfbd512f9e37e0813f605732e9c4845ee4c | [
"Apache-2.0"
] | 71 | 2018-10-01T12:15:06.000Z | 2018-10-06T08:15:28.000Z | marco/marco.py | Xlayton/my-hello-world | 26bbedfbd512f9e37e0813f605732e9c4845ee4c | [
"Apache-2.0"
] | 196 | 2018-10-01T12:18:18.000Z | 2020-10-15T23:54:50.000Z | print"Hello👋🏻 from space🌎" | 26 | 26 | 0.730769 | 6 | 26 | 3.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 26 | 1 | 26 | 26 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
897504555ad3122a427e39ae924521ecefa1b7fc | 99 | py | Python | djhl/book/tests/test_apps.py | serlus/DjHL | aab86de0577b3e976709208e74f217315f582285 | [
"BSD-3-Clause"
] | 2 | 2020-06-18T23:23:08.000Z | 2021-09-26T10:46:24.000Z | djhl/book/tests/test_apps.py | serlus/DjHL | aab86de0577b3e976709208e74f217315f582285 | [
"BSD-3-Clause"
] | 105 | 2020-06-17T19:40:51.000Z | 2022-03-01T20:23:04.000Z | djhl/book/tests/test_apps.py | serlus/DjHL | aab86de0577b3e976709208e74f217315f582285 | [
"BSD-3-Clause"
] | 6 | 2020-06-18T22:53:30.000Z | 2020-09-19T01:43:37.000Z | from djhl.book.apps import BookConfig
def test_core():
assert BookConfig.name == "djhl.book"
| 16.5 | 41 | 0.727273 | 14 | 99 | 5.071429 | 0.785714 | 0.225352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161616 | 99 | 5 | 42 | 19.8 | 0.855422 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
899a721e61c40f7ec1af3d64fdc4f00aaec01f19 | 42 | py | Python | SLpackage/private/pacbio/pythonpkgs/pbcommand/lib/python2.7/site-packages/pbcommand/engine/__init__.py | fanglab/6mASCOPE | 3f1fdcb7693ff152f17623ce549526ec272698b1 | [
"BSD-3-Clause"
] | 5 | 2022-02-20T07:10:02.000Z | 2022-03-18T17:47:53.000Z | SLpackage/private/pacbio/pythonpkgs/pbcommand/lib/python2.7/site-packages/pbcommand/engine/__init__.py | fanglab/6mASCOPE | 3f1fdcb7693ff152f17623ce549526ec272698b1 | [
"BSD-3-Clause"
] | null | null | null | SLpackage/private/pacbio/pythonpkgs/pbcommand/lib/python2.7/site-packages/pbcommand/engine/__init__.py | fanglab/6mASCOPE | 3f1fdcb7693ff152f17623ce549526ec272698b1 | [
"BSD-3-Clause"
] | null | null | null | from .runner import run_cmd, ExtCmdResult
| 21 | 41 | 0.833333 | 6 | 42 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 42 | 1 | 42 | 42 | 0.918919 | 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 |
89af8b6a2f4c1d7cea9b9ef6341fc4e1bc7c42bf | 14,350 | py | Python | tests/test_ucb.py | harisankarh/mabwiser | 0c860253be017d1f393e18bf9d9d7e1739f93dca | [
"Apache-2.0"
] | 1 | 2020-07-22T06:55:17.000Z | 2020-07-22T06:55:17.000Z | tests/test_ucb.py | harisankarh/mabwiser | 0c860253be017d1f393e18bf9d9d7e1739f93dca | [
"Apache-2.0"
] | null | null | null | tests/test_ucb.py | harisankarh/mabwiser | 0c860253be017d1f393e18bf9d9d7e1739f93dca | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
import math
import numpy as np
import pandas as pd
from mabwiser.mab import LearningPolicy
from mabwiser.ucb import _UCB1
from tests.test_base import BaseTest
class UCBTest(BaseTest):
def test_alpha0(self):
arm, mab = self.predict(arms=[1, 2, 3],
... | 38.888889 | 119 | 0.430523 | 1,702 | 14,350 | 3.519977 | 0.077556 | 0.025038 | 0.016024 | 0.059589 | 0.862961 | 0.855951 | 0.84193 | 0.812218 | 0.799533 | 0.799533 | 0 | 0.13478 | 0.437979 | 14,350 | 368 | 120 | 38.994565 | 0.60806 | 0.005575 | 0 | 0.692029 | 0 | 0 | 0.015775 | 0 | 0 | 0 | 0 | 0 | 0.213768 | 1 | 0.07971 | false | 0 | 0.025362 | 0 | 0.108696 | 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 |
9830e5c17e9370946523382a45e82af7c72f926a | 45 | py | Python | PythonPackageTemplate/__init__.py | grobbles/python-package-template | 926569fe5a6caf9bfe177ec7fed68191db505a26 | [
"MIT"
] | null | null | null | PythonPackageTemplate/__init__.py | grobbles/python-package-template | 926569fe5a6caf9bfe177ec7fed68191db505a26 | [
"MIT"
] | null | null | null | PythonPackageTemplate/__init__.py | grobbles/python-package-template | 926569fe5a6caf9bfe177ec7fed68191db505a26 | [
"MIT"
] | null | null | null | from .Module import *
from .Main import Main
| 15 | 22 | 0.755556 | 7 | 45 | 4.857143 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 45 | 2 | 23 | 22.5 | 0.918919 | 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 |
98a76443721c72eb035abacdaf1185ef2356beb3 | 30 | py | Python | samples/currencies/__init__.py | zoho/zohocrm-python-sdk-2.0 | 3a93eb3b57fed4e08f26bd5b311e101cb2995411 | [
"Apache-2.0"
] | null | null | null | samples/currencies/__init__.py | zoho/zohocrm-python-sdk-2.0 | 3a93eb3b57fed4e08f26bd5b311e101cb2995411 | [
"Apache-2.0"
] | null | null | null | samples/currencies/__init__.py | zoho/zohocrm-python-sdk-2.0 | 3a93eb3b57fed4e08f26bd5b311e101cb2995411 | [
"Apache-2.0"
] | null | null | null | from .currency import Currency | 30 | 30 | 0.866667 | 4 | 30 | 6.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 30 | 1 | 30 | 30 | 0.962963 | 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 |
7f376443fc9042ff567d1b84e02d11231c022912 | 209 | py | Python | human-feedback-api/human_feedback_api/templatetags/custom_tags.py | yangalexandery/rl-teacher | d7b01223df548bf7bd27d4ddec9f6e9c9dd0def4 | [
"MIT"
] | 463 | 2017-08-03T16:08:05.000Z | 2022-03-06T23:12:40.000Z | human-feedback-api/human_feedback_api/templatetags/custom_tags.py | yangalexandery/rl-teacher | d7b01223df548bf7bd27d4ddec9f6e9c9dd0def4 | [
"MIT"
] | 22 | 2017-08-03T16:59:24.000Z | 2020-12-21T01:08:26.000Z | human-feedback-api/human_feedback_api/templatetags/custom_tags.py | oguzserbetci/rl-teacher-atari | fd6c399921d347333d7c5b4b12c63f1a955cea5c | [
"MIT"
] | 86 | 2017-08-03T16:17:06.000Z | 2022-03-08T12:11:00.000Z | from django import template
register = template.Library()
@register.inclusion_tag('_comparison.html')
def _comparison(comparison, experiment):
return {'comparison': comparison, "experiment": experiment}
| 26.125 | 63 | 0.779904 | 21 | 209 | 7.619048 | 0.619048 | 0.25 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 209 | 7 | 64 | 29.857143 | 0.855615 | 0 | 0 | 0 | 0 | 0 | 0.172249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 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 | 0 | 1 | 1 | 0 | 0 | 6 |
f680ea1f918e7a547eeb5e063c29263f8b5aab97 | 20,503 | py | Python | device_repo/device_repo_ice/Digitizer_ice.py | TerryGeng/device_repo | 972025b0d4f0f20b4df333d209059cda3cbd8a5d | [
"MIT"
] | 2 | 2020-12-21T12:57:45.000Z | 2021-08-30T07:28:10.000Z | device_repo/device_repo_ice/Digitizer_ice.py | TerryGeng/device_repo | 972025b0d4f0f20b4df333d209059cda3cbd8a5d | [
"MIT"
] | null | null | null | device_repo/device_repo_ice/Digitizer_ice.py | TerryGeng/device_repo | 972025b0d4f0f20b4df333d209059cda3cbd8a5d | [
"MIT"
] | 2 | 2021-03-31T14:30:46.000Z | 2021-08-30T07:26:12.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) ZeroC, Inc. All rights reserved.
#
#
# Ice version 3.7.4
#
# <auto-generated>
#
# Generated from file `Digitizer.ice'
#
# Warning: do not edit this file.
#
# </auto-generated>
#
from sys import version_info as _version_info_
import Ice, IcePy
from . import device_repo_ice
# I... | 56.482094 | 219 | 0.71609 | 2,656 | 20,503 | 5.062877 | 0.04744 | 0.081059 | 0.103443 | 0.095783 | 0.863018 | 0.76069 | 0.689224 | 0.626683 | 0.572618 | 0.523091 | 0 | 0.001408 | 0.168658 | 20,503 | 362 | 220 | 56.638122 | 0.787504 | 0.013803 | 0 | 0.038298 | 1 | 0 | 0.073363 | 0.019652 | 0 | 0 | 0 | 0 | 0 | 1 | 0.412766 | false | 0 | 0.012766 | 0.33617 | 0.774468 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 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 |
f6942ccaaf9505f777b06e1ad315cbdf136e3a0b | 1,076 | py | Python | Tasks/spacy_test.py | AntonAlbertovich/Eusocial-Cluster-Utility | fef4f583b6151bb40e54d6825d65d668581c2121 | [
"MIT"
] | 2 | 2019-03-22T15:08:31.000Z | 2019-03-23T20:10:40.000Z | Tasks/spacy_test.py | AntonAlbertovich/Eusocial-Cluster-Utility | fef4f583b6151bb40e54d6825d65d668581c2121 | [
"MIT"
] | 1 | 2019-03-23T20:08:12.000Z | 2019-03-23T20:08:12.000Z | Tasks/spacy_test.py | AntonAlbertovich/Eusocial-Cluster-Utility | fef4f583b6151bb40e54d6825d65d668581c2121 | [
"MIT"
] | 1 | 2019-03-23T19:56:07.000Z | 2019-03-23T19:56:07.000Z | import spacy
nlp = spacy.load('en_core_web_sm')
doc = nlp(u'(12) I am going to the grocery store right now. ')
for token in doc:
print(token.text, token.dep_)
print("------------------------------------------------")
nlp = spacy.load('en_core_web_sm')
doc = nlp(u'Do you want anything?')
for token in doc:
pri... | 24.454545 | 99 | 0.530669 | 151 | 1,076 | 3.649007 | 0.357616 | 0.072595 | 0.108893 | 0.127042 | 0.76225 | 0.76225 | 0.76225 | 0.76225 | 0.76225 | 0.76225 | 0 | 0.00431 | 0.137546 | 1,076 | 43 | 100 | 25.023256 | 0.58944 | 0 | 0 | 0.769231 | 0 | 0.038462 | 0.518173 | 0.223672 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 0.384615 | 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 |
f6ba345c8018c173fcb7be38dc01a750bccd4b9c | 40 | py | Python | tests/engine/__init__.py | 2kodevs/Search-Engine | 840001f825d9632c6c7a5fd24151b79ca1a9a06b | [
"MIT"
] | null | null | null | tests/engine/__init__.py | 2kodevs/Search-Engine | 840001f825d9632c6c7a5fd24151b79ca1a9a06b | [
"MIT"
] | null | null | null | tests/engine/__init__.py | 2kodevs/Search-Engine | 840001f825d9632c6c7a5fd24151b79ca1a9a06b | [
"MIT"
] | null | null | null | from ._tests import SearchEngineTestCase | 40 | 40 | 0.9 | 4 | 40 | 8.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 40 | 1 | 40 | 40 | 0.945946 | 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 |
f6cfd91952ffe39686f51320416dcd744b337856 | 2,357 | py | Python | D 2016-2017/Oct 26/ResistancesInParallel_in_class.py | bnajafi/Python4ScientificComputing_Fundamentals | 7c943404654d9c44920ea9a7fdee28bc99ad8d05 | [
"MIT"
] | 65 | 2017-01-19T08:03:38.000Z | 2021-04-02T17:41:43.000Z | D 2016-2017/Oct 26/ResistancesInParallel_in_class.py | bnajafi/Python4ScientificComputing_Fundamentals | 7c943404654d9c44920ea9a7fdee28bc99ad8d05 | [
"MIT"
] | null | null | null | D 2016-2017/Oct 26/ResistancesInParallel_in_class.py | bnajafi/Python4ScientificComputing_Fundamentals | 7c943404654d9c44920ea9a7fdee28bc99ad8d05 | [
"MIT"
] | 110 | 2017-01-19T08:04:14.000Z | 2020-07-23T13:44:52.000Z |
Ri=["conv",12, 10]
Ro=["conv",12, 25]
R1=["cond",12,0.2,0.8]#Here is the order: 0:type, 1:area,
R2=["cond",12,0.3,1.5]
R3=["cond",12,0.1,0.7]#Here is the order: 0:type, 1:area,
R4=["cond",12,0.15,1.5]
R5=["cond",12,0.25,11.1]
#R_parallel=[R3,R4,R5]
#R_in Series=[Ri,Ro,R7,R8]
resistances_in_series=[Ri,R1,R2,Ro]
re... | 28.059524 | 79 | 0.652949 | 365 | 2,357 | 4.09589 | 0.189041 | 0.048161 | 0.128428 | 0.048161 | 0.759866 | 0.759866 | 0.759866 | 0.759866 | 0.727759 | 0.727759 | 0 | 0.045356 | 0.214255 | 2,357 | 83 | 80 | 28.39759 | 0.761879 | 0.217225 | 0 | 0.654545 | 0 | 0 | 0.156798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.109091 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f6d6f59b972b04c33bab096a8604694d113dabcb | 321 | py | Python | cakechat/dialog_model/inference/__init__.py | sketscripter/emotional-chatbot-cakechat | 470df58a2206a0ea38b6bed53b20cbc63bd3de24 | [
"Apache-2.0"
] | 1,608 | 2018-01-31T15:22:29.000Z | 2022-03-30T19:59:16.000Z | cakechat/dialog_model/inference/__init__.py | GaelicThunder/cakechat | 844507281b30d81b3fe3674895fe27826dba8438 | [
"Apache-2.0"
] | 64 | 2019-07-05T06:06:43.000Z | 2021-08-02T05:22:31.000Z | cakechat/dialog_model/inference/__init__.py | Spark3757/chatbot | 4e8eae70af2d5b68564d86b7ea0dbec956ae676f | [
"Apache-2.0"
] | 690 | 2018-01-31T17:57:19.000Z | 2022-03-30T07:07:41.000Z | from cakechat.dialog_model.inference.utils import get_sequence_log_probs, get_sequence_score_by_thought_vector, \
get_sequence_score
from cakechat.dialog_model.inference.predict import get_nn_response_ids, get_nn_responses, warmup_predictor
from cakechat.dialog_model.inference.service_tokens import ServiceTokensIDs... | 64.2 | 113 | 0.890966 | 45 | 321 | 5.911111 | 0.555556 | 0.135338 | 0.203008 | 0.259399 | 0.360902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065421 | 321 | 4 | 114 | 80.25 | 0.886667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f6e30682785c0cdce843e27b6f97a7e7739fa292 | 208 | py | Python | tests/files/plugins/test-plugin.py | jeremyschulman/netcfgbu | c2056f07aefa7c9e584fc9a34c9971100df7fa49 | [
"Apache-2.0"
] | 83 | 2020-06-02T13:25:33.000Z | 2022-03-07T20:50:36.000Z | tests/files/plugins/test-plugin.py | jeremyschulman/netcfgbu | c2056f07aefa7c9e584fc9a34c9971100df7fa49 | [
"Apache-2.0"
] | 55 | 2020-06-03T17:51:31.000Z | 2021-08-14T14:13:56.000Z | tests/files/plugins/test-plugin.py | jeremyschulman/netcfgbu | c2056f07aefa7c9e584fc9a34c9971100df7fa49 | [
"Apache-2.0"
] | 16 | 2020-06-05T20:32:27.000Z | 2021-11-01T17:06:38.000Z | from netcfgbu.plugins import Plugin
class TestPlugin(Plugin):
def backup_success(rec: dict, res: bool):
return (rec, res)
def backup_failed(rec: dict, res: bool):
return (rec, res)
| 20.8 | 45 | 0.658654 | 28 | 208 | 4.821429 | 0.571429 | 0.133333 | 0.148148 | 0.207407 | 0.385185 | 0.385185 | 0.385185 | 0 | 0 | 0 | 0 | 0 | 0.235577 | 208 | 9 | 46 | 23.111111 | 0.849057 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
f6eaf6837ed0072d89fd31c889ab306fcb1ac8a8 | 207 | py | Python | bluenrg/commands/__init__.py | autopi-io/py-bluenrg | f3fa9df8fa9ff86b615aef1782f6bbce80298abf | [
"Apache-2.0"
] | null | null | null | bluenrg/commands/__init__.py | autopi-io/py-bluenrg | f3fa9df8fa9ff86b615aef1782f6bbce80298abf | [
"Apache-2.0"
] | null | null | null | bluenrg/commands/__init__.py | autopi-io/py-bluenrg | f3fa9df8fa9ff86b615aef1782f6bbce80298abf | [
"Apache-2.0"
] | null | null | null | # NOTE: This file is auto-generated, please do not modify
from .hci import *
from .hci_testing import *
from .hal import *
from .gap import *
from .gatt_att import *
from .l2cap import *
from .app import *
| 20.7 | 57 | 0.724638 | 33 | 207 | 4.484848 | 0.606061 | 0.405405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.188406 | 207 | 9 | 58 | 23 | 0.875 | 0.2657 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
63df094cf2fae4e9064558932295571d91e6dac4 | 47 | py | Python | naslib/optimizers/oneshot/darts/searcher.py | az2104nas/sztnb302alsr2bs21on | 6084c82c59a4a89498a191d96c231f47df10317d | [
"Apache-2.0"
] | null | null | null | naslib/optimizers/oneshot/darts/searcher.py | az2104nas/sztnb302alsr2bs21on | 6084c82c59a4a89498a191d96c231f47df10317d | [
"Apache-2.0"
] | 4 | 2021-06-08T21:32:32.000Z | 2022-03-12T00:29:33.000Z | naslib/optimizers/oneshot/darts/searcher.py | az2104nas/sztnb302alsr2bs21on | 6084c82c59a4a89498a191d96c231f47df10317d | [
"Apache-2.0"
] | null | null | null | from naslib.optimizers.oneshot import Searcher
| 23.5 | 46 | 0.87234 | 6 | 47 | 6.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 47 | 1 | 47 | 47 | 0.953488 | 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 |
1246e8bbb7be1d21799a58e54e5dafb13ab7e06b | 139 | py | Python | GCL/losses/__init__.py | GCL-staging/PyGCL | 6cf2f4475053c631c6db1b8a2412bd811b586275 | [
"Apache-2.0"
] | null | null | null | GCL/losses/__init__.py | GCL-staging/PyGCL | 6cf2f4475053c631c6db1b8a2412bd811b586275 | [
"Apache-2.0"
] | null | null | null | GCL/losses/__init__.py | GCL-staging/PyGCL | 6cf2f4475053c631c6db1b8a2412bd811b586275 | [
"Apache-2.0"
] | null | null | null | from .jsd import *
from .vicreg import *
from .infonce import *
from .triplet import *
from .bootstrap import *
from .barlow_twins import * | 23.166667 | 27 | 0.748201 | 19 | 139 | 5.421053 | 0.473684 | 0.485437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165468 | 139 | 6 | 27 | 23.166667 | 0.887931 | 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 |
12559ac9bb4ab44aba097ecb87205d8a4f28d6b5 | 71 | py | Python | baloo/__init__.py | cda-group/baloo | 0d442117c2a919b177e0a96024cbdc82762cb646 | [
"BSD-3-Clause"
] | 11 | 2018-12-16T00:19:39.000Z | 2021-01-06T04:56:02.000Z | baloo/__init__.py | monner/baloo | f6e05e35b73a75e8a300754c6bdc575e5f2d53b9 | [
"BSD-3-Clause"
] | 6 | 2019-02-21T23:22:14.000Z | 2021-06-01T22:39:32.000Z | baloo/__init__.py | monner/baloo | f6e05e35b73a75e8a300754c6bdc575e5f2d53b9 | [
"BSD-3-Clause"
] | 6 | 2019-02-12T14:30:43.000Z | 2020-03-15T17:17:56.000Z | from .core import *
from .functions import *
from .io.parsers import *
| 17.75 | 25 | 0.732394 | 10 | 71 | 5.2 | 0.6 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 71 | 3 | 26 | 23.666667 | 0.881356 | 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 |
126ea4b32457916697fc1408b40ac77349d6c589 | 5,707 | py | Python | catalog/migrations/0001_initial.py | eldemoni/mymdb_final | 02332d0d5b4d88bc6adb38ce797010e16b50c847 | [
"MIT"
] | null | null | null | catalog/migrations/0001_initial.py | eldemoni/mymdb_final | 02332d0d5b4d88bc6adb38ce797010e16b50c847 | [
"MIT"
] | null | null | null | catalog/migrations/0001_initial.py | eldemoni/mymdb_final | 02332d0d5b4d88bc6adb38ce797010e16b50c847 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.2 on 2020-03-04 11:31
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 49.626087 | 151 | 0.573331 | 575 | 5,707 | 5.535652 | 0.215652 | 0.040214 | 0.035187 | 0.046183 | 0.775055 | 0.744266 | 0.709079 | 0.709079 | 0.709079 | 0.709079 | 0 | 0.012457 | 0.282635 | 5,707 | 114 | 152 | 50.061404 | 0.765022 | 0.007885 | 0 | 0.626168 | 1 | 0 | 0.152827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028037 | 0 | 0.065421 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d600bebd3d9373769f3518a9c26bd98689ba3d82 | 48,012 | py | Python | Decision Tree/kingsheep/template_player.py | wangqiaowen/Kingsheep | 7e8bf14eaf311ede9d8c335361c672e1b4383236 | [
"Apache-2.0"
] | null | null | null | Decision Tree/kingsheep/template_player.py | wangqiaowen/Kingsheep | 7e8bf14eaf311ede9d8c335361c672e1b4383236 | [
"Apache-2.0"
] | null | null | null | Decision Tree/kingsheep/template_player.py | wangqiaowen/Kingsheep | 7e8bf14eaf311ede9d8c335361c672e1b4383236 | [
"Apache-2.0"
] | null | null | null | """
Kingsheep Agent Template
This template is provided for the course 'Practical Artificial Intelligence' of the University of Zürich.
Please edit the following things before you upload your agent:
- change the name of your file to '[uzhshortname]_A2.py', where [uzhshortname] needs to be your uzh shortname
-... | 45.16651 | 193 | 0.505499 | 5,598 | 48,012 | 4.106645 | 0.043051 | 0.161164 | 0.065162 | 0.029362 | 0.840532 | 0.809996 | 0.779068 | 0.746183 | 0.723607 | 0.698856 | 0 | 0.035298 | 0.394006 | 48,012 | 1,063 | 194 | 45.16651 | 0.754838 | 0.249 | 0 | 0.603834 | 0 | 0 | 0.022057 | 0.004249 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023962 | false | 0 | 0.00639 | 0.00639 | 0.105431 | 0.121406 | 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 |
c39b2a4602139769566ed0a677f285a726d753e5 | 69 | py | Python | deepspeed/profiling/testing/config/__init__.py | B06901052/DeepSpeed | c71bee0c7e15a67c849e2093bfa6b8ca12fbdd82 | [
"MIT"
] | null | null | null | deepspeed/profiling/testing/config/__init__.py | B06901052/DeepSpeed | c71bee0c7e15a67c849e2093bfa6b8ca12fbdd82 | [
"MIT"
] | null | null | null | deepspeed/profiling/testing/config/__init__.py | B06901052/DeepSpeed | c71bee0c7e15a67c849e2093bfa6b8ca12fbdd82 | [
"MIT"
] | null | null | null | from .scalerop import *
from .tensorop import *
from .mathop import * | 23 | 23 | 0.753623 | 9 | 69 | 5.777778 | 0.555556 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15942 | 69 | 3 | 24 | 23 | 0.896552 | 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 |
c3c31d366301fa3a3ba7f8b1cd479d805055d280 | 12,281 | py | Python | tests/components/fritzbox_callmonitor/test_config_flow.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 1 | 2021-07-08T20:09:55.000Z | 2021-07-08T20:09:55.000Z | tests/components/fritzbox_callmonitor/test_config_flow.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 47 | 2021-02-21T23:43:07.000Z | 2022-03-31T06:07:10.000Z | tests/components/fritzbox_callmonitor/test_config_flow.py | OpenPeerPower/core | f673dfac9f2d0c48fa30af37b0a99df9dd6640ee | [
"Apache-2.0"
] | null | null | null | """Tests for fritzbox_callmonitor config flow."""
from unittest.mock import PropertyMock
from fritzconnection.core.exceptions import FritzConnectionException, FritzSecurityError
from requests.exceptions import ConnectionError as RequestsConnectionError
from openpeerpower.components.fritzbox_callmonitor.config_flow im... | 34.208914 | 96 | 0.706213 | 1,396 | 12,281 | 5.831662 | 0.085244 | 0.040536 | 0.110429 | 0.149613 | 0.818327 | 0.782828 | 0.745117 | 0.745117 | 0.744626 | 0.740818 | 0 | 0.004773 | 0.198111 | 12,281 | 358 | 97 | 34.304469 | 0.821893 | 0.003501 | 0 | 0.648649 | 0 | 0 | 0.20941 | 0.178547 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0 | false | 0.02027 | 0.040541 | 0 | 0.040541 | 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 |
6132cc90577b8c896a0100bf8451cbc39783b045 | 49 | py | Python | forecastio/__init__.py | timgates42/python-forecast.io | 17bc91b6672b651db013adfae9d4584db56ef49a | [
"BSD-2-Clause"
] | 343 | 2015-01-02T17:23:50.000Z | 2022-01-21T01:05:14.000Z | forecastio/__init__.py | timgates42/python-forecast.io | 17bc91b6672b651db013adfae9d4584db56ef49a | [
"BSD-2-Clause"
] | 40 | 2015-01-28T08:15:26.000Z | 2022-03-09T14:44:15.000Z | forecastio/__init__.py | timgates42/python-forecast.io | 17bc91b6672b651db013adfae9d4584db56ef49a | [
"BSD-2-Clause"
] | 80 | 2015-02-26T08:41:20.000Z | 2021-07-02T20:50:08.000Z | from forecastio.api import load_forecast, manual
| 24.5 | 48 | 0.857143 | 7 | 49 | 5.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102041 | 49 | 1 | 49 | 49 | 0.931818 | 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 |
61860d966abb9f83633bb92e0fc57b49e20951a3 | 538 | py | Python | workloads/workload.py | binmahone/Raven | 40b7e24f14a72af978341c311250f15795be1eb0 | [
"Apache-2.0"
] | 1 | 2021-12-23T02:45:06.000Z | 2021-12-23T02:45:06.000Z | workloads/workload.py | Mukvin/Raven | 40b7e24f14a72af978341c311250f15795be1eb0 | [
"Apache-2.0"
] | null | null | null | workloads/workload.py | Mukvin/Raven | 40b7e24f14a72af978341c311250f15795be1eb0 | [
"Apache-2.0"
] | 2 | 2021-09-16T10:18:01.000Z | 2021-09-17T08:40:47.000Z | from abc import ABCMeta, abstractmethod
class workload(object):
__metaclass__ = ABCMeta
def __init__(self):
self.conf = None
pass
@abstractmethod
def generate(self):
pass
@abstractmethod
def create(self):
pass
@abstractmethod
def load(self):
pa... | 16.30303 | 39 | 0.589219 | 57 | 538 | 5.385965 | 0.403509 | 0.29316 | 0.34202 | 0.325733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.336431 | 538 | 33 | 40 | 16.30303 | 0.859944 | 0 | 0 | 0.44 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0.24 | 0.04 | 0.04 | 0.48 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
61b49f0d42a2039e604374816f9229d91210e78a | 34 | py | Python | simulaqron/run/__init__.py | WrathfulSpatula/SimulaQron | eaa5548df2f992e187ee70ccd81f192a1ce93e14 | [
"BSD-3-Clause"
] | 25 | 2017-11-20T08:50:12.000Z | 2018-07-31T19:02:19.000Z | simulaqron/run/__init__.py | WrathfulSpatula/SimulaQron | eaa5548df2f992e187ee70ccd81f192a1ce93e14 | [
"BSD-3-Clause"
] | 23 | 2017-11-21T21:47:28.000Z | 2018-10-03T08:28:41.000Z | simulaqron/run/__init__.py | WrathfulSpatula/SimulaQron | eaa5548df2f992e187ee70ccd81f192a1ce93e14 | [
"BSD-3-Clause"
] | 13 | 2017-11-20T08:50:14.000Z | 2018-09-01T21:44:00.000Z | from .run import run_applications
| 17 | 33 | 0.852941 | 5 | 34 | 5.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 34 | 1 | 34 | 34 | 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 |
61bc76576b06fa634de77d20c913adab3ac06c2d | 340 | py | Python | dnsimple2/resources/__init__.py | indradhanush/dnsimple2-python | 2580f5808e2d05afe22ba4b10c9e2f9255fa71c6 | [
"MIT"
] | 3 | 2017-10-03T21:09:38.000Z | 2017-10-06T07:44:39.000Z | dnsimple2/resources/__init__.py | indradhanush/dnsimple2-python | 2580f5808e2d05afe22ba4b10c9e2f9255fa71c6 | [
"MIT"
] | 13 | 2017-01-22T20:52:02.000Z | 2020-09-25T14:45:38.000Z | dnsimple2/resources/__init__.py | indradhanush/dnsimple2-python | 2580f5808e2d05afe22ba4b10c9e2f9255fa71c6 | [
"MIT"
] | 5 | 2017-07-01T11:55:41.000Z | 2017-10-05T04:06:33.000Z | from dnsimple2.resources.accounts import AccountResource
from dnsimple2.resources.base import BaseResource, ResourceList
from dnsimple2.resources.domains import (
CollaboratorResource,
DomainResource,
EmailForwardResource
)
from dnsimple2.resources.user import UserResource
from dnsimple2.resources.whoami im... | 34 | 63 | 0.847059 | 33 | 340 | 8.727273 | 0.515152 | 0.225694 | 0.381944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016502 | 0.108824 | 340 | 9 | 64 | 37.777778 | 0.933993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4eeb717e7d6b0877ff9c7e67693b08cabf77c50c | 163 | py | Python | numpyro/contrib/nn/__init__.py | alexalemi/numpyro | 9a690c7f60dee13ff9ea88ce107400349c77ce77 | [
"MIT"
] | 1 | 2019-06-24T04:27:18.000Z | 2019-06-24T04:27:18.000Z | numpyro/contrib/nn/__init__.py | alexalemi/numpyro | 9a690c7f60dee13ff9ea88ce107400349c77ce77 | [
"MIT"
] | null | null | null | numpyro/contrib/nn/__init__.py | alexalemi/numpyro | 9a690c7f60dee13ff9ea88ce107400349c77ce77 | [
"MIT"
] | null | null | null | from numpyro.contrib.nn.auto_reg_nn import AutoregressiveNN
from numpyro.contrib.nn.masked_dense import MaskedDense
__all__ = ['MaskedDense', 'AutoregressiveNN']
| 32.6 | 59 | 0.834356 | 20 | 163 | 6.45 | 0.6 | 0.170543 | 0.27907 | 0.310078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079755 | 163 | 4 | 60 | 40.75 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0.165644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f60db6db2edfa1d97d25e90bbd128bcd0d15706d | 24 | py | Python | __init__.py | oxford-pcs/ifu_builder | d5efcd96407e7797c0f289f86b0158e0e3b66f70 | [
"MIT"
] | 1 | 2018-01-22T21:53:59.000Z | 2018-01-22T21:53:59.000Z | __init__.py | oxford-pcs/ifu_builder | d5efcd96407e7797c0f289f86b0158e0e3b66f70 | [
"MIT"
] | null | null | null | __init__.py | oxford-pcs/ifu_builder | d5efcd96407e7797c0f289f86b0158e0e3b66f70 | [
"MIT"
] | null | null | null | from instrument import * | 24 | 24 | 0.833333 | 3 | 24 | 6.666667 | 1 | 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 |
f62fdece9a72ed76f0ba6b7d8880a573f4d40012 | 107 | py | Python | myapp/views.py | agarzon/django-plesk-hello-world | 4f97473074508ab83cdcbae4df959a764a8c1ec6 | [
"MIT"
] | 8 | 2015-03-07T10:53:07.000Z | 2021-10-17T23:28:39.000Z | myapp/views.py | agarzon/django-plesk-hello-world | 4f97473074508ab83cdcbae4df959a764a8c1ec6 | [
"MIT"
] | null | null | null | myapp/views.py | agarzon/django-plesk-hello-world | 4f97473074508ab83cdcbae4df959a764a8c1ec6 | [
"MIT"
] | 1 | 2017-07-16T23:20:55.000Z | 2017-07-16T23:20:55.000Z | from django.http import HttpResponse
def hello(request):
return HttpResponse("<h1>Hello, world</h1>")
| 21.4 | 48 | 0.738318 | 14 | 107 | 5.642857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.130841 | 107 | 4 | 49 | 26.75 | 0.827957 | 0 | 0 | 0 | 0 | 0 | 0.196262 | 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 |
f65c20a6ab43233f8ef85d4ad2bfa3542e85e174 | 541 | py | Python | lista_function.py | tiberiope/curso_python | c1606b18136d379c92aac2878e5f59e2b7732d15 | [
"MIT"
] | null | null | null | lista_function.py | tiberiope/curso_python | c1606b18136d379c92aac2878e5f59e2b7732d15 | [
"MIT"
] | null | null | null | lista_function.py | tiberiope/curso_python | c1606b18136d379c92aac2878e5f59e2b7732d15 | [
"MIT"
] | null | null | null | #lista sofre alteração na função
lista_cor = ['Vermelho', 'Verde', 'Preto', 'Branco', 'Azul']
clone_lista = lista_cor
def lista_funcao(lista):
for cor in lista:
print(cor)
lista.pop()
lista_funcao(clone_lista)
print(lista_cor)
print('----------')
#lista não sofre alteração na função
lista_cor = [... | 21.64 | 60 | 0.68207 | 74 | 541 | 4.77027 | 0.256757 | 0.181303 | 0.135977 | 0.186969 | 0.773371 | 0.773371 | 0.773371 | 0.773371 | 0.773371 | 0.773371 | 0 | 0 | 0.144177 | 541 | 25 | 61 | 21.64 | 0.762419 | 0.186691 | 0 | 0.5625 | 0 | 0 | 0.173516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.0625 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
9c998a6232261d7e264bddb55293800aebda1b85 | 109 | py | Python | app/head/acts/templates/__init__.py | Matexer/BSPR | a503a8795cb0f4cebe2eedd148aa00aea75b570e | [
"MIT"
] | null | null | null | app/head/acts/templates/__init__.py | Matexer/BSPR | a503a8795cb0f4cebe2eedd148aa00aea75b570e | [
"MIT"
] | null | null | null | app/head/acts/templates/__init__.py | Matexer/BSPR | a503a8795cb0f4cebe2eedd148aa00aea75b570e | [
"MIT"
] | null | null | null | from .config_calculation import ConfigCalculationActTemplate
from .calculation import CalculationActTemplate
| 36.333333 | 60 | 0.908257 | 9 | 109 | 10.888889 | 0.666667 | 0.346939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073395 | 109 | 2 | 61 | 54.5 | 0.970297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
9cd5f4c15d89dc865655134b54e4cbcc43eb1f42 | 22 | py | Python | examples/str.zfill/ex2.py | mcorne/python-by-example | 15339c0909c84b51075587a6a66391100971c033 | [
"MIT"
] | null | null | null | examples/str.zfill/ex2.py | mcorne/python-by-example | 15339c0909c84b51075587a6a66391100971c033 | [
"MIT"
] | null | null | null | examples/str.zfill/ex2.py | mcorne/python-by-example | 15339c0909c84b51075587a6a66391100971c033 | [
"MIT"
] | null | null | null | print('-42'.zfill(5))
| 11 | 21 | 0.590909 | 4 | 22 | 3.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.045455 | 22 | 1 | 22 | 22 | 0.47619 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
1adf6c1952fbf08a90bc5fb7990e21521891ab6d | 236 | py | Python | QRegisterAccessDriver/QRegisterAccess.py | ShengbingZhou/register | 5b3e2c7d66784bd4a95727d0ea134d233b325d6f | [
"MIT"
] | null | null | null | QRegisterAccessDriver/QRegisterAccess.py | ShengbingZhou/register | 5b3e2c7d66784bd4a95727d0ea134d233b325d6f | [
"MIT"
] | null | null | null | QRegisterAccessDriver/QRegisterAccess.py | ShengbingZhou/register | 5b3e2c7d66784bd4a95727d0ea134d233b325d6f | [
"MIT"
] | null | null | null | class QRegisterAccess:
def readReg(moduleName : str, addr : int) -> int:
value = 0xaa55
return value
def writeReg(moduleName : str, addr : int, value : int) -> int:
# write value
return True | 26.222222 | 67 | 0.580508 | 26 | 236 | 5.269231 | 0.538462 | 0.189781 | 0.248175 | 0.291971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018987 | 0.330508 | 236 | 9 | 68 | 26.222222 | 0.848101 | 0.04661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 6 |
1ae76084bf8358d40d1382474896ae07bec293ce | 23 | py | Python | remass/tui/__init__.py | snototter/remass | 60494346f676f29a3517bcce30e8aab21cf3d3c6 | [
"MIT"
] | null | null | null | remass/tui/__init__.py | snototter/remass | 60494346f676f29a3517bcce30e8aab21cf3d3c6 | [
"MIT"
] | null | null | null | remass/tui/__init__.py | snototter/remass | 60494346f676f29a3517bcce30e8aab21cf3d3c6 | [
"MIT"
] | null | null | null | from .tui import RATui
| 11.5 | 22 | 0.782609 | 4 | 23 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 23 | 1 | 23 | 23 | 0.947368 | 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 |
21533926cef4c5f6831b03b268b03af469a3d172 | 86,927 | py | Python | miri/datamodels/miri_distortion_models.py | eslavich/MiriTE | 05e25e1222e854fef5a72011f6618fa8fb5eaaff | [
"CNRI-Python"
] | null | null | null | miri/datamodels/miri_distortion_models.py | eslavich/MiriTE | 05e25e1222e854fef5a72011f6618fa8fb5eaaff | [
"CNRI-Python"
] | 24 | 2019-08-09T15:03:20.000Z | 2022-03-04T10:04:48.000Z | miri/datamodels/miri_distortion_models.py | eslavich/MiriTE | 05e25e1222e854fef5a72011f6618fa8fb5eaaff | [
"CNRI-Python"
] | 4 | 2019-06-16T15:03:23.000Z | 2020-12-02T19:51:52.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
An extension to the standard STScI data model, which defines a means of
describing MIRI distortion coefficients.
NOTE: The contents of this data model might change, depending on the
STScI implementation of distortion models.
:Reference:
The STScI jwst.datamodels d... | 45.203848 | 116 | 0.595028 | 11,350 | 86,927 | 4.447225 | 0.0637 | 0.017949 | 0.047547 | 0.033679 | 0.772228 | 0.750654 | 0.737618 | 0.732724 | 0.718936 | 0.713329 | 0 | 0.040538 | 0.321764 | 86,927 | 1,922 | 117 | 45.227367 | 0.815611 | 0.38132 | 0 | 0.702231 | 0 | 0 | 0.143087 | 0.009202 | 0 | 0 | 0 | 0.001041 | 0 | 1 | 0.027158 | false | 0 | 0.00291 | 0 | 0.064985 | 0.013579 | 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 |
dcd8ef75ba941a2736e03dc9fe2016e504ece690 | 16,252 | py | Python | ILSwiss/rlkit/torch/common/networks.py | zbzhu99/NGSIM_Imitation | 0af6ce327e4fc4da32eddb08ba0bba5403dac24e | [
"MIT"
] | 3 | 2022-01-28T01:33:04.000Z | 2022-02-21T13:43:43.000Z | ILSwiss/rlkit/torch/common/networks.py | zbzhu99/NGSIM_GAIL | 0af6ce327e4fc4da32eddb08ba0bba5403dac24e | [
"MIT"
] | null | null | null | ILSwiss/rlkit/torch/common/networks.py | zbzhu99/NGSIM_GAIL | 0af6ce327e4fc4da32eddb08ba0bba5403dac24e | [
"MIT"
] | null | null | null | """
General networks for pytorch.
Algorithm-specific networks should go else-where.
"""
import math
import torch
from torch import nn as nn
from torch.nn import functional as F
from torch.nn import BatchNorm1d
from rlkit.policies.base import Policy
from rlkit.torch.utils import pytorch_util as ptu
from rlkit.torch.c... | 32.700201 | 87 | 0.624354 | 2,085 | 16,252 | 4.595204 | 0.105516 | 0.048429 | 0.024423 | 0.026302 | 0.798977 | 0.753157 | 0.728316 | 0.709634 | 0.702849 | 0.692934 | 0 | 0.004498 | 0.288641 | 16,252 | 496 | 88 | 32.766129 | 0.824237 | 0.076114 | 0 | 0.707254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020725 | 1 | 0.069948 | false | 0 | 0.025907 | 0.010363 | 0.178756 | 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 |
0d0035e0b458c800f4a8ef59bc82aafb23458f96 | 345 | py | Python | {{cookiecutter.repo_name}}/src/{{cookiecutter.src_package_name}}_fastapi/deps.py | ryzalk/test-mlpcgcp | 7b16ab3015d345f7d037de672443f1f202601b75 | [
"OML"
] | null | null | null | {{cookiecutter.repo_name}}/src/{{cookiecutter.src_package_name}}_fastapi/deps.py | ryzalk/test-mlpcgcp | 7b16ab3015d345f7d037de672443f1f202601b75 | [
"OML"
] | null | null | null | {{cookiecutter.repo_name}}/src/{{cookiecutter.src_package_name}}_fastapi/deps.py | ryzalk/test-mlpcgcp | 7b16ab3015d345f7d037de672443f1f202601b75 | [
"OML"
] | null | null | null | import {{cookiecutter.src_package_name}} as {{cookiecutter.src_package_name_short}}
import {{cookiecutter.src_package_name}}_fastapi as {{cookiecutter.src_package_name_short}}_fapi
PRED_MODEL = {{cookiecutter.src_package_name_short}}.modeling.utils.load_model(
{{cookiecutter.src_package_name_short}}_fapi.config.S... | 49.285714 | 96 | 0.834783 | 46 | 345 | 5.76087 | 0.369565 | 0.339623 | 0.498113 | 0.588679 | 0.792453 | 0.550943 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052174 | 345 | 6 | 97 | 57.5 | 0.810398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
0d23f53df4600d7cd65ccd0eb0ac21d15a2bf948 | 241 | py | Python | terrascript/gitlab/d.py | vutsalsinghal/python-terrascript | 3b9fb5ad77453d330fb0cd03524154a342c5d5dc | [
"BSD-2-Clause"
] | null | null | null | terrascript/gitlab/d.py | vutsalsinghal/python-terrascript | 3b9fb5ad77453d330fb0cd03524154a342c5d5dc | [
"BSD-2-Clause"
] | null | null | null | terrascript/gitlab/d.py | vutsalsinghal/python-terrascript | 3b9fb5ad77453d330fb0cd03524154a342c5d5dc | [
"BSD-2-Clause"
] | null | null | null | # terrascript/gitlab/d.py
import terrascript
class gitlab_group(terrascript.Data):
pass
class gitlab_project(terrascript.Data):
pass
class gitlab_user(terrascript.Data):
pass
class gitlab_users(terrascript.Data):
pass
| 14.176471 | 39 | 0.755187 | 30 | 241 | 5.933333 | 0.4 | 0.247191 | 0.426966 | 0.404494 | 0.505618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161826 | 241 | 16 | 40 | 15.0625 | 0.881188 | 0.095436 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.444444 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
b4a8678c612874ba099b03619fdffbbdc56b5814 | 71 | py | Python | app/core/schemas.py | dghy/WRTC-Hub | 430a30fa7ecb200028957dc1a316837c631ef996 | [
"MIT"
] | null | null | null | app/core/schemas.py | dghy/WRTC-Hub | 430a30fa7ecb200028957dc1a316837c631ef996 | [
"MIT"
] | null | null | null | app/core/schemas.py | dghy/WRTC-Hub | 430a30fa7ecb200028957dc1a316837c631ef996 | [
"MIT"
] | null | null | null | from pydantic import BaseModel
class BaseSchema(BaseModel):
pass
| 11.833333 | 30 | 0.774648 | 8 | 71 | 6.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183099 | 71 | 5 | 31 | 14.2 | 0.948276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
b4e49cfa66a096fbd620e96e7aca6d2f2fa9c97b | 1,528 | py | Python | csf_tz/overrides.py | RapidSignal-Electronics/CSF_TZ | 2cb8925e85f783623b4facce4048c88cc9c44ca8 | [
"MIT"
] | null | null | null | csf_tz/overrides.py | RapidSignal-Electronics/CSF_TZ | 2cb8925e85f783623b4facce4048c88cc9c44ca8 | [
"MIT"
] | null | null | null | csf_tz/overrides.py | RapidSignal-Electronics/CSF_TZ | 2cb8925e85f783623b4facce4048c88cc9c44ca8 | [
"MIT"
] | 1 | 2022-03-17T22:49:40.000Z | 2022-03-17T22:49:40.000Z | from __future__ import unicode_literals
import frappe, erpnext
import datetime, math
from erpnext.payroll.doctype.salary_slip.salary_slip import SalarySlip
# from erpnext.payroll.doctype.additional_salary.additional_salary import get_additional_salary_component
class csftz_SalarySlip(SalarySlip):
# def add_addit... | 58.769231 | 200 | 0.71466 | 163 | 1,528 | 6.306748 | 0.325153 | 0.342412 | 0.075875 | 0.093385 | 0.248054 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001698 | 0.229058 | 1,528 | 26 | 201 | 58.769231 | 0.870968 | 0.801702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.666667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
370c9654321ca14218a97e143bfb054155cda94e | 188 | py | Python | src/wai/annotations/blue_channel/component/__init__.py | waikato-ufdl/wai-annotations-bluechannel | f60fa3b55842d76691c17e2b3a74dc45345c66f7 | [
"Apache-2.0"
] | null | null | null | src/wai/annotations/blue_channel/component/__init__.py | waikato-ufdl/wai-annotations-bluechannel | f60fa3b55842d76691c17e2b3a74dc45345c66f7 | [
"Apache-2.0"
] | null | null | null | src/wai/annotations/blue_channel/component/__init__.py | waikato-ufdl/wai-annotations-bluechannel | f60fa3b55842d76691c17e2b3a74dc45345c66f7 | [
"Apache-2.0"
] | null | null | null | from ._BlueChannelReader import BlueChannelReader
from ._BlueChannelWriter import BlueChannelWriter
from ._FromBlueChannel import FromBlueChannel
from ._ToBlueChannel import ToBlueChannel
| 37.6 | 49 | 0.893617 | 16 | 188 | 10.25 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 188 | 4 | 50 | 47 | 0.953488 | 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 |
2c0fd18abe86b4b21c4a1ebb814f63c61fd9ddea | 26 | py | Python | jason/props/rules/__init__.py | manoadamro/jason | e6a152797cc47fc158b41f1f4b4d55f79d0494f7 | [
"MIT"
] | null | null | null | jason/props/rules/__init__.py | manoadamro/jason | e6a152797cc47fc158b41f1f4b4d55f79d0494f7 | [
"MIT"
] | 136 | 2019-05-15T07:30:47.000Z | 2021-07-19T05:21:39.000Z | jason/props/rules/__init__.py | manoadamro/jason | e6a152797cc47fc158b41f1f4b4d55f79d0494f7 | [
"MIT"
] | 1 | 2019-05-15T10:00:34.000Z | 2019-05-15T10:00:34.000Z | from .any_of import AnyOf
| 13 | 25 | 0.807692 | 5 | 26 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 26 | 1 | 26 | 26 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
2c1f369e2916879d701ef9d84f757021d9ef7fe4 | 103 | py | Python | klusta_pipeline/__init__.py | gentnerlab/klusta-pipeline | f3ab124e7eb39d574301e40e2e4af1a08fea5adb | [
"BSD-3-Clause"
] | 6 | 2015-07-07T21:49:54.000Z | 2018-08-21T16:17:13.000Z | klusta_pipeline/__init__.py | gentnerlab/klusta-pipeline | f3ab124e7eb39d574301e40e2e4af1a08fea5adb | [
"BSD-3-Clause"
] | 22 | 2015-07-07T19:41:28.000Z | 2018-01-14T06:53:21.000Z | klusta_pipeline/__init__.py | gentnerlab/klusta-pipeline | f3ab124e7eb39d574301e40e2e4af1a08fea5adb | [
"BSD-3-Clause"
] | 8 | 2015-07-14T19:12:24.000Z | 2018-06-05T21:47:32.000Z | from constants import *
from dataio import *
from maps import *
from probe import *
from utils import * | 20.6 | 23 | 0.76699 | 15 | 103 | 5.266667 | 0.466667 | 0.506329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184466 | 103 | 5 | 24 | 20.6 | 0.940476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 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 |
25e90284bcc923b7cf93ad6ce5acff94ceca84d1 | 173 | py | Python | solar_data_pipeline/file/csv.py | slacgismo/solar-data-pipeline | 1207122d34abbc92c7be6e36db3c979e1fa0556e | [
"BSD-2-Clause"
] | 1 | 2020-01-15T11:17:27.000Z | 2020-01-15T11:17:27.000Z | solar_data_pipeline/file/csv.py | slacgismo/solar-data-pipeline | 1207122d34abbc92c7be6e36db3c979e1fa0556e | [
"BSD-2-Clause"
] | null | null | null | solar_data_pipeline/file/csv.py | slacgismo/solar-data-pipeline | 1207122d34abbc92c7be6e36db3c979e1fa0556e | [
"BSD-2-Clause"
] | null | null | null | from solardatatools.dataio import get_pvdaq_data
class CsvAccess:
def __init__(self, file_url):
self._file_url = file_url
def retrieve(self):
pass
| 17.3 | 48 | 0.699422 | 23 | 173 | 4.826087 | 0.695652 | 0.189189 | 0.198198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236994 | 173 | 9 | 49 | 19.222222 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.166667 | 0.166667 | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
d30f2f7fd3c6da5faed8fc332f9cd3e9c465f718 | 43 | py | Python | __init__.py | depsir/cart | 6fd09177d3bc67dd80205bbc763494f6dd55ca0c | [
"BSD-3-Clause"
] | null | null | null | __init__.py | depsir/cart | 6fd09177d3bc67dd80205bbc763494f6dd55ca0c | [
"BSD-3-Clause"
] | null | null | null | __init__.py | depsir/cart | 6fd09177d3bc67dd80205bbc763494f6dd55ca0c | [
"BSD-3-Clause"
] | null | null | null | from cart import Cart
from item import Item | 21.5 | 21 | 0.837209 | 8 | 43 | 4.5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 43 | 2 | 22 | 21.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 |
d3301ad2e11b7ee41c54a011feb2c521ae4d5c14 | 111 | py | Python | agents/maze_agents/modules/__init__.py | lee15253/edl_bk | 6777f5803138e6a64dabb096fe18a495728aabe3 | [
"MIT"
] | 30 | 2020-02-16T15:52:59.000Z | 2022-03-22T10:54:54.000Z | agents/maze_agents/modules/__init__.py | lee15253/edl_bk | 6777f5803138e6a64dabb096fe18a495728aabe3 | [
"MIT"
] | null | null | null | agents/maze_agents/modules/__init__.py | lee15253/edl_bk | 6777f5803138e6a64dabb096fe18a495728aabe3 | [
"MIT"
] | 7 | 2020-02-16T15:53:05.000Z | 2022-01-18T03:41:03.000Z | from .policy import *
from .density import *
from .value_function import *
from .intrinsic_motivation import *
| 22.2 | 35 | 0.783784 | 14 | 111 | 6.071429 | 0.571429 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144144 | 111 | 4 | 36 | 27.75 | 0.894737 | 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 |
d34f9be572911d947a97432eceb5fc04d09fc70f | 108 | py | Python | movies/views.py | felix13/DjangoCustomErrorPage | dd65af4da3c00082e505b97ef2ba51be6f791f5f | [
"MIT"
] | null | null | null | movies/views.py | felix13/DjangoCustomErrorPage | dd65af4da3c00082e505b97ef2ba51be6f791f5f | [
"MIT"
] | null | null | null | movies/views.py | felix13/DjangoCustomErrorPage | dd65af4da3c00082e505b97ef2ba51be6f791f5f | [
"MIT"
] | null | null | null | from django.shortcuts import render
def home(request):
return render(request, "movies/home.html")
| 15.428571 | 46 | 0.722222 | 14 | 108 | 5.571429 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175926 | 108 | 6 | 47 | 18 | 0.876404 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 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 |
d3af716170a446e8962e19ae1b9a997b42a84fb8 | 141 | py | Python | cracking-the-coding-interview/src/chapter1/checkSorted.py | silphire/training-with-books | bd07f7376996828b6cb4000d654cdc5f53d1c589 | [
"MIT"
] | null | null | null | cracking-the-coding-interview/src/chapter1/checkSorted.py | silphire/training-with-books | bd07f7376996828b6cb4000d654cdc5f53d1c589 | [
"MIT"
] | 4 | 2020-01-04T14:05:45.000Z | 2020-01-19T14:53:03.000Z | cracking-the-coding-interview/src/chapter1/checkSorted.py | silphire/training-with-books | bd07f7376996828b6cb4000d654cdc5f53d1c589 | [
"MIT"
] | null | null | null | def checkSorted(a, b):
return sorted(list(a)) == sorted(list(b))
print(checkSorted("abc", "anc"))
print(checkSorted("aabbcc", "abcabc")) | 28.2 | 45 | 0.666667 | 19 | 141 | 4.947368 | 0.631579 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 141 | 5 | 46 | 28.2 | 0.746032 | 0 | 0 | 0 | 0 | 0 | 0.126761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 6 |
6cbb0eb9306ce02c517457c62c058d8335a30c05 | 1,274 | py | Python | py/test/test.py | hairbeRt/Fred | ae3770e2ad62f83a7d2070e8e48087d89aa09bfc | [
"MIT"
] | null | null | null | py/test/test.py | hairbeRt/Fred | ae3770e2ad62f83a7d2070e8e48087d89aa09bfc | [
"MIT"
] | null | null | null | py/test/test.py | hairbeRt/Fred | ae3770e2ad62f83a7d2070e8e48087d89aa09bfc | [
"MIT"
] | null | null | null | import numpy as np
import unittest
import Fred.backend as fred
class TestContinuousFrechet(unittest.TestCase):
def test_zigzag1d(self):
a = fred.Curve(np.array([0.0, 1.0, 0.0, 1.0]))
b = fred.Curve(np.array([0.0, 0.75, 0.25, 1.0]))
c = fred.Curve(np.array([0.0, 1.0]))
self.assertEq... | 36.4 | 69 | 0.60989 | 210 | 1,274 | 3.614286 | 0.180952 | 0.044796 | 0.144928 | 0.210804 | 0.805007 | 0.805007 | 0.760211 | 0.760211 | 0.720685 | 0.57971 | 0 | 0.094433 | 0.210361 | 1,274 | 34 | 70 | 37.470588 | 0.66004 | 0 | 0 | 0.518519 | 0 | 0 | 0.006279 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.148148 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6cd9cb09c97e8c5038449aa15e952fc452c790b8 | 31 | py | Python | Know Your Code/Python/linear_search_python/hi.py | rswalia/open-source-contribution-for-beginners | 1ea29479c6d949760c83926b4c43a6b0d33ad0a0 | [
"MIT"
] | 249 | 2018-04-19T08:30:19.000Z | 2022-03-30T06:31:09.000Z | Know Your Code/Python/linear_search_python/hi.py | rswalia/open-source-contribution-for-beginners | 1ea29479c6d949760c83926b4c43a6b0d33ad0a0 | [
"MIT"
] | 152 | 2021-11-01T06:00:11.000Z | 2022-03-20T11:40:00.000Z | Know Your Code/Python/linear_search_python/hi.py | rswalia/open-source-contribution-for-beginners | 1ea29479c6d949760c83926b4c43a6b0d33ad0a0 | [
"MIT"
] | 111 | 2018-04-09T01:53:29.000Z | 2022-03-19T08:59:28.000Z | import matplotlib.pyplot as plt | 31 | 31 | 0.870968 | 5 | 31 | 5.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 31 | 1 | 31 | 31 | 0.964286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6cf310035d0f62de5e7ee29e88517057e05cd2ea | 190 | py | Python | fundamentals-JPN/src/notebooks/script/helper.py | konabuta/fta-azure-machine-learning | 70da95e7a4c9b3e42db61bb0f69eda8e07c28eee | [
"MIT"
] | null | null | null | fundamentals-JPN/src/notebooks/script/helper.py | konabuta/fta-azure-machine-learning | 70da95e7a4c9b3e42db61bb0f69eda8e07c28eee | [
"MIT"
] | null | null | null | fundamentals-JPN/src/notebooks/script/helper.py | konabuta/fta-azure-machine-learning | 70da95e7a4c9b3e42db61bb0f69eda8e07c28eee | [
"MIT"
] | null | null | null | def data_preprocess(df, categorical_cols, float_cols):
df[categorical_cols] = df[categorical_cols].astype("category")
df[float_cols] = df[float_cols].astype("float")
return df
| 27.142857 | 66 | 0.731579 | 26 | 190 | 5.076923 | 0.384615 | 0.295455 | 0.386364 | 0.318182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136842 | 190 | 6 | 67 | 31.666667 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0.068421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6cf6b05adb299457225e5e3b54352abb18cb1019 | 105 | py | Python | testing/freeze/tests/test_trivial.py | solackerman/pytest | 0fc00c02a7a39ebd6c57886a85580ea3341e76eb | [
"MIT"
] | 2 | 2015-03-04T10:17:57.000Z | 2022-03-13T18:32:09.000Z | testing/freeze/tests/test_trivial.py | solackerman/pytest | 0fc00c02a7a39ebd6c57886a85580ea3341e76eb | [
"MIT"
] | 2 | 2017-07-15T22:12:00.000Z | 2017-08-09T00:34:51.000Z | testing/freeze/tests/test_trivial.py | solackerman/pytest | 0fc00c02a7a39ebd6c57886a85580ea3341e76eb | [
"MIT"
] | 1 | 2020-12-02T16:03:58.000Z | 2020-12-02T16:03:58.000Z |
def test_upper():
assert 'foo'.upper() == 'FOO'
def test_lower():
assert 'FOO'.lower() == 'foo' | 17.5 | 33 | 0.571429 | 14 | 105 | 4.142857 | 0.428571 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 105 | 6 | 34 | 17.5 | 0.690476 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
9f485759abb2ac95bf9ec98633a562491d91c3ab | 25 | py | Python | mapper_on_file/__init__.py | cao5zy/mapper_on_file | f325d52495a5de92bf6bbcab7b01090d834020b6 | [
"MIT"
] | null | null | null | mapper_on_file/__init__.py | cao5zy/mapper_on_file | f325d52495a5de92bf6bbcab7b01090d834020b6 | [
"MIT"
] | null | null | null | mapper_on_file/__init__.py | cao5zy/mapper_on_file | f325d52495a5de92bf6bbcab7b01090d834020b6 | [
"MIT"
] | null | null | null | from .app import mapping
| 12.5 | 24 | 0.8 | 4 | 25 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 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 |
9f8a79739a2cb7d8a084ebe4606dc83b4834fa74 | 156 | py | Python | pyalgo/basic_modules/__init__.py | gilad-dotan/pyalgo_pkg | 132ff3c032c3fc0ae910201611e5d2cde387eb74 | [
"MIT"
] | 1 | 2021-04-01T08:59:30.000Z | 2021-04-01T08:59:30.000Z | pyalgo/basic_modules/__init__.py | gilad-dotan/pyalgo_pkg | 132ff3c032c3fc0ae910201611e5d2cde387eb74 | [
"MIT"
] | null | null | null | pyalgo/basic_modules/__init__.py | gilad-dotan/pyalgo_pkg | 132ff3c032c3fc0ae910201611e5d2cde387eb74 | [
"MIT"
] | null | null | null | # // import modules section \\
from . import default_functions
from . import default_values
# // load numba compiles \\
default_functions.prime_check(5)
| 17.333333 | 32 | 0.75 | 19 | 156 | 5.947368 | 0.684211 | 0.176991 | 0.300885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.153846 | 156 | 8 | 33 | 19.5 | 0.848485 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 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 |
9fa05c4b54d129e8655faf8f771c4e68145210b6 | 233 | py | Python | lib/core/dict_tree.py | p3r7/lexicon-mpx1-sysex-tests | b4c0e72d3cc74d0692a2221f6e574061d3d16e67 | [
"MIT"
] | null | null | null | lib/core/dict_tree.py | p3r7/lexicon-mpx1-sysex-tests | b4c0e72d3cc74d0692a2221f6e574061d3d16e67 | [
"MIT"
] | null | null | null | lib/core/dict_tree.py | p3r7/lexicon-mpx1-sysex-tests | b4c0e72d3cc74d0692a2221f6e574061d3d16e67 | [
"MIT"
] | null | null | null |
from functools import reduce # only in Python 3
import operator
## ACCESSORS
def get_in(tree, path):
return reduce(operator.getitem, path, tree)
def set_in(tree, path, value):
get_in(tree, path[:-1])[path[-1]] = value
| 16.642857 | 47 | 0.686695 | 36 | 233 | 4.361111 | 0.527778 | 0.11465 | 0.191083 | 0.165605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015789 | 0.184549 | 233 | 13 | 48 | 17.923077 | 0.810526 | 0.111588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
4ca5df5bdff1718e83e7bdcb46bc49f0dddfe483 | 74 | py | Python | day3/strings.py | simon21-meet/meet2019y1lab3 | b6548126e128a2ac85a8a25b2d47a8c990059379 | [
"MIT"
] | null | null | null | day3/strings.py | simon21-meet/meet2019y1lab3 | b6548126e128a2ac85a8a25b2d47a8c990059379 | [
"MIT"
] | null | null | null | day3/strings.py | simon21-meet/meet2019y1lab3 | b6548126e128a2ac85a8a25b2d47a8c990059379 | [
"MIT"
] | null | null | null | print('Hello World')
print("Hello World")
#print("Helo World")
| 4.933333 | 20 | 0.594595 | 9 | 74 | 4.888889 | 0.444444 | 0.454545 | 0.681818 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22973 | 74 | 14 | 21 | 5.285714 | 0.77193 | 0.256757 | 0 | 0 | 0 | 0 | 0.511628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
981b4a7dabdbf46998f362e40e76e85574473aaa | 32 | py | Python | tatum/__init__.py | grace43/tatum-python | 4884d52d02522b7c3075158cff9f0d5e874af6ac | [
"MIT"
] | 3 | 2021-01-11T11:38:07.000Z | 2021-08-07T05:34:55.000Z | tatum/__init__.py | grace43/tatum-python | 4884d52d02522b7c3075158cff9f0d5e874af6ac | [
"MIT"
] | null | null | null | tatum/__init__.py | grace43/tatum-python | 4884d52d02522b7c3075158cff9f0d5e874af6ac | [
"MIT"
] | 2 | 2021-04-29T11:49:32.000Z | 2022-03-10T18:05:18.000Z | from tatum.ledger import account | 32 | 32 | 0.875 | 5 | 32 | 5.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 32 | 1 | 32 | 32 | 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 |
e22a5598cc13e0d29c552a7e887eebd5acdaf645 | 10,946 | py | Python | SP&OS/ass5/a.py | saurabhjha443/ascalibra | 202f6afc6ceacc75487604a380834e807d4a9038 | [
"MIT"
] | null | null | null | SP&OS/ass5/a.py | saurabhjha443/ascalibra | 202f6afc6ceacc75487604a380834e807d4a9038 | [
"MIT"
] | null | null | null | SP&OS/ass5/a.py | saurabhjha443/ascalibra | 202f6afc6ceacc75487604a380834e807d4a9038 | [
"MIT"
] | 1 | 2020-01-26T16:23:59.000Z | 2020-01-26T16:23:59.000Z | fptr = open('a.asm', 'r')
addressFile = open('output.txt', 'w')
prev_add = 0
len1 = 0
lit = []
statement_add = []
index_symb = 1
index_lit = 1
index_pool = 1
registers = {'AREG': 1, 'BREG': 2, 'CREG': 3, 'DREG': 4}
comp_code = {'LT': 1, 'LE': 2, 'EQ': 3, 'GT': 4, 'GE': 5, 'ANY': 6}
instru_statement = {'STOP': '00',... | 46.777778 | 125 | 0.41321 | 1,322 | 10,946 | 3.30711 | 0.076399 | 0.144099 | 0.076853 | 0.096066 | 0.838747 | 0.820677 | 0.792543 | 0.792543 | 0.76624 | 0.665599 | 0 | 0.047806 | 0.396126 | 10,946 | 233 | 126 | 46.978541 | 0.613616 | 0.016079 | 0 | 0.550926 | 0 | 0 | 0.065038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.018519 | 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 |
e252168f0b22c790dbcc4bd7cf7ee1da07717b9d | 146 | py | Python | slowai/core.py | jackiey99/slowai | bb2e8ff34df4f1809325d8e37d1ee5c568e83294 | [
"Apache-2.0"
] | null | null | null | slowai/core.py | jackiey99/slowai | bb2e8ff34df4f1809325d8e37d1ee5c568e83294 | [
"Apache-2.0"
] | 2 | 2021-09-28T05:42:42.000Z | 2022-02-26T10:04:21.000Z | slowai/core.py | jackiey99/slowai | bb2e8ff34df4f1809325d8e37d1ee5c568e83294 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 00_core.ipynb (unless otherwise specified).
__all__ = ['add']
# Cell
def add(a, b):
return a + b | 20.857143 | 87 | 0.671233 | 23 | 146 | 4.043478 | 0.826087 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 0.19863 | 146 | 7 | 88 | 20.857143 | 0.777778 | 0.616438 | 0 | 0 | 1 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
e270936d3d8a55556fc4c43a6e7a4adb4efb6b4b | 132 | py | Python | evil/test_module.py | justanr/evil_python | e11a66eeab277dd4f9972c38178ace64eb5cd875 | [
"MIT"
] | null | null | null | evil/test_module.py | justanr/evil_python | e11a66eeab277dd4f9972c38178ace64eb5cd875 | [
"MIT"
] | null | null | null | evil/test_module.py | justanr/evil_python | e11a66eeab277dd4f9972c38178ace64eb5cd875 | [
"MIT"
] | null | null | null | from .module import module
will_import = 1
with module('will_import'):
x = 3
class Derper:
pass
_secret = 1
| 11 | 27 | 0.606061 | 18 | 132 | 4.277778 | 0.666667 | 0.25974 | 0.415584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.318182 | 132 | 11 | 28 | 12 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.428571 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
2ca48647a0ec96e391953f9527581351a0073412 | 39 | py | Python | semester4/oop/lab1/ukrnet_news/types/__init__.py | no1sebomb/University-Labs | 1da5e7486f0b8a6119c077945aba8c89cdfc2e50 | [
"WTFPL"
] | null | null | null | semester4/oop/lab1/ukrnet_news/types/__init__.py | no1sebomb/University-Labs | 1da5e7486f0b8a6119c077945aba8c89cdfc2e50 | [
"WTFPL"
] | null | null | null | semester4/oop/lab1/ukrnet_news/types/__init__.py | no1sebomb/University-Labs | 1da5e7486f0b8a6119c077945aba8c89cdfc2e50 | [
"WTFPL"
] | 1 | 2020-11-01T23:54:52.000Z | 2020-11-01T23:54:52.000Z | # coding=utf-8
from .news import News
| 9.75 | 22 | 0.717949 | 7 | 39 | 4 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.179487 | 39 | 3 | 23 | 13 | 0.84375 | 0.307692 | 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 |
e2e3bf1b2653716ec154acf83cd9cc82e89e9eec | 3,105 | py | Python | example/tests/core/m2core_int_enum_tests.py | mdutkin/m2core | 1e08acbc99e9e6c60a03d63110e2fcec96a35ec0 | [
"MIT"
] | 18 | 2017-11-02T16:06:41.000Z | 2019-04-16T08:11:37.000Z | example/tests/core/m2core_int_enum_tests.py | mdutkin/m2core | 1e08acbc99e9e6c60a03d63110e2fcec96a35ec0 | [
"MIT"
] | 4 | 2018-06-19T08:45:26.000Z | 2019-02-08T04:28:28.000Z | example/tests/core/m2core_int_enum_tests.py | mdutkin/m2core | 1e08acbc99e9e6c60a03d63110e2fcec96a35ec0 | [
"MIT"
] | 2 | 2017-11-10T07:27:22.000Z | 2018-06-27T12:16:27.000Z | __author__ = 'Maxim Dutkin (max@dutkin.ru)'
import unittest
from m2core.common.int_enum import M2CoreIntEnum
class M2CoreIntEnumTest(unittest.TestCase):
def setUp(self):
class SampleEnum(M2CoreIntEnum):
ONE = 1
TWO = 2
THREE = 3
FOUR = 4
FIVE =... | 41.4 | 79 | 0.648953 | 412 | 3,105 | 4.706311 | 0.150485 | 0.309438 | 0.433213 | 0.245487 | 0.795255 | 0.794224 | 0.762249 | 0.6787 | 0.593089 | 0.544611 | 0 | 0.013836 | 0.231884 | 3,105 | 74 | 80 | 41.959459 | 0.799161 | 0 | 0 | 0.061538 | 0 | 0 | 0.02963 | 0 | 0 | 0 | 0 | 0 | 0.446154 | 1 | 0.076923 | false | 0 | 0.030769 | 0 | 0.138462 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e2e6731da12666c32045a7ccf34e6e628a1fde03 | 235 | py | Python | PyObjCTest/test_nsform.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | PyObjCTest/test_nsform.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | PyObjCTest/test_nsform.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | import AppKit
from PyObjCTools.TestSupport import TestCase
class TestNSForm(TestCase):
def testMethods(self):
self.assertArgIsBOOL(AppKit.NSForm.setBordered_, 0)
self.assertArgIsBOOL(AppKit.NSForm.setBezeled_, 0)
| 26.111111 | 59 | 0.765957 | 25 | 235 | 7.12 | 0.64 | 0.213483 | 0.280899 | 0.348315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01005 | 0.153191 | 235 | 8 | 60 | 29.375 | 0.884422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 |
e2efe7a2ecd3ee127d49292c4f04b3b2786c70c9 | 53,396 | py | Python | openconcept/utilities/VTOLPowerAndThrust.py | berlinexpress174/openconcept_winter | f366d3245924142621c9663d505642890ca8d5d7 | [
"MIT"
] | null | null | null | openconcept/utilities/VTOLPowerAndThrust.py | berlinexpress174/openconcept_winter | f366d3245924142621c9663d505642890ca8d5d7 | [
"MIT"
] | null | null | null | openconcept/utilities/VTOLPowerAndThrust.py | berlinexpress174/openconcept_winter | f366d3245924142621c9663d505642890ca8d5d7 | [
"MIT"
] | null | null | null | from __future__ import division
from re import A
from matplotlib import units
import numpy as np
import openmdao.api as om
from openmdao.api import Group, ExplicitComponent, IndepVarComp, BalanceComp, ExecComp
from openconcept.analysis.atmospherics.density_comp import DensityComp
from openconcept.analysis.atmospherics.... | 52.71076 | 281 | 0.637033 | 6,767 | 53,396 | 4.915472 | 0.054234 | 0.060247 | 0.0947 | 0.073054 | 0.884496 | 0.847879 | 0.821724 | 0.797162 | 0.761356 | 0.733458 | 0 | 0.020816 | 0.195689 | 53,396 | 1,012 | 282 | 52.762846 | 0.753696 | 0.219867 | 0 | 0.518438 | 0 | 0 | 0.308765 | 0.109092 | 0 | 0 | 0 | 0 | 0 | 1 | 0.158351 | false | 0 | 0.023861 | 0 | 0.223427 | 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 |
393ce2e1160867316db91d9c8df0fbf48e61b89c | 66 | py | Python | software/glasgow/platform/all.py | emilazy/Glasgow | 4575ad07ccce76b0b92d29a76fc18a3700a68823 | [
"Apache-2.0",
"0BSD"
] | 3 | 2020-04-30T22:58:29.000Z | 2021-02-25T11:58:51.000Z | software/glasgow/platform/all.py | emilazy/Glasgow | 4575ad07ccce76b0b92d29a76fc18a3700a68823 | [
"Apache-2.0",
"0BSD"
] | null | null | null | software/glasgow/platform/all.py | emilazy/Glasgow | 4575ad07ccce76b0b92d29a76fc18a3700a68823 | [
"Apache-2.0",
"0BSD"
] | null | null | null | from .rev_ab import *
from .rev_c0 import *
from .rev_c1 import *
| 16.5 | 21 | 0.727273 | 12 | 66 | 3.75 | 0.5 | 0.466667 | 0.577778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.181818 | 66 | 3 | 22 | 22 | 0.796296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
3951ed98ddae29feab778521b39ff401d592d785 | 192 | py | Python | src/conductor/lib/__init__.py | geoffxy/conductor | d33c22031674f9f9e09ac34c0083f26c2daa24e5 | [
"Apache-2.0"
] | null | null | null | src/conductor/lib/__init__.py | geoffxy/conductor | d33c22031674f9f9e09ac34c0083f26c2daa24e5 | [
"Apache-2.0"
] | 19 | 2021-03-15T15:31:28.000Z | 2022-03-11T15:33:17.000Z | src/conductor/lib/__init__.py | geoffxy/conductor | d33c22031674f9f9e09ac34c0083f26c2daa24e5 | [
"Apache-2.0"
] | null | null | null | """
This module is Conductor's user library. It contains various utilities that
can be useful in Python scripts that run as Conductor tasks.
"""
# Path-related utilities.
from .path import *
| 24 | 75 | 0.760417 | 29 | 192 | 5.034483 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 192 | 7 | 76 | 27.428571 | 0.9125 | 0.838542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
1ac40d68dc0e53d002be00fe766d1cd39cf1c8f9 | 49 | py | Python | behavior_machine/visualization/__init__.py | CMU-TBD/behavior_machine | b403192b8002603fc20c76713c7a9fe46a7ed686 | [
"MIT"
] | 1 | 2020-07-28T20:17:52.000Z | 2020-07-28T20:17:52.000Z | behavior_machine/visualization/__init__.py | CMU-TBD/behavior_machine | b403192b8002603fc20c76713c7a9fe46a7ed686 | [
"MIT"
] | 1 | 2021-01-25T15:54:45.000Z | 2021-01-25T15:54:45.000Z | behavior_machine/visualization/__init__.py | CMU-TBD/behavior_machine | b403192b8002603fc20c76713c7a9fe46a7ed686 | [
"MIT"
] | 1 | 2021-01-22T06:12:10.000Z | 2021-01-22T06:12:10.000Z | from .visualize import visualize_behavior_machine | 49 | 49 | 0.918367 | 6 | 49 | 7.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 49 | 1 | 49 | 49 | 0.934783 | 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 |
46d3bb0de8ebf9a994490403615e597241dd0701 | 9,261 | py | Python | python/one-shot-classification/ops.py | shashank879/omniglot | 41137f2a05e24ebbeab7458a08cd0a5042103b50 | [
"MIT"
] | null | null | null | python/one-shot-classification/ops.py | shashank879/omniglot | 41137f2a05e24ebbeab7458a08cd0a5042103b50 | [
"MIT"
] | null | null | null | python/one-shot-classification/ops.py | shashank879/omniglot | 41137f2a05e24ebbeab7458a08cd0a5042103b50 | [
"MIT"
] | null | null | null | import tensorflow as tf
def multi_kernel_conv2d(inputs, num_outputs_each, kernel_sizes=[3, 5, 7], stride=1, padding='SAME',
activation_fn=tf.nn.leaky_relu, normalizer_fn=None, normalizer_params=None,
weights_initializer=tf.truncated_normal_initializer, weights_regulariz... | 62.574324 | 273 | 0.680056 | 1,246 | 9,261 | 4.926164 | 0.153291 | 0.031281 | 0.018247 | 0.01173 | 0.824699 | 0.795699 | 0.778918 | 0.778918 | 0.774845 | 0.766862 | 0 | 0.007214 | 0.251593 | 9,261 | 147 | 274 | 63 | 0.878373 | 0.540654 | 0 | 0.630769 | 0 | 0 | 0.035288 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 1 | 0.046154 | false | 0 | 0.015385 | 0 | 0.107692 | 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 |
46fca24c1b2e0f49ed7216a19f3fcc0735e2fbdd | 3,581 | py | Python | tests/Metrics/test_regression.py | earlbabson/torchflare | 15db06d313a53a3ec4640869335ba87730562b28 | [
"Apache-2.0"
] | 1 | 2021-04-28T19:57:57.000Z | 2021-04-28T19:57:57.000Z | tests/Metrics/test_regression.py | earlbabson/torchflare | 15db06d313a53a3ec4640869335ba87730562b28 | [
"Apache-2.0"
] | null | null | null | tests/Metrics/test_regression.py | earlbabson/torchflare | 15db06d313a53a3ec4640869335ba87730562b28 | [
"Apache-2.0"
] | null | null | null | # flake8: noqa
import collections
import pytest
import sklearn.metrics as skm
import torch
from torchflare.metrics.regression import MAE, MSE, MSLE, R2Score
torch.manual_seed(42)
n_targets = 3
inputs = collections.namedtuple("input", ["outputs", "targets"])
single_target_inputs = inputs(outputs=torch.rand(10, 4), ... | 31.13913 | 105 | 0.692544 | 474 | 3,581 | 4.909283 | 0.135021 | 0.134078 | 0.100559 | 0.075204 | 0.831543 | 0.804899 | 0.767082 | 0.767082 | 0.735281 | 0.735281 | 0 | 0.01512 | 0.187378 | 3,581 | 114 | 106 | 31.412281 | 0.784536 | 0.003351 | 0 | 0.56338 | 0 | 0 | 0.005327 | 0 | 0 | 0 | 0 | 0 | 0.098592 | 1 | 0.15493 | false | 0 | 0.070423 | 0 | 0.225352 | 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 |
202831a5d71d1a2aaa5a4ae699abf65ac5fa1bda | 199 | py | Python | src/database/models/__init__.py | uesleicarvalhoo/Whastapp-API | 56666fa932d779a57d088f0d7676c7b107cccd6c | [
"MIT"
] | null | null | null | src/database/models/__init__.py | uesleicarvalhoo/Whastapp-API | 56666fa932d779a57d088f0d7676c7b107cccd6c | [
"MIT"
] | null | null | null | src/database/models/__init__.py | uesleicarvalhoo/Whastapp-API | 56666fa932d779a57d088f0d7676c7b107cccd6c | [
"MIT"
] | null | null | null | from src.database.models.base import BaseModel
from src.database.models.conversation import Conversation
from src.database.models.message import Message
__all__ = (BaseModel, Message, Conversation)
| 33.166667 | 57 | 0.839196 | 25 | 199 | 6.52 | 0.4 | 0.128834 | 0.276074 | 0.386503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090452 | 199 | 5 | 58 | 39.8 | 0.900552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 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 |
20310661ed261b6c21b436a1f1918adcae86bc7f | 103 | py | Python | pywarp/util/compat.py | shemigon/pywarp | 1072e10aeccf7211c76453ba1173180a654ea082 | [
"Apache-2.0"
] | 1 | 2020-01-10T15:07:28.000Z | 2020-01-10T15:07:28.000Z | pywarp/util/compat.py | shemigon/pywarp | 1072e10aeccf7211c76453ba1173180a654ea082 | [
"Apache-2.0"
] | null | null | null | pywarp/util/compat.py | shemigon/pywarp | 1072e10aeccf7211c76453ba1173180a654ea082 | [
"Apache-2.0"
] | null | null | null | try:
from secrets import token_bytes
except ImportError:
from os import urandom as token_bytes
| 20.6 | 41 | 0.776699 | 15 | 103 | 5.2 | 0.733333 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203884 | 103 | 4 | 42 | 25.75 | 0.95122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
20464b5f0c0ed546d579170d0fce8e0fbbbd9f8e | 729 | gyp | Python | binding.gyp | codeout/node-bgpdump2 | 63422b5810c3eaafde2e1713216d4facb19a0205 | [
"MIT"
] | null | null | null | binding.gyp | codeout/node-bgpdump2 | 63422b5810c3eaafde2e1713216d4facb19a0205 | [
"MIT"
] | null | null | null | binding.gyp | codeout/node-bgpdump2 | 63422b5810c3eaafde2e1713216d4facb19a0205 | [
"MIT"
] | null | null | null | {
'targets': [
{
'target_name': 'bgpdump2',
'sources': [
'src/addon.cc',
'src/bgpdump2.cc',
'deps/bgpdump2/src/bgpdump_data.c',
'deps/bgpdump2/src/bgpdump_file.c',
'deps/bgpdump2/src/bgpdump_option.c',
'deps/bgpdump2/src/bgpdump_parse.c',
'deps/b... | 25.137931 | 47 | 0.529492 | 80 | 729 | 4.7 | 0.3625 | 0.351064 | 0.43883 | 0.382979 | 0.428191 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026923 | 0.286694 | 729 | 28 | 48 | 26.035714 | 0.696154 | 0 | 0 | 0.071429 | 0 | 0 | 0.60631 | 0.432099 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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.