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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f4670c16d2ce392501632342f8452852bbfec954 | 133 | py | Python | test/__init__.py | ToyotaResearchInstitute/task_behavior_ros | 0bc58f88556c9029c9a579511e1fdab9bd58248b | [
"Apache-2.0"
] | 2 | 2017-02-16T00:47:39.000Z | 2018-05-12T13:34:17.000Z | test/__init__.py | ToyotaResearchInstitute/task_behavior_ros | 0bc58f88556c9029c9a579511e1fdab9bd58248b | [
"Apache-2.0"
] | 4 | 2017-02-17T19:05:22.000Z | 2017-05-04T17:41:26.000Z | test/__init__.py | ToyotaResearchInstitute/task_behavior_ros | 0bc58f88556c9029c9a579511e1fdab9bd58248b | [
"Apache-2.0"
] | 2 | 2019-03-08T06:45:25.000Z | 2022-03-08T10:08:00.000Z | import rospy
def setup_package():
rospy.init_node('test')
def teardown_package():
rospy.signal_shutdown('shutting down')
| 13.3 | 42 | 0.721805 | 17 | 133 | 5.411765 | 0.764706 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 133 | 9 | 43 | 14.777778 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.12782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | true | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
f46dfe554be8455a2dbb9d9203eafcdc2cedba39 | 50 | py | Python | autoscalingsim/scaling/policiesbuilder/scaled/scaling_aggregation_rules/parallel_rules_impl/__init__.py | Remit/autoscaling-simulator | 091943c0e9eedf9543e9305682a067ab60f56def | [
"MIT"
] | 6 | 2021-03-10T16:23:10.000Z | 2022-01-14T04:57:46.000Z | autoscalingsim/scaling/policiesbuilder/scaled/scaling_aggregation_rules/parallel_rules_impl/__init__.py | Remit/autoscaling-simulator | 091943c0e9eedf9543e9305682a067ab60f56def | [
"MIT"
] | null | null | null | autoscalingsim/scaling/policiesbuilder/scaled/scaling_aggregation_rules/parallel_rules_impl/__init__.py | Remit/autoscaling-simulator | 091943c0e9eedf9543e9305682a067ab60f56def | [
"MIT"
] | 1 | 2022-01-14T04:57:55.000Z | 2022-01-14T04:57:55.000Z | from .max_scale import *
from .min_scale import *
| 16.666667 | 24 | 0.76 | 8 | 50 | 4.5 | 0.625 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 50 | 2 | 25 | 25 | 0.857143 | 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 |
be5298bad8687277f340107b5f70d0c986d6fe98 | 5,015 | py | Python | tests/conversation_manager/test_search_rule.py | Rogggger/WeChatterBot | 377899e8cab4ca5eca9b0136207e2afb97d9acb2 | [
"BSD-3-Clause"
] | 1 | 2020-04-12T16:30:45.000Z | 2020-04-12T16:30:45.000Z | tests/conversation_manager/test_search_rule.py | Jack2313/WeChatterBot | 377899e8cab4ca5eca9b0136207e2afb97d9acb2 | [
"BSD-3-Clause"
] | 7 | 2020-04-11T13:22:50.000Z | 2020-05-14T00:19:37.000Z | tests/conversation_manager/test_search_rule.py | Jack2313/WeChatterBot | 377899e8cab4ca5eca9b0136207e2afb97d9acb2 | [
"BSD-3-Clause"
] | 3 | 2020-04-11T12:09:56.000Z | 2020-12-16T13:26:20.000Z | from unittest import TestCase
from app import create_app
from app.view.conversation_manager import generate_token
import json
class SearchRuleTestCase(TestCase):
"""
Unit tests for the Admin Search Rule.
LJF: all tests clear 2020-5-13
"""
def setUp(self):
self.app = create_app().test_clie... | 33.885135 | 61 | 0.579063 | 589 | 5,015 | 4.803056 | 0.14601 | 0.127253 | 0.068929 | 0.04666 | 0.79392 | 0.759279 | 0.738777 | 0.738777 | 0.728173 | 0.69848 | 0 | 0.043103 | 0.282951 | 5,015 | 147 | 62 | 34.115646 | 0.743604 | 0.013559 | 0 | 0.5625 | 1 | 0 | 0.163588 | 0.086665 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.101563 | false | 0 | 0.03125 | 0 | 0.140625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
be5c41052fd6659614600f51772827f2e34ad7a2 | 181 | py | Python | rx/operators/observable/create.py | yutiansut/RxPY | c3bbba77f9ebd7706c949141725e220096deabd4 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2018-11-16T09:07:13.000Z | 2018-11-16T09:07:13.000Z | rx/operators/observable/create.py | yutiansut/RxPY | c3bbba77f9ebd7706c949141725e220096deabd4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | rx/operators/observable/create.py | yutiansut/RxPY | c3bbba77f9ebd7706c949141725e220096deabd4 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-05-08T08:23:08.000Z | 2020-05-08T08:23:08.000Z | from rx.core import AnonymousObservable
def create(subscribe):
def _subscribe(observer, _=None):
return subscribe(observer)
return AnonymousObservable(_subscribe)
| 22.625 | 42 | 0.756906 | 18 | 181 | 7.444444 | 0.611111 | 0.253731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171271 | 181 | 7 | 43 | 25.857143 | 0.893333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.2 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
a3b35a69034a9a0c0be2e9ad16c1f5b49ce95c1b | 4,968 | py | Python | test/integration/022_bigquery_test/test_bigquery_changing_partitions.py | joellabes/dbt | 1060035838650a30e86989cbf2693db7720ff002 | [
"Apache-2.0"
] | null | null | null | test/integration/022_bigquery_test/test_bigquery_changing_partitions.py | joellabes/dbt | 1060035838650a30e86989cbf2693db7720ff002 | [
"Apache-2.0"
] | null | null | null | test/integration/022_bigquery_test/test_bigquery_changing_partitions.py | joellabes/dbt | 1060035838650a30e86989cbf2693db7720ff002 | [
"Apache-2.0"
] | null | null | null | from test.integration.base import DBTIntegrationTest, FakeArgs, use_profile
import json
class TestChangingPartitions(DBTIntegrationTest):
@property
def schema(self):
return "bigquery_test_022"
@property
def models(self):
return "partition-models"
def run_changes(self, before, af... | 43.2 | 125 | 0.598027 | 547 | 4,968 | 5.149909 | 0.131627 | 0.085907 | 0.096557 | 0.107916 | 0.817891 | 0.787007 | 0.785588 | 0.768548 | 0.719915 | 0.703585 | 0 | 0.005333 | 0.245169 | 4,968 | 114 | 126 | 43.578947 | 0.745867 | 0 | 0 | 0.547368 | 0 | 0 | 0.24537 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.157895 | false | 0.010526 | 0.021053 | 0.021053 | 0.210526 | 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 |
a3ba0c91ed1aec4b38a95f7ae24936f7ecc4162a | 624 | py | Python | tests/test_operators.py | dvillacis/BilevelImagingToolbox | 99b259499b68141283601ccddb5732bb38f44d24 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2020-11-13T07:44:26.000Z | 2021-06-01T21:09:00.000Z | tests/test_operators.py | dvillacis/BilevelImagingToolbox | 99b259499b68141283601ccddb5732bb38f44d24 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/test_operators.py | dvillacis/BilevelImagingToolbox | 99b259499b68141283601ccddb5732bb38f44d24 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2020-09-09T15:34:18.000Z | 2020-09-09T15:34:18.000Z | import numpy as np
from bilevel_imaging_toolbox import operators
x = np.array([[1,2,3],[4,5,6],[7,8,9]])
print('Forward differences')
op = operators.make_finite_differences_operator((3,3),'fn',1)
print(op.val(x)[:,:,0])
print(op.val(x)[:,:,1])
y = op.val(x)
print(op.conj(y))
print('Backward differences')
op = operat... | 24 | 61 | 0.669872 | 115 | 624 | 3.53913 | 0.313043 | 0.154791 | 0.132678 | 0.162162 | 0.739558 | 0.739558 | 0.739558 | 0.739558 | 0.739558 | 0.348894 | 0 | 0.041667 | 0.076923 | 624 | 25 | 62 | 24.96 | 0.664931 | 0 | 0 | 0.571429 | 0 | 0 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 0.571429 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
a3db6f635cb6cf36755c320fba4ecd16e4d8746d | 18,411 | py | Python | scripts/manage_bonus.py | lamproot/telegramh5 | 7e4e9c7b32956c70f269cb630bb68b604e0d13f5 | [
"WTFPL"
] | 1 | 2018-10-10T04:03:07.000Z | 2018-10-10T04:03:07.000Z | scripts/manage_bonus.py | lamproot/telegramh5 | 7e4e9c7b32956c70f269cb630bb68b604e0d13f5 | [
"WTFPL"
] | null | null | null | scripts/manage_bonus.py | lamproot/telegramh5 | 7e4e9c7b32956c70f269cb630bb68b604e0d13f5 | [
"WTFPL"
] | 1 | 2019-10-12T11:16:22.000Z | 2019-10-12T11:16:22.000Z | #encoding:utf-8
import mysql
import datetime
import sys
default_encoding = 'utf-8'
if sys.getdefaultencoding() != default_encoding:
reload(sys)
sys.setdefaultencoding(default_encoding)
conn = mysql.db()
now = datetime.datetime.now()
now_second = datetime.datetime.now().strftime('%s')
# 最大分红比例
def maxcash(us... | 37.269231 | 171 | 0.663679 | 2,430 | 18,411 | 4.865021 | 0.069959 | 0.040941 | 0.055828 | 0.066994 | 0.77618 | 0.768144 | 0.768144 | 0.755118 | 0.739046 | 0.738454 | 0 | 0.019412 | 0.182988 | 18,411 | 493 | 172 | 37.344828 | 0.76652 | 0.013525 | 0 | 0.602978 | 0 | 0.124069 | 0.422757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.007444 | null | null | 0.002481 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a3f2ac7f104016f3a45e8901add2779ecdab6422 | 64 | py | Python | catch/__init__.py | Small-Bodies-Node/catch | 880b8ea9bf4cea430cd54c2a319d0a05b0930239 | [
"BSD-3-Clause"
] | 2 | 2019-07-17T14:34:51.000Z | 2020-03-25T16:05:03.000Z | catch/__init__.py | Small-Bodies-Node/catch | 880b8ea9bf4cea430cd54c2a319d0a05b0930239 | [
"BSD-3-Clause"
] | null | null | null | catch/__init__.py | Small-Bodies-Node/catch | 880b8ea9bf4cea430cd54c2a319d0a05b0930239 | [
"BSD-3-Clause"
] | null | null | null | from .catch import *
from .config import *
from . import schema
| 16 | 21 | 0.734375 | 9 | 64 | 5.222222 | 0.555556 | 0.425532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 64 | 3 | 22 | 21.333333 | 0.903846 | 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 |
43338eb2417ed4740dac2beed88a4649aadc4a5c | 143 | py | Python | 02-URLs-and-Templates-Lab/djangoProject/djangoProject/main_app/views.py | M0673N/Python-Web-Basics | cecc27f7a12f990756edcc8885290eb3b2e487b7 | [
"MIT"
] | null | null | null | 02-URLs-and-Templates-Lab/djangoProject/djangoProject/main_app/views.py | M0673N/Python-Web-Basics | cecc27f7a12f990756edcc8885290eb3b2e487b7 | [
"MIT"
] | null | null | null | 02-URLs-and-Templates-Lab/djangoProject/djangoProject/main_app/views.py | M0673N/Python-Web-Basics | cecc27f7a12f990756edcc8885290eb3b2e487b7 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
def show_main_app(request):
return render(request, 'main_app/index.html')
| 17.875 | 49 | 0.762238 | 21 | 143 | 5.047619 | 0.809524 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146853 | 143 | 7 | 50 | 20.428571 | 0.868852 | 0.160839 | 0 | 0 | 0 | 0 | 0.161017 | 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 |
4334bf33213599d7b6fee77a854809fc600b8ed4 | 51,687 | py | Python | src/nn_doc_retrieval/nn_doc_model.py | Derrors/Combine-FEVER-NSMN | e3458ee99f086e3d44c9da3ec3e2885511cd42c2 | [
"MIT"
] | 4 | 2020-10-09T16:46:56.000Z | 2022-01-03T18:42:24.000Z | src/nn_doc_retrieval/nn_doc_model.py | Frankey419/combine-FEVER-NSMN | 8577ad47092c052d6c0456415cb2eebc2a392984 | [
"MIT"
] | 4 | 2020-11-02T01:00:33.000Z | 2020-11-02T01:07:45.000Z | src/nn_doc_retrieval/nn_doc_model.py | Frankey419/combine-FEVER-NSMN | 8577ad47092c052d6c0456415cb2eebc2a392984 | [
"MIT"
] | 2 | 2020-12-10T12:50:45.000Z | 2021-03-06T11:26:53.000Z | import random
import torch
from allennlp.data.iterators import BasicIterator
from allennlp.data.token_indexers import SingleIdTokenIndexer, ELMoTokenCharactersIndexer
from allennlp.modules import Embedding, Elmo
from torch import nn
from utils import fever_db
import numpy as np
import os
import config
from data_util... | 40.827014 | 218 | 0.67456 | 6,994 | 51,687 | 4.619817 | 0.068058 | 0.024697 | 0.020426 | 0.038439 | 0.828294 | 0.80861 | 0.790133 | 0.776082 | 0.766674 | 0.752716 | 0 | 0.038511 | 0.219301 | 51,687 | 1,266 | 219 | 40.827014 | 0.762217 | 0.125409 | 0 | 0.677019 | 0 | 0.014907 | 0.133004 | 0.06099 | 0 | 0 | 0 | 0 | 0.008696 | 1 | 0.027329 | false | 0 | 0.028571 | 0 | 0.070807 | 0.095652 | 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 |
433fdb86b35046ed2a1fdbc23b831aecd9c596ef | 3,167 | py | Python | src/masonite/foundation/response_handler.py | cercos/masonite | f7f220efa7fae833683e9f07ce13c3795a87d3b8 | [
"MIT"
] | 1,816 | 2018-02-14T01:59:51.000Z | 2022-03-31T17:09:20.000Z | src/masonite/foundation/response_handler.py | cercos/masonite | f7f220efa7fae833683e9f07ce13c3795a87d3b8 | [
"MIT"
] | 340 | 2018-02-11T00:27:26.000Z | 2022-03-21T12:00:24.000Z | src/masonite/foundation/response_handler.py | cercos/masonite | f7f220efa7fae833683e9f07ce13c3795a87d3b8 | [
"MIT"
] | 144 | 2018-03-18T00:08:16.000Z | 2022-02-26T01:51:58.000Z | def response_handler(environ, start_response):
"""The WSGI Application Server.
Arguments:
environ {dict} -- The WSGI environ dictionary
start_response {WSGI callable}
Returns:
WSGI Response
"""
from wsgi import application
application.bind("environ", environ)
"""A... | 30.747573 | 84 | 0.680455 | 414 | 3,167 | 5.140097 | 0.241546 | 0.039474 | 0.036654 | 0.022556 | 0.912124 | 0.912124 | 0.912124 | 0.912124 | 0.912124 | 0.912124 | 0 | 0.00504 | 0.248184 | 3,167 | 102 | 85 | 31.04902 | 0.888702 | 0.182507 | 0 | 0.666667 | 0 | 0 | 0.059316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 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 |
4a48931199e538f0123a6fc15897848b7bd0be42 | 7,043 | py | Python | rayml/tests/data_checks_tests/test_id_columns_data_check.py | gcode-ai/rayml | 92c4f3c6041f465fee27a6c03bd7959c4ef21124 | [
"BSD-3-Clause"
] | null | null | null | rayml/tests/data_checks_tests/test_id_columns_data_check.py | gcode-ai/rayml | 92c4f3c6041f465fee27a6c03bd7959c4ef21124 | [
"BSD-3-Clause"
] | null | null | null | rayml/tests/data_checks_tests/test_id_columns_data_check.py | gcode-ai/rayml | 92c4f3c6041f465fee27a6c03bd7959c4ef21124 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import pandas as pd
import pytest
from rayml.data_checks import (
DataCheckActionCode,
DataCheckActionOption,
DataCheckMessageCode,
DataCheckWarning,
IDColumnsDataCheck,
)
id_data_check_name = IDColumnsDataCheck.name
def test_id_cols_data_check_init():
id_cols_check = IDCo... | 34.694581 | 112 | 0.554451 | 836 | 7,043 | 4.356459 | 0.108852 | 0.076606 | 0.103515 | 0.061779 | 0.842669 | 0.809171 | 0.799561 | 0.772378 | 0.737781 | 0.737781 | 0 | 0.050448 | 0.318898 | 7,043 | 202 | 113 | 34.866337 | 0.708776 | 0.009371 | 0 | 0.61236 | 0 | 0.011236 | 0.149742 | 0 | 0 | 0 | 0 | 0 | 0.067416 | 1 | 0.022472 | false | 0 | 0.022472 | 0 | 0.044944 | 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 |
4a58d391afe88dcc2260da8a76b168b2bad55abb | 26 | py | Python | simpleFEA/elements/__init__.py | robsiegwart/simpleFEA | 7c3f757a4bf92675cdc597c7e479b8a9925a6a69 | [
"MIT"
] | 1 | 2022-02-01T11:08:31.000Z | 2022-02-01T11:08:31.000Z | simpleFEA/elements/__init__.py | robsiegwart/simpleFEA | 7c3f757a4bf92675cdc597c7e479b8a9925a6a69 | [
"MIT"
] | null | null | null | simpleFEA/elements/__init__.py | robsiegwart/simpleFEA | 7c3f757a4bf92675cdc597c7e479b8a9925a6a69 | [
"MIT"
] | null | null | null | from .Link2D import Link2D | 26 | 26 | 0.846154 | 4 | 26 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.115385 | 26 | 1 | 26 | 26 | 0.869565 | 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 |
4a7488f4da9dfdd657dfe772c55b4b600581c568 | 204 | py | Python | Server/fcm.py | Barengific/CharmHome | 5ea89f35bc18863bd6c649b1574d30853a4dce82 | [
"MIT"
] | null | null | null | Server/fcm.py | Barengific/CharmHome | 5ea89f35bc18863bd6c649b1574d30853a4dce82 | [
"MIT"
] | null | null | null | Server/fcm.py | Barengific/CharmHome | 5ea89f35bc18863bd6c649b1574d30853a4dce82 | [
"MIT"
] | null | null | null |
import firebase_admin
from firebase_admin import credentials
default_app = firebase_admin.initialize_app()
cred = credentials.Certificate("serviceAccountKey.json")
firebase_admin.initialize_app(cred)
| 20.4 | 56 | 0.848039 | 24 | 204 | 6.916667 | 0.5 | 0.313253 | 0.277108 | 0.313253 | 0.361446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 204 | 9 | 57 | 22.666667 | 0.887701 | 0 | 0 | 0 | 0 | 0 | 0.108374 | 0.108374 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
4a863d1c66be2bf5e86073191f41a21882bbe6f6 | 152 | py | Python | convert/tranform.py | dishantvyas15/nora-covid-19-bot | 1c2935728603de75ad2f76584eeaabad715f4007 | [
"MIT"
] | 12 | 2020-06-30T07:04:10.000Z | 2021-11-08T15:06:40.000Z | convert/tranform.py | dishantvyas15/nora-covid-19-bot | 1c2935728603de75ad2f76584eeaabad715f4007 | [
"MIT"
] | 13 | 2020-07-18T13:41:03.000Z | 2021-10-30T05:21:56.000Z | convert/tranform.py | dishantvyas15/nora-covid-19-bot | 1c2935728603de75ad2f76584eeaabad715f4007 | [
"MIT"
] | 19 | 2020-06-12T07:07:59.000Z | 2022-02-05T18:46:02.000Z | from rasa.nlu.convert import convert_training_data
convert_training_data(data_file="./input.json", out_file="./nlu.md", output_format="md", language="") | 76 | 101 | 0.789474 | 23 | 152 | 4.913043 | 0.652174 | 0.265487 | 0.336283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046053 | 152 | 2 | 101 | 76 | 0.77931 | 0 | 0 | 0 | 0 | 0 | 0.143791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
435e97748185eff1c863cc54f4580b6ab1ca8874 | 487 | py | Python | CodeWarsKataStuff/Replace multiple items.py | perrymant/CodeWarsKataStuff | 20eb25a3f0070aee5f5ae9a03a656acd5557c021 | [
"MIT"
] | null | null | null | CodeWarsKataStuff/Replace multiple items.py | perrymant/CodeWarsKataStuff | 20eb25a3f0070aee5f5ae9a03a656acd5557c021 | [
"MIT"
] | null | null | null | CodeWarsKataStuff/Replace multiple items.py | perrymant/CodeWarsKataStuff | 20eb25a3f0070aee5f5ae9a03a656acd5557c021 | [
"MIT"
] | null | null | null | t = '########### ###########\n########## ##########\n######### #########\n######## ########\n####### #######\n###### ######\n##### #####\n#### ####\n### ###\n## ##\n# #\n \n'
d... | 69.571429 | 318 | 0.203285 | 36 | 487 | 2.722222 | 0.333333 | 0.22449 | 0.306122 | 0.367347 | 0.122449 | 0.122449 | 0.122449 | 0.122449 | 0.122449 | 0.122449 | 0 | 0.006711 | 0.38809 | 487 | 6 | 319 | 81.166667 | 0.322148 | 0 | 0 | 0 | 0 | 0.166667 | 0.661191 | 0.090349 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4380b268eb19407d280bd87c6259e77617c392ea | 7,204 | py | Python | tests/test_fio.py | MaggieQi/spartan | 24b9f977d0a9ae99e672bf90d80a0f22ac41d133 | [
"Apache-2.0"
] | null | null | null | tests/test_fio.py | MaggieQi/spartan | 24b9f977d0a9ae99e672bf90d80a0f22ac41d133 | [
"Apache-2.0"
] | null | null | null | tests/test_fio.py | MaggieQi/spartan | 24b9f977d0a9ae99e672bf90d80a0f22ac41d133 | [
"Apache-2.0"
] | null | null | null | from spartan import expr, util
from spartan.util import Assert
import test_common
import numpy as np
from scipy import sparse as sp
import os
from spartan.config import FLAGS
import unittest
class TestFIO(test_common.ClusterTest):
test_dir = None
test_dir2 = None
def create_path(self):
if self.test_dir == N... | 49.342466 | 104 | 0.679484 | 1,167 | 7,204 | 4.03856 | 0.092545 | 0.086569 | 0.107363 | 0.088267 | 0.870359 | 0.858477 | 0.844685 | 0.815829 | 0.800976 | 0.757479 | 0 | 0.02912 | 0.161022 | 7,204 | 145 | 105 | 49.682759 | 0.750662 | 0.013187 | 0 | 0.457364 | 0 | 0 | 0.157191 | 0 | 0 | 0 | 0 | 0 | 0.178295 | 1 | 0.062016 | false | 0 | 0.069767 | 0 | 0.155039 | 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 |
43b6ac3af3dca32fd7b3c58e4af1fe8e08dcfb92 | 80 | py | Python | JDjango/api/djangotools/urls/__init__.py | JIYANG-PLUS/JDjango | 57cbb13b2b4c07f34d546c0c637c22f60c1e692a | [
"MIT"
] | 3 | 2020-12-28T05:09:02.000Z | 2021-06-23T10:02:03.000Z | JDjango/api/djangotools/urls/__init__.py | JIYANG-PLUS/JDjango | 57cbb13b2b4c07f34d546c0c637c22f60c1e692a | [
"MIT"
] | null | null | null | JDjango/api/djangotools/urls/__init__.py | JIYANG-PLUS/JDjango | 57cbb13b2b4c07f34d546c0c637c22f60c1e692a | [
"MIT"
] | null | null | null | from .gets import *
from .sets import *
from .judge import *
from .fix import *
| 16 | 20 | 0.7 | 12 | 80 | 4.666667 | 0.5 | 0.535714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 80 | 4 | 21 | 20 | 0.875 | 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 |
43b8af01b527b7b3935d667412b4d5f90b7cee18 | 21 | py | Python | src/vscodeextension/src/test/testfiles/python/01_function.py | DarkTrick/SourceCodeVisualizer | 8a68c36cfdbffdb87593c1c558e82abec66dbfc2 | [
"BSD-3-Clause"
] | 11 | 2022-03-03T13:02:07.000Z | 2022-03-20T19:37:14.000Z | src/vscodeextension/src/test/testfiles/python/01_function.py | DarkTrick/SourceCodeVisualizer | 8a68c36cfdbffdb87593c1c558e82abec66dbfc2 | [
"BSD-3-Clause"
] | 1 | 2022-03-07T20:56:40.000Z | 2022-03-09T04:00:25.000Z | src/vscodeextension/src/test/testfiles/python/01_function.py | DarkTrick/SourceCodeVisualizer | 8a68c36cfdbffdb87593c1c558e82abec66dbfc2 | [
"BSD-3-Clause"
] | 1 | 2022-01-27T03:15:28.000Z | 2022-01-27T03:15:28.000Z | def foo():
return 5 | 10.5 | 10 | 0.619048 | 4 | 21 | 3.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.238095 | 21 | 2 | 11 | 10.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 6 |
600f74acae2cc449dbb7b4a83689cc5a106f29c9 | 37 | py | Python | elliot/recommender/latent_factor_models/MF/__init__.py | gategill/elliot | 113763ba6d595976e14ead2e3d460d9705cd882e | [
"Apache-2.0"
] | 175 | 2021-03-04T15:46:25.000Z | 2022-03-31T05:56:58.000Z | elliot/recommender/latent_factor_models/MF/__init__.py | gategill/elliot | 113763ba6d595976e14ead2e3d460d9705cd882e | [
"Apache-2.0"
] | 15 | 2021-03-06T17:53:56.000Z | 2022-03-24T17:02:07.000Z | elliot/recommender/latent_factor_models/MF/__init__.py | gategill/elliot | 113763ba6d595976e14ead2e3d460d9705cd882e | [
"Apache-2.0"
] | 39 | 2021-03-04T15:46:26.000Z | 2022-03-09T15:37:12.000Z | from .matrix_factorization import MF
| 18.5 | 36 | 0.864865 | 5 | 37 | 6.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 37 | 1 | 37 | 37 | 0.939394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6011049b2ca167ca23fc367736f5ade3a47da20d | 191 | py | Python | twitchbot/util/__init__.py | cvangheem/Twitchbot | 48bb065951e88e4d2e9ef8d0c1a3afb0150a5eb5 | [
"MIT"
] | null | null | null | twitchbot/util/__init__.py | cvangheem/Twitchbot | 48bb065951e88e4d2e9ef8d0c1a3afb0150a5eb5 | [
"MIT"
] | null | null | null | twitchbot/util/__init__.py | cvangheem/Twitchbot | 48bb065951e88e4d2e9ef8d0c1a3afb0150a5eb5 | [
"MIT"
] | null | null | null | from .register_util import *
from .twitch_api_util import *
from .message_util import *
from .task_util import *
from .misc_util import *
from .command_util import *
from .dict_util import *
| 23.875 | 30 | 0.780105 | 29 | 191 | 4.862069 | 0.37931 | 0.496454 | 0.595745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146597 | 191 | 7 | 31 | 27.285714 | 0.865031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
601d6729a21b1bacc009432d67eb89f1dcb0c9ce | 24 | py | Python | mytoolbox/__init__.py | bruno154/project-4-cardio-catch-disease | 24942c356689dd0f733259c12a5479d8b0e62adf | [
"MIT"
] | null | null | null | mytoolbox/__init__.py | bruno154/project-4-cardio-catch-disease | 24942c356689dd0f733259c12a5479d8b0e62adf | [
"MIT"
] | null | null | null | mytoolbox/__init__.py | bruno154/project-4-cardio-catch-disease | 24942c356689dd0f733259c12a5479d8b0e62adf | [
"MIT"
] | null | null | null | from .mytoolbox import * | 24 | 24 | 0.791667 | 3 | 24 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6049244c3ce9fc1d1c2a8fc1925a47eaa6d59fe5 | 7,935 | py | Python | shutterstock_api/__init__.py | Lumen5/shutterstock-api | d26db2c9cd6688cf828ad15478bf1b4701150a3f | [
"Adobe-Glyph"
] | 1 | 2021-02-23T16:15:16.000Z | 2021-02-23T16:15:16.000Z | shutterstock_api/__init__.py | Lumen5/shutterstock-api | d26db2c9cd6688cf828ad15478bf1b4701150a3f | [
"Adobe-Glyph"
] | 17 | 2019-07-13T01:23:08.000Z | 2022-03-21T07:17:35.000Z | shutterstock_api/__init__.py | Lumen5/shutterstock-api | d26db2c9cd6688cf828ad15478bf1b4701150a3f | [
"Adobe-Glyph"
] | 1 | 2021-03-07T19:16:27.000Z | 2021-03-07T19:16:27.000Z | # coding: utf-8
# flake8: noqa
"""
Shutterstock API Reference
The Shutterstock API provides access to Shutterstock's library of media, as well as information about customers' accounts and the contributors that provide the media. # noqa: E501
OpenAPI spec version: 1.0.11
Generated by: https://g... | 62.480315 | 184 | 0.904852 | 961 | 7,935 | 7.190427 | 0.207076 | 0.232272 | 0.288712 | 0.347323 | 0.462808 | 0.274385 | 0.06686 | 0.01563 | 0 | 0 | 0 | 0.001213 | 0.064776 | 7,935 | 126 | 185 | 62.97619 | 0.929929 | 0.051544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6049ccddeed2e144cbe9fe1ff93de70bd55c6964 | 3,281 | py | Python | igparser/dump.py | HudaJr/TAGRAM | da58f0a47dd3f0be51f33240f23815ac682108fa | [
"MIT"
] | null | null | null | igparser/dump.py | HudaJr/TAGRAM | da58f0a47dd3f0be51f33240f23815ac682108fa | [
"MIT"
] | null | null | null | igparser/dump.py | HudaJr/TAGRAM | da58f0a47dd3f0be51f33240f23815ac682108fa | [
"MIT"
] | 3 | 2020-08-05T06:50:57.000Z | 2020-10-15T12:35:59.000Z | from . import parsing
from . import output
from . import exception
from .checker import *
import re
def post_home(ses):
html = ses.session.get("https://instagram.com").text
json_ = parsing.get_dataLoaded(html)
data = json_["user"]["edge_web_feed_timeline"]["edges"]
data = parsing.sorting(lambda x: output... | 53.786885 | 249 | 0.72295 | 428 | 3,281 | 5.366822 | 0.21729 | 0.027862 | 0.033957 | 0.047018 | 0.828037 | 0.812364 | 0.780148 | 0.734872 | 0.734872 | 0.734872 | 0 | 0.037543 | 0.10698 | 3,281 | 60 | 250 | 54.683333 | 0.746416 | 0 | 0 | 0.416667 | 0 | 0.041667 | 0.292857 | 0.031056 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.104167 | 0 | 0.354167 | 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 |
60743680cda564c7b313515305c8043b39525fc7 | 110 | py | Python | jobs/admin.py | diegolis/search_job | 65b7898d587a61eba008ea1503bf2b3410ac6a98 | [
"Apache-2.0"
] | null | null | null | jobs/admin.py | diegolis/search_job | 65b7898d587a61eba008ea1503bf2b3410ac6a98 | [
"Apache-2.0"
] | null | null | null | jobs/admin.py | diegolis/search_job | 65b7898d587a61eba008ea1503bf2b3410ac6a98 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from models import *
admin.site.register(Company)
admin.site.register(Job)
| 15.714286 | 32 | 0.8 | 16 | 110 | 5.5 | 0.625 | 0.25 | 0.386364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 110 | 6 | 33 | 18.333333 | 0.897959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
6078d3c309cf4c391fd53ab96c862248c0fd79f6 | 58 | py | Python | maili-develop/home/conf.py | fortyMiles/my-family | d827b7fa36753726318fcf9e55d0b482fdf8323d | [
"BSD-3-Clause"
] | null | null | null | maili-develop/home/conf.py | fortyMiles/my-family | d827b7fa36753726318fcf9e55d0b482fdf8323d | [
"BSD-3-Clause"
] | null | null | null | maili-develop/home/conf.py | fortyMiles/my-family | d827b7fa36753726318fcf9e55d0b482fdf8323d | [
"BSD-3-Clause"
] | null | null | null | default_home_pic = '2211f3027e6e682361c552cd6c721e08.png'
| 29 | 57 | 0.87931 | 5 | 58 | 9.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.436364 | 0.051724 | 58 | 1 | 58 | 58 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0.62069 | 0.62069 | 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 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
60cf3cd23a7fb56ece82848669b34446cc6120c6 | 37 | py | Python | bloomfilter/__init__.py | coneco/Bloomfilter4py3 | 5b9780619a12b74eab5a942e718857d7742b9ce7 | [
"MIT"
] | 2 | 2017-08-21T07:47:09.000Z | 2018-09-04T07:32:11.000Z | bloomfilter/__init__.py | coneco/Bloomfilter4py3 | 5b9780619a12b74eab5a942e718857d7742b9ce7 | [
"MIT"
] | null | null | null | bloomfilter/__init__.py | coneco/Bloomfilter4py3 | 5b9780619a12b74eab5a942e718857d7742b9ce7 | [
"MIT"
] | null | null | null | from .bloomfilter import Bloomfilter
| 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 |
60e133a81b293957a9942cef93486d6162210b2a | 264 | py | Python | declare_qtquick/control/__init__.py | likianta/declare-qtquick | 93c2ce49d841ccdeb0272085c5f731139927f0d7 | [
"MIT"
] | 3 | 2021-11-02T03:45:27.000Z | 2022-03-27T05:33:36.000Z | declare_qtquick/control/__init__.py | likianta/declare-qtquick | 93c2ce49d841ccdeb0272085c5f731139927f0d7 | [
"MIT"
] | null | null | null | declare_qtquick/control/__init__.py | likianta/declare-qtquick | 93c2ce49d841ccdeb0272085c5f731139927f0d7 | [
"MIT"
] | null | null | null | from . import traits
from .context_manager import ctx_mgr
from .id_system import gen_id
from .id_system import get_id_level
from .id_system import id_gen
from .id_system import id_mgr
from .traits import ConstantEnumeration
from .traits import PropGetterAndSetter
| 29.333333 | 39 | 0.848485 | 42 | 264 | 5.071429 | 0.333333 | 0.112676 | 0.225352 | 0.338028 | 0.187793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 264 | 8 | 40 | 33 | 0.918103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7149f02f3ef06df258411e73ce69baeffe81b5a3 | 18,635 | py | Python | maccorcyclingdata/.ipynb_checkpoints/validate-checkpoint.py | jasonkuo88/maccorcyclingdata | dffcc5bbb4135f025b44303243928f8f0b121af9 | [
"MIT"
] | 2 | 2021-03-29T15:34:22.000Z | 2022-03-12T13:52:40.000Z | maccorcyclingdata/.ipynb_checkpoints/validate-checkpoint.py | jasonkuo88/maccorcyclingdata | dffcc5bbb4135f025b44303243928f8f0b121af9 | [
"MIT"
] | 10 | 2020-08-25T22:25:59.000Z | 2021-08-23T20:51:10.000Z | maccorcyclingdata/.ipynb_checkpoints/validate-checkpoint.py | jasonkuo88/maccorcyclingdata | dffcc5bbb4135f025b44303243928f8f0b121af9 | [
"MIT"
] | 2 | 2020-10-12T20:48:35.000Z | 2021-10-02T00:11:26.000Z | import pandas as pd
import numpy as np
from datetime import datetime
from maccorcyclingdata.schedules import sort_scheduler_steps
def validation_check_time_interval(validation_df, df, time_interval, i, cell_id):
"""
This function will validate the testdata to make sure data was collected regularly at the corre... | 38.661826 | 291 | 0.660692 | 2,487 | 18,635 | 4.761158 | 0.084037 | 0.121611 | 0.037835 | 0.048982 | 0.853053 | 0.832278 | 0.799088 | 0.783971 | 0.782535 | 0.732708 | 0 | 0.005729 | 0.231876 | 18,635 | 481 | 292 | 38.742204 | 0.821503 | 0.495305 | 0 | 0.460177 | 0 | 0 | 0.198331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079646 | false | 0.026549 | 0.035398 | 0 | 0.274336 | 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 |
714f9d3f4f4a5f201df7ef9f0f102851763cc714 | 125 | py | Python | python/testData/quickFixes/PyAddImportQuickFixTest/existingImportsAlwaysSuggestedFirstEvenIfLonger/main.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2018-12-29T09:53:39.000Z | 2018-12-29T09:53:42.000Z | python/testData/quickFixes/PyAddImportQuickFixTest/existingImportsAlwaysSuggestedFirstEvenIfLonger/main.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/quickFixes/PyAddImportQuickFixTest/existingImportsAlwaysSuggestedFirstEvenIfLonger/main.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | from long.pkg.path import ClassA
print(ClassA())
print(<error descr="Unresolved reference 'ClassB'">Clas<caret>sB</error>()) | 31.25 | 75 | 0.752 | 18 | 125 | 5.222222 | 0.833333 | 0.234043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072 | 125 | 4 | 75 | 31.25 | 0.810345 | 0 | 0 | 0 | 0 | 0 | 0.230159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
7190234ea8b280d2856bddcbc8a27cb3729d451a | 77 | py | Python | py_tdlib/constructors/user_privacy_setting_show_status.py | Mr-TelegramBot/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 24 | 2018-10-05T13:04:30.000Z | 2020-05-12T08:45:34.000Z | py_tdlib/constructors/user_privacy_setting_show_status.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 3 | 2019-06-26T07:20:20.000Z | 2021-05-24T13:06:56.000Z | py_tdlib/constructors/user_privacy_setting_show_status.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 5 | 2018-10-05T14:29:28.000Z | 2020-08-11T15:04:10.000Z | from ..factory import Type
class userPrivacySettingShowStatus(Type):
pass
| 12.833333 | 41 | 0.805195 | 8 | 77 | 7.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12987 | 77 | 5 | 42 | 15.4 | 0.925373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
71de123d0d018de3759c10675b0bc70377b0c8c8 | 62 | py | Python | Python-Study/Randoms/Swappying_Values.py | Lucas-Dalamarta/My-Studies | a86157a5009f746faf6b1084f4c71c37aabe050f | [
"MIT"
] | null | null | null | Python-Study/Randoms/Swappying_Values.py | Lucas-Dalamarta/My-Studies | a86157a5009f746faf6b1084f4c71c37aabe050f | [
"MIT"
] | null | null | null | Python-Study/Randoms/Swappying_Values.py | Lucas-Dalamarta/My-Studies | a86157a5009f746faf6b1084f4c71c37aabe050f | [
"MIT"
] | null | null | null | n1 = 10
n2 = 20
print(n1,n2)
n1 , n2 = n2 ,n1
print(n1,n2)
| 6.888889 | 16 | 0.548387 | 14 | 62 | 2.428571 | 0.357143 | 0.352941 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.311111 | 0.274194 | 62 | 8 | 17 | 7.75 | 0.444444 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e0a1cde44ef395bc024c7e21f4999faab23c98e5 | 220 | py | Python | backend/producer_adapters/AbstractProducerAdapter.py | hslu-ige-laes/GEE_OpenHAB_EMS | 9a0fa2d772b701f54a0bbf78eaee1378685871d0 | [
"MIT"
] | 3 | 2021-05-25T20:04:42.000Z | 2021-05-26T06:20:09.000Z | backend/producer_adapters/AbstractProducerAdapter.py | hslu-ige-laes/GEE_OpenHAB_EMS | 9a0fa2d772b701f54a0bbf78eaee1378685871d0 | [
"MIT"
] | null | null | null | backend/producer_adapters/AbstractProducerAdapter.py | hslu-ige-laes/GEE_OpenHAB_EMS | 9a0fa2d772b701f54a0bbf78eaee1378685871d0 | [
"MIT"
] | null | null | null | class AbstractProducerAdapter:
def __init__(self, config: dict):
self.config = config
def get_current_energy_production(self) -> float:
""" Returns the current energy production """
pass
| 27.5 | 53 | 0.668182 | 23 | 220 | 6.086957 | 0.652174 | 0.142857 | 0.328571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245455 | 220 | 7 | 54 | 31.428571 | 0.843373 | 0.168182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.2 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
e0c6271e24d43bb758283c882431e7b6cac4b8d5 | 221 | py | Python | gym/envs/yumi/__init__.py | carlo-/gym | 7e7575601a0df5476ab9b15072c8b65693ce3071 | [
"Python-2.0",
"OLDAP-2.7"
] | 1 | 2021-01-08T18:18:43.000Z | 2021-01-08T18:18:43.000Z | gym/envs/yumi/__init__.py | carlo-/gym | 7e7575601a0df5476ab9b15072c8b65693ce3071 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | gym/envs/yumi/__init__.py | carlo-/gym | 7e7575601a0df5476ab9b15072c8b65693ce3071 | [
"Python-2.0",
"OLDAP-2.7"
] | 1 | 2019-07-31T18:40:26.000Z | 2019-07-31T18:40:26.000Z | from .yumi_env import YumiReachLeftArmEnv, YumiReachRightArmEnv, YumiReachTwoArmsEnv
from .yumi_env import YumiBarEnv, YumiLiftEnv
from .yumi_stepped import YumiSteppedEnv
from .yumi_constrained import YumiConstrainedEnv
| 44.2 | 84 | 0.882353 | 23 | 221 | 8.304348 | 0.565217 | 0.167539 | 0.115183 | 0.17801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085973 | 221 | 4 | 85 | 55.25 | 0.945545 | 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 | 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 |
e0de52d677797064744c2f2b9be561e1083b8f81 | 139 | py | Python | tamr_client/dataset/__init__.py | abafzal/tamr-client | 9e6708ee8521910557ce8de146be4f6f278681ea | [
"Apache-2.0"
] | null | null | null | tamr_client/dataset/__init__.py | abafzal/tamr-client | 9e6708ee8521910557ce8de146be4f6f278681ea | [
"Apache-2.0"
] | null | null | null | tamr_client/dataset/__init__.py | abafzal/tamr-client | 9e6708ee8521910557ce8de146be4f6f278681ea | [
"Apache-2.0"
] | null | null | null | from tamr_client.dataset import dataframe, record, unified
from tamr_client.dataset._dataset import attributes, from_resource_id, NotFound
| 46.333333 | 79 | 0.863309 | 19 | 139 | 6.052632 | 0.631579 | 0.13913 | 0.243478 | 0.365217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086331 | 139 | 2 | 80 | 69.5 | 0.905512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 |
e0f2aeb3a153c7eadd52aa4ccf92c4cbaed8fc99 | 102,142 | py | Python | allel/test/io/test_vcf_read.py | smbadiwe/scikit-allel | 4432362fc2dea5706ad358f6b4bab4186fb70a60 | [
"MIT"
] | null | null | null | allel/test/io/test_vcf_read.py | smbadiwe/scikit-allel | 4432362fc2dea5706ad358f6b4bab4186fb70a60 | [
"MIT"
] | null | null | null | allel/test/io/test_vcf_read.py | smbadiwe/scikit-allel | 4432362fc2dea5706ad358f6b4bab4186fb70a60 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import io
import os
import shutil
import itertools
import gzip
import warnings
import tempfile
import atexit
import zarr
import h5py
import numpy as np
from numpy.testing import assert_array_equal, assert_array_almost_equal
import pytest
from pytest import approx
from allel.io.vcf_read import ... | 36.531474 | 91 | 0.569609 | 13,871 | 102,142 | 4.066758 | 0.039146 | 0.0273 | 0.008137 | 0.008225 | 0.873498 | 0.840844 | 0.804343 | 0.766548 | 0.740542 | 0.724233 | 0 | 0.038698 | 0.26379 | 102,142 | 2,795 | 92 | 36.544544 | 0.711442 | 0.030839 | 0 | 0.6751 | 0 | 0.037284 | 0.207808 | 0.069762 | 0 | 0 | 0 | 0 | 0.293387 | 1 | 0.041278 | false | 0.015979 | 0.008877 | 0.000444 | 0.051043 | 0.000444 | 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 |
460583f24fc71192a0d98ebe262aca81c8b40bc9 | 319 | py | Python | hubspot/crm/quotes/api/__init__.py | fakepop/hubspot-api-python | f04103a09f93f5c26c99991b25fa76801074f3d3 | [
"Apache-2.0"
] | 117 | 2020-04-06T08:22:53.000Z | 2022-03-18T03:41:29.000Z | hubspot/crm/quotes/api/__init__.py | fakepop/hubspot-api-python | f04103a09f93f5c26c99991b25fa76801074f3d3 | [
"Apache-2.0"
] | 62 | 2020-04-06T16:21:06.000Z | 2022-03-17T16:50:44.000Z | hubspot/crm/quotes/api/__init__.py | fakepop/hubspot-api-python | f04103a09f93f5c26c99991b25fa76801074f3d3 | [
"Apache-2.0"
] | 45 | 2020-04-06T16:13:52.000Z | 2022-03-30T21:33:17.000Z | from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from hubspot.crm.quotes.api.associations_api import AssociationsApi
from hubspot.crm.quotes.api.basic_api import BasicApi
from hubspot.crm.quotes.api.batch_api import BatchApi
from hubspot.crm.quotes.api.search_api import SearchApi
| 31.9 | 67 | 0.84326 | 48 | 319 | 5.416667 | 0.4375 | 0.169231 | 0.215385 | 0.307692 | 0.353846 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003472 | 0.097179 | 319 | 9 | 68 | 35.444444 | 0.899306 | 0.128527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4615ae734f34dbcd82057bf39d21ed059d963f67 | 30,897 | py | Python | code/pyto/io/test/test_image_io.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 12 | 2020-01-08T01:33:02.000Z | 2022-03-16T00:25:34.000Z | code/pyto/io/test/test_image_io.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 8 | 2019-12-19T19:34:56.000Z | 2022-03-10T10:11:28.000Z | code/pyto/io/test/test_image_io.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 2 | 2022-03-30T13:12:22.000Z | 2022-03-30T18:12:10.000Z | """
Tests module image_io
# Author: Vladan Lucic
# $Id:$
"""
from __future__ import unicode_literals
from __future__ import print_function
__version__ = "$Revision:$"
from copy import copy, deepcopy
import pickle
import os.path
import unittest
import numpy
import numpy.testing as np_test
import scipy
from pyto.... | 42.094005 | 91 | 0.55329 | 4,188 | 30,897 | 3.888013 | 0.074021 | 0.061168 | 0.120862 | 0.13468 | 0.855616 | 0.829024 | 0.808819 | 0.790948 | 0.773445 | 0.761776 | 0 | 0.090901 | 0.302845 | 30,897 | 733 | 92 | 42.151432 | 0.665042 | 0.066932 | 0 | 0.676522 | 0 | 0 | 0.068811 | 0.001537 | 0 | 0 | 0 | 0 | 0.278261 | 1 | 0.008696 | false | 0.006957 | 0.017391 | 0 | 0.027826 | 0.010435 | 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 |
1cd875b375001a6fbd439f63afc553b39c54817a | 143 | py | Python | pyloads/__init__.py | GonMazzini/pyloads | 77e03901667ee4e854f74cf8538b5ffb21418063 | [
"MIT"
] | 2 | 2021-01-04T06:56:45.000Z | 2021-01-27T17:27:50.000Z | pyloads/__init__.py | GonMazzini/pyloads | 77e03901667ee4e854f74cf8538b5ffb21418063 | [
"MIT"
] | null | null | null | pyloads/__init__.py | GonMazzini/pyloads | 77e03901667ee4e854f74cf8538b5ffb21418063 | [
"MIT"
] | null | null | null | from pyloads.static_loads import Rotor
from pyloads.aerodynamic_profiles import AeroProfiles
from pyloads.blade_data import BladeFeatures
| 15.888889 | 53 | 0.86014 | 18 | 143 | 6.666667 | 0.666667 | 0.275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118881 | 143 | 8 | 54 | 17.875 | 0.952381 | 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 |
e818b8c4203ee8f10f2fdac847d8d14443a65c16 | 7,488 | py | Python | applications/Ma-Net/networks/loss.py | Simon-liusheng/PaddleVideo | 6c35b68bc745c659813d6517eecade9c9508a628 | [
"Apache-2.0"
] | 1 | 2022-02-19T23:50:49.000Z | 2022-02-19T23:50:49.000Z | applications/Ma-Net/networks/loss.py | liutinglong/PaddleVideo | 6b8a723360ac652ca7aafa1908e6c67a67cf5ea5 | [
"Apache-2.0"
] | 1 | 2022-01-14T02:33:28.000Z | 2022-01-14T02:33:28.000Z | applications/Ma-Net/networks/loss.py | Thinksky5124/PaddleVideo | c8e9c5ff53d99bd70bfeb6246a53e668064a9940 | [
"Apache-2.0"
] | null | null | null | import paddle
import paddle.nn as nn
import os
class Added_BCEWithLogitsLoss(nn.Layer):
def __init__(self,
top_k_percent_pixels=None,
hard_example_mining_step=100000):
super(Added_BCEWithLogitsLoss, self).__init__()
self.top_k_percent_pixels = top_k_percent_pixels... | 48.623377 | 85 | 0.538061 | 879 | 7,488 | 4.248009 | 0.11149 | 0.051419 | 0.091323 | 0.141136 | 0.819497 | 0.765399 | 0.760578 | 0.742635 | 0.7188 | 0.7188 | 0 | 0.020694 | 0.380475 | 7,488 | 153 | 86 | 48.941176 | 0.784221 | 0.047676 | 0 | 0.641791 | 0 | 0 | 0.005896 | 0 | 0 | 0 | 0 | 0 | 0.022388 | 1 | 0.044776 | false | 0 | 0.022388 | 0 | 0.11194 | 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 |
1c14b01699893af15c95d36878d94ede3b2b8cc7 | 49 | py | Python | prototype/test/pythonvm_book/test_if.py | zoloypzuo/ZeloPy | 43d9242a509737fe1bb66deba73aa9e749b53c62 | [
"MIT"
] | null | null | null | prototype/test/pythonvm_book/test_if.py | zoloypzuo/ZeloPy | 43d9242a509737fe1bb66deba73aa9e749b53c62 | [
"MIT"
] | null | null | null | prototype/test/pythonvm_book/test_if.py | zoloypzuo/ZeloPy | 43d9242a509737fe1bb66deba73aa9e749b53c62 | [
"MIT"
] | null | null | null | if 2 > 1:
print 2
else:
print 1
print 3
| 7 | 11 | 0.530612 | 10 | 49 | 2.6 | 0.6 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 0.408163 | 49 | 6 | 12 | 8.166667 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.6 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
1c15e75e09765002801a510caa2b7f76dde6c19e | 182 | py | Python | src/lib/trains/train_factory.py | EvelynYihuiYang/MCMOT | 8ea20b57d836cc8f8efe1b13dead3e5d8511c16d | [
"MIT"
] | 306 | 2020-05-29T06:59:37.000Z | 2022-03-23T06:00:55.000Z | src/lib/trains/train_factory.py | EvelynYihuiYang/MCMOT | 8ea20b57d836cc8f8efe1b13dead3e5d8511c16d | [
"MIT"
] | 92 | 2020-06-26T10:15:25.000Z | 2022-03-27T11:46:31.000Z | src/lib/trains/train_factory.py | EvelynYihuiYang/MCMOT | 8ea20b57d836cc8f8efe1b13dead3e5d8511c16d | [
"MIT"
] | 79 | 2020-06-22T03:14:34.000Z | 2022-03-17T08:09:13.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .mot import MotTrainer
train_factory = {
'mot': MotTrainer,
}
| 18.2 | 38 | 0.802198 | 22 | 182 | 5.954545 | 0.5 | 0.229008 | 0.366412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 182 | 9 | 39 | 20.222222 | 0.850649 | 0 | 0 | 0 | 0 | 0 | 0.016484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0.142857 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
98bd5c789b123af45bb3be41cc82a7e27ed568f1 | 27 | py | Python | build/lib/rowingdata/__init__.py | sanderroosendaal/rowingdata | efd8aa1566a926f11fb3f6b5b340665bc26028c4 | [
"MIT"
] | 4 | 2017-04-24T15:20:46.000Z | 2021-02-12T23:03:29.000Z | rowingdata/__init__.py | sanderroosendaal/rowingdata | efd8aa1566a926f11fb3f6b5b340665bc26028c4 | [
"MIT"
] | 38 | 2016-11-02T07:57:50.000Z | 2022-01-22T13:25:14.000Z | build/lib/rowingdata/__init__.py | sanderroosendaal/rowingdata | efd8aa1566a926f11fb3f6b5b340665bc26028c4 | [
"MIT"
] | 6 | 2017-01-19T21:39:46.000Z | 2021-11-16T14:48:58.000Z | from .rowingdata import *
| 9 | 25 | 0.740741 | 3 | 27 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 27 | 2 | 26 | 13.5 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
98fda314abac492789d82fa79773a04e1a203504 | 36 | py | Python | tests/unit/cli/test_archives.py | tehlingchu/anchore-cli | b0df36337f443749991a49263227c1d40989debb | [
"Apache-2.0"
] | 110 | 2017-09-14T02:15:15.000Z | 2022-03-30T20:14:21.000Z | tests/unit/cli/test_archives.py | tehlingchu/anchore-cli | b0df36337f443749991a49263227c1d40989debb | [
"Apache-2.0"
] | 115 | 2017-09-22T12:15:30.000Z | 2022-01-17T12:31:21.000Z | tests/unit/cli/test_archives.py | tehlingchu/anchore-cli | b0df36337f443749991a49263227c1d40989debb | [
"Apache-2.0"
] | 56 | 2017-09-22T11:26:25.000Z | 2022-03-03T14:14:58.000Z | from anchorecli.cli import archives
| 18 | 35 | 0.861111 | 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 |
c718beea4e0b0d05c44c0091939d68a37dbbedb3 | 27 | py | Python | discordtextsanitizer/__init__.py | mikeshardmind/discord-text-sanitizer | 3a842f622abe29c1d9a2bb41b5782a178272f166 | [
"MIT"
] | null | null | null | discordtextsanitizer/__init__.py | mikeshardmind/discord-text-sanitizer | 3a842f622abe29c1d9a2bb41b5782a178272f166 | [
"MIT"
] | null | null | null | discordtextsanitizer/__init__.py | mikeshardmind/discord-text-sanitizer | 3a842f622abe29c1d9a2bb41b5782a178272f166 | [
"MIT"
] | null | null | null | from ._sanitizers import *
| 13.5 | 26 | 0.777778 | 3 | 27 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 0.869565 | 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 |
c72aba9f4de44d7ea8672629b92cccf91c5614db | 7,801 | py | Python | Lv1_data_bin.py | masonng-astro/nicerpy_xrayanalysis | c21c7c9bc5570c63c986197fb363ae80691515d5 | [
"MIT"
] | 3 | 2020-01-13T20:13:14.000Z | 2021-06-03T21:58:08.000Z | Lv1_data_bin.py | masonng-astro/nicerpy_xrayanalysis | c21c7c9bc5570c63c986197fb363ae80691515d5 | [
"MIT"
] | null | null | null | Lv1_data_bin.py | masonng-astro/nicerpy_xrayanalysis | c21c7c9bc5570c63c986197fb363ae80691515d5 | [
"MIT"
] | 2 | 2020-01-15T15:08:40.000Z | 2021-07-09T11:49:30.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Tues Jan 8 2:11pm 2019
Extracting the GTIs from the FITS files. Use the event_cl files.
"""
from __future__ import division, print_function
from astropy.io import fits
import numpy as np
import Lv0_dirs,Lv1_data_filter
from scipy import stats
import matplot... | 46.712575 | 151 | 0.689399 | 1,333 | 7,801 | 3.885221 | 0.126782 | 0.047886 | 0.019309 | 0.014868 | 0.876038 | 0.860012 | 0.860012 | 0.855764 | 0.829504 | 0.815601 | 0 | 0.027979 | 0.202795 | 7,801 | 166 | 152 | 46.993976 | 0.804792 | 0.357134 | 0 | 0.556818 | 0 | 0 | 0.174474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034091 | false | 0 | 0.068182 | 0 | 0.136364 | 0.045455 | 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 |
c72dd5e6413fc77787b5ef6104241242682c1a54 | 2,482 | py | Python | apps/accounts/tests/test_models.py | Intellia-SME/OptiPLANT | 1d40b62f00b3fff940499fa27d0c2d59e7e6dd4c | [
"Apache-2.0"
] | 1 | 2022-01-26T18:07:22.000Z | 2022-01-26T18:07:22.000Z | apps/accounts/tests/test_models.py | Intellia-SME/OptiPLANT | 1d40b62f00b3fff940499fa27d0c2d59e7e6dd4c | [
"Apache-2.0"
] | null | null | null | apps/accounts/tests/test_models.py | Intellia-SME/OptiPLANT | 1d40b62f00b3fff940499fa27d0c2d59e7e6dd4c | [
"Apache-2.0"
] | 1 | 2022-01-26T18:07:26.000Z | 2022-01-26T18:07:26.000Z | from django.contrib.auth import get_user_model
from django.core.exceptions import ValidationError
from django.test import TestCase
UserModel = get_user_model()
class CustomUserTests(TestCase):
@classmethod
def setUpTestData(cls):
cls.user = UserModel.objects.create_user(username='guest', email="guest... | 48.666667 | 119 | 0.710314 | 311 | 2,482 | 5.575563 | 0.199357 | 0.096886 | 0.101499 | 0.096886 | 0.77624 | 0.77624 | 0.77624 | 0.77624 | 0.77624 | 0.749712 | 0 | 0.006886 | 0.180903 | 2,482 | 50 | 120 | 49.64 | 0.845548 | 0 | 0 | 0.375 | 0 | 0 | 0.140612 | 0 | 0 | 0 | 0 | 0 | 0.35 | 1 | 0.2 | false | 0.175 | 0.075 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
c74d105b2c83507858c856fc2580011a228f63dd | 2,062 | py | Python | app.py | codesydney/censusplus_nsw_employmentrate | 882e6f0986c6456c16240e5af6f23c3025042710 | [
"CC-BY-4.0"
] | null | null | null | app.py | codesydney/censusplus_nsw_employmentrate | 882e6f0986c6456c16240e5af6f23c3025042710 | [
"CC-BY-4.0"
] | null | null | null | app.py | codesydney/censusplus_nsw_employmentrate | 882e6f0986c6456c16240e5af6f23c3025042710 | [
"CC-BY-4.0"
] | null | null | null | ###########################################################################
# Modified the table for Employment Rate- Albert Molina 13-03-2018 #
###########################################################################
from flask import Flask, g, request, jsonify
from database import get_db
app = Flas... | 36.821429 | 153 | 0.572745 | 207 | 2,062 | 5.468599 | 0.246377 | 0.159011 | 0.026502 | 0.028269 | 0.772085 | 0.772085 | 0.772085 | 0.772085 | 0.772085 | 0.772085 | 0 | 0.005031 | 0.228904 | 2,062 | 56 | 154 | 36.821429 | 0.706918 | 0.031038 | 0 | 0.717949 | 0 | 0 | 0.257431 | 0.01346 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.051282 | 0 | 0.153846 | 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 |
c766fa0664a0fe1a17c4d8004a13b1ebf1a62a44 | 194 | py | Python | tests/test_data.py | jstaf/gapminder | 54606882845ecebc3523c9602d17c78a968a2700 | [
"BSD-3-Clause"
] | 3 | 2018-09-27T02:09:10.000Z | 2021-07-29T02:13:48.000Z | tests/test_data.py | jstaf/gapminder | 54606882845ecebc3523c9602d17c78a968a2700 | [
"BSD-3-Clause"
] | null | null | null | tests/test_data.py | jstaf/gapminder | 54606882845ecebc3523c9602d17c78a968a2700 | [
"BSD-3-Clause"
] | null | null | null | '''
Just make sure the data can be loaded on all supported Python versions.
'''
def test_load_gapminder():
from gapminder import gapminder
assert gapminder.iloc[0, 0] == 'Afghanistan'
| 21.555556 | 71 | 0.721649 | 27 | 194 | 5.111111 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.185567 | 194 | 8 | 72 | 24.25 | 0.860759 | 0.365979 | 0 | 0 | 0 | 0 | 0.096491 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c78928ef494f86c9bcba298be7663c1e71b4ad1f | 32,292 | py | Python | skyline_apiserver/policy/manager/trove.py | openstack/skyline-apiserver | 60144767cd5513bd581fbb8eac7791887d5b276f | [
"Apache-2.0"
] | null | null | null | skyline_apiserver/policy/manager/trove.py | openstack/skyline-apiserver | 60144767cd5513bd581fbb8eac7791887d5b276f | [
"Apache-2.0"
] | null | null | null | skyline_apiserver/policy/manager/trove.py | openstack/skyline-apiserver | 60144767cd5513bd581fbb8eac7791887d5b276f | [
"Apache-2.0"
] | null | null | null | from . import base
list_rules = (
base.Rule(
name="admin",
check_str=("role:admin or is_admin:True"),
description="Must be an administrator.",
),
base.Rule(
name="admin_or_owner",
check_str=("rule:admin or project_id:%(tenant)s"),
description="Must... | 42.65786 | 135 | 0.566208 | 3,589 | 32,292 | 4.936194 | 0.045974 | 0.072646 | 0.034771 | 0.069542 | 0.919734 | 0.884003 | 0.864134 | 0.840032 | 0.82242 | 0.815478 | 0 | 0.007393 | 0.262759 | 32,292 | 756 | 136 | 42.714286 | 0.736758 | 0.001208 | 0 | 0.611406 | 0 | 0.001326 | 0.511623 | 0.245903 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.001326 | 0.001326 | 0 | 0.001326 | 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 |
c7cfe43fce7595bc77bd26082d55fa1170fea575 | 88 | py | Python | examples/plugins/workbench/AcmeLab/acme/workbench/perspective/api.py | janvonrickenbach/Envisage_wxPhoenix_py3 | cf79e5b2a0c3b46898a60b5fe5a2fb580604808b | [
"BSD-3-Clause"
] | null | null | null | examples/plugins/workbench/AcmeLab/acme/workbench/perspective/api.py | janvonrickenbach/Envisage_wxPhoenix_py3 | cf79e5b2a0c3b46898a60b5fe5a2fb580604808b | [
"BSD-3-Clause"
] | 1 | 2017-05-22T21:15:22.000Z | 2017-05-22T21:15:22.000Z | examples/plugins/workbench/AcmeLab/acme/workbench/perspective/api.py | janvonrickenbach/Envisage_wxPhoenix_py3 | cf79e5b2a0c3b46898a60b5fe5a2fb580604808b | [
"BSD-3-Clause"
] | 1 | 2019-10-01T07:03:58.000Z | 2019-10-01T07:03:58.000Z | from .bar_perspective import BarPerspective
from .foo_perspective import FooPerspective
| 29.333333 | 43 | 0.886364 | 10 | 88 | 7.6 | 0.7 | 0.447368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 88 | 2 | 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 | 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 |
c7e5d34715ab642e0c6d911a1c1e53f70ac3f30e | 38 | py | Python | tests/form/__init__.py | warownia1/Slivca | 5491afec63c8cd41d6f1389a5dd0ba9877b888a1 | [
"Apache-2.0"
] | 5 | 2016-09-01T15:30:46.000Z | 2019-07-15T12:26:46.000Z | tests/form/__init__.py | warownia1/Slivca | 5491afec63c8cd41d6f1389a5dd0ba9877b888a1 | [
"Apache-2.0"
] | 75 | 2016-08-31T11:32:49.000Z | 2021-05-12T14:33:17.000Z | tests/form/__init__.py | warownia1/Slivca | 5491afec63c8cd41d6f1389a5dd0ba9877b888a1 | [
"Apache-2.0"
] | 3 | 2017-06-01T10:21:04.000Z | 2020-06-12T10:32:49.000Z | from .custom_field import CustomField
| 19 | 37 | 0.868421 | 5 | 38 | 6.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 38 | 1 | 38 | 38 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4009d0663db2ae5a73ba8a95e75bec1ce83e8b09 | 70 | py | Python | FoodMarket/1.py | Starrynighty0917/FoodMarket | 7978cc7671d52f1ba421d8db8c463870a4866328 | [
"MIT"
] | null | null | null | FoodMarket/1.py | Starrynighty0917/FoodMarket | 7978cc7671d52f1ba421d8db8c463870a4866328 | [
"MIT"
] | null | null | null | FoodMarket/1.py | Starrynighty0917/FoodMarket | 7978cc7671d52f1ba421d8db8c463870a4866328 | [
"MIT"
] | null | null | null | from FoodMarket.settings import BASE_DIR
print(":::::::::"+BASE_DIR) | 17.5 | 40 | 0.7 | 9 | 70 | 5.222222 | 0.777778 | 0.297872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 70 | 4 | 41 | 17.5 | 0.734375 | 0 | 0 | 0 | 0 | 0 | 0.126761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
401b57739e52107ddcd28ee48fea336718c3c96b | 1,371 | py | Python | RecoMET/METProducers/python/METSignificanceParams_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | RecoMET/METProducers/python/METSignificanceParams_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | RecoMET/METProducers/python/METSignificanceParams_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
METSignificanceParams = cms.PSet(
# jet resolutions
jetThreshold = cms.double(15),
#jet-lepton matching dR
dRMatch = cms.double(0.4),
# eta bins for jet resolution tuning
jeta = cms.vdouble(0.8, 1.3, 1.9, 2.5),
# tuning parame... | 31.159091 | 113 | 0.617797 | 217 | 1,371 | 3.889401 | 0.35023 | 0.118483 | 0.078199 | 0.07109 | 0.810427 | 0.810427 | 0.810427 | 0.810427 | 0.810427 | 0.810427 | 0 | 0.191246 | 0.233406 | 1,371 | 43 | 114 | 31.883721 | 0.611798 | 0.480671 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 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 |
401e81bb2bdd923f8c901b49121472e38efa1cc1 | 35,636 | py | Python | irlmethods/general_deep_maxent.py | ranok92/deepirl | 88c7e76986243cf0b988d8d7dc0eef6b58e07864 | [
"MIT"
] | 2 | 2019-01-04T22:03:15.000Z | 2019-04-03T00:16:11.000Z | irlmethods/general_deep_maxent.py | ranok92/deepirl | 88c7e76986243cf0b988d8d7dc0eef6b58e07864 | [
"MIT"
] | null | null | null | irlmethods/general_deep_maxent.py | ranok92/deepirl | 88c7e76986243cf0b988d8d7dc0eef6b58e07864 | [
"MIT"
] | null | null | null | """
Implements deep maxent IRL (Wulfmeier et. all) in a general, feature-type
agnostic way.
"""
import sys
import random
from pathlib import Path
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.optim import Adam
from tensorboardX import SummaryWriter
sys.path.insert(0, "..")
from neural_n... | 31.425044 | 82 | 0.599282 | 4,132 | 35,636 | 4.897144 | 0.071394 | 0.028466 | 0.029553 | 0.045466 | 0.902001 | 0.89276 | 0.872152 | 0.868495 | 0.865135 | 0.851791 | 0 | 0.007283 | 0.32571 | 35,636 | 1,133 | 83 | 31.45278 | 0.834825 | 0.262038 | 0 | 0.686765 | 0 | 0 | 0.033062 | 0.000888 | 0 | 0 | 0 | 0.00353 | 0 | 1 | 0.029412 | false | 0 | 0.019118 | 0 | 0.064706 | 0.005882 | 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 |
4022aeed50e201cee8d2db6f51544e9857935e63 | 89 | py | Python | src/superlists/lists/views.py | ryuji0123/tdd_with_python | 500f96c8aff6d01a9f2dbb7470cd341019304748 | [
"MIT"
] | null | null | null | src/superlists/lists/views.py | ryuji0123/tdd_with_python | 500f96c8aff6d01a9f2dbb7470cd341019304748 | [
"MIT"
] | null | null | null | src/superlists/lists/views.py | ryuji0123/tdd_with_python | 500f96c8aff6d01a9f2dbb7470cd341019304748 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
def home_page():
pass
| 14.833333 | 35 | 0.741573 | 13 | 89 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191011 | 89 | 5 | 36 | 17.8 | 0.902778 | 0.258427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 6 |
40434ba961e770c5310c1a405296f60272acd88b | 116 | py | Python | bolo/src/bolo/auth/__init__.py | KrazyKahunaGuy/Bolo-Backend-Basic-Authentication- | a0c893674ecf3c73d6c5267298334167dd400670 | [
"BSD-3-Clause"
] | null | null | null | bolo/src/bolo/auth/__init__.py | KrazyKahunaGuy/Bolo-Backend-Basic-Authentication- | a0c893674ecf3c73d6c5267298334167dd400670 | [
"BSD-3-Clause"
] | null | null | null | bolo/src/bolo/auth/__init__.py | KrazyKahunaGuy/Bolo-Backend-Basic-Authentication- | a0c893674ecf3c73d6c5267298334167dd400670 | [
"BSD-3-Clause"
] | null | null | null | from flask import Blueprint
auth = Blueprint("auth", __name__, url_prefix="/user")
from bolo.auth import endpoints | 23.2 | 54 | 0.775862 | 16 | 116 | 5.3125 | 0.6875 | 0.305882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 116 | 5 | 55 | 23.2 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
405d00a57fe20265bb2a4768a85b12127a254203 | 49 | py | Python | carvajal/__init__.py | coalfire/carvajal | d1f36f840629835ce52b3005ca7d38093c6abead | [
"MIT"
] | null | null | null | carvajal/__init__.py | coalfire/carvajal | d1f36f840629835ce52b3005ca7d38093c6abead | [
"MIT"
] | null | null | null | carvajal/__init__.py | coalfire/carvajal | d1f36f840629835ce52b3005ca7d38093c6abead | [
"MIT"
] | null | null | null | """
Carvajal
"""
from carvajal import __about__
| 8.166667 | 30 | 0.714286 | 5 | 49 | 6.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 49 | 5 | 31 | 9.8 | 0.756098 | 0.163265 | 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 |
405fdfb4c2669bec4514074455b72c6c2d5a3d1e | 912 | py | Python | selenium-examples/pytest/vdc/tests/test_add_to_cart.py | sauceaaron/demo-python | cd7e0a8a9860771000a231371e64d7728f930d0c | [
"MIT"
] | null | null | null | selenium-examples/pytest/vdc/tests/test_add_to_cart.py | sauceaaron/demo-python | cd7e0a8a9860771000a231371e64d7728f930d0c | [
"MIT"
] | null | null | null | selenium-examples/pytest/vdc/tests/test_add_to_cart.py | sauceaaron/demo-python | cd7e0a8a9860771000a231371e64d7728f930d0c | [
"MIT"
] | 1 | 2021-12-07T16:18:36.000Z | 2021-12-07T16:18:36.000Z | import pytest
def test_add_to_cart(vdc_driver):
vdc_driver.get('https://www.saucedemo.com/inventory.html')
vdc_driver.find_element_by_class_name('btn_primary').click()
assert vdc_driver.find_element_by_class_name('shopping_cart_badge').text == '1'
vdc_driver.get('https://www.saucedemo.com/cart.html'... | 38 | 83 | 0.767544 | 139 | 912 | 4.611511 | 0.251799 | 0.182527 | 0.141966 | 0.156006 | 0.939158 | 0.939158 | 0.939158 | 0.939158 | 0.939158 | 0.939158 | 0 | 0.00489 | 0.10307 | 912 | 23 | 84 | 39.652174 | 0.778729 | 0 | 0 | 0.5625 | 0 | 0 | 0.286184 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.1875 | 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 |
409f9d9fbe9d37260565c8ac3ce63b5fda2b679f | 38 | py | Python | ipwebcam/__init__.py | Michael-Jalloh/IPWebcam | dbc41f76f112bb4071758d6d72c1c93acaec7304 | [
"MIT"
] | 9 | 2017-11-16T06:15:56.000Z | 2020-02-05T16:36:28.000Z | ipwebcam/__init__.py | Michael-Jalloh/ipwebcam | dbc41f76f112bb4071758d6d72c1c93acaec7304 | [
"MIT"
] | null | null | null | ipwebcam/__init__.py | Michael-Jalloh/ipwebcam | dbc41f76f112bb4071758d6d72c1c93acaec7304 | [
"MIT"
] | 1 | 2020-01-20T14:52:45.000Z | 2020-01-20T14:52:45.000Z | from ipwebcam.ipwebcam import IPWEBCAM | 38 | 38 | 0.894737 | 5 | 38 | 6.8 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 38 | 1 | 38 | 38 | 0.971429 | 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 |
40d5e4a581eb2b3c663cbb74e41ce166a29b89c5 | 30 | py | Python | supervenn/tests/__init__.py | srcoulombe/supervenn | 63c8e0636b465c1e26c224044d3397e4768d5d68 | [
"MIT"
] | 1 | 2021-03-15T20:15:31.000Z | 2021-03-15T20:15:31.000Z | supervenn/tests/__init__.py | srcoulombe/supervenn | 63c8e0636b465c1e26c224044d3397e4768d5d68 | [
"MIT"
] | null | null | null | supervenn/tests/__init__.py | srcoulombe/supervenn | 63c8e0636b465c1e26c224044d3397e4768d5d68 | [
"MIT"
] | null | null | null | from . import algorithms_test
| 15 | 29 | 0.833333 | 4 | 30 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 30 | 1 | 30 | 30 | 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 |
40ffc31f4b93a8de8e98ef9adc123e692d210080 | 13,980 | py | Python | torch/nn/grad.py | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 60,067 | 2017-01-18T17:21:31.000Z | 2022-03-31T21:37:45.000Z | torch/nn/grad.py | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 66,955 | 2017-01-18T17:21:38.000Z | 2022-03-31T23:56:11.000Z | torch/nn/grad.py | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 19,210 | 2017-01-18T17:45:04.000Z | 2022-03-31T23:51:56.000Z | """Gradient interface"""
import torch
from .modules.utils import _single, _pair, _triple
import warnings
def _grad_input_padding(grad_output, input_size, stride, padding, kernel_size, dilation=None):
if dilation is None:
# For backward compatibility
warnings.warn("_grad_input_padding 'dilation' a... | 44.522293 | 112 | 0.65422 | 1,924 | 13,980 | 4.60395 | 0.073285 | 0.086927 | 0.020321 | 0.036577 | 0.901671 | 0.891172 | 0.880108 | 0.862836 | 0.846692 | 0.835629 | 0 | 0.023225 | 0.242346 | 13,980 | 313 | 113 | 44.664537 | 0.813066 | 0.466094 | 0 | 0.451852 | 0 | 0 | 0.052451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059259 | false | 0 | 0.022222 | 0.007407 | 0.140741 | 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 |
dc02095b9990e8bc366e15ff2e33e30246529b41 | 108 | py | Python | koko_gym/__init__.py | berkeleyopenrobotics/blue_mujoco | aa73db621f22dac4b76af8748ea6c179d5cb1715 | [
"MIT"
] | 7 | 2019-04-17T12:50:38.000Z | 2021-02-11T08:27:17.000Z | koko_gym/__init__.py | berkeleyopenrobotics/blue_mujoco | aa73db621f22dac4b76af8748ea6c179d5cb1715 | [
"MIT"
] | 2 | 2019-04-16T21:10:08.000Z | 2019-10-07T00:48:11.000Z | koko_gym/envs/__init__.py | berkeleyopenarms/blue_mujoco_v1 | aa73db621f22dac4b76af8748ea6c179d5cb1715 | [
"MIT"
] | 4 | 2019-04-17T09:06:32.000Z | 2022-01-26T19:44:24.000Z | from koko_gym.envs.koko_reacher import KokoReacherEnv
# from koko_gym.envs.koko_pusher import KokoPusherEnv
| 36 | 53 | 0.87037 | 16 | 108 | 5.625 | 0.5625 | 0.177778 | 0.244444 | 0.333333 | 0.422222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 108 | 2 | 54 | 54 | 0.909091 | 0.472222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 |
9053d3b1dbebc426557bc7b0a7dc2c53a3e1ec45 | 1,186 | py | Python | tests/test_provider_vmware_vmc.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | tests/test_provider_vmware_vmc.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | tests/test_provider_vmware_vmc.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # tests/test_provider_vmware_vmc.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:30:35 UTC)
def test_provider_import():
import terrascript.provider.vmware.vmc
def test_resource_import():
from terrascript.resource.vmware.vmc import vmc_cluster
from terrascript.resource.vmware.vmc impor... | 27.581395 | 80 | 0.763912 | 168 | 1,186 | 5.238095 | 0.422619 | 0.132955 | 0.153409 | 0.184091 | 0.4875 | 0.401136 | 0.401136 | 0 | 0 | 0 | 0 | 0.01497 | 0.155143 | 1,186 | 42 | 81 | 28.238095 | 0.863273 | 0.397133 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.230769 | true | 0 | 1 | 0 | 1.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
9056b75ca3f36db1495d0549e7a10b0eecff7981 | 92 | py | Python | corehq/apps/domain/tests/__init__.py | dslowikowski/commcare-hq | ad8885cf8dab69dc85cb64f37aeaf06106124797 | [
"BSD-3-Clause"
] | 1 | 2015-02-10T23:26:39.000Z | 2015-02-10T23:26:39.000Z | corehq/apps/domain/tests/__init__.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/domain/tests/__init__.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from .test_views import *
from .test_utils import *
| 18.4 | 38 | 0.815217 | 13 | 92 | 5.230769 | 0.538462 | 0.294118 | 0.411765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141304 | 92 | 4 | 39 | 23 | 0.860759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
906e5df00973a5b4a0c6c19d336178dfe3f3f02a | 54,572 | py | Python | tests/test_stereo.py | dumasl/Pandora | 6bae22926e59bcd02d7f6f9485bd5715ffceb450 | [
"Apache-2.0"
] | null | null | null | tests/test_stereo.py | dumasl/Pandora | 6bae22926e59bcd02d7f6f9485bd5715ffceb450 | [
"Apache-2.0"
] | 1 | 2020-09-29T10:57:08.000Z | 2020-09-29T12:21:17.000Z | tests/test_stereo.py | dumasl/Pandora | 6bae22926e59bcd02d7f6f9485bd5715ffceb450 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf8
#
# Copyright (c) 2020 Centre National d'Etudes Spatiales (CNES).
#
# This file is part of PANDORA
#
# https://github.com/CNES/Pandora_pandora
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#... | 51.049579 | 120 | 0.474932 | 7,228 | 54,572 | 3.477726 | 0.044964 | 0.022914 | 0.024347 | 0.072005 | 0.847675 | 0.827306 | 0.809524 | 0.79019 | 0.776982 | 0.761189 | 0 | 0.07023 | 0.366745 | 54,572 | 1,068 | 121 | 51.097378 | 0.657156 | 0.243971 | 0 | 0.565292 | 0 | 0 | 0.068276 | 0.001552 | 0 | 0 | 0 | 0 | 0.075601 | 1 | 0.025773 | false | 0 | 0.013746 | 0 | 0.041237 | 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 |
90a6c60b8bc83fefad694c98f264f7f22f86d578 | 30 | py | Python | meracanapi/dynamodb/__init__.py | meracan/meracan-api | aff04f3d9d0dce46fe0b8ce89394ec22823a0ea4 | [
"MIT"
] | null | null | null | meracanapi/dynamodb/__init__.py | meracan/meracan-api | aff04f3d9d0dce46fe0b8ce89394ec22823a0ea4 | [
"MIT"
] | null | null | null | meracanapi/dynamodb/__init__.py | meracan/meracan-api | aff04f3d9d0dce46fe0b8ce89394ec22823a0ea4 | [
"MIT"
] | null | null | null | from .dynamodb import DynamoDB | 30 | 30 | 0.866667 | 4 | 30 | 6.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 30 | 1 | 30 | 30 | 0.962963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
90c842e98bccecd20ae9d56b28dc84bcde1c9c80 | 4,635 | py | Python | src/interfaces/api/serializers/organism.py | cruz-f/protrend | b72c17fa1606b4cf5ca6d60c51737b43ba3fdbc1 | [
"MIT"
] | null | null | null | src/interfaces/api/serializers/organism.py | cruz-f/protrend | b72c17fa1606b4cf5ca6d60c51737b43ba3fdbc1 | [
"MIT"
] | 1 | 2022-02-11T18:38:39.000Z | 2022-02-11T18:38:39.000Z | src/interfaces/api/serializers/organism.py | cruz-f/protrend | b72c17fa1606b4cf5ca6d60c51737b43ba3fdbc1 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from constants import help_text
from data import Organism
from interfaces.serializers.base import BaseSerializer
from interfaces.serializers.fields import SourceField, URLField
from interfaces.serializers.relationship import RelationshipSerializer, SourceRelationshipSerializer
... | 60.986842 | 117 | 0.605178 | 429 | 4,635 | 6.244755 | 0.174825 | 0.098544 | 0.071669 | 0.095558 | 0.724524 | 0.717059 | 0.712579 | 0.712579 | 0.712579 | 0.699888 | 0 | 0.01155 | 0.327508 | 4,635 | 75 | 118 | 61.8 | 0.847931 | 0.008414 | 0 | 0.274194 | 0 | 0 | 0.042257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.516129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
90d1540530cd0bc37d6d2d3bebe83bb22376d922 | 113 | py | Python | ocrcopy/__init__.py | jasonfyw/ocr-copy | cb79553f0b323759dd411d1fa5e0379c8ae31ff5 | [
"MIT"
] | 1 | 2022-03-03T14:27:26.000Z | 2022-03-03T14:27:26.000Z | ocrcopy/__init__.py | jasonfyw/ocr-copy | cb79553f0b323759dd411d1fa5e0379c8ae31ff5 | [
"MIT"
] | null | null | null | ocrcopy/__init__.py | jasonfyw/ocr-copy | cb79553f0b323759dd411d1fa5e0379c8ae31ff5 | [
"MIT"
] | null | null | null | from ocrcopy.controller import Controller
from ocrcopy.overlay import Overlay
from ocrcopy.ocrcopy import OCRCopy | 37.666667 | 41 | 0.876106 | 15 | 113 | 6.6 | 0.333333 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097345 | 113 | 3 | 42 | 37.666667 | 0.970588 | 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 |
294dc58ea58d1fb4a0ccdc5242a5d8d3d33e730a | 2,700 | py | Python | utils.py | AstroJacobLi/FootballTeamStrategy | d8649d38ed80217f226cfd7de7a5e53969e078b9 | [
"MIT"
] | 3 | 2020-02-14T06:13:14.000Z | 2020-02-15T09:06:19.000Z | utils.py | AstroJacobLi/FootballTeamStrategy | d8649d38ed80217f226cfd7de7a5e53969e078b9 | [
"MIT"
] | null | null | null | utils.py | AstroJacobLi/FootballTeamStrategy | d8649d38ed80217f226cfd7de7a5e53969e078b9 | [
"MIT"
] | null | null | null | import warnings
warnings.filterwarnings('ignore')
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import networkx as nx
def calc_mean_std(x):
return (np.mean(x), np.std(x, ddof=1) / np.sqrt(len(x)))
def color_func(p):
if p > 0.2:
return 'dodgerblue'
elif p < 0.05:
re... | 37.5 | 78 | 0.547037 | 310 | 2,700 | 4.629032 | 0.2 | 0.137979 | 0.133798 | 0.050174 | 0.759582 | 0.74007 | 0.74007 | 0.74007 | 0.725436 | 0.725436 | 0 | 0.016376 | 0.321481 | 2,700 | 71 | 79 | 38.028169 | 0.766921 | 0.063704 | 0 | 0.684211 | 0 | 0 | 0.14873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0.526316 | 0.087719 | 0.017544 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
2965eadfb4546c08af43ecd5e79cfac7cf8a5334 | 29 | py | Python | timm/models/resnet_wsl/__init__.py | shenyunhang/pytorch-image-models | a46205d3e7db602797f39aa2b3a814a52a94f002 | [
"Apache-2.0"
] | null | null | null | timm/models/resnet_wsl/__init__.py | shenyunhang/pytorch-image-models | a46205d3e7db602797f39aa2b3a814a52a94f002 | [
"Apache-2.0"
] | null | null | null | timm/models/resnet_wsl/__init__.py | shenyunhang/pytorch-image-models | a46205d3e7db602797f39aa2b3a814a52a94f002 | [
"Apache-2.0"
] | null | null | null | from .resnet_wsl_v2 import *
| 14.5 | 28 | 0.793103 | 5 | 29 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.137931 | 29 | 1 | 29 | 29 | 0.8 | 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 |
296de340b155ea728c37b5660efdc1118633f1f1 | 55,060 | py | Python | tests/test_views.py | mariaFernando/reana-workflow-controller | 1219dd4b490512523d27b6f805435340d55e62ae | [
"MIT"
] | null | null | null | tests/test_views.py | mariaFernando/reana-workflow-controller | 1219dd4b490512523d27b6f805435340d55e62ae | [
"MIT"
] | null | null | null | tests/test_views.py | mariaFernando/reana-workflow-controller | 1219dd4b490512523d27b6f805435340d55e62ae | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# This file is part of REANA.
# Copyright (C) 2017, 2018 CERN.
#
# REANA is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""REANA-Workflow-Controller module tests."""
import io
import json
import os
import uui... | 36.977837 | 88 | 0.620668 | 6,355 | 55,060 | 5.029111 | 0.059953 | 0.03373 | 0.03204 | 0.038548 | 0.805476 | 0.776721 | 0.751596 | 0.72378 | 0.702315 | 0.6852 | 0 | 0.007886 | 0.283709 | 55,060 | 1,488 | 89 | 37.002688 | 0.80248 | 0.072793 | 0 | 0.672091 | 0 | 0 | 0.120028 | 0.049623 | 0 | 0 | 0 | 0 | 0.078112 | 1 | 0.034174 | false | 0 | 0.014646 | 0.000814 | 0.049634 | 0.000814 | 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 |
29784cf0cdfab1cc997d9b758eaf01874f17d4c5 | 1,208 | py | Python | test/android_test.py | TE-ToshiakiTanaka/atve | e6ad4d2343dc9271d173729c2680eddf3d5dd8a6 | [
"MIT"
] | null | null | null | test/android_test.py | TE-ToshiakiTanaka/atve | e6ad4d2343dc9271d173729c2680eddf3d5dd8a6 | [
"MIT"
] | null | null | null | test/android_test.py | TE-ToshiakiTanaka/atve | e6ad4d2343dc9271d173729c2680eddf3d5dd8a6 | [
"MIT"
] | null | null | null | import os
from atve.script import AtveTestCase
from runner import TestAtveTestRunner as TSTR
from nose.tools import with_setup, raises, ok_, eq_
class TestAndroidTestRuner(TSTR):
@with_setup(TSTR.setup, TSTR.teardown)
def test_library_execute_android_success_01(self):
self.script_path = os.path.join(s... | 41.655172 | 68 | 0.746689 | 165 | 1,208 | 5.157576 | 0.236364 | 0.084606 | 0.13161 | 0.084606 | 0.80611 | 0.80611 | 0.80611 | 0.80611 | 0.80611 | 0.80611 | 0 | 0.023301 | 0.147351 | 1,208 | 28 | 69 | 43.142857 | 0.802913 | 0 | 0 | 0.434783 | 0 | 0 | 0.110927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.173913 | 0 | 0.391304 | 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 |
464d8ffa6f6ed2e02e9fdd067d36cc0af7bd21e0 | 2,748 | py | Python | CSipSimple/jni/swig-glue/clean_source_for_android.py | dmfr/CSipSimple-mirror | f2f2b8efcb739090a45b205690a0fb5b74bce343 | [
"OpenSSL",
"Unlicense"
] | 4 | 2016-09-29T00:04:31.000Z | 2021-12-02T08:39:51.000Z | CSipSimple/jni/swig-glue/clean_source_for_android.py | dmfr/CSipSimple-mirror | f2f2b8efcb739090a45b205690a0fb5b74bce343 | [
"OpenSSL",
"Unlicense"
] | null | null | null | CSipSimple/jni/swig-glue/clean_source_for_android.py | dmfr/CSipSimple-mirror | f2f2b8efcb739090a45b205690a0fb5b74bce343 | [
"OpenSSL",
"Unlicense"
] | null | null | null | #!/usr/bin/python
import re
import sys
def remove_rtti(text):
return re.sub(r'dynamic_cast<(.* \*)>', r'(\1)', text)
def make_dalvik_compat(text):
init_text = """/* Utility class for managing the JNI environment */
class JNIEnvWrapper {
const Director *director_;
JNIEnv *jenv_;
public:
JN... | 36.64 | 130 | 0.682678 | 366 | 2,748 | 4.86612 | 0.303279 | 0.07187 | 0.058956 | 0.076362 | 0.783829 | 0.783829 | 0.783829 | 0.732173 | 0.732173 | 0.663672 | 0 | 0.007411 | 0.214338 | 2,748 | 74 | 131 | 37.135135 | 0.817508 | 0.005822 | 0 | 0.567164 | 0 | 0.059701 | 0.855731 | 0.182717 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0 | 0.029851 | 0.014925 | 0.119403 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
465c4cf006795c0c9e2e8bf85f83d247c047137e | 2,640 | py | Python | tests/homework/test_homework2.py | acc-cosc-1336/cosc-1336-spring-2018-artgonzalezacc | c5dcc0ad7c47345c274d61c7e94f6c3b0ed42245 | [
"MIT"
] | null | null | null | tests/homework/test_homework2.py | acc-cosc-1336/cosc-1336-spring-2018-artgonzalezacc | c5dcc0ad7c47345c274d61c7e94f6c3b0ed42245 | [
"MIT"
] | 4 | 2018-02-02T13:51:49.000Z | 2018-04-01T03:07:58.000Z | tests/homework/test_homework2.py | acc-cosc-1336/cosc-1336-spring-2018-artgonzalezacc | c5dcc0ad7c47345c274d61c7e94f6c3b0ed42245 | [
"MIT"
] | 3 | 2018-01-26T00:24:18.000Z | 2018-04-26T00:40:17.000Z | import unittest
from src.homework.homework2 import get_time
from src.homework.homework2 import time_from_utc
class TestHomework2(unittest.TestCase):
def test_get_time_when_time_type_when_value_0(self):
self.assertEqual('Invalid time_type(12 or 24 only)', get_time(9,30,45,-5))
def test_get_time_when_... | 40.615385 | 83 | 0.731439 | 479 | 2,640 | 3.607516 | 0.137787 | 0.125579 | 0.208912 | 0.121528 | 0.862847 | 0.706019 | 0.601852 | 0.569444 | 0.513889 | 0.429398 | 0 | 0.115916 | 0.150379 | 2,640 | 64 | 84 | 41.25 | 0.654481 | 0 | 0 | 0 | 0 | 0 | 0.118606 | 0 | 0 | 0 | 0 | 0 | 0.452381 | 1 | 0.452381 | false | 0 | 0.071429 | 0 | 0.547619 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
465f13dd4a728313b2cc3608ea7156123206075f | 3,297 | py | Python | reward_learning/demos.py | Stanford-ILIAD/DPP-Batch-Active-Learning | 99a97ddbe7f58b22f02671daa42c4ffb7e2b021f | [
"MIT"
] | 10 | 2019-06-20T18:57:36.000Z | 2021-12-14T04:36:16.000Z | reward_learning/demos.py | Stanford-ILIAD/DPP-Batch-Active-Learning | 99a97ddbe7f58b22f02671daa42c4ffb7e2b021f | [
"MIT"
] | null | null | null | reward_learning/demos.py | Stanford-ILIAD/DPP-Batch-Active-Learning | 99a97ddbe7f58b22f02671daa42c4ffb7e2b021f | [
"MIT"
] | 3 | 2019-12-13T01:48:00.000Z | 2020-03-17T08:33:45.000Z | from sampling import Sampler
import algos
import numpy as np
from simulation_utils import create_env, get_feedback, run_algo
import sys
def batch(task, method, N, M, b):
if N % b != 0:
print('N must be divisible to b')
exit(0)
B = 20*b
simulation_object = create_env(task)
d = simulatio... | 37.896552 | 97 | 0.653625 | 539 | 3,297 | 3.729128 | 0.153989 | 0.111443 | 0.131343 | 0.051741 | 0.848259 | 0.848259 | 0.848259 | 0.775622 | 0.775622 | 0.775622 | 0 | 0.009249 | 0.212921 | 3,297 | 86 | 98 | 38.337209 | 0.765318 | 0 | 0 | 0.69863 | 0 | 0 | 0.081942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027397 | false | 0 | 0.068493 | 0 | 0.09589 | 0.205479 | 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 |
465fe7e5576677af07959914f08737be5fcfe513 | 38 | py | Python | wsgi.py | darvelo/ether-website | eeaa728fca057e0edffe7cd31eafc6500d15003f | [
"MIT"
] | null | null | null | wsgi.py | darvelo/ether-website | eeaa728fca057e0edffe7cd31eafc6500d15003f | [
"MIT"
] | 14 | 2018-02-21T17:58:33.000Z | 2022-03-11T23:16:09.000Z | wsgi.py | darvelo/ether-website | eeaa728fca057e0edffe7cd31eafc6500d15003f | [
"MIT"
] | 1 | 2018-02-22T09:28:26.000Z | 2018-02-22T09:28:26.000Z | from server import app as application
| 19 | 37 | 0.842105 | 6 | 38 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 38 | 1 | 38 | 38 | 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 |
4661600efc505d2fcc22c3fcfa74b5bd3ee2a6c0 | 26 | py | Python | tests/history/__init__.py | lievertom/2020.2-Projeto-Kokama-Ensino | 47d5f1a1b31badb4a4306339e7302e8b4ce7ba4c | [
"MIT"
] | null | null | null | tests/history/__init__.py | lievertom/2020.2-Projeto-Kokama-Ensino | 47d5f1a1b31badb4a4306339e7302e8b4ce7ba4c | [
"MIT"
] | 2 | 2021-05-07T21:46:08.000Z | 2021-05-07T21:48:23.000Z | tests/history/__init__.py | lievertom/2020.2-Projeto-Kokama-Ensino | 47d5f1a1b31badb4a4306339e7302e8b4ce7ba4c | [
"MIT"
] | null | null | null | from .test_sample import * | 26 | 26 | 0.807692 | 4 | 26 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.869565 | 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 |
46753aab31f873785a7e03ce1e53b5f27c953f15 | 104 | py | Python | layer/computing/test_af00.py | hslee1539/NN | 8b60a858c1137785ef684dd548b008bcc46b8d6d | [
"MIT"
] | null | null | null | layer/computing/test_af00.py | hslee1539/NN | 8b60a858c1137785ef684dd548b008bcc46b8d6d | [
"MIT"
] | null | null | null | layer/computing/test_af00.py | hslee1539/NN | 8b60a858c1137785ef684dd548b008bcc46b8d6d | [
"MIT"
] | null | null | null | def forward(x_array, out_array):
for i in range(len(x_array)):
out_array[i] = x_array[i] + 0 | 34.666667 | 37 | 0.634615 | 20 | 104 | 3.05 | 0.55 | 0.295082 | 0.295082 | 0.459016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.221154 | 104 | 3 | 37 | 34.666667 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
469be8f846e4d28647a5a9b073ac5d0a41a9c581 | 44 | py | Python | vasapy/__init__.py | cosama/vasapy | efb43b2ab36641416a84c2a8f3432487e9618c6e | [
"Apache-2.0"
] | 1 | 2020-07-30T22:37:07.000Z | 2020-07-30T22:37:07.000Z | vasapy/__init__.py | cosama/vasapy | efb43b2ab36641416a84c2a8f3432487e9618c6e | [
"Apache-2.0"
] | 2 | 2021-05-04T18:21:46.000Z | 2021-05-04T19:02:22.000Z | vasapy/__init__.py | cosama/vasapy | efb43b2ab36641416a84c2a8f3432487e9618c6e | [
"Apache-2.0"
] | null | null | null | from .dict import dict
from .set import set
| 14.666667 | 22 | 0.772727 | 8 | 44 | 4.25 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 44 | 2 | 23 | 22 | 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 |
d3ca7dded9f7043e120ccb537a94457b39e83202 | 258,315 | py | Python | instances/passenger_demand/pas-20210422-1717-int1/74.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210422-1717-int1/74.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210422-1717-int1/74.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null |
"""
PASSENGERS
"""
numPassengers = 19150
passenger_arriving = (
(4, 5, 4, 9, 0, 2, 3, 0, 2, 1, 0, 1, 0, 4, 2, 4, 3, 4, 1, 2, 0, 0, 1, 1, 1, 0), # 0
(7, 6, 6, 3, 2, 3, 0, 1, 2, 1, 0, 1, 0, 2, 4, 2, 5, 5, 3, 2, 0, 3, 2, 1, 2, 0), # 1
(9, 5, 5, 2, 3, 1, 1, 2, 4, 3, 0, 0, 0, 6, 10, 2, 4, 5, 5, 2, 2, 2, 2, 1, 0, 0),... | 276.272727 | 494 | 0.769568 | 32,987 | 258,315 | 6.02601 | 0.217389 | 0.358587 | 0.344099 | 0.651977 | 0.376064 | 0.367869 | 0.364946 | 0.364131 | 0.364051 | 0.364051 | 0 | 0.849817 | 0.095751 | 258,315 | 934 | 495 | 276.568522 | 0.001194 | 0.015528 | 0 | 0.200873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.005459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d3df2aee3e9083811285cf5664025fae378db142 | 199 | py | Python | nmigen/hdl/mem.py | psumesh/nmigen | 7d611b8fc1d9e58853ff268ec38ff8f4131a9774 | [
"BSD-2-Clause"
] | 528 | 2020-01-28T18:21:00.000Z | 2021-12-09T06:27:51.000Z | nmigen/hdl/mem.py | psumesh/nmigen | 7d611b8fc1d9e58853ff268ec38ff8f4131a9774 | [
"BSD-2-Clause"
] | 360 | 2020-01-28T18:34:30.000Z | 2021-12-10T08:03:32.000Z | nmigen/hdl/mem.py | psumesh/nmigen | 7d611b8fc1d9e58853ff268ec38ff8f4131a9774 | [
"BSD-2-Clause"
] | 100 | 2020-02-06T21:55:46.000Z | 2021-11-25T19:20:44.000Z | from amaranth.hdl.mem import *
from amaranth.hdl.mem import __all__
import warnings
warnings.warn("instead of nmigen.hdl.mem, use amaranth.hdl.mem",
DeprecationWarning, stacklevel=2)
| 24.875 | 64 | 0.743719 | 27 | 199 | 5.333333 | 0.555556 | 0.166667 | 0.291667 | 0.25 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.165829 | 199 | 7 | 65 | 28.428571 | 0.861446 | 0 | 0 | 0 | 0 | 0 | 0.236181 | 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 |
312109b4f3e3ca41ac70893ad2ff4f0aeb173241 | 26,710 | py | Python | testing/unit/tp/atomic_swap/test_init.py | FerrySchuller/remme-core | ca58bfcc5ff0ce6d15c2871a4e03e39f1268d789 | [
"Apache-2.0"
] | 129 | 2018-02-13T21:37:13.000Z | 2020-11-01T23:33:52.000Z | testing/unit/tp/atomic_swap/test_init.py | FerrySchuller/remme-core | ca58bfcc5ff0ce6d15c2871a4e03e39f1268d789 | [
"Apache-2.0"
] | 95 | 2018-03-27T15:57:36.000Z | 2019-08-26T07:35:23.000Z | testing/unit/tp/atomic_swap/test_init.py | FerrySchuller/remme-core | ca58bfcc5ff0ce6d15c2871a4e03e39f1268d789 | [
"Apache-2.0"
] | 30 | 2018-02-24T15:17:37.000Z | 2020-11-14T11:35:25.000Z | """
Provide tests for atomic swap handler initialization method implementation.
"""
import datetime
import time
import pytest
from sawtooth_sdk.processor.exceptions import InvalidTransaction
from sawtooth_sdk.protobuf.processor_pb2 import TpProcessRequest
from sawtooth_sdk.protobuf.setting_pb2 import Setting
from sawt... | 40.044978 | 119 | 0.774392 | 2,992 | 26,710 | 6.474265 | 0.072193 | 0.058541 | 0.019514 | 0.02256 | 0.812039 | 0.789376 | 0.775231 | 0.766971 | 0.752413 | 0.745031 | 0 | 0.023204 | 0.159379 | 26,710 | 666 | 120 | 40.105105 | 0.839531 | 0.065032 | 0 | 0.688129 | 0 | 0 | 0.060741 | 0.028918 | 0 | 0 | 0.005848 | 0 | 0.018109 | 1 | 0.018109 | false | 0 | 0.040241 | 0 | 0.05835 | 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 |
3132e2f36132e44fbd1c6af00fce234363a8d0a2 | 17 | py | Python | utils/db_api/__init__.py | AleksZavg/Admin-telegram-bot | c671419ba9fd5e93df742ebe9443d72afa4c99aa | [
"MIT"
] | null | null | null | utils/db_api/__init__.py | AleksZavg/Admin-telegram-bot | c671419ba9fd5e93df742ebe9443d72afa4c99aa | [
"MIT"
] | null | null | null | utils/db_api/__init__.py | AleksZavg/Admin-telegram-bot | c671419ba9fd5e93df742ebe9443d72afa4c99aa | [
"MIT"
] | null | null | null | from . import sql | 17 | 17 | 0.764706 | 3 | 17 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 17 | 1 | 17 | 17 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3157ab626dece4b479698f85ed5115a820362716 | 1,763 | py | Python | CodingInterview2/20_NumericStrings/test_numeric_strings.py | hscspring/TheAlgorithms-Python | 5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f | [
"MIT"
] | 10 | 2020-07-06T11:00:58.000Z | 2022-01-29T09:25:24.000Z | CodingInterview2/20_NumericStrings/test_numeric_strings.py | hscspring/TheAlgorithms-Python | 5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f | [
"MIT"
] | null | null | null | CodingInterview2/20_NumericStrings/test_numeric_strings.py | hscspring/TheAlgorithms-Python | 5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f | [
"MIT"
] | 3 | 2020-07-13T06:39:23.000Z | 2020-08-15T16:29:48.000Z | from numeric_strings import is_num
def test_pos():
assert is_num("100") == True
def test_operator_pos():
assert is_num("+100") == True
def test_neg():
assert is_num("-123") == True
def test_deci():
assert is_num("3.14") == True
def test_pos_dot():
assert is_num("3.") == True
def test_neg_dot... | 18.175258 | 50 | 0.647192 | 285 | 1,763 | 3.659649 | 0.157895 | 0.143816 | 0.305849 | 0.174497 | 0.53116 | 0.490892 | 0.373921 | 0.325983 | 0.130393 | 0.065197 | 0 | 0.072626 | 0.187748 | 1,763 | 96 | 51 | 18.364583 | 0.655726 | 0 | 0 | 0 | 0 | 0 | 0.076836 | 0.011952 | 0 | 0 | 0 | 0 | 0.491525 | 1 | 0.491525 | true | 0 | 0.016949 | 0 | 0.508475 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
9ed2b77dc14cf259dd4066bb59e60dcb9619622c | 80 | py | Python | batrises/__init__.py | persorkki/bat-rises | 7bf38e5de118a9943106c3e70a7ab1934e76afc4 | [
"MIT"
] | 1 | 2020-04-04T10:47:19.000Z | 2020-04-04T10:47:19.000Z | batrises/__init__.py | persorkki/bat-rises | 7bf38e5de118a9943106c3e70a7ab1934e76afc4 | [
"MIT"
] | null | null | null | batrises/__init__.py | persorkki/bat-rises | 7bf38e5de118a9943106c3e70a7ab1934e76afc4 | [
"MIT"
] | 1 | 2020-04-04T10:47:21.000Z | 2020-04-04T10:47:21.000Z | from .core import *
from .logs import *
from .conf import *
from .utils import * | 20 | 20 | 0.7125 | 12 | 80 | 4.75 | 0.5 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 80 | 4 | 20 | 20 | 0.876923 | 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 |
9ef7401526646303d76a1d2c30cb98f235914879 | 5,615 | py | Python | checks/check_heatmaps.py | joybanerjee08/imgaug | b986ba8bf93b7847671e62b4636256e90245b340 | [
"MIT"
] | 1 | 2019-05-22T09:33:33.000Z | 2019-05-22T09:33:33.000Z | checks/check_heatmaps.py | HuuY/imgaug | e9d3515b52f2205cee1d3c9a913fcc638d15993b | [
"MIT"
] | null | null | null | checks/check_heatmaps.py | HuuY/imgaug | e9d3515b52f2205cee1d3c9a913fcc638d15993b | [
"MIT"
] | 1 | 2019-03-07T13:58:25.000Z | 2019-03-07T13:58:25.000Z | from __future__ import print_function, division
import numpy as np
import imgaug as ia
from imgaug import augmenters as iaa
def main():
quokka = ia.quokka(size=0.5)
h, w = quokka.shape[0:2]
heatmap = np.zeros((h, w), dtype=np.float32)
heatmap[70:120, 90:150] = 0.1
heatmap[30:70, 50:65] = 0.5
... | 31.022099 | 93 | 0.660374 | 749 | 5,615 | 4.639519 | 0.11749 | 0.139281 | 0.120288 | 0.139281 | 0.801727 | 0.801727 | 0.801727 | 0.792806 | 0.77554 | 0.77554 | 0 | 0.034037 | 0.215138 | 5,615 | 180 | 94 | 31.194444 | 0.754482 | 0 | 0 | 0.682119 | 0 | 0 | 0.054319 | 0.011576 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006623 | false | 0 | 0.02649 | 0 | 0.033113 | 0.07947 | 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 |
73255a4f647e1f3b938de7352ceea5cd07766c6a | 6,172 | py | Python | test/test_SepiaPrediction.py | lanl/SEPIA | 0a1e606e1d1072f49e4f3f358962bd8918a5d3a3 | [
"BSD-3-Clause"
] | 19 | 2020-06-22T16:37:07.000Z | 2022-02-18T22:50:59.000Z | test/test_SepiaPrediction.py | lanl/SEPIA | 0a1e606e1d1072f49e4f3f358962bd8918a5d3a3 | [
"BSD-3-Clause"
] | 41 | 2020-07-07T22:52:33.000Z | 2021-11-04T14:05:03.000Z | test/test_SepiaPrediction.py | lanl/SEPIA | 0a1e606e1d1072f49e4f3f358962bd8918a5d3a3 | [
"BSD-3-Clause"
] | 6 | 2020-08-14T18:58:45.000Z | 2022-03-01T21:00:14.000Z | import unittest
import numpy as np
import generate_data
from sepia.SepiaData import SepiaData
from sepia.SepiaModel import SepiaModel
from sepia.SepiaPredict import SepiaXvalEmulatorPrediction, SepiaEmulatorPrediction, SepiaFullPrediction
np.random.seed(42)
class SepiaPredictionTestCase(unittest.TestCase):
def ... | 36.305882 | 114 | 0.613739 | 810 | 6,172 | 4.35679 | 0.098765 | 0.045339 | 0.043355 | 0.08841 | 0.862851 | 0.822896 | 0.77019 | 0.732502 | 0.695381 | 0.650609 | 0 | 0.00774 | 0.288237 | 6,172 | 169 | 115 | 36.52071 | 0.795584 | 0.037265 | 0 | 0.675214 | 1 | 0 | 0.064743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.051282 | 0 | 0.111111 | 0.042735 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7331941f1a8405d5a701de32416b7bf3852dc785 | 28,801 | py | Python | sysinv/sysinv/sysinv/sysinv/tests/api/test_certificate.py | albailey/config | 40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9 | [
"Apache-2.0"
] | 10 | 2020-02-07T18:57:44.000Z | 2021-09-11T10:29:34.000Z | sysinv/sysinv/sysinv/sysinv/tests/api/test_certificate.py | albailey/config | 40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9 | [
"Apache-2.0"
] | 1 | 2021-01-14T12:01:55.000Z | 2021-01-14T12:01:55.000Z | sysinv/sysinv/sysinv/sysinv/tests/api/test_certificate.py | albailey/config | 40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9 | [
"Apache-2.0"
] | 10 | 2020-10-13T08:37:46.000Z | 2022-02-09T00:21:25.000Z | #
# Copyright (c) 2017-2021 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
"""
Tests for the API /certificate_install/delete methods.
"""
import json
import mock
import os
import sys
import uuid as UUID
from cryptography import x509
from cryptography.hazmat.backends import default_backend
from six... | 43.050822 | 96 | 0.604528 | 3,369 | 28,801 | 4.871772 | 0.092015 | 0.029001 | 0.014257 | 0.022178 | 0.780662 | 0.756474 | 0.732407 | 0.725888 | 0.720344 | 0.712179 | 0 | 0.008344 | 0.300892 | 28,801 | 668 | 97 | 43.115269 | 0.806804 | 0.100135 | 0 | 0.704082 | 0 | 0 | 0.098939 | 0.019006 | 0 | 0 | 0 | 0 | 0.163265 | 1 | 0.071429 | false | 0 | 0.02449 | 0.012245 | 0.134694 | 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 |
7338c0391a559bd8286ca85271a0f50ccb994929 | 154 | py | Python | src/arcas/__init__.py | Nikoleta-v3/Arcas | afbc4a35a6e73c9f041e7515b36070bd450a9dd5 | [
"MIT"
] | 15 | 2017-02-24T21:05:44.000Z | 2021-07-06T07:49:59.000Z | src/arcas/__init__.py | Nikoleta-v3/Arcas | afbc4a35a6e73c9f041e7515b36070bd450a9dd5 | [
"MIT"
] | 18 | 2016-11-29T00:10:43.000Z | 2017-03-28T19:28:03.000Z | src/arcas/__init__.py | Nikoleta-v3/Arcas | afbc4a35a6e73c9f041e7515b36070bd450a9dd5 | [
"MIT"
] | 1 | 2017-03-28T09:06:57.000Z | 2017-03-28T09:06:57.000Z | from .IEEE.main import Ieee
from .arXiv.main import Arxiv
from .nature.main import Nature
from .Springer.main import Springer
from .PLOS.main import Plos
| 25.666667 | 35 | 0.805195 | 25 | 154 | 4.96 | 0.32 | 0.403226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12987 | 154 | 5 | 36 | 30.8 | 0.925373 | 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 |
b40a7043ff53d9c696a1ef4a0450a037ad688311 | 73 | py | Python | nfce/__init__.py | ypereirars/nfescrapper | 9b4c979e6580d0e83c71f7ee869cec60b446ace8 | [
"MIT"
] | null | null | null | nfce/__init__.py | ypereirars/nfescrapper | 9b4c979e6580d0e83c71f7ee869cec60b446ace8 | [
"MIT"
] | null | null | null | nfce/__init__.py | ypereirars/nfescrapper | 9b4c979e6580d0e83c71f7ee869cec60b446ace8 | [
"MIT"
] | null | null | null |
from nfce.parser import NFCeParser
from nfce.scrapper import NfeScrapper | 24.333333 | 37 | 0.863014 | 10 | 73 | 6.3 | 0.7 | 0.253968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109589 | 73 | 3 | 37 | 24.333333 | 0.969231 | 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 |
b40b06d25505a8324197cab81900f127ef6d9f6f | 4,120 | py | Python | gym-env/gym-symbol/gym_symbol/__init__.py | tttor/nbwpg | 271718362cf0cd810c7ea0cd9726e77276947e58 | [
"MIT"
] | null | null | null | gym-env/gym-symbol/gym_symbol/__init__.py | tttor/nbwpg | 271718362cf0cd810c7ea0cd9726e77276947e58 | [
"MIT"
] | null | null | null | gym-env/gym-symbol/gym_symbol/__init__.py | tttor/nbwpg | 271718362cf0cd810c7ea0cd9726e77276947e58 | [
"MIT"
] | null | null | null | from gym.envs.registration import register
# gridnav: square ##############################################################
register(
id='GridNav_2-v0',
entry_point='gym_symbol.envs:SymbolicRepresentation',
kwargs={'cfg_fname': 'gridnav_2_v0.yaml'}
)
register(
id='GridNav_2-v1',
entry_point='gym_s... | 26.075949 | 80 | 0.664078 | 494 | 4,120 | 5.190283 | 0.09919 | 0.101404 | 0.126755 | 0.185257 | 0.858034 | 0.712949 | 0.712949 | 0.694228 | 0.694228 | 0.694228 | 0 | 0.059425 | 0.121845 | 4,120 | 157 | 81 | 26.242038 | 0.649254 | 0.030583 | 0 | 0.396825 | 0 | 0 | 0.550559 | 0.289452 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.007937 | 0 | 0.007937 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b4541a67d882db4c8b1c00ba32f1b9ffd8c97716 | 41 | py | Python | pydl/networks/__init__.py | AndreiDavydov/Poisson_Denoiser | a0b8f3dce8282b8e50d44cacb7bdc4fc6d4abc22 | [
"MIT"
] | 4 | 2019-12-24T10:54:40.000Z | 2021-12-27T14:07:06.000Z | pydl/models/__init__.py | AndreiDavydov/Poisson_Denoiser | a0b8f3dce8282b8e50d44cacb7bdc4fc6d4abc22 | [
"MIT"
] | null | null | null | pydl/models/__init__.py | AndreiDavydov/Poisson_Denoiser | a0b8f3dce8282b8e50d44cacb7bdc4fc6d4abc22 | [
"MIT"
] | 1 | 2020-09-28T06:04:12.000Z | 2020-09-28T06:04:12.000Z | from . import UDNet
from . import ResDNet | 20.5 | 21 | 0.780488 | 6 | 41 | 5.333333 | 0.666667 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 41 | 2 | 21 | 20.5 | 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 | 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 |
81f31187d6e4c9747b39ee4614f35e44d5302f54 | 12,973 | py | Python | excel_functions.py | Lol-Hi/cs-feedback-survey | bd0ce694f0bafcc7aaf1a28e5b0f6366c57a3690 | [
"MIT"
] | null | null | null | excel_functions.py | Lol-Hi/cs-feedback-survey | bd0ce694f0bafcc7aaf1a28e5b0f6366c57a3690 | [
"MIT"
] | null | null | null | excel_functions.py | Lol-Hi/cs-feedback-survey | bd0ce694f0bafcc7aaf1a28e5b0f6366c57a3690 | [
"MIT"
] | null | null | null | #Importing other libraries
import openpyxl #allows me to read from an Excel spreadsheet
def openExcel(filename, sheetname):
"""
Reads the responses from the allocated excel sheet
Returns a 2D list containing the responses for each question
>>> openExcel("responses_testing.xlsx", "Form responses 1")
... | 341.394737 | 11,362 | 0.66939 | 1,883 | 12,973 | 4.609665 | 0.184811 | 0.276498 | 0.412673 | 0.547465 | 0.277419 | 0.245277 | 0.218088 | 0.188364 | 0.179032 | 0.167051 | 0 | 0.01894 | 0.157558 | 12,973 | 37 | 11,363 | 350.621622 | 0.775277 | 0.948123 | 0 | 0.1 | 0 | 0 | 0.086687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.25 | 0.1 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c3215aa473baf704e88963d1163e612b6f4f0fbb | 49 | py | Python | amberelectric/api/__init__.py | madpilot/amberelectric.py | ffb26389d8022e8cdfa803fd51365c586686bd21 | [
"Apache-2.0"
] | 3 | 2021-06-22T03:09:21.000Z | 2022-03-17T03:53:03.000Z | amberelectric/api/__init__.py | madpilot/amberelectric.py | ffb26389d8022e8cdfa803fd51365c586686bd21 | [
"Apache-2.0"
] | 4 | 2021-09-11T05:44:08.000Z | 2021-10-02T12:15:38.000Z | amberelectric/api/__init__.py | madpilot/amberelectric.py | ffb26389d8022e8cdfa803fd51365c586686bd21 | [
"Apache-2.0"
] | 3 | 2021-10-01T12:00:57.000Z | 2022-03-17T09:55:49.000Z | from amberelectric.api.amber_api import AmberApi
| 24.5 | 48 | 0.877551 | 7 | 49 | 6 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 49 | 1 | 49 | 49 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 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 |
c32fec9d33a5cdae7c8f4ea693608bad321838c2 | 35 | py | Python | autoremote/__init__.py | wilderjds/autoremote | 3c9ff08742839be619632256a447aea3c552e24a | [
"Apache-2.0"
] | null | null | null | autoremote/__init__.py | wilderjds/autoremote | 3c9ff08742839be619632256a447aea3c552e24a | [
"Apache-2.0"
] | null | null | null | autoremote/__init__.py | wilderjds/autoremote | 3c9ff08742839be619632256a447aea3c552e24a | [
"Apache-2.0"
] | null | null | null | from .autoremote import Autoremote
| 17.5 | 34 | 0.857143 | 4 | 35 | 7.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 35 | 1 | 35 | 35 | 0.967742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5edab31b985b3c3a90d5d2da2e41ab7e945ef42e | 382 | py | Python | terrascript/data/oraclepaas.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | terrascript/data/oraclepaas.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | terrascript/data/oraclepaas.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # terrascript/data/oraclepaas.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:24:00 UTC)
#
# For imports without namespace, e.g.
#
# >>> import terrascript.data.oraclepaas
#
# instead of
#
# >>> import terrascript.data.hashicorp.oraclepaas
#
# This is only available for 'official' and 'partner' pr... | 25.466667 | 73 | 0.746073 | 49 | 382 | 5.816327 | 0.693878 | 0.210526 | 0.175439 | 0.238596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036254 | 0.133508 | 382 | 14 | 74 | 27.285714 | 0.824773 | 0.795812 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5ef699b95a63d30603b1171e8cfc8d5d71c2e92e | 302 | py | Python | ex108/teste.py | Jordemar-D-Bousquet/Exercicios_Python | 705d4c83720db033841f01aa843e4dbab08f1423 | [
"MIT"
] | null | null | null | ex108/teste.py | Jordemar-D-Bousquet/Exercicios_Python | 705d4c83720db033841f01aa843e4dbab08f1423 | [
"MIT"
] | null | null | null | ex108/teste.py | Jordemar-D-Bousquet/Exercicios_Python | 705d4c83720db033841f01aa843e4dbab08f1423 | [
"MIT"
] | null | null | null | from ex108 import moeda
p = float(input('Digite o preço R$:'))
print(f'A medade de {moeda.moeda(p)} é {moeda.moeda(moeda.metade(p))}')
print(f'O dobro de {moeda.moeda(p)} é {moeda.moeda(moeda.dobro(p))}')
print(f'Aumentando a taxa em 10% de {moeda.moeda(p)} temos {moeda.moeda(moeda.aumentar(p,10))}') | 50.333333 | 96 | 0.692053 | 57 | 302 | 3.666667 | 0.438596 | 0.430622 | 0.172249 | 0.186603 | 0.277512 | 0.277512 | 0.277512 | 0.277512 | 0 | 0 | 0 | 0.02583 | 0.102649 | 302 | 6 | 96 | 50.333333 | 0.745387 | 0 | 0 | 0 | 0 | 0.6 | 0.739274 | 0.310231 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.6 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
6f4c91b65a33b7c05f38d03310fb2c1a22a7fb0c | 6 | py | Python | demisto_sdk/tests/test_files/Packs/DummyPack/Scripts/DummyScript/DummyScript.py | sturmianseq/demisto-sdk | 67ce7ee70ccd557d661e03a60469301c5cbcb9c0 | [
"MIT"
] | 42 | 2019-11-07T13:02:00.000Z | 2022-03-29T03:39:04.000Z | demisto_sdk/tests/test_files/Packs/DummyPack/Scripts/DummyScript/DummyScript.py | sturmianseq/demisto-sdk | 67ce7ee70ccd557d661e03a60469301c5cbcb9c0 | [
"MIT"
] | 1,437 | 2019-11-07T13:02:25.000Z | 2022-03-31T12:48:11.000Z | demisto_sdk/tests/test_files/Packs/DummyPack/Scripts/DummyScript/DummyScript.py | sturmianseq/demisto-sdk | 67ce7ee70ccd557d661e03a60469301c5cbcb9c0 | [
"MIT"
] | 46 | 2019-12-09T21:44:30.000Z | 2022-03-24T17:36:45.000Z | a = 5
| 3 | 5 | 0.333333 | 2 | 6 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0.5 | 6 | 1 | 6 | 6 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6f5fed9a268d036fc5d10f92e80fbdc81b890a56 | 4,725 | py | Python | test/test_types.py | sCrypt-Inc/py-scryptlib | 58aa2d8dca36b42ea032825f1bfc01e2d9a65424 | [
"MIT"
] | 7 | 2021-11-14T20:10:29.000Z | 2022-02-26T10:05:07.000Z | test/test_types.py | sCrypt-Inc/py-scryptlib | 58aa2d8dca36b42ea032825f1bfc01e2d9a65424 | [
"MIT"
] | 1 | 2021-08-12T16:50:42.000Z | 2021-09-08T20:13:26.000Z | test/test_types.py | sCrypt-Inc/scryptlib-python | 4df358e89231bf9c9698240d17e06f04b61218d3 | [
"MIT"
] | 1 | 2021-10-16T23:46:23.000Z | 2021-10-16T23:46:23.000Z | import pytest
from scryptlib.types import *
def test_type_bytes():
b = Bytes('01')
assert(b.hex == '0101')
b = Bytes(b'\x01')
assert(b.hex == '0101')
# OP_PUSHDATA1
b = Bytes('ff' * 100)
assert(b.hex == '4c64' + 'ff' * 100)
b = Bytes('ff' * 255)
assert(b.hex == '4cff' + 'ff' * 2... | 50.806452 | 536 | 0.82328 | 262 | 4,725 | 14.79771 | 0.267176 | 0.010833 | 0.018055 | 0.007222 | 0.244003 | 0.033015 | 0 | 0 | 0 | 0 | 0 | 0.470519 | 0.099048 | 4,725 | 92 | 537 | 51.358696 | 0.440216 | 0.011852 | 0 | 0.131148 | 0 | 0 | 0.612744 | 0.598155 | 0.081967 | 1 | 0.01416 | 0 | 0.393443 | 1 | 0.081967 | false | 0 | 0.032787 | 0 | 0.114754 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 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.