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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
083cd985e8490fd2529b4838358dcdef0b1b20a5 | 92 | py | Python | DisplayPane/Widgets/LabelEditor/PolygonEditor.py | CallumJHays/g26-egb320-2019 | 6dde6b5d2f72fac3928c5042a27dc50e978c3425 | [
"MIT"
] | null | null | null | DisplayPane/Widgets/LabelEditor/PolygonEditor.py | CallumJHays/g26-egb320-2019 | 6dde6b5d2f72fac3928c5042a27dc50e978c3425 | [
"MIT"
] | null | null | null | DisplayPane/Widgets/LabelEditor/PolygonEditor.py | CallumJHays/g26-egb320-2019 | 6dde6b5d2f72fac3928c5042a27dc50e978c3425 | [
"MIT"
] | null | null | null |
from .LabelEditorABC import LabelEditorABC
class PolygonEditor(LabelEditorABC):
pass
| 13.142857 | 42 | 0.804348 | 8 | 92 | 9.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 92 | 6 | 43 | 15.333333 | 0.948718 | 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 |
f229f311f3f4ccf1acd2dfce868c83a1f8ef46e4 | 31 | py | Python | pipeline/src/__init__.py | sawyerwatts/StopSpotDataPipeline | 6537d0d1779d9ffa6a3096c02f4081d659c12a0e | [
"MIT"
] | 3 | 2020-02-19T05:25:56.000Z | 2020-02-22T21:31:34.000Z | pipeline/src/__init__.py | sawyerwatts/StopSpotDataPipeline | 6537d0d1779d9ffa6a3096c02f4081d659c12a0e | [
"MIT"
] | 69 | 2020-02-20T20:30:03.000Z | 2020-05-29T01:20:05.000Z | pipeline/src/__init__.py | wolakdav/TeamBeeCapstoneProject | 6957416273fda85a12e86408ae635d7491fb1035 | [
"MIT"
] | 4 | 2020-06-05T03:47:49.000Z | 2020-12-21T01:17:02.000Z | from src.client import _Client
| 15.5 | 30 | 0.83871 | 5 | 31 | 5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 1 | 31 | 31 | 0.925926 | 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 |
f23978df56cad21b8a64bac428b7aa1b0c27293c | 272 | py | Python | tests/test_de.py | alexmisk/pyserde | bfa8629240950657f750464dbb80d8160a8f8070 | [
"MIT"
] | null | null | null | tests/test_de.py | alexmisk/pyserde | bfa8629240950657f750464dbb80d8160a8f8070 | [
"MIT"
] | 10 | 2020-11-03T07:30:06.000Z | 2021-09-01T06:47:13.000Z | tests/test_de.py | alexmisk/pyserde | bfa8629240950657f750464dbb80d8160a8f8070 | [
"MIT"
] | null | null | null | from typing import Tuple, Union
from serde.de import from_obj
def test_from_obj():
assert not from_obj(int, None, False, True)
assert "a" == from_obj(Union[int, str], "a", False, True)
assert ("a", "b") == from_obj(Tuple[str, str], ("a", "b"), False, True)
| 27.2 | 75 | 0.639706 | 45 | 272 | 3.733333 | 0.422222 | 0.208333 | 0.178571 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183824 | 272 | 9 | 76 | 30.222222 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0.022059 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.166667 | true | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
f27c1b296ba314e2b5a56250cea1770949c60d6f | 85 | py | Python | shop_simplevariations/tests/__init__.py | pjdelport/django-shop-simplevariations | 72ecfe2ebe31ccbd51a745f954a15ce848c48be9 | [
"BSD-3-Clause"
] | 9 | 2015-03-14T20:55:06.000Z | 2021-06-06T11:50:18.000Z | shop_simplevariations/tests/__init__.py | shyba/django-shop-simplevariations | e62e2cdddf4e4caed89860c191e94bc6fb6a3346 | [
"BSD-3-Clause"
] | 2 | 2016-08-10T18:54:19.000Z | 2016-10-03T13:46:16.000Z | shop_simplevariations/tests/__init__.py | shyba/django-shop-simplevariations | e62e2cdddf4e4caed89860c191e94bc6fb6a3346 | [
"BSD-3-Clause"
] | 8 | 2015-01-08T18:00:07.000Z | 2019-04-13T23:22:57.000Z | from .cart_modifier import *
from .simplevariation_tags import *
from .views import * | 28.333333 | 35 | 0.8 | 11 | 85 | 6 | 0.636364 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129412 | 85 | 3 | 36 | 28.333333 | 0.891892 | 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 |
f2910a5c61c89b31230f4cbac7d9b435ab4085ce | 99 | py | Python | taskflow/tests/test_task_run.py | jiangxianfu/smarttaskflow | c661d9776bc98823396d423e33b121933d4c3611 | [
"MIT"
] | 9 | 2020-02-25T01:23:10.000Z | 2022-01-29T10:14:13.000Z | taskflow/tests/test_task_run.py | jiangxianfu/smarttaskflow | c661d9776bc98823396d423e33b121933d4c3611 | [
"MIT"
] | null | null | null | taskflow/tests/test_task_run.py | jiangxianfu/smarttaskflow | c661d9776bc98823396d423e33b121933d4c3611 | [
"MIT"
] | 5 | 2020-02-23T14:32:56.000Z | 2022-01-07T17:48:03.000Z | # -*- coding: utf-8 -*-
def test_task_run():
print("test task run module")
assert 1 == 1
| 14.142857 | 33 | 0.565657 | 15 | 99 | 3.6 | 0.733333 | 0.296296 | 0.407407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.252525 | 99 | 6 | 34 | 16.5 | 0.689189 | 0.212121 | 0 | 0 | 0 | 0 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0 | 0 | 0.333333 | 0.333333 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4b2e090c6474fa2bd4eb423189555879fcc84e04 | 439 | py | Python | src/pyconmech/init_template.py | yijiangh/conmech | 9f24230f08587c5e62e3b482f8829f5ea449a169 | [
"MIT"
] | 10 | 2018-12-10T17:52:15.000Z | 2021-05-12T05:49:34.000Z | src/pyconmech/init_template.py | yijiangh/conmech | 9f24230f08587c5e62e3b482f8829f5ea449a169 | [
"MIT"
] | 32 | 2018-11-28T04:00:24.000Z | 2020-03-14T21:20:38.000Z | src/pyconmech/init_template.py | yijiangh/conmech | 9f24230f08587c5e62e3b482f8829f5ea449a169 | [
"MIT"
] | 1 | 2020-09-23T01:19:00.000Z | 2020-09-23T01:19:00.000Z | # https://github.com/jpanetta/MeshFEM/blob/master/python/init_template.py
################################################################################
# auto-generated from @PROJECT_SOURCE_DIR@/src/pyconmech/init_template.py
################################################################################
import sy... | 54.875 | 80 | 0.52164 | 40 | 439 | 5.45 | 0.7 | 0.110092 | 0.12844 | 0.174312 | 0.256881 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002381 | 0.04328 | 439 | 8 | 81 | 54.875 | 0.516667 | 0.328018 | 0 | 0 | 1 | 0 | 0.255639 | 0.255639 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 |
4b32ed49c9ab2b0ce0485bee3ada01060d5fb711 | 283 | py | Python | xdnlp/bert/layers/__init__.py | mikuh/xdnlp | 1da294659e276c59c620a9ebbab875f1d6fbb038 | [
"MIT"
] | 1 | 2022-02-08T03:27:32.000Z | 2022-02-08T03:27:32.000Z | xdnlp/bert/layers/__init__.py | mikuh/xdnlp | 1da294659e276c59c620a9ebbab875f1d6fbb038 | [
"MIT"
] | null | null | null | xdnlp/bert/layers/__init__.py | mikuh/xdnlp | 1da294659e276c59c620a9ebbab875f1d6fbb038 | [
"MIT"
] | null | null | null | from xdnlp.bert.layers.position_embedding import PositionEmbedding
from xdnlp.bert.layers.self_attention_mask import SelfAttentionMask
from xdnlp.bert.layers.on_device_embedding import OnDeviceEmbedding
from xdnlp.bert.layers.transformer_encoder_block import TransformerEncoderBlock
| 56.6 | 79 | 0.90106 | 35 | 283 | 7.085714 | 0.542857 | 0.145161 | 0.209677 | 0.306452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056537 | 283 | 4 | 80 | 70.75 | 0.928839 | 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 |
4b3a070740133baf9138a1d01a459a8ff6643dd3 | 4,061 | py | Python | tests/grammpy_test/oldapi_tests/term-nonterm-grammar-handling_tests/NonterminalAddRemoveMixedTest.py | PatrikValkovic/grammpy | 8308a1fd349bf9ea0d267360cc9a4ab20d1629e8 | [
"MIT"
] | 1 | 2021-02-04T12:41:08.000Z | 2021-02-04T12:41:08.000Z | tests/grammpy_test/oldapi_tests/term-nonterm-grammar-handling_tests/NonterminalAddRemoveMixedTest.py | PatrikValkovic/grammpy | 8308a1fd349bf9ea0d267360cc9a4ab20d1629e8 | [
"MIT"
] | 3 | 2017-07-08T16:28:52.000Z | 2020-04-23T18:06:24.000Z | tests/grammpy_test/oldapi_tests/term-nonterm-grammar-handling_tests/NonterminalAddRemoveMixedTest.py | PatrikValkovic/grammpy | 8308a1fd349bf9ea0d267360cc9a4ab20d1629e8 | [
"MIT"
] | 1 | 2021-02-04T12:41:10.000Z | 2021-02-04T12:41:10.000Z | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 03.08.2017 12:28
:Licence MIT
Part of grammpy
"""
from unittest import TestCase, main
from grammpy.old_api import Grammar
from grammpy.old_api import Nonterminal
class TempClass(Nonterminal):
pass
class Second(Nonterminal):
pass
class Third(Nont... | 39.427184 | 96 | 0.699828 | 458 | 4,061 | 6.078603 | 0.126638 | 0.15625 | 0.177083 | 0.10273 | 0.846624 | 0.799569 | 0.721624 | 0.706897 | 0.668463 | 0.646193 | 0 | 0.006299 | 0.17902 | 4,061 | 102 | 97 | 39.813725 | 0.828734 | 0.024378 | 0 | 0.691358 | 0 | 0 | 0.002024 | 0 | 0 | 0 | 0 | 0 | 0.777778 | 1 | 0.037037 | false | 0.037037 | 0.037037 | 0 | 0.123457 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4b63cc4511ffc6f06c746a09ef3301a5c735fe58 | 191 | py | Python | server/common_models/__init__.py | Soopro/totoro | 6be1af50496340ded9879a6450c8208ac9f97e72 | [
"MIT"
] | null | null | null | server/common_models/__init__.py | Soopro/totoro | 6be1af50496340ded9879a6450c8208ac9f97e72 | [
"MIT"
] | null | null | null | server/common_models/__init__.py | Soopro/totoro | 6be1af50496340ded9879a6450c8208ac9f97e72 | [
"MIT"
] | 1 | 2019-10-31T06:11:41.000Z | 2019-10-31T06:11:41.000Z | # coding=utf-8
from __future__ import absolute_import
from .user import *
from .media import *
from .book import *
from .category import *
from .configuration import *
from .notify import *
| 19.1 | 38 | 0.759162 | 26 | 191 | 5.384615 | 0.5 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.162304 | 191 | 9 | 39 | 21.222222 | 0.86875 | 0.062827 | 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 |
299faf5bc659ee7d835f5448efd5eb8fa98854df | 3,223 | py | Python | data/load_mnist.py | gavinlive/perception | 7b44d896a3f2ed3afb0376c394a5de3f8a4e4304 | [
"MIT"
] | 3 | 2019-03-18T16:16:20.000Z | 2020-10-18T14:25:18.000Z | data/load_mnist.py | gavinlive/perception | 7b44d896a3f2ed3afb0376c394a5de3f8a4e4304 | [
"MIT"
] | 13 | 2019-12-16T21:18:15.000Z | 2021-07-27T18:55:01.000Z | data/load_mnist.py | gavinlive/perception | 7b44d896a3f2ed3afb0376c394a5de3f8a4e4304 | [
"MIT"
] | null | null | null | import pickle as cpk
import numpy as np
import random
import os
import tensorflow as tf
def load_data():
dir_path = os.path.dirname(os.path.realpath(__file__))
filename= dir_path + '/rmnist_expanded_10.pkl'
print("Loading data")
with open(filename, 'rb') as fname:
print("Opened data successful... | 37.476744 | 120 | 0.70152 | 490 | 3,223 | 4.328571 | 0.177551 | 0.059406 | 0.061292 | 0.050919 | 0.874116 | 0.857143 | 0.838284 | 0.838284 | 0.838284 | 0.793965 | 0 | 0.050208 | 0.178095 | 3,223 | 85 | 121 | 37.917647 | 0.750472 | 0.129072 | 0 | 0.645161 | 0 | 0 | 0.123612 | 0.016482 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.080645 | 0 | 0.209677 | 0.177419 | 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 |
29a752dd2d61d85f75da7fa19325af7df767e39e | 194 | py | Python | sos4hjb/polynomials/__init__.py | TobiaMarcucci/sos4hjb | d8bd5c0179891ff09f11be48777bef148d952a2d | [
"MIT"
] | 3 | 2020-07-05T17:36:06.000Z | 2021-11-20T10:41:58.000Z | sos4hjb/polynomials/__init__.py | TobiaMarcucci/sos4hjb | d8bd5c0179891ff09f11be48777bef148d952a2d | [
"MIT"
] | null | null | null | sos4hjb/polynomials/__init__.py | TobiaMarcucci/sos4hjb | d8bd5c0179891ff09f11be48777bef148d952a2d | [
"MIT"
] | 1 | 2022-01-25T06:39:56.000Z | 2022-01-25T06:39:56.000Z | from .variable import Variable
from .basis_vector import BasisVector
from .monomial_vector import MonomialVector
from .chebyshev_vector import ChebyshevVector
from .polynomial import Polynomial
| 32.333333 | 45 | 0.871134 | 23 | 194 | 7.217391 | 0.478261 | 0.216867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103093 | 194 | 5 | 46 | 38.8 | 0.954023 | 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 |
29ea297041aaa45cc6f58d7b98f3feae2e31a411 | 158 | py | Python | graphish/__init__.py | cmoore94/graphish | 1908743374f48aed1dd17997765948a8c7befcd8 | [
"MIT"
] | 29 | 2019-06-19T17:13:16.000Z | 2021-07-28T21:48:07.000Z | graphish/__init__.py | cmoore94/graphish | 1908743374f48aed1dd17997765948a8c7befcd8 | [
"MIT"
] | 6 | 2019-08-02T19:56:06.000Z | 2022-02-15T19:31:25.000Z | graphish/__init__.py | cmoore94/graphish | 1908743374f48aed1dd17997765948a8c7befcd8 | [
"MIT"
] | 9 | 2019-07-29T10:59:08.000Z | 2022-01-25T17:32:46.000Z | from graphish.connector import GraphConnector
from graphish.search import Search
from graphish.delete import Delete
from graphish.mailfolder import MailFolder | 39.5 | 45 | 0.879747 | 20 | 158 | 6.95 | 0.4 | 0.345324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094937 | 158 | 4 | 46 | 39.5 | 0.972028 | 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 |
4b0a890880affa7ee7e611618c3651ae006102a8 | 26 | py | Python | recOrder/__init__.py | mehta-lab/recOrder | 67f2edb9ab13114dfe41d57e465ae24f961b0004 | [
"Unlicense"
] | 2 | 2022-01-19T21:13:32.000Z | 2022-02-24T19:40:24.000Z | recOrder/__init__.py | mehta-lab/recOrder | 67f2edb9ab13114dfe41d57e465ae24f961b0004 | [
"Unlicense"
] | 55 | 2021-06-24T18:53:18.000Z | 2022-03-30T21:05:14.000Z | recOrder/__init__.py | mehta-lab/recOrder | 67f2edb9ab13114dfe41d57e465ae24f961b0004 | [
"Unlicense"
] | null | null | null | #todo: format overall init | 26 | 26 | 0.807692 | 4 | 26 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.913043 | 0.961538 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 1 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4b2952d03d2ece23c458e0a74b716fd28110aed5 | 48 | py | Python | dear_petition/petition/export/__init__.py | robert-w-gries/dear-petition | 35244afc8e967b41ae5265ae31fd13b26e4e835a | [
"MIT"
] | 4 | 2020-04-01T14:42:45.000Z | 2021-12-12T21:11:11.000Z | dear_petition/petition/export/__init__.py | robert-w-gries/dear-petition | 35244afc8e967b41ae5265ae31fd13b26e4e835a | [
"MIT"
] | 142 | 2019-08-12T19:08:34.000Z | 2022-03-29T23:05:35.000Z | dear_petition/petition/export/__init__.py | robert-w-gries/dear-petition | 35244afc8e967b41ae5265ae31fd13b26e4e835a | [
"MIT"
] | 8 | 2020-02-04T20:37:00.000Z | 2021-03-28T13:28:32.000Z | from .main import generate_petition_pdf # noqa
| 24 | 47 | 0.8125 | 7 | 48 | 5.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 48 | 1 | 48 | 48 | 0.902439 | 0.083333 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
d99d33cefa4ad654506ccf81c4ad9d1ff622c3c9 | 89 | py | Python | scripts/device/temprature_controller/__init__.py | heptaliane/my_measurements_scripts | 0c977a1677d7881a33863ab376cab48a387a7d52 | [
"MIT"
] | null | null | null | scripts/device/temprature_controller/__init__.py | heptaliane/my_measurements_scripts | 0c977a1677d7881a33863ab376cab48a387a7d52 | [
"MIT"
] | null | null | null | scripts/device/temprature_controller/__init__.py | heptaliane/my_measurements_scripts | 0c977a1677d7881a33863ab376cab48a387a7d52 | [
"MIT"
] | null | null | null | from .interface import TempratureController
from .cryocon_model62 import Cryocon_Model62
| 29.666667 | 44 | 0.88764 | 10 | 89 | 7.7 | 0.6 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049383 | 0.089888 | 89 | 2 | 45 | 44.5 | 0.901235 | 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 |
d9a19a13f7b275d11cbe882398e7a8d22f45a2c6 | 880 | py | Python | Lib/importlib/machinery.py | oleksandr-pavlyk/cpython | eb002dbe0da9622245a355db5f0cd5aa2fc70b40 | [
"0BSD"
] | 52,316 | 2015-01-01T15:56:25.000Z | 2022-03-31T23:19:01.000Z | Lib/importlib/machinery.py | dalakatt/cpython | 2f49b97cc5426087b46515254b9a97a22ee8c807 | [
"0BSD"
] | 25,286 | 2015-03-03T23:18:02.000Z | 2022-03-31T23:17:27.000Z | Lib/importlib/machinery.py | dalakatt/cpython | 2f49b97cc5426087b46515254b9a97a22ee8c807 | [
"0BSD"
] | 31,623 | 2015-01-01T13:29:37.000Z | 2022-03-31T19:55:06.000Z | """The machinery of importlib: finders, loaders, hooks, etc."""
from ._bootstrap import ModuleSpec
from ._bootstrap import BuiltinImporter
from ._bootstrap import FrozenImporter
from ._bootstrap_external import (SOURCE_SUFFIXES, DEBUG_BYTECODE_SUFFIXES,
OPTIMIZED_BYTECODE_SUFFIXES, BYTECODE_SUFFIX... | 41.904762 | 75 | 0.810227 | 92 | 880 | 7.423913 | 0.423913 | 0.20937 | 0.245974 | 0.316252 | 0.120059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 880 | 20 | 76 | 44 | 0.908245 | 0.139773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | true | 0 | 0.733333 | 0 | 0.866667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d9ec0299d5270d1f23f1810d918cb8a65b64ab4d | 18,601 | py | Python | shap/benchmark/measures.py | santanaangel/shap | 1c1c4a45440f3475b8544251f9d9e5b43977cd0e | [
"MIT"
] | 16,097 | 2016-12-01T20:01:26.000Z | 2022-03-31T20:27:40.000Z | shap/benchmark/measures.py | santanaangel/shap | 1c1c4a45440f3475b8544251f9d9e5b43977cd0e | [
"MIT"
] | 2,217 | 2017-09-18T20:06:45.000Z | 2022-03-31T21:00:25.000Z | shap/benchmark/measures.py | santanaangel/shap | 1c1c4a45440f3475b8544251f9d9e5b43977cd0e | [
"MIT"
] | 2,634 | 2017-06-29T21:30:46.000Z | 2022-03-30T07:30:36.000Z | import numpy as np
from tqdm.autonotebook import tqdm
import gc
import warnings
import sklearn.utils
_remove_cache = {}
def remove_retrain(nmask, X_train, y_train, X_test, y_test, attr_test, model_generator, metric, trained_model, random_state):
""" The model is retrained for each test sample with the important f... | 43.767059 | 132 | 0.692812 | 2,974 | 18,601 | 4.101547 | 0.096839 | 0.04099 | 0.038367 | 0.021643 | 0.895147 | 0.87334 | 0.848418 | 0.833005 | 0.828414 | 0.816445 | 0 | 0.007495 | 0.21101 | 18,601 | 424 | 133 | 43.870283 | 0.823658 | 0.296758 | 0 | 0.676596 | 0 | 0 | 0.040918 | 0.002343 | 0 | 0 | 0 | 0 | 0.046809 | 1 | 0.06383 | false | 0 | 0.021277 | 0.004255 | 0.148936 | 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 |
d9f0e671999bca27f60afc3f2a6697179b56439d | 26,542 | py | Python | ironic-plugin-pike/ironic/tests/unit/drivers/modules/test_console_utils.py | saintifly/Server_Manage_Plugin | ae272e7e3ca065236cc7bc86c296ff9eb83f1bb9 | [
"Apache-2.0"
] | null | null | null | ironic-plugin-pike/ironic/tests/unit/drivers/modules/test_console_utils.py | saintifly/Server_Manage_Plugin | ae272e7e3ca065236cc7bc86c296ff9eb83f1bb9 | [
"Apache-2.0"
] | null | null | null | ironic-plugin-pike/ironic/tests/unit/drivers/modules/test_console_utils.py | saintifly/Server_Manage_Plugin | ae272e7e3ca065236cc7bc86c296ff9eb83f1bb9 | [
"Apache-2.0"
] | 1 | 2019-01-11T16:00:23.000Z | 2019-01-11T16:00:23.000Z | # coding=utf-8
# Copyright 2014 International Business Machines Corporation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/... | 46.16 | 78 | 0.634315 | 3,159 | 26,542 | 4.959797 | 0.081988 | 0.061271 | 0.070845 | 0.074036 | 0.828759 | 0.806676 | 0.784082 | 0.764488 | 0.748341 | 0.723002 | 0 | 0.007986 | 0.268744 | 26,542 | 574 | 79 | 46.240418 | 0.799268 | 0.036169 | 0 | 0.684902 | 0 | 0 | 0.0713 | 0.020075 | 0 | 0 | 0 | 0 | 0.203501 | 1 | 0.087527 | false | 0.017505 | 0.041575 | 0 | 0.133479 | 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 |
8a31452d04c8ae9e47bed68e0e826fb663e642ef | 11,408 | py | Python | serial_scripts/mvpn/test_mvpn.py | vkolli/5.0_contrail-test | 1793f169a94100400a1b2fafbad21daf5aa4d48a | [
"Apache-2.0"
] | null | null | null | serial_scripts/mvpn/test_mvpn.py | vkolli/5.0_contrail-test | 1793f169a94100400a1b2fafbad21daf5aa4d48a | [
"Apache-2.0"
] | 1 | 2021-06-01T22:18:29.000Z | 2021-06-01T22:18:29.000Z | serial_scripts/mvpn/test_mvpn.py | vkolli/5.0_contrail-test | 1793f169a94100400a1b2fafbad21daf5aa4d48a | [
"Apache-2.0"
] | null | null | null | from tcutils.wrappers import preposttest_wrapper
from compute_node_test import ComputeNodeFixture
import test
from common.mvpn.base import *
from tcutils.traffic_utils.scapy_traffic_gen import ScapyTraffic
from tcutils.traffic_utils.traffic_analyzer import TrafficAnalyzer
class TestMVPNSingleVNSingleCompute(MVPNTestSi... | 39.611111 | 85 | 0.533398 | 1,118 | 11,408 | 5.33542 | 0.11449 | 0.008047 | 0.018106 | 0.020117 | 0.852808 | 0.826488 | 0.811065 | 0.798324 | 0.783906 | 0.732775 | 0 | 0.035622 | 0.387272 | 11,408 | 287 | 86 | 39.749129 | 0.81774 | 0.332486 | 0 | 0.679245 | 0 | 0 | 0.095793 | 0 | 0 | 0 | 0.004385 | 0 | 0 | 1 | 0.075472 | false | 0 | 0.037736 | 0 | 0.138365 | 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 |
8abc27f0b8e16027f7e9a6f931266c08f066b6cf | 220 | py | Python | oscar/lib/python2.7/site-packages/django_extensions/utils/deprecation.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/django_extensions/utils/deprecation.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/django_extensions/utils/deprecation.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from django.utils.deprecation import RemovedInNextVersionWarning
class MarkedForDeprecationWarning(RemovedInNextVersionWarning):
pass
| 24.444444 | 65 | 0.759091 | 18 | 220 | 9 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.177273 | 220 | 8 | 66 | 27.5 | 0.889503 | 0.095455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
0a0d09a0b4eb4f56c25030174230ea51ea0306f6 | 48 | py | Python | tests/test_views.py | codezeus/django-helpers | a28cc19e32cf41130e848c268d26c1858a7cf26a | [
"MIT"
] | null | null | null | tests/test_views.py | codezeus/django-helpers | a28cc19e32cf41130e848c268d26c1858a7cf26a | [
"MIT"
] | null | null | null | tests/test_views.py | codezeus/django-helpers | a28cc19e32cf41130e848c268d26c1858a7cf26a | [
"MIT"
] | null | null | null | import pytest
from django_toolset import views
| 12 | 32 | 0.854167 | 7 | 48 | 5.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 48 | 3 | 33 | 16 | 0.97561 | 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 |
0a27c814c08422d35bbb1097b53a775f175d023c | 202 | py | Python | tests/services/__init__.py | Bystroushaak/bottle-gui | 5135a87e7f0be8e36c1fc8663f46d1dbe6e89a2a | [
"MIT"
] | 3 | 2015-01-03T22:10:33.000Z | 2015-01-04T16:48:45.000Z | tests/services/__init__.py | Bystroushaak/bottle-gui | 5135a87e7f0be8e36c1fc8663f46d1dbe6e89a2a | [
"MIT"
] | 4 | 2015-01-03T18:44:34.000Z | 2020-09-26T08:02:18.000Z | tests/services/__init__.py | Bystroushaak/bottle-gui | 5135a87e7f0be8e36c1fc8663f46d1dbe6e89a2a | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Interpreter version: python 2.7
#
# Imports =====================================================================
from hist import *
from xex import *
| 22.444444 | 79 | 0.420792 | 19 | 202 | 4.473684 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017045 | 0.128713 | 202 | 8 | 80 | 25.25 | 0.465909 | 0.757426 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0a2a0398b1e8d96c44f4834cbda1121594c86452 | 43 | py | Python | code/ch5-viewmodels/services/user_service.py | mtgeekman/web-applications-with-fastapi-course | 0ec278583542360fc6aaef7db5372a827e95deb8 | [
"MIT"
] | 225 | 2020-12-31T08:30:08.000Z | 2022-03-30T14:14:47.000Z | code/ch5-viewmodels/services/user_service.py | mtgeekman/web-applications-with-fastapi-course | 0ec278583542360fc6aaef7db5372a827e95deb8 | [
"MIT"
] | 10 | 2021-02-09T01:28:53.000Z | 2022-02-25T19:03:49.000Z | code/ch5-viewmodels/services/user_service.py | mtgeekman/web-applications-with-fastapi-course | 0ec278583542360fc6aaef7db5372a827e95deb8 | [
"MIT"
] | 145 | 2021-02-06T09:31:46.000Z | 2022-03-26T19:18:20.000Z | def user_count() -> int:
return 73_874
| 14.333333 | 24 | 0.651163 | 7 | 43 | 3.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 0.232558 | 43 | 2 | 25 | 21.5 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 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 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 6 |
0a4103067d07eac658207762e0d7bfaf098f7c9a | 2,280 | py | Python | torch_geometric/graphgym/models/pooling.py | JinheonBaek/pytorch_geometric | dfd32d08a3d8191d6290e53458d4eda515d04fd6 | [
"MIT"
] | 4 | 2021-05-03T20:22:34.000Z | 2021-12-11T03:19:07.000Z | torch_geometric/graphgym/models/pooling.py | JinheonBaek/pytorch_geometric | dfd32d08a3d8191d6290e53458d4eda515d04fd6 | [
"MIT"
] | 1 | 2021-09-10T06:36:13.000Z | 2021-10-06T14:20:16.000Z | torch_geometric/graphgym/models/pooling.py | JinheonBaek/pytorch_geometric | dfd32d08a3d8191d6290e53458d4eda515d04fd6 | [
"MIT"
] | 2 | 2021-07-10T10:16:43.000Z | 2021-11-04T07:36:55.000Z | from torch_scatter import scatter
import torch_geometric.graphgym.register as register
def global_add_pool(x, batch, size=None):
"""
Globally pool node embeddings into graph embeddings, via elementwise sum.
Pooling function takes in node embedding [num_nodes x emb_dim] and
batch (indices) and outputs... | 32.571429 | 78 | 0.693421 | 324 | 2,280 | 4.777778 | 0.203704 | 0.023256 | 0.027132 | 0.027132 | 0.848837 | 0.848837 | 0.848837 | 0.848837 | 0.848837 | 0.848837 | 0 | 0.003382 | 0.22193 | 2,280 | 69 | 79 | 33.043478 | 0.869222 | 0.596053 | 0 | 0.176471 | 0 | 0 | 0.025773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0 | 0.470588 | 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 |
0a535596ab266b0ea3b838b230aa3ae14a01461a | 25 | py | Python | clibs/tess2/__init__.py | filonik/clibs | d060d396515d1d4ba5a94cd5a10a6d728e42c295 | [
"MIT"
] | null | null | null | clibs/tess2/__init__.py | filonik/clibs | d060d396515d1d4ba5a94cd5a10a6d728e42c295 | [
"MIT"
] | null | null | null | clibs/tess2/__init__.py | filonik/clibs | d060d396515d1d4ba5a94cd5a10a6d728e42c295 | [
"MIT"
] | null | null | null | from .tesselator import * | 25 | 25 | 0.8 | 3 | 25 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 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 |
0a6044b98521f2d3a0816b5d00e7cd24bf62aacb | 8,339 | py | Python | flamio/user.py | Jkreid/flamio | c7d98b7e39f0a8e5792a236e9508632d294525b2 | [
"MIT"
] | null | null | null | flamio/user.py | Jkreid/flamio | c7d98b7e39f0a8e5792a236e9508632d294525b2 | [
"MIT"
] | 11 | 2020-05-29T18:14:58.000Z | 2021-07-21T02:41:14.000Z | flamio/user.py | Jkreid/flamio | c7d98b7e39f0a8e5792a236e9508632d294525b2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Jul 17 11:31:40 2021
@author: justi
"""
from abc import ABC, abstractmethod
import flamio
def flamio_method(method):
def data_wrapped(user, *args, **kwargs):
user.pre_method()
value = method(user, *args, **kwargs)
user.aft_method()
retu... | 29.996403 | 79 | 0.61794 | 1,050 | 8,339 | 4.644762 | 0.066667 | 0.229649 | 0.314948 | 0.202994 | 0.886406 | 0.816691 | 0.617183 | 0.532089 | 0.438384 | 0.055362 | 0 | 0.002042 | 0.236599 | 8,339 | 277 | 80 | 30.104693 | 0.764059 | 0.034896 | 0 | 0.319797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.324873 | false | 0.020305 | 0.010152 | 0.071066 | 0.42132 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6a7da3df60c7069ffd260bfd4d586aa5bd98e007 | 253 | py | Python | addons/hr/models/__init__.py | jjiege/odoo | fd5b8ad387c1881f349d125cbd56433f4d49398f | [
"MIT"
] | null | null | null | addons/hr/models/__init__.py | jjiege/odoo | fd5b8ad387c1881f349d125cbd56433f4d49398f | [
"MIT"
] | null | null | null | addons/hr/models/__init__.py | jjiege/odoo | fd5b8ad387c1881f349d125cbd56433f4d49398f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import hr
from . import res_config_settings
from . import mail_alias
from . import mail_channel
from . import res_partner
from . import res_users
| 25.3 | 74 | 0.758893 | 39 | 253 | 4.769231 | 0.666667 | 0.322581 | 0.209677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004762 | 0.16996 | 253 | 9 | 75 | 28.111111 | 0.880952 | 0.371542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 |
6a7db2cbbd35ce5421bf9dc46c63d0d880dfea45 | 1,460 | py | Python | controllers/proc.py | himansu1997/eden | 1e2cf2b00f55da46b1ce3e6b7ad44b5345d7a1dc | [
"MIT"
] | 205 | 2015-01-20T08:26:09.000Z | 2022-03-27T19:59:33.000Z | controllers/proc.py | himansu1997/eden | 1e2cf2b00f55da46b1ce3e6b7ad44b5345d7a1dc | [
"MIT"
] | 249 | 2015-02-10T09:56:35.000Z | 2022-03-23T19:54:36.000Z | controllers/proc.py | himansu1997/eden | 1e2cf2b00f55da46b1ce3e6b7ad44b5345d7a1dc | [
"MIT"
] | 231 | 2015-02-10T09:33:17.000Z | 2022-02-18T19:56:05.000Z | # -*- coding: utf-8 -*-
"""
Procurement
A module to handle Procurement
Currently handles
Suppliers
Planned Procurements
Purchase Orders (POs)
@ToDo: Extend to
Purchase Requests (PRs)
"""
if not settings.has_module(c):
raise HTTP(404, body="Module disabled: %s" % ... | 26.545455 | 79 | 0.377397 | 102 | 1,460 | 5.254902 | 0.539216 | 0.08209 | 0.156716 | 0.201493 | 0.466418 | 0.466418 | 0.466418 | 0.30597 | 0.30597 | 0.30597 | 0 | 0.009786 | 0.230137 | 1,460 | 54 | 80 | 27.037037 | 0.467082 | 0.576712 | 0 | 0.285714 | 0 | 0 | 0.062385 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.285714 | true | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
6a91a4a394e0bfc87d46febc7702653bfa739570 | 180 | py | Python | class9/ex8/mytest/__init__.py | daveg999/Automation_class | d23652ecae56b790684971dda6e85a1d2367e22b | [
"Apache-2.0"
] | null | null | null | class9/ex8/mytest/__init__.py | daveg999/Automation_class | d23652ecae56b790684971dda6e85a1d2367e22b | [
"Apache-2.0"
] | null | null | null | class9/ex8/mytest/__init__.py | daveg999/Automation_class | d23652ecae56b790684971dda6e85a1d2367e22b | [
"Apache-2.0"
] | null | null | null | from mytest.simple import func1
from mytest.whatever import func2
from mytest.world import func3
from mytest.world import MyClass
__all__ = ('func1', 'func2', 'func3', 'MyClass')
| 25.714286 | 48 | 0.772222 | 25 | 180 | 5.4 | 0.44 | 0.296296 | 0.222222 | 0.311111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038217 | 0.127778 | 180 | 6 | 49 | 30 | 0.821656 | 0 | 0 | 0 | 0 | 0 | 0.122222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 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 |
6aae89b56bc757f98c51d3d3665f0f64e58fb84a | 35 | py | Python | discord/types/widget.py | Harukomaze/disnake | 541f5c9623a02be894cd1015dbb344070700cb87 | [
"MIT"
] | null | null | null | discord/types/widget.py | Harukomaze/disnake | 541f5c9623a02be894cd1015dbb344070700cb87 | [
"MIT"
] | null | null | null | discord/types/widget.py | Harukomaze/disnake | 541f5c9623a02be894cd1015dbb344070700cb87 | [
"MIT"
] | null | null | null | from disnake.types.widget import *
| 17.5 | 34 | 0.8 | 5 | 35 | 5.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 35 | 1 | 35 | 35 | 0.903226 | 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 |
0ad15c947cfe5253b488718e212935b7005da018 | 27,279 | py | Python | tests/components/zeroconf/test_init.py | jonasjeeliasson/core | 0301706fc631ad1f2cd2532667ba9dfe2f856198 | [
"Apache-2.0"
] | 1 | 2019-08-19T18:18:50.000Z | 2019-08-19T18:18:50.000Z | tests/components/zeroconf/test_init.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 70 | 2020-08-05T07:20:00.000Z | 2022-03-31T06:01:46.000Z | tests/components/zeroconf/test_init.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 2 | 2020-06-03T20:24:39.000Z | 2020-06-06T19:52:09.000Z | """Test Zeroconf component setup process."""
from unittest.mock import patch
from zeroconf import (
BadTypeInNameException,
Error as ZeroconfError,
InterfaceChoice,
IPVersion,
ServiceInfo,
ServiceStateChange,
)
from homeassistant.components import zeroconf
from homeassistant.components.zerocon... | 39.306916 | 644 | 0.691118 | 3,381 | 27,279 | 5.265898 | 0.08045 | 0.045832 | 0.038531 | 0.055044 | 0.841384 | 0.825489 | 0.797012 | 0.768872 | 0.76275 | 0.756684 | 0 | 0.009475 | 0.206899 | 27,279 | 693 | 645 | 39.363636 | 0.81345 | 0.019026 | 0 | 0.66055 | 0 | 0.00367 | 0.133517 | 0.016585 | 0 | 0 | 0 | 0 | 0.150459 | 1 | 0.025688 | false | 0 | 0.012844 | 0.005505 | 0.053211 | 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 |
0ae72cfec4005fca8b1e017f5de937bb3697240a | 97,927 | py | Python | tests/python/unittest/test_gluon_probability_v1.py | PawelGlomski-Intel/incubator-mxnet | 13e9d572b3059ebe0d1d4f6d452db4f971375588 | [
"Apache-2.0",
"MIT"
] | 2 | 2019-01-15T07:34:36.000Z | 2019-06-13T04:46:31.000Z | tests/python/unittest/test_gluon_probability_v1.py | PawelGlomski-Intel/incubator-mxnet | 13e9d572b3059ebe0d1d4f6d452db4f971375588 | [
"Apache-2.0",
"MIT"
] | 27 | 2020-02-28T19:54:08.000Z | 2020-09-20T02:39:46.000Z | tests/python/unittest/test_gluon_probability_v1.py | PawelGlomski-Intel/incubator-mxnet | 13e9d572b3059ebe0d1d4f6d452db4f971375588 | [
"Apache-2.0",
"MIT"
] | 5 | 2020-08-18T19:16:21.000Z | 2020-09-10T20:30:44.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 40.768943 | 111 | 0.573182 | 12,012 | 97,927 | 4.475441 | 0.041292 | 0.038245 | 0.046597 | 0.038933 | 0.818282 | 0.788445 | 0.754274 | 0.730259 | 0.716531 | 0.683011 | 0 | 0.019878 | 0.306494 | 97,927 | 2,401 | 112 | 40.785923 | 0.771708 | 0.040918 | 0 | 0.670732 | 0 | 0 | 0.014205 | 0.000246 | 0 | 0 | 0 | 0 | 0.060467 | 1 | 0.065041 | false | 0 | 0.007114 | 0.009146 | 0.119919 | 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 |
0aefd1e832608cb0768f999e50963866ceec5d5a | 33 | py | Python | odoo-13.0/venv/lib/python3.8/site-packages/PcxImagePlugin.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | 2 | 2021-06-20T16:56:45.000Z | 2021-06-20T17:30:18.000Z | odoo-13.0/venv/lib/python3.8/site-packages/PcxImagePlugin.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | odoo-13.0/venv/lib/python3.8/site-packages/PcxImagePlugin.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | from PIL.PcxImagePlugin import *
| 16.5 | 32 | 0.818182 | 4 | 33 | 6.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.931034 | 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 |
7c20a5d0a36282a85e330e3fffbdb943e39489e5 | 5,387 | py | Python | multiworld/envs/mujoco/cameras.py | shikharbahl/multiworld | 85b3200dc9a5821754c2d8ba2b8a7b6add874828 | [
"MIT"
] | 1 | 2019-01-30T20:55:15.000Z | 2019-01-30T20:55:15.000Z | multiworld/envs/mujoco/cameras.py | shikharbahl/multiworld | 85b3200dc9a5821754c2d8ba2b8a7b6add874828 | [
"MIT"
] | null | null | null | multiworld/envs/mujoco/cameras.py | shikharbahl/multiworld | 85b3200dc9a5821754c2d8ba2b8a7b6add874828 | [
"MIT"
] | null | null | null | import numpy as np
def create_sawyer_camera_init(
lookat=(0, 0.85, 0.3),
distance=0.3,
elevation=-35,
azimuth=270,
trackbodyid=-1,
):
def init(camera):
camera.lookat[0] = lookat[0]
camera.lookat[1] = lookat[1]
camera.lookat[2] = lookat[2]
came... | 25.055814 | 70 | 0.633377 | 792 | 5,387 | 4.169192 | 0.130051 | 0.13083 | 0.059055 | 0.076317 | 0.818595 | 0.818595 | 0.818595 | 0.809207 | 0.79043 | 0.79043 | 0 | 0.074686 | 0.246891 | 5,387 | 214 | 71 | 25.172897 | 0.739216 | 0.062744 | 0 | 0.685185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004673 | 0 | 1 | 0.104938 | false | 0 | 0.006173 | 0 | 0.117284 | 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 |
7c51fd04058be770247a4490232efadf8255b063 | 1,499 | py | Python | NeoML/Python/test/svml.py | SAngeliuk/neoml_python | 09e24dd726426ec880ff1793c287f03c3f1d362e | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-12-25T08:04:55.000Z | 2020-12-25T08:04:55.000Z | NeoML/Python/test/svml.py | SAngeliuk/neoml_python | 09e24dd726426ec880ff1793c287f03c3f1d362e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | NeoML/Python/test/svml.py | SAngeliuk/neoml_python | 09e24dd726426ec880ff1793c287f03c3f1d362e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | import numpy as np
from scipy.sparse import csr_matrix
def read( file_path, min_feature_count=0 ) :
file = open(file_path, "r")
data = []
column = []
row = [0]
y = []
rowCount = 0;
columnCount = 0
elementCount = 0
for line in file:
cur = line.split(" ")
y.append( int(cur[0]) )
for i in range(1, len(... | 21.112676 | 143 | 0.587725 | 223 | 1,499 | 3.901345 | 0.246637 | 0.056322 | 0.064368 | 0.051724 | 0.751724 | 0.712644 | 0.712644 | 0.712644 | 0.712644 | 0.712644 | 0 | 0.036427 | 0.230821 | 1,499 | 70 | 144 | 21.414286 | 0.718127 | 0 | 0 | 0.807692 | 0 | 0 | 0.010681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.115385 | 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 |
7c8aa137d037945796fb4702c23c7eed165adb50 | 6,516 | py | Python | tests/test_math/test_linalg.py | yeonsu-jung/PyElastica | fee87b9da22e310ff925c16fdc839bf8405c51a4 | [
"MIT"
] | null | null | null | tests/test_math/test_linalg.py | yeonsu-jung/PyElastica | fee87b9da22e310ff925c16fdc839bf8405c51a4 | [
"MIT"
] | 1 | 2022-01-06T11:30:20.000Z | 2022-02-07T07:11:22.000Z | tests/test_math/test_linalg.py | yeonsu-jung/PyElastica | fee87b9da22e310ff925c16fdc839bf8405c51a4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
__doc__ = (
""" Test scripts for linear algebra helpers in Elastica Numba implementation"""
)
# System imports
import numpy as np
import pytest
from numpy.testing import assert_allclose
from elastica._linalg import (
_batch_matvec,
_batch_matmul,
_batch_cross,
_batch_vec_oneD_... | 32.909091 | 87 | 0.767035 | 826 | 6,516 | 5.567797 | 0.09201 | 0.292237 | 0.086975 | 0.141335 | 0.83105 | 0.814742 | 0.750381 | 0.737769 | 0.681452 | 0.64775 | 0 | 0.011009 | 0.149632 | 6,516 | 197 | 88 | 33.076142 | 0.818986 | 0.01105 | 0 | 0.345324 | 0 | 0 | 0.023263 | 0 | 0 | 0 | 0 | 0.005076 | 0.086331 | 1 | 0.079137 | false | 0 | 0.028777 | 0 | 0.107914 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7c8fcb1790d0ff00d8d423a19aacfa99859b902c | 47 | py | Python | library/src/test/unit/__init__.py | unSAD-admin/unSAD | 9f1d0e680a0086d140bc8d1c55fe21dd7de87df5 | [
"Apache-2.0"
] | 3 | 2019-11-01T04:51:51.000Z | 2019-12-17T04:25:18.000Z | library/src/test/unit/__init__.py | unSAD-admin/unSAD | 9f1d0e680a0086d140bc8d1c55fe21dd7de87df5 | [
"Apache-2.0"
] | 1 | 2019-11-11T18:29:36.000Z | 2019-11-11T18:29:36.000Z | library/src/test/unit/__init__.py | unSAD-admin/unSAD | 9f1d0e680a0086d140bc8d1c55fe21dd7de87df5 | [
"Apache-2.0"
] | 2 | 2019-12-18T11:49:00.000Z | 2020-03-27T20:06:15.000Z | # Created by Xinyu Zhu on 10/22/2019, 12:45 PM
| 23.5 | 46 | 0.702128 | 11 | 47 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.315789 | 0.191489 | 47 | 1 | 47 | 47 | 0.552632 | 0.93617 | 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 |
7c978c789c087b1d53966c4f08815c356f697da2 | 2,277 | py | Python | idl2py/jd/ydn2md.py | RapidLzj/idl2py | 193051cd8d01db0d125b8975713b885ad521a992 | [
"MIT"
] | null | null | null | idl2py/jd/ydn2md.py | RapidLzj/idl2py | 193051cd8d01db0d125b8975713b885ad521a992 | [
"MIT"
] | null | null | null | idl2py/jd/ydn2md.py | RapidLzj/idl2py | 193051cd8d01db0d125b8975713b885ad521a992 | [
"MIT"
] | null | null | null | """
By Dr Jie Zheng -Q, NAOC
v1 2019-04-27
"""
import numpy as np
from..util import *
def ydn2md():
pass
#;-------------------------------------------------------------
#;+
#; NAME:
#; YDN2MD
#; PURPOSE:
#; Convert from year and day number of year to month and day of month.
#;... | 29.571429 | 85 | 0.474747 | 309 | 2,277 | 3.485437 | 0.430421 | 0.011142 | 0.03714 | 0.030641 | 0.245125 | 0.211699 | 0.181987 | 0.098422 | 0.098422 | 0.098422 | 0 | 0.086207 | 0.337725 | 2,277 | 76 | 86 | 29.960526 | 0.627984 | 0.857708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
7ca98cd53abc3e14ed14daf80df06a78869bcbef | 9,637 | py | Python | python/seldon/luigi/spark.py | smsahu/seldon-server | 7f6dc5d405736e44205323f04ce431064dd854b3 | [
"Apache-2.0"
] | 1,645 | 2015-02-13T12:31:44.000Z | 2022-03-17T07:50:05.000Z | python/seldon/luigi/spark.py | smsahu/seldon-server | 7f6dc5d405736e44205323f04ce431064dd854b3 | [
"Apache-2.0"
] | 57 | 2015-03-26T16:00:23.000Z | 2021-05-10T11:03:40.000Z | python/seldon/luigi/spark.py | smsahu/seldon-server | 7f6dc5d405736e44205323f04ce431064dd854b3 | [
"Apache-2.0"
] | 371 | 2015-03-16T11:04:16.000Z | 2022-02-27T01:16:02.000Z | import luigi
from subprocess import call
import logging
from seldon.misc.item_similarity import *
from seldon.misc.most_popular import *
from luigi.contrib.spark import SparkSubmitTask
#
# Item Similarity
#
class ItemSimilaritySparkJob(luigi.Task):
"""
Spark job for running item similarity model
"""
i... | 45.672986 | 501 | 0.692747 | 1,094 | 9,637 | 6.073126 | 0.124314 | 0.080072 | 0.120108 | 0.045154 | 0.769868 | 0.769868 | 0.765051 | 0.74699 | 0.743377 | 0.740969 | 0 | 0.008392 | 0.134482 | 9,637 | 210 | 502 | 45.890476 | 0.788155 | 0.03912 | 0 | 0.657143 | 0 | 0 | 0.219691 | 0.091447 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0.042857 | 0.042857 | 0.064286 | 0.821429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
6b04133a33c09306861fff8d4d2c162bef9235e7 | 26 | py | Python | models/__init__.py | MarcAntoineAlex/DenseNAS-1 | 7957789aefcfaa569ae8705693b1eabce9161bcf | [
"Apache-2.0"
] | 107 | 2020-06-15T09:55:11.000Z | 2020-12-20T11:27:11.000Z | models/__init__.py | kayuksel/pytorch-GENet | e2dcda697ab04afaf88fb8f867405332bea3301b | [
"MIT"
] | 7 | 2020-06-14T03:00:18.000Z | 2020-12-07T07:10:10.000Z | models/__init__.py | kayuksel/pytorch-GENet | e2dcda697ab04afaf88fb8f867405332bea3301b | [
"MIT"
] | 19 | 2020-06-14T08:35:33.000Z | 2020-12-19T13:43:41.000Z | from .wideresnet import *
| 13 | 25 | 0.769231 | 3 | 26 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 26 | 1 | 26 | 26 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6b0e8deb398b8111d8e1ea99866340b05f37ea1d | 79 | py | Python | userSetup.py | Mikfr83/crab | d8f0c2a301017b686ace40bc3b3f74ffbc09e3ed | [
"MIT"
] | null | null | null | userSetup.py | Mikfr83/crab | d8f0c2a301017b686ace40bc3b3f74ffbc09e3ed | [
"MIT"
] | null | null | null | userSetup.py | Mikfr83/crab | d8f0c2a301017b686ace40bc3b3f74ffbc09e3ed | [
"MIT"
] | null | null | null | import maya.cmds
maya.cmds.evalDeferred('import crab;crab.menu.initialize()')
| 19.75 | 60 | 0.78481 | 11 | 79 | 5.636364 | 0.636364 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063291 | 79 | 3 | 61 | 26.333333 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0.43038 | 0.341772 | 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 |
6b1af921694d4f3da65562cf4b2c89a44fc320a7 | 22,101 | py | Python | cmstack/cmlang/antlr_generator/lexer.py | he-actlab/cdstack | 38f605cfa299bf97b5875a19f9fd811a2671d56f | [
"Apache-2.0"
] | null | null | null | cmstack/cmlang/antlr_generator/lexer.py | he-actlab/cdstack | 38f605cfa299bf97b5875a19f9fd811a2671d56f | [
"Apache-2.0"
] | null | null | null | cmstack/cmlang/antlr_generator/lexer.py | he-actlab/cdstack | 38f605cfa299bf97b5875a19f9fd811a2671d56f | [
"Apache-2.0"
] | null | null | null | # Generated from /home/kinzers/projects/cmstack.code/cmstack/cmlang/antlr_generator/CMLang.g4 by ANTLR 4.7.2
from antlr4 import *
from io import StringIO
from typing.io import TextIO
import sys
def serializedATN():
with StringIO() as buf:
buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2C")... | 59.894309 | 108 | 0.564183 | 4,878 | 22,101 | 2.52665 | 0.163592 | 0.135335 | 0.0757 | 0.081785 | 0.288114 | 0.192454 | 0.116105 | 0.107586 | 0.102718 | 0.100203 | 0 | 0.338236 | 0.15402 | 22,101 | 368 | 109 | 60.057065 | 0.320961 | 0.004796 | 0 | 0 | 1 | 0.497143 | 0.625392 | 0.567869 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005714 | false | 0 | 0.011429 | 0 | 0.231429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8628c79257b2a142662b9fcc9f2c67dcec552c6d | 167 | py | Python | api/models.py | zpx01/react-movie-rating | 6869792d30fe8bf249bb7780f03ac1fbda4db3eb | [
"MIT"
] | null | null | null | api/models.py | zpx01/react-movie-rating | 6869792d30fe8bf249bb7780f03ac1fbda4db3eb | [
"MIT"
] | null | null | null | api/models.py | zpx01/react-movie-rating | 6869792d30fe8bf249bb7780f03ac1fbda4db3eb | [
"MIT"
] | null | null | null | from . import db
class Movie(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(50))
rating = db.Column(db.Integer) | 27.833333 | 49 | 0.652695 | 26 | 167 | 4.153846 | 0.615385 | 0.222222 | 0.277778 | 0.314815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015038 | 0.203593 | 167 | 6 | 50 | 27.833333 | 0.796992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
8633924452eda9f379515d6309ee6193f8a43999 | 19,097 | py | Python | aiida/backends/sqlalchemy/migrations/versions/e15ef2630a1b_initial_schema.py | joepvd/aiida_core | 6e9711046753332933f982971db1d7ac7e7ade58 | [
"BSD-2-Clause"
] | 1 | 2019-03-15T10:37:53.000Z | 2019-03-15T10:37:53.000Z | aiida/backends/sqlalchemy/migrations/versions/e15ef2630a1b_initial_schema.py | odarbelaeze/aiida_core | 934b4ccdc73a993f2a6656caf516500470e3da08 | [
"BSD-2-Clause"
] | null | null | null | aiida/backends/sqlalchemy/migrations/versions/e15ef2630a1b_initial_schema.py | odarbelaeze/aiida_core | 934b4ccdc73a993f2a6656caf516500470e3da08 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... | 66.309028 | 173 | 0.724302 | 2,455 | 19,097 | 5.442363 | 0.086762 | 0.075443 | 0.21211 | 0.229025 | 0.825387 | 0.777711 | 0.726293 | 0.705786 | 0.659681 | 0.567323 | 0 | 0.007748 | 0.107923 | 19,097 | 287 | 174 | 66.54007 | 0.776532 | 0.036341 | 0 | 0.290076 | 0 | 0 | 0.230567 | 0.077569 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007634 | false | 0.003817 | 0.030534 | 0 | 0.038168 | 0.003817 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
86415dff82b7a45f70ba903723aa0dc9603b9375 | 374 | py | Python | __init__.py | Leonardo-H/Energy-Efficient-RL | df5845bedcce16593c46724e88161f172c88e27b | [
"Apache-2.0"
] | null | null | null | __init__.py | Leonardo-H/Energy-Efficient-RL | df5845bedcce16593c46724e88161f172c88e27b | [
"Apache-2.0"
] | null | null | null | __init__.py | Leonardo-H/Energy-Efficient-RL | df5845bedcce16593c46724e88161f172c88e27b | [
"Apache-2.0"
] | null | null | null | from baselines.EERL.graph.advantage_learning_graph import adv_build_act, adv_build_train
from baselines.EERL.graph.imitation_graph import imit_build_act, imit_build_train
from baselines.EERL.graph.svgd_imitation_graph import svgd_imit_build_act, svgd_imit_build_train
from baselines.EERL.graph.svgd_advantage_learning... | 93.5 | 103 | 0.898396 | 60 | 374 | 5.133333 | 0.233333 | 0.168831 | 0.220779 | 0.285714 | 0.363636 | 0.363636 | 0.25974 | 0.25974 | 0 | 0 | 0 | 0 | 0.058824 | 374 | 4 | 103 | 93.5 | 0.875 | 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 |
864fb219f6ce94d4397b1987dc10b8871a6243e5 | 2,471 | py | Python | tests/test_longest_palindromic.py | stachenov/PyLeetCode | cb13700d428854eff46a762542a63d691578d5b6 | [
"Unlicense"
] | null | null | null | tests/test_longest_palindromic.py | stachenov/PyLeetCode | cb13700d428854eff46a762542a63d691578d5b6 | [
"Unlicense"
] | null | null | null | tests/test_longest_palindromic.py | stachenov/PyLeetCode | cb13700d428854eff46a762542a63d691578d5b6 | [
"Unlicense"
] | null | null | null | import pytest
from problems.longest_palindromic import Solution
@pytest.mark.parametrize("s,expected", [
("", ""),
("a", "a"),
("aa", "aa"),
("aaa", "aaa"),
("aba", "aba"),
("abaa", "aba"),
("abaac", "aba"),
("aaba", "aba"),
("caaba", "aba"),
("abba", "abba"),
("abcba", "ab... | 107.434783 | 2,013 | 0.902469 | 48 | 2,471 | 46.4375 | 0.625 | 0.012113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042898 | 2,471 | 22 | 2,014 | 112.318182 | 0.942495 | 0 | 0 | 0 | 0 | 0 | 0.848644 | 0.809389 | 0 | 1 | 0 | 0 | 0.05 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.15 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
86856bb02d92ce188ce5e494d1ee917edcbc9a4e | 9,964 | py | Python | tests/test_alpaca_data_loader.py | andywitt1/LiuAlgoTrader | 7e3ec8fb06cf6e616f2e91c99a7de83b5f048f70 | [
"MIT"
] | null | null | null | tests/test_alpaca_data_loader.py | andywitt1/LiuAlgoTrader | 7e3ec8fb06cf6e616f2e91c99a7de83b5f048f70 | [
"MIT"
] | null | null | null | tests/test_alpaca_data_loader.py | andywitt1/LiuAlgoTrader | 7e3ec8fb06cf6e616f2e91c99a7de83b5f048f70 | [
"MIT"
] | null | null | null | from datetime import date, datetime
import pandas as pd
import pytest
from pytz import timezone
from liualgotrader.common import config
from liualgotrader.common.data_loader import DataLoader # type: ignore
from liualgotrader.common.types import DataConnectorType, TimeScale
nyc = timezone("America/New_York")
@pyt... | 30.753086 | 96 | 0.724508 | 1,402 | 9,964 | 4.835235 | 0.077746 | 0.10621 | 0.097064 | 0.084083 | 0.89497 | 0.880661 | 0.848503 | 0.807641 | 0.767222 | 0.720018 | 0 | 0.038095 | 0.156965 | 9,964 | 323 | 97 | 30.848297 | 0.768929 | 0.028904 | 0 | 0.588477 | 0 | 0 | 0.169102 | 0.105067 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.028807 | 0.004115 | 0.263374 | 0.218107 | 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 |
86ba11df826b1a85b469e85b635d2a5d86cc38c0 | 142 | py | Python | rsockets2/transport/__init__.py | freelancer1845/rsockets2-try | 25b8b38e00925c3feb6c6e790624a35bc8689619 | [
"Apache-2.0"
] | 3 | 2020-05-08T09:45:44.000Z | 2020-11-13T11:39:06.000Z | rsockets2/transport/__init__.py | freelancer1845/rsockets2-try | 25b8b38e00925c3feb6c6e790624a35bc8689619 | [
"Apache-2.0"
] | 1 | 2022-01-27T08:07:22.000Z | 2022-01-27T08:07:22.000Z | rsockets2/transport/__init__.py | freelancer1845/rsockets2-try | 25b8b38e00925c3feb6c6e790624a35bc8689619 | [
"Apache-2.0"
] | 1 | 2020-05-08T09:47:14.000Z | 2020-05-08T09:47:14.000Z | from .abstract_transport import AbstractTransport
from .tcp_transport import TcpTransport
from .websocket_transport import WebsocketTransport
| 35.5 | 51 | 0.894366 | 15 | 142 | 8.266667 | 0.6 | 0.362903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 142 | 3 | 52 | 47.333333 | 0.953846 | 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 |
d4961ae1071073b986470319fdd2d6becb467c03 | 37,894 | py | Python | instances/passenger_demand/pas-20210421-2109-int14000000000000001e/60.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210421-2109-int14000000000000001e/60.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210421-2109-int14000000000000001e/60.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null |
"""
PASSENGERS
"""
numPassengers = 3241
passenger_arriving = (
(2, 4, 9, 5, 2, 0, 7, 7, 4, 5, 1, 0), # 0
(1, 9, 7, 4, 1, 0, 6, 6, 9, 6, 1, 0), # 1
(5, 6, 8, 4, 3, 0, 8, 11, 5, 2, 1, 0), # 2
(4, 5, 5, 4, 2, 0, 8, 15, 0, 4, 4, 0), # 3
(5, 11, 13, 4, 3, 0, 11, 6, 3, 1, 1, 0), # 4
(9, 6, 8, 3, 0, 0, 7, 6, 9, ... | 113.116418 | 212 | 0.729139 | 5,147 | 37,894 | 5.366038 | 0.228483 | 0.312828 | 0.247656 | 0.469242 | 0.32847 | 0.327745 | 0.327745 | 0.327745 | 0.327745 | 0.327745 | 0 | 0.819053 | 0.119122 | 37,894 | 334 | 213 | 113.45509 | 0.008358 | 0.031958 | 0 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.015823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d4f430c48f066f2bb72aee9f7b0be54914c560b6 | 26,491 | py | Python | monitoring/tests/system/test_vpcsc.py | DaveCheez/google-cloud-python | fc03d4d41f13e9d13db7206438163b3a471fdabd | [
"Apache-2.0"
] | 1 | 2019-06-14T10:11:59.000Z | 2019-06-14T10:11:59.000Z | monitoring/tests/system/test_vpcsc.py | DaveCheez/google-cloud-python | fc03d4d41f13e9d13db7206438163b3a471fdabd | [
"Apache-2.0"
] | null | null | null | monitoring/tests/system/test_vpcsc.py | DaveCheez/google-cloud-python | fc03d4d41f13e9d13db7206438163b3a471fdabd | [
"Apache-2.0"
] | 1 | 2020-04-14T10:47:41.000Z | 2020-04-14T10:47:41.000Z | # -*- coding: utf-8 -*-
#
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 45.206485 | 98 | 0.730701 | 2,908 | 26,491 | 6.272352 | 0.060867 | 0.046327 | 0.054386 | 0.07818 | 0.929715 | 0.920724 | 0.882182 | 0.853728 | 0.850055 | 0.846107 | 0 | 0.004094 | 0.197803 | 26,491 | 585 | 99 | 45.283761 | 0.854219 | 0.030199 | 0 | 0.573614 | 0 | 0 | 0.178347 | 0.08372 | 0 | 0 | 0 | 0 | 0.007648 | 1 | 0.063098 | false | 0.001912 | 0.00956 | 0 | 0.078394 | 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 |
be0ca882a3db89c7a03c60e63dba3c68f62ed935 | 1,683 | py | Python | molsysmt/tests/pbc/box_lengths_from_box_vectors/test_box_lengths_from_box_vectors.py | dprada/molsysmt | 83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d | [
"MIT"
] | null | null | null | molsysmt/tests/pbc/box_lengths_from_box_vectors/test_box_lengths_from_box_vectors.py | dprada/molsysmt | 83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d | [
"MIT"
] | null | null | null | molsysmt/tests/pbc/box_lengths_from_box_vectors/test_box_lengths_from_box_vectors.py | dprada/molsysmt | 83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d | [
"MIT"
] | null | null | null | """
Unit and regression test for the box_lengths_from_box_vectors module of the molsysmt package.
"""
# Import package, test suite, and other packages as needed
import molsysmt as msm
import numpy as np
# Distance between atoms in space and time
def test_box_lengths_from_box_vectors_1():
molsys = msm.convert(msm... | 48.085714 | 122 | 0.729649 | 255 | 1,683 | 4.635294 | 0.266667 | 0.038071 | 0.08291 | 0.100677 | 0.819797 | 0.799492 | 0.799492 | 0.773266 | 0.773266 | 0.773266 | 0 | 0.038697 | 0.124777 | 1,683 | 34 | 123 | 49.5 | 0.763747 | 0.114082 | 0 | 0.652174 | 0 | 0 | 0.174207 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.130435 | false | 0 | 0.086957 | 0 | 0.217391 | 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 |
be20bf4c814f553043f910730684ae7fe8f2151e | 46,629 | py | Python | colour/plotting/diagrams.py | tjdcs/colour | 09413da71b5da57408eb812797c5db1300d4791a | [
"BSD-3-Clause"
] | null | null | null | colour/plotting/diagrams.py | tjdcs/colour | 09413da71b5da57408eb812797c5db1300d4791a | [
"BSD-3-Clause"
] | null | null | null | colour/plotting/diagrams.py | tjdcs/colour | 09413da71b5da57408eb812797c5db1300d4791a | [
"BSD-3-Clause"
] | null | null | null | """
CIE Chromaticity Diagrams Plotting
==================================
Defines the *CIE* chromaticity diagrams plotting objects:
- :func:`colour.plotting.plot_chromaticity_diagram_CIE1931`
- :func:`colour.plotting.plot_chromaticity_diagram_CIE1960UCS`
- :func:`colour.plotting.plot_chromaticity_diagram_CIE197... | 33.282655 | 79 | 0.623732 | 4,997 | 46,629 | 5.639784 | 0.077046 | 0.072812 | 0.033851 | 0.019374 | 0.80523 | 0.76705 | 0.743276 | 0.720708 | 0.703215 | 0.688205 | 0 | 0.024573 | 0.279997 | 46,629 | 1,400 | 80 | 33.306429 | 0.814851 | 0.467713 | 0 | 0.502196 | 0 | 0 | 0.089522 | 0.01579 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019034 | false | 0 | 0.019034 | 0 | 0.057101 | 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 |
be21eb7ff5a888f1e1b13930f8acecabfbd7184c | 1,345 | py | Python | search_insert_position.py | ChiragSaini/June-LeetCoding-Challenge | 8e3192c7c4cfbd5cf8718bdb1b041871585a0c69 | [
"MIT"
] | null | null | null | search_insert_position.py | ChiragSaini/June-LeetCoding-Challenge | 8e3192c7c4cfbd5cf8718bdb1b041871585a0c69 | [
"MIT"
] | null | null | null | search_insert_position.py | ChiragSaini/June-LeetCoding-Challenge | 8e3192c7c4cfbd5cf8718bdb1b041871585a0c69 | [
"MIT"
] | null | null | null | ########################
# * First Solution
########################
class Solution:
def searchInsert(self, nums: List[int], target: int) -> int:
low = 0
high = len(nums)-1
while low < high:
mid = (low+high) // 2
if nums[mid] == target:
return mid
... | 29.23913 | 64 | 0.402974 | 140 | 1,345 | 3.871429 | 0.235714 | 0.077491 | 0.143911 | 0.125461 | 0.785978 | 0.785978 | 0.785978 | 0.785978 | 0.785978 | 0.785978 | 0 | 0.01671 | 0.421561 | 1,345 | 46 | 65 | 29.23913 | 0.679949 | 0.069888 | 0 | 0.914286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0 | 0 | 0.314286 | 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 |
079c58dccf5598b4386d5a1d9775120393e99087 | 30 | py | Python | experta/matchers/__init__.py | Kirito56/ExpertaMadman | e14ab93e6e86ef942be3ee5487425a6f483f0dad | [
"MIT"
] | null | null | null | experta/matchers/__init__.py | Kirito56/ExpertaMadman | e14ab93e6e86ef942be3ee5487425a6f483f0dad | [
"MIT"
] | null | null | null | experta/matchers/__init__.py | Kirito56/ExpertaMadman | e14ab93e6e86ef942be3ee5487425a6f483f0dad | [
"MIT"
] | null | null | null | from .rete import ReteMatcher
| 15 | 29 | 0.833333 | 4 | 30 | 6.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 30 | 1 | 30 | 30 | 0.961538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
07cd8c1d2f18d7e0e61d519f5e313de0291e736a | 25,729 | py | Python | fixture/testhelpersm.py | IrinaSlobodchikova/marker | 72f981134fb025a94348cd2bc829fa8430a01372 | [
"Apache-2.0"
] | null | null | null | fixture/testhelpersm.py | IrinaSlobodchikova/marker | 72f981134fb025a94348cd2bc829fa8430a01372 | [
"Apache-2.0"
] | null | null | null | fixture/testhelpersm.py | IrinaSlobodchikova/marker | 72f981134fb025a94348cd2bc829fa8430a01372 | [
"Apache-2.0"
] | null | null | null | import re
#import datetime
from random import randrange
import time
class testHelperSM:
def __init__(self, app):
self.app = app
# def find_region(self):
# wd = self.app.wd
# wd.find_element_by_xpath("//div[@id='mCSB_2_container']/ul/li[2]/label")
# wd.find_element_by_xpath("//fo... | 47.122711 | 130 | 0.610245 | 3,615 | 25,729 | 4.050899 | 0.078008 | 0.077028 | 0.163343 | 0.186424 | 0.80183 | 0.783393 | 0.747883 | 0.709847 | 0.666007 | 0.65153 | 0 | 0.022762 | 0.212834 | 25,729 | 545 | 131 | 47.209174 | 0.700291 | 0.375257 | 0 | 0.585106 | 0 | 0.042553 | 0.229844 | 0.186067 | 0.003546 | 0 | 0 | 0 | 0 | 1 | 0.113475 | false | 0.010638 | 0.010638 | 0 | 0.163121 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
07ec8ed3603f1cc7b31d1ed635abeed430f55bf6 | 25,009 | py | Python | angr_platforms/tricore/rtl.py | shahinsba/angr-platforms | 86f9ea90c396fb5561d0196a2d1a873e573b0294 | [
"BSD-2-Clause"
] | null | null | null | angr_platforms/tricore/rtl.py | shahinsba/angr-platforms | 86f9ea90c396fb5561d0196a2d1a873e573b0294 | [
"BSD-2-Clause"
] | null | null | null | angr_platforms/tricore/rtl.py | shahinsba/angr-platforms | 86f9ea90c396fb5561d0196a2d1a873e573b0294 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
""" rtl.py
A module for RTL functions.
"""
from pyvex.lifting.util import Type
INT32_MAX_POS = 0x7fffffff #(1 << (32 - 1))-1
UINT32_MAX_POS = 0xffffffff
INT32_MAX_NEG = -0x80000000 #-(1 << (32 - 1))
INT64_MAX_POS = 0x7fffffffffffffff
INT64_MAX_NEG = -0x8000000000000000
SV_MASK = 0x10... | 58.296037 | 438 | 0.453397 | 4,437 | 25,009 | 2.501465 | 0.040568 | 0.242905 | 0.021624 | 0.020182 | 0.794126 | 0.765474 | 0.727002 | 0.702856 | 0.684566 | 0.664474 | 0 | 0.1834 | 0.255228 | 25,009 | 428 | 439 | 58.432243 | 0.412488 | 0.075573 | 0 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005239 | 0 | 0 | 1 | 0.124542 | false | 0 | 0.003663 | 0 | 0.252747 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
58025967fa2de611203a39d31c54a0226281a0e6 | 96 | py | Python | mockfirestore/__init__.py | briggleman/python-mock-firestore | 04720a7695f1826e9a1251dd2fd33324cecbbd43 | [
"MIT"
] | null | null | null | mockfirestore/__init__.py | briggleman/python-mock-firestore | 04720a7695f1826e9a1251dd2fd33324cecbbd43 | [
"MIT"
] | null | null | null | mockfirestore/__init__.py | briggleman/python-mock-firestore | 04720a7695f1826e9a1251dd2fd33324cecbbd43 | [
"MIT"
] | 1 | 2019-10-19T15:29:44.000Z | 2019-10-19T15:29:44.000Z | from .main import DocumentSnapshot, DocumentReference, Query, CollectionReference, MockFirestore | 96 | 96 | 0.875 | 8 | 96 | 10.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072917 | 96 | 1 | 96 | 96 | 0.94382 | 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 |
6af593cd0673cb86dbff9481b451ff7b661ee60d | 5,082 | py | Python | modelproject/modelproject/chxmodelproject.py | NumEconCopenhagen/projects-2019-chx | 84cc06539b113d33464a8974fb4d9636acc3d1ba | [
"MIT"
] | null | null | null | modelproject/modelproject/chxmodelproject.py | NumEconCopenhagen/projects-2019-chx | 84cc06539b113d33464a8974fb4d9636acc3d1ba | [
"MIT"
] | 3 | 2019-04-16T12:06:15.000Z | 2019-05-15T23:53:45.000Z | modelproject/modelproject/chxmodelproject.py | NumEconCopenhagen/projects-2019-chx | 84cc06539b113d33464a8974fb4d9636acc3d1ba | [
"MIT"
] | 2 | 2020-04-02T10:51:19.000Z | 2022-01-17T16:44:18.000Z | import numpy as np
from scipy import optimize
#%matplotlib inline
import matplotlib.pyplot as plt
def keynesian_cross(T, I, G, NX, a, b):
""" Draws the Keynesian cross with the 45-degree line and
the planned total spending as a function of total production.
Args:
T (float): Taxs
a (f... | 32.164557 | 99 | 0.613341 | 758 | 5,082 | 4.022427 | 0.171504 | 0.037389 | 0.018367 | 0.05018 | 0.795015 | 0.768777 | 0.766481 | 0.766481 | 0.751394 | 0.751394 | 0 | 0.018421 | 0.252263 | 5,082 | 158 | 100 | 32.164557 | 0.783947 | 0.423259 | 0 | 0.727273 | 0 | 0 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075758 | false | 0 | 0.045455 | 0 | 0.19697 | 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 |
ed0a681f73db2b21175cc869d5444af5418367f8 | 104 | py | Python | core/messenger/exceptions.py | anthill-arch/platform | ff45dc71b2f3141bbd95baaf4da7ff1d2ac24ca0 | [
"MIT"
] | 1 | 2018-11-30T21:56:14.000Z | 2018-11-30T21:56:14.000Z | core/messenger/exceptions.py | anthill-arch/platform | ff45dc71b2f3141bbd95baaf4da7ff1d2ac24ca0 | [
"MIT"
] | null | null | null | core/messenger/exceptions.py | anthill-arch/platform | ff45dc71b2f3141bbd95baaf4da7ff1d2ac24ca0 | [
"MIT"
] | null | null | null | class NotAuthenticatedError(Exception):
pass
class AuthenticationFailedError(Exception):
pass
| 14.857143 | 43 | 0.788462 | 8 | 104 | 10.25 | 0.625 | 0.317073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 104 | 6 | 44 | 17.333333 | 0.931818 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
ed2c8027b3616dd0462d0630ba3265e706057df8 | 89 | py | Python | final_project/machinetranslation/__init__.py | yl-miao/xzceb-flask_eng_fr | 916316b27fa447396a99314f41c643109ce22a7e | [
"Apache-2.0"
] | null | null | null | final_project/machinetranslation/__init__.py | yl-miao/xzceb-flask_eng_fr | 916316b27fa447396a99314f41c643109ce22a7e | [
"Apache-2.0"
] | null | null | null | final_project/machinetranslation/__init__.py | yl-miao/xzceb-flask_eng_fr | 916316b27fa447396a99314f41c643109ce22a7e | [
"Apache-2.0"
] | null | null | null | from . import translator
#import sys
#sys.path.append("./tests")
from . import unit_tests | 22.25 | 27 | 0.752809 | 13 | 89 | 5.076923 | 0.615385 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11236 | 89 | 4 | 28 | 22.25 | 0.835443 | 0.404494 | 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 |
ed2d8840bdda81ffe9f810a0e4a80dda3ea7871d | 49 | py | Python | protobuf/__main__.py | Axonny/Protobuf | 709e7d77f94e7482021c17fc18c441a1f2af5a1e | [
"MIT"
] | null | null | null | protobuf/__main__.py | Axonny/Protobuf | 709e7d77f94e7482021c17fc18c441a1f2af5a1e | [
"MIT"
] | null | null | null | protobuf/__main__.py | Axonny/Protobuf | 709e7d77f94e7482021c17fc18c441a1f2af5a1e | [
"MIT"
] | null | null | null | from protobuf.generate_class import main
main()
| 12.25 | 40 | 0.816327 | 7 | 49 | 5.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 49 | 3 | 41 | 16.333333 | 0.906977 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
71f7088fe598802b25d2f6b8197de7cf0d4aa2e0 | 103,130 | py | Python | quarkchain/cluster/tests/test_shard_state.py | HAOYUatHZ/pyquarkchain | b2c7c02e4415aa26917c2cbb5e7571c9fef16c5b | [
"MIT"
] | 1 | 2018-10-23T05:48:42.000Z | 2018-10-23T05:48:42.000Z | quarkchain/cluster/tests/test_shard_state.py | skji/pyquarkchain | 090f9981b89b8873daaed36171a9bc9f27b10473 | [
"MIT"
] | null | null | null | quarkchain/cluster/tests/test_shard_state.py | skji/pyquarkchain | 090f9981b89b8873daaed36171a9bc9f27b10473 | [
"MIT"
] | null | null | null | import random
import unittest
from fractions import Fraction
from quarkchain.cluster.shard_state import ShardState
from quarkchain.cluster.tests.test_utils import (
get_test_env,
create_transfer_transaction,
create_contract_creation_transaction,
contract_creation_tx,
)
from quarkchain.config import Con... | 39.377625 | 114 | 0.640638 | 13,026 | 103,130 | 4.742822 | 0.041072 | 0.038459 | 0.035351 | 0.031062 | 0.857575 | 0.828164 | 0.804532 | 0.770201 | 0.739268 | 0.707106 | 0 | 0.041966 | 0.276787 | 103,130 | 2,618 | 115 | 39.392666 | 0.786351 | 0.092825 | 0 | 0.674545 | 0 | 0 | 0.005469 | 0.000818 | 0 | 0 | 0 | 0 | 0.134909 | 1 | 0.02708 | false | 0.000492 | 0.005416 | 0.000492 | 0.033973 | 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 |
9c1075150e252d781f1bf9520197483078e4ba55 | 6,735 | py | Python | DA-ESS-CbResponse/bin/tab_splunktalib/conf_manager/data_input_endpoints.py | hawkdavis/cb-response-splunk-app | 120fe9d9a6a0d283cb7f91ff378ae33ba2f3cea6 | [
"Apache-2.0"
] | null | null | null | DA-ESS-CbResponse/bin/tab_splunktalib/conf_manager/data_input_endpoints.py | hawkdavis/cb-response-splunk-app | 120fe9d9a6a0d283cb7f91ff378ae33ba2f3cea6 | [
"Apache-2.0"
] | null | null | null | DA-ESS-CbResponse/bin/tab_splunktalib/conf_manager/data_input_endpoints.py | hawkdavis/cb-response-splunk-app | 120fe9d9a6a0d283cb7f91ff378ae33ba2f3cea6 | [
"Apache-2.0"
] | null | null | null | import urllib
import tab_splunktalib.common.xml_dom_parser as xdp
from tab_splunktalib.conf_manager.request import content_request
INPUT_ENDPOINT = "%s/servicesNS/%s/%s/data/inputs/%s"
def _input_endpoint_ns(uri, owner, app, input_type):
return INPUT_ENDPOINT % (uri, owner, app, input_type)
def reload_data_inp... | 41.832298 | 78 | 0.605345 | 977 | 6,735 | 4.006141 | 0.116684 | 0.087379 | 0.06975 | 0.073582 | 0.812468 | 0.796117 | 0.781042 | 0.776699 | 0.757793 | 0.757793 | 0 | 0.013558 | 0.277209 | 6,735 | 160 | 79 | 42.09375 | 0.790468 | 0.488938 | 0 | 0.384615 | 0 | 0 | 0.126473 | 0.010831 | 0 | 0 | 0 | 0 | 0.015385 | 1 | 0.107692 | false | 0 | 0.046154 | 0.015385 | 0.184615 | 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 |
9c1583ee64efa2f240f83ba11c5e66f78c6d2ac0 | 16,940 | py | Python | ui_automation_core/helpers/actions/mouse_action.py | Harshavardhanchowdary/python-ui-testing-automation | a624c6b945276c05722be2919d95aa9e5539d0d0 | [
"MIT"
] | null | null | null | ui_automation_core/helpers/actions/mouse_action.py | Harshavardhanchowdary/python-ui-testing-automation | a624c6b945276c05722be2919d95aa9e5539d0d0 | [
"MIT"
] | null | null | null | ui_automation_core/helpers/actions/mouse_action.py | Harshavardhanchowdary/python-ui-testing-automation | a624c6b945276c05722be2919d95aa9e5539d0d0 | [
"MIT"
] | null | null | null | from enum import Enum, auto
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.remote.webelement import WebElement
from ui_automation_core.helpers import js_executor
from ui_automation_core.helpers.web_element.locator import Locator
from ui_automation_core.helpers.web_element.wai... | 49.823529 | 120 | 0.62013 | 2,077 | 16,940 | 4.922484 | 0.081849 | 0.053697 | 0.057512 | 0.05761 | 0.838615 | 0.810935 | 0.790786 | 0.763204 | 0.735622 | 0.688185 | 0 | 0.001287 | 0.311983 | 16,940 | 339 | 121 | 49.970501 | 0.875933 | 0.216942 | 0 | 0.525581 | 0 | 0.004651 | 0.252607 | 0.004978 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04186 | false | 0 | 0.027907 | 0 | 0.130233 | 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 |
9c3e24b42abf1e4f5519bd685437d976c8ec34a9 | 263 | py | Python | reminders/tests.py | BelikovYoav/Beyond-07-team-3 | 407efd58ed5d98fd0862601d792c0415464b45cc | [
"MIT"
] | null | null | null | reminders/tests.py | BelikovYoav/Beyond-07-team-3 | 407efd58ed5d98fd0862601d792c0415464b45cc | [
"MIT"
] | 8 | 2022-02-28T17:05:35.000Z | 2022-03-06T22:53:54.000Z | reminders/tests.py | BelikovYoav/Beyond-07-team-3 | 407efd58ed5d98fd0862601d792c0415464b45cc | [
"MIT"
] | 5 | 2022-02-28T13:45:11.000Z | 2022-03-06T15:26:54.000Z | from .class_tests.create_reminder_tests import * # noqa: F403 F401
from .class_tests.update_reminder_tests import * # noqa: F403 F401
from .class_tests.reminders_tests import * # noqa: F403 F401
from .class_tests.notification_tests import * # noqa: F403 F401
| 52.6 | 67 | 0.787072 | 38 | 263 | 5.184211 | 0.315789 | 0.182741 | 0.284264 | 0.385787 | 0.761421 | 0.64467 | 0.64467 | 0.64467 | 0.456853 | 0 | 0 | 0.105727 | 0.136882 | 263 | 4 | 68 | 65.75 | 0.762115 | 0.239544 | 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 |
92d618be3c0c6a273503ff2d722e169ff3a4ee45 | 30 | py | Python | __init__.py | falgon/pelican_dynamic | 611ed1666fc4014cc1ffee71ec2f18af399348f0 | [
"MIT"
] | null | null | null | __init__.py | falgon/pelican_dynamic | 611ed1666fc4014cc1ffee71ec2f18af399348f0 | [
"MIT"
] | null | null | null | __init__.py | falgon/pelican_dynamic | 611ed1666fc4014cc1ffee71ec2f18af399348f0 | [
"MIT"
] | null | null | null | from .pelican_dynamic import * | 30 | 30 | 0.833333 | 4 | 30 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 30 | 1 | 30 | 30 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
92d70b52ce2c89029477617e1ff993d157cc2e0e | 1,465 | py | Python | tests.py | plumdog/myhome | cc829fc5c76128adffb1049683194f16f18bb3a8 | [
"MIT"
] | null | null | null | tests.py | plumdog/myhome | cc829fc5c76128adffb1049683194f16f18bb3a8 | [
"MIT"
] | null | null | null | tests.py | plumdog/myhome | cc829fc5c76128adffb1049683194f16f18bb3a8 | [
"MIT"
] | null | null | null | from datetime import datetime
from dateutil.tz import tzutc
from backend import get_post
def test_backend_parsing():
content = '''Title: Example title
Subtitle: Example subtitle
Tags: tag1, tag2
Datetime: 2016-02-07 15:25:30+00:00
Live: True
Content:
Content here
'''
post = get_post(content.splitlines(... | 21.865672 | 76 | 0.694881 | 203 | 1,465 | 4.945813 | 0.20197 | 0.119522 | 0.101594 | 0.062749 | 0.790837 | 0.790837 | 0.790837 | 0.744024 | 0.744024 | 0.718127 | 0 | 0.078203 | 0.179522 | 1,465 | 66 | 77 | 22.19697 | 0.757072 | 0 | 0 | 0.727273 | 0 | 0 | 0.343345 | 0 | 0 | 0 | 0 | 0 | 0.318182 | 1 | 0.068182 | false | 0 | 0.068182 | 0 | 0.136364 | 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 |
138f970acbed1792052f8a985bddc53915515141 | 1,369 | py | Python | flask__webservers/cookies/test.py | gil9red/SimplePyScripts | c191ce08fbdeb29377639184579e392057945154 | [
"CC-BY-4.0"
] | 117 | 2015-12-18T07:18:27.000Z | 2022-03-28T00:25:54.000Z | flask__webservers/cookies/test.py | gil9red/SimplePyScripts | c191ce08fbdeb29377639184579e392057945154 | [
"CC-BY-4.0"
] | 8 | 2018-10-03T09:38:46.000Z | 2021-12-13T19:51:09.000Z | flask__webservers/cookies/test.py | gil9red/SimplePyScripts | c191ce08fbdeb29377639184579e392057945154 | [
"CC-BY-4.0"
] | 28 | 2016-08-02T17:43:47.000Z | 2022-03-21T08:31:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
import requests
session = requests.Session()
rs = session.get('http://127.0.0.1:5001/get-cookies')
print(rs, rs.url)
print(rs.headers)
print(rs.cookies)
print(rs.json())
"""
<Response [200]> http://127.0.0.1:5001/get-cookies
{'Content-Type': ... | 26.326923 | 187 | 0.642075 | 236 | 1,369 | 3.707627 | 0.258475 | 0.112 | 0.045714 | 0.054857 | 0.795429 | 0.774857 | 0.730286 | 0.730286 | 0.691429 | 0.691429 | 0 | 0.133495 | 0.097151 | 1,369 | 51 | 188 | 26.843137 | 0.574434 | 0.03141 | 0 | 0.8 | 0 | 0 | 0.213147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0.7 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 6 |
13d50af8fe68859515ba6b641348e627b67c9cb0 | 111 | py | Python | ld35/resources.py | seventhroot/ld35 | 0bdf3269b3b3a7a884d95c6bae0b1776509c2387 | [
"MIT"
] | null | null | null | ld35/resources.py | seventhroot/ld35 | 0bdf3269b3b3a7a884d95c6bae0b1776509c2387 | [
"MIT"
] | null | null | null | ld35/resources.py | seventhroot/ld35 | 0bdf3269b3b3a7a884d95c6bae0b1776509c2387 | [
"MIT"
] | null | null | null | from pkg_resources import resource_filename
def get(filename):
return resource_filename('ld35', filename)
| 22.2 | 46 | 0.801802 | 14 | 111 | 6.142857 | 0.714286 | 0.372093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.126126 | 111 | 4 | 47 | 27.75 | 0.865979 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 6 |
b92a55fb56c74ee48e73cf980c210d96ab7b524f | 29 | py | Python | cogs/memes/__init__.py | TCastus/ASTUSbot | 348af14a2099e0eb2d69b0502d4c562bc88c72c4 | [
"MIT"
] | 4 | 2020-06-28T02:30:55.000Z | 2021-03-22T10:44:26.000Z | cogs/memes/__init__.py | TCastus/ASTUSbot | 348af14a2099e0eb2d69b0502d4c562bc88c72c4 | [
"MIT"
] | 23 | 2020-06-28T01:24:56.000Z | 2021-09-22T14:13:30.000Z | cogs/memes/__init__.py | TCastus/ASTUSbot | 348af14a2099e0eb2d69b0502d4c562bc88c72c4 | [
"MIT"
] | 3 | 2020-11-09T12:55:27.000Z | 2020-12-03T12:00:39.000Z | from .cog_meme import CogMeme | 29 | 29 | 0.862069 | 5 | 29 | 4.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 29 | 1 | 29 | 29 | 0.923077 | 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 |
b9545c85158e61d3c849a79fc50debed37cfe984 | 119 | py | Python | timetoken/__init__.py | mpavelka/python-timetoken | 6248e438934ffc11e8be5c027bd9bef00a22dab6 | [
"BSD-3-Clause"
] | null | null | null | timetoken/__init__.py | mpavelka/python-timetoken | 6248e438934ffc11e8be5c027bd9bef00a22dab6 | [
"BSD-3-Clause"
] | 2 | 2018-08-14T19:04:28.000Z | 2018-08-14T19:05:19.000Z | timetoken/__init__.py | mpavelka/python-timetoken | 6248e438934ffc11e8be5c027bd9bef00a22dab6 | [
"BSD-3-Clause"
] | 1 | 2021-02-08T16:31:53.000Z | 2021-02-08T16:31:53.000Z | from .timetoken import TimeToken, TimeTokenException, TimeTokenExpired, InvalidTimeTokenSignature, TimeTokenParseError
| 59.5 | 118 | 0.890756 | 8 | 119 | 13.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067227 | 119 | 1 | 119 | 119 | 0.954955 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
b961bfa0b9e646960be2e2b6bf315fc51315c507 | 64,034 | py | Python | main/solutions/find_all_anagrams_in_a_string.py | techrabbit58/LeetCode30DaysMay2020Challenge | 3798c5ce104e806372922a73b5ba66b29fc51dbd | [
"Unlicense"
] | 1 | 2020-06-10T10:28:44.000Z | 2020-06-10T10:28:44.000Z | main/solutions/find_all_anagrams_in_a_string.py | techrabbit58/LeetCode30DaysMay2020Challenge | 3798c5ce104e806372922a73b5ba66b29fc51dbd | [
"Unlicense"
] | null | null | null | main/solutions/find_all_anagrams_in_a_string.py | techrabbit58/LeetCode30DaysMay2020Challenge | 3798c5ce104e806372922a73b5ba66b29fc51dbd | [
"Unlicense"
] | null | null | null | """
Week 3, Day 3: Find All Anagrams in a String
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s.
Strings consists of lowercase English letters only and the length of both strings s and p will not be larger than 20,
100.
The order of output does not matter.
E x a m p l e s... | 500.265625 | 20,108 | 0.974654 | 593 | 64,034 | 105.198988 | 0.284992 | 0.000962 | 0.001058 | 0.001683 | 0.013994 | 0.012904 | 0.011814 | 0.010436 | 0.008159 | 0.005611 | 0 | 0.000843 | 0.01785 | 64,034 | 127 | 20,109 | 504.204724 | 0.99108 | 0.025986 | 0 | 0.275862 | 0 | 0 | 0.968434 | 0.966024 | 0 | 1 | 0 | 0 | 0 | 1 | 0.051724 | false | 0 | 0.051724 | 0 | 0.224138 | 0.086207 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b9ef414657b07927b2a38ab2a073a4c6e7dab280 | 39,698 | py | Python | nova/tests/api/openstack/test_server_actions.py | xushiwei/nova | f27956708b0aaeabb06125e6a72b4d61747934b7 | [
"Apache-2.0"
] | 1 | 2021-11-08T10:11:44.000Z | 2021-11-08T10:11:44.000Z | nova/tests/api/openstack/test_server_actions.py | xushiwei/nova | f27956708b0aaeabb06125e6a72b4d61747934b7 | [
"Apache-2.0"
] | null | null | null | nova/tests/api/openstack/test_server_actions.py | xushiwei/nova | f27956708b0aaeabb06125e6a72b4d61747934b7 | [
"Apache-2.0"
] | null | null | null | import base64
import datetime
import json
import stubout
import webob
from nova import context
from nova import utils
from nova import exception
from nova import flags
from nova.api.openstack import create_instance_helper
from nova.compute import vm_states
from nova.compute import instance_types
import nova.db.api
fr... | 34.640489 | 79 | 0.582145 | 4,516 | 39,698 | 4.93822 | 0.069973 | 0.049774 | 0.034528 | 0.046859 | 0.844133 | 0.81799 | 0.794135 | 0.781669 | 0.745841 | 0.71508 | 0 | 0.019334 | 0.283415 | 39,698 | 1,145 | 80 | 34.670742 | 0.764615 | 0.01262 | 0 | 0.675241 | 0 | 0 | 0.20999 | 0.036604 | 0 | 0 | 0 | 0 | 0.096463 | 1 | 0.102894 | false | 0.042872 | 0.018221 | 0.005359 | 0.133976 | 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 |
6a436aee15f54c8a286f878586c1c3ace81544a5 | 156 | py | Python | superlists/lists/views.py | Alfawuhn/test-driven-python | 003f9a95ff8b3dd05f5b857a158781d1631f6d10 | [
"Apache-2.0"
] | 2 | 2015-02-12T04:25:29.000Z | 2015-02-12T04:25:33.000Z | superlists/lists/views.py | Alfawuhn/test-driven-python | 003f9a95ff8b3dd05f5b857a158781d1631f6d10 | [
"Apache-2.0"
] | null | null | null | superlists/lists/views.py | Alfawuhn/test-driven-python | 003f9a95ff8b3dd05f5b857a158781d1631f6d10 | [
"Apache-2.0"
] | null | null | null | from django.http import HttpResponse
# Create your views here.
def home_page(request):
return HttpResponse('<html><title>To-Do lists</title></html>')
| 22.285714 | 66 | 0.737179 | 22 | 156 | 5.181818 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 156 | 6 | 67 | 26 | 0.838235 | 0.147436 | 0 | 0 | 0 | 0 | 0.29771 | 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 |
e00b802934666522532aa2946ffcc2a8f3b2ae1c | 16,929 | py | Python | pybind/nos/v7_1_0/sflow/collector/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/nos/v7_1_0/sflow/collector/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/nos/v7_1_0/sflow/collector/__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... | 81.389423 | 984 | 0.689999 | 2,636 | 16,929 | 4.242792 | 0.081563 | 0.011445 | 0.045064 | 0.012876 | 0.820994 | 0.789342 | 0.768866 | 0.751788 | 0.748212 | 0.745351 | 0 | 0.041286 | 0.121507 | 16,929 | 207 | 985 | 81.782609 | 0.710732 | 0.096757 | 0 | 0.457143 | 0 | 0.085714 | 0.451692 | 0.238898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.057143 | 0 | 0.264286 | 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 |
e02bb86f60c9827be28be736f84f040de29c2e47 | 74 | py | Python | notebooks/solutions/indexing_01.py | eseiver/Pandas-Tutorial-SciPyConf-2018 | b6df2be699ea7ca12e2e6a7c7bde12bdc3565d62 | [
"CC-BY-4.0"
] | 43 | 2018-07-10T18:52:44.000Z | 2021-05-04T21:26:49.000Z | notebooks/solutions/indexing_01.py | piyushpathak03/Pandas-Tutorial-SciPyConf-2018 | fc68001e0a9346d2b9f30a31d0a66d10dde35114 | [
"CC-BY-4.0"
] | 8 | 2018-06-17T21:47:27.000Z | 2018-07-11T22:31:17.000Z | notebooks/solutions/indexing_01.py | piyushpathak03/Pandas-Tutorial-SciPyConf-2018 | fc68001e0a9346d2b9f30a31d0a66d10dde35114 | [
"CC-BY-4.0"
] | 47 | 2018-07-06T15:07:23.000Z | 2020-11-07T07:44:20.000Z | flights[(flights.dep.dt.hour <= 6) |
(flights.dep.dt.hour >= 18)]
| 24.666667 | 36 | 0.567568 | 11 | 74 | 3.818182 | 0.545455 | 0.47619 | 0.571429 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 0.202703 | 74 | 2 | 37 | 37 | 0.661017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0edfb98f8ae5da44620bae4ad4fb6b7054a9c651 | 25 | py | Python | 05. WINDOWS Python Setup/exe 1.py | AnmolTomer/Udemy---Colt-Steele-Modern-Python-Bootcamp-Codebook | 5073fd92e38d95a1b7ecf3b9effb9c9683ce5ceb | [
"MIT"
] | 3 | 2020-06-17T10:05:37.000Z | 2021-12-14T17:24:21.000Z | 05. WINDOWS Python Setup/exe 1.py | AnmolTomer/Udemy---Colt-Steele-Modern-Python-Bootcamp-Codebook | 5073fd92e38d95a1b7ecf3b9effb9c9683ce5ceb | [
"MIT"
] | null | null | null | 05. WINDOWS Python Setup/exe 1.py | AnmolTomer/Udemy---Colt-Steele-Modern-Python-Bootcamp-Codebook | 5073fd92e38d95a1b7ecf3b9effb9c9683ce5ceb | [
"MIT"
] | 4 | 2019-02-28T17:15:46.000Z | 2020-04-26T05:56:57.000Z | print("Cosmic Commander") | 25 | 25 | 0.8 | 3 | 25 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 25 | 1 | 25 | 25 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
1614955d94b7fae0ed23df30bbf8c52749e926a2 | 139 | py | Python | amqpstorm/tests/__init__.py | mikemrm/amqpstorm | 2a4ec4d72a81498e0774deda338f6aaf16570881 | [
"MIT"
] | null | null | null | amqpstorm/tests/__init__.py | mikemrm/amqpstorm | 2a4ec4d72a81498e0774deda338f6aaf16570881 | [
"MIT"
] | null | null | null | amqpstorm/tests/__init__.py | mikemrm/amqpstorm | 2a4ec4d72a81498e0774deda338f6aaf16570881 | [
"MIT"
] | null | null | null | HOST = '127.0.0.1'
USERNAME = 'guest'
PASSWORD = 'guest'
URI = 'amqp://guest:guest@127.0.0.1:5672/%2F'
HTTP_URL = 'http://127.0.0.1:15672'
| 23.166667 | 45 | 0.633094 | 27 | 139 | 3.222222 | 0.518519 | 0.137931 | 0.172414 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225806 | 0.107914 | 139 | 5 | 46 | 27.8 | 0.475806 | 0 | 0 | 0 | 0 | 0 | 0.561151 | 0.266187 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
1619933d1891b8ee8970bf6c27f0b566306db31e | 69 | py | Python | cspark/EventTypeRouter.py | Matvey-Kuk/spark-python | 69b8d8c708fd032077dcccb01a8466705b33c4a7 | [
"MIT"
] | null | null | null | cspark/EventTypeRouter.py | Matvey-Kuk/spark-python | 69b8d8c708fd032077dcccb01a8466705b33c4a7 | [
"MIT"
] | 102 | 2017-01-30T05:50:10.000Z | 2022-03-07T18:56:23.000Z | cspark/EventTypeRouter.py | Matvey-Kuk/cspark-python | 69b8d8c708fd032077dcccb01a8466705b33c4a7 | [
"MIT"
] | null | null | null | from .Router import Router
class EventTypeRouter(Router):
pass
| 11.5 | 30 | 0.753623 | 8 | 69 | 6.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188406 | 69 | 5 | 31 | 13.8 | 0.928571 | 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 |
165d499eb79bd13ee46ac0f3cbfaa8f76e0dd5d0 | 25 | py | Python | game/blenderpanda/__init__.py | Kupoman/fafnir-demo | 1e285296b49f00fa99672a242c8bfc4afd696ff4 | [
"MIT"
] | 1 | 2017-05-29T23:03:13.000Z | 2017-05-29T23:03:13.000Z | game/blenderpanda/__init__.py | Kupoman/fafnir-demo | 1e285296b49f00fa99672a242c8bfc4afd696ff4 | [
"MIT"
] | null | null | null | game/blenderpanda/__init__.py | Kupoman/fafnir-demo | 1e285296b49f00fa99672a242c8bfc4afd696ff4 | [
"MIT"
] | null | null | null | from .bpbase import init
| 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 |
1682ffb1dea352c7f0a2a0679fdd5833491998b9 | 11,227 | py | Python | tests/test_api/test_pep8.py | Joshua-Enrico/AirBnB_clone_v4 | c603b7907826b60584597b258f42175d7c6bdd1a | [
"MIT"
] | null | null | null | tests/test_api/test_pep8.py | Joshua-Enrico/AirBnB_clone_v4 | c603b7907826b60584597b258f42175d7c6bdd1a | [
"MIT"
] | null | null | null | tests/test_api/test_pep8.py | Joshua-Enrico/AirBnB_clone_v4 | c603b7907826b60584597b258f42175d7c6bdd1a | [
"MIT"
] | 1 | 2021-10-04T19:29:47.000Z | 2021-10-04T19:29:47.000Z | #!/usr/bin/python3
"""
Contains the TestStateDocs classes
"""
from datetime import datetime
import inspect
import models
import os
from models import state
from models.base_model import BaseModel
import pep8
import unittest
from api.v1 import app
from api.v1.views import states as test_state
from api.v1.views import a... | 45.088353 | 77 | 0.610849 | 1,362 | 11,227 | 4.80837 | 0.069016 | 0.032982 | 0.082455 | 0.038479 | 0.87647 | 0.848679 | 0.82608 | 0.82608 | 0.81982 | 0.783173 | 0 | 0.016867 | 0.281821 | 11,227 | 248 | 78 | 45.270161 | 0.795362 | 0.127104 | 0 | 0.52514 | 0 | 0 | 0.17251 | 0.023029 | 0 | 0 | 0 | 0 | 0.256983 | 1 | 0.162011 | false | 0 | 0.094972 | 0 | 0.26257 | 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 |
16878f631cd695277870d207fede00a5db727143 | 27 | py | Python | tests/sample_CASE.py | thomastan/pyexe | 944a5e09ed2db4b9b7633bb1de77ad3eb777d958 | [
"Apache-2.0"
] | 47 | 2018-04-13T02:41:48.000Z | 2022-02-07T15:55:33.000Z | tests/sample_CASE.py | thomastan/pyexe | 944a5e09ed2db4b9b7633bb1de77ad3eb777d958 | [
"Apache-2.0"
] | 17 | 2018-04-09T03:12:43.000Z | 2021-09-07T06:46:59.000Z | tests/sample_CASE.py | thomastan/pyexe | 944a5e09ed2db4b9b7633bb1de77ad3eb777d958 | [
"Apache-2.0"
] | 11 | 2018-05-31T05:49:52.000Z | 2021-12-17T06:20:12.000Z | print('mixed CASE module')
| 13.5 | 26 | 0.740741 | 4 | 27 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 27 | 1 | 27 | 27 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
16921897190e63fed79fd3e90bd19da13692370c | 145 | py | Python | wagtail/wagtailcore/signals.py | balkantechnologies/BalkanCMS_core | 68625199028fc96abb175e410a4a7a92c02cb261 | [
"BSD-3-Clause"
] | 1 | 2021-09-21T00:06:52.000Z | 2021-09-21T00:06:52.000Z | wagtail/wagtailcore/signals.py | balkantechnologies/BalkanCMS_core | 68625199028fc96abb175e410a4a7a92c02cb261 | [
"BSD-3-Clause"
] | 1 | 2021-02-24T08:25:30.000Z | 2021-02-24T08:25:30.000Z | wagtail/wagtailcore/signals.py | balkantechnologies/BalkanCMS_core | 68625199028fc96abb175e410a4a7a92c02cb261 | [
"BSD-3-Clause"
] | 1 | 2020-11-24T10:21:24.000Z | 2020-11-24T10:21:24.000Z | from django.dispatch import Signal
page_published = Signal(providing_args=['instance'])
page_unpublished = Signal(providing_args=['instance'])
| 24.166667 | 54 | 0.8 | 17 | 145 | 6.588235 | 0.647059 | 0.267857 | 0.339286 | 0.482143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082759 | 145 | 5 | 55 | 29 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.110345 | 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 |
169be9adaaf883f774b866e1d842ce3657d29c32 | 29,902 | py | Python | pypower/case118.py | Bengt/PYPOWER | 78a0f8d4765d147f8237e9a905ef871508ecfee7 | [
"BSD-3-Clause"
] | 221 | 2015-01-03T23:18:11.000Z | 2022-03-27T10:21:40.000Z | pypower/case118.py | Bengt/PYPOWER | 78a0f8d4765d147f8237e9a905ef871508ecfee7 | [
"BSD-3-Clause"
] | 33 | 2015-05-12T08:48:02.000Z | 2021-11-23T10:35:21.000Z | pypower/case118.py | Bengt/PYPOWER | 78a0f8d4765d147f8237e9a905ef871508ecfee7 | [
"BSD-3-Clause"
] | 114 | 2015-02-02T15:07:38.000Z | 2022-03-22T17:01:55.000Z | # Copyright (c) 1996-2015 PSERC. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
"""Power flow data for IEEE 118 bus test case.
"""
from numpy import array
def case118():
"""Power flow data for IEEE 118 bus test case.
Please see L{cas... | 63.621277 | 92 | 0.430239 | 6,846 | 29,902 | 1.878469 | 0.116857 | 0.216485 | 0.221151 | 0.211509 | 0.562519 | 0.515241 | 0.462364 | 0.399067 | 0.343857 | 0.208087 | 0 | 0.575263 | 0.30727 | 29,902 | 469 | 93 | 63.75693 | 0.045573 | 0.041502 | 0 | 0.098824 | 0 | 0 | 0.00119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002353 | false | 0 | 0.002353 | 0 | 0.007059 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
16aeb1434c61ec5f57f1e2b5b5461f487cd35aa7 | 119 | py | Python | src/flowket/deepar/ordering/raster.py | vigsterkr/FlowKet | 0d8f301b5f51a1bab83021f10f65cfb5f2751079 | [
"MIT"
] | 21 | 2019-11-19T13:59:13.000Z | 2021-12-03T10:26:30.000Z | src/flowket/deepar/ordering/raster.py | HUJI-Deep/PyKet | 61238afd3fe1488d35c57d280675f544c559bd01 | [
"MIT"
] | 10 | 2019-11-15T12:07:28.000Z | 2020-11-07T18:12:18.000Z | src/flowket/deepar/ordering/raster.py | HUJI-Deep/PyKet | 61238afd3fe1488d35c57d280675f544c559bd01 | [
"MIT"
] | 11 | 2019-12-09T22:51:17.000Z | 2021-11-29T22:05:41.000Z | import itertools
def raster(input_size):
return itertools.product(*[range(dim_size) for dim_size in input_size])
| 19.833333 | 75 | 0.773109 | 18 | 119 | 4.888889 | 0.666667 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134454 | 119 | 5 | 76 | 23.8 | 0.854369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 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 | 1 | 1 | 0 | 0 | 0 | 6 |
bc4a387faf3f2a1bff14de0ff7a001c24ef769b7 | 29 | py | Python | kats/graphics/__init__.py | menefotto/Kats | 3fc8a3f819502d45736734eabb3601f42a6b7759 | [
"MIT"
] | 1 | 2021-06-22T03:40:33.000Z | 2021-06-22T03:40:33.000Z | kats/graphics/__init__.py | menefotto/Kats | 3fc8a3f819502d45736734eabb3601f42a6b7759 | [
"MIT"
] | null | null | null | kats/graphics/__init__.py | menefotto/Kats | 3fc8a3f819502d45736734eabb3601f42a6b7759 | [
"MIT"
] | null | null | null | from . import plots # noqa
| 14.5 | 28 | 0.655172 | 4 | 29 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275862 | 29 | 1 | 29 | 29 | 0.904762 | 0.137931 | 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 |
bc8a6e32b83baae0018d70f7cf794bd1abd1040b | 24 | py | Python | src/puLearning/__init__.py | hhelm10/pu-learning | eea5097192dbf384832b857d3e062ab2482fd1ae | [
"BSD-3-Clause"
] | null | null | null | src/puLearning/__init__.py | hhelm10/pu-learning | eea5097192dbf384832b857d3e062ab2482fd1ae | [
"BSD-3-Clause"
] | null | null | null | src/puLearning/__init__.py | hhelm10/pu-learning | eea5097192dbf384832b857d3e062ab2482fd1ae | [
"BSD-3-Clause"
] | null | null | null | from .puAdapter import * | 24 | 24 | 0.791667 | 3 | 24 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
bc8abc09da8a75b66d974b4d2a9fe4e5ad26321f | 110 | py | Python | katas/kyu_7/sum_up_the_random_string.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | katas/kyu_7/sum_up_the_random_string.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | katas/kyu_7/sum_up_the_random_string.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | from re import findall
def sum_from_string(string):
return sum(int(a) for a in findall(r'\d+', string))
| 18.333333 | 55 | 0.7 | 20 | 110 | 3.75 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172727 | 110 | 5 | 56 | 22 | 0.824176 | 0 | 0 | 0 | 0 | 0 | 0.027273 | 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 |
bc98ba8ecc426b87020638640c47d9c4415cf7c1 | 116 | py | Python | models/__init__.py | RyanWangZf/NRE-IF | 738126d3ea06b396c67417e684400f510405f319 | [
"MIT"
] | null | null | null | models/__init__.py | RyanWangZf/NRE-IF | 738126d3ea06b396c67417e684400f510405f319 | [
"MIT"
] | null | null | null | models/__init__.py | RyanWangZf/NRE-IF | 738126d3ea06b396c67417e684400f510405f319 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .PCNN_ONE import PCNN_ONE
from .PCNN_ATT import PCNN_ATT
from .PCNN_IF import PCNN_IF
| 19.333333 | 30 | 0.741379 | 21 | 116 | 3.809524 | 0.428571 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.155172 | 116 | 5 | 31 | 23.2 | 0.806122 | 0.181034 | 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 |
bcce8112a89725621d6bb584a8fded873d43b10f | 29,448 | py | Python | Outputs_win_app.py | stfbnc/mtsa_py | 0dd14f0e51e3251f10b3da781867fbc7173608eb | [
"MIT"
] | null | null | null | Outputs_win_app.py | stfbnc/mtsa_py | 0dd14f0e51e3251f10b3da781867fbc7173608eb | [
"MIT"
] | null | null | null | Outputs_win_app.py | stfbnc/mtsa_py | 0dd14f0e51e3251f10b3da781867fbc7173608eb | [
"MIT"
] | null | null | null | import sys
if sys.version_info[0] == 2:
import Tkinter as tk
from tkFileDialog import askdirectory
else:
import tkinter as tk
from tkinter.filedialog import askdirectory
import numpy as np
import matplotlib
matplotlib.use("TkAgg")
import matplotlib.pyplot as plt
from matplotlib.figure import Figure
from... | 46.0125 | 124 | 0.51973 | 4,160 | 29,448 | 3.579327 | 0.062019 | 0.058026 | 0.036266 | 0.027401 | 0.868167 | 0.845937 | 0.813633 | 0.776629 | 0.760645 | 0.712962 | 0 | 0.04754 | 0.224973 | 29,448 | 639 | 125 | 46.084507 | 0.604872 | 0.003498 | 0 | 0.65146 | 0 | 0 | 0.081634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04562 | false | 0 | 0.020073 | 0 | 0.065693 | 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 |
4c18328fc80b46e684fdcbe227c90aa8fd0e06bd | 29,016 | py | Python | openmdao/core/tests/test_des_vars_responses.py | Subraiz/OpenMDAO | ba247746e76fc3a46b768d0f09955ef58ee71ae4 | [
"Apache-2.0"
] | null | null | null | openmdao/core/tests/test_des_vars_responses.py | Subraiz/OpenMDAO | ba247746e76fc3a46b768d0f09955ef58ee71ae4 | [
"Apache-2.0"
] | null | null | null | openmdao/core/tests/test_des_vars_responses.py | Subraiz/OpenMDAO | ba247746e76fc3a46b768d0f09955ef58ee71ae4 | [
"Apache-2.0"
] | null | null | null | """ Unit tests for the design_variable and response interface to system."""
import unittest
import numpy as np
from openmdao.api import Problem, NonlinearBlockGS, Group, IndepVarComp, ExecComp, ScipyKrylov, \
IndepVarComp, ScipyOptimizeDriver
from openmdao.utils.assert_utils import assert_rel_error
from openmdao... | 37.879896 | 131 | 0.57613 | 3,223 | 29,016 | 5.05802 | 0.076637 | 0.092749 | 0.061097 | 0.052141 | 0.819961 | 0.798736 | 0.785732 | 0.768188 | 0.741811 | 0.730953 | 0 | 0.034227 | 0.304211 | 29,016 | 765 | 132 | 37.929412 | 0.773243 | 0.008719 | 0 | 0.653772 | 0 | 0.001934 | 0.146032 | 0 | 0 | 0 | 0 | 0 | 0.208897 | 1 | 0.061896 | false | 0 | 0.015474 | 0 | 0.088975 | 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 |
4c454ec1e13a378a70f673408fb268f085c92162 | 3,682 | py | Python | magnolia/python/utils/training.py | rashley-iqt/Magnolia | 123d0fdbe81eb7bb6d76cbe9db6f793fa3105e8a | [
"Apache-2.0"
] | 51 | 2016-12-16T04:00:07.000Z | 2020-11-30T13:26:51.000Z | magnolia/python/utils/training.py | rashley-iqt/Magnolia | 123d0fdbe81eb7bb6d76cbe9db6f793fa3105e8a | [
"Apache-2.0"
] | 30 | 2016-12-22T22:26:16.000Z | 2017-12-11T17:28:21.000Z | magnolia/python/utils/training.py | Lab41/Magnolia | 123d0fdbe81eb7bb6d76cbe9db6f793fa3105e8a | [
"Apache-2.0"
] | 35 | 2016-12-16T04:00:09.000Z | 2021-03-27T03:04:44.000Z | import numpy as np
def preprocess_l41_regression_batch(spec_batch, mask_batch=None, specs_batch=None):
# should be dimensions of (batch size, time frame, frequency)
spec_batch = spec_batch.transpose(0, 2, 1)
scaled_spec_batch = scale_input_spectrogram_for_l41_model(spec_batch)
if mask_batch is not No... | 42.813953 | 86 | 0.730038 | 560 | 3,682 | 4.489286 | 0.085714 | 0.139618 | 0.072395 | 0.095465 | 0.920446 | 0.885044 | 0.877884 | 0.877884 | 0.848846 | 0.803103 | 0 | 0.023287 | 0.195274 | 3,682 | 85 | 87 | 43.317647 | 0.825177 | 0.274579 | 0 | 0.511111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.022222 | 0.022222 | 0.4 | 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 |
4c6b0321fcebb0ede9c8cb42b6421abfd8b63fbe | 7,188 | py | Python | main_Experiement_SensitivityAnalysis.py | MaximilianJanetschek/Urban_Intermodal_Transportation | 632caf668636448dc9290d54cf1c7b527c68a957 | [
"MIT"
] | null | null | null | main_Experiement_SensitivityAnalysis.py | MaximilianJanetschek/Urban_Intermodal_Transportation | 632caf668636448dc9290d54cf1c7b527c68a957 | [
"MIT"
] | null | null | null | main_Experiement_SensitivityAnalysis.py | MaximilianJanetschek/Urban_Intermodal_Transportation | 632caf668636448dc9290d54cf1c7b527c68a957 | [
"MIT"
] | null | null | null | from Utilities.Data_Retrieval import *
from Utilities.Requests import *
from Utilities.Parameters import *
from Utilities.Solution_Procedure import *
run_CS = False
run_TS = True
run_PS = False
# beta experiment on Physical sensitive beta setup:
if run_CS:
CSbetaset =[[1,2,3,12,2.5],
[1,2,3,14,2.5... | 44.925 | 137 | 0.522398 | 825 | 7,188 | 4.455758 | 0.178182 | 0.01197 | 0.017138 | 0.019587 | 0.858814 | 0.839227 | 0.83025 | 0.817193 | 0.805767 | 0.76741 | 0 | 0.07559 | 0.357679 | 7,188 | 159 | 138 | 45.207547 | 0.720598 | 0.100723 | 0 | 0.554545 | 0 | 0 | 0.071094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.009091 | 0.036364 | 0 | 0.036364 | 0.109091 | 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 |
4c730fa34525821f2f1eec318b7c26f55243b178 | 25 | py | Python | calibration/__init__.py | najafian-lab/em-calibration | 81693ddbf87e642cd66a0b375e25ca378c2752a8 | [
"MIT"
] | 1 | 2021-07-05T12:48:39.000Z | 2021-07-05T12:48:39.000Z | calibration/__init__.py | najafian-lab/em-calibration | 81693ddbf87e642cd66a0b375e25ca378c2752a8 | [
"MIT"
] | null | null | null | calibration/__init__.py | najafian-lab/em-calibration | 81693ddbf87e642cd66a0b375e25ca378c2752a8 | [
"MIT"
] | null | null | null | from calibration import * | 25 | 25 | 0.84 | 3 | 25 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 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 |
910232a890e7bcb434bd5f904977f42ab169fbca | 15,011 | py | Python | sdk/python/pulumi_azure/network/network_security_group.py | adnang/pulumi-azure | 32360d2f1e41e27d7fdd6522cb26d65e531f279f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/network/network_security_group.py | adnang/pulumi-azure | 32360d2f1e41e27d7fdd6522cb26d65e531f279f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/network/network_security_group.py | adnang/pulumi-azure | 32360d2f1e41e27d7fdd6522cb26d65e531f279f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from .. import utilities, tables
class Networ... | 77.376289 | 268 | 0.699021 | 1,986 | 15,011 | 5.128399 | 0.123364 | 0.045361 | 0.03299 | 0.037703 | 0.762592 | 0.753265 | 0.746588 | 0.74541 | 0.722337 | 0.7189 | 0 | 0.006188 | 0.21411 | 15,011 | 193 | 269 | 77.777202 | 0.857167 | 0.572314 | 0 | 0.036364 | 1 | 0 | 0.162017 | 0.027182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072727 | false | 0.018182 | 0.109091 | 0.036364 | 0.345455 | 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 |
e68e5d20601732f9ca0628ab99b2fd41f1f6668a | 124 | py | Python | dense_coattn/util/__init__.py | yuzhiw/Dense-CoAttention-Network | 4bd82682b30a471edf19f6d88a87ef4399e7c4ba | [
"MIT"
] | 1 | 2018-11-17T13:17:42.000Z | 2018-11-17T13:17:42.000Z | dense_coattn/util/__init__.py | yuzhiw/Dense-CoAttention-Network | 4bd82682b30a471edf19f6d88a87ef4399e7c4ba | [
"MIT"
] | null | null | null | dense_coattn/util/__init__.py | yuzhiw/Dense-CoAttention-Network | 4bd82682b30a471edf19f6d88a87ef4399e7c4ba | [
"MIT"
] | null | null | null |
from .utils import Initializer, Drawer, Saver, Timer, Meter
__all__ = ["Initializer", "Drawer", "Saver", "Timer", "Meter"] | 31 | 62 | 0.693548 | 14 | 124 | 5.857143 | 0.642857 | 0.414634 | 0.536585 | 0.658537 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 124 | 4 | 62 | 31 | 0.759259 | 0 | 0 | 0 | 0 | 0 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
e6932792f25709082e1721d9dcdabeb173136243 | 31 | py | Python | onyx/database/__init__.py | mudkipdev/onyx | 333d23c1f83bb2f69a9f570ce874b9d05dc2edda | [
"MIT"
] | null | null | null | onyx/database/__init__.py | mudkipdev/onyx | 333d23c1f83bb2f69a9f570ce874b9d05dc2edda | [
"MIT"
] | null | null | null | onyx/database/__init__.py | mudkipdev/onyx | 333d23c1f83bb2f69a9f570ce874b9d05dc2edda | [
"MIT"
] | null | null | null | from .guild import CustomGuild
| 15.5 | 30 | 0.83871 | 4 | 31 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 1 | 31 | 31 | 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 |
e6a72934634176da3823d49bfb079b1a3e7f34e1 | 93 | py | Python | app/genetron/__init__.py | cangfengzhe/flask_genetron | 792a22bc6550c8545e6345c43d7a2c9910ea84be | [
"MIT"
] | 1 | 2016-12-12T10:51:15.000Z | 2016-12-12T10:51:15.000Z | app/genetron/__init__.py | cangfengzhe/flask_genetron | 792a22bc6550c8545e6345c43d7a2c9910ea84be | [
"MIT"
] | null | null | null | app/genetron/__init__.py | cangfengzhe/flask_genetron | 792a22bc6550c8545e6345c43d7a2c9910ea84be | [
"MIT"
] | null | null | null | from flask import Blueprint
genetron = Blueprint('genetron', __name__)
from . import views
| 15.5 | 42 | 0.774194 | 11 | 93 | 6.181818 | 0.636364 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150538 | 93 | 5 | 43 | 18.6 | 0.860759 | 0 | 0 | 0 | 0 | 0 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
e6aac7e4224b78b1796cad164e789d09b47835a3 | 5,028 | py | Python | tests/gamestonk_terminal/stocks/options/test_tradier_view.py | minhhoang1023/GamestonkTerminal | 195dc19b491052df080178c0cc6a9d535a91a704 | [
"MIT"
] | null | null | null | tests/gamestonk_terminal/stocks/options/test_tradier_view.py | minhhoang1023/GamestonkTerminal | 195dc19b491052df080178c0cc6a9d535a91a704 | [
"MIT"
] | null | null | null | tests/gamestonk_terminal/stocks/options/test_tradier_view.py | minhhoang1023/GamestonkTerminal | 195dc19b491052df080178c0cc6a9d535a91a704 | [
"MIT"
] | null | null | null | # IMPORTATION THIRDPARTY
import pytest
# IMPORTATION INTERNAL
from gamestonk_terminal.stocks.options import tradier_view
@pytest.fixture(scope="module")
def vcr_config():
return {
"filter_headers": [("Authorization", "MOCK_TOKEN")],
}
@pytest.mark.vcr(record_mode="none")
def test_red_highlight(reco... | 26.324607 | 86 | 0.654733 | 671 | 5,028 | 4.645306 | 0.14307 | 0.081168 | 0.026949 | 0.096246 | 0.863009 | 0.784729 | 0.758422 | 0.735964 | 0.725056 | 0.718961 | 0 | 0.028456 | 0.210223 | 5,028 | 190 | 87 | 26.463158 | 0.756485 | 0.04992 | 0 | 0.631206 | 0 | 0 | 0.206092 | 0.12521 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.014184 | 0.007092 | 0.085106 | 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 |
e6d6f73ffc83062984873b9396f8302281a543a8 | 113,559 | py | Python | onnxoptimizer/test/optimizer_test.py | 462630221/optimizer | 8f5a6e94ae841a0ac7431d339e3c290884ab02f5 | [
"Apache-2.0"
] | 1 | 2021-02-20T07:33:01.000Z | 2021-02-20T07:33:01.000Z | onnxoptimizer/test/optimizer_test.py | 462630221/optimizer | 8f5a6e94ae841a0ac7431d339e3c290884ab02f5 | [
"Apache-2.0"
] | null | null | null | onnxoptimizer/test/optimizer_test.py | 462630221/optimizer | 8f5a6e94ae841a0ac7431d339e3c290884ab02f5 | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from collections import OrderedDict
from typing import Sequence, Text, Any, Tuple, List, Callable, Optional, Dict, Union
import io
... | 49.138468 | 161 | 0.552074 | 13,398 | 113,559 | 4.432975 | 0.041947 | 0.102706 | 0.085667 | 0.100769 | 0.834442 | 0.801626 | 0.773795 | 0.748118 | 0.708349 | 0.67146 | 0 | 0.027416 | 0.306519 | 113,559 | 2,310 | 162 | 49.15974 | 0.726772 | 0.054985 | 0 | 0.618904 | 0 | 0 | 0.055421 | 0.013348 | 0 | 0 | 0 | 0.000433 | 0.14178 | 1 | 0.05631 | false | 0.00553 | 0.016088 | 0.000503 | 0.082453 | 0.004022 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.