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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f30d8c8e6d43d445337f8cecd9b94c9435753996 | 448 | py | Python | tests/test_environment.py | FabienZa/tuxml | 35fdd8c2d2b5cd3d46bed18619c8f840842f2614 | [
"Apache-2.0"
] | 3 | 2020-09-09T14:19:21.000Z | 2020-09-30T13:53:53.000Z | tests/test_environment.py | FabienZa/tuxml | 35fdd8c2d2b5cd3d46bed18619c8f840842f2614 | [
"Apache-2.0"
] | 42 | 2020-06-30T16:53:36.000Z | 2022-02-20T14:28:53.000Z | tests/test_environment.py | FabienZa/tuxml | 35fdd8c2d2b5cd3d46bed18619c8f840842f2614 | [
"Apache-2.0"
] | 2 | 2020-09-09T15:46:17.000Z | 2021-02-10T15:24:12.000Z | from pytest import raises
from unittest import TestCase #Usefull when testing classes
import compilation.environment as environment
def test_get_environment_details():
# We test if we have any throw, which should never happen
environment.get_environment_details()
def test_print_environment_details():
... | 29.866667 | 80 | 0.801339 | 58 | 448 | 5.982759 | 0.586207 | 0.259366 | 0.181556 | 0.184438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145089 | 448 | 14 | 81 | 32 | 0.906005 | 0.287946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | true | 0 | 0.428571 | 0 | 0.714286 | 0.285714 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
b823809bb940f7303f9b0233d58601b237b251da | 149 | py | Python | src/gt4sd/frameworks/enzeptional/__init__.py | hhhsu0825/gt4sd-core | 4a1fe9da58d2f33bba2fba64604427e037ad7a46 | [
"MIT"
] | 1 | 2022-02-22T02:06:10.000Z | 2022-02-22T02:06:10.000Z | src/gt4sd/frameworks/enzeptional/__init__.py | hhhsu0825/gt4sd-core | 4a1fe9da58d2f33bba2fba64604427e037ad7a46 | [
"MIT"
] | 12 | 2022-02-21T12:59:24.000Z | 2022-02-22T12:25:49.000Z | src/gt4sd/frameworks/enzeptional/__init__.py | hhhsu0825/gt4sd-core | 4a1fe9da58d2f33bba2fba64604427e037ad7a46 | [
"MIT"
] | null | null | null | """enzeptional - ENZymE OPTImizatiON for biocatALysis.
Module for enzyme optimization.
"""
from .optimization import EnzymeOptimizer # noqa: F401
| 21.285714 | 55 | 0.778523 | 15 | 149 | 7.733333 | 0.733333 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0.14094 | 149 | 6 | 56 | 24.833333 | 0.882813 | 0.644295 | 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 |
b88c6b9a3e86b07134f862458c7720b015c0a171 | 4,610 | py | Python | tests/stepsizes_test.py | plopd/plop-msc-thesis | c61fcf53c670b288ac8593790f9cc3f3abd50989 | [
"MIT"
] | 3 | 2022-01-14T19:56:30.000Z | 2022-02-04T21:46:29.000Z | tests/stepsizes_test.py | plopd/plop-msc-thesis | c61fcf53c670b288ac8593790f9cc3f3abd50989 | [
"MIT"
] | 3 | 2021-03-31T20:23:09.000Z | 2021-12-13T20:51:15.000Z | tests/stepsizes_test.py | plopd/plop-msc-thesis | c61fcf53c670b288ac8593790f9cc3f3abd50989 | [
"MIT"
] | null | null | null | import numpy as np
from agents.agents import get_agent
def test_td_step_size():
agent_info = {"step_size": 0.5, "representations": "TA", "num_states": 5}
td = get_agent("TD")()
td.agent_init(agent_info)
assert td.step_size == agent_info.get("step_size")
def test_td_step_size_tile_coding():
ag... | 24.263158 | 87 | 0.57679 | 633 | 4,610 | 3.886256 | 0.115324 | 0.179268 | 0.15122 | 0.082927 | 0.899594 | 0.857724 | 0.852033 | 0.829268 | 0.827236 | 0.762195 | 0 | 0.026867 | 0.265293 | 4,610 | 189 | 88 | 24.391534 | 0.699439 | 0 | 0 | 0.661972 | 0 | 0 | 0.20564 | 0 | 0 | 0 | 0 | 0 | 0.049296 | 1 | 0.06338 | false | 0 | 0.014085 | 0 | 0.077465 | 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 |
b8bbd448b56b5d7abcdb56f80d170c1bffce7ad8 | 52,463 | py | Python | pybind/slxos/v17r_1_01a/bridge_domain_state/bridge_domain_list/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v17r_1_01a/bridge_domain_state/bridge_domain_list/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v17r_1_01a/bridge_domain_state/bridge_domain_list/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | 1 | 2021-11-05T22:15:42.000Z | 2021-11-05T22:15:42.000Z |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | 69.121212 | 796 | 0.748718 | 7,307 | 52,463 | 5.08225 | 0.029561 | 0.042546 | 0.054287 | 0.034899 | 0.890241 | 0.871822 | 0.850522 | 0.841717 | 0.835497 | 0.827391 | 0 | 0.010833 | 0.123725 | 52,463 | 758 | 797 | 69.212401 | 0.796963 | 0.183329 | 0 | 0.503632 | 0 | 0.041162 | 0.368318 | 0.202367 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130751 | false | 0 | 0.021792 | 0 | 0.261501 | 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 |
b242b7cf995a83c2656416d12e372d93e8e3461b | 2,970 | py | Python | tutorial/resource.py | queryfish/jobcrawler | f0cf70e6ca909648e5a0af37dcc5fb3a548a4cfa | [
"MIT"
] | null | null | null | tutorial/resource.py | queryfish/jobcrawler | f0cf70e6ca909648e5a0af37dcc5fb3a548a4cfa | [
"MIT"
] | null | null | null | tutorial/resource.py | queryfish/jobcrawler | f0cf70e6ca909648e5a0af37dcc5fb3a548a4cfa | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
USER_AGENT_LIST = [ \
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/22.0.1207.1 Safari/537.1", \
"Mozilla/5.0 (X11; CrOS i686 2268.111.0) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11", \
"Mozilla/5.0 (Windows NT 6.1; WO... | 55 | 125 | 0.643434 | 557 | 2,970 | 3.420108 | 0.2693 | 0.08399 | 0.094488 | 0.199475 | 0.706562 | 0.705512 | 0.693438 | 0.670866 | 0.611024 | 0.546457 | 0 | 0.318996 | 0.154545 | 2,970 | 53 | 126 | 56.037736 | 0.439665 | 0.081481 | 0 | 0 | 0 | 0.512821 | 0.852356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b24eda160b2f1440087de366d41fa1bc28771cbb | 796 | py | Python | python/ngsi_v2/test/test_query_pattern.py | orchestracities/sdk | 9dd1e618d6c013ab916f3880df84c7882f6beec6 | [
"Apache-2.0"
] | 2 | 2019-12-22T01:01:34.000Z | 2021-07-03T20:30:03.000Z | python/ngsi_v2/test/test_query_pattern.py | orchestracities/sdk | 9dd1e618d6c013ab916f3880df84c7882f6beec6 | [
"Apache-2.0"
] | 2 | 2019-06-06T05:45:45.000Z | 2019-06-06T09:03:10.000Z | python/ngsi_v2/test/test_query_pattern.py | orchestracities/sdk | 9dd1e618d6c013ab916f3880df84c7882f6beec6 | [
"Apache-2.0"
] | 2 | 2021-07-03T20:30:06.000Z | 2021-11-30T21:55:02.000Z | # coding: utf-8
"""
ngsi_v2
NGSI V2 API RC-2018.07 # noqa: E501
The version of the OpenAPI document: 0.2.2
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import ngsi_v2
from ngsi_v2.models.query_pattern import QueryPattern # noqa: E501
fr... | 19.9 | 79 | 0.682161 | 99 | 796 | 5.282828 | 0.575758 | 0.068834 | 0.038241 | 0.06501 | 0.091778 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040717 | 0.228643 | 796 | 39 | 80 | 20.410256 | 0.811075 | 0.429648 | 0 | 0.214286 | 1 | 0 | 0.019231 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.214286 | false | 0.214286 | 0.357143 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
b2691fd430b1ea673b48132b8036417005de10a3 | 107 | py | Python | weideshop/tests/factories/products/products.py | michaelgichia/weideshop | 01a408b358b9ad7d52747b42c36dc16206b4b915 | [
"BSD-2-Clause"
] | null | null | null | weideshop/tests/factories/products/products.py | michaelgichia/weideshop | 01a408b358b9ad7d52747b42c36dc16206b4b915 | [
"BSD-2-Clause"
] | null | null | null | weideshop/tests/factories/products/products.py | michaelgichia/weideshop | 01a408b358b9ad7d52747b42c36dc16206b4b915 | [
"BSD-2-Clause"
] | null | null | null | from weideshop.products.models import Product
import factory
class ProductFactory(factory.Factory):
pass | 21.4 | 46 | 0.841121 | 13 | 107 | 6.923077 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102804 | 107 | 5 | 47 | 21.4 | 0.9375 | 0 | 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 |
b2ab5f0f7c7b1f4d9909d63570960007b08c4883 | 120 | py | Python | ctnas/core/metric/__init__.py | AlbertiPot/CTNAS | 7689dc85e4445d087a672847ac22aca1acd0ac8b | [
"BSD-3-Clause"
] | 35 | 2021-03-10T08:03:08.000Z | 2022-03-30T03:53:54.000Z | ctnas/core/metric/__init__.py | ShunLu91/CTNAS | ecb22ea66b7ba075c48ca4c4db28f68b777f45db | [
"BSD-3-Clause"
] | 5 | 2021-06-30T02:50:09.000Z | 2021-08-30T01:43:07.000Z | ctnas/core/metric/__init__.py | ShunLu91/CTNAS | ecb22ea66b7ba075c48ca4c4db28f68b777f45db | [
"BSD-3-Clause"
] | 3 | 2021-08-14T14:59:12.000Z | 2021-11-22T03:41:44.000Z | from .accuracy import AccuracyMetric
from .average import AverageMetric
from .moving_average import MovingAverageMetric
| 30 | 47 | 0.875 | 13 | 120 | 8 | 0.615385 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 120 | 3 | 48 | 40 | 0.962963 | 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 |
a234ac87d847f001a6b5c48ab4e5ba8a41ce5ab6 | 27 | py | Python | hamsclient/__main__.py | bfritscher/hamsclient | 233b3237f681cbbab2d7f75d0858db00ccbacfa3 | [
"MIT"
] | 2 | 2021-08-23T17:12:50.000Z | 2022-03-22T07:07:31.000Z | hamsclient/__main__.py | bfritscher/hamsclient | 233b3237f681cbbab2d7f75d0858db00ccbacfa3 | [
"MIT"
] | 2 | 2021-08-23T17:18:37.000Z | 2022-03-29T14:37:43.000Z | hamsclient/__main__.py | bfritscher/hamsclient | 233b3237f681cbbab2d7f75d0858db00ccbacfa3 | [
"MIT"
] | 2 | 2020-11-24T07:46:15.000Z | 2022-03-21T19:24:15.000Z | import requests
import re
| 6.75 | 15 | 0.814815 | 4 | 27 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 27 | 3 | 16 | 9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a2405c7c649c539c37b4b0e292ad2a196d2981bd | 209 | py | Python | bagua/torch_api/algorithms/__init__.py | lheimabch/bagua | af3a0bdc8547885ad6b2420367a79aa838d6c9a8 | [
"MIT"
] | 1 | 2021-12-20T03:14:39.000Z | 2021-12-20T03:14:39.000Z | bagua/torch_api/algorithms/__init__.py | lheimabch/bagua | af3a0bdc8547885ad6b2420367a79aa838d6c9a8 | [
"MIT"
] | null | null | null | bagua/torch_api/algorithms/__init__.py | lheimabch/bagua | af3a0bdc8547885ad6b2420367a79aa838d6c9a8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from .base import Algorithm, AlgorithmImpl # noqa: F401
from . import bytegrad, decentralized, gradient_allreduce # noqa: F401
from . import q_adam, async_model_average # noqa: F401
| 34.833333 | 71 | 0.76555 | 28 | 209 | 5.571429 | 0.714286 | 0.153846 | 0.153846 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05618 | 0.148325 | 209 | 5 | 72 | 41.8 | 0.820225 | 0.258373 | 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 | 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 |
a254225eb22e79dd26fc312586510e66c6ad1700 | 124 | py | Python | number.py | alexhong121/py_pt | 78f11f2a2fed54154017371a97de563a8fffcd81 | [
"MIT"
] | null | null | null | number.py | alexhong121/py_pt | 78f11f2a2fed54154017371a97de563a8fffcd81 | [
"MIT"
] | null | null | null | number.py | alexhong121/py_pt | 78f11f2a2fed54154017371a97de563a8fffcd81 | [
"MIT"
] | null | null | null | #data transformer boolean
# 非0數字 回傳 True
print(bool(True)) # True
print(bool(1)) # True
# 0值回傳 False
print(bool(0)) # False | 17.714286 | 25 | 0.701613 | 20 | 124 | 4.35 | 0.6 | 0.310345 | 0.298851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038095 | 0.153226 | 124 | 7 | 26 | 17.714286 | 0.790476 | 0.516129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
a27de1fcaca15fce684563a6e104e457ecdcc96c | 97 | py | Python | aegis/utils/ssh/ssh_handler.py | Yijie-Wu/Aegis | f8082b66d55be135a5e2bec7ac15f860f99f7df7 | [
"MIT"
] | null | null | null | aegis/utils/ssh/ssh_handler.py | Yijie-Wu/Aegis | f8082b66d55be135a5e2bec7ac15f860f99f7df7 | [
"MIT"
] | null | null | null | aegis/utils/ssh/ssh_handler.py | Yijie-Wu/Aegis | f8082b66d55be135a5e2bec7ac15f860f99f7df7 | [
"MIT"
] | null | null | null | # -*- encoding:utf-8 -*-
"""
Author: Yijie.Wu
Email: 1694517106@qq.com
Date: 2020/5/16 15:17
"""
| 13.857143 | 24 | 0.618557 | 16 | 97 | 3.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261905 | 0.134021 | 97 | 6 | 25 | 16.166667 | 0.452381 | 0.896907 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0c4a85ed9be564572f22f94aefa3df67e54491cd | 38 | py | Python | server_beta_app/models/documents/source_income/__init__.py | dalmarcogd/test_django_elasticsearch | 9c97857a7f225a87554637fcae405e8c1a03d0f7 | [
"Apache-2.0"
] | null | null | null | server_beta_app/models/documents/source_income/__init__.py | dalmarcogd/test_django_elasticsearch | 9c97857a7f225a87554637fcae405e8c1a03d0f7 | [
"Apache-2.0"
] | 13 | 2020-06-05T18:26:43.000Z | 2021-06-10T20:36:13.000Z | backend/server_beta/server_beta_app/models/documents/source_income/__init__.py | dalmarcogd/challenge_ms | 761f0a588b4c309cf6e226d306df3609c1179b4c | [
"MIT"
] | 1 | 2019-04-07T23:42:22.000Z | 2019-04-07T23:42:22.000Z | from .source_income_document import *
| 19 | 37 | 0.842105 | 5 | 38 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 38 | 1 | 38 | 38 | 0.882353 | 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 |
a762c9b815af9576194a4e3c6bf92bd872ce3bb4 | 47 | py | Python | myproject/__init__.py | finsberg/sphinx-tutorial | 8a6bd88c2bde51d79570c34d6ec42f95e71a998b | [
"MIT"
] | 4 | 2020-10-14T04:09:38.000Z | 2021-03-16T13:43:49.000Z | myproject/__init__.py | finsberg/sphinx-tutorial | 8a6bd88c2bde51d79570c34d6ec42f95e71a998b | [
"MIT"
] | null | null | null | myproject/__init__.py | finsberg/sphinx-tutorial | 8a6bd88c2bde51d79570c34d6ec42f95e71a998b | [
"MIT"
] | 3 | 2021-02-01T21:02:13.000Z | 2021-03-14T16:07:34.000Z | from . import mymodule
from .mymodule import *
| 15.666667 | 23 | 0.765957 | 6 | 47 | 6 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 47 | 2 | 24 | 23.5 | 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 |
a7639d8fc3f77fc037a8fe8b8edeec844a5a9ae2 | 14,758 | py | Python | tests/test_rental_pyhamcrest.py | pauljackals/shop-with-tests | 4682f80bf3c54167a01a0c1bd4f03e67cce4a9ce | [
"MIT"
] | null | null | null | tests/test_rental_pyhamcrest.py | pauljackals/shop-with-tests | 4682f80bf3c54167a01a0c1bd4f03e67cce4a9ce | [
"MIT"
] | null | null | null | tests/test_rental_pyhamcrest.py | pauljackals/shop-with-tests | 4682f80bf3c54167a01a0c1bd4f03e67cce4a9ce | [
"MIT"
] | null | null | null | import unittest
from hamcrest import *
from src.rental.rental import Rental
import uuid
import json
import copy
import datetime
class TestRentalPyHamcrest(unittest.TestCase):
def setUp(self):
with open('data/database_for_testing.json') as file:
database = json.loads(file.read())
self.d... | 34.806604 | 131 | 0.557054 | 1,657 | 14,758 | 4.715148 | 0.105009 | 0.121848 | 0.073467 | 0.094074 | 0.813644 | 0.766543 | 0.741457 | 0.710739 | 0.700883 | 0.689748 | 0 | 0.132288 | 0.338732 | 14,758 | 423 | 132 | 34.888889 | 0.668306 | 0 | 0 | 0.554667 | 0 | 0 | 0.221304 | 0.078601 | 0 | 0 | 0 | 0 | 0.114667 | 1 | 0.12 | false | 0 | 0.018667 | 0 | 0.141333 | 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 |
a7b9013274be91445cd3cc0a9de552238a61bd8e | 134 | py | Python | retools/tests/jobs.py | szaydel/retools | 4e7ee27dd3c1b969d9cf63b29dc70e451aa20b43 | [
"MIT"
] | 52 | 2015-01-20T05:43:25.000Z | 2021-12-18T08:45:45.000Z | retools/tests/jobs.py | szaydel/retools | 4e7ee27dd3c1b969d9cf63b29dc70e451aa20b43 | [
"MIT"
] | 2 | 2020-01-23T23:26:01.000Z | 2021-01-04T17:02:26.000Z | retools/tests/jobs.py | szaydel/retools | 4e7ee27dd3c1b969d9cf63b29dc70e451aa20b43 | [
"MIT"
] | 15 | 2015-05-15T10:45:39.000Z | 2021-05-12T16:39:37.000Z | def echo_default(default='hello'): # pragma: nocover
return default
def echo_back(): # pragma: nocover
return 'howdy all'
| 19.142857 | 53 | 0.686567 | 17 | 134 | 5.294118 | 0.588235 | 0.155556 | 0.422222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201493 | 134 | 6 | 54 | 22.333333 | 0.841122 | 0.231343 | 0 | 0 | 0 | 0 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
38ef4b299ec0c92f30c40d7061e098f98cb30e80 | 2,689 | py | Python | colour/algebra/__init__.py | aurelienpierre/colour | 3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47 | [
"BSD-3-Clause"
] | 1 | 2022-02-12T06:28:15.000Z | 2022-02-12T06:28:15.000Z | colour/algebra/__init__.py | aurelienpierre/colour | 3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47 | [
"BSD-3-Clause"
] | null | null | null | colour/algebra/__init__.py | aurelienpierre/colour | 3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47 | [
"BSD-3-Clause"
] | null | null | null | from .coordinates import * # noqa
from . import coordinates
from .common import (
is_spow_enabled,
set_spow_enable,
spow_enable,
spow,
normalise_maximum,
vector_dot,
matrix_dot,
linear_conversion,
linstep_function,
lerp,
smoothstep_function,
smooth,
is_identity,
)
fr... | 23.587719 | 57 | 0.729639 | 235 | 2,689 | 7.72766 | 0.323404 | 0.079295 | 0.030837 | 0.017621 | 0.819383 | 0.819383 | 0.819383 | 0.819383 | 0.819383 | 0.819383 | 0 | 0.003661 | 0.18743 | 2,689 | 113 | 58 | 23.79646 | 0.82746 | 0.001488 | 0 | 0.053571 | 0 | 0 | 0.321655 | 0.173313 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 |
ac63d387528cda8632354b0e60ff99788a96fd4e | 933 | py | Python | hy-data-analysis-with-python-spring-2020/part03-e08_almost_meeting_lines/src/almost_meeting_lines.py | Melimet/DAP2020 | 0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a | [
"MIT"
] | null | null | null | hy-data-analysis-with-python-spring-2020/part03-e08_almost_meeting_lines/src/almost_meeting_lines.py | Melimet/DAP2020 | 0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a | [
"MIT"
] | null | null | null | hy-data-analysis-with-python-spring-2020/part03-e08_almost_meeting_lines/src/almost_meeting_lines.py | Melimet/DAP2020 | 0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import numpy as np
def almost_meeting_lines(a1, b1, a2, b2):
return []
def main():
a1=1
b1=2
a2=-1
b2=0
(x, y), exact = almost_meeting_lines(a1, b1, a2, b2)
if exact:
print(f"Lines meet at x={x} and y={y}")
a1=a2=1
b1=2
b2=-2
(x, y), exact = al... | 19.851064 | 56 | 0.527331 | 170 | 933 | 2.788235 | 0.194118 | 0.088608 | 0.059072 | 0.103376 | 0.852321 | 0.852321 | 0.852321 | 0.759494 | 0.759494 | 0.759494 | 0 | 0.074074 | 0.305466 | 933 | 46 | 57 | 20.282609 | 0.657407 | 0.018221 | 0 | 0.621622 | 0 | 0 | 0.240437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.027027 | 0.027027 | 0.108108 | 0.189189 | 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 |
3bab475ec5fb42cf4a76d33881d6312737bc20a9 | 3,229 | py | Python | musmanim/note_shapes.py | mscuthbert/musmanim | 3ce0502d44b715e08f6ddca375c3a84d0a4078cf | [
"BSD-3-Clause"
] | null | null | null | musmanim/note_shapes.py | mscuthbert/musmanim | 3ce0502d44b715e08f6ddca375c3a84d0a4078cf | [
"BSD-3-Clause"
] | null | null | null | musmanim/note_shapes.py | mscuthbert/musmanim | 3ce0502d44b715e08f6ddca375c3a84d0a4078cf | [
"BSD-3-Clause"
] | null | null | null | import manim as m
import numpy as np
class Maxima(m.Polygon):
def __init__(self, **kwargs):
super().__init__(
[-0.8, 0.5, 0],
[ 0.8, 0.5, 0],
[ 0.8, -1.5, 0],
[ 0.7, -1.5, 0],
[ 0.7, -0.5, 0],
[-0.8, -0.5, 0],
color=kwa... | 31.349515 | 100 | 0.507587 | 436 | 3,229 | 3.513761 | 0.130734 | 0.053525 | 0.035248 | 0.02611 | 0.847258 | 0.828329 | 0.79047 | 0.772193 | 0.740862 | 0.674935 | 0 | 0.072347 | 0.349334 | 3,229 | 102 | 101 | 31.656863 | 0.65683 | 0 | 0 | 0.511364 | 0 | 0 | 0.016723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.022727 | 0 | 0.238636 | 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 |
3bb711f0ba8e1ee7b367cb513c4ea5c1eb0d4ffb | 84 | py | Python | patterns/singleton/smodule/__init__.py | ceb10n/design-patterns-with-python | 287e0717d19dd21088b8e44f6df9a97b590f2804 | [
"MIT"
] | 1 | 2019-01-22T08:19:31.000Z | 2019-01-22T08:19:31.000Z | patterns/singleton/smodule/__init__.py | ceb10n/design-patterns-with-python | 287e0717d19dd21088b8e44f6df9a97b590f2804 | [
"MIT"
] | null | null | null | patterns/singleton/smodule/__init__.py | ceb10n/design-patterns-with-python | 287e0717d19dd21088b8e44f6df9a97b590f2804 | [
"MIT"
] | null | null | null | def this_is_like_a_singleton():
print('Hello from a singleton as a func module') | 42 | 52 | 0.761905 | 15 | 84 | 4 | 0.8 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154762 | 84 | 2 | 52 | 42 | 0.84507 | 0 | 0 | 0 | 0 | 0 | 0.458824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
ce3c3770684bcd0c9815c214dbbcf5ec40a6cc4b | 126 | py | Python | alphabot/utils/exceptions.py | SirMammingtonham/alphastone | 06e633b4b750c002d2d488334aa75b292482651d | [
"Unlicense"
] | 21 | 2018-08-31T06:11:17.000Z | 2022-01-12T09:12:27.000Z | remote/utils/exceptions.py | djdookie/alphastone | 2963bb5538d42aeb7789b124496b3ad0c507e2ff | [
"Unlicense"
] | 4 | 2018-08-19T23:13:46.000Z | 2019-07-21T06:04:14.000Z | remote/utils/exceptions.py | djdookie/alphastone | 2963bb5538d42aeb7789b124496b3ad0c507e2ff | [
"Unlicense"
] | 7 | 2018-12-17T23:36:20.000Z | 2021-11-02T13:54:55.000Z | class GetStateError(Exception):
pass
class UnhandledAction(Exception):
pass
class GameTreeFailure(Exception):
pass | 21 | 33 | 0.769841 | 12 | 126 | 8.083333 | 0.5 | 0.402062 | 0.371134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15873 | 126 | 6 | 34 | 21 | 0.915094 | 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 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
0209f39db41b5d2aa37c705698063b4882d6abd6 | 12,068 | py | Python | mpikat/meerkat/test/antennas.py | TeepChairin/mpikat | 464d76113c92e0e8a3106ccc05ef551a1427e582 | [
"MIT"
] | 2 | 2018-11-12T12:17:27.000Z | 2019-02-08T15:44:14.000Z | mpikat/meerkat/test/antennas.py | TeepChairin/mpikat | 464d76113c92e0e8a3106ccc05ef551a1427e582 | [
"MIT"
] | 3 | 2018-08-03T12:05:20.000Z | 2018-08-03T12:13:53.000Z | mpikat/meerkat/test/antennas.py | TeepChairin/mpikat | 464d76113c92e0e8a3106ccc05ef551a1427e582 | [
"MIT"
] | 4 | 2019-01-21T16:31:34.000Z | 2019-12-03T09:27:15.000Z | ANTENNAS = {'m000': 'm000, -30:42:39.8, 21:26:38.0, 1035.0, 13.5, -8.254 -207.2925 1.209 5875.794 5877.025, -0:00:39.7 0 -0:04:04.4 -0:04:53.0 0:00:57.8 -0:00:13.9 0:13:45.2 0:00:59.8, 1.22',
'm001': 'm001, -30:42:39.8, 21:26:38.0, 1035.0, 13.5, 1.1275 -171.7635 1.0565 5869.964 5870.974, -0:42:08.0 0 0:01... | 182.848485 | 198 | 0.56596 | 3,510 | 12,068 | 1.945869 | 0.160684 | 0.07511 | 0.056223 | 0.065593 | 0.293704 | 0.247438 | 0.22694 | 0.22694 | 0.22694 | 0.223133 | 0 | 0.651421 | 0.148492 | 12,068 | 65 | 199 | 185.661538 | 0.013235 | 0 | 0 | 0 | 0 | 1 | 0.951355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
02333d2b936a7f0bbd50f05c302c9b510f2d8af4 | 80 | py | Python | tests/__init__.py | svetlyak40wt/python-processor | 9126a021d603030899897803ab9973250e5b16f6 | [
"BSD-2-Clause"
] | 40 | 2015-03-18T09:27:13.000Z | 2021-12-31T06:25:48.000Z | tests/__init__.py | svetlyak40wt/python-processor | 9126a021d603030899897803ab9973250e5b16f6 | [
"BSD-2-Clause"
] | 2 | 2015-03-19T18:31:22.000Z | 2016-08-19T13:49:31.000Z | tests/__init__.py | svetlyak40wt/python-processor | 9126a021d603030899897803ab9973250e5b16f6 | [
"BSD-2-Clause"
] | 7 | 2015-03-19T17:59:24.000Z | 2019-09-05T15:16:19.000Z | import hy
from .pipeline import *
from .sources import *
from .outputs import *
| 16 | 23 | 0.75 | 11 | 80 | 5.454545 | 0.545455 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 80 | 4 | 24 | 20 | 0.909091 | 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 |
024f48e3ebfe4d8883dd9b41b47262a1480a80f7 | 4,961 | py | Python | mmdet/models/losses/smooth_l1_loss_augmix.py | WoojuLee24/mmdetection | ee27d22aadcff19bb36725604d24ddb4b681e471 | [
"Apache-2.0"
] | 1 | 2022-02-28T06:23:07.000Z | 2022-02-28T06:23:07.000Z | mmdet/models/losses/smooth_l1_loss_augmix.py | WoojuLee24/mmdetection | ee27d22aadcff19bb36725604d24ddb4b681e471 | [
"Apache-2.0"
] | null | null | null | mmdet/models/losses/smooth_l1_loss_augmix.py | WoojuLee24/mmdetection | ee27d22aadcff19bb36725604d24ddb4b681e471 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) OpenMMLab. All rights reserved.
import mmcv
import torch
import torch.nn as nn
from ..builder import LOSSES
from .utils import weighted_loss, weighted_loss2
import torch.nn.functional as F
@mmcv.jit(derivate=True, coderize=True)
@weighted_loss2
def smooth_l1_loss_augmix(pred, target, beta=1.0):
"... | 31.801282 | 78 | 0.600282 | 582 | 4,961 | 4.972509 | 0.16323 | 0.045612 | 0.038701 | 0.022115 | 0.817554 | 0.794748 | 0.73877 | 0.718037 | 0.718037 | 0.685556 | 0 | 0.011645 | 0.307599 | 4,961 | 155 | 79 | 32.006452 | 0.830859 | 0.393872 | 0 | 0.575342 | 0 | 0 | 0.011152 | 0 | 0 | 0 | 0 | 0 | 0.068493 | 1 | 0.082192 | false | 0 | 0.082192 | 0 | 0.273973 | 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 |
65f4d3a13b1839f1d57c0f397c4566768e6987a2 | 4,402 | py | Python | shenfun/optimization/numba/pdma.py | jaisw7/shenfun | 7482beb5b35580bc45f72704b69343cc6fc1d773 | [
"BSD-2-Clause"
] | 1 | 2021-03-06T09:29:39.000Z | 2021-03-06T09:29:39.000Z | shenfun/optimization/numba/pdma.py | jaisw7/shenfun | 7482beb5b35580bc45f72704b69343cc6fc1d773 | [
"BSD-2-Clause"
] | null | null | null | shenfun/optimization/numba/pdma.py | jaisw7/shenfun | 7482beb5b35580bc45f72704b69343cc6fc1d773 | [
"BSD-2-Clause"
] | null | null | null | import numba as nb
__all__ = ['PDMA_SymLU', 'PDMA_SymLU_VC', 'PDMA_SymSolve', 'PDMA_SymLU2D',
'PDMA_SymLU3D', 'PDMA_SymSolve_VC']
def PDMA_SymLU_VC(d, a, l, axis=0):
n = d.ndim
if n == 1:
PDMA_SymLU(d, a, l)
elif n == 2:
PDMA_SymLU2D(d, a, l, axis)
elif n == 3:
PDMA_... | 30.569444 | 85 | 0.472058 | 850 | 4,402 | 2.382353 | 0.057647 | 0.093333 | 0.06321 | 0.102716 | 0.81037 | 0.750617 | 0.738765 | 0.729383 | 0.725926 | 0.697284 | 0 | 0.050495 | 0.311677 | 4,402 | 143 | 86 | 30.783217 | 0.617822 | 0 | 0 | 0.484375 | 0 | 0 | 0.017265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085938 | false | 0 | 0.007813 | 0 | 0.09375 | 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 |
5a246451f90cefe194bc6cc2ee80e19addf4c6cf | 11,297 | py | Python | vosi/tests/tests.py | bruot/django-vosi | 06bad7e2c3e4d80b93d9f19e3473f5fbaf51f1b3 | [
"Apache-2.0"
] | null | null | null | vosi/tests/tests.py | bruot/django-vosi | 06bad7e2c3e4d80b93d9f19e3473f5fbaf51f1b3 | [
"Apache-2.0"
] | null | null | null | vosi/tests/tests.py | bruot/django-vosi | 06bad7e2c3e4d80b93d9f19e3473f5fbaf51f1b3 | [
"Apache-2.0"
] | 1 | 2021-06-23T13:25:36.000Z | 2021-06-23T13:25:36.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test import Client
from django.test.utils import setup_test_environment
from vosi.models import Availability, AvailabilityOption
from vosi.models import ... | 45.552419 | 656 | 0.654067 | 1,355 | 11,297 | 5.391882 | 0.098893 | 0.032576 | 0.030112 | 0.038325 | 0.864221 | 0.827539 | 0.80824 | 0.786614 | 0.768273 | 0.735423 | 0 | 0.018404 | 0.182349 | 11,297 | 247 | 657 | 45.736842 | 0.772545 | 0.032487 | 0 | 0.653631 | 0 | 0 | 0.11899 | 0.048504 | 0 | 0 | 0 | 0 | 0.089385 | 1 | 0.072626 | false | 0 | 0.050279 | 0 | 0.145251 | 0.011173 | 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 |
5a47364e373769a7b931220039dc3d3ea459e2bd | 23,348 | py | Python | tests/test_converters.py | YVautrin/xmlschema | c0363bc56b1371ba4904ad5aeb1c3c3dee227350 | [
"MIT"
] | 176 | 2019-07-08T00:15:03.000Z | 2022-03-24T14:17:42.000Z | tests/test_converters.py | YVautrin/xmlschema | c0363bc56b1371ba4904ad5aeb1c3c3dee227350 | [
"MIT"
] | 168 | 2019-07-01T14:49:03.000Z | 2022-03-28T10:55:38.000Z | tests/test_converters.py | YVautrin/xmlschema | c0363bc56b1371ba4904ad5aeb1c3c3dee227350 | [
"MIT"
] | 44 | 2019-08-21T22:59:02.000Z | 2022-02-28T08:50:13.000Z | #!/usr/bin/env python
#
# Copyright (c), 2018-2020, SISSA (International School for Advanced Studies).
# All rights reserved.
# This file is distributed under the terms of the MIT License.
# See the file 'LICENSE' in the root directory of the present
# distribution, or http://opensource.org/licenses/MIT.
#
# @author Da... | 45.512671 | 98 | 0.686654 | 2,885 | 23,348 | 5.32409 | 0.073484 | 0.066536 | 0.045573 | 0.05013 | 0.830534 | 0.810482 | 0.780143 | 0.774089 | 0.753451 | 0.741536 | 0 | 0.009953 | 0.199632 | 23,348 | 512 | 99 | 45.601563 | 0.812008 | 0.080992 | 0 | 0.638728 | 0 | 0.00289 | 0.120247 | 0.01238 | 0 | 0 | 0 | 0 | 0.395954 | 1 | 0.060694 | false | 0 | 0.034682 | 0.00289 | 0.101156 | 0.00289 | 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 |
cebc3a4ad50ba50393c8031955dc3ec66cb8b2dd | 37 | py | Python | marslab/tests/test_mertools.py | AndrewAnnex/marslab | dde6bcd627ff85d9125d4abfe06432fe241f4ca1 | [
"BSD-3-Clause"
] | null | null | null | marslab/tests/test_mertools.py | AndrewAnnex/marslab | dde6bcd627ff85d9125d4abfe06432fe241f4ca1 | [
"BSD-3-Clause"
] | null | null | null | marslab/tests/test_mertools.py | AndrewAnnex/marslab | dde6bcd627ff85d9125d4abfe06432fe241f4ca1 | [
"BSD-3-Clause"
] | null | null | null | from marslab.compat import mertools
| 12.333333 | 35 | 0.837838 | 5 | 37 | 6.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 37 | 2 | 36 | 18.5 | 0.96875 | 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 |
0c9015cd339048f9d2284b25d6889c7b52bcd4dd | 36,470 | py | Python | arch/ae.py | archishman/KiU-Net-pytorch | 8c74fd8836e95834f8d247153059d2fe0c42bb20 | [
"MIT"
] | null | null | null | arch/ae.py | archishman/KiU-Net-pytorch | 8c74fd8836e95834f8d247153059d2fe0c42bb20 | [
"MIT"
] | null | null | null | arch/ae.py | archishman/KiU-Net-pytorch | 8c74fd8836e95834f8d247153059d2fe0c42bb20 | [
"MIT"
] | null | null | null | # Code for KiU-Net
# Author: Jeya Maria Jose
import torch
import torchvision
from torch import nn
from torch.autograd import Variable
from torch.utils.data import DataLoader
from torchvision import transforms
from torchvision.utils import save_image
from torchvision.datasets import MNIST
import torch.nn.functional as F... | 46.223067 | 152 | 0.603236 | 5,754 | 36,470 | 3.737748 | 0.04171 | 0.054029 | 0.099595 | 0.093458 | 0.910773 | 0.883852 | 0.838053 | 0.814061 | 0.797647 | 0.774957 | 0 | 0.104158 | 0.233151 | 36,470 | 788 | 153 | 46.281726 | 0.664855 | 0.073787 | 0 | 0.48244 | 0 | 0 | 0.020695 | 0 | 0 | 0 | 0 | 0 | 0.001848 | 1 | 0.033272 | false | 0 | 0.020333 | 0 | 0.086876 | 0.001848 | 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 |
0cb984758be09b6024069bb1b6a1d313d0158584 | 41 | py | Python | src/sdgen/svg/__init__.py | PP-TSD/sdgen | 58a3a46f7f612c8d7774dd43a4ab55df4f33ab20 | [
"MIT"
] | 1 | 2015-02-18T17:59:05.000Z | 2015-02-18T17:59:05.000Z | src/sdgen/svg/__init__.py | PP-TSD/sdgen | 58a3a46f7f612c8d7774dd43a4ab55df4f33ab20 | [
"MIT"
] | null | null | null | src/sdgen/svg/__init__.py | PP-TSD/sdgen | 58a3a46f7f612c8d7774dd43a4ab55df4f33ab20 | [
"MIT"
] | null | null | null | from sdgen.svg.svg import to_svg, to_png
| 20.5 | 40 | 0.804878 | 9 | 41 | 3.444444 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 41 | 1 | 41 | 41 | 0.861111 | 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 |
0ccd99c73c9bad06a621f3514d17c5ca07cd6270 | 154 | py | Python | efc/rpn_builder/lexer/__init__.py | yoptar/excel-formulas-calculator | a14017a21956600383cb282673d3c7693b383ee3 | [
"MIT"
] | 11 | 2020-03-04T10:27:43.000Z | 2022-03-13T13:40:42.000Z | efc/rpn_builder/lexer/__init__.py | yoptar/excel-formulas-calculator | a14017a21956600383cb282673d3c7693b383ee3 | [
"MIT"
] | 2 | 2021-04-17T17:36:31.000Z | 2021-11-16T13:34:50.000Z | efc/rpn_builder/lexer/__init__.py | yoptar/excel-formulas-calculator | a14017a21956600383cb282673d3c7693b383ee3 | [
"MIT"
] | 5 | 2020-03-04T10:27:46.000Z | 2022-03-12T01:42:07.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from efc.rpn_builder.lexer.lexer import Lexer
| 30.8 | 82 | 0.792208 | 21 | 154 | 5.428571 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.11039 | 154 | 4 | 83 | 38.5 | 0.824818 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
0cec18ba9582ece4c91eec7cd781c2eea1f25313 | 279 | py | Python | utils/StringUtils.py | MadMax2506/pdf-tools | a9e9517920c7114ec2ffab8189870b02768a7ea4 | [
"Apache-2.0"
] | null | null | null | utils/StringUtils.py | MadMax2506/pdf-tools | a9e9517920c7114ec2ffab8189870b02768a7ea4 | [
"Apache-2.0"
] | null | null | null | utils/StringUtils.py | MadMax2506/pdf-tools | a9e9517920c7114ec2ffab8189870b02768a7ea4 | [
"Apache-2.0"
] | null | null | null | def rreplace(string, old_str_part, new_str_part, occurrence):
split_str = string.rsplit(old_str_part, occurrence)
return new_str_part.join(split_str)
def rremove(string, str_part, occurrence):
split_str = string.rsplit(str_part, occurrence)
return split_str[0]
| 31 | 61 | 0.767025 | 42 | 279 | 4.761905 | 0.333333 | 0.21 | 0.34 | 0.22 | 0.37 | 0.37 | 0.37 | 0 | 0 | 0 | 0 | 0.004167 | 0.139785 | 279 | 8 | 62 | 34.875 | 0.829167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
0b33fd7981377f0519da0432bc4ae55410f261f8 | 11,468 | py | Python | validation/random_field.py | navidcy/trackeddy | 43e884d42c3fcf3eccb17bcd2d1e00ee0d478242 | [
"MIT"
] | 36 | 2019-01-30T23:47:55.000Z | 2022-03-08T06:08:41.000Z | validation/random_field.py | powerwordlearner/trackeddy | afe85694fcff62df75f8f598f8decf2ec3f28f8d | [
"MIT"
] | 14 | 2019-02-25T21:46:11.000Z | 2022-03-08T08:58:36.000Z | validation/random_field.py | powerwordlearner/trackeddy | afe85694fcff62df75f8f598f8decf2ec3f28f8d | [
"MIT"
] | 14 | 2019-03-04T03:19:13.000Z | 2022-03-08T06:08:42.000Z | import time
tic=time.time()
import matplotlib
matplotlib.use('Agg')
matplotlib.rcParams.update({'font.size': 32})
import trackeddy
import trackeddy.tracking as ttrack
from trackeddy.geometryfunc import *
from pylab import *
import random
import pdb
import cmocean as cm
import matplotlib.gridspec as gridspec
import tr... | 32.859599 | 127 | 0.545169 | 1,734 | 11,468 | 3.442907 | 0.121107 | 0.00871 | 0.022613 | 0.00804 | 0.806365 | 0.795477 | 0.794975 | 0.777052 | 0.759129 | 0.727136 | 0 | 0.045578 | 0.102721 | 11,468 | 348 | 128 | 32.954023 | 0.534597 | 0.077694 | 0 | 0.581818 | 0 | 0 | 0.071887 | 0.005368 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081818 | 0 | 0.081818 | 0.063636 | 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 |
0b55ea9c0832a40234a62282328e8c185cbd1c88 | 6,187 | py | Python | fypy/pricing/analytical/black_scholes.py | jkirkby3/fypy | 28654800c91683685aee559aac13a17e3f4583b8 | [
"MIT"
] | 16 | 2021-04-24T18:51:00.000Z | 2022-03-31T16:17:21.000Z | fypy/pricing/analytical/black_scholes.py | jkirkby3/fypy | 28654800c91683685aee559aac13a17e3f4583b8 | [
"MIT"
] | null | null | null | fypy/pricing/analytical/black_scholes.py | jkirkby3/fypy | 28654800c91683685aee559aac13a17e3f4583b8 | [
"MIT"
] | 6 | 2021-04-28T12:19:25.000Z | 2022-03-31T16:19:36.000Z | """
About: contains pricing/Greeks formulas for black-scholes and black76
"""
import numpy as np
from scipy.stats import norm
from typing import Union
def black76_price(F: float,
K: Union[float, np.ndarray],
is_call: bool,
vol: Union[float, np.ndarray],
... | 42.376712 | 120 | 0.588007 | 955 | 6,187 | 3.727749 | 0.103665 | 0.060674 | 0.055056 | 0.069382 | 0.86264 | 0.851404 | 0.835674 | 0.830899 | 0.824157 | 0.824157 | 0 | 0.015855 | 0.306772 | 6,187 | 145 | 121 | 42.668966 | 0.814176 | 0.470179 | 0 | 0.507692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092308 | false | 0 | 0.046154 | 0 | 0.246154 | 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 |
0ba698794e6ee860b423b987023157b410b6d91c | 84,101 | py | Python | alerter/test/data_transformers/contracts/test_chainlink.py | SimplyVC/panic | 2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d | [
"Apache-2.0"
] | 41 | 2019-08-23T12:40:42.000Z | 2022-03-28T11:06:02.000Z | alerter/test/data_transformers/contracts/test_chainlink.py | SimplyVC/panic | 2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d | [
"Apache-2.0"
] | 147 | 2019-08-30T22:09:48.000Z | 2022-03-30T08:46:26.000Z | alerter/test/data_transformers/contracts/test_chainlink.py | SimplyVC/panic | 2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d | [
"Apache-2.0"
] | 3 | 2019-09-03T21:12:28.000Z | 2021-08-18T14:27:56.000Z | import copy
import json
import logging
import unittest
from datetime import datetime
from datetime import timedelta
from queue import Queue
from unittest import mock
import pika
import pika.exceptions
from freezegun import freeze_time
from parameterized import parameterized
from src.data_store.redis import RedisApi
f... | 46.800779 | 92 | 0.640468 | 9,566 | 84,101 | 5.209492 | 0.047146 | 0.100654 | 0.042381 | 0.070614 | 0.851427 | 0.81924 | 0.786451 | 0.742927 | 0.70478 | 0.657182 | 0 | 0.014748 | 0.290496 | 84,101 | 1,796 | 93 | 46.826837 | 0.820412 | 0.107847 | 0 | 0.578797 | 0 | 0 | 0.072469 | 0.015675 | 0 | 0 | 0 | 0 | 0.096705 | 1 | 0.030086 | false | 0.003582 | 0.015043 | 0 | 0.045845 | 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 |
f02ece04f131e2907f4ccddc9b6046dd47200c86 | 137 | py | Python | example_1/calculation/helper2.py | KrashLeviathan/se329_project_2 | b5f36b56802885d6c0a7f86fc89ef3d8ec9ae897 | [
"MIT"
] | null | null | null | example_1/calculation/helper2.py | KrashLeviathan/se329_project_2 | b5f36b56802885d6c0a7f86fc89ef3d8ec9ae897 | [
"MIT"
] | null | null | null | example_1/calculation/helper2.py | KrashLeviathan/se329_project_2 | b5f36b56802885d6c0a7f86fc89ef3d8ec9ae897 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import hashlib
def do_something_2(c, d):
return int(hashlib.md5(c.encode()).hexdigest(), 16) / (d * 1e+20)
| 15.222222 | 69 | 0.649635 | 23 | 137 | 3.782609 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06087 | 0.160584 | 137 | 8 | 70 | 17.125 | 0.695652 | 0.145985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
f05a98a9e538b4f8b11ed3b7890fc33a81ae92bc | 37 | py | Python | cryptowatch/__init__.py | nlnsaoadc/py-cryptowatch | 33ebfb20d1b9dee13dc1b169cd03c1138a43317f | [
"MIT"
] | null | null | null | cryptowatch/__init__.py | nlnsaoadc/py-cryptowatch | 33ebfb20d1b9dee13dc1b169cd03c1138a43317f | [
"MIT"
] | null | null | null | cryptowatch/__init__.py | nlnsaoadc/py-cryptowatch | 33ebfb20d1b9dee13dc1b169cd03c1138a43317f | [
"MIT"
] | null | null | null | from .cryptowatch import Cryptowatch
| 18.5 | 36 | 0.864865 | 4 | 37 | 8 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 37 | 1 | 37 | 37 | 0.969697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f064263f79ab0935f88c3f83ef74113ff7524b8f | 160 | py | Python | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/l10n_br/__init__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | 1 | 2019-12-19T01:53:13.000Z | 2019-12-19T01:53:13.000Z | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/l10n_br/__init__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/l10n_br/__init__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Copyright (C) 2009 Renato Lima - Akretion
import models
| 22.857143 | 74 | 0.70625 | 23 | 160 | 4.913043 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03876 | 0.19375 | 160 | 6 | 75 | 26.666667 | 0.837209 | 0.85625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f0710fb1aee95f98062ccf78e5e7b79a6521e4cf | 17,276 | py | Python | xmoai/problems/xMOAIProblem.py | wmonteiro92/xmoai | 032602a4f6a33f2cc798ff7f7afe5aefcc9b30e7 | [
"MIT"
] | 2 | 2020-12-07T20:17:22.000Z | 2021-03-22T11:31:20.000Z | xmoai/problems/xMOAIProblem.py | wmonteiro92/xmoai | 032602a4f6a33f2cc798ff7f7afe5aefcc9b30e7 | [
"MIT"
] | null | null | null | xmoai/problems/xMOAIProblem.py | wmonteiro92/xmoai | 032602a4f6a33f2cc798ff7f7afe5aefcc9b30e7 | [
"MIT"
] | null | null | null | import numpy as np
from pymoo.model.problem import Problem
from xmoai.problems.objectives import *
from xmoai.problems.restrictions import *
#https://pymoo.org/problems/index.html
#https://pymoo.org/problems/custom.html
#https://pymoo.org/misc/constraint_handling.html
class xMOAIProblem(Problem):
"""Def... | 55.729032 | 98 | 0.654492 | 2,112 | 17,276 | 5.192235 | 0.096117 | 0.054167 | 0.025989 | 0.011672 | 0.906256 | 0.897045 | 0.893398 | 0.889933 | 0.889933 | 0.889933 | 0 | 0.003359 | 0.293529 | 17,276 | 310 | 99 | 55.729032 | 0.895125 | 0.593077 | 0 | 0.506494 | 0 | 0 | 0.001155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.051948 | 0 | 0.194805 | 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 |
b2d81cfc40b29bae1c9bcb333b248c15054c2172 | 31 | py | Python | src/__init__.py | smithara/IAGA_SummerSchool2019 | e4a3ee5e8948b591986764ba06282e1da608f190 | [
"MIT"
] | 5 | 2019-05-27T10:27:30.000Z | 2019-10-04T07:46:46.000Z | src/__init__.py | MagneticEarth/IAGA_SummerSchool2019 | e4a3ee5e8948b591986764ba06282e1da608f190 | [
"MIT"
] | null | null | null | src/__init__.py | MagneticEarth/IAGA_SummerSchool2019 | e4a3ee5e8948b591986764ba06282e1da608f190 | [
"MIT"
] | 2 | 2020-04-22T10:49:03.000Z | 2021-01-07T19:21:33.000Z | from . import mag_lib, sha_lib
| 15.5 | 30 | 0.774194 | 6 | 31 | 3.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 31 | 1 | 31 | 31 | 0.846154 | 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 |
6541fe69aeae3ae5b0056d7b538ff13e9ece798d | 6,688 | py | Python | simfempy/meshes/testmeshes.py | anairabeze/simfempy | 144362956263cb9b81f4bade15664d9cc640f93a | [
"MIT"
] | null | null | null | simfempy/meshes/testmeshes.py | anairabeze/simfempy | 144362956263cb9b81f4bade15664d9cc640f93a | [
"MIT"
] | null | null | null | simfempy/meshes/testmeshes.py | anairabeze/simfempy | 144362956263cb9b81f4bade15664d9cc640f93a | [
"MIT"
] | null | null | null | import pygmsh
import numpy as np
import simfempy
__pygmsh6__ = False
if hasattr(pygmsh, "built_in"): __pygmsh6__ = True
# ------------------------------------- #
def unitline(h):
if __pygmsh6__:
geom = pygmsh.built_in.Geometry()
p0 = geom.add_point([0, 0, 0], lcar=h)
p1 = geom.add_point([1... | 40.047904 | 102 | 0.548445 | 999 | 6,688 | 3.55956 | 0.093093 | 0.108268 | 0.168729 | 0.07649 | 0.924072 | 0.908605 | 0.904106 | 0.894544 | 0.845332 | 0.828178 | 0 | 0.065026 | 0.252691 | 6,688 | 166 | 103 | 40.289157 | 0.646459 | 0.061752 | 0 | 0.638889 | 0 | 0 | 0.015028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.020833 | 0 | 0.111111 | 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 |
e8ed5c9988585d3400ecfba9d8bb98397afdb7b1 | 58 | py | Python | tds/protocol/__init__.py | by46/geek | 04b08d0dff80c524bd471ead3fe524423eebf123 | [
"MIT"
] | null | null | null | tds/protocol/__init__.py | by46/geek | 04b08d0dff80c524bd471ead3fe524423eebf123 | [
"MIT"
] | null | null | null | tds/protocol/__init__.py | by46/geek | 04b08d0dff80c524bd471ead3fe524423eebf123 | [
"MIT"
] | null | null | null | from .login import login
from .pre_login import pre_login | 29 | 32 | 0.827586 | 10 | 58 | 4.6 | 0.4 | 0.478261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 58 | 2 | 32 | 29 | 0.92 | 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 |
33110d9c5000a805b0918e14b8190effbbef31cd | 133 | py | Python | courses/dl2/cgan/data/base_data_loader.py | royalbhati/fastai | 745ddabcf9301b0078a16ac6333cd41684df149b | [
"Apache-2.0"
] | 67 | 2019-05-29T18:55:20.000Z | 2022-03-14T10:03:24.000Z | courses/dl2/cgan/data/base_data_loader.py | royalbhati/fastai | 745ddabcf9301b0078a16ac6333cd41684df149b | [
"Apache-2.0"
] | 17 | 2020-08-25T14:15:32.000Z | 2022-03-27T02:12:19.000Z | courses/dl2/cgan/data/base_data_loader.py | royalbhati/fastai | 745ddabcf9301b0078a16ac6333cd41684df149b | [
"Apache-2.0"
] | 89 | 2020-08-17T23:45:42.000Z | 2022-03-27T20:53:43.000Z | class BaseDataLoader():
def __init__(self): pass
def load_data(): return None
def initialize(self, opt): self.opt = opt
| 22.166667 | 45 | 0.676692 | 18 | 133 | 4.722222 | 0.666667 | 0.164706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 133 | 5 | 46 | 26.6 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.75 | false | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 6 |
332b86f9b51ac8c1c4d177296715010000058e16 | 58 | py | Python | LAMMPyS/__init__.py | permissionx/LAMMPyS | 2423980ff0e0b535df661859f15698e9ef15bd2f | [
"MIT"
] | 2 | 2019-04-22T07:40:00.000Z | 2020-10-29T06:57:37.000Z | LAMMPyS/__init__.py | permissionx/LAMMPyS | 2423980ff0e0b535df661859f15698e9ef15bd2f | [
"MIT"
] | null | null | null | LAMMPyS/__init__.py | permissionx/LAMMPyS | 2423980ff0e0b535df661859f15698e9ef15bd2f | [
"MIT"
] | null | null | null | from .dump import *
from .sv import *
from .group import * | 19.333333 | 20 | 0.706897 | 9 | 58 | 4.555556 | 0.555556 | 0.487805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189655 | 58 | 3 | 20 | 19.333333 | 0.87234 | 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 |
332e2e7236c7c9624b57d2693cc9ecb15a71c068 | 68 | py | Python | CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Tools/python/astroid/tests/testdata/python3/data/__init__.py | ishtjot/susereumutep | 56e20c1777e0c938ac42bd8056f84af9e0b76e46 | [
"Apache-2.0"
] | 463 | 2015-01-15T08:17:42.000Z | 2022-03-28T15:10:20.000Z | CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Tools/python/astroid/tests/testdata/python3/data/__init__.py | ishtjot/susereumutep | 56e20c1777e0c938ac42bd8056f84af9e0b76e46 | [
"Apache-2.0"
] | 61 | 2017-06-03T05:49:22.000Z | 2022-03-27T17:42:07.000Z | CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Tools/python/astroid/tests/testdata/python3/data/__init__.py | ishtjot/susereumutep | 56e20c1777e0c938ac42bd8056f84af9e0b76e46 | [
"Apache-2.0"
] | 249 | 2015-01-07T22:49:49.000Z | 2022-03-18T02:32:06.000Z | __revision__="$Id: __init__.py,v 1.1 2005-06-13 20:55:20 syt Exp $"
| 34 | 67 | 0.691176 | 15 | 68 | 2.6 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 0.117647 | 68 | 1 | 68 | 68 | 0.383333 | 0 | 0 | 0 | 0 | 1 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3337472f4c57772c390fcf8fe9a77212226247c9 | 159 | py | Python | mywebapp/items/views.py | diegodiego9/py-django-webapp | e4bd267032a31b8e4116311f047905a2535a2f38 | [
"MIT"
] | null | null | null | mywebapp/items/views.py | diegodiego9/py-django-webapp | e4bd267032a31b8e4116311f047905a2535a2f38 | [
"MIT"
] | null | null | null | mywebapp/items/views.py | diegodiego9/py-django-webapp | e4bd267032a31b8e4116311f047905a2535a2f38 | [
"MIT"
] | null | null | null | from django.http import HttpResponse
# simplest view possible
def home(request):
return HttpResponse("Hello, world. You're at the Items-app homepage.")
| 19.875 | 74 | 0.754717 | 22 | 159 | 5.454545 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157233 | 159 | 7 | 75 | 22.714286 | 0.895522 | 0.138365 | 0 | 0 | 0 | 0 | 0.350746 | 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 |
6839a72946449d8a0dfbf230f23b64abc88c644c | 38 | py | Python | AutoPypline/__init__.py | Sumukha21/AutoPipeline | 5d335ea63400a546983b2a1f0c46b3915b25cd94 | [
"MIT"
] | 2 | 2021-05-19T12:19:31.000Z | 2021-07-02T13:10:56.000Z | AutoPypline/__init__.py | Sumukha21/AutoPypline | 5d335ea63400a546983b2a1f0c46b3915b25cd94 | [
"MIT"
] | null | null | null | AutoPypline/__init__.py | Sumukha21/AutoPypline | 5d335ea63400a546983b2a1f0c46b3915b25cd94 | [
"MIT"
] | null | null | null | from AutoPypline import auto_pipeline
| 19 | 37 | 0.894737 | 5 | 38 | 6.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 38 | 1 | 38 | 38 | 0.970588 | 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 |
68ac37f1996ac3f7e18b595c52311e7aa7d582dc | 1,660 | py | Python | function/python_3_9/test/test_utils.py | aws-samples/amazon-s3-object-lambda-default-configuration | 3908515d48d5e42fd9bb6dadc1dc9fe5132a1425 | [
"MIT-0"
] | 13 | 2021-11-23T17:07:13.000Z | 2022-03-08T16:57:45.000Z | function/python_3_9/test/test_utils.py | aws-samples/amazon-s3-object-lambda-default-configuration | 3908515d48d5e42fd9bb6dadc1dc9fe5132a1425 | [
"MIT-0"
] | 1 | 2022-01-13T14:29:52.000Z | 2022-01-13T14:29:52.000Z | function/python_3_9/test/test_utils.py | aws-samples/amazon-s3-object-lambda-default-configuration | 3908515d48d5e42fd9bb6dadc1dc9fe5132a1425 | [
"MIT-0"
] | null | null | null | import json
from src.request.utils import *
def test_get_part_number():
user_request = {
'url': 'https://s3.amazonaws.com?partNumber=1',
'headers': {
'h1': 'v1'
}
}
assert get_part_number(user_request) == '1'
def test_get_part_number_case_insensitive():
user_reque... | 22.739726 | 67 | 0.559639 | 194 | 1,660 | 4.484536 | 0.190722 | 0.177011 | 0.08046 | 0.152874 | 0.937931 | 0.914943 | 0.87931 | 0.796552 | 0.796552 | 0.645977 | 0 | 0.025316 | 0.286145 | 1,660 | 72 | 68 | 23.055556 | 0.708861 | 0 | 0 | 0.465517 | 0 | 0 | 0.242169 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 1 | 0.12069 | false | 0 | 0.034483 | 0 | 0.155172 | 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 |
d7ac1d2e792dbcf74e6cfdd9e446ac5d4bf4d539 | 117 | py | Python | local_run.py | augustand/PyLinden | b3e818409af5a4bbff354e081ca3c88f9e898a6b | [
"MIT"
] | null | null | null | local_run.py | augustand/PyLinden | b3e818409af5a4bbff354e081ca3c88f9e898a6b | [
"MIT"
] | null | null | null | local_run.py | augustand/PyLinden | b3e818409af5a4bbff354e081ca3c88f9e898a6b | [
"MIT"
] | null | null | null | #-*- coding:utf-8 -*-
from __future__ import unicode_literals, print_function
import pylinden
pylinden.pylinden()
| 14.625 | 55 | 0.769231 | 14 | 117 | 6 | 0.785714 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.119658 | 117 | 7 | 56 | 16.714286 | 0.805825 | 0.17094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0.333333 | 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 |
d7fd450e94964b12003b6107e444abf0b6a7cf7d | 207 | py | Python | epymetheus/exceptions/exceptions.py | shishaboy/epymetheus | d8916b20c6b79e86e5aadb39c7c01a582659f03b | [
"BSD-3-Clause"
] | null | null | null | epymetheus/exceptions/exceptions.py | shishaboy/epymetheus | d8916b20c6b79e86e5aadb39c7c01a582659f03b | [
"BSD-3-Clause"
] | null | null | null | epymetheus/exceptions/exceptions.py | shishaboy/epymetheus | d8916b20c6b79e86e5aadb39c7c01a582659f03b | [
"BSD-3-Clause"
] | null | null | null | class NoTradeError(RuntimeError):
"""
Exception class to raise if no trades are yielded.
"""
class NotRunError(ValueError):
"""
Exception class to raise if strategy is not run.
"""
| 18.818182 | 54 | 0.652174 | 24 | 207 | 5.625 | 0.708333 | 0.207407 | 0.237037 | 0.311111 | 0.340741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251208 | 207 | 10 | 55 | 20.7 | 0.870968 | 0.478261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
cc0c5850af5d063044d2b37a6701ead2875962bc | 8,165 | py | Python | WebServer/microservices/db/unittest/user_test.py | AnneEjsing/TrafficDataAnonymisation | 6ee5b4a46d53a656299d6a53896175b78008228a | [
"MIT"
] | 1 | 2020-03-12T13:27:58.000Z | 2020-03-12T13:27:58.000Z | WebServer/microservices/db/unittest/user_test.py | AnneEjsing/TrafficDataAnonymisation | 6ee5b4a46d53a656299d6a53896175b78008228a | [
"MIT"
] | 7 | 2020-04-02T12:47:45.000Z | 2022-03-02T07:35:49.000Z | WebServer/microservices/db/unittest/user_test.py | AnneEjsing/Traffic-Data-Anonymisation-Web | 6ee5b4a46d53a656299d6a53896175b78008228a | [
"MIT"
] | null | null | null | import sys
import os
sys.path.append(os.getcwd() + '/..')
import dbresolver
import user
import unittest2
import psycopg2
import testing.postgresql
import aiounittest
import json
# mock request to resemble aiohttp request
class request:
dic = {}
def __init__(self,dict):
self.dic = dict
async def jso... | 38.880952 | 216 | 0.661727 | 1,015 | 8,165 | 5.158621 | 0.123153 | 0.036669 | 0.048319 | 0.067227 | 0.804622 | 0.78304 | 0.744461 | 0.720588 | 0.692704 | 0.677235 | 0 | 0.043445 | 0.196571 | 8,165 | 209 | 217 | 39.066986 | 0.754726 | 0.012125 | 0 | 0.541667 | 0 | 0 | 0.189968 | 0.070276 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.053571 | false | 0.107143 | 0.053571 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
0bdf19ed9810ccbdfba36fe3aa3efbf48ead5a08 | 192 | py | Python | project/cms_post/admin.py | cborao/Django-cms-post | 44486c3f2d231ac0e3d7958dd0c9d0085dac30fc | [
"MIT"
] | null | null | null | project/cms_post/admin.py | cborao/Django-cms-post | 44486c3f2d231ac0e3d7958dd0c9d0085dac30fc | [
"MIT"
] | null | null | null | project/cms_post/admin.py | cborao/Django-cms-post | 44486c3f2d231ac0e3d7958dd0c9d0085dac30fc | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from django.contrib import admin
from .models import Content, Comment
admin.site.register(Content)
admin.site.register(Comment)
| 21.333333 | 36 | 0.8125 | 27 | 192 | 5.777778 | 0.444444 | 0.128205 | 0.217949 | 0.294872 | 0.358974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 192 | 8 | 37 | 24 | 0.917647 | 0.135417 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
0423351d6f5cc18fb910646a151c5964252b1027 | 37 | py | Python | algsel/scoring/__init__.py | janvanrijn/openml-algsel | eb30b63c4ad926b4f180c2e910fbf0ffeabcdfd8 | [
"BSD-3-Clause"
] | null | null | null | algsel/scoring/__init__.py | janvanrijn/openml-algsel | eb30b63c4ad926b4f180c2e910fbf0ffeabcdfd8 | [
"BSD-3-Clause"
] | null | null | null | algsel/scoring/__init__.py | janvanrijn/openml-algsel | eb30b63c4ad926b4f180c2e910fbf0ffeabcdfd8 | [
"BSD-3-Clause"
] | null | null | null | from .oasc_validator import Validator | 37 | 37 | 0.891892 | 5 | 37 | 6.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 37 | 1 | 37 | 37 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f08cd84104d99a341a27d9e9516a830f6a3d0157 | 37 | py | Python | roglick/game/__init__.py | Kromey/roglick | b76202af71df0c30be0bd5f06a3428c990476e0e | [
"MIT"
] | 6 | 2015-05-05T21:28:35.000Z | 2019-04-14T13:42:38.000Z | roglick/game/__init__.py | Kromey/roglick | b76202af71df0c30be0bd5f06a3428c990476e0e | [
"MIT"
] | null | null | null | roglick/game/__init__.py | Kromey/roglick | b76202af71df0c30be0bd5f06a3428c990476e0e | [
"MIT"
] | null | null | null | from .game_master import GameMaster
| 12.333333 | 35 | 0.837838 | 5 | 37 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 37 | 2 | 36 | 18.5 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f09a3a5a9ea5431d78fc1f8b1b596cf7c47472b9 | 5,839 | py | Python | spotmask.py | CheerfulUser/tessffi | 576c6baed6e2a5762da2a97e12f2e5a8e233b74c | [
"MIT"
] | null | null | null | spotmask.py | CheerfulUser/tessffi | 576c6baed6e2a5762da2a97e12f2e5a8e233b74c | [
"MIT"
] | null | null | null | spotmask.py | CheerfulUser/tessffi | 576c6baed6e2a5762da2a97e12f2e5a8e233b74c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from astropy.coordinates import SkyCoord
from astropy import units as u
from astropy.io import fits
from astropy.nddata import Cutout2D
from astropy.wcs import WCS
from scipy.signal import fftconvolve
import argparse
# turn ... | 28.763547 | 123 | 0.554376 | 841 | 5,839 | 3.800238 | 0.230678 | 0.045056 | 0.008761 | 0.010013 | 0.710889 | 0.705882 | 0.705882 | 0.705882 | 0.705882 | 0.705882 | 0 | 0.024744 | 0.31478 | 5,839 | 203 | 124 | 28.763547 | 0.774056 | 0.060969 | 0 | 0.70625 | 0 | 0.025 | 0.086485 | 0.0213 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05625 | false | 0.0125 | 0.1375 | 0 | 0.2375 | 0.03125 | 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 |
f0a29734a0480e9b9bf236f26f373d8688cd45bb | 144 | py | Python | src/wai/annotations/domain/audio/speech/__init__.py | waikato-ufdl/wai-annotations-core | bac3429e9488efb456972c74f9d462f951c4af3d | [
"Apache-2.0"
] | null | null | null | src/wai/annotations/domain/audio/speech/__init__.py | waikato-ufdl/wai-annotations-core | bac3429e9488efb456972c74f9d462f951c4af3d | [
"Apache-2.0"
] | 3 | 2021-06-30T23:42:47.000Z | 2022-03-01T03:45:07.000Z | src/wai/annotations/domain/audio/speech/__init__.py | waikato-ufdl/wai-annotations-core | bac3429e9488efb456972c74f9d462f951c4af3d | [
"Apache-2.0"
] | null | null | null | from ._SpeechDomainSpecifier import SpeechDomainSpecifier
from ._SpeechInstance import SpeechInstance
from ._Transcription import Transcription
| 36 | 57 | 0.895833 | 12 | 144 | 10.5 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 144 | 3 | 58 | 48 | 0.954545 | 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 |
f0a55eda49c2b18dd9867dcf75154b423378fd7f | 6,041 | py | Python | amorf/metrics.py | DSAAR/amorf | 5cc5e346e6d4f918d588ff527aaa45136f036851 | [
"MIT"
] | 13 | 2020-03-24T12:03:51.000Z | 2022-03-25T09:15:58.000Z | amorf/metrics.py | DSAAR/amorf | 5cc5e346e6d4f918d588ff527aaa45136f036851 | [
"MIT"
] | null | null | null | amorf/metrics.py | DSAAR/amorf | 5cc5e346e6d4f918d588ff527aaa45136f036851 | [
"MIT"
] | 2 | 2020-08-14T11:30:02.000Z | 2022-03-10T12:28:47.000Z | import numpy as np
from numpy import mean, sqrt
import torch as torch
def average_correlation_coefficient(y_pred, y_true):
"""Calculate Average Correlation Coefficient
Args:
y_true (array-like): np.ndarray or torch.Tensor of dimension N x d with actual values
y_pred (array-like): np.ndarray o... | 42.244755 | 117 | 0.635987 | 930 | 6,041 | 3.991398 | 0.080645 | 0.086207 | 0.082974 | 0.118534 | 0.894397 | 0.873114 | 0.856142 | 0.829741 | 0.795259 | 0.765625 | 0 | 0.009377 | 0.258566 | 6,041 | 142 | 118 | 42.542254 | 0.819379 | 0.362026 | 0 | 0.435484 | 0 | 0 | 0.106002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.048387 | 0 | 0.306452 | 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 |
f0df6210c870e5566baf5e0516d40a1d49690972 | 44 | py | Python | data_process/__init__.py | Annelise2019/DeepLearning_Project | f63dcc266a5d9c33c118cabe8145f46f8e35945b | [
"MIT"
] | 4 | 2021-05-04T03:23:15.000Z | 2021-10-22T03:38:35.000Z | data_process/__init__.py | Annelise2019/DeepLearning_Project | f63dcc266a5d9c33c118cabe8145f46f8e35945b | [
"MIT"
] | null | null | null | data_process/__init__.py | Annelise2019/DeepLearning_Project | f63dcc266a5d9c33c118cabe8145f46f8e35945b | [
"MIT"
] | null | null | null | from .skeleton_feeder import SkeletonFeeder
| 22 | 43 | 0.886364 | 5 | 44 | 7.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 44 | 1 | 44 | 44 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
500404fe645fd8c986b7294b3b03e9ebc92a46f7 | 103,246 | py | Python | src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py | ZengTaoxu/azure-cli | 6be96de450da5ac9f07aafb22dd69880bea04792 | [
"MIT"
] | null | null | null | src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py | ZengTaoxu/azure-cli | 6be96de450da5ac9f07aafb22dd69880bea04792 | [
"MIT"
] | null | null | null | src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py | ZengTaoxu/azure-cli | 6be96de450da5ac9f07aafb22dd69880bea04792 | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 39.049168 | 138 | 0.655192 | 11,185 | 103,246 | 5.607331 | 0.030577 | 0.0287 | 0.046303 | 0.054721 | 0.937721 | 0.907076 | 0.879732 | 0.847221 | 0.797331 | 0.736025 | 0 | 0.011133 | 0.266587 | 103,246 | 2,643 | 139 | 39.063942 | 0.817134 | 0.037648 | 0 | 0.668493 | 0 | 0 | 0.080492 | 0.031053 | 0 | 0 | 0 | 0 | 0.088128 | 1 | 0.091781 | false | 0 | 0.009132 | 0 | 0.109589 | 0.001826 | 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 |
500ff000cbe607c82319059361e31b442a3bc781 | 8,624 | py | Python | river/signals.py | manzerw/django-river | 58fa53ce9e1d790201afa8d044e85cb8ae00c55f | [
"BSD-3-Clause"
] | null | null | null | river/signals.py | manzerw/django-river | 58fa53ce9e1d790201afa8d044e85cb8ae00c55f | [
"BSD-3-Clause"
] | null | null | null | river/signals.py | manzerw/django-river | 58fa53ce9e1d790201afa8d044e85cb8ae00c55f | [
"BSD-3-Clause"
] | null | null | null | import logging
from django.contrib.contenttypes.models import ContentType
from django.db.models import Q
from django.dispatch import Signal
from river.models import Workflow
from river.models.hook import BEFORE, AFTER
from river.models.on_approved_hook import OnApprovedHook
from river.models.on_complete_hook import O... | 35.344262 | 86 | 0.544759 | 825 | 8,624 | 5.384242 | 0.100606 | 0.089149 | 0.097253 | 0.086448 | 0.848717 | 0.848717 | 0.842864 | 0.828681 | 0.805718 | 0.762044 | 0 | 0 | 0.375 | 8,624 | 243 | 87 | 35.489712 | 0.824119 | 0 | 0 | 0.622727 | 0 | 0 | 0.128131 | 0.05102 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.040909 | 0.013636 | 0.122727 | 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 |
5051ec0ca5accc390de2a0b5b403a6ab90703a3d | 49,908 | py | Python | jobs/ui/icons_rc.py | botacatalin/job-scraping | 7f01dec6139ce484449440f71df5004be4d4f4d4 | [
"BSD-2-Clause"
] | null | null | null | jobs/ui/icons_rc.py | botacatalin/job-scraping | 7f01dec6139ce484449440f71df5004be4d4f4d4 | [
"BSD-2-Clause"
] | null | null | null | jobs/ui/icons_rc.py | botacatalin/job-scraping | 7f01dec6139ce484449440f71df5004be4d4f4d4 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt4 (Qt v4.8.7)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x03\xba\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x40\x0... | 62.074627 | 96 | 0.726697 | 12,028 | 49,908 | 3.013801 | 0.024526 | 0.181076 | 0.228662 | 0.273434 | 0.231062 | 0.228993 | 0.226179 | 0.221628 | 0.216083 | 0.213848 | 0 | 0.340584 | 0.017111 | 49,908 | 803 | 97 | 62.15193 | 0.398398 | 0.003026 | 0 | 0.13308 | 0 | 0.941698 | 0 | 0 | 0 | 1 | 0.000161 | 0 | 0 | 1 | 0.002535 | false | 0 | 0.001267 | 0 | 0.003802 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
505805dbf791a59fd47436c59f3aa78a5e801d9e | 83 | py | Python | docs/test.py | tcgvn/dash-draggable | feb9702ee8f248c5405007d2262a988e8da7ef24 | [
"MIT"
] | 21 | 2021-01-07T07:58:11.000Z | 2022-02-21T02:08:24.000Z | docs/test.py | tcgvn/dash-draggable | feb9702ee8f248c5405007d2262a988e8da7ef24 | [
"MIT"
] | 6 | 2021-03-25T07:45:32.000Z | 2022-01-26T19:21:33.000Z | docs/test.py | tcgvn/dash-draggable | feb9702ee8f248c5405007d2262a988e8da7ef24 | [
"MIT"
] | 7 | 2021-06-19T08:08:24.000Z | 2022-01-27T21:40:35.000Z | import os
def ok(file=__file__):
print(os.path.dirname(os.path.abspath(file))) | 20.75 | 49 | 0.722892 | 14 | 83 | 4 | 0.642857 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108434 | 83 | 4 | 49 | 20.75 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0.333333 | 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 | 0 | 1 | 0 | 0 | 6 |
aca419d8218f1233116f930fecff190065ae42ad | 733 | py | Python | notebooks/utils_plot.py | pilyugin620/CalGal | 5a8f64bcfdf14a28cf940816abf462c452a6ac4e | [
"MIT"
] | 1 | 2022-02-19T15:38:13.000Z | 2022-02-19T15:38:13.000Z | notebooks/utils_plot.py | pilyugin620/HII_regions_catalog | 5a8f64bcfdf14a28cf940816abf462c452a6ac4e | [
"MIT"
] | null | null | null | notebooks/utils_plot.py | pilyugin620/HII_regions_catalog | 5a8f64bcfdf14a28cf940816abf462c452a6ac4e | [
"MIT"
] | 1 | 2022-02-19T11:45:20.000Z | 2022-02-19T11:45:20.000Z | from matplotlib.offsetbox import AnchoredText
def textonly(ax, txt, fontsize=14, loc=3, fontweight='bold', *args, **kwargs):
at = AnchoredText(txt,
prop=dict(size=fontsize, fontweight=fontweight),
frameon=True,
loc=loc)
at.patch.set_boxstyle("ro... | 34.904762 | 79 | 0.585266 | 89 | 733 | 4.752809 | 0.404494 | 0.023641 | 0.061466 | 0.070922 | 0.827423 | 0.827423 | 0.827423 | 0.827423 | 0.827423 | 0.827423 | 0 | 0.024857 | 0.286494 | 733 | 20 | 80 | 36.65 | 0.783939 | 0.075034 | 0 | 0.625 | 0 | 0 | 0.056213 | 0.044379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.3125 | 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 |
c587f5b8b90b4a64f6469443450118c5a977b4ba | 28 | py | Python | redpanda/__init__.py | B3AU/redpanda | 5a7be30dbc65968930b61154b84cf18fb874cc0e | [
"MIT"
] | null | null | null | redpanda/__init__.py | B3AU/redpanda | 5a7be30dbc65968930b61154b84cf18fb874cc0e | [
"MIT"
] | null | null | null | redpanda/__init__.py | B3AU/redpanda | 5a7be30dbc65968930b61154b84cf18fb874cc0e | [
"MIT"
] | null | null | null | from redpanda.core import *
| 14 | 27 | 0.785714 | 4 | 28 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 28 | 1 | 28 | 28 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c5d21dca7387cc631d230dc2aff75139b81db29c | 78 | py | Python | ltr/client/__init__.py | tanjie123/hello-ltr | fe1ad1989e1bb17dfc8d1c09931480becf59766e | [
"Apache-2.0"
] | 109 | 2019-04-18T01:24:29.000Z | 2022-03-12T17:37:30.000Z | ltr/client/__init__.py | tanjie123/hello-ltr | fe1ad1989e1bb17dfc8d1c09931480becf59766e | [
"Apache-2.0"
] | 63 | 2019-04-14T01:01:24.000Z | 2022-03-03T20:48:41.000Z | ltr/client/__init__.py | tanjie123/hello-ltr | fe1ad1989e1bb17dfc8d1c09931480becf59766e | [
"Apache-2.0"
] | 41 | 2019-04-22T15:22:41.000Z | 2022-02-26T00:03:02.000Z | from .elastic_client import ElasticClient
from .solr_client import SolrClient
| 26 | 41 | 0.871795 | 10 | 78 | 6.6 | 0.7 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 78 | 2 | 42 | 39 | 0.942857 | 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 |
68006d4eecaa427b15b0daf87a02f00a7ba2b83e | 275 | py | Python | cakechat/utils/offense_detector/config.py | jacswork/cakechat | d46c3ef05be8adfeac5d48ff1cfcefb87ac1eb2e | [
"Apache-2.0"
] | 1 | 2018-12-30T07:52:37.000Z | 2018-12-30T07:52:37.000Z | cakechat/utils/offense_detector/config.py | jacswork/cakechat | d46c3ef05be8adfeac5d48ff1cfcefb87ac1eb2e | [
"Apache-2.0"
] | 1 | 2020-04-03T19:25:17.000Z | 2020-04-03T19:25:17.000Z | cakechat/utils/offense_detector/config.py | Spark3757/chatbot | 4e8eae70af2d5b68564d86b7ea0dbec956ae676f | [
"Apache-2.0"
] | 1 | 2020-12-04T15:25:45.000Z | 2020-12-04T15:25:45.000Z | import os
import pkg_resources
import cakechat.utils.offense_detector
OFFENSIVE_PHRASES_PATH = pkg_resources.resource_filename(cakechat.utils.offense_detector.__name__,
os.path.join('data', 'offensive_phrases.csv'))
| 34.375 | 103 | 0.672727 | 29 | 275 | 5.965517 | 0.586207 | 0.138728 | 0.231214 | 0.323699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254545 | 275 | 7 | 104 | 39.285714 | 0.843902 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.076364 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
680f048546445a4c185b2411c27beea91abc96b5 | 7,181 | py | Python | tests/potential/EamPotential/test__EamPotential__init.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 4 | 2018-01-18T19:59:56.000Z | 2020-08-25T11:56:52.000Z | tests/potential/RoseEosEmbeddingFunction/test__EamPotential__init.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 1 | 2018-04-22T23:02:13.000Z | 2018-04-22T23:02:13.000Z | tests/potential/EamPotential/test__EamPotential__init.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 1 | 2019-09-14T07:04:42.000Z | 2019-09-14T07:04:42.000Z | import pytest
from collections import OrderedDict
# The testing functions provided below are coarse-grained tests to demonstrate
# that functionality works. More robust unit-testing of arguments generally
# isn't developed except to catch bugs in development.
#
# Imports of classes and functions should be done explic... | 42.241176 | 82 | 0.684306 | 851 | 7,181 | 5.643948 | 0.191539 | 0.069956 | 0.073288 | 0.093275 | 0.792421 | 0.775765 | 0.769727 | 0.769727 | 0.769727 | 0.769727 | 0 | 0.000864 | 0.193845 | 7,181 | 169 | 83 | 42.491124 | 0.828813 | 0.388943 | 0 | 0.893617 | 0 | 0 | 0.031812 | 0 | 0 | 0 | 0 | 0 | 0.297872 | 1 | 0.031915 | false | 0 | 0.202128 | 0 | 0.234043 | 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 |
a8913cb395508ed6b342b3a60f497db4acde3180 | 33 | py | Python | lib/__init__.py | HA247RethinkIT/haproxy-galera-etcd | 90f781aeaec5c652496f958775c9382481b942e1 | [
"MIT"
] | 5 | 2016-02-20T20:19:39.000Z | 2021-02-23T15:34:59.000Z | import_main.py | marskar/main | b374fa739557b8b571050223b7784b621522cb38 | [
"MIT"
] | 1 | 2019-10-09T08:22:25.000Z | 2019-10-09T08:22:35.000Z | import_main.py | marskar/main | b374fa739557b8b571050223b7784b621522cb38 | [
"MIT"
] | 1 | 2019-09-27T14:33:31.000Z | 2019-09-27T14:33:31.000Z | import __main__
__main__.main()
| 8.25 | 15 | 0.787879 | 4 | 33 | 4.5 | 0.5 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 3 | 16 | 11 | 0.62069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
a8a3be9c9a187add7dc07b40a09fe76936c18b13 | 1,348 | py | Python | fewshot_re_kit/sentence_encoder.py | gaotianyu1350/new_fewrel_bertpair | 27184050d476fc93576948fb26680d508a2824bb | [
"MIT"
] | 180 | 2018-11-23T12:01:40.000Z | 2022-03-21T07:26:25.000Z | fewshot_re_kit/sentence_encoder.py | readzw/HATT-Proto | 8630f048ecc52714dda45e3d731ec68156439b4f | [
"MIT"
] | 17 | 2019-05-15T08:33:50.000Z | 2021-01-06T03:08:29.000Z | fewshot_re_kit/sentence_encoder.py | readzw/HATT-Proto | 8630f048ecc52714dda45e3d731ec68156439b4f | [
"MIT"
] | 42 | 2019-01-31T08:40:57.000Z | 2021-12-09T05:34:32.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
import math
from torch import optim
from . import network
class CNNSentenceEncoder(nn.Module):
def __init__(self, word_vec_mat, max_length, word_embedding_dim=50, pos_embedding_dim=5, hidden_size=230):
nn.Module.__init__(self)
self... | 37.444444 | 117 | 0.728487 | 189 | 1,348 | 4.846561 | 0.195767 | 0.157205 | 0.085153 | 0.144105 | 0.805677 | 0.805677 | 0.805677 | 0.805677 | 0.805677 | 0.805677 | 0 | 0.010929 | 0.18546 | 1,348 | 35 | 118 | 38.514286 | 0.823315 | 0 | 0 | 0.642857 | 0 | 0 | 0.00297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0 | 0.5 | 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 |
a8ae8fbdc3fa987240ed18bc1871da0a116a6737 | 170 | py | Python | sympy/deprecated/tests/test_class_registry.py | ethankward/sympy | 44664d9f625a1c68bc492006cfe1012cb0b49ee4 | [
"BSD-3-Clause"
] | 2 | 2021-01-09T23:11:25.000Z | 2021-01-11T15:04:22.000Z | sympy/deprecated/tests/test_class_registry.py | ethankward/sympy | 44664d9f625a1c68bc492006cfe1012cb0b49ee4 | [
"BSD-3-Clause"
] | 3 | 2021-02-28T03:58:40.000Z | 2021-03-07T06:12:47.000Z | sympy/deprecated/tests/test_class_registry.py | ethankward/sympy | 44664d9f625a1c68bc492006cfe1012cb0b49ee4 | [
"BSD-3-Clause"
] | 3 | 2019-05-18T21:32:31.000Z | 2019-07-26T11:05:46.000Z | from sympy.testing.pytest import warns_deprecated_sympy
def test_C():
from sympy.deprecated.class_registry import C
with warns_deprecated_sympy():
C.Add
| 24.285714 | 55 | 0.758824 | 24 | 170 | 5.125 | 0.583333 | 0.146341 | 0.325203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 170 | 6 | 56 | 28.333333 | 0.878571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
763fa0892c69669a077155be65a22fa2e8e426e3 | 4,549 | py | Python | biencoder/beir/custommodels/sentence_bert_asym.py | dumpmemory/sgpt | 18023c6f66aae0c69545ff7f0de614d11dd590eb | [
"MIT"
] | 91 | 2022-02-11T07:48:42.000Z | 2022-03-25T10:07:18.000Z | biencoder/beir/custommodels/sentence_bert_asym.py | dumpmemory/sgpt | 18023c6f66aae0c69545ff7f0de614d11dd590eb | [
"MIT"
] | 1 | 2022-03-12T22:26:24.000Z | 2022-03-13T06:29:55.000Z | biencoder/beir/custommodels/sentence_bert_asym.py | dumpmemory/sgpt | 18023c6f66aae0c69545ff7f0de614d11dd590eb | [
"MIT"
] | 9 | 2022-02-14T09:53:21.000Z | 2022-03-16T13:35:41.000Z | ### Simple wrappers for using ST models for BEIR - Mostly based on beir.retrieval.models.SentenceBERT ###
from sentence_transformers import SentenceTransformer, models
from torch import Tensor
from typing import List, Dict, Union, Tuple
import numpy as np
class SentenceBERTAsym:
def __init__(self, model_path: Uni... | 56.8625 | 154 | 0.674214 | 596 | 4,549 | 4.89094 | 0.187919 | 0.129331 | 0.179074 | 0.129674 | 0.817153 | 0.817153 | 0.817153 | 0.81681 | 0.81681 | 0.81681 | 0 | 0.004459 | 0.211255 | 4,549 | 79 | 155 | 57.582278 | 0.807971 | 0.095186 | 0 | 0.407407 | 0 | 0 | 0.030702 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 1 | 0.111111 | false | 0 | 0.074074 | 0 | 0.296296 | 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 |
765caaf8c0631ce179698ec3b41a4fb87d3fad1f | 6,800 | py | Python | openprocurement/auctions/geb/tests/blanks/chronograph.py | oleksiyVeretiuk/openprocurement.auctions.geb | 2965b52bf8826b9a8f8870c9a4d2052f945f5799 | [
"Apache-2.0"
] | null | null | null | openprocurement/auctions/geb/tests/blanks/chronograph.py | oleksiyVeretiuk/openprocurement.auctions.geb | 2965b52bf8826b9a8f8870c9a4d2052f945f5799 | [
"Apache-2.0"
] | null | null | null | openprocurement/auctions/geb/tests/blanks/chronograph.py | oleksiyVeretiuk/openprocurement.auctions.geb | 2965b52bf8826b9a8f8870c9a4d2052f945f5799 | [
"Apache-2.0"
] | null | null | null |
from openprocurement.auctions.geb.tests.fixtures.active_tendering import (
END_ACTIVE_TENDERING_AUCTION_DEFAULT_FIXTURE_WITH_ONE_BID,
END_ACTIVE_TENDERING_AUCTION_DEFAULT_FIXTURE_WITH_TWO_BIDS,
END_ACTIVE_TENDERING_AUCTION_DEFAULT_FIXTURE_WITH_TWO_BIDS_AND_ONE_DRAFT
)
from openprocurement.auctions.geb.test... | 39.766082 | 124 | 0.71 | 837 | 6,800 | 5.464755 | 0.081243 | 0.118933 | 0.069742 | 0.07477 | 0.903804 | 0.857455 | 0.807171 | 0.769786 | 0.745081 | 0.713161 | 0 | 0.005303 | 0.140294 | 6,800 | 170 | 125 | 40 | 0.777113 | 0 | 0 | 0.605263 | 0 | 0 | 0.122224 | 0.01412 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.087719 | false | 0 | 0.017544 | 0 | 0.105263 | 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 |
4f2c88601db729d1bef8719704a1a5d90b627f57 | 28 | py | Python | dedupe_trees/__init__.py | davidmreed/dedupe_trees.py | d6b0f9feb7514a77f4562513762f4d1aa4b98510 | [
"MIT"
] | 1 | 2017-12-28T01:48:13.000Z | 2017-12-28T01:48:13.000Z | dedupe_trees/__init__.py | davidmreed/dedupe.py | d6b0f9feb7514a77f4562513762f4d1aa4b98510 | [
"MIT"
] | null | null | null | dedupe_trees/__init__.py | davidmreed/dedupe.py | d6b0f9feb7514a77f4562513762f4d1aa4b98510 | [
"MIT"
] | null | null | null | from .dedupe_trees import *
| 14 | 27 | 0.785714 | 4 | 28 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 28 | 1 | 28 | 28 | 0.875 | 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 |
4f41fee85d0c3ee836dc59a05d671376cf8f62da | 22 | py | Python | __init__.py | vwrobel/cvtools | a9f41186bff71a7c528b889cce015b099149daf4 | [
"MIT"
] | 1 | 2021-03-18T00:28:09.000Z | 2021-03-18T00:28:09.000Z | __init__.py | vwrobel/cvtools | a9f41186bff71a7c528b889cce015b099149daf4 | [
"MIT"
] | null | null | null | __init__.py | vwrobel/cvtools | a9f41186bff71a7c528b889cce015b099149daf4 | [
"MIT"
] | null | null | null | from .cvtools import * | 22 | 22 | 0.772727 | 3 | 22 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.894737 | 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 |
4f88cc7fb9c0d539687293479033e563d2887f8a | 151 | py | Python | tests/b.py | tuanky/lambdata_DS9 | 01bbc86e2da210c1e6349a2cc6853d1c1c5d282a | [
"MIT"
] | null | null | null | tests/b.py | tuanky/lambdata_DS9 | 01bbc86e2da210c1e6349a2cc6853d1c1c5d282a | [
"MIT"
] | 3 | 2020-03-24T18:25:17.000Z | 2021-02-02T22:34:24.000Z | tests/b.py | tuanky/lambdata_DS9 | 01bbc86e2da210c1e6349a2cc6853d1c1c5d282a | [
"MIT"
] | null | null | null |
print("Hello World from %s!" % __name__)
if __name__ == '__main__':
print("Hello World again from %s!" % __name__)
#python a.py
#python b.py | 25.166667 | 56 | 0.642384 | 22 | 151 | 3.681818 | 0.590909 | 0.246914 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205298 | 151 | 6 | 57 | 25.166667 | 0.675 | 0.145695 | 0 | 0 | 0 | 0 | 0.425197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
96d19fe2e664c0b5dbebb243a38c3638c2e01fdf | 7,914 | py | Python | tools/c7n_gcp/tests/test_appengine.py | anastasiia-zolochevska/cloud-custodian | f25315a01bec808c16ab0e2d433d6151cf5769e4 | [
"Apache-2.0"
] | 8 | 2021-05-18T02:22:03.000Z | 2021-09-11T02:49:04.000Z | tools/c7n_gcp/tests/test_appengine.py | anastasiia-zolochevska/cloud-custodian | f25315a01bec808c16ab0e2d433d6151cf5769e4 | [
"Apache-2.0"
] | 79 | 2019-03-20T12:27:06.000Z | 2019-08-14T14:07:04.000Z | tools/c7n_gcp/tests/test_appengine.py | anastasiia-zolochevska/cloud-custodian | f25315a01bec808c16ab0e2d433d6151cf5769e4 | [
"Apache-2.0"
] | 3 | 2017-09-21T13:36:46.000Z | 2021-09-20T16:38:29.000Z | # Copyright 2019 Capital One Services, 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 42.095745 | 97 | 0.678292 | 909 | 7,914 | 5.629263 | 0.137514 | 0.063318 | 0.077975 | 0.031659 | 0.824702 | 0.786789 | 0.768028 | 0.756889 | 0.747704 | 0.73676 | 0 | 0.008461 | 0.208491 | 7,914 | 187 | 98 | 42.320856 | 0.808429 | 0.070508 | 0 | 0.691176 | 0 | 0 | 0.188641 | 0.110869 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.066176 | false | 0 | 0.007353 | 0 | 0.110294 | 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 |
96d1b3c0cf69b111fd709d4db90fa1070c60c860 | 1,847 | py | Python | apps/site/models/__init__.py | LocalGround/localground | aa5a956afe7a84a7763a3b23d62a9fd925831cd7 | [
"Apache-2.0"
] | 9 | 2015-05-29T22:22:20.000Z | 2022-02-01T20:39:00.000Z | apps/site/models/__init__.py | LocalGround/localground | aa5a956afe7a84a7763a3b23d62a9fd925831cd7 | [
"Apache-2.0"
] | 143 | 2015-01-22T15:03:40.000Z | 2020-06-27T01:55:29.000Z | apps/site/models/__init__.py | LocalGround/localground | aa5a956afe7a84a7763a3b23d62a9fd925831cd7 | [
"Apache-2.0"
] | 5 | 2015-03-16T20:51:49.000Z | 2017-02-07T20:48:49.000Z | # abstract
from localground.apps.site.models.abstract.base import \
Base, BaseAudit, BaseUploadedMedia
from localground.apps.site.models.abstract.mixins import ExtentsMixin, \
PointMixin, ExtrasMixin, ProjectMixin, GenericRelationMixin, \
MediaMixin, NamedMixin, ObjectPermissionsMixin
# layers
from localgr... | 36.215686 | 78 | 0.828912 | 224 | 1,847 | 6.834821 | 0.267857 | 0.23514 | 0.297845 | 0.360549 | 0.465056 | 0.048334 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097997 | 1,847 | 50 | 79 | 36.94 | 0.918968 | 0.06876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.766667 | 0 | 0.766667 | 0.033333 | 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 |
96f0528a775f4832c7d1e8c3684c40931c403717 | 18,578 | py | Python | xsugar/test/test_master_data.py | edmundsj/xsugar | 08596f500b043661b9fc807803319ee8f5d6de54 | [
"MIT"
] | null | null | null | xsugar/test/test_master_data.py | edmundsj/xsugar | 08596f500b043661b9fc807803319ee8f5d6de54 | [
"MIT"
] | 40 | 2021-03-21T16:08:34.000Z | 2021-05-28T01:52:07.000Z | xsugar/test/test_master_data.py | edmundsj/xsugar | 08596f500b043661b9fc807803319ee8f5d6de54 | [
"MIT"
] | null | null | null | import pytest
import numpy as np
import pandas as pd
from pandas.testing import assert_frame_equal
import os
from shutil import rmtree
from numpy.testing import assert_equal, assert_allclose
from xsugar import Experiment, ureg
from ast import literal_eval
from itertools import zip_longest
from spectralpy import power_s... | 38.463768 | 73 | 0.538163 | 2,161 | 18,578 | 4.476631 | 0.058769 | 0.073909 | 0.069465 | 0.089312 | 0.873165 | 0.834298 | 0.810006 | 0.784474 | 0.768555 | 0.70891 | 0 | 0.069488 | 0.306707 | 18,578 | 482 | 74 | 38.543568 | 0.681599 | 0.002315 | 0 | 0.602198 | 0 | 0 | 0.283115 | 0.203467 | 0 | 0 | 0 | 0 | 0.03956 | 1 | 0.035165 | false | 0 | 0.026374 | 0 | 0.061538 | 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 |
96f8448a489cff4729fa90a963e20a2fa37c06da | 123 | py | Python | src/utils.py | catalyst-team/detector | 383c17ba7701d960ca92be0aafbff05207f2de3a | [
"Apache-2.0"
] | 15 | 2019-05-15T13:42:51.000Z | 2020-11-09T23:13:06.000Z | src/utils.py | catalyst-team/detector | 383c17ba7701d960ca92be0aafbff05207f2de3a | [
"Apache-2.0"
] | 1 | 2020-01-09T08:53:49.000Z | 2020-01-16T19:41:16.000Z | src/utils.py | catalyst-team/detection | 383c17ba7701d960ca92be0aafbff05207f2de3a | [
"Apache-2.0"
] | null | null | null | import numpy as np
import torch
def detach(tensor: torch.Tensor) -> np.ndarray:
return tensor.detach().cpu().numpy()
| 17.571429 | 47 | 0.707317 | 18 | 123 | 4.833333 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154472 | 123 | 6 | 48 | 20.5 | 0.836538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 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 |
8c412d91d6c2fe86f901ba866fdb88c37f6845d2 | 42 | py | Python | tests/molecular/molecules/molecule/fixtures/cage/two_plus_five/__init__.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | 21 | 2018-04-12T16:25:24.000Z | 2022-02-14T23:05:43.000Z | tests/molecular/molecules/molecule/fixtures/cage/two_plus_five/__init__.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | 8 | 2019-03-19T12:36:36.000Z | 2020-11-11T12:46:00.000Z | tests/molecular/molecules/molecule/fixtures/cage/two_plus_five/__init__.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | 5 | 2018-08-07T13:00:16.000Z | 2021-11-01T00:55:10.000Z | from .twelve_plus_thirty import * # noqa
| 21 | 41 | 0.761905 | 6 | 42 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 42 | 1 | 42 | 42 | 0.857143 | 0.095238 | 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 |
8b33f4012d020db75e04406be7e09c8a12934b8d | 17,468 | py | Python | cogs/events.py | bradybellini/discord-cogs | 872c4734b47815f1891c550aa0a3d0829c95cb39 | [
"MIT"
] | null | null | null | cogs/events.py | bradybellini/discord-cogs | 872c4734b47815f1891c550aa0a3d0829c95cb39 | [
"MIT"
] | null | null | null | cogs/events.py | bradybellini/discord-cogs | 872c4734b47815f1891c550aa0a3d0829c95cb39 | [
"MIT"
] | null | null | null | import discord
import datetime
import sqlite3
from discord.ext import commands
class Events(commands.Cog, name='Event System Cog'):
def __init__(self, client):
self.client = client
@commands.group(invoke_without_command=True)
async def event(self, ctx):
embed = discord.Embed(colour=0xffa2... | 60.864111 | 329 | 0.573849 | 2,189 | 17,468 | 4.503883 | 0.098218 | 0.032458 | 0.052744 | 0.068973 | 0.794097 | 0.780505 | 0.775129 | 0.770464 | 0.761943 | 0.75322 | 0 | 0.015215 | 0.288871 | 17,468 | 287 | 330 | 60.864112 | 0.778458 | 0.010992 | 0 | 0.80292 | 0 | 0.029197 | 0.306472 | 0.041334 | 0 | 0 | 0.009262 | 0.003484 | 0 | 1 | 0.007299 | false | 0.014599 | 0.014599 | 0 | 0.025547 | 0.00365 | 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 |
8c95195f9f393e9b4e6aeccb01e0db9606b3d7b9 | 80,418 | py | Python | pmutt/empirical/nasa.py | wittregr/pMuTT | 1678fd3d3a10d8ef5389c02970a7ebaa92fc7344 | [
"MIT"
] | 28 | 2018-10-29T17:44:30.000Z | 2022-03-23T14:20:16.000Z | pmutt/empirical/nasa.py | wittregr/pMuTT | 1678fd3d3a10d8ef5389c02970a7ebaa92fc7344 | [
"MIT"
] | 101 | 2018-10-18T19:49:30.000Z | 2022-01-19T10:59:57.000Z | pmutt/empirical/nasa.py | wittregr/pMuTT | 1678fd3d3a10d8ef5389c02970a7ebaa92fc7344 | [
"MIT"
] | 16 | 2018-12-15T17:01:21.000Z | 2022-01-03T17:42:23.000Z | # -*- coding: utf-8 -*-
"""
pmutt.empirical.nasa
Operations related to Nasa polynomials
"""
import inspect
from copy import copy
from warnings import warn
import numpy as np
from scipy.optimize import Bounds, LinearConstraint, minimize, minimize_scalar
from pmutt import (_apply_numpy_operation, _get_R_adj, _is_iter... | 37.403721 | 100 | 0.520555 | 9,901 | 80,418 | 4.049591 | 0.048278 | 0.014765 | 0.015563 | 0.012321 | 0.828856 | 0.791445 | 0.761666 | 0.738895 | 0.718793 | 0.690211 | 0 | 0.010849 | 0.381034 | 80,418 | 2,149 | 101 | 37.421126 | 0.79466 | 0.451255 | 0 | 0.599045 | 0 | 0 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0.001193 | 1 | 0.078759 | false | 0.009547 | 0.013126 | 0.00358 | 0.173031 | 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 |
8ce677b6ea7ca2f761c8b2110bec500af6095388 | 12,642 | py | Python | tests/test_closed_streams.py | standy66/ngh2 | ab4e59d2594598a8cc203fbd2ce2837350c1fa5f | [
"Apache-2.0"
] | null | null | null | tests/test_closed_streams.py | standy66/ngh2 | ab4e59d2594598a8cc203fbd2ce2837350c1fa5f | [
"Apache-2.0"
] | null | null | null | tests/test_closed_streams.py | standy66/ngh2 | ab4e59d2594598a8cc203fbd2ce2837350c1fa5f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
test_closed_streams
~~~~~~~~~~~~~~~~~~~
Tests that we handle closed streams correctly.
"""
import pytest
import h2.config
import h2.connection
import h2.errors
import h2.events
import h2.exceptions
class TestClosedStreams(object):
example_request_headers = [
(':authority', 'e... | 33.094241 | 78 | 0.596978 | 1,451 | 12,642 | 4.92419 | 0.130255 | 0.063821 | 0.048705 | 0.03275 | 0.812456 | 0.790763 | 0.776347 | 0.761092 | 0.749335 | 0.716725 | 0 | 0.012058 | 0.30462 | 12,642 | 381 | 79 | 33.181102 | 0.800705 | 0.106787 | 0 | 0.681319 | 0 | 0 | 0.038727 | 0 | 0 | 0 | 0 | 0 | 0.080586 | 1 | 0.029304 | false | 0 | 0.021978 | 0 | 0.095238 | 0.007326 | 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 |
508f6aba63dfccf40babe11f1d6d81b118c8674f | 25,415 | py | Python | finall.py | Vraajj/Hand-Cricket-Using-Webcam | 8b10ebb091966140be5a25a11c6c8beff44c7ec9 | [
"MIT"
] | null | null | null | finall.py | Vraajj/Hand-Cricket-Using-Webcam | 8b10ebb091966140be5a25a11c6c8beff44c7ec9 | [
"MIT"
] | null | null | null | finall.py | Vraajj/Hand-Cricket-Using-Webcam | 8b10ebb091966140be5a25a11c6c8beff44c7ec9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 27 19:39:37 2018
@author: Admin
"""
import random
import cv2
import numpy as np
import math
def num():
cap = cv2.VideoCapture(1)
while (cap.isOpened()):
# read image
ret, img = cap.read()
# get hand data from the rect... | 40.023622 | 118 | 0.441708 | 2,499 | 25,415 | 4.347739 | 0.111245 | 0.083663 | 0.026323 | 0.035343 | 0.752416 | 0.731615 | 0.728578 | 0.728578 | 0.715416 | 0.706489 | 0 | 0.030268 | 0.459217 | 25,415 | 634 | 119 | 40.086751 | 0.760259 | 0.047059 | 0 | 0.804305 | 0 | 0.001957 | 0.132291 | 0.002591 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001957 | false | 0 | 0.007828 | 0 | 0.011742 | 0.350294 | 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 |
509e51be7939ef2c07d1479e015f51ed54ca91ca | 135 | py | Python | jobs/rolloff_mask_generation/v0/producer_rolloff_mask.py | lsst-camera-dh/ts3-analysis | bf3400f286876c5ed4368e2dafe730a8598d0bf7 | [
"BSD-3-Clause-LBNL"
] | null | null | null | jobs/rolloff_mask_generation/v0/producer_rolloff_mask.py | lsst-camera-dh/ts3-analysis | bf3400f286876c5ed4368e2dafe730a8598d0bf7 | [
"BSD-3-Clause-LBNL"
] | null | null | null | jobs/rolloff_mask_generation/v0/producer_rolloff_mask.py | lsst-camera-dh/ts3-analysis | bf3400f286876c5ed4368e2dafe730a8598d0bf7 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #!/usr/bin/env python
import shutil
from lsst.eotest.sensor.rolloff_mask import rolloff_mask
rolloff_mask('ccd250_defects_mask.fits')
| 22.5 | 56 | 0.82963 | 21 | 135 | 5.095238 | 0.714286 | 0.308411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024 | 0.074074 | 135 | 5 | 57 | 27 | 0.832 | 0.148148 | 0 | 0 | 0 | 0 | 0.210526 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
50f1fb3a75d7dd4190773a520d83b030af88a3f8 | 36 | py | Python | __init__.py | gthb/apache-log-reader | aa6b9f327ca18b3be20aaafb7758aba3f3eba4ad | [
"CC0-1.0"
] | 4 | 2015-02-02T18:26:30.000Z | 2019-11-05T08:52:45.000Z | __init__.py | pklaus/apache-log-reader | aa6b9f327ca18b3be20aaafb7758aba3f3eba4ad | [
"CC0-1.0"
] | null | null | null | __init__.py | pklaus/apache-log-reader | aa6b9f327ca18b3be20aaafb7758aba3f3eba4ad | [
"CC0-1.0"
] | 1 | 2016-03-06T07:39:56.000Z | 2016-03-06T07:39:56.000Z | from log_reader import ApacheReader
| 18 | 35 | 0.888889 | 5 | 36 | 6.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 36 | 1 | 36 | 36 | 0.96875 | 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 |
0fba077d4dbe9d46e1200f2c9be845daae29122b | 9,288 | py | Python | tests/test_bucketfs_utils.py | exasol/bucketfs-utils-python | 6eb2aed97ad9f4aaece47bdac5bc8a44fb42d921 | [
"MIT"
] | 1 | 2021-06-25T19:53:03.000Z | 2021-06-25T19:53:03.000Z | tests/test_bucketfs_utils.py | exasol/bucketfs-utils-python | 6eb2aed97ad9f4aaece47bdac5bc8a44fb42d921 | [
"MIT"
] | 42 | 2020-11-18T12:58:47.000Z | 2022-03-30T13:02:15.000Z | tests/test_bucketfs_utils.py | exasol/bucketfs-utils-python | 6eb2aed97ad9f4aaece47bdac5bc8a44fb42d921 | [
"MIT"
] | null | null | null | import pytest
from exasol_bucketfs_utils_python import bucketfs_utils
from exasol_bucketfs_utils_python.bucketfs_config import BucketFSConfig
from exasol_bucketfs_utils_python.bucketfs_connection_config import BucketFSConnectionConfig
from exasol_bucketfs_utils_python.bucket_config import BucketConfig
def test_gener... | 53.37931 | 117 | 0.724806 | 1,109 | 9,288 | 5.711452 | 0.064022 | 0.051784 | 0.075782 | 0.065677 | 0.931639 | 0.919324 | 0.893274 | 0.88838 | 0.88838 | 0.886486 | 0 | 0.014614 | 0.174849 | 9,288 | 173 | 118 | 53.687861 | 0.811848 | 0 | 0 | 0.673469 | 0 | 0.054422 | 0.178402 | 0.05491 | 0 | 0 | 0 | 0 | 0.088435 | 1 | 0.088435 | false | 0.006803 | 0.034014 | 0 | 0.122449 | 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 |
0fd5abc29af413741171d75359a1f23f496935e7 | 113 | py | Python | bitmovin_api_sdk/encoding/encodings/muxings/mp4/drm/clearkey/customdata/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 11 | 2019-07-03T10:41:16.000Z | 2022-02-25T21:48:06.000Z | bitmovin_api_sdk/encoding/encodings/muxings/mp4/drm/clearkey/customdata/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 8 | 2019-11-23T00:01:25.000Z | 2021-04-29T12:30:31.000Z | bitmovin_api_sdk/encoding/encodings/muxings/mp4/drm/clearkey/customdata/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 13 | 2020-01-02T14:58:18.000Z | 2022-03-26T12:10:30.000Z | from bitmovin_api_sdk.encoding.encodings.muxings.mp4.drm.clearkey.customdata.customdata_api import CustomdataApi
| 56.5 | 112 | 0.893805 | 15 | 113 | 6.533333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0.035398 | 113 | 1 | 113 | 113 | 0.889908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0fef440938b700c66262731a57adf0065a91fcc4 | 137 | py | Python | parser/fase2/team09/liteal.py | alerod620/tytus | 361c9500dfcd2a1c759a9079bd069fd1c3f1f92b | [
"MIT"
] | null | null | null | parser/fase2/team09/liteal.py | alerod620/tytus | 361c9500dfcd2a1c759a9079bd069fd1c3f1f92b | [
"MIT"
] | null | null | null | parser/fase2/team09/liteal.py | alerod620/tytus | 361c9500dfcd2a1c759a9079bd069fd1c3f1f92b | [
"MIT"
] | 1 | 2021-01-05T18:31:17.000Z | 2021-01-05T18:31:17.000Z | class Literal():
def __init__(self, literal):
self.literal = literal
def optimizacion(self):
return self.literal | 22.833333 | 32 | 0.642336 | 15 | 137 | 5.6 | 0.466667 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262774 | 137 | 6 | 33 | 22.833333 | 0.831683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
e8cf80fe8825c1716fba339d5d6f9bfff68b16d5 | 86 | py | Python | fastreid/modeling/backbones/regnet/__init__.py | tenghehan/reid_without_id | d1d0ff273b1ef19fc6da8cbbf210527779b37455 | [
"MIT"
] | 2,194 | 2020-04-06T01:37:56.000Z | 2022-03-30T22:17:28.000Z | fastreid/modeling/backbones/regnet/__init__.py | tenghehan/reid_without_id | d1d0ff273b1ef19fc6da8cbbf210527779b37455 | [
"MIT"
] | 542 | 2020-04-14T08:00:05.000Z | 2022-03-29T07:39:40.000Z | fastreid/modeling/backbones/regnet/__init__.py | tenghehan/reid_without_id | d1d0ff273b1ef19fc6da8cbbf210527779b37455 | [
"MIT"
] | 667 | 2020-04-08T02:06:03.000Z | 2022-03-29T00:57:32.000Z |
from .regnet import build_regnet_backbone
from .effnet import build_effnet_backbone
| 17.2 | 41 | 0.860465 | 12 | 86 | 5.833333 | 0.5 | 0.314286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 86 | 4 | 42 | 21.5 | 0.921053 | 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 |
2ccfba797d20e0b374bec4b08c5c9f251b17cd97 | 112 | py | Python | cogdl/wrappers/model_wrapper/clustering/__init__.py | li-ziang/cogdl | 60022d3334e3abae2d2a505e6e049a26acf10f39 | [
"MIT"
] | 6 | 2020-07-09T02:48:41.000Z | 2021-06-16T09:04:14.000Z | cogdl/wrappers/model_wrapper/clustering/__init__.py | li-ziang/cogdl | 60022d3334e3abae2d2a505e6e049a26acf10f39 | [
"MIT"
] | null | null | null | cogdl/wrappers/model_wrapper/clustering/__init__.py | li-ziang/cogdl | 60022d3334e3abae2d2a505e6e049a26acf10f39 | [
"MIT"
] | 1 | 2020-05-19T11:45:45.000Z | 2020-05-19T11:45:45.000Z | from .agc_mw import AGCModelWrapper
from .daegc_mw import DAEGCModelWrapper
from .gae_mw import GAEModelWrapper
| 28 | 39 | 0.866071 | 15 | 112 | 6.266667 | 0.6 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 112 | 3 | 40 | 37.333333 | 0.94 | 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 |
fa3ff9cdfb397fba37d4a8c45c694cc9c152b74b | 263 | py | Python | closed/Intel/code/common/baseBackend.py | ctuning/inference_results_v1.1 | d9176eca28fcf6d7a05ccb97994362a76a1eb5ab | [
"Apache-2.0"
] | 12 | 2021-09-23T08:05:57.000Z | 2022-03-21T03:52:11.000Z | closed/Intel/code/common/baseBackend.py | ctuning/inference_results_v1.1 | d9176eca28fcf6d7a05ccb97994362a76a1eb5ab | [
"Apache-2.0"
] | 11 | 2021-09-23T20:34:06.000Z | 2022-01-22T07:58:02.000Z | closed/Intel/code/common/baseBackend.py | ctuning/inference_results_v1.1 | d9176eca28fcf6d7a05ccb97994362a76a1eb5ab | [
"Apache-2.0"
] | 16 | 2021-09-23T20:26:38.000Z | 2022-03-09T12:59:56.000Z | """
abstract baseBackend class
"""
class baseBackend():
def __init__(self):
pass
def load_model(self):
raise NotImplementedError("baseBackend:load")
def predict(self):
raise NotImplementedError("baseBackend:predict") | 23.909091 | 56 | 0.65019 | 24 | 263 | 6.916667 | 0.5 | 0.108434 | 0.337349 | 0.46988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243346 | 263 | 11 | 56 | 23.909091 | 0.834171 | 0.098859 | 0 | 0 | 0 | 0 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.142857 | 0 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
fa4238a81332fb5edb2c387754428d027368debe | 184 | py | Python | services/director-v2/src/simcore_service_director_v2/api/dependencies/rabbitmq.py | elisabettai/osparc-simcore | ad7b6e05111b50fe95e49306a992170490a7247f | [
"MIT"
] | null | null | null | services/director-v2/src/simcore_service_director_v2/api/dependencies/rabbitmq.py | elisabettai/osparc-simcore | ad7b6e05111b50fe95e49306a992170490a7247f | [
"MIT"
] | 1 | 2021-11-29T13:38:09.000Z | 2021-11-29T13:38:09.000Z | services/director-v2/src/simcore_service_director_v2/api/dependencies/rabbitmq.py | mrnicegyu11/osparc-simcore | b6fa6c245dbfbc18cc74a387111a52de9b05d1f4 | [
"MIT"
] | null | null | null | from fastapi import Request
from ...modules.rabbitmq import RabbitMQClient
def get_rabbitmq_client(request: Request) -> RabbitMQClient:
return request.app.state.rabbitmq_client
| 23 | 60 | 0.809783 | 22 | 184 | 6.636364 | 0.590909 | 0.191781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119565 | 184 | 7 | 61 | 26.285714 | 0.901235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 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 |
fa564df5f2f55108b1b64b5e19a2e3915585784a | 7,711 | py | Python | tests/test_health_service.py | vmagamedov/asyncgrpc | 50742efdf2c2a14ba66c736dd6d1a9cc4bf6f467 | [
"BSD-3-Clause"
] | 6 | 2017-01-25T13:54:17.000Z | 2017-07-06T16:23:01.000Z | tests/test_health_service.py | vmagamedov/asyncgrpc | 50742efdf2c2a14ba66c736dd6d1a9cc4bf6f467 | [
"BSD-3-Clause"
] | null | null | null | tests/test_health_service.py | vmagamedov/asyncgrpc | 50742efdf2c2a14ba66c736dd6d1a9cc4bf6f467 | [
"BSD-3-Clause"
] | null | null | null | import asyncio
import pytest
import async_timeout
from grpclib.const import Status
from grpclib.testing import ChannelFor
from grpclib.exceptions import GRPCError
from grpclib.health.check import ServiceCheck, ServiceStatus
from grpclib.health.service import Health
from grpclib.health.v1.health_pb2 import HealthCheck... | 34.119469 | 80 | 0.619634 | 766 | 7,711 | 6.079634 | 0.122715 | 0.056689 | 0.051535 | 0.075585 | 0.840885 | 0.80889 | 0.789349 | 0.754778 | 0.754778 | 0.754778 | 0 | 0.012048 | 0.289586 | 7,711 | 225 | 81 | 34.271111 | 0.83808 | 0.014654 | 0 | 0.691099 | 0 | 0 | 0.009218 | 0.002765 | 0 | 0 | 0 | 0 | 0.104712 | 1 | 0.005236 | false | 0.020942 | 0.052356 | 0.005236 | 0.08377 | 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 |
d715e0eee1626fc28d030a932d58ec7fa0bbe1bd | 24 | py | Python | TempFolder/__init__.py | erv4gen/Tools-DataProcessing | 12d956b9757bfcde4a24e453779671b8daa7e74a | [
"MIT"
] | null | null | null | TempFolder/__init__.py | erv4gen/Tools-DataProcessing | 12d956b9757bfcde4a24e453779671b8daa7e74a | [
"MIT"
] | null | null | null | TempFolder/__init__.py | erv4gen/Tools-DataProcessing | 12d956b9757bfcde4a24e453779671b8daa7e74a | [
"MIT"
] | null | null | null | from . import TempFolder | 24 | 24 | 0.833333 | 3 | 24 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ad12d3b2890dec0a5a87b5bbc93aefaf13af066f | 4,907 | py | Python | tests/test_maintenance_delete.py | StackStorm-Exchange/zabbix | 8a613dad10808cc5cd2f32e278e09d189b067cdf | [
"Apache-2.0"
] | 10 | 2018-03-07T06:12:13.000Z | 2022-01-23T20:44:20.000Z | tests/test_maintenance_delete.py | StackStorm-Exchange/zabbix | 8a613dad10808cc5cd2f32e278e09d189b067cdf | [
"Apache-2.0"
] | 36 | 2017-10-28T07:23:57.000Z | 2021-08-18T14:38:47.000Z | tests/test_maintenance_delete.py | StackStorm-Exchange/zabbix | 8a613dad10808cc5cd2f32e278e09d189b067cdf | [
"Apache-2.0"
] | 21 | 2017-10-31T01:06:42.000Z | 2022-02-08T14:59:36.000Z | import mock
from zabbix_base_action_test_case import ZabbixBaseActionTestCase
from maintenance_delete import MaintenanceDelete
from six.moves.urllib.error import URLError
from pyzabbix.api import ZabbixAPIException
class MaintenanceDeleteTestCase(ZabbixBaseActionTestCase):
__test__ = True
action_cls = Maint... | 45.018349 | 92 | 0.709191 | 569 | 4,907 | 5.824253 | 0.112478 | 0.063368 | 0.047073 | 0.074532 | 0.837658 | 0.837658 | 0.837658 | 0.836451 | 0.836451 | 0.806578 | 0 | 0.001503 | 0.186468 | 4,907 | 108 | 93 | 45.435185 | 0.828657 | 0 | 0 | 0.688889 | 0 | 0 | 0.190952 | 0.109843 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.077778 | false | 0 | 0.055556 | 0 | 0.166667 | 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 |
ad5236d5bc70d9375cc60b2b1b2f237a75bec25f | 3,672 | py | Python | yt/frontends/swift/tests/test_outputs.py | cevans216/yt | c19c3c615b996c8a6e418362ffea9041a616d673 | [
"BSD-3-Clause-Clear"
] | null | null | null | yt/frontends/swift/tests/test_outputs.py | cevans216/yt | c19c3c615b996c8a6e418362ffea9041a616d673 | [
"BSD-3-Clause-Clear"
] | null | null | null | yt/frontends/swift/tests/test_outputs.py | cevans216/yt | c19c3c615b996c8a6e418362ffea9041a616d673 | [
"BSD-3-Clause-Clear"
] | null | null | null | import numpy as np
from yt import load
from yt.frontends.swift.api import SwiftDataset
from yt.testing import ParticleSelectionComparison, assert_almost_equal, requires_file
from yt.utilities.on_demand_imports import _h5py as h5py
keplerian_ring = "KeplerianRing/keplerian_ring_0020.hdf5"
EAGLE_6 = "EAGLE_6/eagle_0005... | 34 | 86 | 0.691993 | 542 | 3,672 | 4.494465 | 0.243542 | 0.036946 | 0.019704 | 0.037767 | 0.779557 | 0.767241 | 0.729475 | 0.729475 | 0.704023 | 0.670361 | 0 | 0.017149 | 0.190087 | 3,672 | 107 | 87 | 34.317757 | 0.80195 | 0.223039 | 0 | 0.757576 | 0 | 0 | 0.1097 | 0.021517 | 0 | 0 | 0 | 0 | 0.106061 | 1 | 0.060606 | false | 0 | 0.075758 | 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 |
ad6bd6b4c832a2c22e49e9edb56a670552bfea0a | 84 | py | Python | models/__init__.py | rwightman/pytorch-countception-sealion | a938b77d4629a48a9d0b01c9dc41e4f9f188ccd7 | [
"Apache-2.0"
] | 9 | 2017-11-09T09:01:11.000Z | 2019-11-19T03:07:26.000Z | models/__init__.py | rwightman/pytorch-countception-sealion | a938b77d4629a48a9d0b01c9dc41e4f9f188ccd7 | [
"Apache-2.0"
] | null | null | null | models/__init__.py | rwightman/pytorch-countception-sealion | a938b77d4629a48a9d0b01c9dc41e4f9f188ccd7 | [
"Apache-2.0"
] | 1 | 2020-03-30T09:04:44.000Z | 2020-03-30T09:04:44.000Z | from .model_cnet import ModelCnet
from .model_countception import ModelCountception
| 28 | 49 | 0.880952 | 10 | 84 | 7.2 | 0.7 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 84 | 2 | 50 | 42 | 0.947368 | 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 |
ad7036972304b002ce0a9fd805648e7dfa62247a | 21 | py | Python | src/imports/__init__.py | anthonyblanchettepotvin/colorium | 8b4927b1f615981c8a3c46f973339415695761d4 | [
"MIT"
] | null | null | null | src/imports/__init__.py | anthonyblanchettepotvin/colorium | 8b4927b1f615981c8a3c46f973339415695761d4 | [
"MIT"
] | null | null | null | src/imports/__init__.py | anthonyblanchettepotvin/colorium | 8b4927b1f615981c8a3c46f973339415695761d4 | [
"MIT"
] | null | null | null | from imports import * | 21 | 21 | 0.809524 | 3 | 21 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.944444 | 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 |
ad7b46618a07f7e517487755c13aca50ffd7f622 | 5,956 | py | Python | magenta/models/basic_rnn/basic_rnn_encoder_decoder_test.py | Sprog-gle/Magenta | 55bfd53f8112cf34952e67efc646b98523837f8f | [
"Apache-2.0"
] | null | null | null | magenta/models/basic_rnn/basic_rnn_encoder_decoder_test.py | Sprog-gle/Magenta | 55bfd53f8112cf34952e67efc646b98523837f8f | [
"Apache-2.0"
] | null | null | null | magenta/models/basic_rnn/basic_rnn_encoder_decoder_test.py | Sprog-gle/Magenta | 55bfd53f8112cf34952e67efc646b98523837f8f | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Google Inc. 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/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 45.465649 | 80 | 0.631464 | 1,092 | 5,956 | 3.260073 | 0.131868 | 0.282022 | 0.409551 | 0.532584 | 0.749438 | 0.749438 | 0.733146 | 0.689326 | 0.689326 | 0.689326 | 0 | 0.125213 | 0.212895 | 5,956 | 130 | 81 | 45.815385 | 0.634172 | 0.1046 | 0 | 0.618557 | 0 | 0 | 0.001505 | 0 | 0 | 0 | 0 | 0 | 0.175258 | 1 | 0.020619 | false | 0 | 0.030928 | 0 | 0.061856 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.