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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
40290e453dc415a935e77faf36f362c1b48c02aa | 176 | py | Python | digits/model/tasks/__init__.py | ZeusNightBolt/DIGITS | 3450cc683143415418af5ecdb1b17b02da3e2c79 | [
"BSD-3-Clause"
] | 2 | 2017-04-24T10:16:15.000Z | 2019-02-26T09:36:27.000Z | digits/model/tasks/__init__.py | ZeusNightBolt/DIGITS | 3450cc683143415418af5ecdb1b17b02da3e2c79 | [
"BSD-3-Clause"
] | 1 | 2016-08-30T23:48:17.000Z | 2016-08-30T23:48:17.000Z | digits/model/tasks/__init__.py | ZeusNightBolt/DIGITS | 3450cc683143415418af5ecdb1b17b02da3e2c79 | [
"BSD-3-Clause"
] | 3 | 2017-04-24T10:16:15.000Z | 2019-02-26T09:36:49.000Z | # Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
from train import TrainTask
from caffe_train import CaffeTrainTask
from torch_train import TorchTrainTask
| 29.333333 | 68 | 0.829545 | 23 | 176 | 6.26087 | 0.73913 | 0.229167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052288 | 0.130682 | 176 | 5 | 69 | 35.2 | 0.888889 | 0.375 | 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 |
404cd1c03632e0a5e4e90710a04e06a2c0b7cd96 | 121 | py | Python | credentials/providers/passport/exceptions.py | ad-m/h1-credentials-helper-python | 2c3e0d9c57ea4a37349debbbe7bc640bc326e5e3 | [
"MIT"
] | null | null | null | credentials/providers/passport/exceptions.py | ad-m/h1-credentials-helper-python | 2c3e0d9c57ea4a37349debbbe7bc640bc326e5e3 | [
"MIT"
] | null | null | null | credentials/providers/passport/exceptions.py | ad-m/h1-credentials-helper-python | 2c3e0d9c57ea4a37349debbbe7bc640bc326e5e3 | [
"MIT"
] | null | null | null | from credentials.exceptions import CredentialsException
class InvalidPassportException(CredentialsException):
pass
| 20.166667 | 55 | 0.859504 | 9 | 121 | 11.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107438 | 121 | 5 | 56 | 24.2 | 0.962963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.666667 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 6 |
40854f14af4e729cb21356ed6f16a85698630e53 | 1,969 | py | Python | dfval/tests/tests_dfcheck.py | ashendrickson/dfval | 99e758edfb76e4069ef0c4fe1085f1fa76b4cd23 | [
"Apache-2.0"
] | 5 | 2020-10-12T23:24:47.000Z | 2022-02-18T20:20:58.000Z | dfval/tests/tests_dfcheck.py | ashendrickson/dfval | 99e758edfb76e4069ef0c4fe1085f1fa76b4cd23 | [
"Apache-2.0"
] | null | null | null | dfval/tests/tests_dfcheck.py | ashendrickson/dfval | 99e758edfb76e4069ef0c4fe1085f1fa76b4cd23 | [
"Apache-2.0"
] | 1 | 2020-09-28T15:04:16.000Z | 2020-09-28T15:04:16.000Z | import unittest
from dfval import dups_check
from dfval import column_names_check
import pandas as pd
class TestCheck(unittest.TestCase):
def setUp(self):
self.d_dups = [[3, '2019-12-15'], [3, '2019-12-15'], [3, '2019-12-15'], [3, '2019-12-08']]
self.df_dups = pd.DataFrame(self.d_dups, columns = [... | 45.790698 | 112 | 0.681564 | 311 | 1,969 | 3.942122 | 0.170418 | 0.206362 | 0.068516 | 0.187602 | 0.806688 | 0.772431 | 0.729201 | 0.685155 | 0.606852 | 0.589723 | 0 | 0.069007 | 0.160995 | 1,969 | 42 | 113 | 46.880952 | 0.673123 | 0 | 0 | 0 | 0 | 0 | 0.167598 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 1 | 0.16129 | false | 0.129032 | 0.129032 | 0 | 0.322581 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
4094ccc25cbdd7ba8433556b6c10d17aea8f54c0 | 9,739 | py | Python | medialog/googlefonts/vocabularies.py | collective/medialog.googlefonts | 4ea2fd2a71241af4b712295a2d240d89e4cc1e52 | [
"BSD-Source-Code"
] | null | null | null | medialog/googlefonts/vocabularies.py | collective/medialog.googlefonts | 4ea2fd2a71241af4b712295a2d240d89e4cc1e52 | [
"BSD-Source-Code"
] | null | null | null | medialog/googlefonts/vocabularies.py | collective/medialog.googlefonts | 4ea2fd2a71241af4b712295a2d240d89e4cc1e52 | [
"BSD-Source-Code"
] | null | null | null | from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
from zope.schema.interfaces import IVocabularyFactory
from zope.interface import directlyProvides
from medialog.googlefonts import messageFactory as _
FONTS = [ "Abel", "Abril Fatface", "Aclonica", "Allan", "Allerta Stencil", "Allerta", "Amaranth",... | 389.56 | 9,141 | 0.662388 | 1,131 | 9,739 | 5.700265 | 0.65252 | 0.010237 | 0.006204 | 0.004964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001069 | 0.135435 | 9,739 | 24 | 9,142 | 405.791667 | 0.764608 | 0 | 0 | 0 | 0 | 0 | 0.66475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.0625 | 0.25 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 6 |
90b68d0d2296b4302d30ad34ff123181f7c2bf4b | 2,285 | py | Python | tests/test_problem_testset.py | feimeng93/probabilistic-bvp-solver | d6b38d4ff7b3ab6cf3003de30eb2f6eeb42c0beb | [
"MIT"
] | null | null | null | tests/test_problem_testset.py | feimeng93/probabilistic-bvp-solver | d6b38d4ff7b3ab6cf3003de30eb2f6eeb42c0beb | [
"MIT"
] | null | null | null | tests/test_problem_testset.py | feimeng93/probabilistic-bvp-solver | d6b38d4ff7b3ab6cf3003de30eb2f6eeb42c0beb | [
"MIT"
] | null | null | null | """Assert that the jacobians are implemented correctly."""
import sys
sys.path.append("..")
import numpy as np
import pytest
from bvps.problem_testset import testset_firstorder
@pytest.fixture
def dt():
return 1e-6
@pytest.fixture
def rtol():
return 1e-6
@pytest.fixture
def bvp1st():
return testset_f... | 23.802083 | 80 | 0.66302 | 346 | 2,285 | 4.150289 | 0.176301 | 0.137883 | 0.081476 | 0.054318 | 0.832173 | 0.804318 | 0.768106 | 0.76532 | 0.76532 | 0.72493 | 0 | 0.04778 | 0.221444 | 2,285 | 95 | 81 | 24.052632 | 0.759415 | 0.022757 | 0 | 0.6 | 0 | 0 | 0.000898 | 0 | 0 | 0 | 0 | 0 | 0.184615 | 1 | 0.092308 | false | 0 | 0.061538 | 0.046154 | 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 |
90dfa742d90067a058b0d5b90a5bc28fdd06c1b1 | 89 | py | Python | backend/src/pox/ext/gini/core/openflow_keepalive.py | anrl/gini4 | d26649c8c02a1737159e48732cf1ee15ba2a604d | [
"MIT"
] | 11 | 2019-03-02T20:39:34.000Z | 2021-09-02T19:47:38.000Z | backend/src/pox/ext/gini/core/openflow_keepalive.py | anrl/gini4 | d26649c8c02a1737159e48732cf1ee15ba2a604d | [
"MIT"
] | 29 | 2019-01-17T15:44:48.000Z | 2021-06-02T00:19:40.000Z | backend/src/pox/ext/gini/core/openflow_keepalive.py | anrl/gini4 | d26649c8c02a1737159e48732cf1ee15ba2a604d | [
"MIT"
] | 11 | 2019-01-28T05:00:55.000Z | 2021-11-12T03:08:32.000Z | #!/usr/bin/python2
from openflow import keepalive
def launch():
keepalive.launch()
| 12.714286 | 30 | 0.719101 | 11 | 89 | 5.818182 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.157303 | 89 | 6 | 31 | 14.833333 | 0.84 | 0.191011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
291482db80f61adab0c7117dffb7661d6fbb170b | 81 | py | Python | juno/server/http/handler/base/html_handler.py | DSciLab/juno | 1d572c8d3fd06a6c1fcc51b42a6539dd3ae0927e | [
"MIT"
] | null | null | null | juno/server/http/handler/base/html_handler.py | DSciLab/juno | 1d572c8d3fd06a6c1fcc51b42a6539dd3ae0927e | [
"MIT"
] | null | null | null | juno/server/http/handler/base/html_handler.py | DSciLab/juno | 1d572c8d3fd06a6c1fcc51b42a6539dd3ae0927e | [
"MIT"
] | null | null | null | import tornado.web
class HTMLBaseHandler(tornado.web.RequestHandler):
pass
| 13.5 | 50 | 0.790123 | 9 | 81 | 7.111111 | 0.777778 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135802 | 81 | 5 | 51 | 16.2 | 0.914286 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 6 |
4644c5e162ff3a683854049f6be8b74fc72d0421 | 228 | py | Python | generate_tfrecord.py | xiekai301/211011-CropGAN | 6ea23b14fb8e5687313b65f98c42cc74cb9b5097 | [
"Apache-2.0"
] | null | null | null | generate_tfrecord.py | xiekai301/211011-CropGAN | 6ea23b14fb8e5687313b65f98c42cc74cb9b5097 | [
"Apache-2.0"
] | null | null | null | generate_tfrecord.py | xiekai301/211011-CropGAN | 6ea23b14fb8e5687313b65f98c42cc74cb9b5097 | [
"Apache-2.0"
] | null | null | null | from TFRecord_utils import create_tfrdataset
# import tensorflow as tf
create_tfrdataset(PATH='dataset/train', tfrecord_file='dataset/train.tfrecord')
create_tfrdataset(PATH='dataset/test', tfrecord_file='dataset/test.tfrecord') | 57 | 79 | 0.837719 | 30 | 228 | 6.166667 | 0.466667 | 0.259459 | 0.216216 | 0.291892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 228 | 4 | 80 | 57 | 0.856481 | 0.100877 | 0 | 0 | 0 | 0 | 0.333333 | 0.210784 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
d3b5b6b6c0c3358b29f7c54fd0b70e0e340aad92 | 154 | py | Python | enumfields/__init__.py | druids/django-enumfields | 0afc244666f7b6ca4dd0f915f6ec2e8ab21220c1 | [
"MIT"
] | 2 | 2019-05-21T12:30:02.000Z | 2020-02-18T15:13:26.000Z | enumfields/__init__.py | druids/django-enumfields | 0afc244666f7b6ca4dd0f915f6ec2e8ab21220c1 | [
"MIT"
] | 2 | 2019-05-24T07:34:41.000Z | 2020-06-29T14:30:18.000Z | enumfields/__init__.py | druids/django-enumfields | 0afc244666f7b6ca4dd0f915f6ec2e8ab21220c1 | [
"MIT"
] | 3 | 2019-05-21T12:30:06.000Z | 2021-11-08T19:54:30.000Z | from .enums import IntegerChoicesEnum, TextChoicesEnum, Choice
from .fields import CharEnumField, CharEnumSubField, IntegerEnumField, IntegerEnumSubField
| 51.333333 | 90 | 0.87013 | 13 | 154 | 10.307692 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084416 | 154 | 2 | 91 | 77 | 0.950355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d3ca77f418be45140135f96542be48477643b573 | 60 | py | Python | mkdocsthemebootstrap4/__init__.py | LukeCarrier/mkdocs-bootstrap4 | 19354c9d5516d56342ecfb7f18b6b59ca85ec935 | [
"MIT"
] | 3 | 2019-11-04T13:39:31.000Z | 2020-11-28T05:42:22.000Z | mkdocsthemebootstrap4/__init__.py | LukeCarrier/mkdocs-bootstrap4 | 19354c9d5516d56342ecfb7f18b6b59ca85ec935 | [
"MIT"
] | 8 | 2019-12-22T13:33:38.000Z | 2021-07-15T03:12:38.000Z | mkdocsthemebootstrap4/__init__.py | LukeCarrier/mkdocs-theme-bootstrap4 | 19354c9d5516d56342ecfb7f18b6b59ca85ec935 | [
"MIT"
] | null | null | null | from .plugin import Bootstrap4Blockquotes, Bootstrap4Tables
| 30 | 59 | 0.883333 | 5 | 60 | 10.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0.083333 | 60 | 1 | 60 | 60 | 0.927273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d3e7d66280cfebfb75607cb4f2fd3d873e12486a | 229 | py | Python | diameter/node/AVP_FailedAVP.py | tj8000rpm/PythonDiameter-0.7 | 539c4fb7658fc880ddb4ba175cdcce852d1e604d | [
"Zlib"
] | null | null | null | diameter/node/AVP_FailedAVP.py | tj8000rpm/PythonDiameter-0.7 | 539c4fb7658fc880ddb4ba175cdcce852d1e604d | [
"Zlib"
] | null | null | null | diameter/node/AVP_FailedAVP.py | tj8000rpm/PythonDiameter-0.7 | 539c4fb7658fc880ddb4ba175cdcce852d1e604d | [
"Zlib"
] | null | null | null | from diameter.AVP_Grouped import AVP_Grouped
import diameter.ProtocolConstants
class AVP_FailedAVP(AVP_Grouped):
def __init__(self,a,vendor_id=0):
AVP_Grouped.__init__(self,[a],vendor_id)
def _unittest():
pass
| 20.818182 | 48 | 0.764192 | 32 | 229 | 4.96875 | 0.53125 | 0.251572 | 0.201258 | 0.188679 | 0.213836 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.144105 | 229 | 10 | 49 | 22.9 | 0.806122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.285714 | 0 | 0.714286 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
31070dc2621413c13a281bb6d25f983595110ba6 | 217 | py | Python | djangopj/geo/admin.py | hikarine3/docker-django | ddcb15fa741993c3098a4f6bebbdaa498c27ac20 | [
"MIT"
] | 25 | 2019-11-19T07:16:20.000Z | 2021-11-09T11:04:15.000Z | djangopj/geo/admin.py | hikarine3/docker-django | ddcb15fa741993c3098a4f6bebbdaa498c27ac20 | [
"MIT"
] | 6 | 2020-05-16T10:51:09.000Z | 2021-09-22T19:01:51.000Z | djangopj/geo/admin.py | hikarine3/docker-django | ddcb15fa741993c3098a4f6bebbdaa498c27ac20 | [
"MIT"
] | 1 | 2019-03-26T05:33:01.000Z | 2019-03-26T05:33:01.000Z | from django.contrib import admin
# Register your models here.
from django.contrib import admin
from .models import Country
from .models import Prefecture
admin.site.register(Country)
admin.site.register(Prefecture)
| 21.7 | 32 | 0.820276 | 30 | 217 | 5.933333 | 0.4 | 0.11236 | 0.191011 | 0.258427 | 0.314607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115207 | 217 | 9 | 33 | 24.111111 | 0.927083 | 0.119816 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 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 |
312de341942ad2a8115d0c49f1bbeaa787705ac1 | 43 | py | Python | bin/__init__.py | MFSJMenger/pysurf | 99c6a94d4cb5046f16a0961b907061d989ffb6dc | [
"Apache-2.0"
] | 7 | 2020-10-28T13:46:08.000Z | 2021-05-27T06:41:56.000Z | bin/__init__.py | MFSJMenger/pysurf | 99c6a94d4cb5046f16a0961b907061d989ffb6dc | [
"Apache-2.0"
] | 2 | 2020-10-27T19:15:12.000Z | 2020-10-27T19:15:25.000Z | bin/__init__.py | MFSJMenger/pysurf | 99c6a94d4cb5046f16a0961b907061d989ffb6dc | [
"Apache-2.0"
] | 2 | 2021-04-15T05:54:30.000Z | 2022-02-08T00:10:10.000Z | from sp_calc import SinglePointCalculation
| 21.5 | 42 | 0.906977 | 5 | 43 | 7.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 43 | 1 | 43 | 43 | 0.974359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
315261c9e9bb0262caaa014f65570cfc6becbdce | 38 | py | Python | obs/clis/__init__.py | meongbego/neo-obs | 23c85642d3533e16855a1158fb939cd4b47fc7d6 | [
"MIT"
] | 1 | 2018-09-08T12:59:11.000Z | 2018-09-08T12:59:11.000Z | obs/clis/__init__.py | meongbego/neo-obs | 23c85642d3533e16855a1158fb939cd4b47fc7d6 | [
"MIT"
] | null | null | null | obs/clis/__init__.py | meongbego/neo-obs | 23c85642d3533e16855a1158fb939cd4b47fc7d6 | [
"MIT"
] | null | null | null | from .login import *
from .ls import * | 19 | 20 | 0.710526 | 6 | 38 | 4.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 38 | 2 | 21 | 19 | 0.870968 | 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 |
3161c9f50918b093b69569a65a18627f0eb7a8ea | 45,276 | py | Python | animal/arenas/utils/create_arenas.py | compsciencelab/ppo_D | 1870c908f498ceb29295e5625ff5598bed82cbb3 | [
"MIT"
] | 4 | 2021-08-18T07:47:38.000Z | 2022-01-06T17:27:21.000Z | animal/arenas/utils/create_arenas.py | compsciencelab/ppo_D | 1870c908f498ceb29295e5625ff5598bed82cbb3 | [
"MIT"
] | null | null | null | animal/arenas/utils/create_arenas.py | compsciencelab/ppo_D | 1870c908f498ceb29295e5625ff5598bed82cbb3 | [
"MIT"
] | 1 | 2022-02-16T11:03:12.000Z | 2022-02-16T11:03:12.000Z | """ Create sets C1 to C10 of test arenas with known max reward for testing. """
import random
import numpy as np
from .edit_arenas import (add_object, write_arena, create_wall)
from .sample_features import (random_size, random_pos, random_rotation)
from .edit_arenas import (add_ramp_scenario, add_walled, add_choice,
... | 38.079058 | 125 | 0.634243 | 6,426 | 45,276 | 4.213041 | 0.043417 | 0.035164 | 0.055332 | 0.068777 | 0.888191 | 0.87168 | 0.849924 | 0.829387 | 0.812507 | 0.803088 | 0 | 0.039784 | 0.24386 | 45,276 | 1,188 | 126 | 38.111111 | 0.751015 | 0.112908 | 0 | 0.684 | 0 | 0 | 0.056631 | 0.000632 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053333 | false | 0 | 0.006667 | 0 | 0.116 | 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 |
3173549b78f25e85fad530fb2464104ba94a5011 | 86 | py | Python | Level1/Lessons12903/wowo0709.py | StudyForCoding/ProgrammersLevel | dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25 | [
"MIT"
] | null | null | null | Level1/Lessons12903/wowo0709.py | StudyForCoding/ProgrammersLevel | dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25 | [
"MIT"
] | null | null | null | Level1/Lessons12903/wowo0709.py | StudyForCoding/ProgrammersLevel | dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25 | [
"MIT"
] | 1 | 2021-04-05T07:35:59.000Z | 2021-04-05T07:35:59.000Z | def solution(s):
N = len(s)
return s[N//2] if N % 2 == 1 else s[N//2-1:N//2+1] | 28.666667 | 54 | 0.488372 | 22 | 86 | 1.909091 | 0.454545 | 0.190476 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 0.255814 | 86 | 3 | 54 | 28.666667 | 0.546875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 1 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
3185b8f83ea18b9e532fcc72f94a943c356cf5dc | 43 | py | Python | init_db.py | notnamed/social-graph | 1120889bcf72901c69a07797fdbf689b36853e6f | [
"MIT"
] | null | null | null | init_db.py | notnamed/social-graph | 1120889bcf72901c69a07797fdbf689b36853e6f | [
"MIT"
] | null | null | null | init_db.py | notnamed/social-graph | 1120889bcf72901c69a07797fdbf689b36853e6f | [
"MIT"
] | null | null | null | import social_graph
social_graph.init_db()
| 14.333333 | 22 | 0.860465 | 7 | 43 | 4.857143 | 0.714286 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 43 | 2 | 23 | 21.5 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
319b781e5814130abde4cc96fd6e91ef3e46db80 | 49 | py | Python | src/compgen2/gov/__init__.py | CorrelAid/compgen-ii-cgv | 810a044d6bbe1ce058a359115e3e5fc71a358549 | [
"MIT"
] | 1 | 2022-02-02T12:41:06.000Z | 2022-02-02T12:41:06.000Z | src/compgen2/gov/__init__.py | CorrelAid/compgen-ii-cgv | 810a044d6bbe1ce058a359115e3e5fc71a358549 | [
"MIT"
] | null | null | null | src/compgen2/gov/__init__.py | CorrelAid/compgen-ii-cgv | 810a044d6bbe1ce058a359115e3e5fc71a358549 | [
"MIT"
] | null | null | null | from .gov import Gov
from .matcher import Matcher | 24.5 | 28 | 0.816327 | 8 | 49 | 5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 49 | 2 | 28 | 24.5 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
31a22c249c33ef768a09aa92564829e135db5a00 | 229 | py | Python | msc/tests/test_WNVJungle.py | WNVJungle/git-github-travis-lab | f8127748ee7a31be457d428a09fe7b66c88c54b2 | [
"Apache-2.0"
] | null | null | null | msc/tests/test_WNVJungle.py | WNVJungle/git-github-travis-lab | f8127748ee7a31be457d428a09fe7b66c88c54b2 | [
"Apache-2.0"
] | 3 | 2019-10-23T10:40:14.000Z | 2019-10-23T10:54:11.000Z | msc/tests/test_WNVJungle.py | WNVJungle/git-github-travis-lab | f8127748ee7a31be457d428a09fe7b66c88c54b2 | [
"Apache-2.0"
] | 11 | 2019-10-23T09:50:57.000Z | 2019-10-23T10:24:18.000Z | from msc.rot13 import rot13
from msc.rot13 import rot13_char
def test_rot13_char_a():
assert "n" == rot13_char("a"), "Unexpected character"
def test_rot13_abcdef():
assert "abcdef" == rot13("nopqrs"), "Unexpected character"
| 22.9 | 59 | 0.742358 | 33 | 229 | 4.939394 | 0.424242 | 0.165644 | 0.147239 | 0.220859 | 0.282209 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.126638 | 229 | 9 | 60 | 25.444444 | 0.735 | 0 | 0 | 0 | 0 | 0 | 0.235808 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
730e223c864123dc0dc8d6f805e3f412e178069a | 197 | py | Python | web_elements/content.py | tronze/PythonCustomCalendar | bd7ffbbf28616ccf65e545605ede5f3dda251c9a | [
"BSD-3-Clause"
] | 8 | 2019-03-05T12:23:07.000Z | 2021-01-10T09:49:27.000Z | web_elements/content.py | tronze/PythonCustomCalendar | bd7ffbbf28616ccf65e545605ede5f3dda251c9a | [
"BSD-3-Clause"
] | null | null | null | web_elements/content.py | tronze/PythonCustomCalendar | bd7ffbbf28616ccf65e545605ede5f3dda251c9a | [
"BSD-3-Clause"
] | 2 | 2019-02-18T06:34:34.000Z | 2019-03-05T12:17:22.000Z | from .node import Node
class Content(Node):
def __init__(self, content):
super().__init__()
self.content = content
def create_element(self):
return self.content
| 16.416667 | 32 | 0.634518 | 23 | 197 | 5.043478 | 0.521739 | 0.284483 | 0.258621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269036 | 197 | 11 | 33 | 17.909091 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
733a0470c3524cff14b8d3a54298cb7055db5599 | 44 | py | Python | tests/test_suite.py | kasium/alembic | af7963889abffe2ab8dc640d4fdcb8cea6d53942 | [
"MIT"
] | 1,324 | 2018-11-27T05:44:41.000Z | 2022-03-30T19:49:20.000Z | tests/test_suite.py | kasium/alembic | af7963889abffe2ab8dc640d4fdcb8cea6d53942 | [
"MIT"
] | 452 | 2018-11-27T22:43:38.000Z | 2022-03-28T04:33:43.000Z | tests/test_suite.py | kasium/alembic | af7963889abffe2ab8dc640d4fdcb8cea6d53942 | [
"MIT"
] | 159 | 2018-11-29T18:46:15.000Z | 2022-03-28T16:34:19.000Z | from alembic.testing.suite import * # noqa
| 22 | 43 | 0.75 | 6 | 44 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 44 | 1 | 44 | 44 | 0.891892 | 0.090909 | 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 |
b410a1c2a7ffaab5e3100a670f9684254bc4b69c | 2,990 | py | Python | src/mutator/test_uoi_strategy.py | AAU-PSix/canary | 93b07d23cd9380adc03a6aa1291a13eaa3b3008c | [
"MIT"
] | null | null | null | src/mutator/test_uoi_strategy.py | AAU-PSix/canary | 93b07d23cd9380adc03a6aa1291a13eaa3b3008c | [
"MIT"
] | null | null | null | src/mutator/test_uoi_strategy.py | AAU-PSix/canary | 93b07d23cd9380adc03a6aa1291a13eaa3b3008c | [
"MIT"
] | null | null | null | from unittest import TestCase
from .uoi_strategy import UoiStrategy
from ts import (
LanguageLibrary,
Parser,
CSyntax,
)
class TestAbsStrategu(TestCase):
def setUp(self) -> None:
LanguageLibrary.build()
self._language = LanguageLibrary.c()
self._parser = Parser.create_with_langu... | 27.685185 | 66 | 0.619732 | 309 | 2,990 | 5.799353 | 0.142395 | 0.122768 | 0.090402 | 0.125558 | 0.851004 | 0.851004 | 0.851004 | 0.851004 | 0.851004 | 0.851004 | 0 | 0.002754 | 0.271237 | 2,990 | 108 | 67 | 27.685185 | 0.819642 | 0 | 0 | 0.607595 | 0 | 0 | 0.013039 | 0 | 0 | 0 | 0 | 0 | 0.113924 | 1 | 0.126582 | false | 0 | 0.037975 | 0 | 0.177215 | 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 |
b479ea6f9d3acc9f01d13fa6538cc476a4e77ace | 124 | py | Python | python/testData/hierarchy/call/Static/ArgumentList/main.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/hierarchy/call/Static/ArgumentList/main.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/hierarchy/call/Static/ArgumentList/main.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | from file_1 import *
target_<caret>func()
func1(target_func)
func1(target_func())
func2(target_func)
func2(target_func())
| 13.777778 | 20 | 0.774194 | 19 | 124 | 4.736842 | 0.473684 | 0.444444 | 0.333333 | 0.422222 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044248 | 0.08871 | 124 | 8 | 21 | 15.5 | 0.752212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b48a5e0433c477b5bbc3ef3fba7800faa2b49177 | 32 | py | Python | lim/genetics/heritability/__init__.py | glimix/glimix | 22c9b94732918bce31f64cb33ce368ea85ead478 | [
"MIT"
] | 2 | 2016-12-16T14:14:59.000Z | 2017-01-31T16:50:08.000Z | lim/genetics/heritability/__init__.py | glimix/glimix | 22c9b94732918bce31f64cb33ce368ea85ead478 | [
"MIT"
] | null | null | null | lim/genetics/heritability/__init__.py | glimix/glimix | 22c9b94732918bce31f64cb33ce368ea85ead478 | [
"MIT"
] | 2 | 2017-02-13T14:34:37.000Z | 2017-02-15T14:27:32.000Z | from ._estimate import estimate
| 16 | 31 | 0.84375 | 4 | 32 | 6.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 32 | 1 | 32 | 32 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
81fd37ba1f5605285358f7bfabbd32206b6341ee | 7,284 | py | Python | tests/test_path_zip.py | jhermann/dephell_archive | 582e7e38d7dd702a267b6436da42bc372c8e4d44 | [
"MIT"
] | null | null | null | tests/test_path_zip.py | jhermann/dephell_archive | 582e7e38d7dd702a267b6436da42bc372c8e4d44 | [
"MIT"
] | 19 | 2019-12-17T12:29:36.000Z | 2020-06-03T07:56:22.000Z | tests/test_path_zip.py | jhermann/dephell_archive | 582e7e38d7dd702a267b6436da42bc372c8e4d44 | [
"MIT"
] | 6 | 2019-09-04T05:30:51.000Z | 2021-09-28T02:43:22.000Z | # built-in
from pathlib import Path
# project
from dephell_archive import ArchivePath
wheel_path = Path(__file__).parent / 'requirements' / 'wheel.whl'
def test_open_zip(tmpdir):
path = ArchivePath(
archive_path=wheel_path,
cache_path=Path(str(tmpdir)),
)
subpath = path / 'dephell' / '_... | 29.852459 | 75 | 0.647996 | 983 | 7,284 | 4.629705 | 0.081384 | 0.055372 | 0.077126 | 0.09844 | 0.871017 | 0.801143 | 0.779609 | 0.776972 | 0.756537 | 0.722259 | 0 | 0.021183 | 0.215815 | 7,284 | 243 | 76 | 29.975309 | 0.77556 | 0.002197 | 0 | 0.590164 | 0 | 0 | 0.177839 | 0.009498 | 0 | 0 | 0 | 0 | 0.295082 | 1 | 0.087432 | false | 0 | 0.010929 | 0 | 0.098361 | 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 |
c326b4e481a46d1f175ab5f0dd8013ca9af26194 | 18,975 | py | Python | tests/unit/test_nhl_boxscore.py | JosephDErwin/sportsreference | f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd | [
"MIT"
] | null | null | null | tests/unit/test_nhl_boxscore.py | JosephDErwin/sportsreference | f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd | [
"MIT"
] | null | null | null | tests/unit/test_nhl_boxscore.py | JosephDErwin/sportsreference | f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd | [
"MIT"
] | 1 | 2020-07-08T16:05:25.000Z | 2020-07-08T16:05:25.000Z | from flexmock import flexmock
from mock import patch, PropertyMock
from pyquery import PyQuery as pq
from sportsreference import utils
from sportsreference.constants import AWAY, HOME
from sportsreference.nhl.boxscore import Boxscore, Boxscores
class MockField:
def __init__(self, field):
self._field = fie... | 34.189189 | 75 | 0.677523 | 2,358 | 18,975 | 5.091179 | 0.081001 | 0.117951 | 0.099958 | 0.078301 | 0.857226 | 0.827988 | 0.806247 | 0.786672 | 0.786672 | 0.771678 | 0 | 0.015833 | 0.224453 | 18,975 | 554 | 76 | 34.250903 | 0.799946 | 0 | 0 | 0.655422 | 0 | 0.004819 | 0.084796 | 0.00585 | 0 | 0 | 0 | 0 | 0.098795 | 1 | 0.125301 | false | 0 | 0.014458 | 0.009639 | 0.166265 | 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 |
c365664b9c836dcf8ce6404c28cf198414c006e5 | 144 | py | Python | jupyterlab_nvdashboard/tests/test_utils.py | vidosits/jupyterlab-nvdashboard | 50cf834b22dc3c6a6ce44997cbfd01aae2bed7e2 | [
"BSD-3-Clause"
] | 368 | 2019-10-07T15:32:50.000Z | 2022-03-27T03:42:29.000Z | jupyterlab_nvdashboard/tests/test_utils.py | vidosits/jupyterlab-nvdashboard | 50cf834b22dc3c6a6ce44997cbfd01aae2bed7e2 | [
"BSD-3-Clause"
] | 82 | 2019-10-03T02:05:39.000Z | 2022-03-17T20:27:16.000Z | jupyterlab_nvdashboard/tests/test_utils.py | vidosits/jupyterlab-nvdashboard | 50cf834b22dc3c6a6ce44997cbfd01aae2bed7e2 | [
"BSD-3-Clause"
] | 42 | 2019-10-03T09:02:46.000Z | 2021-12-08T05:32:24.000Z | import pytest
def test_format_bytes():
from jupyterlab_nvdashboard.utils import format_bytes
assert format_bytes(1e13) == "10.00 TB"
| 18 | 57 | 0.756944 | 20 | 144 | 5.2 | 0.75 | 0.317308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058333 | 0.166667 | 144 | 7 | 58 | 20.571429 | 0.808333 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | true | 0 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
c370c3f931c787eed137e054e44a6d964aaf49e0 | 13,362 | py | Python | src/tests/functional/api/test_api_views.py | s-light/pretalx | 5abed452688d8c0b3e44e71b7ce3ab9b6d80bd95 | [
"Apache-2.0"
] | null | null | null | src/tests/functional/api/test_api_views.py | s-light/pretalx | 5abed452688d8c0b3e44e71b7ce3ab9b6d80bd95 | [
"Apache-2.0"
] | null | null | null | src/tests/functional/api/test_api_views.py | s-light/pretalx | 5abed452688d8c0b3e44e71b7ce3ab9b6d80bd95 | [
"Apache-2.0"
] | null | null | null | import json
import pytest
@pytest.mark.django_db
def test_api_user_endpoint(orga_client, room):
response = orga_client.get('/api/me', follow=True)
assert response.status_code == 200
content = json.loads(response.content.decode())
assert set(content.keys()) == {'name', 'email', 'locale', 'timezone'}
... | 33.074257 | 94 | 0.729906 | 1,724 | 13,362 | 5.434455 | 0.067865 | 0.060839 | 0.073967 | 0.061479 | 0.871705 | 0.853133 | 0.846835 | 0.831465 | 0.805529 | 0.766784 | 0 | 0.012848 | 0.149529 | 13,362 | 403 | 95 | 33.156328 | 0.811598 | 0.004341 | 0 | 0.684887 | 0 | 0 | 0.051646 | 0.003157 | 0 | 0 | 0 | 0 | 0.289389 | 1 | 0.102894 | false | 0 | 0.006431 | 0 | 0.109325 | 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 |
6f00237d5ff01654dba32165ed49a88a7a15a299 | 43,461 | py | Python | action-server/tests/actions/test_daily_ci_enroll_form.py | dialoguemd/covidflow | b159b76dc68462f272614db4cbf716844872ebca | [
"MIT"
] | 7 | 2020-05-23T07:07:26.000Z | 2021-11-29T05:58:51.000Z | action-server/tests/actions/test_daily_ci_enroll_form.py | dialoguemd/covidflow | b159b76dc68462f272614db4cbf716844872ebca | [
"MIT"
] | 210 | 2020-04-13T17:21:55.000Z | 2021-04-20T15:46:26.000Z | action-server/tests/actions/test_daily_ci_enroll_form.py | dialoguemd/covidflow | b159b76dc68462f272614db4cbf716844872ebca | [
"MIT"
] | 3 | 2020-04-09T14:38:09.000Z | 2020-07-29T15:06:11.000Z | from unittest.mock import MagicMock, patch
import pytest
from rasa_sdk.events import Form, SlotSet
from rasa_sdk.forms import REQUESTED_SLOT
from covidflow.actions.daily_ci_enroll_form import (
CODE_TRY_COUNTER_SLOT,
DO_ENROLL_SLOT,
FORM_NAME,
JUST_SENT_CODE_SLOT,
NO_CODE_SOLUTION_SLOT,
PHONE_... | 32.289004 | 88 | 0.575228 | 4,312 | 43,461 | 5.286642 | 0.036874 | 0.092736 | 0.045052 | 0.067424 | 0.9206 | 0.897833 | 0.878137 | 0.860414 | 0.837779 | 0.823127 | 0 | 0.00803 | 0.349555 | 43,461 | 1,345 | 89 | 32.313011 | 0.798366 | 0.001887 | 0 | 0.63549 | 0 | 0 | 0.102338 | 0.085255 | 0 | 0 | 0 | 0 | 0.081294 | 1 | 0.041084 | false | 0 | 0.006119 | 0 | 0.049825 | 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 |
6f0921ee7873a4f3165dfb865e16b2ca70b1351a | 14,452 | py | Python | castoredc_api/tests/test_import/test_async_import/test_import_report_async.py | reiniervlinschoten/castoredc_api | 54a71606fa681a05e795e42a37d4b4f58b97e787 | [
"MIT"
] | 1 | 2022-02-07T17:49:31.000Z | 2022-02-07T17:49:31.000Z | castoredc_api/tests/test_import/test_async_import/test_import_report_async.py | reiniervlinschoten/castoredc_api | 54a71606fa681a05e795e42a37d4b4f58b97e787 | [
"MIT"
] | 48 | 2021-08-05T15:20:27.000Z | 2022-03-28T14:49:25.000Z | castoredc_api/tests/test_import/test_async_import/test_import_report_async.py | reiniervlinschoten/castoredc_api | 54a71606fa681a05e795e42a37d4b4f58b97e787 | [
"MIT"
] | 1 | 2021-08-06T07:06:37.000Z | 2021-08-06T07:06:37.000Z | import pytest
from castoredc_api import CastorException
from castoredc_api.importer.import_data import import_data
class TestImportReportAsync:
"""Tests uploading data to Castor."""
def test_import_report_value_success(self, import_study):
"""Tests if uploading value data is successful"""
im... | 35.772277 | 135 | 0.476266 | 1,364 | 14,452 | 4.692082 | 0.103372 | 0.046875 | 0.040625 | 0.059375 | 0.902344 | 0.88875 | 0.88875 | 0.883906 | 0.872656 | 0.831563 | 0 | 0.057717 | 0.407764 | 14,452 | 403 | 136 | 35.861042 | 0.690034 | 0.044423 | 0 | 0.681319 | 0 | 0 | 0.297077 | 0.117639 | 0 | 0 | 0 | 0 | 0.027473 | 1 | 0.027473 | false | 0 | 0.173077 | 0 | 0.21978 | 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 |
6f73ef8b45320b7f555fe98e8434d7029128b373 | 93 | py | Python | src/__init__.py | kirbiyik/generate-any-text | 7f9d78e439e23f99be34681268c052f7f6df9fdb | [
"MIT"
] | 11 | 2019-07-27T04:42:17.000Z | 2020-11-15T21:55:40.000Z | src/__init__.py | kirbiyik/generate-any-text | 7f9d78e439e23f99be34681268c052f7f6df9fdb | [
"MIT"
] | null | null | null | src/__init__.py | kirbiyik/generate-any-text | 7f9d78e439e23f99be34681268c052f7f6df9fdb | [
"MIT"
] | 1 | 2019-07-27T14:02:40.000Z | 2019-07-27T14:02:40.000Z | from .layers import *
from .model import *
from .optimizer import *
from .dataloader import * | 23.25 | 25 | 0.752688 | 12 | 93 | 5.833333 | 0.5 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 4 | 25 | 23.25 | 0.897436 | 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 |
488b0f5283d971475c4ebbcb495d025d65a798f0 | 178 | py | Python | test_inputs/tests.py | gribbg/x7-testing | c062c430ff1c31e943f04f152c9c88c179f5085b | [
"BSD-2-Clause"
] | null | null | null | test_inputs/tests.py | gribbg/x7-testing | c062c430ff1c31e943f04f152c9c88c179f5085b | [
"BSD-2-Clause"
] | null | null | null | test_inputs/tests.py | gribbg/x7-testing | c062c430ff1c31e943f04f152c9c88c179f5085b | [
"BSD-2-Clause"
] | null | null | null | """
This file will generate output that will be in error because the
name of this module (tests) clashes with the @tests annotation.
"""
def this_wont_work():
pass
| 19.777778 | 68 | 0.696629 | 27 | 178 | 4.518519 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230337 | 178 | 8 | 69 | 22.25 | 0.890511 | 0.719101 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
488bb55325651b61fca0dc5655afb0eda4f622c8 | 26,437 | py | Python | server/tracebin_server/traces/fixture_gen.py | alex/tracebin | cd9717e750718dcb94140f60957c3f543915317f | [
"BSD-3-Clause"
] | 3 | 2015-11-08T12:45:45.000Z | 2019-05-09T20:03:57.000Z | server/tracebin_server/traces/fixture_gen.py | alex/tracebin | cd9717e750718dcb94140f60957c3f543915317f | [
"BSD-3-Clause"
] | null | null | null | server/tracebin_server/traces/fixture_gen.py | alex/tracebin | cd9717e750718dcb94140f60957c3f543915317f | [
"BSD-3-Clause"
] | null | null | null | from textwrap import dedent
from fixture_generator import fixture_generator
from .models import (Log, RuntimeEnviroment, TimelineEvent, StatCounter,
BaseTrace, PythonTrace, RegexTrace, NumPyPyTrace, TraceSection, TraceChunk,
PythonChunk, ResOpChunk)
@fixture_generator(
Log, RuntimeEnviroment, TimelineEv... | 44.431933 | 135 | 0.612513 | 3,571 | 26,437 | 4.356483 | 0.113974 | 0.030469 | 0.050138 | 0.068394 | 0.783056 | 0.749502 | 0.72109 | 0.712862 | 0.699492 | 0.686058 | 0 | 0.08484 | 0.248742 | 26,437 | 595 | 136 | 44.431933 | 0.698454 | 0.004312 | 0 | 0.61658 | 0 | 0.210708 | 0.679268 | 0.092284 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001727 | false | 0 | 0.005181 | 0 | 0.010363 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d2c45b1783d1dc87374d177921834282ee656e79 | 210 | py | Python | packages/admin.py | dandeduck/package-tracking-web | f7cb3dffd6f7f6b7ced5b1106a049c79c192dfa5 | [
"MIT"
] | 1 | 2021-02-11T22:16:51.000Z | 2021-02-11T22:16:51.000Z | packages/admin.py | dandeduck/package-tracking-web | f7cb3dffd6f7f6b7ced5b1106a049c79c192dfa5 | [
"MIT"
] | 54 | 2021-02-11T18:52:11.000Z | 2021-06-13T13:45:01.000Z | packages/admin.py | dandeduck/package-tracking-web | f7cb3dffd6f7f6b7ced5b1106a049c79c192dfa5 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Partner, Order, Address, Package
admin.site.register(Partner)
admin.site.register(Order)
admin.site.register(Address)
admin.site.register(Package)
| 23.333333 | 53 | 0.780952 | 28 | 210 | 5.857143 | 0.428571 | 0.219512 | 0.414634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 210 | 8 | 54 | 26.25 | 0.886486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 |
d2d83d452fd30e718546c0eac26fe03bbef59c06 | 1,647 | py | Python | sympy/physics/optics/__init__.py | utkarshdeorah/sympy | dcdf59bbc6b13ddbc329431adf72fcee294b6389 | [
"BSD-3-Clause"
] | 8,323 | 2015-01-02T15:51:43.000Z | 2022-03-31T13:13:19.000Z | sympy/physics/optics/__init__.py | utkarshdeorah/sympy | dcdf59bbc6b13ddbc329431adf72fcee294b6389 | [
"BSD-3-Clause"
] | 15,102 | 2015-01-01T01:33:17.000Z | 2022-03-31T22:53:13.000Z | sympy/physics/optics/__init__.py | utkarshdeorah/sympy | dcdf59bbc6b13ddbc329431adf72fcee294b6389 | [
"BSD-3-Clause"
] | 4,490 | 2015-01-01T17:48:07.000Z | 2022-03-31T17:24:05.000Z | __all__ = [
'TWave',
'RayTransferMatrix', 'FreeSpace', 'FlatRefraction', 'CurvedRefraction',
'FlatMirror', 'CurvedMirror', 'ThinLens', 'GeometricRay', 'BeamParameter',
'waist2rayleigh', 'rayleigh2waist', 'geometric_conj_ab',
'geometric_conj_af', 'geometric_conj_bf', 'gaussian_conj',
'conjugate_... | 42.230769 | 78 | 0.758349 | 162 | 1,647 | 7.265432 | 0.388889 | 0.06627 | 0.067969 | 0.095157 | 0.905692 | 0.905692 | 0.905692 | 0.905692 | 0.905692 | 0.905692 | 0 | 0.004243 | 0.141469 | 1,647 | 38 | 79 | 43.342105 | 0.828147 | 0 | 0 | 0 | 0 | 0 | 0.350941 | 0.054645 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
825b43a19aa2a825d590518292a7f19d23a5c051 | 21,681 | py | Python | micro_admin/migrations/0001_initial.py | lance0145/micro-finance | 1ba6339a9d05ff2f20b020b97a233c766b2ee6e0 | [
"MIT"
] | 72 | 2015-09-18T07:23:20.000Z | 2022-03-23T14:35:46.000Z | micro_admin/migrations/0001_initial.py | mohbadar/micro-finance | 00fc9ad1e09cd6658aa5fa0dd991cf18fe2927a6 | [
"MIT"
] | 68 | 2015-01-03T13:44:40.000Z | 2021-06-10T20:00:23.000Z | micro_admin/migrations/0001_initial.py | mohbadar/micro-finance | 00fc9ad1e09cd6658aa5fa0dd991cf18fe2927a6 | [
"MIT"
] | 73 | 2015-02-10T07:03:42.000Z | 2022-02-24T21:11:01.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-07 07:54
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', ... | 74.25 | 434 | 0.62511 | 2,305 | 21,681 | 5.68026 | 0.109328 | 0.043993 | 0.059116 | 0.078821 | 0.804399 | 0.783396 | 0.737952 | 0.717483 | 0.686092 | 0.648591 | 0 | 0.020401 | 0.222268 | 21,681 | 291 | 435 | 74.505155 | 0.756079 | 0.00309 | 0 | 0.487633 | 1 | 0 | 0.185369 | 0.038777 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.003534 | 0.014134 | 0 | 0.028269 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
82639d04709bb7e35e36b9d519f7420e58a05774 | 67 | py | Python | pymusical/__init__.py | jgueting/pymusical | 5dfebbe496dd9e2e3aa04fbc9485b8f8ff588eba | [
"MIT"
] | null | null | null | pymusical/__init__.py | jgueting/pymusical | 5dfebbe496dd9e2e3aa04fbc9485b8f8ff588eba | [
"MIT"
] | null | null | null | pymusical/__init__.py | jgueting/pymusical | 5dfebbe496dd9e2e3aa04fbc9485b8f8ff588eba | [
"MIT"
] | null | null | null | from pymusical.converter import MusicConverter, MusicConverterError | 67 | 67 | 0.910448 | 6 | 67 | 10.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059701 | 67 | 1 | 67 | 67 | 0.968254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
82ba72859cc184d9e3af6870d7d31bfe1e648030 | 113 | py | Python | __init__.py | Harryjun/pytorch-vsumm-reinforce | 2200d58e855ae3ea42c98107dc059f691d138671 | [
"MIT"
] | 18 | 2019-10-17T02:05:40.000Z | 2021-05-08T15:39:49.000Z | __init__.py | Harryjun/pytorch-vsumm-reinforce | 2200d58e855ae3ea42c98107dc059f691d138671 | [
"MIT"
] | null | null | null | __init__.py | Harryjun/pytorch-vsumm-reinforce | 2200d58e855ae3ea42c98107dc059f691d138671 | [
"MIT"
] | 1 | 2020-07-27T20:46:14.000Z | 2020-07-27T20:46:14.000Z | import sys
sys.path.append('./utils/')
from file_process import *
from knapsack import *
from vsum_tool import *
| 18.833333 | 27 | 0.761062 | 17 | 113 | 4.941176 | 0.647059 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132743 | 113 | 5 | 28 | 22.6 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7d568330ec0526ae317a57d151bb8319e73a140e | 4,464 | py | Python | project/emccfr_all_games.py | aditya140/rlcard | de203b9b74a653019452aeb0622345f33dd42eda | [
"MIT"
] | null | null | null | project/emccfr_all_games.py | aditya140/rlcard | de203b9b74a653019452aeb0622345f33dd42eda | [
"MIT"
] | null | null | null | project/emccfr_all_games.py | aditya140/rlcard | de203b9b74a653019452aeb0622345f33dd42eda | [
"MIT"
] | null | null | null | ''' An example of solve Leduc Hold'em with CFR
'''
import torch
import os
import sys
sys.path.append(".")
import numpy as np
import rlcard
from rlcard.agents import EMCCFRAgent, RandomAgent
from rlcard import models
from rlcard.utils import set_global_seed, tournament
from rlcard.utils import Logger
def train_ledu... | 30.162162 | 94 | 0.677419 | 610 | 4,464 | 4.813115 | 0.170492 | 0.015327 | 0.026567 | 0.040872 | 0.859332 | 0.859332 | 0.859332 | 0.85252 | 0.845027 | 0.798025 | 0 | 0.019954 | 0.225358 | 4,464 | 147 | 95 | 30.367347 | 0.829092 | 0.320341 | 0 | 0.618421 | 0 | 0 | 0.118434 | 0.045166 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039474 | false | 0 | 0.118421 | 0 | 0.157895 | 0.039474 | 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 |
7d5958e81a3c96be8904d1145d2daff5d82d8b41 | 1,309 | py | Python | Python/libraries/recognizers-date-time/recognizers_date_time/date_time/chinese/__init__.py | ParadoxARG/Recognizers-Text | 70c2a368e48fb0694f8a185574d6dd6076b29362 | [
"MIT"
] | 10 | 2019-05-11T18:07:14.000Z | 2021-08-20T03:02:47.000Z | Python/libraries/recognizers-date-time/recognizers_date_time/date_time/chinese/__init__.py | ParadoxARG/Recognizers-Text | 70c2a368e48fb0694f8a185574d6dd6076b29362 | [
"MIT"
] | 76 | 2018-11-09T18:19:44.000Z | 2019-08-20T20:29:53.000Z | Python/libraries/recognizers-date-time/recognizers_date_time/date_time/chinese/__init__.py | ParadoxARG/Recognizers-Text | 70c2a368e48fb0694f8a185574d6dd6076b29362 | [
"MIT"
] | 18 | 2019-08-19T12:11:00.000Z | 2021-10-12T09:36:27.000Z | from .base_date_time_extractor import *
from .duration_extractor_config import *
from .duration_extractor import *
from .time_extractor import *
from .date_extractor_config import *
from .date_extractor import *
from .timeperiod_extractor import *
from .dateperiod_extractor_config import *
from .dateperiod_extractor im... | 34.447368 | 46 | 0.830405 | 167 | 1,309 | 6.173653 | 0.095808 | 0.349176 | 0.263822 | 0.192047 | 0.068865 | 0.068865 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113063 | 1,309 | 37 | 47 | 35.378378 | 0.888028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7d681fdf8380487d0dbc5b16bbcf61ea66ffdd9e | 124 | py | Python | tests/conftest.py | nanten2/necst-lib | 763477825c24b4307028b2d8ac1d08954512899b | [
"MIT"
] | 1 | 2022-02-04T12:12:46.000Z | 2022-02-04T12:12:46.000Z | tests/conftest.py | nanten2/neclib | 763477825c24b4307028b2d8ac1d08954512899b | [
"MIT"
] | 14 | 2022-02-09T06:32:28.000Z | 2022-03-27T10:27:20.000Z | tests/conftest.py | nanten2/neclib | 763477825c24b4307028b2d8ac1d08954512899b | [
"MIT"
] | null | null | null | from pathlib import Path
import pytest
@pytest.fixture
def data_dir() -> Path:
return Path(__file__).parent / "_data"
| 15.5 | 42 | 0.725806 | 17 | 124 | 4.941176 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169355 | 124 | 7 | 43 | 17.714286 | 0.815534 | 0 | 0 | 0 | 0 | 0 | 0.040323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 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 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
7d80a2d4612796abfb35f3900633eb4752f47e91 | 74 | py | Python | src/aspire/basis/fpswf_2d.py | janden/ASPIRE-Python | 5bcf831881fd0e42630c3b99671c5ed08de260ea | [
"MIT"
] | null | null | null | src/aspire/basis/fpswf_2d.py | janden/ASPIRE-Python | 5bcf831881fd0e42630c3b99671c5ed08de260ea | [
"MIT"
] | null | null | null | src/aspire/basis/fpswf_2d.py | janden/ASPIRE-Python | 5bcf831881fd0e42630c3b99671c5ed08de260ea | [
"MIT"
] | null | null | null | from aspire.basis.pswf_2d import PSWF2D
class FPSWF2D(PSWF2D):
pass
| 12.333333 | 39 | 0.756757 | 11 | 74 | 5 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0.175676 | 74 | 5 | 40 | 14.8 | 0.836066 | 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 |
7db55bb2614582e0cb28478e6149e2e228fd34fd | 124 | py | Python | src/python/zensols/deepnlp/index/__init__.py | plandes/deepnlp | 49820084ccf797d59535d5920559ab768bf2ec73 | [
"MIT"
] | 7 | 2020-05-11T07:13:56.000Z | 2021-09-27T13:03:46.000Z | src/python/zensols/deepnlp/index/__init__.py | plandes/deepnlp | 49820084ccf797d59535d5920559ab768bf2ec73 | [
"MIT"
] | null | null | null | src/python/zensols/deepnlp/index/__init__.py | plandes/deepnlp | 49820084ccf797d59535d5920559ab768bf2ec73 | [
"MIT"
] | 1 | 2022-02-12T00:22:26.000Z | 2022-02-12T00:22:26.000Z | """Contains classes for vectorizers for indexing document.
"""
from .domain import *
from .lsi import *
from .lda import *
| 17.714286 | 58 | 0.725806 | 16 | 124 | 5.625 | 0.6875 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169355 | 124 | 6 | 59 | 20.666667 | 0.873786 | 0.443548 | 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 |
7dd7b8b37b180c758ca299046bc44ee50698a8c1 | 1,836 | py | Python | util.py/bond.py | yomichi/HPhi-samples | 040cbf101dbe4c19df90fec22a21107730ba1879 | [
"BSL-1.0"
] | null | null | null | util.py/bond.py | yomichi/HPhi-samples | 040cbf101dbe4c19df90fec22a21107730ba1879 | [
"BSL-1.0"
] | null | null | null | util.py/bond.py | yomichi/HPhi-samples | 040cbf101dbe4c19df90fec22a21107730ba1879 | [
"BSL-1.0"
] | null | null | null | def bond(output, i,j,Jz,Jx,S2=1):
if S2==1:
bond_half(output, i,j,Jz,Jx)
elif S2==2:
bond_one(output, i,j,Jz,Jx)
else:
error("S2 should be 1 or 2.")
def bond_half(output, i,j, Jz,Jx):
z = 0.25*Jz
x = 0.5*Jx
# diagonal
output.write('{} 0 {} 0 {} 0 {} 0 {} 0.0 \n'.format(i,i,j,j,z))
output.wr... | 39.06383 | 67 | 0.494009 | 388 | 1,836 | 2.304124 | 0.097938 | 0.080537 | 0.060403 | 0.181208 | 0.831096 | 0.817673 | 0.817673 | 0.732662 | 0.655481 | 0.655481 | 0 | 0.085078 | 0.193355 | 1,836 | 46 | 68 | 39.913043 | 0.518569 | 0.049564 | 0 | 0.057143 | 0 | 0 | 0.366359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0 | 0 | 0.114286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
81e6f9899791154757eceb01cc41dfcabdf0cfd3 | 125 | py | Python | netkan/tests/__init__.py | Olympic1/NetKAN-Infra | ddad74c4942664e22719930a71ff5cc43f229352 | [
"MIT"
] | null | null | null | netkan/tests/__init__.py | Olympic1/NetKAN-Infra | ddad74c4942664e22719930a71ff5cc43f229352 | [
"MIT"
] | null | null | null | netkan/tests/__init__.py | Olympic1/NetKAN-Infra | ddad74c4942664e22719930a71ff5cc43f229352 | [
"MIT"
] | null | null | null | from .indexer import *
from .scheduler import *
from .utils import *
from .metadata import *
from .download_counter import *
| 20.833333 | 31 | 0.76 | 16 | 125 | 5.875 | 0.5 | 0.425532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 125 | 5 | 32 | 25 | 0.895238 | 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 |
c4a9ea260ab66eeceef383c04a4dbacd2d5c358e | 35,171 | py | Python | tests/v2_tests/test_zip.py | HiroakiMikami/pfio | 1ac997dcba7babd5d91dd8c4f2793d27a6bab69b | [
"MIT"
] | null | null | null | tests/v2_tests/test_zip.py | HiroakiMikami/pfio | 1ac997dcba7babd5d91dd8c4f2793d27a6bab69b | [
"MIT"
] | null | null | null | tests/v2_tests/test_zip.py | HiroakiMikami/pfio | 1ac997dcba7babd5d91dd8c4f2793d27a6bab69b | [
"MIT"
] | null | null | null | import io
import multiprocessing
import os
import pickle
import shutil
import subprocess
import sys
import tempfile
import unittest
from datetime import datetime
from zipfile import ZipFile
import pytest
from parameterized import parameterized
from pfio.testing import make_random_str, make_zip
from pfio.v2 import Zip... | 41.377647 | 79 | 0.602286 | 4,114 | 35,171 | 4.784638 | 0.062713 | 0.13229 | 0.085349 | 0.108108 | 0.828795 | 0.806594 | 0.784698 | 0.746037 | 0.717639 | 0.699858 | 0 | 0.01248 | 0.282335 | 35,171 | 849 | 80 | 41.426384 | 0.767363 | 0.07654 | 0 | 0.622084 | 0 | 0 | 0.125305 | 0 | 0 | 0 | 0 | 0 | 0.07465 | 1 | 0.054432 | false | 0 | 0.023328 | 0 | 0.082426 | 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 |
c4e7a2a2ac1c872fead87410405f22d1617f105a | 74 | py | Python | src/utils/callbacks/__init__.py | kryvokhyzha/bert-for-ukranian-ner | 48da40f09cb216ad51a97c303998157858fbe8bc | [
"MIT"
] | null | null | null | src/utils/callbacks/__init__.py | kryvokhyzha/bert-for-ukranian-ner | 48da40f09cb216ad51a97c303998157858fbe8bc | [
"MIT"
] | null | null | null | src/utils/callbacks/__init__.py | kryvokhyzha/bert-for-ukranian-ner | 48da40f09cb216ad51a97c303998157858fbe8bc | [
"MIT"
] | null | null | null | from utils.callbacks.AccuracyCallbackCustom import AccuracyCallbackCustom
| 37 | 73 | 0.918919 | 6 | 74 | 11.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 74 | 1 | 74 | 74 | 0.971429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4848054099bf561beeffed4aa75a0a6768d7dbb6 | 36 | py | Python | tests/test_mathformsmk.py | KarlosMuradyan/mathformsmk | de916750bfcdff3c7a1f226a66ddaed7b2e9b92f | [
"MIT"
] | null | null | null | tests/test_mathformsmk.py | KarlosMuradyan/mathformsmk | de916750bfcdff3c7a1f226a66ddaed7b2e9b92f | [
"MIT"
] | null | null | null | tests/test_mathformsmk.py | KarlosMuradyan/mathformsmk | de916750bfcdff3c7a1f226a66ddaed7b2e9b92f | [
"MIT"
] | null | null | null | from mathformsmk import mathformsmk
| 18 | 35 | 0.888889 | 4 | 36 | 8 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 36 | 1 | 36 | 36 | 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 |
4863e39ebc09e78ccd37269574e1238fe9bab7fb | 3,471 | py | Python | tests/admin/test_user_phones.py | joshua-cerniglia/duo_client_python | 9d91cdd505d9ed999f8d79305181587d626186bd | [
"Apache-2.0"
] | 96 | 2015-01-02T08:03:29.000Z | 2022-03-28T13:31:39.000Z | tests/admin/test_user_phones.py | joshua-cerniglia/duo_client_python | 9d91cdd505d9ed999f8d79305181587d626186bd | [
"Apache-2.0"
] | 87 | 2015-05-12T02:44:33.000Z | 2022-01-20T05:53:27.000Z | tests/admin/test_user_phones.py | joshua-cerniglia/duo_client_python | 9d91cdd505d9ed999f8d79305181587d626186bd | [
"Apache-2.0"
] | 110 | 2015-03-03T20:23:42.000Z | 2021-12-16T23:01:29.000Z | from .. import util
import duo_client.admin
from .base import TestAdmin
class TestUserPhones(TestAdmin):
def test_get_user_phones_iterator(self):
"""Test to get phones iterator by user id
"""
iterator = self.client_list.get_user_phones_iterator(
'DU012345678901234567')
... | 38.566667 | 78 | 0.519447 | 334 | 3,471 | 5.197605 | 0.140719 | 0.129608 | 0.074885 | 0.040323 | 0.889401 | 0.866935 | 0.851382 | 0.851382 | 0.804147 | 0.783986 | 0 | 0.096128 | 0.352636 | 3,471 | 89 | 79 | 39 | 0.676458 | 0.075771 | 0 | 0.636364 | 0 | 0 | 0.160731 | 0.067759 | 0 | 0 | 0 | 0 | 0.227273 | 1 | 0.075758 | false | 0 | 0.045455 | 0 | 0.136364 | 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 |
4886dc933255d27840a44f9c2fc19a05adc03c51 | 22 | py | Python | hello-scripts/harrison-mitchell.py | StuWares/Hacktoberfest2018 | fb1efa15c37cd03bb9da89981aa26d152414a273 | [
"MIT"
] | null | null | null | hello-scripts/harrison-mitchell.py | StuWares/Hacktoberfest2018 | fb1efa15c37cd03bb9da89981aa26d152414a273 | [
"MIT"
] | null | null | null | hello-scripts/harrison-mitchell.py | StuWares/Hacktoberfest2018 | fb1efa15c37cd03bb9da89981aa26d152414a273 | [
"MIT"
] | null | null | null | print("He"+"l"*2+"o")
| 11 | 21 | 0.454545 | 5 | 22 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.045455 | 22 | 1 | 22 | 22 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
6ff884019d0c956fdc3e80e0cc76347601fa2f55 | 11,100 | py | Python | boardfarm/lib/gui_helper.py | superice119/boardfarm | c525b4da94bf745d30c4a9f675aa4a7ae184b1fd | [
"BSD-3-Clause-Clear"
] | null | null | null | boardfarm/lib/gui_helper.py | superice119/boardfarm | c525b4da94bf745d30c4a9f675aa4a7ae184b1fd | [
"BSD-3-Clause-Clear"
] | null | null | null | boardfarm/lib/gui_helper.py | superice119/boardfarm | c525b4da94bf745d30c4a9f675aa4a7ae184b1fd | [
"BSD-3-Clause-Clear"
] | null | null | null | # Copyright (c) 2018
#
# All rights reserved.
#
# This file is distributed under the Clear BSD license.
# The full text can be found in LICENSE in the root directory.
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
import time
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver... | 31.714286 | 80 | 0.679369 | 1,512 | 11,100 | 4.795635 | 0.08664 | 0.052958 | 0.024273 | 0.030892 | 0.845263 | 0.841953 | 0.820852 | 0.807475 | 0.79989 | 0.787616 | 0 | 0.001461 | 0.25991 | 11,100 | 349 | 81 | 31.805158 | 0.881193 | 0.481261 | 0 | 0.664286 | 0 | 0 | 0.036001 | 0.021327 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.021429 | 0 | 0.392857 | 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 |
6ff9c2509a147ce16db92ea206c57b895d473d04 | 235 | py | Python | plots/model_explorer/plotters/bar_plot/date_distribution/__init__.py | ZviBaratz/pylabber | 35337284f3d0615249f642743b993b7dad407390 | [
"Apache-2.0"
] | 3 | 2020-08-28T21:33:07.000Z | 2021-07-19T17:52:17.000Z | plots/model_explorer/plotters/bar_plot/date_distribution/__init__.py | TheLabbingProject/pylabber | 27d6073e7bde871c16912a8ea5e0e389711bbd9f | [
"Apache-2.0"
] | 74 | 2019-09-04T11:40:16.000Z | 2022-01-03T19:43:04.000Z | plots/model_explorer/plotters/bar_plot/date_distribution/__init__.py | ZviBaratz/pylabber | 35337284f3d0615249f642743b993b7dad407390 | [
"Apache-2.0"
] | 3 | 2019-05-07T07:09:05.000Z | 2019-08-30T15:40:47.000Z | from plots.model_explorer.plotters.bar_plot.date_distribution.configuration import (
DateDistributionConfiguration,
)
from plots.model_explorer.plotters.bar_plot.date_distribution.date_distribution import (
DateDistribution,
)
| 33.571429 | 88 | 0.846809 | 25 | 235 | 7.68 | 0.52 | 0.25 | 0.145833 | 0.229167 | 0.552083 | 0.552083 | 0.552083 | 0.552083 | 0.552083 | 0 | 0 | 0 | 0.085106 | 235 | 6 | 89 | 39.166667 | 0.893023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
82f00f758a329d238b5910d192e23413353d4959 | 199 | py | Python | src/utils/io.py | shirin1996/PyBot | 4676ccca6b47fce4d3f20a7e158ea9278eb1b508 | [
"MIT"
] | 1 | 2022-01-30T20:27:31.000Z | 2022-01-30T20:27:31.000Z | src/utils/io.py | shirinyamani/MsgBot | 0b95cea203ff97d631fba7cbf48c23c76f7d91e9 | [
"MIT"
] | null | null | null | src/utils/io.py | shirinyamani/MsgBot | 0b95cea203ff97d631fba7cbf48c23c76f7d91e9 | [
"MIT"
] | null | null | null | import json
def read_json(file_name):
with open(file_name, 'r') as f:
return json.load(f)
def write_json(data, file_name):
with open(file_name, 'w') as f:
json.dump(data, f) | 22.111111 | 35 | 0.638191 | 35 | 199 | 3.457143 | 0.485714 | 0.264463 | 0.198347 | 0.264463 | 0.396694 | 0.396694 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231156 | 199 | 9 | 36 | 22.111111 | 0.79085 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
d204008f3a1e70dea11c0be776f29fb0236fb655 | 4,218 | py | Python | test/integration/remote_plugins/plugins/system_registration_test.py | scott-taubman/beer-garden | bac825849f7791e14064942566fbec63a83e6f87 | [
"MIT"
] | 230 | 2018-02-03T01:33:45.000Z | 2022-02-20T22:07:25.000Z | test/integration/remote_plugins/plugins/system_registration_test.py | scott-taubman/beer-garden | bac825849f7791e14064942566fbec63a83e6f87 | [
"MIT"
] | 961 | 2018-02-06T11:22:40.000Z | 2022-03-24T15:22:33.000Z | test/integration/remote_plugins/plugins/system_registration_test.py | scott-taubman/beer-garden | bac825849f7791e14064942566fbec63a83e6f87 | [
"MIT"
] | 33 | 2018-02-04T18:00:07.000Z | 2021-12-15T13:07:22.000Z | import pytest
from brewtils.errors import ValidationError
try:
from helper import delete_plugins
from helper.assertion import assert_system_running
from helper.plugin import (
TestPluginV1,
TestPluginV1BetterDescriptions,
TestPluginV2,
create_plugin,
start_plugin,
... | 36.678261 | 73 | 0.64367 | 498 | 4,218 | 5.204819 | 0.164659 | 0.092593 | 0.124228 | 0.051312 | 0.837191 | 0.822145 | 0.798225 | 0.743827 | 0.735725 | 0.735725 | 0 | 0.025229 | 0.248222 | 4,218 | 114 | 74 | 37 | 0.792179 | 0.057373 | 0 | 0.547368 | 0 | 0 | 0.092261 | 0 | 0 | 0 | 0 | 0 | 0.126316 | 1 | 0.073684 | false | 0 | 0.094737 | 0 | 0.178947 | 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 |
d21ea368193945127c11d948d6e43cd9c4c55fac | 22 | py | Python | xlibris/__init__.py | konsbn/xlibris | d6ae33cd58212db3160b22128af9f209921f6205 | [
"MIT"
] | 9 | 2016-01-12T18:56:19.000Z | 2021-09-24T16:08:14.000Z | xlibris/__init__.py | konsbn/xlibris | d6ae33cd58212db3160b22128af9f209921f6205 | [
"MIT"
] | null | null | null | xlibris/__init__.py | konsbn/xlibris | d6ae33cd58212db3160b22128af9f209921f6205 | [
"MIT"
] | 1 | 2021-09-21T21:37:11.000Z | 2021-09-21T21:37:11.000Z | from xlibris import *
| 11 | 21 | 0.772727 | 3 | 22 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 22 | 1 | 22 | 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 |
d243175cd6681cc44ab0a359d42a5ecadb9c3acb | 9,900 | py | Python | src/tests/control/test_teams.py | upsidedownpancake/pretix | bfeeb1028c9eccab4936029db7c38edd4cd5aad5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/tests/control/test_teams.py | upsidedownpancake/pretix | bfeeb1028c9eccab4936029db7c38edd4cd5aad5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/tests/control/test_teams.py | upsidedownpancake/pretix | bfeeb1028c9eccab4936029db7c38edd4cd5aad5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | import pytest
from django.core import mail as djmail
from django.utils.timezone import now
from pretix.base.models import Event, Organizer, Team, User
@pytest.fixture
def organizer():
return Organizer.objects.create(name='Dummy', slug='dummy')
@pytest.fixture
def event(organizer):
event = Event.objects.cre... | 36.397059 | 104 | 0.710707 | 1,397 | 9,900 | 4.868289 | 0.082319 | 0.092633 | 0.049405 | 0.074107 | 0.812381 | 0.790472 | 0.76327 | 0.718424 | 0.694751 | 0.689752 | 0 | 0.002013 | 0.146869 | 9,900 | 271 | 105 | 36.531365 | 0.80322 | 0 | 0 | 0.582938 | 0 | 0 | 0.195152 | 0.068384 | 0 | 0 | 0 | 0 | 0.265403 | 1 | 0.104265 | false | 0.085308 | 0.018957 | 0.009479 | 0.14218 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
9631f802745b75178fbc96c16fb234d1bdef2377 | 7,017 | py | Python | math_recognition/decoder.py | bkkaggle/math-recognition | aecfb21656a7744945862f4b34520905e50f3ad1 | [
"MIT"
] | 10 | 2019-12-27T04:35:42.000Z | 2021-01-26T14:37:12.000Z | math_recognition/decoder.py | bilal2vec/math-recognition | aecfb21656a7744945862f4b34520905e50f3ad1 | [
"MIT"
] | 1 | 2020-10-26T06:25:25.000Z | 2020-10-31T01:31:27.000Z | math_recognition/decoder.py | bkkaggle/math-recognition | aecfb21656a7744945862f4b34520905e50f3ad1 | [
"MIT"
] | 3 | 2020-02-11T06:22:15.000Z | 2020-11-08T10:52:57.000Z | import os
import random
from typing import Dict, Tuple
from overrides import overrides
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import allennlp
from allennlp.common import Registrable, Params
from allennlp.data.vocabulary import V... | 41.276471 | 232 | 0.699159 | 887 | 7,017 | 5.224352 | 0.126268 | 0.078334 | 0.039275 | 0.05697 | 0.804489 | 0.780967 | 0.753776 | 0.741692 | 0.73306 | 0.723997 | 0 | 0.006626 | 0.204218 | 7,017 | 170 | 233 | 41.276471 | 0.823245 | 0.144506 | 0 | 0.539216 | 0 | 0 | 0.006356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156863 | false | 0 | 0.147059 | 0.058824 | 0.431373 | 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 |
96ab5d1f5e7c7653545ff148f0a826eb8b00be7e | 17,542 | py | Python | rest_api/simple_supply_rest_api/database.py | celio-jpeg/bev | 2a7473a93885ac91d2aa32048dd760d5976934b8 | [
"Apache-2.0"
] | 1 | 2020-10-27T15:28:40.000Z | 2020-10-27T15:28:40.000Z | rest_api/simple_supply_rest_api/database.py | celio-jpeg/bev | 2a7473a93885ac91d2aa32048dd760d5976934b8 | [
"Apache-2.0"
] | null | null | null | rest_api/simple_supply_rest_api/database.py | celio-jpeg/bev | 2a7473a93885ac91d2aa32048dd760d5976934b8 | [
"Apache-2.0"
] | null | null | null | import asyncio
import logging
import aiopg
import psycopg2
from psycopg2.extras import RealDictCursor
LATEST_BLOCK_NUM = """
SELECT max(block_num) FROM blocks
"""
LOGGER = logging.getLogger(__name__)
class Database(object):
"""Manages connection to the postgres database and makes async queries
"""
def ... | 39.958998 | 117 | 0.554669 | 1,968 | 17,542 | 4.702744 | 0.082317 | 0.051864 | 0.036521 | 0.047758 | 0.823555 | 0.796542 | 0.781199 | 0.763803 | 0.724581 | 0.696164 | 0 | 0.009434 | 0.353437 | 17,542 | 438 | 118 | 40.050228 | 0.80656 | 0.006043 | 0 | 0.686111 | 0 | 0 | 0.452153 | 0.008286 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005556 | false | 0.016667 | 0.013889 | 0 | 0.088889 | 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 |
7365f8520f73fbdd517b7991acc3da9b4d316501 | 24 | py | Python | UIC/models/__init__.py | hikvisionresearch/Unsupervised-Image-Classification | 0db8f00ece36ef0ee491e082e21b47fedf05c30d | [
"MIT"
] | 30 | 2021-05-11T09:13:52.000Z | 2022-03-16T10:55:45.000Z | UIC/models/__init__.py | hikvisionresearch/Unsupervised-Image-Classification | 0db8f00ece36ef0ee491e082e21b47fedf05c30d | [
"MIT"
] | 1 | 2021-08-22T15:28:09.000Z | 2021-08-22T15:28:09.000Z | UIC/models/__init__.py | hikvisionresearch/Unsupervised-Image-Classification | 0db8f00ece36ef0ee491e082e21b47fedf05c30d | [
"MIT"
] | 2 | 2021-05-16T04:09:35.000Z | 2021-08-14T11:55:43.000Z | from .resnet50 import *
| 12 | 23 | 0.75 | 3 | 24 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.166667 | 24 | 1 | 24 | 24 | 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 |
73b33908dac28882d10968660cd6539b91c629b4 | 8,820 | py | Python | dfirtrack_config/tests/artifact/test_artifact_exporter_spreadsheet_xls_config_forms.py | stuhli/dfirtrack | 9260c91e4367b36d4cb1ae7efe4e2d2452f58e6e | [
"Apache-2.0"
] | 273 | 2018-04-18T22:09:15.000Z | 2021-06-04T09:15:48.000Z | dfirtrack_config/tests/artifact/test_artifact_exporter_spreadsheet_xls_config_forms.py | stuhli/dfirtrack | 9260c91e4367b36d4cb1ae7efe4e2d2452f58e6e | [
"Apache-2.0"
] | 75 | 2018-08-31T11:05:37.000Z | 2021-06-08T14:15:07.000Z | dfirtrack_config/tests/artifact/test_artifact_exporter_spreadsheet_xls_config_forms.py | stuhli/dfirtrack | 9260c91e4367b36d4cb1ae7efe4e2d2452f58e6e | [
"Apache-2.0"
] | 61 | 2018-11-12T22:55:48.000Z | 2021-06-06T15:16:16.000Z | from django.test import TestCase
from dfirtrack_artifacts.models import Artifactstatus
from dfirtrack_config.forms import ArtifactExporterSpreadsheetXlsConfigForm
class ArtifactExporterSpreadsheetXlsConfigFormTestCase(TestCase):
"""artifact exporter spreadsheet XLS config form tests"""
@classmethod
def ... | 30.839161 | 111 | 0.65805 | 772 | 8,820 | 7.120466 | 0.09456 | 0.10915 | 0.108059 | 0.120065 | 0.813353 | 0.747862 | 0.739858 | 0.739858 | 0.72767 | 0.706567 | 0 | 0.002802 | 0.271769 | 8,820 | 285 | 112 | 30.947368 | 0.853028 | 0.097506 | 0 | 0.453488 | 0 | 0 | 0.147835 | 0.088906 | 0 | 0 | 0 | 0 | 0.122093 | 1 | 0.127907 | false | 0 | 0.017442 | 0 | 0.151163 | 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 |
73bb28bf3c556576785e72ce8701f0dd36e35546 | 7,817 | py | Python | model/config.py | nachiket273/efficientnetv2 | fdcbcf48ad84d4b16c0edc18f55a27ee5bafd2de | [
"MIT"
] | 1 | 2021-12-01T20:12:49.000Z | 2021-12-01T20:12:49.000Z | model/config.py | nachiket273/efficientnetv2 | fdcbcf48ad84d4b16c0edc18f55a27ee5bafd2de | [
"MIT"
] | null | null | null | model/config.py | nachiket273/efficientnetv2 | fdcbcf48ad84d4b16c0edc18f55a27ee5bafd2de | [
"MIT"
] | null | null | null | CFG = {
'in_ch': 3,
'out_ch': 24,
'kernel_size': 3,
'stride': 2,
'width_mult': 1,
'divisor': 8,
'actn_layer': None,
'layers': [
{'channels': 24, 'expansion': 1, 'kernel_size': 3, 'stride': 1,
'nums': 2, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2,
... | 53.541096 | 79 | 0.521939 | 1,005 | 7,817 | 3.850746 | 0.081592 | 0.125581 | 0.079587 | 0.122997 | 0.924548 | 0.919897 | 0.919897 | 0.914987 | 0.86124 | 0.86124 | 0 | 0.068849 | 0.280926 | 7,817 | 145 | 80 | 53.910345 | 0.619641 | 0 | 0 | 0.631206 | 0 | 0 | 0.388512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014184 | false | 0 | 0 | 0.007092 | 0.028369 | 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 |
73ea795b18c880afbf438b724b855276692a0da1 | 2,762 | py | Python | account/migrations/0001_initial.py | JishnuTU/D-M-Intelligence-S | aa094bc8a4d20fddd9c6a043559833226f46044d | [
"MIT"
] | 4 | 2019-10-17T00:27:09.000Z | 2021-04-09T05:17:19.000Z | account/migrations/0001_initial.py | Jishnu04/D-M-Intelligence-S | aa094bc8a4d20fddd9c6a043559833226f46044d | [
"MIT"
] | 1 | 2020-07-09T18:39:16.000Z | 2020-09-21T11:30:17.000Z | account/migrations/0001_initial.py | Jishnu04/D-M-Intelligence-S | aa094bc8a4d20fddd9c6a043559833226f46044d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-12 08:11
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('home', '0001_initial'),
]
oper... | 43.84127 | 143 | 0.580014 | 266 | 2,762 | 5.879699 | 0.263158 | 0.076726 | 0.092072 | 0.122762 | 0.77046 | 0.77046 | 0.703325 | 0.703325 | 0.703325 | 0.703325 | 0 | 0.018417 | 0.272629 | 2,762 | 62 | 144 | 44.548387 | 0.76008 | 0.02462 | 0 | 0.592593 | 1 | 0 | 0.108881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.12963 | 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 |
fbb3965ef572cb99f9fe6ec71c63a225cc16c6f0 | 89 | py | Python | tests/data/modules/test_1920/plugins/__init__.py | inmanta/inmanta-core | ae2153d57f124d00ad1b58e6d4bc6818364be4a8 | [
"Apache-2.0"
] | 6 | 2021-03-09T10:24:02.000Z | 2022-01-16T03:52:11.000Z | tests/data/modules/test_1920/plugins/__init__.py | inmanta/inmanta-core | ae2153d57f124d00ad1b58e6d4bc6818364be4a8 | [
"Apache-2.0"
] | 1,319 | 2020-12-18T08:52:29.000Z | 2022-03-31T18:17:32.000Z | tests/data/modules/test_1920/plugins/__init__.py | inmanta/inmanta-core | ae2153d57f124d00ad1b58e6d4bc6818364be4a8 | [
"Apache-2.0"
] | 4 | 2021-03-03T15:36:50.000Z | 2022-03-11T11:41:51.000Z | from inmanta.plugins import plugin
@plugin
def some_name() -> "bool":
return False
| 12.714286 | 34 | 0.707865 | 12 | 89 | 5.166667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191011 | 89 | 6 | 35 | 14.833333 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0.25 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
837668f001ebb2a8dd37fdad6281fd12594ce5f6 | 45 | py | Python | enthought/pyface/constant.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/pyface/constant.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/pyface/constant.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from pyface.constant import *
| 15 | 29 | 0.777778 | 6 | 45 | 5.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 45 | 2 | 30 | 22.5 | 0.921053 | 0.266667 | 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 |
8388c23bf816498c9fb30f19eadf0721ff38c0b3 | 135 | py | Python | roman/ur/__init__.py | drMJ/roman | 9650e73ec6fbb2d8044aa1bbf89fd671843ea54e | [
"MIT"
] | 14 | 2020-04-03T03:48:35.000Z | 2021-11-08T11:17:41.000Z | roman/ur/__init__.py | drMJ/roman | 9650e73ec6fbb2d8044aa1bbf89fd671843ea54e | [
"MIT"
] | 5 | 2020-04-17T21:59:35.000Z | 2022-01-21T23:21:45.000Z | roman/ur/__init__.py | drMJ/roman | 9650e73ec6fbb2d8044aa1bbf89fd671843ea54e | [
"MIT"
] | 10 | 2020-04-16T15:44:25.000Z | 2021-11-10T08:22:52.000Z | from .realtime.constants import *
from .arm import *
from .connection import *
from .sim_connection import *
from .controllers import * | 27 | 33 | 0.777778 | 17 | 135 | 6.117647 | 0.470588 | 0.384615 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140741 | 135 | 5 | 34 | 27 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 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 |
83893a090af1a7cb63f45b4de726e633bc2ebbe7 | 557 | py | Python | service/classification/dataset/transform.py | Navan0/poc-of-hm | 9b14325908445462721d7bed64e09b6c5d39f694 | [
"Apache-2.0"
] | null | null | null | service/classification/dataset/transform.py | Navan0/poc-of-hm | 9b14325908445462721d7bed64e09b6c5d39f694 | [
"Apache-2.0"
] | null | null | null | service/classification/dataset/transform.py | Navan0/poc-of-hm | 9b14325908445462721d7bed64e09b6c5d39f694 | [
"Apache-2.0"
] | null | null | null | from torchvision import transforms
xception_default_data_transforms = {
'train': transforms.Compose([
transforms.Resize((299, 299)),
transforms.ToTensor(),
transforms.Normalize([0.5]*3, [0.5]*3)
]),
'val': transforms.Compose([
transforms.Resize((299, 299)),
transform... | 27.85 | 50 | 0.576302 | 59 | 557 | 5.389831 | 0.305085 | 0.037736 | 0.056604 | 0.311321 | 0.773585 | 0.773585 | 0.773585 | 0.773585 | 0.773585 | 0.773585 | 0 | 0.085714 | 0.245961 | 557 | 19 | 51 | 29.315789 | 0.671429 | 0 | 0 | 0.666667 | 0 | 0 | 0.021544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
839b52a0818a565dddbd10229f17f334c9ac291a | 795 | py | Python | src/core/sobol_gen/utility.py | JustinRuan/Pathological-images | 478f0b568068e591e282e9566786e683ec39a108 | [
"MIT"
] | 2 | 2022-01-17T12:04:02.000Z | 2022-03-08T21:59:39.000Z | sobol_gen/utility.py | elderfd/sobol_gen | 25bbfae734239bef4304cb1b0b32662b517d1b56 | [
"MIT"
] | null | null | null | sobol_gen/utility.py | elderfd/sobol_gen | 25bbfae734239bef4304cb1b0b32662b517d1b56 | [
"MIT"
] | 1 | 2020-03-08T09:00:43.000Z | 2020-03-08T09:00:43.000Z | import numpy
def high_bit_pos(i):
"""Converts a positive integer to base 2 and returns the position of the high order bit.
Keyword arguments:
i -- Integer to find high order bit within
"""
if i < 0:
raise RuntimeError("Supplied value {0} was not positive".format(i))
i = numpy.floor(i... | 22.083333 | 92 | 0.584906 | 122 | 795 | 3.778689 | 0.311475 | 0.078091 | 0.078091 | 0.065076 | 0.893709 | 0.893709 | 0.828633 | 0.828633 | 0.828633 | 0.828633 | 0 | 0.027624 | 0.316981 | 795 | 35 | 93 | 22.714286 | 0.821363 | 0.372327 | 0 | 0.631579 | 0 | 0 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.263158 | 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 |
83ad01e914b86305b970f57c8fb68f209c828d81 | 102 | py | Python | veripb/__init__.py | StephanGocht/refpy | e244dc5c21ebb2887c428b3b3ada003528afa27a | [
"MIT"
] | 5 | 2020-03-03T16:16:56.000Z | 2022-01-31T09:23:36.000Z | veripb/__init__.py | StephanGocht/VeriPB | a6b4314be574f09af0736600583dc714a469c0d7 | [
"MIT"
] | 25 | 2019-11-19T17:23:21.000Z | 2022-02-23T16:51:46.000Z | veripb/__init__.py | StephanGocht/refpy | e244dc5c21ebb2887c428b3b3ada003528afa27a | [
"MIT"
] | 1 | 2019-07-02T12:19:15.000Z | 2019-07-02T12:19:15.000Z | from veripb.exceptions import ParseError, InvalidProof
from veripb.utils import run,runUI,run_cmd_main | 51 | 54 | 0.872549 | 15 | 102 | 5.8 | 0.733333 | 0.229885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 102 | 2 | 55 | 51 | 0.925532 | 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 |
83b14f244f2f688852b66c5d267b4b51d129c66b | 37 | py | Python | __init__.py | yswd82/pymoi | 73d3ad221bbd431916ff94ee1bbf64b75ee3bbc7 | [
"MIT"
] | 1 | 2021-08-15T01:26:02.000Z | 2021-08-15T01:26:02.000Z | __init__.py | yswd82/pymoi | 73d3ad221bbd431916ff94ee1bbf64b75ee3bbc7 | [
"MIT"
] | 4 | 2021-08-10T06:06:51.000Z | 2021-08-17T09:38:10.000Z | __init__.py | yswd82/pymoi | 73d3ad221bbd431916ff94ee1bbf64b75ee3bbc7 | [
"MIT"
] | null | null | null | from pymoi import core, reader, util
| 18.5 | 36 | 0.783784 | 6 | 37 | 4.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 37 | 1 | 37 | 37 | 0.935484 | 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 |
83c15c4c25e6d5e5a9d3653a755a44f2dc84b667 | 119,261 | py | Python | tests/unit/gapic/transcoder_v1beta1/test_transcoder_service.py | renovate-bot/python-video-transcoder-1 | e9c1c229fe88d200d0f60314814078e79e3f1524 | [
"Apache-2.0"
] | 5 | 2021-03-05T22:36:04.000Z | 2022-02-01T09:58:04.000Z | tests/unit/gapic/transcoder_v1beta1/test_transcoder_service.py | renovate-bot/python-video-transcoder-1 | e9c1c229fe88d200d0f60314814078e79e3f1524 | [
"Apache-2.0"
] | 51 | 2020-08-24T15:43:20.000Z | 2022-03-07T16:43:36.000Z | tests/unit/gapic/transcoder_v1beta1/test_transcoder_service.py | renovate-bot/python-video-transcoder-1 | e9c1c229fe88d200d0f60314814078e79e3f1524 | [
"Apache-2.0"
] | 8 | 2020-08-24T15:39:52.000Z | 2022-02-24T17:43:24.000Z | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 37.776687 | 136 | 0.687241 | 13,723 | 119,261 | 5.735408 | 0.032282 | 0.012985 | 0.01982 | 0.023657 | 0.910237 | 0.881815 | 0.861524 | 0.835733 | 0.812456 | 0.796219 | 0 | 0.004511 | 0.228658 | 119,261 | 3,156 | 137 | 37.788657 | 0.851083 | 0.195462 | 0 | 0.670213 | 0 | 0 | 0.081447 | 0.032212 | 0 | 0 | 0 | 0.000317 | 0.13136 | 1 | 0.047641 | false | 0.000463 | 0.012488 | 0.000925 | 0.061055 | 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 |
f7c91231a685403d79689aac00c0aa044b7c8356 | 5,657 | py | Python | pydoof/search_api/search.py | doofinder/pydoof | 18ebdbf5710d08bc00dcc28b9c035a9fe47306f0 | [
"MIT"
] | null | null | null | pydoof/search_api/search.py | doofinder/pydoof | 18ebdbf5710d08bc00dcc28b9c035a9fe47306f0 | [
"MIT"
] | 12 | 2015-05-14T17:09:51.000Z | 2021-12-22T16:47:05.000Z | pydoof/search_api/search.py | doofinder/pydoof | 18ebdbf5710d08bc00dcc28b9c035a9fe47306f0 | [
"MIT"
] | 1 | 2022-01-04T09:09:31.000Z | 2022-01-04T09:09:31.000Z | from enum import Enum, unique
from pydoof.search_api.api_client import SearchAPIClient
from pydoof.helpers import parse_query_params
@unique
class QueryNames(Enum):
MATCH_AND = "match_and"
MATCH_OR = "match_or"
FUZZY = "fuzzy"
PHONETIC = "phonetic_text"
@unique
class Transformers(Enum):
BASIC =... | 41.903704 | 79 | 0.62542 | 759 | 5,657 | 4.600791 | 0.181818 | 0.03866 | 0.040951 | 0.026346 | 0.814719 | 0.81071 | 0.793528 | 0.793528 | 0.793528 | 0.793528 | 0 | 0.00354 | 0.300866 | 5,657 | 134 | 80 | 42.216418 | 0.879393 | 0.671557 | 0 | 0.576923 | 0 | 0 | 0.117759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.057692 | 0 | 0.288462 | 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 |
f70086a12cb7a805133ce4cd015dbd84c54c0b65 | 28 | py | Python | ent2id/__init__.py | skojaku/ent2id | 1483cc9430999db7a6598dfdf0afa7302ada4893 | [
"CC0-1.0"
] | null | null | null | ent2id/__init__.py | skojaku/ent2id | 1483cc9430999db7a6598dfdf0afa7302ada4893 | [
"CC0-1.0"
] | null | null | null | ent2id/__init__.py | skojaku/ent2id | 1483cc9430999db7a6598dfdf0afa7302ada4893 | [
"CC0-1.0"
] | null | null | null | from ent2id.Ent2Id import *
| 14 | 27 | 0.785714 | 4 | 28 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.142857 | 28 | 1 | 28 | 28 | 0.833333 | 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 |
f734df86fba52bb0e5b0075c1880a25fc79ec783 | 113 | py | Python | Python/pythonProject/exercise/ex047.py | JoaoMoreira2002/Linguagens-de-programacao | b91a902188428238a567c8f52b2ac9028378c4df | [
"MIT"
] | null | null | null | Python/pythonProject/exercise/ex047.py | JoaoMoreira2002/Linguagens-de-programacao | b91a902188428238a567c8f52b2ac9028378c4df | [
"MIT"
] | null | null | null | Python/pythonProject/exercise/ex047.py | JoaoMoreira2002/Linguagens-de-programacao | b91a902188428238a567c8f52b2ac9028378c4df | [
"MIT"
] | null | null | null | for x in range(0, 11):
for c in range(0, 11):
print(x, 'x', c, '= {}'.format(x * c))
print('\t')
| 22.6 | 46 | 0.442478 | 21 | 113 | 2.380952 | 0.47619 | 0.28 | 0.32 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075949 | 0.300885 | 113 | 4 | 47 | 28.25 | 0.556962 | 0 | 0 | 0 | 0 | 0 | 0.061947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
f737f3d4131b56174d565a0575f0331decd3591a | 20,724 | py | Python | orttraining/orttraining/test/python/orttraining_test_checkpoint.py | mszhanyi/onnxruntime | 6f85d3e5c81c919022ac4a77e5a051da8518b15d | [
"MIT"
] | 669 | 2018-12-03T22:00:31.000Z | 2019-05-06T19:42:49.000Z | orttraining/orttraining/test/python/orttraining_test_checkpoint.py | mszhanyi/onnxruntime | 6f85d3e5c81c919022ac4a77e5a051da8518b15d | [
"MIT"
] | 440 | 2018-12-03T21:09:56.000Z | 2019-05-06T20:47:23.000Z | orttraining/orttraining/test/python/orttraining_test_checkpoint.py | mszhanyi/onnxruntime | 6f85d3e5c81c919022ac4a77e5a051da8518b15d | [
"MIT"
] | 140 | 2018-12-03T21:15:28.000Z | 2019-05-06T18:02:36.000Z | #!/usr/bin/env python3
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import subprocess
import os
import shutil
import sys
from checkpoint._test_helpers import makedir
from _test_commons import _single_run, _distributed_run
checkpoint_dir = os.path.abspath("checkpoint/ch... | 45.150327 | 196 | 0.84226 | 2,655 | 20,724 | 5.941996 | 0.0742 | 0.126458 | 0.074163 | 0.085193 | 0.835827 | 0.818839 | 0.808126 | 0.795068 | 0.767115 | 0.735674 | 0 | 0.000163 | 0.109824 | 20,724 | 458 | 197 | 45.248908 | 0.854998 | 0.210336 | 0 | 0.515152 | 0 | 0 | 0.420788 | 0.39131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015152 | 0 | 0.015152 | 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 |
f74fc6b035940199a7b9518dd7958f38c4ea4cdc | 443 | py | Python | tests/test_main.py | ChickenProp/gragrapy | 9c24719c6fc843df2c506388aa21e64617cccc8d | [
"MIT"
] | 1 | 2017-04-30T18:26:19.000Z | 2017-04-30T18:26:19.000Z | tests/test_main.py | ChickenProp/gragrapy | 9c24719c6fc843df2c506388aa21e64617cccc8d | [
"MIT"
] | 4 | 2017-06-19T09:44:59.000Z | 2017-06-19T09:58:57.000Z | tests/test_main.py | ChickenProp/gragrapy | 9c24719c6fc843df2c506388aa21e64617cccc8d | [
"MIT"
] | null | null | null | from __future__ import (absolute_import, print_function,
unicode_literals, division)
from .context import gragrapy as gg
from gragrapy.__main__ import parse_kwargs
def test_parse_kwargs():
assert parse_kwargs([]) == {}
assert parse_kwargs(['a=b', 'c=d']) == {'a': 'b', 'c': 'd'}
ass... | 36.916667 | 67 | 0.582393 | 64 | 443 | 3.75 | 0.390625 | 0.275 | 0.283333 | 0.225 | 0.329167 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0.011299 | 0.200903 | 443 | 11 | 68 | 40.272727 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.074492 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.111111 | true | 0 | 0.333333 | 0 | 0.444444 | 0.111111 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
f77d32b42006912619abf517ddfd74f62f725987 | 37,933 | py | Python | models/resnet_small.py | zhaoguangxiang/pytorch-cifar | 509994fd2035009c7f53192a4c497b97f6295e6e | [
"MIT"
] | null | null | null | models/resnet_small.py | zhaoguangxiang/pytorch-cifar | 509994fd2035009c7f53192a4c497b97f6295e6e | [
"MIT"
] | null | null | null | models/resnet_small.py | zhaoguangxiang/pytorch-cifar | 509994fd2035009c7f53192a4c497b97f6295e6e | [
"MIT"
] | null | null | null | '''ResNet in PyTorch.
For Pre-activation ResNet, see 'preact_resnet.py'.
Reference:
[1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun
Deep Residual Learning for Image Recognition. arXiv:1512.03385
resnet same as the origin paper
'''
import torch
import torch.nn as nn
import torch.nn.functional as F
import num... | 44.944313 | 182 | 0.570005 | 5,026 | 37,933 | 4.08655 | 0.050537 | 0.030235 | 0.03228 | 0.017528 | 0.842836 | 0.826136 | 0.806953 | 0.780564 | 0.765373 | 0.747456 | 0 | 0.040524 | 0.313685 | 37,933 | 843 | 183 | 44.997628 | 0.748406 | 0.08718 | 0 | 0.688253 | 0 | 0 | 0.005502 | 0 | 0 | 0 | 0 | 0 | 0.001506 | 1 | 0.067771 | false | 0.006024 | 0.006024 | 0.018072 | 0.149096 | 0.00753 | 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 |
f79cd10364a46270c3d2e287240313f54b9a12a9 | 1,253 | py | Python | Data Scraping/dist_code_extractor.py | jeevannavar/Case-Pendency | 338c7d8edab6adec97650d8882e18105bcdbd8ba | [
"MIT"
] | null | null | null | Data Scraping/dist_code_extractor.py | jeevannavar/Case-Pendency | 338c7d8edab6adec97650d8882e18105bcdbd8ba | [
"MIT"
] | null | null | null | Data Scraping/dist_code_extractor.py | jeevannavar/Case-Pendency | 338c7d8edab6adec97650d8882e18105bcdbd8ba | [
"MIT"
] | null | null | null | string = '<option value="1" >Malda</option><option value="2" >Hooghly</option><option value="3" >Calcutta</option><option value="4" >Jalpaiguri</option><option value="6" >Coochbehar</option><option value="7" >Paschim Medinpur</option><option value="8" >Birbhum</option><option value="9" >Purba Medinipur</option><option ... | 96.384615 | 926 | 0.69593 | 175 | 1,253 | 4.982857 | 0.371429 | 0.277523 | 0.409404 | 0.048165 | 0.151376 | 0.123853 | 0 | 0 | 0 | 0 | 0 | 0.037952 | 0.09577 | 1,253 | 12 | 927 | 104.416667 | 0.731686 | 0.080607 | 0 | 0 | 0 | 0.142857 | 0.810105 | 0.45122 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
f79e814b239a077552d880188a2a383279126415 | 3,445 | py | Python | tests/test_methods_datetime.py | vmstarchenko/sxml | 3b6fc3a89f404acfe298491555d15df269125e8f | [
"MIT"
] | null | null | null | tests/test_methods_datetime.py | vmstarchenko/sxml | 3b6fc3a89f404acfe298491555d15df269125e8f | [
"MIT"
] | null | null | null | tests/test_methods_datetime.py | vmstarchenko/sxml | 3b6fc3a89f404acfe298491555d15df269125e8f | [
"MIT"
] | null | null | null | import datetime
import textwrap
import sxml
import pytest
from freezegun import freeze_time
UTC = datetime.timezone.utc
UTC4 = datetime.timezone(datetime.timedelta(hours=4))
UTC_4 = datetime.timezone(datetime.timedelta(hours=-4))
def test_strftime():
parse = sxml.HtmlPipeline.from_string(textwrap.dedent(r'''
... | 32.196262 | 98 | 0.606676 | 446 | 3,445 | 4.621076 | 0.134529 | 0.124212 | 0.020378 | 0.027171 | 0.829694 | 0.825328 | 0.778263 | 0.77147 | 0.74721 | 0.74721 | 0 | 0.100149 | 0.223222 | 3,445 | 106 | 99 | 32.5 | 0.67003 | 0 | 0 | 0.62069 | 0 | 0 | 0.298694 | 0.039768 | 0 | 0 | 0 | 0 | 0.149425 | 1 | 0.057471 | false | 0 | 0.057471 | 0 | 0.114943 | 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 |
e3980c0877ddcb73e92a28834bad84aed6d18bc3 | 21 | py | Python | tools/__init__.py | GreenBlitz/Rapid-React-Vision | a30793e176ef6f2bdc73f12535645ef2ec57126a | [
"Apache-2.0"
] | 6 | 2019-12-17T03:16:38.000Z | 2020-07-10T10:45:24.000Z | tools/__init__.py | GreenBlitz/Rapid-React-Vision | a30793e176ef6f2bdc73f12535645ef2ec57126a | [
"Apache-2.0"
] | 5 | 2021-03-19T01:10:11.000Z | 2022-02-10T13:37:29.000Z | sys_app/models/__init__.py | sf0402/horse-admin | dd3f5c2d317763a1daeef40ce7833371e6ed5ce0 | [
"MIT"
] | 1 | 2020-11-10T07:54:52.000Z | 2020-11-10T07:54:52.000Z | from .system import * | 21 | 21 | 0.761905 | 3 | 21 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e3c31ca98eab08a674c1b9243ff41d3a6608b725 | 43 | py | Python | Tests/Runnable2/r_classmodname_t.py | jwilk/Pyrex | 83dfbae1261788933472e3f9c501ad74c61a37c5 | [
"Apache-2.0"
] | 5 | 2019-05-26T20:48:36.000Z | 2021-07-09T01:38:38.000Z | Tests/Runnable2/r_classmodname_t.py | jwilk/Pyrex | 83dfbae1261788933472e3f9c501ad74c61a37c5 | [
"Apache-2.0"
] | null | null | null | Tests/Runnable2/r_classmodname_t.py | jwilk/Pyrex | 83dfbae1261788933472e3f9c501ad74c61a37c5 | [
"Apache-2.0"
] | 1 | 2022-02-10T07:14:58.000Z | 2022-02-10T07:14:58.000Z | from r_classmodname import Spam
print Spam
| 14.333333 | 31 | 0.860465 | 7 | 43 | 5.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 43 | 2 | 32 | 21.5 | 0.972973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | null | null | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
e3d3f61891e930427ed79848960dfa5a1cfa408c | 112 | py | Python | normflowpy/flows/helpers.py | haihabi/NormFlowPy | a15ea6a704254a925f25dc94b22459ca2e0beaf5 | [
"MIT"
] | null | null | null | normflowpy/flows/helpers.py | haihabi/NormFlowPy | a15ea6a704254a925f25dc94b22459ca2e0beaf5 | [
"MIT"
] | null | null | null | normflowpy/flows/helpers.py | haihabi/NormFlowPy | a15ea6a704254a925f25dc94b22459ca2e0beaf5 | [
"MIT"
] | null | null | null | import torch
def safe_log(x: torch.Tensor, eps=1e-22) -> torch.Tensor:
return torch.log(x.clamp(min=eps))
| 18.666667 | 57 | 0.696429 | 20 | 112 | 3.85 | 0.65 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.142857 | 112 | 5 | 58 | 22.4 | 0.770833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
5403922e603ba4720ff05ba55d5ba44f1b460afa | 42 | py | Python | topgun/models/__init__.py | muntumdwara/TopGun | fc253faa8ac0a7c9b7d000c2ea018bba9c584d27 | [
"MIT"
] | null | null | null | topgun/models/__init__.py | muntumdwara/TopGun | fc253faa8ac0a7c9b7d000c2ea018bba9c584d27 | [
"MIT"
] | null | null | null | topgun/models/__init__.py | muntumdwara/TopGun | fc253faa8ac0a7c9b7d000c2ea018bba9c584d27 | [
"MIT"
] | null | null | null |
from .ddm import dividend_discount_models | 21 | 41 | 0.880952 | 6 | 42 | 5.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 42 | 2 | 41 | 21 | 0.921053 | 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 |
5403f41fc2f077dfdf1769dbfd8692016c996232 | 446 | py | Python | bunny/api/models/__init__.py | senpai-development/SenpaiSlasher | 89842e584b4cd60731ce9c43315c08b02a8dc8e3 | [
"MIT"
] | null | null | null | bunny/api/models/__init__.py | senpai-development/SenpaiSlasher | 89842e584b4cd60731ce9c43315c08b02a8dc8e3 | [
"MIT"
] | null | null | null | bunny/api/models/__init__.py | senpai-development/SenpaiSlasher | 89842e584b4cd60731ce9c43315c08b02a8dc8e3 | [
"MIT"
] | 1 | 2021-10-31T02:40:03.000Z | 2021-10-31T02:40:03.000Z | from .channel import * # noqa: F401 F403
from .guild import * # noqa: F401 F403
from .intents import * # noqa: F401 F403
from .member import * # noqa: F401 F403
from .message import * # noqa: F401 F403
from .misc import * # noqa: F401 F403
from .presence import * # noqa: F401 F403
from .role import * # noqa: F4... | 37.166667 | 42 | 0.679372 | 66 | 446 | 4.590909 | 0.242424 | 0.363036 | 0.508251 | 0.653465 | 0.726073 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190202 | 0.221973 | 446 | 11 | 43 | 40.545455 | 0.682997 | 0.392377 | 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 |
5410396c26149a6538e9eb2cf4e15c4e5c951483 | 2,988 | py | Python | python_bindings/correctness/tuple_select.py | rafaelravedutti/Halide | 9417210e7eca49b224028834dbed09cb2d62b1cd | [
"Apache-2.0"
] | 107 | 2018-08-16T05:32:52.000Z | 2022-02-11T19:44:25.000Z | python_bindings/correctness/tuple_select.py | rafaelravedutti/Halide | 9417210e7eca49b224028834dbed09cb2d62b1cd | [
"Apache-2.0"
] | 79 | 2019-02-22T03:27:45.000Z | 2022-02-24T23:03:28.000Z | python_bindings/correctness/tuple_select.py | rafaelravedutti/Halide | 9417210e7eca49b224028834dbed09cb2d62b1cd | [
"Apache-2.0"
] | 16 | 2018-08-21T09:45:13.000Z | 2021-12-11T03:32:15.000Z | import halide as hl
import numpy as np
def test_tuple_select():
x = hl.Var('x')
y = hl.Var('y')
# ternary tuple_select with Expr condition
f = hl.Func('f')
f[x, y] = hl.tuple_select(x + y < 30, (x, y), (x-1, y-2))
a, b = f.realize(200, 200)
for xx in range(a.height()):
for yy in ... | 35.571429 | 96 | 0.493976 | 482 | 2,988 | 2.979253 | 0.149378 | 0.023677 | 0.044568 | 0.033426 | 0.819638 | 0.816852 | 0.808496 | 0.755571 | 0.738858 | 0.714485 | 0 | 0.073028 | 0.372155 | 2,988 | 83 | 97 | 36 | 0.692431 | 0.084003 | 0 | 0.650794 | 0 | 0 | 0.075092 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.015873 | false | 0 | 0.031746 | 0 | 0.047619 | 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 |
581ec34406a8d3ce10fc41df03681e89b51b67ea | 34 | py | Python | Programmers/src/12925/solution.py | lstar2397/algorithms | 686ea882079e26111f86b5bd5a7ab1b14ccf0fa2 | [
"MIT"
] | null | null | null | Programmers/src/12925/solution.py | lstar2397/algorithms | 686ea882079e26111f86b5bd5a7ab1b14ccf0fa2 | [
"MIT"
] | null | null | null | Programmers/src/12925/solution.py | lstar2397/algorithms | 686ea882079e26111f86b5bd5a7ab1b14ccf0fa2 | [
"MIT"
] | null | null | null | def solution(s):
return int(s) | 17 | 17 | 0.647059 | 6 | 34 | 3.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 34 | 2 | 17 | 17 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
5861b0edf72a3563c5f7e40f8c6bf4f94a4c77d8 | 1,770 | py | Python | reversi/strategies/coordinator/__init__.py | y-tetsu/othello | 73eabfe22d6b44bbfa0b436e6287e3e7356620f4 | [
"MIT"
] | 10 | 2020-07-24T22:04:51.000Z | 2022-03-25T06:09:48.000Z | reversi/strategies/coordinator/__init__.py | y-tetsu/othello | 73eabfe22d6b44bbfa0b436e6287e3e7356620f4 | [
"MIT"
] | 12 | 2021-04-30T09:53:18.000Z | 2022-02-25T04:16:02.000Z | reversi/strategies/coordinator/__init__.py | y-tetsu/othello | 73eabfe22d6b44bbfa0b436e6287e3e7356620f4 | [
"MIT"
] | 1 | 2021-11-25T13:12:32.000Z | 2021-11-25T13:12:32.000Z | from ...strategies.coordinator.scorer import TableScorer, PossibilityScorer, OpeningScorer, WinLoseScorer, NumberScorer, EdgeScorer, CornerScorer, BlankScorer, EdgeCornerScorer # noqa: E501
from ...strategies.coordinator.selector import Selector, Selector_W
from ...strategies.coordinator.orderer import Orderer, Ordere... | 32.777778 | 463 | 0.718079 | 187 | 1,770 | 6.390374 | 0.251337 | 0.065272 | 0.083682 | 0.090377 | 0.826778 | 0.826778 | 0.826778 | 0.826778 | 0.826778 | 0.63431 | 0 | 0.004071 | 0.167232 | 1,770 | 53 | 464 | 33.396226 | 0.806649 | 0.011864 | 0 | 0 | 0 | 0 | 0.313288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078431 | 0 | 0.078431 | 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 |
58836653c820d017fba63997dc1db865808e4a91 | 39 | py | Python | djangolive/utils/__init__.py | Tomvictor/djangolive | fbb482395e4b9be5b947480047868870bb77f344 | [
"MIT"
] | 1 | 2021-04-06T17:53:06.000Z | 2021-04-06T17:53:06.000Z | djangolive/utils/__init__.py | Tomvictor/djangolive | fbb482395e4b9be5b947480047868870bb77f344 | [
"MIT"
] | 6 | 2021-04-16T16:06:55.000Z | 2021-04-24T07:13:07.000Z | djangolive/utils/__init__.py | Tomvictor/djangolive | fbb482395e4b9be5b947480047868870bb77f344 | [
"MIT"
] | null | null | null | from ._archive import ZipResponseMixin
| 19.5 | 38 | 0.871795 | 4 | 39 | 8.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 39 | 1 | 39 | 39 | 0.942857 | 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 |
588b00f0c8a740075b5bd925c05175c12eb1037b | 180 | py | Python | student_mgmt/__init__.py | MustafaRaad/Student_management__Certificate | a9e8ca6cbf2f2ab39d6a44b2bd56baf8a8042505 | [
"MIT"
] | null | null | null | student_mgmt/__init__.py | MustafaRaad/Student_management__Certificate | a9e8ca6cbf2f2ab39d6a44b2bd56baf8a8042505 | [
"MIT"
] | null | null | null | student_mgmt/__init__.py | MustafaRaad/Student_management__Certificate | a9e8ca6cbf2f2ab39d6a44b2bd56baf8a8042505 | [
"MIT"
] | null | null | null | """
##########################################
## Developed By:Mustafa Raad Mutashar ##
## mustafa.raad.7@gmail.com 2020 ##
##########################################
"""
| 25.714286 | 42 | 0.3 | 11 | 180 | 4.909091 | 0.818182 | 0.407407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031847 | 0.127778 | 180 | 6 | 43 | 30 | 0.312102 | 0.95 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5436a01008f2e4eb7b96ef96a5fd72bd2eeedae8 | 41 | py | Python | libpyka/db/__init__.py | karakawa88/libpyka | 3cd29b68f26ca6bce6239545142b7cc410d97bd1 | [
"MIT"
] | null | null | null | libpyka/db/__init__.py | karakawa88/libpyka | 3cd29b68f26ca6bce6239545142b7cc410d97bd1 | [
"MIT"
] | null | null | null | libpyka/db/__init__.py | karakawa88/libpyka | 3cd29b68f26ca6bce6239545142b7cc410d97bd1 | [
"MIT"
] | null | null | null | from .SQLException import SQLException
| 10.25 | 38 | 0.829268 | 4 | 41 | 8.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 41 | 3 | 39 | 13.666667 | 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 |
5499ebec09d878806d2d332e24b49dea33e29dbb | 166 | py | Python | chapter 1/c1q28.py | jonathanmonreal/nltk-examples | 95fb0b28c9ba433bac20990715496edc469293b4 | [
"Apache-2.0"
] | 2 | 2015-08-06T18:58:44.000Z | 2018-05-11T13:00:28.000Z | chapter 1/c1q28.py | jonathanmonreal/nltk-examples | 95fb0b28c9ba433bac20990715496edc469293b4 | [
"Apache-2.0"
] | null | null | null | chapter 1/c1q28.py | jonathanmonreal/nltk-examples | 95fb0b28c9ba433bac20990715496edc469293b4 | [
"Apache-2.0"
] | null | null | null | # Jonathan Monreal
from __future__ import division
import nltk
def percentage(word, text):
return 100 * ([word.lower() for word in text].count(word)/len(text))
| 20.75 | 72 | 0.728916 | 24 | 166 | 4.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021429 | 0.156627 | 166 | 7 | 73 | 23.714286 | 0.814286 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
54bee0d7627971277e34b7a4ffd4c77ded02b310 | 94 | py | Python | HedyNet/promotions/views.py | akjohnson/HedyNet | 77771605fa8987435bd74ce8ec2a33008e3f8fd1 | [
"Apache-2.0"
] | null | null | null | HedyNet/promotions/views.py | akjohnson/HedyNet | 77771605fa8987435bd74ce8ec2a33008e3f8fd1 | [
"Apache-2.0"
] | null | null | null | HedyNet/promotions/views.py | akjohnson/HedyNet | 77771605fa8987435bd74ce8ec2a33008e3f8fd1 | [
"Apache-2.0"
] | null | null | null | from mailchimp2 import SubscribeFormView
class GeekGirlCon(SubscribeFormView):
pass
| 15.666667 | 40 | 0.787234 | 8 | 94 | 9.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.180851 | 94 | 5 | 41 | 18.8 | 0.948052 | 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 |
54c0a541f65af9a0faf84e33006251254543388e | 39 | py | Python | test_suite/suite/test08/other_mod.py | joncatanio/cannoli | 410f6bea362bf9e33eecc0e01fb080dadd14ef23 | [
"MIT"
] | 755 | 2017-12-09T05:34:43.000Z | 2022-03-26T09:15:56.000Z | test_suite/suite/test08/other_mod.py | joncatanio/cannoli | 410f6bea362bf9e33eecc0e01fb080dadd14ef23 | [
"MIT"
] | 8 | 2017-12-12T01:03:18.000Z | 2020-06-29T01:41:03.000Z | test_suite/suite/test08/other_mod.py | joncatanio/cannoli | 410f6bea362bf9e33eecc0e01fb080dadd14ef23 | [
"MIT"
] | 23 | 2018-05-17T17:48:23.000Z | 2022-03-26T09:15:57.000Z | def func():
print("other_mod call")
| 13 | 26 | 0.641026 | 6 | 39 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 39 | 2 | 27 | 19.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.358974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
b738df8fb2406cc2c09ee8ef32cc652e1423b01a | 8,987 | py | Python | adventofcode/day11.py | jcfvalente/adventofcode2020 | ec0deede4661dd80945d96cb72b034579b9ac62e | [
"MIT"
] | null | null | null | adventofcode/day11.py | jcfvalente/adventofcode2020 | ec0deede4661dd80945d96cb72b034579b9ac62e | [
"MIT"
] | null | null | null | adventofcode/day11.py | jcfvalente/adventofcode2020 | ec0deede4661dd80945d96cb72b034579b9ac62e | [
"MIT"
] | null | null | null | from adventofcode.inputs import reader
import copy
def solve_part_one(seats_map: list) -> int:
seats_stable = False
aux_seats_map = []
seats_map = [list(row) for row in seats_map]
while not seats_stable: # Keeping doing this while the seats change
internal_stable = True
if aux_seats_... | 40.85 | 92 | 0.401914 | 866 | 8,987 | 3.891455 | 0.099307 | 0.178042 | 0.104451 | 0.061721 | 0.880415 | 0.866172 | 0.833828 | 0.744214 | 0.717804 | 0.573591 | 0 | 0.021488 | 0.518415 | 8,987 | 219 | 93 | 41.03653 | 0.757163 | 0.039502 | 0 | 0.697143 | 0 | 0 | 0.00837 | 0.003371 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017143 | false | 0 | 0.011429 | 0 | 0.045714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 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 |
b741acce954698c96769fd78fe934510ae2f593a | 9,552 | py | Python | tests/test_attention.py | ZeroDesigner/alphafold2 | 25255ab69314480316e5dc978e2cac1d2c8aa9d1 | [
"MIT"
] | 1 | 2022-01-21T04:58:18.000Z | 2022-01-21T04:58:18.000Z | tests/test_attention.py | ZeroDesigner/alphafold2 | 25255ab69314480316e5dc978e2cac1d2c8aa9d1 | [
"MIT"
] | null | null | null | tests/test_attention.py | ZeroDesigner/alphafold2 | 25255ab69314480316e5dc978e2cac1d2c8aa9d1 | [
"MIT"
] | null | null | null | import torch
from alphafold2_pytorch.alphafold2 import Alphafold2
from alphafold2_pytorch.utils import *
def test_main():
model = Alphafold2(
dim = 32,
depth = 2,
heads = 2,
dim_head = 32
)
seq = torch.randint(0, 21, (2, 128))
msa = torch.randint(0, 21, (2, 5, 64))
... | 23.240876 | 96 | 0.555486 | 1,226 | 9,552 | 4.126427 | 0.107667 | 0.074718 | 0.07709 | 0.10081 | 0.782368 | 0.774264 | 0.748369 | 0.744416 | 0.744416 | 0.72623 | 0 | 0.057969 | 0.329983 | 9,552 | 411 | 97 | 23.240876 | 0.7325 | 0.0134 | 0 | 0.760355 | 0 | 0 | 0.031104 | 0 | 0 | 0 | 0 | 0 | 0.04142 | 1 | 0.044379 | false | 0 | 0.008876 | 0 | 0.053254 | 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 |
3f8dccd479313b3e4fff06437382cc12c7c54b45 | 46 | py | Python | routeros_ssh_connector/__init__.py | hosin211/routeros_ssh_connector | 4728aff41c359b47b9a9c5b78b5689c9f7771a62 | [
"MIT"
] | 6 | 2021-08-03T08:15:24.000Z | 2022-01-21T17:43:44.000Z | routeros_ssh_connector/__init__.py | hosin211/routeros_ssh_connector | 4728aff41c359b47b9a9c5b78b5689c9f7771a62 | [
"MIT"
] | null | null | null | routeros_ssh_connector/__init__.py | hosin211/routeros_ssh_connector | 4728aff41c359b47b9a9c5b78b5689c9f7771a62 | [
"MIT"
] | 1 | 2022-01-29T16:04:04.000Z | 2022-01-29T16:04:04.000Z | from routeros_ssh_connector.connector import * | 46 | 46 | 0.891304 | 6 | 46 | 6.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 46 | 1 | 46 | 46 | 0.906977 | 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 |
3fa03d7354b9949200aa201b513e9a27dffe978f | 5,620 | py | Python | stix2generator/test/test_stix21_registry.py | majacQ/cti-stix-generator | 7465ecd29ef6caabf9f1b60ad45dad789c475028 | [
"BSD-3-Clause"
] | null | null | null | stix2generator/test/test_stix21_registry.py | majacQ/cti-stix-generator | 7465ecd29ef6caabf9f1b60ad45dad789c475028 | [
"BSD-3-Clause"
] | null | null | null | stix2generator/test/test_stix21_registry.py | majacQ/cti-stix-generator | 7465ecd29ef6caabf9f1b60ad45dad789c475028 | [
"BSD-3-Clause"
] | null | null | null | import json
import pytest
import stix2
import stix2.exceptions
import stix2generator
import stix2generator.language.builder
import stix2generator.generation.object_generator
def get_stix21_spec_names():
"""
Gets the spec names from the STIX 2.1 registry. We need to know this to
be able to test those spe... | 32.114286 | 80 | 0.711566 | 752 | 5,620 | 5.086436 | 0.176862 | 0.032941 | 0.037647 | 0.040784 | 0.818824 | 0.769412 | 0.744837 | 0.737516 | 0.737516 | 0.699869 | 0 | 0.018259 | 0.20089 | 5,620 | 174 | 81 | 32.298851 | 0.833445 | 0.241815 | 0 | 0.586957 | 0 | 0 | 0.036647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141304 | false | 0 | 0.076087 | 0 | 0.26087 | 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 |
3fc3cab71b067e4586dd5d69d8364251d22bf5f7 | 1,428 | py | Python | cycle_2018/migrations/0009_auto_20180222_1459.py | RobBickel/nyt-fec | 802df867c3b31fff8e922be00bab6f40a5db2d00 | [
"Apache-2.0"
] | 17 | 2018-03-27T15:09:58.000Z | 2020-05-13T11:32:43.000Z | cycle_2018/migrations/0009_auto_20180222_1459.py | RobBickel/nyt-fec | 802df867c3b31fff8e922be00bab6f40a5db2d00 | [
"Apache-2.0"
] | 59 | 2018-03-21T17:08:15.000Z | 2021-12-13T19:47:37.000Z | cycle_2018/migrations/0009_auto_20180222_1459.py | RobBickel/nyt-fec | 802df867c3b31fff8e922be00bab6f40a5db2d00 | [
"Apache-2.0"
] | 11 | 2018-09-11T23:18:32.000Z | 2021-12-15T08:43:58.000Z | # Generated by Django 2.0.1 on 2018-02-22 14:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cycle_2018', '0008_schedulee'),
]
operations = [
migrations.AddField(
model_name='filing',
name='status',
... | 42 | 197 | 0.588235 | 140 | 1,428 | 5.928571 | 0.314286 | 0.086747 | 0.110843 | 0.13012 | 0.753012 | 0.753012 | 0.753012 | 0.753012 | 0.753012 | 0.753012 | 0 | 0.028336 | 0.233894 | 1,428 | 33 | 198 | 43.272727 | 0.730347 | 0.031513 | 0 | 0.592593 | 1 | 0 | 0.304852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 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 |
b20ddc17f3f99ef6cb191d7292f089f56babaf23 | 32,621 | py | Python | src/models/pytorch/networks.py | AntonioGUJ/AirwaySegmentation_Keras | 7da4c88dfde6f0dd2f8f181b2d3fd07dc2d28638 | [
"MIT"
] | 15 | 2021-04-09T12:42:35.000Z | 2022-03-22T09:01:57.000Z | src/models/pytorch/networks.py | id-b3/bronchinet | 5acf5243da2a0e38041bbbf2ffd033291eff13a4 | [
"MIT"
] | 13 | 2021-03-31T11:16:12.000Z | 2022-02-10T06:11:16.000Z | src/models/pytorch/networks.py | id-b3/bronchinet | 5acf5243da2a0e38041bbbf2ffd033291eff13a4 | [
"MIT"
] | 9 | 2021-04-13T13:27:51.000Z | 2022-02-25T07:03:25.000Z |
from typing import Tuple, List, Dict, Union, Any
from torch.nn import Conv3d, MaxPool3d, Upsample, BatchNorm3d, Dropout3d, ReLU, LeakyReLU, Sigmoid
import torch.nn as nn
import torch
from common.exceptionmanager import catch_error_exception
from common.functionutil import ImagesUtil
from imageoperators.imageoperator... | 53.56486 | 119 | 0.67058 | 4,135 | 32,621 | 4.7289 | 0.041838 | 0.085507 | 0.048328 | 0.041424 | 0.881763 | 0.839061 | 0.783318 | 0.76235 | 0.751662 | 0.712335 | 0 | 0.024037 | 0.257748 | 32,621 | 608 | 120 | 53.652961 | 0.783546 | 0.003311 | 0 | 0.504032 | 0 | 0 | 0.017566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042339 | false | 0 | 0.016129 | 0.014113 | 0.133065 | 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 |
b7e6db9c4273e4fc7abb8446c256bf64257ad556 | 7,234 | py | Python | tests/test_case_when.py | MojixCoder/tortoise-orm | 2f6396815a603f515d48648ebf339ffad4d15176 | [
"Apache-2.0"
] | 2,847 | 2018-08-27T12:02:21.000Z | 2022-03-31T01:30:40.000Z | tests/test_case_when.py | MojixCoder/tortoise-orm | 2f6396815a603f515d48648ebf339ffad4d15176 | [
"Apache-2.0"
] | 983 | 2018-08-24T16:42:41.000Z | 2022-03-30T05:14:49.000Z | tests/test_case_when.py | MojixCoder/tortoise-orm | 2f6396815a603f515d48648ebf339ffad4d15176 | [
"Apache-2.0"
] | 323 | 2018-09-04T23:38:42.000Z | 2022-03-31T06:49:17.000Z | from tests.testmodels import IntFields
from tortoise import Tortoise
from tortoise.contrib import test
from tortoise.expressions import Case, F, Q, When
from tortoise.functions import Coalesce
class TestCaseWhen(test.TestCase):
async def setUp(self):
self.intfields = [await IntFields.create(intnum=val) fo... | 54.390977 | 186 | 0.641968 | 896 | 7,234 | 5.066964 | 0.079241 | 0.077093 | 0.089427 | 0.101322 | 0.896476 | 0.884802 | 0.870925 | 0.870925 | 0.870925 | 0.837004 | 0 | 0.01141 | 0.212469 | 7,234 | 132 | 187 | 54.80303 | 0.785501 | 0.006774 | 0 | 0.46789 | 0 | 0.119266 | 0.358257 | 0.014481 | 0 | 0 | 0 | 0 | 0.091743 | 1 | 0 | false | 0 | 0.045872 | 0 | 0.055046 | 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 |
4d8032c98304a1e066abdd9a808af2b54d8f5eef | 1,180 | py | Python | wechatpayv3/merchantrisk.py | MacGuffinLife/wechatpayv3 | 964abc59604fae10e68c9735b2af1a242772ab9d | [
"MIT"
] | null | null | null | wechatpayv3/merchantrisk.py | MacGuffinLife/wechatpayv3 | 964abc59604fae10e68c9735b2af1a242772ab9d | [
"MIT"
] | null | null | null | wechatpayv3/merchantrisk.py | MacGuffinLife/wechatpayv3 | 964abc59604fae10e68c9735b2af1a242772ab9d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .type import RequestType
def merchantrisk_callback_create(self, notify_url=None):
"""创建商户违规通知回调地址
:param notify_url: 通知地址,示例值:'https://www.weixin.qq.com/wxpay/pay.php'
"""
params = {}
if notify_url:
params.update({'notify_url': notify_url})
path = '/v3/mer... | 29.5 | 73 | 0.7 | 144 | 1,180 | 5.583333 | 0.333333 | 0.11194 | 0.114428 | 0.089552 | 0.782338 | 0.700249 | 0.700249 | 0.700249 | 0.700249 | 0.700249 | 0 | 0.005025 | 0.15678 | 1,180 | 39 | 74 | 30.25641 | 0.803015 | 0.189831 | 0 | 0.526316 | 0 | 0 | 0.231189 | 0.209378 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.473684 | 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 | 1 | 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.