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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0d517a25ae90933b6e2d861c6bbb5b1cddd46394 | 44 | py | Python | src/data/augmix/__init__.py | Julienbeaulieu/kaggle-computer-vision-competition | 7bc6bcb8b85d81ff1544040c403e356c0a3c8060 | [
"MIT"
] | 14 | 2020-12-07T22:24:17.000Z | 2022-03-30T05:11:55.000Z | src/data/augmix/__init__.py | Julienbeaulieu/kaggle-computer-vision-competition | 7bc6bcb8b85d81ff1544040c403e356c0a3c8060 | [
"MIT"
] | null | null | null | src/data/augmix/__init__.py | Julienbeaulieu/kaggle-computer-vision-competition | 7bc6bcb8b85d81ff1544040c403e356c0a3c8060 | [
"MIT"
] | 4 | 2020-02-22T17:54:23.000Z | 2022-01-31T06:41:11.000Z | from .augment_and_mix import augment_and_mix | 44 | 44 | 0.909091 | 8 | 44 | 4.5 | 0.625 | 0.555556 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 44 | 1 | 44 | 44 | 0.878049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
b4db151f423ac09d9ebd6b2e1f98dba6aebaea1f | 26,629 | py | Python | tests/test_mongobar.py | ingkebil/mongobar | aded858a8280bd5ac34f2e3733d77d0b95bf5c4d | [
"MIT"
] | 49 | 2017-09-01T20:01:11.000Z | 2021-05-12T15:14:17.000Z | tests/test_mongobar.py | ingkebil/mongobar | aded858a8280bd5ac34f2e3733d77d0b95bf5c4d | [
"MIT"
] | 1 | 2017-10-27T09:25:42.000Z | 2017-11-30T21:40:35.000Z | tests/test_mongobar.py | ingkebil/mongobar | aded858a8280bd5ac34f2e3733d77d0b95bf5c4d | [
"MIT"
] | 1 | 2020-07-23T12:46:18.000Z | 2020-07-23T12:46:18.000Z |
import sys; sys.path.append("../") # noqa
import unittest
import logging
import os
import subprocess
import datetime
import pymongo
from unittest import mock
import mongobar
# Mocked Mongo Client
class MockedMongoDocument(mock.Mock):
pass
class MockedMongoCollection(mock.Mock):
def __init__(self, *arg... | 36.378415 | 112 | 0.612903 | 2,755 | 26,629 | 5.67078 | 0.067877 | 0.168982 | 0.141458 | 0.204826 | 0.819753 | 0.79735 | 0.778916 | 0.749344 | 0.742623 | 0.692633 | 0 | 0.011572 | 0.247137 | 26,629 | 731 | 113 | 36.428181 | 0.767708 | 0.010477 | 0 | 0.656198 | 0 | 0 | 0.244104 | 0.170129 | 0 | 0 | 0 | 0 | 0.076033 | 1 | 0.076033 | false | 0.013223 | 0.014876 | 0.008264 | 0.107438 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 7 |
2ee13db393f8c7ccde4df43f898e125a2589acdc | 19,581 | py | Python | hyperdopamine/agents/utils.py | Bartiik/action-hypergraph-networks | 3d4dfddfacaaea36667fe752b0cb7f22608d75ee | [
"MIT"
] | 11 | 2021-03-08T04:11:10.000Z | 2022-01-31T13:53:34.000Z | hyperdopamine/agents/utils.py | Bartiik/action-hypergraph-networks | 3d4dfddfacaaea36667fe752b0cb7f22608d75ee | [
"MIT"
] | 1 | 2021-04-13T02:32:19.000Z | 2021-06-20T09:42:23.000Z | hyperdopamine/agents/utils.py | Bartiik/action-hypergraph-networks | 3d4dfddfacaaea36667fe752b0cb7f22608d75ee | [
"MIT"
] | 5 | 2021-07-07T18:32:41.000Z | 2022-03-31T19:24:27.000Z | import itertools
import math
import numpy as np
def ceil_rounder(x, base=5):
return base * math.ceil(x / base)
def create_sum_order_1_map(num_branches, num_sub_actions_per_branch):
n = num_branches
m = num_sub_actions_per_branch
sub_actions = []
for _ in range(n):
sub_actions.append(np.arange(0, m))
... | 48.229064 | 111 | 0.598437 | 4,019 | 19,581 | 2.7263 | 0.018413 | 0.265401 | 0.339235 | 0.385507 | 0.987314 | 0.987314 | 0.983481 | 0.982933 | 0.982933 | 0.982933 | 0 | 0.141302 | 0.197998 | 19,581 | 405 | 112 | 48.348148 | 0.556419 | 0 | 0 | 0.808743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021858 | 1 | 0.019126 | false | 0 | 0.008197 | 0.002732 | 0.046448 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 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 | 10 |
2ee92b859a18ab3d982b3252b892472c6de88b62 | 11,882 | py | Python | src/triage/component/results_schema/alembic/versions/b4d7569d31cb_aequitas.py | josephbajor/triage_NN | cbaee6e5a06e597c91fec372717d89a2b5f34fa5 | [
"MIT"
] | 160 | 2017-06-13T09:59:59.000Z | 2022-03-21T22:00:35.000Z | src/triage/component/results_schema/alembic/versions/b4d7569d31cb_aequitas.py | josephbajor/triage_NN | cbaee6e5a06e597c91fec372717d89a2b5f34fa5 | [
"MIT"
] | 803 | 2016-10-21T19:44:02.000Z | 2022-03-29T00:02:33.000Z | src/triage/component/results_schema/alembic/versions/b4d7569d31cb_aequitas.py | josephbajor/triage_NN | cbaee6e5a06e597c91fec372717d89a2b5f34fa5 | [
"MIT"
] | 59 | 2017-01-31T22:10:22.000Z | 2022-03-19T12:35:03.000Z | """aequitas
Revision ID: b4d7569d31cb
Revises: 609c7cc51794
Create Date: 2019-05-07 11:56:03.814097
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b4d7569d31cb'
down_revision = '609c7cc51794'
branch_labels = None
depends_on = None
def upgrade():
# ### c... | 62.867725 | 168 | 0.712675 | 1,609 | 11,882 | 5.028589 | 0.072094 | 0.122605 | 0.186874 | 0.26202 | 0.963911 | 0.962427 | 0.959461 | 0.958102 | 0.924855 | 0.91645 | 0 | 0.004892 | 0.105454 | 11,882 | 188 | 169 | 63.202128 | 0.756327 | 0.024407 | 0 | 0.776471 | 0 | 0 | 0.308438 | 0.116486 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011765 | false | 0 | 0.011765 | 0 | 0.023529 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 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 | 9 |
2efe8e172a6509efd1ce4bee813cdd5eadbcff46 | 6,282 | py | Python | backend/unpp_api/apps/partner/roles.py | unicef/un-partner-portal | 73afa193a5f6d626928cae0025c72a17f0ef8f61 | [
"Apache-2.0"
] | 6 | 2017-11-21T10:00:44.000Z | 2022-02-12T16:51:48.000Z | backend/unpp_api/apps/partner/roles.py | unicef/un-partner-portal | 73afa193a5f6d626928cae0025c72a17f0ef8f61 | [
"Apache-2.0"
] | 995 | 2017-07-31T02:08:36.000Z | 2022-03-08T22:44:03.000Z | backend/unpp_api/apps/partner/roles.py | unicef/un-partner-portal | 73afa193a5f6d626928cae0025c72a17f0ef8f61 | [
"Apache-2.0"
] | 1 | 2021-07-21T10:45:15.000Z | 2021-07-21T10:45:15.000Z | from enum import unique, auto
from partner.permissions import PartnerPermission
from common.enums import AutoNameEnum
@unique
class PartnerRole(AutoNameEnum):
"""
Editing names here WILL break roles saved in DB
"""
ADMIN = auto()
EDITOR = auto()
READER = auto()
@classmethod
def get_c... | 37.843373 | 65 | 0.656638 | 482 | 6,282 | 8.251037 | 0.161826 | 0.174252 | 0.056575 | 0.095047 | 0.865476 | 0.865476 | 0.835052 | 0.820468 | 0.789791 | 0.789791 | 0 | 0 | 0.286215 | 6,282 | 165 | 66 | 38.072727 | 0.886931 | 0.032474 | 0 | 0.843137 | 0 | 0 | 0.004126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006536 | false | 0 | 0.019608 | 0.006536 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
2c073a6a83b4c85aa2289b0ae0515e969186bc18 | 1,274 | py | Python | model/params.py | ns50677/ntua-slp-semeval2018 | 8343e7fd5b12efb16d47fcc4f80c7e23bd949905 | [
"MIT"
] | null | null | null | model/params.py | ns50677/ntua-slp-semeval2018 | 8343e7fd5b12efb16d47fcc4f80c7e23bd949905 | [
"MIT"
] | null | null | null | model/params.py | ns50677/ntua-slp-semeval2018 | 8343e7fd5b12efb16d47fcc4f80c7e23bd949905 | [
"MIT"
] | null | null | null | """
Model Configurations
"""
TASK3_A = {
"name": "TASK3_A",
"token_type": "word",
"batch_train": 64,
"batch_eval": 64,
"epochs": 50,
"embeddings_file": "ntua_twitter_affect_310",
"embed_dim": 310,
"embed_finetune": False,
"embed_noise": 0.05,
"embed_dropout": 0.1,
"encode... | 21.965517 | 49 | 0.594976 | 154 | 1,274 | 4.623377 | 0.331169 | 0.067416 | 0.036517 | 0.050562 | 0.884831 | 0.820225 | 0.820225 | 0.820225 | 0.820225 | 0.730337 | 0 | 0.070265 | 0.229199 | 1,274 | 58 | 50 | 21.965517 | 0.654786 | 0.015699 | 0 | 0.72 | 0 | 0 | 0.506024 | 0.070683 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
2c1aace0d57a75d513d2aa0749be6bd748d48614 | 28,692 | py | Python | h3/defs/chdt.py | holy-crust/reclaimer | 0aa693da3866ce7999c68d5f71f31a9c932cdb2c | [
"MIT"
] | null | null | null | h3/defs/chdt.py | holy-crust/reclaimer | 0aa693da3866ce7999c68d5f71f31a9c932cdb2c | [
"MIT"
] | null | null | null | h3/defs/chdt.py | holy-crust/reclaimer | 0aa693da3866ce7999c68d5f71f31a9c932cdb2c | [
"MIT"
] | null | null | null | ############# Credits and version info #############
# Definition generated from Assembly XML tag def
# Date generated: 2018/12/03 04:56
#
# revision: 1 author: Assembly
# Generated plugin from scratch.
# revision: 2 author: -DeToX-
# Fixed up the layout, mapped out some values..
# revision: 3 author: Da... | 29.949896 | 91 | 0.613133 | 3,183 | 28,692 | 4.963556 | 0.113729 | 0.062093 | 0.088866 | 0.061333 | 0.783024 | 0.778277 | 0.769352 | 0.761694 | 0.748845 | 0.744921 | 0 | 0.044086 | 0.260038 | 28,692 | 958 | 92 | 29.949896 | 0.700061 | 0.018995 | 0 | 0.703911 | 1 | 0 | 0.366991 | 0.048347 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001117 | false | 0 | 0.003352 | 0.001117 | 0.005587 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
258bbc3fa190285614f20a994d4a2cbebe08ad1a | 172 | py | Python | Computer science/Programming languages/Python/Basics/Simple programs/Program with Numbers/Last digit of a number/last_digit_of_a_number.py | chanchanchong/PYTHON-TRACK-IN-HYPERSKILL | 462fe08ff4a2b183fd45a0235ab1ec7a788bd54c | [
"MIT"
] | null | null | null | Computer science/Programming languages/Python/Basics/Simple programs/Program with Numbers/Last digit of a number/last_digit_of_a_number.py | chanchanchong/PYTHON-TRACK-IN-HYPERSKILL | 462fe08ff4a2b183fd45a0235ab1ec7a788bd54c | [
"MIT"
] | null | null | null | Computer science/Programming languages/Python/Basics/Simple programs/Program with Numbers/Last digit of a number/last_digit_of_a_number.py | chanchanchong/PYTHON-TRACK-IN-HYPERSKILL | 462fe08ff4a2b183fd45a0235ab1ec7a788bd54c | [
"MIT"
] | null | null | null | # Write a program that reads an integer and outputs its last digit.
# print(int(input()) % 10)
# another solution
print(input()[-1])
# another solution
print(input()[-1]) | 21.5 | 67 | 0.697674 | 26 | 172 | 4.615385 | 0.730769 | 0.25 | 0.333333 | 0.416667 | 0.433333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.151163 | 172 | 8 | 68 | 21.5 | 0.794521 | 0.72093 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
25ff22ef9f2f0ef59dee1a215a95b0159ced2618 | 4,232 | py | Python | sana_pchr/migrations/0002_auto_20160106_0638.py | SanaMobile/sana.pchr.oss-web | 2b2fd75a1730f1743e28b4499bb1ba76fa100970 | [
"BSD-3-Clause"
] | null | null | null | sana_pchr/migrations/0002_auto_20160106_0638.py | SanaMobile/sana.pchr.oss-web | 2b2fd75a1730f1743e28b4499bb1ba76fa100970 | [
"BSD-3-Clause"
] | null | null | null | sana_pchr/migrations/0002_auto_20160106_0638.py | SanaMobile/sana.pchr.oss-web | 2b2fd75a1730f1743e28b4499bb1ba76fa100970 | [
"BSD-3-Clause"
] | 2 | 2018-06-07T21:54:08.000Z | 2018-07-11T20:40:19.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import datetime
from sana_pchr.models.fields import DefaultFuncs
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('sana_pchr', '0001_initial'),
]
operations = [
migrations.Add... | 35.864407 | 85 | 0.547259 | 333 | 4,232 | 6.762763 | 0.171171 | 0.06794 | 0.143428 | 0.206039 | 0.863677 | 0.83881 | 0.819716 | 0.798401 | 0.772647 | 0.772647 | 0 | 0.003287 | 0.353025 | 4,232 | 117 | 86 | 36.17094 | 0.819211 | 0.004962 | 0 | 0.794643 | 0 | 0 | 0.07674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 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 | 8 |
d31e77f10a788d8cc890acf0cbcea964ded2c44b | 222 | py | Python | alice_images/__init__.py | AlekseevAV/alice-images | 28021320d9e6d48e7ef1f878e039b70002382fbc | [
"MIT"
] | null | null | null | alice_images/__init__.py | AlekseevAV/alice-images | 28021320d9e6d48e7ef1f878e039b70002382fbc | [
"MIT"
] | null | null | null | alice_images/__init__.py | AlekseevAV/alice-images | 28021320d9e6d48e7ef1f878e039b70002382fbc | [
"MIT"
] | null | null | null | from .alice_images_api import upload_image, uploaded_images_list, delete_uploaded_image, check_free_space
__all__ = [
'upload_image',
'uploaded_images_list',
'delete_uploaded_image',
'check_free_space',
]
| 24.666667 | 105 | 0.77027 | 28 | 222 | 5.392857 | 0.5 | 0.145695 | 0.251656 | 0.331126 | 0.821192 | 0.821192 | 0.821192 | 0.821192 | 0.821192 | 0.821192 | 0 | 0 | 0.144144 | 222 | 8 | 106 | 27.75 | 0.794737 | 0 | 0 | 0 | 0 | 0 | 0.310811 | 0.094595 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 0 | 0 | 10 |
d32a6ae971be6b76e598e2b26b41f00ef75f6450 | 6,752 | py | Python | tests/esp_sim/test_esp_sim.py | CMargreitter/Icolos | fd7b664ce177df875fefa910dc4d5c574b521cb3 | [
"Apache-2.0"
] | 11 | 2022-01-30T14:36:13.000Z | 2022-03-22T09:40:57.000Z | tests/esp_sim/test_esp_sim.py | CMargreitter/Icolos | fd7b664ce177df875fefa910dc4d5c574b521cb3 | [
"Apache-2.0"
] | 2 | 2022-03-23T07:56:49.000Z | 2022-03-24T12:01:42.000Z | tests/esp_sim/test_esp_sim.py | CMargreitter/Icolos | fd7b664ce177df875fefa910dc4d5c574b521cb3 | [
"Apache-2.0"
] | 8 | 2022-01-28T10:32:31.000Z | 2022-03-22T09:40:59.000Z | import unittest
from icolos.core.workflow_steps.calculation.electrostatics.esp_sim import StepEspSim
from icolos.utils.enums.step_enums import StepBaseEnum
from tests.tests_paths import export_unit_test_env_vars
_SBE = StepBaseEnum
class Test_EspSim(unittest.TestCase):
@classmethod
def setUpClass(cls):
... | 32.461538 | 91 | 0.432761 | 594 | 6,752 | 4.513468 | 0.175084 | 0.082805 | 0.067139 | 0.040283 | 0.837001 | 0.810145 | 0.796718 | 0.796718 | 0.782171 | 0.782171 | 0 | 0.021192 | 0.475859 | 6,752 | 207 | 92 | 32.618357 | 0.736366 | 0 | 0 | 0.703704 | 0 | 0.005291 | 0.047838 | 0.018957 | 0 | 0 | 0 | 0 | 0.031746 | 1 | 0.031746 | false | 0.010582 | 0.021164 | 0 | 0.058201 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
d35f382f94e389c06c0b594f086d716c586e11e5 | 167 | py | Python | allennlp/sanity_checks/__init__.py | jbrry/allennlp | d906175d953bebcc177567ec0157220c3bd1b9ad | [
"Apache-2.0"
] | 2 | 2022-01-02T12:15:21.000Z | 2022-01-02T12:15:23.000Z | allennlp/sanity_checks/__init__.py | jbrry/allennlp | d906175d953bebcc177567ec0157220c3bd1b9ad | [
"Apache-2.0"
] | 56 | 2020-03-14T21:10:07.000Z | 2022-03-28T13:04:57.000Z | allennlp/sanity_checks/__init__.py | jbrry/allennlp | d906175d953bebcc177567ec0157220c3bd1b9ad | [
"Apache-2.0"
] | 3 | 2020-09-22T17:35:53.000Z | 2022-02-08T01:03:03.000Z | from allennlp.sanity_checks.verification_base import VerificationBase
from allennlp.sanity_checks.normalization_bias_verification import NormalizationBiasVerification
| 55.666667 | 96 | 0.928144 | 17 | 167 | 8.823529 | 0.647059 | 0.16 | 0.24 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047904 | 167 | 2 | 97 | 83.5 | 0.943396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
d364fa878df7e1fb23bc770d455858673fa78f56 | 163 | py | Python | pcrnet/data_utils/__init__.py | asafmanor/pcrnet_pytorch | e9f34e918f5582e7c0969481a96036dd5fb046cd | [
"MIT"
] | 48 | 2020-01-06T07:21:13.000Z | 2022-02-19T10:34:50.000Z | pcrnet/data_utils/__init__.py | asafmanor/pcrnet_pytorch | e9f34e918f5582e7c0969481a96036dd5fb046cd | [
"MIT"
] | 11 | 2020-03-21T11:49:21.000Z | 2021-02-06T09:31:30.000Z | pcrnet/data_utils/__init__.py | asafmanor/pcrnet_pytorch | e9f34e918f5582e7c0969481a96036dd5fb046cd | [
"MIT"
] | 12 | 2020-01-12T10:18:53.000Z | 2022-01-11T07:48:26.000Z | from .dataloaders import ModelNet40Data
from .dataloaders import RegistrationData
from .dataloaders import download_modelnet40, deg_to_rad, create_random_transform | 54.333333 | 81 | 0.889571 | 19 | 163 | 7.368421 | 0.684211 | 0.321429 | 0.45 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.079755 | 163 | 3 | 81 | 54.333333 | 0.906667 | 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 | 1 | 0 | 0 | 7 |
d372ff2b1543d2428289561d3aae48be0146b7b1 | 6,376 | py | Python | microraiden/test/test_close_all_channels.py | andrevmatos/microraiden | 2d51e78afaf3c0a8ddab87e59a5260c0064cdbdd | [
"MIT"
] | 417 | 2017-09-19T19:06:23.000Z | 2021-11-28T05:39:23.000Z | microraiden/test/test_close_all_channels.py | andrevmatos/microraiden | 2d51e78afaf3c0a8ddab87e59a5260c0064cdbdd | [
"MIT"
] | 259 | 2017-09-19T20:42:57.000Z | 2020-11-18T01:31:41.000Z | microraiden/test/test_close_all_channels.py | andrevmatos/microraiden | 2d51e78afaf3c0a8ddab87e59a5260c0064cdbdd | [
"MIT"
] | 126 | 2017-09-19T17:11:39.000Z | 2020-12-17T17:05:27.000Z | import pytest
from eth_utils import (
encode_hex,
)
from ethereum.tester import TransactionFailed
from web3 import Web3
from web3.exceptions import BadFunctionCallOutput
from microraiden import Client
from microraiden.channel_manager import ChannelManager
from microraiden.close_all_channels import close_open_chan... | 33.914894 | 83 | 0.715182 | 742 | 6,376 | 5.836927 | 0.105121 | 0.200416 | 0.066036 | 0.078504 | 0.890095 | 0.883168 | 0.883168 | 0.883168 | 0.883168 | 0.883168 | 0 | 0.01387 | 0.208438 | 6,376 | 187 | 84 | 34.096257 | 0.844264 | 0.030583 | 0 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032051 | 1 | 0.032051 | false | 0 | 0.051282 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 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 | 8 |
d387b8fbeec1a1bdb3f5d64a91819421954312ee | 89,052 | py | Python | pirates/makeapirate/ClothingGlobals.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 3 | 2021-02-25T06:38:13.000Z | 2022-03-22T07:00:15.000Z | pirates/makeapirate/ClothingGlobals.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | null | null | null | pirates/makeapirate/ClothingGlobals.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T06:38:17.000Z | 2021-02-25T06:38:17.000Z | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.makeapirate.ClothingGlobals
from pandac.PandaModules import VBase4
from pirates.piratesbase import PLocalizer
from pirates.pirat... | 492 | 73,666 | 0.648924 | 17,113 | 89,052 | 3.159469 | 0.045755 | 0.184434 | 0.175557 | 0.166457 | 0.76635 | 0.720445 | 0.706869 | 0.661815 | 0.617815 | 0.587076 | 0 | 0.274918 | 0.137448 | 89,052 | 181 | 73,667 | 492 | 0.428982 | 0.002369 | 0 | 0.2 | 0 | 0 | 0.305875 | 0.255412 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.048276 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
6cb07f3856f934f340b6ac169902a27ebd9e9157 | 13,198 | py | Python | pysmFISH/counting.py | ambrosejcarr/pysmFISH | 0eb24355f70c0d5c9013a9407fd56f2e1e9ee3cb | [
"MIT"
] | 5 | 2018-05-29T23:03:19.000Z | 2022-02-02T02:04:41.000Z | pysmFISH/counting.py | ambrosejcarr/pysmFISH | 0eb24355f70c0d5c9013a9407fd56f2e1e9ee3cb | [
"MIT"
] | 3 | 2018-12-18T20:18:38.000Z | 2019-01-18T22:47:45.000Z | pysmFISH/counting.py | ambrosejcarr/pysmFISH | 0eb24355f70c0d5c9013a9407fd56f2e1e9ee3cb | [
"MIT"
] | 5 | 2018-08-10T14:54:54.000Z | 2021-10-09T13:32:08.000Z | import pickle
import numpy as np
from skimage import io, img_as_float
from .dots_calling import thr_calculator
from .filtering import smFISH_filtering, nuclei_filtering
def filtering_and_counting(fpath_img_to_filter,filtered_png_img_gene_dirs,filtered_img_gene_dirs,
counting_gene_dirs, illumination_correctio... | 38.144509 | 135 | 0.69109 | 1,934 | 13,198 | 4.489142 | 0.106515 | 0.036282 | 0.020733 | 0.025801 | 0.908431 | 0.899908 | 0.886892 | 0.86927 | 0.861668 | 0.853605 | 0 | 0.010073 | 0.232763 | 13,198 | 346 | 136 | 38.144509 | 0.847324 | 0.452947 | 0 | 0.763636 | 0 | 0 | 0.020247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0 | 0.045455 | 0 | 0.109091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
6ccc48fac2341b57cf8953951fce91a5a01c1911 | 7,815 | py | Python | personas/migrations/0025_auto_20170415_0924.py | Ykharo/tutorial_P3_4 | 3e4e620833e897ce4af386fa2642c8f647ebab62 | [
"MIT"
] | null | null | null | personas/migrations/0025_auto_20170415_0924.py | Ykharo/tutorial_P3_4 | 3e4e620833e897ce4af386fa2642c8f647ebab62 | [
"MIT"
] | null | null | null | personas/migrations/0025_auto_20170415_0924.py | Ykharo/tutorial_P3_4 | 3e4e620833e897ce4af386fa2642c8f647ebab62 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2017-04-15 12:24
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('personas', '0024_ctto_alcancectto'),
]
operations =... | 39.469697 | 188 | 0.562892 | 775 | 7,815 | 5.56129 | 0.162581 | 0.070998 | 0.154756 | 0.181671 | 0.785615 | 0.785615 | 0.732947 | 0.732947 | 0.709281 | 0.709281 | 0 | 0.016447 | 0.299808 | 7,815 | 197 | 189 | 39.670051 | 0.771199 | 0.008573 | 0 | 0.721053 | 1 | 0 | 0.105617 | 0.008651 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015789 | 0 | 0.031579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
6cebdd6a2145b053c53a3f643defe53c9cd00e1d | 325 | py | Python | src/plantuml_adapter/__init__.py | rcasteran/jarvis4se | 17a276c7c2b831ca6efdb279d38624b54c0246e8 | [
"MIT"
] | 4 | 2022-02-17T15:41:40.000Z | 2022-03-25T09:00:08.000Z | src/plantuml_adapter/__init__.py | rcasteran/jarvis4se | 17a276c7c2b831ca6efdb279d38624b54c0246e8 | [
"MIT"
] | 13 | 2022-02-17T10:54:13.000Z | 2022-03-28T08:05:06.000Z | src/plantuml_adapter/__init__.py | rcasteran/jarvis4se | 17a276c7c2b831ca6efdb279d38624b54c0246e8 | [
"MIT"
] | 1 | 2022-03-03T16:42:33.000Z | 2022-03-03T16:42:33.000Z | from .plantuml_adapter import get_function_diagrams
from .plantuml_adapter import get_sequence_diagram
from .plantuml_adapter import get_state_machine_diagram
from .plantuml_adapter import get_url_from_string
from .plantuml_adapter import get_fun_elem_decomposition
from .plantuml_adapter import get_fun_elem_context_dia... | 46.428571 | 58 | 0.907692 | 47 | 325 | 5.787234 | 0.361702 | 0.264706 | 0.419118 | 0.551471 | 0.720588 | 0.514706 | 0.257353 | 0 | 0 | 0 | 0 | 0 | 0.073846 | 325 | 6 | 59 | 54.166667 | 0.903654 | 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 | 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 | 7 |
9f40ebf5f00ef1a383b5b10bb4bc14b10aa12a55 | 44 | py | Python | api/account/views/__init__.py | DenerRodrigues/flask-restful-api-example | 40aa0b5fcdeacf5241063953c478756c85b5811d | [
"MIT"
] | 1 | 2019-12-20T00:17:22.000Z | 2019-12-20T00:17:22.000Z | api/account/views/__init__.py | DenerRodrigues/flask-restful-api-example | 40aa0b5fcdeacf5241063953c478756c85b5811d | [
"MIT"
] | null | null | null | api/account/views/__init__.py | DenerRodrigues/flask-restful-api-example | 40aa0b5fcdeacf5241063953c478756c85b5811d | [
"MIT"
] | null | null | null | from . import user_views
from . import urls
| 14.666667 | 24 | 0.772727 | 7 | 44 | 4.714286 | 0.714286 | 0.606061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 44 | 2 | 25 | 22 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 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 | 7 |
9f9699bb7ef13f2669bae1b1afaa2cfe7953aad5 | 9,826 | py | Python | com/test/testCryptoProcessorMethods.py | MikeJohnManiatis/reddivestor | 10240639bac3d9bb72c7ab00c5226bfe691abfd8 | [
"Apache-2.0"
] | 2 | 2021-02-15T10:10:53.000Z | 2021-02-17T16:22:35.000Z | com/test/testCryptoProcessorMethods.py | MikeJohnManiatis/reddivestor | 10240639bac3d9bb72c7ab00c5226bfe691abfd8 | [
"Apache-2.0"
] | 29 | 2021-02-18T03:01:22.000Z | 2021-05-10T13:08:25.000Z | com/test/testCryptoProcessorMethods.py | MikeJohnManiatis/reddivestor | 10240639bac3d9bb72c7ab00c5226bfe691abfd8 | [
"Apache-2.0"
] | null | null | null | import unittest
from unittest.mock import MagicMock
from unittest import mock
from unittest.mock import patch
from com.src.Processor import Processor
from com.src.CryptoProcessor import CryptoProcessor
from com.src.network.ApiRequester import ApiRequester
from com.test.testUtil import *
from com.src.persist.MongoDatast... | 56.797688 | 464 | 0.620191 | 1,111 | 9,826 | 5.262826 | 0.137714 | 0.082093 | 0.095434 | 0.046178 | 0.823841 | 0.808791 | 0.791688 | 0.765179 | 0.757996 | 0.757996 | 0 | 0.006486 | 0.246896 | 9,826 | 173 | 465 | 56.797688 | 0.783649 | 0 | 0 | 0.720497 | 0 | 0.006211 | 0.150504 | 0.078763 | 0 | 0 | 0 | 0 | 0.055901 | 1 | 0.055901 | false | 0 | 0.062112 | 0 | 0.124224 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
9fa6f6a569b9477041c88714b1855abeb2b796ba | 68 | py | Python | logger/__init__.py | coolmacmaniac/pyutils | f5e4089d05159407d21de6d589c535e581dc94cc | [
"MIT"
] | null | null | null | logger/__init__.py | coolmacmaniac/pyutils | f5e4089d05159407d21de6d589c535e581dc94cc | [
"MIT"
] | null | null | null | logger/__init__.py | coolmacmaniac/pyutils | f5e4089d05159407d21de6d589c535e581dc94cc | [
"MIT"
] | null | null | null | from .log import log
from .log import logn
from .log import lognone
| 17 | 24 | 0.779412 | 12 | 68 | 4.416667 | 0.416667 | 0.396226 | 0.735849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 68 | 3 | 25 | 22.666667 | 0.946429 | 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 | 1 | 0 | 0 | 7 |
4c8ab73b755df5bec37e782511f5af8fb8198c03 | 41,639 | py | Python | google/cloud/vmmigration_v1/services/vm_migration/pagers.py | renovate-bot/python-vmmigration | 80a2cf46a21f516899da818a7aec0f2a67222047 | [
"Apache-2.0"
] | null | null | null | google/cloud/vmmigration_v1/services/vm_migration/pagers.py | renovate-bot/python-vmmigration | 80a2cf46a21f516899da818a7aec0f2a67222047 | [
"Apache-2.0"
] | 10 | 2021-11-18T10:47:48.000Z | 2022-03-07T15:48:54.000Z | google/cloud/vmmigration_v1/services/vm_migration/pagers.py | renovate-bot/python-vmmigration | 80a2cf46a21f516899da818a7aec0f2a67222047 | [
"Apache-2.0"
] | 1 | 2022-01-29T08:15:02.000Z | 2022-01-29T08:15:02.000Z | # -*- coding: utf-8 -*-
# Copyright 2022 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... | 39.505693 | 93 | 0.674392 | 4,400 | 41,639 | 6.16 | 0.05 | 0.056671 | 0.05276 | 0.057556 | 0.952553 | 0.951483 | 0.951483 | 0.951483 | 0.942333 | 0.942333 | 0 | 0.003365 | 0.24345 | 41,639 | 1,053 | 94 | 39.54321 | 0.857025 | 0.458176 | 0 | 0.803838 | 0 | 0 | 0.007879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153518 | false | 0 | 0.004264 | 0.06823 | 0.277186 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
4cac7362fb37726a88676df6e750e09ed4583216 | 141 | py | Python | capstone/django_sql_trace/__init__.py | ChefAndy/capstone | bac7c44518312c5b64462ea92ecbabdcb5d29bb6 | [
"MIT"
] | 134 | 2017-07-12T17:03:06.000Z | 2022-03-27T06:38:29.000Z | capstone/django_sql_trace/__init__.py | fakegit/capstone | 57647481de99bbe4af52b6dd5ade1954fba41a2d | [
"MIT"
] | 1,362 | 2017-06-22T17:42:49.000Z | 2022-03-31T15:28:00.000Z | capstone/django_sql_trace/__init__.py | ChefAndy/capstone | bac7c44518312c5b64462ea92ecbabdcb5d29bb6 | [
"MIT"
] | 38 | 2017-06-22T14:46:23.000Z | 2022-03-16T05:32:54.000Z | import django.db.backends.utils
from .wrapper import TracingDebugWrapper
django.db.backends.utils.CursorDebugWrapper = TracingDebugWrapper
| 23.5 | 65 | 0.858156 | 15 | 141 | 8.066667 | 0.6 | 0.132231 | 0.264463 | 0.347107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078014 | 141 | 5 | 66 | 28.2 | 0.930769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 | 7 |
98142c934244910a8e9d1b4383b03ad222fd1ffb | 18,086 | py | Python | code-metrics-dev/gerar_pipeline/tools/__init__.py | clodonil/audit-aws-pipeline | 44a41c63fc84096c2327bf6d34909dff1ca3fdab | [
"Apache-2.0"
] | null | null | null | code-metrics-dev/gerar_pipeline/tools/__init__.py | clodonil/audit-aws-pipeline | 44a41c63fc84096c2327bf6d34909dff1ca3fdab | [
"Apache-2.0"
] | null | null | null | code-metrics-dev/gerar_pipeline/tools/__init__.py | clodonil/audit-aws-pipeline | 44a41c63fc84096c2327bf6d34909dff1ca3fdab | [
"Apache-2.0"
] | null | null | null | def pipeline_success(account,execution_id,pipeline,region, pipeline_id):
tmp = "arn:aws:codepipeline:{0}:{1}:{2}".format(region, account,pipeline)
arn =[tmp]
chamada_api = []
chamada_api.append({"account": account, "region": region, "detail": {"execution-id": execution_id, "pipeline": pipeline, "re... | 334.925926 | 1,158 | 0.669855 | 2,140 | 18,086 | 5.604206 | 0.064486 | 0.069707 | 0.038522 | 0.072876 | 0.996665 | 0.996665 | 0.996665 | 0.996665 | 0.996665 | 0.996665 | 0 | 0.05795 | 0.095488 | 18,086 | 53 | 1,159 | 341.245283 | 0.675164 | 0 | 0 | 0.833333 | 0 | 0.041667 | 0.540252 | 0.032069 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
e298f742dad48d1d6c540e8526d04df0393781ff | 204 | py | Python | transquest/algo/siamese_transformers/losses/__init__.py | joaomoura1996/TransQuest | d10228616d94839c209786eda639c59b8b4a2182 | [
"Apache-2.0"
] | null | null | null | transquest/algo/siamese_transformers/losses/__init__.py | joaomoura1996/TransQuest | d10228616d94839c209786eda639c59b8b4a2182 | [
"Apache-2.0"
] | null | null | null | transquest/algo/siamese_transformers/losses/__init__.py | joaomoura1996/TransQuest | d10228616d94839c209786eda639c59b8b4a2182 | [
"Apache-2.0"
] | null | null | null | from .batch_hard_triplet_loss import *
from .cosine_similarity_loss import *
from .mse_loss import *
from .multiple_negatives_ranking_loss import *
from .softmax_loss import *
from .triplet_loss import *
| 29.142857 | 46 | 0.823529 | 29 | 204 | 5.413793 | 0.448276 | 0.382166 | 0.44586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 204 | 6 | 47 | 34 | 0.872222 | 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 | 1 | 0 | 0 | 7 |
2c3fce143c8bbc4958c89bb2355b68d1e0387322 | 18,112 | py | Python | src/costmanagement/azext_costmanagement/generated/custom.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 207 | 2017-11-29T06:59:41.000Z | 2022-03-31T10:00:53.000Z | src/costmanagement/azext_costmanagement/generated/custom.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 4,061 | 2017-10-27T23:19:56.000Z | 2022-03-31T23:18:30.000Z | src/costmanagement/azext_costmanagement/generated/custom.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 802 | 2017-10-11T17:36:26.000Z | 2022-03-31T22:24:32.000Z | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause... | 55.051672 | 115 | 0.420384 | 1,197 | 18,112 | 5.998329 | 0.092732 | 0.054318 | 0.087744 | 0.05571 | 0.865599 | 0.850139 | 0.820334 | 0.802507 | 0.800139 | 0.785376 | 0 | 0 | 0.520925 | 18,112 | 328 | 116 | 55.219512 | 0.827475 | 0.794777 | 0 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.022222 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 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 | 8 |
2cc1e779533966516e92145df0cfffbbc25cca5e | 203 | py | Python | FSMSIM/expr/expr.py | FSMSIM/FSMSIM | a3069c07aeca6e814519871f4c93a88da32c9e1d | [
"BSD-3-Clause"
] | null | null | null | FSMSIM/expr/expr.py | FSMSIM/FSMSIM | a3069c07aeca6e814519871f4c93a88da32c9e1d | [
"BSD-3-Clause"
] | null | null | null | FSMSIM/expr/expr.py | FSMSIM/FSMSIM | a3069c07aeca6e814519871f4c93a88da32c9e1d | [
"BSD-3-Clause"
] | null | null | null | class Expr:
def evaluate(self) -> str:
raise NotImplementedError()
def __str__(self) -> str:
return self.evaluate()
def __repr__(self) -> str:
return self.evaluate() | 22.555556 | 35 | 0.600985 | 22 | 203 | 5.181818 | 0.454545 | 0.184211 | 0.22807 | 0.298246 | 0.438596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280788 | 203 | 9 | 36 | 22.555556 | 0.780822 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.285714 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
e2d2d6275b0d55d2dab16ce10300f2ec64ebe29e | 3,161 | py | Python | transformer/Attention.py | sajith-rahim/attention | 5bb8abd5022dbd67300e5ecc6a5dd5edb0844983 | [
"MIT"
] | null | null | null | transformer/Attention.py | sajith-rahim/attention | 5bb8abd5022dbd67300e5ecc6a5dd5edb0844983 | [
"MIT"
] | null | null | null | transformer/Attention.py | sajith-rahim/attention | 5bb8abd5022dbd67300e5ecc6a5dd5edb0844983 | [
"MIT"
] | null | null | null | import torch.nn as nn
import torch
class Attention(nn.Module):
r"""
Scaled Dot Product Attention
"""
def __init__(self, dim, num_heads=8, qkv_bias=False, attn_dropout_rate=0.1, projection_dropout_rate=0.1):
super(Attention, self).__init__()
assert dim % num_heads == 0, "Dimension has ... | 32.255102 | 109 | 0.582727 | 485 | 3,161 | 3.651546 | 0.193814 | 0.067758 | 0.013552 | 0.020328 | 0.8131 | 0.8131 | 0.8131 | 0.774704 | 0.774704 | 0.774704 | 0 | 0.025618 | 0.283771 | 3,161 | 98 | 110 | 32.255102 | 0.756625 | 0.126542 | 0 | 0.711864 | 0 | 0 | 0.051047 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 1 | 0.067797 | false | 0 | 0.033898 | 0 | 0.169492 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
e2e27aa9b74f6d57ca6bfcf0d0eea858bf7e9a7c | 58,684 | py | Python | tests/test_index.py | sanders41/meilisearch-cli | b691be610e84640fe9877aed23131e995eb717b8 | [
"MIT"
] | 2 | 2022-03-17T02:25:05.000Z | 2022-03-30T07:32:21.000Z | tests/test_index.py | sanders41/meilisearch-cli | b691be610e84640fe9877aed23131e995eb717b8 | [
"MIT"
] | 86 | 2021-10-17T19:23:01.000Z | 2022-03-29T00:34:19.000Z | tests/test_index.py | sanders41/meilisearch-cli | b691be610e84640fe9877aed23131e995eb717b8 | [
"MIT"
] | 2 | 2021-11-09T17:58:01.000Z | 2021-12-22T00:46:35.000Z | from unittest.mock import patch
import pytest
from meilisearch.client import Client
from meilisearch.errors import MeiliSearchApiError
from meilisearch.index import Index
from requests.models import Response
from meilisearch_cli.main import app
from tests.utils import get_update_id_from_output
@pytest.mark.parametr... | 29.593545 | 100 | 0.682435 | 7,534 | 58,684 | 5.032387 | 0.021635 | 0.055705 | 0.043045 | 0.051116 | 0.947064 | 0.924724 | 0.904732 | 0.881389 | 0.875666 | 0.860526 | 0 | 0.000693 | 0.188177 | 58,684 | 1,982 | 101 | 29.608476 | 0.795134 | 0.000204 | 0 | 0.793059 | 0 | 0 | 0.154219 | 0.020027 | 0 | 0 | 0 | 0 | 0.140103 | 1 | 0.065553 | false | 0 | 0.005141 | 0 | 0.070694 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
39236c92e70fa69b82ba7bccdca25eb370890a2d | 40,034 | py | Python | awp5/api/archiveselection.py | ThomasWaldinger/py_awp5 | 10077ab81eab506bea58a67242c2d550988ec18c | [
"Apache-2.0"
] | 2 | 2019-04-10T16:46:19.000Z | 2020-08-18T21:57:59.000Z | awp5/api/archiveselection.py | ThomasWaldinger/py_awp5 | 10077ab81eab506bea58a67242c2d550988ec18c | [
"Apache-2.0"
] | null | null | null | awp5/api/archiveselection.py | ThomasWaldinger/py_awp5 | 10077ab81eab506bea58a67242c2d550988ec18c | [
"Apache-2.0"
] | null | null | null | # -------------------------------------------------------------------------
# Copyright (c) Thomas Waldinger. All rights reserved.
# Licensed under the Apache License, Version 2.0. See
# License.txt in the project root for license
# information.
# ---------------
"""
ArchiveSelection
The archive selection is used to p... | 46.714119 | 81 | 0.662162 | 4,973 | 40,034 | 5.261211 | 0.075608 | 0.032105 | 0.016511 | 0.027289 | 0.929751 | 0.915189 | 0.910526 | 0.909303 | 0.904181 | 0.890957 | 0 | 0.004981 | 0.277939 | 40,034 | 856 | 82 | 46.768692 | 0.900128 | 0.619049 | 0 | 0.770677 | 0 | 0 | 0.027296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135338 | false | 0 | 0.018797 | 0.003759 | 0.349624 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
1a51855d79e4bfe00d93ac71309327a37fc43997 | 11,679 | py | Python | src/webapi/models.py | kumagallium/labmine-api | 074e3b9a8665ce9e176da46fdd9ad91dc0734682 | [
"MIT"
] | null | null | null | src/webapi/models.py | kumagallium/labmine-api | 074e3b9a8665ce9e176da46fdd9ad91dc0734682 | [
"MIT"
] | null | null | null | src/webapi/models.py | kumagallium/labmine-api | 074e3b9a8665ce9e176da46fdd9ad91dc0734682 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from account.models import User
from django_mysql.models import JSONField, Model
class Post(models.Model):
author = models.ForeignKey(User, on_delete=models.CASCADE)
title = models.CharField(max_length=100)
content = models.TextField()
crea... | 41.268551 | 124 | 0.749979 | 1,512 | 11,679 | 5.562169 | 0.07209 | 0.057075 | 0.149822 | 0.172414 | 0.841855 | 0.813912 | 0.76956 | 0.752794 | 0.709512 | 0.695957 | 0 | 0.006313 | 0.145475 | 11,679 | 282 | 125 | 41.414894 | 0.836373 | 0.002055 | 0 | 0.542735 | 0 | 0 | 0.00781 | 0.001974 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081197 | false | 0 | 0.017094 | 0.07265 | 0.982906 | 0.017094 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 8 |
204250a0839a8e3c3f4b57793d91cd03d650cd6f | 122 | py | Python | latte/monkey_patches/frappe/desk/form/save.py | sunnyakaxd/latte | de74065122a1f858bd75f8e1a36fca3b23981f4c | [
"MIT"
] | null | null | null | latte/monkey_patches/frappe/desk/form/save.py | sunnyakaxd/latte | de74065122a1f858bd75f8e1a36fca3b23981f4c | [
"MIT"
] | null | null | null | latte/monkey_patches/frappe/desk/form/save.py | sunnyakaxd/latte | de74065122a1f858bd75f8e1a36fca3b23981f4c | [
"MIT"
] | null | null | null | import frappe.desk.form.save
from latte.overrides.desk.form.save import savedocs
frappe.desk.form.save.savedocs = savedocs | 40.666667 | 51 | 0.836066 | 19 | 122 | 5.368421 | 0.473684 | 0.235294 | 0.352941 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 122 | 3 | 52 | 40.666667 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 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 | 1 | 0 | 0 | 8 |
6488830c95aaab8cf932b8f067e7cffe7f992586 | 187 | py | Python | tests/optical_indexes_tests/optical_indexes_test.py | PyDEF2/PyDEF-2.0 | 71afd074c2a133e92fa55af214bda7d5250bc919 | [
"MIT"
] | 13 | 2018-11-01T10:52:14.000Z | 2022-03-13T06:16:58.000Z | tests/optical_indexes_tests/optical_indexes_test.py | PyDEF2/PyDEF-2.0 | 71afd074c2a133e92fa55af214bda7d5250bc919 | [
"MIT"
] | null | null | null | tests/optical_indexes_tests/optical_indexes_test.py | PyDEF2/PyDEF-2.0 | 71afd074c2a133e92fa55af214bda7d5250bc919 | [
"MIT"
] | 13 | 2018-11-07T07:32:31.000Z | 2021-03-04T04:26:16.000Z | import pydef_core.optical_indices as oi
a = oi.OpticalIndices('./tests/test_files/Optical_indexes/OUTCAR')
b = oi.OpticalIndices('./tests/test_files/Optical_indexes/OUTCAR-1')
a.plot()
| 26.714286 | 68 | 0.786096 | 28 | 187 | 5.035714 | 0.607143 | 0.22695 | 0.297872 | 0.35461 | 0.70922 | 0.70922 | 0.70922 | 0.70922 | 0 | 0 | 0 | 0.005747 | 0.069519 | 187 | 6 | 69 | 31.166667 | 0.804598 | 0 | 0 | 0 | 0 | 0 | 0.449198 | 0.449198 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
64acd0fd47a92670e2d9fb9f7ddb1b1bda8dff59 | 154 | py | Python | example/src/identity.py | SeanMabli/aiinpy | bd332fce454c489e236878c9da91bb86ec6dda14 | [
"MIT"
] | null | null | null | example/src/identity.py | SeanMabli/aiinpy | bd332fce454c489e236878c9da91bb86ec6dda14 | [
"MIT"
] | null | null | null | example/src/identity.py | SeanMabli/aiinpy | bd332fce454c489e236878c9da91bb86ec6dda14 | [
"MIT"
] | null | null | null | class identity:
def __repr__(self):
return 'identity()'
def forward(self, input):
return input
def backward(self, input):
return 1 | 17.111111 | 28 | 0.642857 | 19 | 154 | 5 | 0.526316 | 0.231579 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.253247 | 154 | 9 | 29 | 17.111111 | 0.817391 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
b38bc031b616697f68a6e4d5ec120211c01b19a0 | 184 | py | Python | brainframe_qt/ui/dialogs/license_dialog/widgets/__init__.py | aotuai/brainframe-qt | 082cfd0694e569122ff7c63e56dd0ec4b62d5bac | [
"BSD-3-Clause"
] | 17 | 2021-02-11T18:19:22.000Z | 2022-02-08T06:12:50.000Z | brainframe_qt/ui/dialogs/license_dialog/widgets/__init__.py | aotuai/brainframe-qt | 082cfd0694e569122ff7c63e56dd0ec4b62d5bac | [
"BSD-3-Clause"
] | 80 | 2021-02-11T08:27:31.000Z | 2021-10-13T21:33:22.000Z | brainframe_qt/ui/dialogs/license_dialog/widgets/__init__.py | aotuai/brainframe-qt | 082cfd0694e569122ff7c63e56dd0ec4b62d5bac | [
"BSD-3-Clause"
] | 5 | 2021-02-12T09:51:34.000Z | 2022-02-08T09:25:15.000Z | from .product_sidebar.product_widget import ProductWidget
from .product_sidebar.product_sidebar_widget import ProductSidebar
from .brainframe_license.license_terms import LicenseTerms
| 46 | 66 | 0.902174 | 22 | 184 | 7.227273 | 0.5 | 0.264151 | 0.226415 | 0.314465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 184 | 3 | 67 | 61.333333 | 0.924419 | 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 | 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 | 8 |
373e9b5f67e8a511215051688a31a910ec68742b | 181,899 | py | Python | tsfm/MolecularInformation.py | tlawrence3/bplogofuntest | 26b90eb9ec604f73e2f5df3548646906bf9f6a6d | [
"MIT"
] | null | null | null | tsfm/MolecularInformation.py | tlawrence3/bplogofuntest | 26b90eb9ec604f73e2f5df3548646906bf9f6a6d | [
"MIT"
] | 7 | 2019-01-18T03:41:16.000Z | 2019-06-29T01:56:32.000Z | tsfm/MolecularInformation.py | tlawrence3/tsfm | 26b90eb9ec604f73e2f5df3548646906bf9f6a6d | [
"MIT"
] | 2 | 2017-10-05T18:11:06.000Z | 2019-01-11T15:13:28.000Z | # -*- coding: utf-8 -*-
"""This module contains classes for calculating functional molecular information statistics.
"""
from collections import Counter, defaultdict
from multiprocessing import Pool
from operator import itemgetter
from string import Template
from ast import literal_eval as make_tuple
import os
import ... | 51.500283 | 164 | 0.534049 | 20,307 | 181,899 | 4.537302 | 0.03974 | 0.037248 | 0.020057 | 0.015629 | 0.804328 | 0.784467 | 0.758886 | 0.740251 | 0.728606 | 0.71569 | 0 | 0.012848 | 0.353048 | 181,899 | 3,531 | 165 | 51.514868 | 0.770114 | 0.098043 | 0 | 0.703676 | 0 | 0 | 0.020052 | 0.001271 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027941 | false | 0.000368 | 0.009559 | 0.001838 | 0.067279 | 0.004044 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
37911391c2944b77cf80a9e8030db9f1b5328482 | 172 | py | Python | planners/__init__.py | AlgTUDelft/AlwaysSafe | 76beccb698a07c13f3c765c52b62683ad75ba7eb | [
"MIT"
] | 10 | 2021-04-19T17:51:10.000Z | 2022-01-13T06:16:22.000Z | planners/__init__.py | AlgTUDelft/AlwaysSafe | 76beccb698a07c13f3c765c52b62683ad75ba7eb | [
"MIT"
] | null | null | null | planners/__init__.py | AlgTUDelft/AlwaysSafe | 76beccb698a07c13f3c765c52b62683ad75ba7eb | [
"MIT"
] | 1 | 2021-12-07T13:24:05.000Z | 2021-12-07T13:24:05.000Z | from .lp import LinearProgrammingPlanner
from .lp_optimistic import OptimisticLinearProgrammingPlanner
from .abs_lp_optimistic import AbsOptimisticLinearProgrammingPlanner
| 43 | 68 | 0.912791 | 15 | 172 | 10.266667 | 0.533333 | 0.077922 | 0.233766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 172 | 3 | 69 | 57.333333 | 0.9625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
8074d2dafffaa21788b92d3dd9576b71a21e8b58 | 13,857 | py | Python | pqviz/plots.py | mitre/PQViz | 229e662c408e0532df44585d134b8e79eb6c4cf8 | [
"Apache-2.0"
] | null | null | null | pqviz/plots.py | mitre/PQViz | 229e662c408e0532df44585d134b8e79eb6c4cf8 | [
"Apache-2.0"
] | null | null | null | pqviz/plots.py | mitre/PQViz | 229e662c408e0532df44585d134b8e79eb6c4cf8 | [
"Apache-2.0"
] | 1 | 2022-01-18T21:00:39.000Z | 2022-01-18T21:00:39.000Z | import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
import glob
from ipywidgets import interact, interactive, fixed, interact_manual
import ipywidgets as widgets
from pathlib import Path
import matplotlib.ticker as mticker
import os
import warnings
from textwrap import wrap
de... | 46.814189 | 139 | 0.558562 | 1,642 | 13,857 | 4.572473 | 0.132156 | 0.067395 | 0.017048 | 0.015983 | 0.919419 | 0.910362 | 0.907432 | 0.901572 | 0.89651 | 0.886787 | 0 | 0.026123 | 0.320416 | 13,857 | 295 | 140 | 46.972881 | 0.771159 | 0.22126 | 0 | 0.840637 | 0 | 0 | 0.175488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007968 | false | 0 | 0.047809 | 0 | 0.055777 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
80e84865f447fa3dac9bf6562c6553b4d52842dd | 140 | py | Python | ve/fwrisc_rv32imc/tests/pyfv-hpi/fwrisc_tests/__init__.py | Kamran-10xe/fwrisc | 5c742c60ba620944ba19741c02782fb6b45d514e | [
"Apache-2.0"
] | 10 | 2019-10-02T09:58:58.000Z | 2021-06-13T22:45:17.000Z | ve/fwrisc_rv32imc/tests/pyfv-hpi/fwrisc_tests/__init__.py | Kamran-10xe/fwrisc | 5c742c60ba620944ba19741c02782fb6b45d514e | [
"Apache-2.0"
] | 1 | 2021-12-04T06:12:19.000Z | 2022-02-18T13:20:55.000Z | ve/fwrisc_rv32imc/tests/pyfv-hpi/fwrisc_tests/__init__.py | Kamran-10xe/fwrisc | 5c742c60ba620944ba19741c02782fb6b45d514e | [
"Apache-2.0"
] | 8 | 2021-02-08T02:25:24.000Z | 2022-03-01T05:13:44.000Z |
print("Hello from fwrisc_tests")
from fwrisc_tests.instr import instr_main
from fwrisc_tests.riscv_compliance import riscv_compliance_main | 28 | 63 | 0.871429 | 21 | 140 | 5.47619 | 0.47619 | 0.26087 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 140 | 5 | 63 | 28 | 0.898438 | 0 | 0 | 0 | 0 | 0 | 0.164286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0.333333 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
0386e491e453d00e3a43e58aa5f976e4f825110d | 1,065 | py | Python | tests/test_search/test_search_shapes_without_search_doc.py | newmediaresearch/vidispine-adapter | 95d5b1956c3767ff9ff0626048f52628d5322cab | [
"MIT"
] | null | null | null | tests/test_search/test_search_shapes_without_search_doc.py | newmediaresearch/vidispine-adapter | 95d5b1956c3767ff9ff0626048f52628d5322cab | [
"MIT"
] | 1 | 2021-03-16T11:02:59.000Z | 2021-03-16T11:02:59.000Z | tests/test_search/test_search_shapes_without_search_doc.py | newmediaresearch/vidispine-adapter | 95d5b1956c3767ff9ff0626048f52628d5322cab | [
"MIT"
] | null | null | null | def test_search_shape(vidispine, cassette, item):
result = vidispine.search.shape()
assert 'id' in result['shape'][0]
assert result['shape'][0]['item'][0]['id'] == item
assert cassette.all_played
def test_search_shape_with_params(vidispine, cassette, item):
result = vidispine.search.shape(params=... | 30.428571 | 79 | 0.675117 | 142 | 1,065 | 4.894366 | 0.169014 | 0.126619 | 0.13813 | 0.103597 | 0.903597 | 0.903597 | 0.903597 | 0.835971 | 0.835971 | 0.742446 | 0 | 0.018889 | 0.15493 | 1,065 | 34 | 80 | 31.323529 | 0.753333 | 0 | 0 | 0.545455 | 0 | 0 | 0.111737 | 0 | 0 | 0 | 0 | 0 | 0.545455 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
03ddcfe63e8c1da792f2667611fd793ce818101c | 174 | py | Python | app/utils.py | techouse/nordend | 9129c5dc75f338ba0b4fc6c6a8b6bfdc334264d4 | [
"MIT"
] | null | null | null | app/utils.py | techouse/nordend | 9129c5dc75f338ba0b4fc6c6a8b6bfdc334264d4 | [
"MIT"
] | 1 | 2020-03-03T07:58:56.000Z | 2020-03-03T07:58:56.000Z | app/utils.py | techouse/nordend | 9129c5dc75f338ba0b4fc6c6a8b6bfdc334264d4 | [
"MIT"
] | null | null | null | from urllib.parse import urljoin, quote_plus
def multi_urljoin(*parts):
return urljoin(parts[0], "/".join(quote_plus(part.strip("/"), safe="/") for part in parts[1:]))
| 29 | 99 | 0.689655 | 26 | 174 | 4.5 | 0.730769 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013072 | 0.12069 | 174 | 5 | 100 | 34.8 | 0.751634 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 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 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
03f9fd7426ccfa9b432865e4104b5f5f60e93d50 | 3,002 | py | Python | tests/setup.py | dkudeki/BookwormDB | dcb3dab8eab07b9cff283a85a37a1a57428d1126 | [
"MIT"
] | 73 | 2015-01-14T06:28:48.000Z | 2022-01-21T18:56:05.000Z | tests/setup.py | dkudeki/BookwormDB | dcb3dab8eab07b9cff283a85a37a1a57428d1126 | [
"MIT"
] | 96 | 2015-01-19T16:47:03.000Z | 2021-09-10T15:28:59.000Z | tests/setup.py | dkudeki/BookwormDB | dcb3dab8eab07b9cff283a85a37a1a57428d1126 | [
"MIT"
] | 13 | 2015-01-19T16:05:13.000Z | 2021-08-16T18:08:10.000Z | from __future__ import print_function
import bookwormDB
import bookwormDB.CreateDatabase
from bookwormDB.general_API import SQLAPIcall as SQLAPIcall
import logging
import os
from subprocess import call as call
import sys
import json
from shutil import rmtree
def setup_bookworm():
"""
Creates a test bookworm. R... | 32.27957 | 122 | 0.666556 | 360 | 3,002 | 5.433333 | 0.302778 | 0.055215 | 0.01636 | 0.02454 | 0.810838 | 0.810838 | 0.810838 | 0.803681 | 0.803681 | 0.749489 | 0 | 0.007061 | 0.24517 | 3,002 | 92 | 123 | 32.630435 | 0.856134 | 0.056962 | 0 | 0.609375 | 0 | 0 | 0.276555 | 0.037852 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.0625 | 0.25 | 0 | 0.28125 | 0.0625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
206a74c2f87f04c18f5e20a54506851dcf2d501b | 167 | py | Python | async_stripe/api_resources/issuing/__init__.py | bhch/async-stripe | 75d934a8bb242f664e7be30812c12335cf885287 | [
"MIT",
"BSD-3-Clause"
] | 8 | 2021-05-29T08:57:58.000Z | 2022-02-19T07:09:25.000Z | async_stripe/api_resources/issuing/__init__.py | bhch/async-stripe | 75d934a8bb242f664e7be30812c12335cf885287 | [
"MIT",
"BSD-3-Clause"
] | 5 | 2021-05-31T10:18:36.000Z | 2022-01-25T11:39:03.000Z | async_stripe/api_resources/issuing/__init__.py | bhch/async-stripe | 75d934a8bb242f664e7be30812c12335cf885287 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-05-29T13:27:10.000Z | 2021-05-29T13:27:10.000Z | from async_stripe.api_resources.issuing import authorization
from async_stripe.api_resources.issuing import card
from async_stripe.api_resources.issuing import dispute | 55.666667 | 60 | 0.898204 | 24 | 167 | 6 | 0.416667 | 0.1875 | 0.3125 | 0.375 | 0.833333 | 0.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.065868 | 167 | 3 | 61 | 55.666667 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 9 |
456de17d218efe2b7f0bc35c4ad4fb21bf4032d8 | 3,793 | py | Python | tests/crystal/SimulationCell/test_SimulationCell0.py | eragasa/mexm-base | c8d84057c483e1bd06bb8b2e835274f6a4cd61b9 | [
"MIT"
] | 1 | 2021-01-03T21:30:47.000Z | 2021-01-03T21:30:47.000Z | tests/crystal/SimulationCell/test_SimulationCell0.py | eragasa/mexm-base | c8d84057c483e1bd06bb8b2e835274f6a4cd61b9 | [
"MIT"
] | null | null | null | tests/crystal/SimulationCell/test_SimulationCell0.py | eragasa/mexm-base | c8d84057c483e1bd06bb8b2e835274f6a4cd61b9 | [
"MIT"
] | null | null | null | import pytest
import numpy as np
from mexm.crystal import Atom
from mexm.crystal import Lattice
from simulationcell import SimulationCell
def test__init__noargs():
cell = SimulationCell()
assert isinstance(cell.lattice, Lattice)
# testing properties
assert isinstance(cell.H, np.ndarray)
np.testi... | 31.87395 | 61 | 0.532296 | 555 | 3,793 | 3.434234 | 0.091892 | 0.102833 | 0.196747 | 0.262329 | 0.789612 | 0.779119 | 0.758132 | 0.735047 | 0.735047 | 0.735047 | 0 | 0.076455 | 0.306881 | 3,793 | 118 | 62 | 32.144068 | 0.648536 | 0.004746 | 0 | 0.638298 | 0 | 0 | 0.00212 | 0 | 0 | 0 | 0 | 0 | 0.340426 | 1 | 0.095745 | false | 0 | 0.053191 | 0 | 0.148936 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 7 |
4584a48b6628705110851e08974e633e5e46d84a | 1,140 | py | Python | server/ca/models.py | knaou/mysign | 83a2748f2e3a69bc8741bc6a4ee2bb508a8aadba | [
"MIT"
] | null | null | null | server/ca/models.py | knaou/mysign | 83a2748f2e3a69bc8741bc6a4ee2bb508a8aadba | [
"MIT"
] | 5 | 2020-07-16T20:00:26.000Z | 2021-10-05T20:29:21.000Z | server/ca/models.py | knaou/mysign | 83a2748f2e3a69bc8741bc6a4ee2bb508a8aadba | [
"MIT"
] | null | null | null | from django.db import models
class CertificateAuthority(models.Model):
name = models.CharField(max_length=255, null=False)
description = models.TextField(null=False, blank=True, default='')
next_serial = models.IntegerField(null=False)
key_pem = models.TextField(null=False)
csr_pem = models.TextFi... | 40.714286 | 122 | 0.750877 | 141 | 1,140 | 5.900709 | 0.319149 | 0.129808 | 0.182692 | 0.230769 | 0.723558 | 0.723558 | 0.723558 | 0.723558 | 0.723558 | 0.723558 | 0 | 0.00611 | 0.138596 | 1,140 | 27 | 123 | 42.222222 | 0.841141 | 0 | 0 | 0.636364 | 0 | 0 | 0.034211 | 0.018421 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.954545 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 8 |
45e1e7c510760c75b1bf6ce5886ce13a5e951a43 | 137 | py | Python | tests/project/manage.py | Zadigo/zacoby | 468168e416603e00ef1541990843fd7e841f0ff2 | [
"MIT"
] | 1 | 2021-02-25T03:26:52.000Z | 2021-02-25T03:26:52.000Z | tests/project/manage.py | Zadigo/zacoby | 468168e416603e00ef1541990843fd7e841f0ff2 | [
"MIT"
] | null | null | null | tests/project/manage.py | Zadigo/zacoby | 468168e416603e00ef1541990843fd7e841f0ff2 | [
"MIT"
] | null | null | null | #! bin/bash
import sys
import os
def execute_command_inline():
os.eviron.setdefault('ZACOBY_PROJECT_SETTINGS', 'project.settings')
| 17.125 | 71 | 0.766423 | 18 | 137 | 5.611111 | 0.777778 | 0.29703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116788 | 137 | 7 | 72 | 19.571429 | 0.834711 | 0.072993 | 0 | 0 | 0 | 0 | 0.309524 | 0.18254 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 7 |
afe5a583bb668635916096efefc0048e4f487138 | 135 | py | Python | src/chase_the_pair.py | AlbertSuarez/hackeps-chasethepair | 15b2e3fad1601baa7ada4f2e50f704646ffb9f39 | [
"MIT"
] | null | null | null | src/chase_the_pair.py | AlbertSuarez/hackeps-chasethepair | 15b2e3fad1601baa7ada4f2e50f704646ffb9f39 | [
"MIT"
] | null | null | null | src/chase_the_pair.py | AlbertSuarez/hackeps-chasethepair | 15b2e3fad1601baa7ada4f2e50f704646ffb9f39 | [
"MIT"
] | 1 | 2019-10-29T18:14:23.000Z | 2019-10-29T18:14:23.000Z | def solve(set_a, set_b, to_chase):
return min(set_a, key=lambda x: abs(x - to_chase)), min(set_b, key=lambda x: abs(x - to_chase))
| 45 | 99 | 0.681481 | 29 | 135 | 2.931034 | 0.448276 | 0.247059 | 0.235294 | 0.305882 | 0.494118 | 0.494118 | 0.494118 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 135 | 2 | 100 | 67.5 | 0.745614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
b34b28a64b36f43f024e790478b48693eec20219 | 23,707 | py | Python | arduino_iot_rest/api/devices_v2_pass_api.py | arduino/iot-client-py | 0f17200aa0939b960ba1ddff146cca46643ee268 | [
"Apache-2.0"
] | 13 | 2020-01-19T10:54:35.000Z | 2022-02-27T22:43:21.000Z | arduino_iot_rest/api/devices_v2_pass_api.py | arduino/iot-client-py | 0f17200aa0939b960ba1ddff146cca46643ee268 | [
"Apache-2.0"
] | 10 | 2019-11-26T04:39:32.000Z | 2021-03-25T07:46:39.000Z | arduino_iot_rest/api/devices_v2_pass_api.py | arduino/iot-client-py | 0f17200aa0939b960ba1ddff146cca46643ee268 | [
"Apache-2.0"
] | 10 | 2020-01-19T10:54:42.000Z | 2021-12-09T05:46:20.000Z | # coding: utf-8
"""
Arduino IoT Cloud API
Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/ard... | 45.15619 | 434 | 0.597503 | 2,719 | 23,707 | 4.947407 | 0.079441 | 0.043414 | 0.061404 | 0.026762 | 0.924844 | 0.910497 | 0.906259 | 0.899792 | 0.882471 | 0.875483 | 0 | 0.020299 | 0.328806 | 23,707 | 524 | 435 | 45.242366 | 0.825101 | 0.451175 | 0 | 0.705645 | 0 | 0 | 0.181834 | 0.066137 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03629 | false | 0.169355 | 0.020161 | 0 | 0.092742 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
b374c27c50014e5ec53b549578c6e4cf909f7002 | 168 | py | Python | acdc_nn/__init__.py | compbiomed-unito/acdc-nn | 0800a5904c36302f19e48e2d2f7ddae9686f3366 | [
"MIT"
] | 2 | 2021-07-13T21:41:39.000Z | 2022-01-27T23:51:10.000Z | acdc_nn/__init__.py | compbiomed-unito/acdc-nn | 0800a5904c36302f19e48e2d2f7ddae9686f3366 | [
"MIT"
] | 1 | 2021-09-15T15:53:39.000Z | 2021-09-15T15:53:39.000Z | acdc_nn/__init__.py | compbiomed-unito/acdc-nn | 0800a5904c36302f19e48e2d2f7ddae9686f3366 | [
"MIT"
] | 4 | 2021-07-13T21:41:40.000Z | 2022-01-27T16:41:49.000Z | #from acdc_nn.cmd import main
#from acdc_nn import nn
from acdc_nn import nn
from acdc_nn import util
from acdc_nn.acdc_nn import ACDC3D, ACDCSeq, load_prot, run_tests
| 28 | 65 | 0.821429 | 33 | 168 | 3.939394 | 0.393939 | 0.276923 | 0.384615 | 0.369231 | 0.4 | 0.4 | 0.4 | 0.4 | 0.4 | 0 | 0 | 0.006897 | 0.136905 | 168 | 5 | 66 | 33.6 | 0.889655 | 0.297619 | 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 | 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 | 7 |
2fcdca86944ffd2d43f5d30098891e0eb527b9b6 | 114 | py | Python | 8_kyu/Geometry_Basics_Distance_between_points_in_2D.py | UlrichBerntien/Codewars-Katas | bbd025e67aa352d313564d3862db19fffa39f552 | [
"MIT"
] | null | null | null | 8_kyu/Geometry_Basics_Distance_between_points_in_2D.py | UlrichBerntien/Codewars-Katas | bbd025e67aa352d313564d3862db19fffa39f552 | [
"MIT"
] | null | null | null | 8_kyu/Geometry_Basics_Distance_between_points_in_2D.py | UlrichBerntien/Codewars-Katas | bbd025e67aa352d313564d3862db19fffa39f552 | [
"MIT"
] | null | null | null | import math
def distance_between_points(a, b):
return math.sqrt( math.pow(a.x-b.x,2) + math.pow(a.y-b.y,2) )
| 22.8 | 65 | 0.666667 | 25 | 114 | 2.96 | 0.56 | 0.189189 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.140351 | 114 | 4 | 66 | 28.5 | 0.734694 | 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 | 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 | 1 | 1 | 1 | 0 | 0 | 7 |
ff973b1e264a5504622891222a1f7609e0232cb1 | 11,307 | py | Python | ansible-devel/test/units/utils/test_plugin_docs.py | satishcarya/ansible | ed091e174c26316f621ac16344a95c99f56bdc43 | [
"MIT"
] | null | null | null | ansible-devel/test/units/utils/test_plugin_docs.py | satishcarya/ansible | ed091e174c26316f621ac16344a95c99f56bdc43 | [
"MIT"
] | null | null | null | ansible-devel/test/units/utils/test_plugin_docs.py | satishcarya/ansible | ed091e174c26316f621ac16344a95c99f56bdc43 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# (c) 2020 Felix Fontein <felix@fontein.de>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import copy
import pytest
from ansible.utils.plugin_docs import (
... | 33.853293 | 92 | 0.283187 | 711 | 11,307 | 4.340366 | 0.144866 | 0.151653 | 0.117952 | 0.069994 | 0.850292 | 0.841542 | 0.799741 | 0.767984 | 0.765716 | 0.701879 | 0 | 0.045817 | 0.600425 | 11,307 | 333 | 93 | 33.954955 | 0.637229 | 0.072521 | 0 | 0.633987 | 0 | 0 | 0.215555 | 0.036404 | 0 | 0 | 0 | 0 | 0.003268 | 1 | 0.003268 | false | 0 | 0.013072 | 0 | 0.01634 | 0.003268 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
ff9766ad1f0f0c936b0e4d25ba731dbea75eaecd | 164 | py | Python | tests/test_old_imports.py | Tapot/evidently | ab9b91425d622566b663565508dd1c43e741f515 | [
"Apache-2.0"
] | null | null | null | tests/test_old_imports.py | Tapot/evidently | ab9b91425d622566b663565508dd1c43e741f515 | [
"Apache-2.0"
] | null | null | null | tests/test_old_imports.py | Tapot/evidently | ab9b91425d622566b663565508dd1c43e741f515 | [
"Apache-2.0"
] | null | null | null | from evidently.widgets import * # noqa
from evidently.tabs import * # noqa
from evidently.profile_sections import * # noqa
def test_old_style_imports():
pass
| 20.5 | 47 | 0.762195 | 22 | 164 | 5.5 | 0.636364 | 0.322314 | 0.231405 | 0.380165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164634 | 164 | 7 | 48 | 23.428571 | 0.883212 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0.2 | 0.8 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 8 |
ffbb0ea6656098781582e079b3b18de6c0a75cd0 | 124 | py | Python | build/lib/pyEp/__init__.py | mlab-upenn/pyEp | 14435158bba4c11df43dfac6b662e81d7d0029b9 | [
"MIT"
] | 11 | 2018-06-20T16:09:50.000Z | 2021-06-28T18:48:01.000Z | build/lib/pyEp/__init__.py | mlab-upenn/pyEp | 14435158bba4c11df43dfac6b662e81d7d0029b9 | [
"MIT"
] | 4 | 2018-05-09T18:14:52.000Z | 2018-08-21T13:59:52.000Z | pyEp/__init__.py | mlab-upenn/pyEp | 14435158bba4c11df43dfac6b662e81d7d0029b9 | [
"MIT"
] | 2 | 2020-02-16T07:52:45.000Z | 2021-09-19T05:19:41.000Z | from .pyEp import ep_process
from .pyEp import set_eplus_dir
from .pyEp import socket_builder
from .pyEp.pyEpError import *
| 24.8 | 32 | 0.822581 | 20 | 124 | 4.9 | 0.55 | 0.326531 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 124 | 4 | 33 | 31 | 0.907407 | 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 | 1 | 0 | 0 | 7 |
4415890ad1ccb925c42d80066b7de3566fdd972b | 86 | py | Python | Release/Tests/AnalysisTest/Python.VS.TestData/Grammar/DelStmt.py | rsumner33/PTVS | f5d67cff8c7bb32992dd4f77c0dfddaca6071250 | [
"Apache-2.0"
] | null | null | null | Release/Tests/AnalysisTest/Python.VS.TestData/Grammar/DelStmt.py | rsumner33/PTVS | f5d67cff8c7bb32992dd4f77c0dfddaca6071250 | [
"Apache-2.0"
] | null | null | null | Release/Tests/AnalysisTest/Python.VS.TestData/Grammar/DelStmt.py | rsumner33/PTVS | f5d67cff8c7bb32992dd4f77c0dfddaca6071250 | [
"Apache-2.0"
] | 1 | 2020-12-09T10:16:23.000Z | 2020-12-09T10:16:23.000Z | del foo
del foo, bar
del foo.bar
del foo[bar]
del (foo, bar)
del [foo, bar]
del (foo) | 12.285714 | 14 | 0.662791 | 20 | 86 | 2.9 | 0.2 | 0.724138 | 0.775862 | 1.034483 | 0.87931 | 0.87931 | 0.87931 | 0.87931 | 0.87931 | 0.87931 | 0 | 0 | 0.186047 | 86 | 7 | 15 | 12.285714 | 0.814286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
92b1cfe3dfddbb420f891cba76e5b630965f350d | 131 | py | Python | galera_node_health/examples.py | breakgard/galera-node-health | a26913c389740918d528829925b796dddd30f0f1 | [
"MIT"
] | 1 | 2019-10-22T12:29:53.000Z | 2019-10-22T12:29:53.000Z | galera_node_health/examples.py | breakgard/galera-node-health | a26913c389740918d528829925b796dddd30f0f1 | [
"MIT"
] | null | null | null | galera_node_health/examples.py | breakgard/galera-node-health | a26913c389740918d528829925b796dddd30f0f1 | [
"MIT"
] | null | null | null | import pkgutil
def print_config():
print(pkgutil.get_data('galera_node_health', 'example_files/config.cfg').decode('ascii'))
| 21.833333 | 93 | 0.755725 | 18 | 131 | 5.222222 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091603 | 131 | 5 | 94 | 26.2 | 0.789916 | 0 | 0 | 0 | 0 | 0 | 0.358779 | 0.183206 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0.666667 | 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 | 1 | 0 | 7 |
2bf9c417510015e800891c5b2d93ea0d6bd47f66 | 41,849 | py | Python | web/transiq/restapi/tests/tests_user_initial_data.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | null | null | null | web/transiq/restapi/tests/tests_user_initial_data.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | 14 | 2020-06-05T23:06:45.000Z | 2022-03-12T00:00:18.000Z | web/transiq/restapi/tests/tests_user_initial_data.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | null | null | null | import json
from model_mommy import mommy
from rest_framework.test import APITestCase
from django.urls import reverse
from rest_framework import status
from django.contrib.auth.models import User, Group
from broker.models import Broker
from employee.models import Employee
from restapi.models import UserCategory, Empl... | 44.097998 | 175 | 0.658582 | 4,910 | 41,849 | 5.447047 | 0.037271 | 0.059226 | 0.061694 | 0.034997 | 0.967471 | 0.960142 | 0.959843 | 0.959843 | 0.959843 | 0.959843 | 0 | 0.038971 | 0.245812 | 41,849 | 948 | 176 | 44.144515 | 0.808409 | 0.089417 | 0 | 0.907162 | 0 | 0 | 0.163472 | 0.0823 | 0 | 0 | 0 | 0 | 0.244032 | 1 | 0.122016 | false | 0.06366 | 0.029178 | 0 | 0.161804 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
a609b36e7e2cb1b8111292b039855b60df1e44f2 | 7,452 | py | Python | scripts/geodyn1d/library.py | tth030/SM_ESR_isostasy | fbd2ac586e8e31dd18a0988181514bc2fff7f08a | [
"MIT"
] | null | null | null | scripts/geodyn1d/library.py | tth030/SM_ESR_isostasy | fbd2ac586e8e31dd18a0988181514bc2fff7f08a | [
"MIT"
] | null | null | null | scripts/geodyn1d/library.py | tth030/SM_ESR_isostasy | fbd2ac586e8e31dd18a0988181514bc2fff7f08a | [
"MIT"
] | null | null | null |
#
# lithospheres
#
# =============================================================================
lith200 = {
"numlayers": 7,
"nature_layers": ['matUC','matMC','matLC','matLM1','matLM2','matLM3','matSLM'],
"thicknesses": [15e3,10e3,10e3,45e3,45e3,75e3,400e3],
"thermalBc": ['thermBcUC','thermBcMC','thermBcLC','therm... | 23.214953 | 103 | 0.44109 | 690 | 7,452 | 4.67971 | 0.136232 | 0.058532 | 0.018582 | 0.022298 | 0.839269 | 0.813565 | 0.783524 | 0.763085 | 0.754413 | 0.754413 | 0 | 0.146302 | 0.254294 | 7,452 | 320 | 104 | 23.2875 | 0.434767 | 0.10628 | 0 | 0.61512 | 0 | 0 | 0.348337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a64372894f95c010eb427479e9893be3e5d6df52 | 3,335 | py | Python | augur/metrics/contributor/test_contributor_routes.py | computationalmystic/sengfs19-group3 | 6d636ce8ab1a50ce80f529d0130ae1a0b69c04d2 | [
"MIT"
] | null | null | null | augur/metrics/contributor/test_contributor_routes.py | computationalmystic/sengfs19-group3 | 6d636ce8ab1a50ce80f529d0130ae1a0b69c04d2 | [
"MIT"
] | null | null | null | augur/metrics/contributor/test_contributor_routes.py | computationalmystic/sengfs19-group3 | 6d636ce8ab1a50ce80f529d0130ae1a0b69c04d2 | [
"MIT"
] | 1 | 2019-11-08T21:26:42.000Z | 2019-11-08T21:26:42.000Z | import requests
import pytest
@pytest.fixture(scope="session")
def metrics():
pass
def test_contributors_by_group(metrics):
response = requests.get('http://localhost:5000/api/unstable/repo-groups/20/contributors')
data = response.json()
assert response.status_code == 200
assert len(data) >= 1
... | 34.739583 | 116 | 0.712744 | 447 | 3,335 | 5.187919 | 0.123043 | 0.036223 | 0.119017 | 0.134541 | 0.883139 | 0.883139 | 0.864166 | 0.85856 | 0.85856 | 0.85856 | 0 | 0.079637 | 0.141529 | 3,335 | 95 | 117 | 35.105263 | 0.730353 | 0 | 0 | 0.623377 | 0 | 0.12987 | 0.274963 | 0 | 0 | 0 | 0 | 0 | 0.38961 | 0 | null | null | 0.012987 | 0.025974 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a670947e4cf44c409c8ad5623b422d853b43fc91 | 6,419 | py | Python | tests/test_crop_production.py | hkotaro1215/invest | 1ba08bd746977bfa8a4600ad8c821fc43598c421 | [
"BSD-3-Clause"
] | null | null | null | tests/test_crop_production.py | hkotaro1215/invest | 1ba08bd746977bfa8a4600ad8c821fc43598c421 | [
"BSD-3-Clause"
] | null | null | null | tests/test_crop_production.py | hkotaro1215/invest | 1ba08bd746977bfa8a4600ad8c821fc43598c421 | [
"BSD-3-Clause"
] | null | null | null | """Module for Regression Testing the InVEST Crop Production models."""
import unittest
import tempfile
import shutil
import os
import numpy
import pygeoprocessing.testing
from pygeoprocessing.testing import scm
MODEL_DATA_PATH = os.path.join(
os.path.dirname(__file__), '..', 'data', 'invest-data',
... | 42.230263 | 76 | 0.639352 | 724 | 6,419 | 5.274862 | 0.149171 | 0.071223 | 0.054988 | 0.076984 | 0.832941 | 0.815135 | 0.793663 | 0.776381 | 0.776381 | 0.776381 | 0 | 0.004238 | 0.264839 | 6,419 | 151 | 77 | 42.509934 | 0.805043 | 0.084125 | 0 | 0.743802 | 0 | 0 | 0.256419 | 0.164263 | 0 | 0 | 0 | 0 | 0.033058 | 1 | 0.049587 | false | 0 | 0.090909 | 0 | 0.14876 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
a6bd80b2215d0a98aa561a8e953075ada1458e09 | 54,327 | py | Python | stubs/s3.py | claytonbrown/troposphere | bf0f1e48b14f578de0221d50f711467ad716ca87 | [
"BSD-2-Clause"
] | null | null | null | stubs/s3.py | claytonbrown/troposphere | bf0f1e48b14f578de0221d50f711467ad716ca87 | [
"BSD-2-Clause"
] | null | null | null | stubs/s3.py | claytonbrown/troposphere | bf0f1e48b14f578de0221d50f711467ad716ca87 | [
"BSD-2-Clause"
] | null | null | null | from . import AWSObject, AWSProperty
from .validators import *
from .constants import *
# -------------------------------------------
class S3ReplicationConfiguration(AWSProperty):
"""# ReplicationConfiguration - CloudFormationResourceSpecification version: 1.4.0
{
"Documentation": "http://docs.aws.amazo... | 59.244275 | 303 | 0.678871 | 4,790 | 54,327 | 7.698121 | 0.03382 | 0.056625 | 0.053398 | 0.082524 | 0.874166 | 0.871481 | 0.838965 | 0.813609 | 0.808185 | 0.804822 | 0 | 0.010057 | 0.15992 | 54,327 | 916 | 304 | 59.308952 | 0.797892 | 0.642204 | 0 | 0.159236 | 0 | 0.490446 | 0.7325 | 0.014103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019108 | 0 | 0.350318 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
a6bdae24de834b6efe61c0b9ee65a34c5ce35ff7 | 22,780 | py | Python | sdk/python/pulumi_azure/synapse/sql_pool_vulnerability_assessment_baseline.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/synapse/sql_pool_vulnerability_assessment_baseline.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/synapse/sql_pool_vulnerability_assessment_baseline.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 52.853828 | 334 | 0.697717 | 2,330 | 22,780 | 6.534764 | 0.10515 | 0.0354 | 0.08538 | 0.12807 | 0.852752 | 0.840996 | 0.834297 | 0.823 | 0.810062 | 0.805399 | 0 | 0.005801 | 0.2205 | 22,780 | 430 | 335 | 52.976744 | 0.851664 | 0.499517 | 0 | 0.638418 | 1 | 0 | 0.164625 | 0.119514 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152542 | false | 0.00565 | 0.039548 | 0 | 0.282486 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
47017f157cf3ac5f7a3398e0f52a084d702c3645 | 8,922 | py | Python | opac/tests/test_interface_TOC.py | joffilyfe/opac | f852df96f31ecbedb037631f44f227d58f029b80 | [
"BSD-2-Clause"
] | 1 | 2019-10-07T00:25:39.000Z | 2019-10-07T00:25:39.000Z | opac/tests/test_interface_TOC.py | joffilyfe/opac | f852df96f31ecbedb037631f44f227d58f029b80 | [
"BSD-2-Clause"
] | null | null | null | opac/tests/test_interface_TOC.py | joffilyfe/opac | f852df96f31ecbedb037631f44f227d58f029b80 | [
"BSD-2-Clause"
] | null | null | null | # coding: utf-8
import flask
from flask import url_for
from .base import BaseTestCase
from . import utils
class TOCTestCase(BaseTestCase):
# TOC
def test_the_title_of_the_article_list_when_language_pt(self):
"""
Teste para verificar se a interface do TOC esta retornando o título no
... | 34.315385 | 92 | 0.556153 | 926 | 8,922 | 5.170626 | 0.116631 | 0.063492 | 0.025063 | 0.042398 | 0.939014 | 0.933584 | 0.933584 | 0.933584 | 0.933584 | 0.933584 | 0 | 0.004425 | 0.341403 | 8,922 | 259 | 93 | 34.447876 | 0.810415 | 0.116566 | 0 | 0.81761 | 0 | 0 | 0.165495 | 0 | 0 | 0 | 0 | 0 | 0.119497 | 1 | 0.037736 | false | 0 | 0.025157 | 0 | 0.069182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
5b376a33e3fddd9dae05b462dc83f752be94f9e5 | 51 | py | Python | sample/__init__.py | lshang0311/python-sample-project | 10270699d10e6f04b7c4400574cb005c2ce00f6a | [
"BSD-2-Clause"
] | null | null | null | sample/__init__.py | lshang0311/python-sample-project | 10270699d10e6f04b7c4400574cb005c2ce00f6a | [
"BSD-2-Clause"
] | null | null | null | sample/__init__.py | lshang0311/python-sample-project | 10270699d10e6f04b7c4400574cb005c2ce00f6a | [
"BSD-2-Clause"
] | null | null | null | from .core import hmm
from .core import simple_sum
| 17 | 28 | 0.803922 | 9 | 51 | 4.444444 | 0.666667 | 0.4 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 51 | 2 | 29 | 25.5 | 0.930233 | 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 | 1 | 0 | 0 | 7 |
5b750f323a23631f89ff45ff4e581312e6e96300 | 209 | py | Python | lumin/optimisation/__init__.py | choisant/lumin | c039136eb096e8f3800f13925f9325b99cf7e76b | [
"Apache-2.0"
] | 43 | 2019-02-11T16:16:42.000Z | 2021-12-13T15:35:20.000Z | lumin/optimisation/__init__.py | choisant/lumin | c039136eb096e8f3800f13925f9325b99cf7e76b | [
"Apache-2.0"
] | 48 | 2020-05-21T02:40:50.000Z | 2021-08-10T11:07:08.000Z | lumin/optimisation/__init__.py | choisant/lumin | c039136eb096e8f3800f13925f9325b99cf7e76b | [
"Apache-2.0"
] | 14 | 2019-05-02T15:09:41.000Z | 2022-01-12T21:13:34.000Z | # from .features import * # noqa F304
# from .hyper_param import * # noqa F304
# from .threshold import * # noqa F304
# __all__ = [*features.__all__, *hyper_param.__all__, *threshold.__all__] # noqa F405
| 34.833333 | 86 | 0.698565 | 26 | 209 | 4.923077 | 0.384615 | 0.234375 | 0.328125 | 0.28125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 0.181818 | 209 | 5 | 87 | 41.8 | 0.678363 | 0.933014 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5bb10a6f002de7790ec61b8b98eed9be29902a77 | 13,534 | py | Python | models/utils.py | shuaiqi361/a-PyTorch-Tutorial-to-Object-Detection | 5706b82ff67911864967aa72adf7e4a994c7ec89 | [
"MIT"
] | null | null | null | models/utils.py | shuaiqi361/a-PyTorch-Tutorial-to-Object-Detection | 5706b82ff67911864967aa72adf7e4a994c7ec89 | [
"MIT"
] | null | null | null | models/utils.py | shuaiqi361/a-PyTorch-Tutorial-to-Object-Detection | 5706b82ff67911864967aa72adf7e4a994c7ec89 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from dataset.transforms import *
import torch.nn.functional as F
from torchvision.ops import nms
def conv3x3(in_planes, out_planes, stride=1):
"""
3x3 convolution with padding, default stride 1, shape unchanged
"""
return nn.Conv2d(in_planes, out_planes, kernel_size=... | 42.559748 | 127 | 0.641052 | 1,819 | 13,534 | 4.534909 | 0.118747 | 0.034671 | 0.020487 | 0.019639 | 0.898533 | 0.891381 | 0.871984 | 0.852346 | 0.836829 | 0.836829 | 0 | 0.019351 | 0.266883 | 13,534 | 317 | 128 | 42.694006 | 0.812034 | 0.256982 | 0 | 0.837563 | 0 | 0 | 0.009102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035533 | false | 0 | 0.025381 | 0 | 0.106599 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
5be24ad411bcfc5d0513f8008febdf21195cf1bf | 76 | py | Python | scripts/help_funcs.py | Vokda/master_thesis | 7fee16ec31c2b10592cbb525b643d241bc526165 | [
"MIT"
] | null | null | null | scripts/help_funcs.py | Vokda/master_thesis | 7fee16ec31c2b10592cbb525b643d241bc526165 | [
"MIT"
] | null | null | null | scripts/help_funcs.py | Vokda/master_thesis | 7fee16ec31c2b10592cbb525b643d241bc526165 | [
"MIT"
] | null | null | null | import numpy as np
def sum_mean(data):
return sum(data), np.mean(data)
| 15.2 | 35 | 0.697368 | 14 | 76 | 3.714286 | 0.642857 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 76 | 4 | 36 | 19 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
5bf0e7ee7ab263b70a1e674d089af0f483404847 | 5,113 | py | Python | tests/alerters/gitter_test.py | vbisserie/elastalert2 | 982115f0de055595fa452c425b6a15bedc3161cf | [
"Apache-2.0"
] | null | null | null | tests/alerters/gitter_test.py | vbisserie/elastalert2 | 982115f0de055595fa452c425b6a15bedc3161cf | [
"Apache-2.0"
] | null | null | null | tests/alerters/gitter_test.py | vbisserie/elastalert2 | 982115f0de055595fa452c425b6a15bedc3161cf | [
"Apache-2.0"
] | null | null | null | import json
import mock
import pytest
from requests import RequestException
from elastalert.alerters.gitter import GitterAlerter
from elastalert.loaders import FileRulesLoader
from elastalert.util import EAException
def test_gitter_msg_level_default():
rule = {
'name': 'Test Gitter Rule',
'type'... | 29.726744 | 97 | 0.613925 | 592 | 5,113 | 5.087838 | 0.141892 | 0.046481 | 0.059761 | 0.059761 | 0.874834 | 0.859562 | 0.859562 | 0.859562 | 0.859562 | 0.84429 | 0 | 0.035714 | 0.244279 | 5,113 | 171 | 98 | 29.900585 | 0.743789 | 0 | 0 | 0.738255 | 0 | 0.026846 | 0.287502 | 0.024252 | 0 | 0 | 0 | 0 | 0.087248 | 1 | 0.033557 | false | 0 | 0.04698 | 0 | 0.080537 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
753b2cddad8d46203f0caead94cd9f5db5abe1ba | 13,903 | py | Python | 6.0/rubik_v2.py | vezril/IEEEXtreme | b0952cbe4a47a00f387f9f849bd6b632d6507126 | [
"MIT"
] | null | null | null | 6.0/rubik_v2.py | vezril/IEEEXtreme | b0952cbe4a47a00f387f9f849bd6b632d6507126 | [
"MIT"
] | null | null | null | 6.0/rubik_v2.py | vezril/IEEEXtreme | b0952cbe4a47a00f387f9f849bd6b632d6507126 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2.6
import copy
class Cube():
'''
Left - left
Face - front
Right - Side 3
Back - Side 4
Top - Side 5
Bottom - bottom
'''
def __init__(self):
self.left = [['g','g','g'],['g','g','g'],['g','g','g']]
self.front = [['p',... | 42.51682 | 311 | 0.439258 | 1,938 | 13,903 | 3.140351 | 0.028896 | 0.153631 | 0.069011 | 0.057673 | 0.933947 | 0.89024 | 0.85442 | 0.731679 | 0.708018 | 0.707361 | 0 | 0.099498 | 0.32698 | 13,903 | 326 | 312 | 42.647239 | 0.550924 | 0.013163 | 0 | 0.629787 | 0 | 0 | 0.029356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.004255 | null | null | 0.059574 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f3367625810756a77cedcf8682935e87f67d0a2b | 283 | py | Python | openml-generic-python/src/test/resources/valid_classifier/ClassifierApi/classifier.py | henriquevcosta/feedzai-openml-python | fd24644230121a7579bea414d46996de4dd29273 | [
"Apache-2.0"
] | 6 | 2018-06-12T10:32:37.000Z | 2020-03-25T13:24:32.000Z | openml-generic-python/src/test/resources/valid_classifier/ClassifierApi/classifier.py | henriquevcosta/feedzai-openml-python | fd24644230121a7579bea414d46996de4dd29273 | [
"Apache-2.0"
] | 39 | 2018-06-12T10:32:38.000Z | 2021-04-07T13:53:49.000Z | openml-generic-python/src/test/resources/valid_classifier/ClassifierApi/classifier.py | henriquevcosta/feedzai-openml-python | fd24644230121a7579bea414d46996de4dd29273 | [
"Apache-2.0"
] | 6 | 2018-06-15T14:27:41.000Z | 2020-11-24T15:29:52.000Z |
class ClassifierBase(object):
def getClassDistribution(self, instance):
raise NotImplementedError("This must be implemented by a concrete adapter.")
def classify(self, instance):
raise NotImplementedError("This must be implemented by a concrete adapter.")
| 31.444444 | 84 | 0.738516 | 31 | 283 | 6.741935 | 0.580645 | 0.114833 | 0.162679 | 0.344498 | 0.717703 | 0.717703 | 0.717703 | 0.717703 | 0.717703 | 0.717703 | 0 | 0 | 0.187279 | 283 | 8 | 85 | 35.375 | 0.908696 | 0 | 0 | 0.4 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
f39c43446140e6cf23408395b93de1d2e61a7999 | 22,189 | py | Python | tests/test_engine.py | PrabhuLoganathan/Pytest--Play | 7e3ec041cf5949f3f73cb2dcf315d9b894c2558f | [
"Apache-2.0"
] | null | null | null | tests/test_engine.py | PrabhuLoganathan/Pytest--Play | 7e3ec041cf5949f3f73cb2dcf315d9b894c2558f | [
"Apache-2.0"
] | null | null | null | tests/test_engine.py | PrabhuLoganathan/Pytest--Play | 7e3ec041cf5949f3f73cb2dcf315d9b894c2558f | [
"Apache-2.0"
] | null | null | null | import pytest
import mock
from datetime import (
datetime,
timedelta,
)
def test_play_engine_constructor(bdd_vars, parametrizer_class):
from pytest_play.engine import PlayEngine
executor = PlayEngine(None, bdd_vars, parametrizer_class)
assert executor.parametrizer_class is parametrizer_class
a... | 25.214773 | 78 | 0.572987 | 2,169 | 22,189 | 5.556017 | 0.074228 | 0.173679 | 0.116422 | 0.136669 | 0.863331 | 0.825741 | 0.801759 | 0.782757 | 0.778774 | 0.738196 | 0 | 0.002974 | 0.303033 | 22,189 | 879 | 79 | 25.243458 | 0.776269 | 0.001172 | 0 | 0.737617 | 0 | 0 | 0.122061 | 0.008393 | 0 | 0 | 0 | 0 | 0.105756 | 1 | 0.064257 | false | 0 | 0.006693 | 0 | 0.07095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
f3bb965bda607f68aa2976348e5aeb2c00347d49 | 20,018 | py | Python | ninja_extra/controllers/route/__init__.py | eadwinCode/django-ninja-extra | 16246c466ab8895ba1bf29d69f3d3e9337031edd | [
"MIT"
] | 43 | 2021-09-09T14:20:59.000Z | 2022-03-28T00:38:52.000Z | ninja_extra/controllers/route/__init__.py | eadwinCode/django-ninja-extra | 16246c466ab8895ba1bf29d69f3d3e9337031edd | [
"MIT"
] | 6 | 2022-01-04T10:53:11.000Z | 2022-03-28T19:53:46.000Z | ninja_extra/controllers/route/__init__.py | eadwinCode/django-ninja-extra | 16246c466ab8895ba1bf29d69f3d3e9337031edd | [
"MIT"
] | null | null | null | import inspect
from typing import Any, List, Optional, Type, Union, cast
from ninja.constants import NOT_SET
from ninja.signature import is_async
from ninja.types import TCallable
from ninja_extra.controllers.response import ControllerResponse
from ninja_extra.permissions import BasePermission
from ninja_extra.schema... | 38.869903 | 117 | 0.673694 | 2,309 | 20,018 | 5.696405 | 0.074058 | 0.040143 | 0.051091 | 0.051091 | 0.820117 | 0.817532 | 0.803847 | 0.800882 | 0.800882 | 0.800882 | 0 | 0.000131 | 0.234389 | 20,018 | 514 | 118 | 38.945525 | 0.858084 | 0.442801 | 0 | 0.721875 | 0 | 0 | 0.015506 | 0.002759 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0.003125 | 0.028125 | 0 | 0.103125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
f3c9446e4dde13e8b75b75b094a48c7a9f2f6aa4 | 94 | py | Python | Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-003/pg-3.5-ex-string.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-003/pg-3.5-ex-string.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-003/pg-3.5-ex-string.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | s = '100'
print(s)
s = 'abc1234-09232<>?323'
print(s)
s = 'abc 123'
print(s)
s = ' '
print(s)
| 10.444444 | 25 | 0.553191 | 18 | 94 | 2.888889 | 0.444444 | 0.461538 | 0.403846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236842 | 0.191489 | 94 | 8 | 26 | 11.75 | 0.447368 | 0 | 0 | 0.5 | 0 | 0 | 0.319149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
3441f211c43eefe838e3160a105247d063a0e2f4 | 6,371 | py | Python | hivemind_bus_client/decorators.py | emphasize/hivemind_websocket_client | a6d6d11d2e5d28dd71433ffdb10e6363d3a6eb60 | [
"Apache-2.0"
] | null | null | null | hivemind_bus_client/decorators.py | emphasize/hivemind_websocket_client | a6d6d11d2e5d28dd71433ffdb10e6363d3a6eb60 | [
"Apache-2.0"
] | 1 | 2022-01-20T16:09:06.000Z | 2022-01-20T17:34:16.000Z | hivemind_bus_client/decorators.py | emphasize/hivemind_websocket_client | a6d6d11d2e5d28dd71433ffdb10e6363d3a6eb60 | [
"Apache-2.0"
] | 2 | 2022-01-17T15:50:04.000Z | 2022-02-02T00:23:52.000Z | from hivemind_bus_client.message import HiveMessageType
class HiveMessageListener:
def __init__(self, bus, message_type):
self.bus = bus
self.message_type = message_type
self._handlers = []
def _handler(self, message):
"""Receive response data."""
for handler in self._... | 28.828054 | 77 | 0.63742 | 671 | 6,371 | 5.824143 | 0.087928 | 0.11259 | 0.113101 | 0.064483 | 0.80911 | 0.802457 | 0.802457 | 0.753582 | 0.723132 | 0.702661 | 0 | 0 | 0.288181 | 6,371 | 220 | 78 | 28.959091 | 0.861742 | 0.039554 | 0 | 0.688742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238411 | false | 0 | 0.006623 | 0 | 0.450331 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1b1e910859429ebd5ef2f3706111c1272d3b9847 | 93 | py | Python | skgpytorch/metrics/__init__.py | palak-purohit/skgpytorch | f1143a0f6a4858be4485ff465b3d6da7b28067f0 | [
"MIT"
] | 5 | 2022-01-16T00:12:48.000Z | 2022-03-04T12:59:26.000Z | skgpytorch/metrics/__init__.py | palak-purohit/skgpytorch | f1143a0f6a4858be4485ff465b3d6da7b28067f0 | [
"MIT"
] | 3 | 2022-02-25T10:52:46.000Z | 2022-03-18T12:30:51.000Z | skgpytorch/metrics/__init__.py | palak-purohit/skgpytorch | f1143a0f6a4858be4485ff465b3d6da7b28067f0 | [
"MIT"
] | null | null | null | from .metrics import negative_log_predictive_density
from .metrics import mean_squared_error
| 31 | 52 | 0.892473 | 13 | 93 | 6 | 0.769231 | 0.282051 | 0.435897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086022 | 93 | 2 | 53 | 46.5 | 0.917647 | 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 | 1 | 0 | 0 | 7 |
1b6b0c7fb12cc41bda9a47aa1261c9944ec7b130 | 6,535 | py | Python | tests/unit/protein_merger_test.py | MassDynamics/protein-inference | 05cc9738a3fcd074d8e6789bb24979a9837082cf | [
"MIT"
] | 4 | 2020-11-25T03:08:07.000Z | 2020-11-25T23:28:06.000Z | tests/unit/protein_merger_test.py | MassDynamics/protein-inference | 05cc9738a3fcd074d8e6789bb24979a9837082cf | [
"MIT"
] | null | null | null | tests/unit/protein_merger_test.py | MassDynamics/protein-inference | 05cc9738a3fcd074d8e6789bb24979a9837082cf | [
"MIT"
] | 1 | 2020-11-25T04:52:04.000Z | 2020-11-25T04:52:04.000Z | import unittest
from protein_inference.problem_network import ProblemNetwork
from protein_inference.inference.protein_merger import ProteinMerger
import networkx as nx
from copy import deepcopy
class ProteinMergerTest(unittest.TestCase):
def test_get_mapping_basic(self):
g = nx.Graph()
g.add_node... | 33.341837 | 78 | 0.537261 | 920 | 6,535 | 3.616304 | 0.069565 | 0.072137 | 0.108206 | 0.156297 | 0.808837 | 0.808837 | 0.774271 | 0.774271 | 0.746017 | 0.746017 | 0 | 0.05234 | 0.254476 | 6,535 | 196 | 79 | 33.341837 | 0.630542 | 0 | 0 | 0.771812 | 0 | 0 | 0.050031 | 0 | 0 | 0 | 0 | 0 | 0.100671 | 1 | 0.067114 | false | 0 | 0.033557 | 0 | 0.107383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
1b90f14795f0e8e4e538d25be033dbfebd2717ec | 3,583 | py | Python | tests/utils/test_cached_method.py | thatoneolib/senko | 686d768f8bc0c69a874dba180abb85049ff473b9 | [
"MIT"
] | null | null | null | tests/utils/test_cached_method.py | thatoneolib/senko | 686d768f8bc0c69a874dba180abb85049ff473b9 | [
"MIT"
] | null | null | null | tests/utils/test_cached_method.py | thatoneolib/senko | 686d768f8bc0c69a874dba180abb85049ff473b9 | [
"MIT"
] | null | null | null | import time
import asyncio
import pytest
from utils import caching
# helpers
def nullkey(*args, **kwargs):
return None
# sync tests
def test_cached_method():
class Object:
def __init__(self, value):
self.value = value
self.cache = caching.Cache(128)
@cachin... | 23.418301 | 68 | 0.560982 | 513 | 3,583 | 3.812866 | 0.079922 | 0.0409 | 0.147239 | 0.056237 | 0.91411 | 0.872699 | 0.860941 | 0.825665 | 0.747444 | 0.716769 | 0 | 0.067152 | 0.310075 | 3,583 | 153 | 69 | 23.418301 | 0.72411 | 0.008373 | 0 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.315789 | 1 | 0.140351 | false | 0 | 0.035088 | 0.035088 | 0.289474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
1b9b43557398b392d4eb10d015b3c6c49ad56a9d | 154 | py | Python | python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_1/_pkg1_1_1/_pkg1_1_1_0/_pkg1_1_1_0_0/__init__.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_1/_pkg1_1_1/_pkg1_1_1_0/_pkg1_1_1_0_0/__init__.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_1/_pkg1_1_1/_pkg1_1_1_0/_pkg1_1_1_0_0/__init__.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | from ._mod1_1_1_0_0_0 import *
from ._mod1_1_1_0_0_1 import *
from ._mod1_1_1_0_0_2 import *
from ._mod1_1_1_0_0_3 import *
from ._mod1_1_1_0_0_4 import * | 30.8 | 30 | 0.811688 | 40 | 154 | 2.375 | 0.2 | 0.126316 | 0.473684 | 0.526316 | 0.884211 | 0.884211 | 0.757895 | 0 | 0 | 0 | 0 | 0.222222 | 0.123377 | 154 | 5 | 31 | 30.8 | 0.481481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 11 |
94173f5016afc56d1826d076a947f15f20e6efe2 | 85 | py | Python | __init__.py | acidbutter96/challenge_backend | d064d358b9c0bdaaec379d4a79f171324dcd22a0 | [
"MIT"
] | null | null | null | __init__.py | acidbutter96/challenge_backend | d064d358b9c0bdaaec379d4a79f171324dcd22a0 | [
"MIT"
] | null | null | null | __init__.py | acidbutter96/challenge_backend | d064d358b9c0bdaaec379d4a79f171324dcd22a0 | [
"MIT"
] | null | null | null | from carteiraglobal.app.request.request_from_site import request_from_site as request | 85 | 85 | 0.905882 | 13 | 85 | 5.615385 | 0.538462 | 0.30137 | 0.410959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 85 | 1 | 85 | 85 | 0.9125 | 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 | 1 | 0 | 0 | 7 |
9447c280bf646274e8349aa3e97c11ebd03dbb62 | 29,352 | py | Python | IA/comportamiento.py | Gusta2307/Football-Simulation-IA-SIM-COM- | 8c29c5b1ef61708a4f8b34f5e0e00990aeecfacd | [
"MIT"
] | null | null | null | IA/comportamiento.py | Gusta2307/Football-Simulation-IA-SIM-COM- | 8c29c5b1ef61708a4f8b34f5e0e00990aeecfacd | [
"MIT"
] | null | null | null | IA/comportamiento.py | Gusta2307/Football-Simulation-IA-SIM-COM- | 8c29c5b1ef61708a4f8b34f5e0e00990aeecfacd | [
"MIT"
] | 1 | 2022-02-07T04:47:15.000Z | 2022-02-07T04:47:15.000Z | import random
from classes.jugador import Jugador
from classes.portero import Portero
from config import Config
_config = Config()
#### DEFENSA ####
#Los jugadores avanzan o retrasan su posición según la zona donde se produce el saque de banda
def comportamiento_defensa_detenido_BB(partido, equip... | 34.942857 | 95 | 0.292723 | 1,867 | 29,352 | 4.373862 | 0.059989 | 0.074945 | 0.169728 | 0.17781 | 0.896155 | 0.870806 | 0.847294 | 0.828802 | 0.804678 | 0.786799 | 0 | 0.046764 | 0.620435 | 29,352 | 839 | 96 | 34.984505 | 0.686204 | 0.023133 | 0 | 0.494792 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014323 | false | 0.005208 | 0.005208 | 0 | 0.027344 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
ca3ea1f4cdf81178733240eae31bcd00ff276891 | 318 | py | Python | src/prism-fruit/Games-DQL/examples/games/car/networkx/linalg/__init__.py | kushgrover/apt-vs-dift | 250f64e6c442f6018cab65ec6979d9568a842f57 | [
"MIT"
] | null | null | null | src/prism-fruit/Games-DQL/examples/games/car/networkx/linalg/__init__.py | kushgrover/apt-vs-dift | 250f64e6c442f6018cab65ec6979d9568a842f57 | [
"MIT"
] | null | null | null | src/prism-fruit/Games-DQL/examples/games/car/networkx/linalg/__init__.py | kushgrover/apt-vs-dift | 250f64e6c442f6018cab65ec6979d9568a842f57 | [
"MIT"
] | null | null | null | from networkx.linalg.attrmatrix import *
import networkx.linalg.attrmatrix
from networkx.linalg.spectrum import *
import networkx.linalg.spectrum
from networkx.linalg.graphmatrix import *
import networkx.linalg.graphmatrix
from networkx.linalg.laplacianmatrix import *
import networkx.linalg.laplacianmatrix
| 31.8 | 46 | 0.830189 | 36 | 318 | 7.333333 | 0.222222 | 0.424242 | 0.272727 | 0.393939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106918 | 318 | 9 | 47 | 35.333333 | 0.929577 | 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 | 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 | 7 |
ca778292d2704f1df99c5dcc4a14348fd60b0d65 | 4,240 | py | Python | genomics_data_index/test/unit/variant/model/db/test_NucleotideVariantsSamples.py | apetkau/thesis-index | 6c96e9ed75d8e661437effe62a939727a0b473fc | [
"Apache-2.0"
] | 1 | 2021-04-21T00:19:49.000Z | 2021-04-21T00:19:49.000Z | genomics_data_index/test/unit/variant/model/db/test_NucleotideVariantsSamples.py | apetkau/thesis-index | 6c96e9ed75d8e661437effe62a939727a0b473fc | [
"Apache-2.0"
] | null | null | null | genomics_data_index/test/unit/variant/model/db/test_NucleotideVariantsSamples.py | apetkau/thesis-index | 6c96e9ed75d8e661437effe62a939727a0b473fc | [
"Apache-2.0"
] | null | null | null | import pytest
from genomics_data_index.storage.SampleSet import SampleSet
from genomics_data_index.storage.model.db import NucleotideVariantsSamples, MLSTAllelesSamples
def test_update_sample_ids_both_overlap():
s1 = SampleSet([1, 2])
v1 = NucleotideVariantsSamples(spdi='ref:10:1:A', var_type='SNP', sample_i... | 30.724638 | 94 | 0.666274 | 672 | 4,240 | 4.041667 | 0.107143 | 0.142489 | 0.059647 | 0.069588 | 0.912003 | 0.883284 | 0.842784 | 0.838733 | 0.838733 | 0.838733 | 0 | 0.064788 | 0.188208 | 4,240 | 137 | 95 | 30.948905 | 0.724288 | 0.075236 | 0 | 0.744186 | 0 | 0 | 0.11509 | 0 | 0 | 0 | 0 | 0 | 0.453488 | 1 | 0.081395 | false | 0 | 0.034884 | 0 | 0.116279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0460966d4052a20fc80bb8c174f9b3077b8d69de | 80 | py | Python | models/__init__.py | LyapunovStability/BRITS | 92a889dd5946aae215d61b1854d9767c6f7fcf2c | [
"MIT"
] | null | null | null | models/__init__.py | LyapunovStability/BRITS | 92a889dd5946aae215d61b1854d9767c6f7fcf2c | [
"MIT"
] | null | null | null | models/__init__.py | LyapunovStability/BRITS | 92a889dd5946aae215d61b1854d9767c6f7fcf2c | [
"MIT"
] | null | null | null | from models.brits import *
from models.rits import *
from models.param import *
| 20 | 26 | 0.775 | 12 | 80 | 5.166667 | 0.5 | 0.483871 | 0.516129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 80 | 3 | 27 | 26.666667 | 0.911765 | 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 | 1 | 0 | 0 | 7 |
04f27dddd31a3487f82c2724f2a1ac77e8cc411a | 2,947 | py | Python | parser/team03/parse/functions/functions_string.py | susanliss/tytus | a613a2352cf4a1d0e90ce27bb346ab60ed8039cc | [
"MIT"
] | null | null | null | parser/team03/parse/functions/functions_string.py | susanliss/tytus | a613a2352cf4a1d0e90ce27bb346ab60ed8039cc | [
"MIT"
] | null | null | null | parser/team03/parse/functions/functions_string.py | susanliss/tytus | a613a2352cf4a1d0e90ce27bb346ab60ed8039cc | [
"MIT"
] | null | null | null | import sys
from hashlib import md5, sha256
sys.path.insert(0, '..')
from ast_node import ASTNode
# From here on, classes describing aggregate functions
# TODO: Convert, SetByte, Substr
class Convert(ASTNode):
def __init__(self, exp, line, column):
ASTNode.__init__(self, line, column)
self.exp = e... | 24.558333 | 54 | 0.617238 | 371 | 2,947 | 4.663073 | 0.134771 | 0.125434 | 0.089017 | 0.114451 | 0.781503 | 0.769364 | 0.769364 | 0.769364 | 0.769364 | 0.769364 | 0 | 0.008227 | 0.25755 | 2,947 | 120 | 55 | 24.558333 | 0.78245 | 0.028164 | 0 | 0.698795 | 0 | 0 | 0.010832 | 0 | 0 | 0 | 0 | 0.008333 | 0 | 1 | 0.26506 | false | 0 | 0.036145 | 0 | 0.566265 | 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 | 1 | 0 | 0 | 7 |
04fbe3a3cce87096e9b783c3ad7646a8d723441a | 98 | py | Python | bitio/src/microbit/repl/__init__.py | hungjuchen/Atmosmakers | 4e8e64fba3d7a31840f69a5aa3823247aa5dca02 | [
"MIT"
] | 85 | 2017-06-09T20:53:46.000Z | 2022-03-09T21:35:05.000Z | bitio/src/microbit/repl/__init__.py | hungjuchen/Atmosmakers | 4e8e64fba3d7a31840f69a5aa3823247aa5dca02 | [
"MIT"
] | 34 | 2017-06-09T20:52:05.000Z | 2021-02-19T19:49:45.000Z | bitio/src/microbit/repl/__init__.py | hungjuchen/Atmosmakers | 4e8e64fba3d7a31840f69a5aa3823247aa5dca02 | [
"MIT"
] | 32 | 2017-06-09T10:15:19.000Z | 2021-11-20T09:08:08.000Z | # repl/__init__.py
try:
from repl import *
except ImportError:
from .repl import *
# END
| 12.25 | 23 | 0.663265 | 13 | 98 | 4.692308 | 0.692308 | 0.262295 | 0.459016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244898 | 98 | 7 | 24 | 14 | 0.824324 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
b6e18b81d4a0b197c2238603a7e13af80bcf7420 | 86 | py | Python | {{cookiecutter.repo_name}}/tests/test_main.py | adamtupper/cookiecutter-lvsn-workflow | d2344ed1767e9eb6a566c32729b7a7e013693f30 | [
"MIT"
] | null | null | null | {{cookiecutter.repo_name}}/tests/test_main.py | adamtupper/cookiecutter-lvsn-workflow | d2344ed1767e9eb6a566c32729b7a7e013693f30 | [
"MIT"
] | 11 | 2021-06-09T17:24:21.000Z | 2021-07-26T14:33:28.000Z | {{cookiecutter.repo_name}}/tests/test_main.py | adamtupper/cookiecutter-lvsn-workflow | d2344ed1767e9eb6a566c32729b7a7e013693f30 | [
"MIT"
] | null | null | null | import pytest # noqa: F401
def test_dummy():
"""A dummy test case."""
pass
| 12.285714 | 28 | 0.593023 | 12 | 86 | 4.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.267442 | 86 | 6 | 29 | 14.333333 | 0.746032 | 0.348837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
8e1b2123f0cf419cea41aec03b3077c77826a13f | 182 | py | Python | src/unittest/specification/someClass.py | mrdulin/python-codelab | 3d960a14a96b3a673b7dc2277d202069b1f8e778 | [
"MIT"
] | null | null | null | src/unittest/specification/someClass.py | mrdulin/python-codelab | 3d960a14a96b3a673b7dc2277d202069b1f8e778 | [
"MIT"
] | null | null | null | src/unittest/specification/someClass.py | mrdulin/python-codelab | 3d960a14a96b3a673b7dc2277d202069b1f8e778 | [
"MIT"
] | 3 | 2020-02-19T08:02:04.000Z | 2021-06-08T13:27:51.000Z | class SomeClass:
def __init__(self, name='lin'):
self.name = name
# def get_name(self):
# return self.name
def get_name_new():
return self.name
| 18.2 | 35 | 0.582418 | 24 | 182 | 4.125 | 0.416667 | 0.323232 | 0.20202 | 0.282828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 182 | 9 | 36 | 20.222222 | 0.785714 | 0.21978 | 0 | 0 | 0 | 0 | 0.021583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
edcb999cd749afecb86fbcfb4607f2dc5b8eb8ce | 16,478 | py | Python | tests/orchestrator/test_sequential_orchestrator_with_retry.py | Azure/azure-functions-durable-python | 41b7d88d38bfc19cea6249e08fd240362976374f | [
"MIT"
] | 78 | 2020-03-30T19:05:23.000Z | 2022-03-30T06:55:47.000Z | tests/orchestrator/test_sequential_orchestrator_with_retry.py | Azure/azure-functions-durable-python | 41b7d88d38bfc19cea6249e08fd240362976374f | [
"MIT"
] | 180 | 2020-04-01T22:25:59.000Z | 2022-03-29T14:23:16.000Z | tests/orchestrator/test_sequential_orchestrator_with_retry.py | Azure/azure-functions-durable-python | 41b7d88d38bfc19cea6249e08fd240362976374f | [
"MIT"
] | 40 | 2020-03-31T19:52:31.000Z | 2022-02-06T05:52:44.000Z | from typing import List, Union
from azure.durable_functions.models.ReplaySchema import ReplaySchema
from .orchestrator_test_utils \
import get_orchestration_state_result, assert_orchestration_state_equals, assert_valid_schema
from tests.test_utils.ContextBuilder import ContextBuilder
from azure.durable_functions.mo... | 39.047393 | 105 | 0.771453 | 2,017 | 16,478 | 5.826971 | 0.078334 | 0.129839 | 0.083383 | 0.044669 | 0.858504 | 0.837573 | 0.799966 | 0.773164 | 0.762188 | 0.72841 | 0 | 0.006193 | 0.147469 | 16,478 | 422 | 106 | 39.047393 | 0.830439 | 0.022211 | 0 | 0.705128 | 0 | 0 | 0.071287 | 0.014419 | 0 | 0 | 0 | 0 | 0.086538 | 1 | 0.073718 | false | 0 | 0.022436 | 0.003205 | 0.112179 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
61118be652ccce475b83031eec628fa91e9d4b50 | 1,804 | py | Python | tests/test_organisations.py | nestauk/gtr | 5a7fe88c8429fa78199fb2da42123a7079a5f8ab | [
"Apache-2.0"
] | 6 | 2016-06-08T11:41:45.000Z | 2018-09-12T09:54:08.000Z | tests/test_organisations.py | nestauk/gtr | 5a7fe88c8429fa78199fb2da42123a7079a5f8ab | [
"Apache-2.0"
] | 2 | 2018-02-14T19:34:57.000Z | 2018-02-14T19:46:02.000Z | tests/test_organisations.py | nestauk/gtr | 5a7fe88c8429fa78199fb2da42123a7079a5f8ab | [
"Apache-2.0"
] | 2 | 2017-11-07T15:38:39.000Z | 2018-02-14T19:10:36.000Z | import responses
import gtr
@responses.activate
def test_org():
"Searching by org id works"
with open("tests/results.json") as results:
body = results.read()
responses.add(
responses.GET,
"http://gtr.rcuk.ac.uk/gtr/api/organisations/test",
match_querystring=True,
s... | 28.1875 | 73 | 0.478936 | 183 | 1,804 | 4.661202 | 0.289617 | 0.042204 | 0.073857 | 0.084408 | 0.84408 | 0.84408 | 0.84408 | 0.84408 | 0.84408 | 0.84408 | 0 | 0.016334 | 0.389135 | 1,804 | 64 | 74 | 28.1875 | 0.757713 | 0.032705 | 0 | 0.764706 | 0 | 0.039216 | 0.187812 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.039216 | false | 0 | 0.039216 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6115bd1aef82af1a73b40d490a82308bf768e176 | 2,041 | py | Python | tests/timesheet/test_ignored_entries.py | simonbru/taxi | 3940f520b6d61b5ac7c851c38dfd05da2f65b647 | [
"WTFPL"
] | 17 | 2016-02-02T14:10:49.000Z | 2021-11-30T00:04:29.000Z | tests/timesheet/test_ignored_entries.py | simonbru/taxi | 3940f520b6d61b5ac7c851c38dfd05da2f65b647 | [
"WTFPL"
] | 70 | 2015-01-08T17:02:42.000Z | 2021-09-21T20:08:07.000Z | tests/timesheet/test_ignored_entries.py | simonbru/taxi | 3940f520b6d61b5ac7c851c38dfd05da2f65b647 | [
"WTFPL"
] | 8 | 2015-08-23T12:50:36.000Z | 2021-11-26T10:33:45.000Z | import datetime
from . import create_timesheet
def test_entry_with_question_mark_description_is_ignored():
t = create_timesheet('10.10.2012\nfoo 2 ?')
assert list(t.entries.values())[0][0].ignored
def test_entry_with_question_mark_in_alias_is_ignored():
t = create_timesheet('10.10.2012\nfoo? 2 Foo')
... | 30.014706 | 85 | 0.729544 | 325 | 2,041 | 4.286154 | 0.163077 | 0.034458 | 0.11486 | 0.116296 | 0.847093 | 0.826992 | 0.795406 | 0.733668 | 0.733668 | 0.733668 | 0 | 0.091322 | 0.136208 | 2,041 | 67 | 86 | 30.462687 | 0.698809 | 0 | 0 | 0.5 | 0 | 0 | 0.149927 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.217391 | false | 0 | 0.043478 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6128e85ec4fb129f97269ce10781864322218473 | 726 | py | Python | Day4/Clonig_list.py | tushartrip1010/100_days_code_py | ee74b429e98cdd8bdf8661cf987da67c9fee5a3e | [
"Apache-2.0"
] | null | null | null | Day4/Clonig_list.py | tushartrip1010/100_days_code_py | ee74b429e98cdd8bdf8661cf987da67c9fee5a3e | [
"Apache-2.0"
] | null | null | null | Day4/Clonig_list.py | tushartrip1010/100_days_code_py | ee74b429e98cdd8bdf8661cf987da67c9fee5a3e | [
"Apache-2.0"
] | null | null | null |
# Approach 1:
def Cloning_List(Given_List):
Result = Given_List[:]
return Result
Given_List = [4, 5, 7, 8, 9, 6, 10, 15]
print(Cloning_List(Given_List))
# Approach 2:
def Cloning_List(Given_List):
Result = []
Result.extend(Given_List)
return Result
Given_List = [4, 5, 7,... | 16.133333 | 40 | 0.62259 | 111 | 726 | 3.855856 | 0.18018 | 0.336449 | 0.273364 | 0.373832 | 0.934579 | 0.934579 | 0.799065 | 0.799065 | 0.799065 | 0.799065 | 0 | 0.081181 | 0.253444 | 726 | 44 | 41 | 16.5 | 0.708487 | 0.064738 | 0 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0 | 0 | 0.380952 | 0.190476 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 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 | 10 |
b6782d80f5548f37bf9ad97bbbab0dbf90509601 | 53,990 | py | Python | process_results/process_results_superpatches.py | ShahiraAbousamra/til_classification | cede5453cb46b9c168a1f50f76ded43f8ca3fcbe | [
"BSD-3-Clause"
] | 2 | 2022-03-25T15:58:09.000Z | 2022-03-26T11:28:44.000Z | process_results/process_results_superpatches.py | ShahiraAbousamra/til_classification | cede5453cb46b9c168a1f50f76ded43f8ca3fcbe | [
"BSD-3-Clause"
] | null | null | null | process_results/process_results_superpatches.py | ShahiraAbousamra/til_classification | cede5453cb46b9c168a1f50f76ded43f8ca3fcbe | [
"BSD-3-Clause"
] | 2 | 2022-03-16T00:45:08.000Z | 2022-03-23T17:28:39.000Z | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.cm as CM
import numpy as np;
import pickle;
import os;
import sys;
#import matplotlib.pyplot as plt;
import seaborn as sns
def process_results_hist(in_dir, out_dir, model_prefix, dataset_name, threshold):
res... | 49.990741 | 209 | 0.621411 | 8,125 | 53,990 | 3.873231 | 0.037169 | 0.036543 | 0.044932 | 0.023546 | 0.943756 | 0.937051 | 0.921385 | 0.911026 | 0.900095 | 0.893613 | 0 | 0.030051 | 0.222782 | 53,990 | 1,079 | 210 | 50.037071 | 0.719913 | 0.267142 | 0 | 0.864979 | 0 | 0 | 0.074302 | 0.01272 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014065 | false | 0 | 0.011252 | 0 | 0.025316 | 0.049226 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
b6960366388b6c286abc095820a9a39836a969f8 | 49 | py | Python | recipes/recipes_emscripten/traits/test_import_traits.py | emscripten-forge/recipes | 62cb3e146abc8945ac210f38e4e47c080698eae5 | [
"MIT"
] | 1 | 2022-03-10T16:50:56.000Z | 2022-03-10T16:50:56.000Z | recipes/recipes_emscripten/traits/test_import_traits.py | emscripten-forge/recipes | 62cb3e146abc8945ac210f38e4e47c080698eae5 | [
"MIT"
] | 9 | 2022-03-18T09:26:38.000Z | 2022-03-29T09:21:51.000Z | recipes/recipes_emscripten/traits/test_import_traits.py | emscripten-forge/recipes | 62cb3e146abc8945ac210f38e4e47c080698eae5 | [
"MIT"
] | null | null | null |
def test_import_traits():
import traits
| 12.25 | 25 | 0.673469 | 6 | 49 | 5.166667 | 0.666667 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265306 | 49 | 4 | 26 | 12.25 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 1 | 0 | 1.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 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
b6b0778eeb7bd57e9a131e6f282405cd201a11f1 | 180 | py | Python | python/common/perforce/p426/__init__.py | CountZer0/PipelineConstructionSet | 0aa73a8a63c72989b2d1c677efd78dad4388d335 | [
"BSD-3-Clause"
] | 21 | 2015-04-27T05:01:36.000Z | 2021-11-22T13:45:14.000Z | python/common/perforce/p426/__init__.py | 0xb1dd1e/PipelineConstructionSet | 621349da1b6d1437e95d0c9e48ee9f36d59f19fd | [
"BSD-3-Clause"
] | null | null | null | python/common/perforce/p426/__init__.py | 0xb1dd1e/PipelineConstructionSet | 621349da1b6d1437e95d0c9e48ee9f36d59f19fd | [
"BSD-3-Clause"
] | 7 | 2015-04-11T11:37:19.000Z | 2020-05-22T09:49:04.000Z | '''
Author: Jason.Parks
Created: Jan 17, 2012
Module: THQ_common.thq_perforce.p426.__init__
Purpose: to import p426
'''
print "THQ_common.thq_perforce.p426.__init__ imported"
| 18 | 55 | 0.766667 | 26 | 180 | 4.846154 | 0.692308 | 0.142857 | 0.190476 | 0.31746 | 0.444444 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0.094937 | 0.122222 | 180 | 9 | 56 | 20 | 0.702532 | 0 | 0 | 0 | 0 | 0 | 0.754098 | 0.606557 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 1 | null | null | 1 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 9 |
fcad336cce91328fc795cea5b4ca292fffeb683b | 1,756 | py | Python | executive/cloudcontrol/ajax.py | b800h/vcloudexecutive | aa556664b454ba5d5112fa6c07dde8db8a7dfab4 | [
"BSD-3-Clause"
] | 1 | 2019-03-14T11:13:00.000Z | 2019-03-14T11:13:00.000Z | executive/cloudcontrol/ajax.py | bmcollier/vcloudexecutive | aa556664b454ba5d5112fa6c07dde8db8a7dfab4 | [
"BSD-3-Clause"
] | null | null | null | executive/cloudcontrol/ajax.py | bmcollier/vcloudexecutive | aa556664b454ba5d5112fa6c07dde8db8a7dfab4 | [
"BSD-3-Clause"
] | null | null | null | from django.http import HttpResponse
from django.utils.html import strip_tags
import json
import requests
class storeout:
def __init__(self, key):
self.actions = {}
self.key = key
def save(self, value):
self.actions[self.key] = value
def start_server(request):
server_name = request... | 45.025641 | 126 | 0.701595 | 213 | 1,756 | 5.586854 | 0.2723 | 0.084034 | 0.079832 | 0.096639 | 0.776471 | 0.776471 | 0.776471 | 0.776471 | 0.776471 | 0.635294 | 0 | 0.031809 | 0.140661 | 1,756 | 39 | 127 | 45.025641 | 0.756793 | 0.02164 | 0 | 0.424242 | 0 | 0 | 0.258591 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.121212 | 0 | 0.515152 | 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 | 1 | 0 | 0 | 7 |
1e963c29fdf6967bfd0ce2c4a369a568569efb05 | 25,863 | py | Python | code/nn_models.py | nateGeorge/stock_prediction | e7520c24d1174b197188f198d5e2e9487b7a2d0c | [
"Apache-2.0"
] | null | null | null | code/nn_models.py | nateGeorge/stock_prediction | e7520c24d1174b197188f198d5e2e9487b7a2d0c | [
"Apache-2.0"
] | null | null | null | code/nn_models.py | nateGeorge/stock_prediction | e7520c24d1174b197188f198d5e2e9487b7a2d0c | [
"Apache-2.0"
] | null | null | null | from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, LSTM, Flatten, Embedding, GlobalMaxPooling1D
from keras.regularizers import l2
from keras.layers.core import Reshape
from keras.layers.wrappers import TimeDistributed
from keras.layers.convolutional import Conv1D
from keras.layers.... | 35.331967 | 138 | 0.560221 | 3,078 | 25,863 | 4.589669 | 0.097791 | 0.060027 | 0.015573 | 0.031146 | 0.862462 | 0.832307 | 0.820344 | 0.805196 | 0.787924 | 0.768033 | 0 | 0.036105 | 0.3007 | 25,863 | 731 | 139 | 35.380301 | 0.744996 | 0.098712 | 0 | 0.790816 | 0 | 0 | 0.070485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032313 | false | 0 | 0.034014 | 0 | 0.086735 | 0.015306 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
bf493de91258eed58d9e37170ba202439cdc59db | 2,782 | py | Python | tests/images/test_models.py | jeanmask/opps | 031c6136c38d43aa6d1ccb25a94f7bcd65ccbf87 | [
"MIT"
] | 159 | 2015-01-03T16:36:35.000Z | 2022-03-29T20:50:13.000Z | tests/images/test_models.py | jeanmask/opps | 031c6136c38d43aa6d1ccb25a94f7bcd65ccbf87 | [
"MIT"
] | 81 | 2015-01-02T21:26:16.000Z | 2021-05-29T12:24:52.000Z | tests/images/test_models.py | jeanmask/opps | 031c6136c38d43aa6d1ccb25a94f7bcd65ccbf87 | [
"MIT"
] | 75 | 2015-01-23T13:41:03.000Z | 2021-09-24T03:45:23.000Z | # -*- encoding: utf-8 -*-
from django.test import TestCase
from django.db import models
from opps.images.models import Cropping, HALIGN_CHOICES, VALIGN_CHOICES
class CroppingFields(TestCase):
def test_crop_example(self):
field = Cropping._meta.get_field_by_name('crop_example')[0]
self.assertTrue(... | 37.594595 | 74 | 0.699137 | 339 | 2,782 | 5.39823 | 0.135693 | 0.191257 | 0.259563 | 0.12623 | 0.840437 | 0.840437 | 0.840437 | 0.840437 | 0.703825 | 0.597268 | 0 | 0.008885 | 0.19087 | 2,782 | 73 | 75 | 38.109589 | 0.804087 | 0.008267 | 0 | 0.525424 | 0 | 0 | 0.025753 | 0 | 0 | 0 | 0 | 0 | 0.559322 | 1 | 0.186441 | false | 0 | 0.050847 | 0 | 0.254237 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bfc7971399e6d3ff4d23cb457f9016b6b6faf515 | 130 | py | Python | mrinversion/kernel/__init__.py | DeepanshS/mrinversion | b1060f3150a5bf04162dfed499221f040b3bae21 | [
"BSD-3-Clause"
] | 1 | 2020-10-27T14:48:50.000Z | 2020-10-27T14:48:50.000Z | mrinversion/kernel/__init__.py | deepanshs/mrinversion | b1060f3150a5bf04162dfed499221f040b3bae21 | [
"BSD-3-Clause"
] | 13 | 2021-06-07T00:59:53.000Z | 2022-03-02T16:31:54.000Z | mrinversion/kernel/__init__.py | deepanshs/mrinversion | b1060f3150a5bf04162dfed499221f040b3bae21 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from mrinversion.kernel.relaxation import T1 # NOQA
from mrinversion.kernel.relaxation import T2 # NOQA
| 32.5 | 52 | 0.738462 | 17 | 130 | 5.647059 | 0.647059 | 0.3125 | 0.4375 | 0.645833 | 0.770833 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.146154 | 130 | 3 | 53 | 43.333333 | 0.837838 | 0.238462 | 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 | 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 | 7 |
44c7923cb1769183184e091d94f3b369f1f0a57f | 4,801 | py | Python | bert_spd/replacement_scheduler.py | shaoyiHusky/SparseProgressiveDistillation | 88f6c8e7b5a8fef4359d44b0dae6f6d66292f748 | [
"MIT"
] | 2 | 2022-01-03T05:24:50.000Z | 2022-03-05T22:06:20.000Z | bert_spd/replacement_scheduler.py | shaoyiHusky/SparseProgressiveDistillation | 88f6c8e7b5a8fef4359d44b0dae6f6d66292f748 | [
"MIT"
] | null | null | null | bert_spd/replacement_scheduler.py | shaoyiHusky/SparseProgressiveDistillation | 88f6c8e7b5a8fef4359d44b0dae6f6d66292f748 | [
"MIT"
] | null | null | null | from bert_spd import BertEncoder
class ConstantReplacementScheduler:
def __init__(self, bert_encoder: BertEncoder, replacing_rate, replacing_steps=None):
self.bert_encoder = bert_encoder
self.replacing_rate = replacing_rate
self.replacing_steps = replacing_steps
self.step_counter =... | 46.163462 | 133 | 0.700687 | 583 | 4,801 | 5.380789 | 0.060034 | 0.310807 | 0.129104 | 0.05738 | 0.913293 | 0.877909 | 0.828499 | 0.800446 | 0.756455 | 0.683456 | 0 | 0.007515 | 0.223912 | 4,801 | 103 | 134 | 46.61165 | 0.834407 | 0 | 0 | 0.704545 | 0 | 0 | 0.047074 | 0.009581 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0.011364 | 0 | 0.284091 | 0.079545 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 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 | 8 |
44d50ef4374eea69494bf91544eaa1221461fb68 | 785 | py | Python | pava/implementation/natives/com/sun/org/apache/xalan/internal/xsltc/compiler/Mode.py | laffra/pava | 54d10cf7f8def2f96e254c0356623d08f221536f | [
"MIT"
] | 4 | 2017-03-30T16:51:16.000Z | 2020-10-05T12:25:47.000Z | pava/implementation/natives/com/sun/org/apache/xalan/internal/xsltc/compiler/Mode.py | laffra/pava | 54d10cf7f8def2f96e254c0356623d08f221536f | [
"MIT"
] | null | null | null | pava/implementation/natives/com/sun/org/apache/xalan/internal/xsltc/compiler/Mode.py | laffra/pava | 54d10cf7f8def2f96e254c0356623d08f221536f | [
"MIT"
] | null | null | null | def add_native_methods(clazz):
def flattenAlternative__com_sun_org_apache_xalan_internal_xsltc_compiler_Pattern__com_sun_org_apache_xalan_internal_xsltc_compiler_Template__java_util_Map_java_lang_String__com_sun_org_apache_xalan_internal_xsltc_compiler_Key___(a0, a1, a2, a3, a4):
raise NotImplementedError()... | 112.142857 | 461 | 0.942675 | 116 | 785 | 5.327586 | 0.25 | 0.087379 | 0.131068 | 0.218447 | 0.893204 | 0.893204 | 0.893204 | 0.893204 | 0.893204 | 0.893204 | 0 | 0.006631 | 0.03949 | 785 | 6 | 462 | 130.833333 | 0.812997 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
44d74d8f340c7a5f753743f6a5015a8c69ee7cb5 | 5,265 | py | Python | backup/torchray4mmf/multimodal_extremal_perturbation_test.py | yongkangzzz/mmfgroup | 098a78c83e1c2973dc895d1dc7fd30d7d3668143 | [
"MIT"
] | null | null | null | backup/torchray4mmf/multimodal_extremal_perturbation_test.py | yongkangzzz/mmfgroup | 098a78c83e1c2973dc895d1dc7fd30d7d3668143 | [
"MIT"
] | null | null | null | backup/torchray4mmf/multimodal_extremal_perturbation_test.py | yongkangzzz/mmfgroup | 098a78c83e1c2973dc895d1dc7fd30d7d3668143 | [
"MIT"
] | null | null | null | from multimodal_extremal_perturbation import multi_extremal_perturbation
from torchray.attribution.extremal_perturbation import contrastive_reward
import torch
import matplotlib.pyplot as plt
def testMultiExtremalPerturbationStandardCase():
from mmf.models.mmbt import MMBT
from custom_mmbt import MMBTGridHMIn... | 41.132813 | 78 | 0.505223 | 464 | 5,265 | 5.556034 | 0.170259 | 0.06827 | 0.048487 | 0.026377 | 0.849884 | 0.841738 | 0.841738 | 0.841738 | 0.841738 | 0.841738 | 0 | 0.015364 | 0.431339 | 5,265 | 128 | 79 | 41.132813 | 0.845691 | 0.030959 | 0 | 0.893617 | 0 | 0 | 0.092978 | 0.019616 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.12766 | 0 | 0.170213 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.