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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e09e76c97b54a2a98b2a224ce595759b170d249e | 30,372 | py | Python | pybind/slxos/v16r_1_00b/ssh_sa/ssh/server/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v16r_1_00b/ssh_sa/ssh/server/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v16r_1_00b/ssh_sa/ssh/server/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | 1 | 2021-11-05T22:15:42.000Z | 2021-11-05T22:15:42.000Z |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | 74.807882 | 681 | 0.732286 | 4,283 | 30,372 | 4.948634 | 0.048331 | 0.040576 | 0.050201 | 0.041897 | 0.868601 | 0.849304 | 0.841425 | 0.835433 | 0.831658 | 0.824109 | 0 | 0.008058 | 0.125642 | 30,372 | 405 | 682 | 74.992593 | 0.790066 | 0.131338 | 0 | 0.47012 | 0 | 0.035857 | 0.394057 | 0.146177 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119522 | false | 0 | 0.043825 | 0 | 0.278884 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e09f785d8ab465f143eebb7d57745075ee8eb436 | 4,700 | py | Python | src/oscarcch/tests/test_cch_real.py | thelabnyc/django-oscar-cch | d98832c9cf642c6d241e3aaf4b1dc631c3d5ce0e | [
"0BSD"
] | null | null | null | src/oscarcch/tests/test_cch_real.py | thelabnyc/django-oscar-cch | d98832c9cf642c6d241e3aaf4b1dc631c3d5ce0e | [
"0BSD"
] | 14 | 2020-02-11T21:53:07.000Z | 2022-01-13T00:40:33.000Z | src/oscarcch/tests/test_cch_real.py | thelabnyc/django-oscar-cch | d98832c9cf642c6d241e3aaf4b1dc631c3d5ce0e | [
"0BSD"
] | 1 | 2016-05-31T10:02:38.000Z | 2016-05-31T10:02:38.000Z | from decimal import Decimal as D
from oscar.core.loading import get_model, get_class
from ..calculator import CCHTaxCalculator
from .base import BaseTest
import unittest
Basket = get_model("basket", "Basket")
ShippingAddress = get_model("order", "ShippingAddress")
Country = get_model("address", "Country")
PartnerAddre... | 43.518519 | 86 | 0.685957 | 592 | 4,700 | 5.212838 | 0.170608 | 0.174984 | 0.089436 | 0.112767 | 0.792612 | 0.792612 | 0.792612 | 0.769929 | 0.745949 | 0.745949 | 0 | 0.034049 | 0.18766 | 4,700 | 107 | 87 | 43.925234 | 0.774227 | 0 | 0 | 0.586957 | 0 | 0 | 0.114255 | 0 | 0 | 0 | 0 | 0 | 0.434783 | 1 | 0.021739 | false | 0 | 0.054348 | 0 | 0.086957 | 0.01087 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1ca932efae1100c1d8781ae57b18476dccde0c65 | 13,306 | py | Python | tests/service_test.py | Taller-de-programacion-2-Grupo-14/ubademy-exams | f84e8b4823f6443ba4124e4e8682ccc4c92620dd | [
"MIT"
] | null | null | null | tests/service_test.py | Taller-de-programacion-2-Grupo-14/ubademy-exams | f84e8b4823f6443ba4124e4e8682ccc4c92620dd | [
"MIT"
] | 1 | 2021-12-23T06:00:01.000Z | 2021-12-23T06:00:01.000Z | tests/service_test.py | Taller-de-programacion-2-Grupo-14/ubademy-exams | f84e8b4823f6443ba4124e4e8682ccc4c92620dd | [
"MIT"
] | null | null | null | import unittest
from unittest.mock import Mock, patch
from exceptions.ExamException import (
IsNotTheCourseCreator,
ExamsLimitReached,
ExamDoesNotExist,
InvalidUserAction,
ResolutionDoesNotExists,
ExamAlreadyResolvedException,
)
from persistence.mongo import MongoDB
from validator.ExamValidator ... | 43.201299 | 84 | 0.697129 | 1,474 | 13,306 | 5.920624 | 0.063772 | 0.096826 | 0.070127 | 0.068523 | 0.869829 | 0.839807 | 0.829266 | 0.815515 | 0.791108 | 0.779649 | 0 | 0.002559 | 0.206974 | 13,306 | 307 | 85 | 43.34202 | 0.824488 | 0 | 0 | 0.654545 | 0 | 0 | 0.151511 | 0.150534 | 0 | 0 | 0 | 0 | 0.087273 | 1 | 0.087273 | false | 0 | 0.021818 | 0 | 0.138182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1cadf3b1bd70aaf608846d5dbea18b9b1b93220e | 29,640 | py | Python | Vitis-AI-Quantizer/vai_q_pytorch/pytorch_binding/pytorch_nndct/parse/node_transformer.py | dendisuhubdy/Vitis-AI | 524f65224c52314155dafc011d488ed30e458fcb | [
"Apache-2.0"
] | 1 | 2021-08-30T13:42:30.000Z | 2021-08-30T13:42:30.000Z | Vitis-AI-Quantizer/vai_q_pytorch/pytorch_binding/pytorch_nndct/parse/node_transformer.py | dendisuhubdy/Vitis-AI | 524f65224c52314155dafc011d488ed30e458fcb | [
"Apache-2.0"
] | null | null | null | Vitis-AI-Quantizer/vai_q_pytorch/pytorch_binding/pytorch_nndct/parse/node_transformer.py | dendisuhubdy/Vitis-AI | 524f65224c52314155dafc011d488ed30e458fcb | [
"Apache-2.0"
] | null | null | null | import torch
from nndct_shared.base import NNDCT_OP
from nndct_shared.nndct_graph import Graph, Node, Tensor
from .torch_op_def import *
from .utils import _GRAPH_SCOPE_SYM, get_full_name
class _NodeCreator(object):
def __init__(self):
self._idx = 0
def __call__(self,
graph,
node... | 42.464183 | 122 | 0.576316 | 4,106 | 29,640 | 3.830492 | 0.033609 | 0.090285 | 0.085961 | 0.103764 | 0.92453 | 0.908761 | 0.903166 | 0.855417 | 0.845053 | 0.842828 | 0 | 0.012492 | 0.300472 | 29,640 | 697 | 123 | 42.525108 | 0.746069 | 0.044467 | 0 | 0.687708 | 0 | 0 | 0.085725 | 0.003323 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009967 | false | 0 | 0.008306 | 0.001661 | 0.026578 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e809cd3ad6378d41459ef0a7cc770d396ed60895 | 1,234 | py | Python | server/map_generator.py | anuragpeshne/voyager | 95b5ef7a9e7a7dde36708ac8bff25ef96c6a72e0 | [
"MIT"
] | null | null | null | server/map_generator.py | anuragpeshne/voyager | 95b5ef7a9e7a7dde36708ac8bff25ef96c6a72e0 | [
"MIT"
] | null | null | null | server/map_generator.py | anuragpeshne/voyager | 95b5ef7a9e7a7dde36708ac8bff25ef96c6a72e0 | [
"MIT"
] | null | null | null | def generate(map_name):
name, size = map_name.split('_')
if name == 'nile':
return __generate_nile(size)
elif name == 'himalaya':
return __generate_himalaya(size)
else:
return __generate_default(size)
def __generate_nile(size):
map_ = [
[1, 1, 1, 500, 1, 1, 1, ... | 28.045455 | 46 | 0.385737 | 186 | 1,234 | 2.419355 | 0.134409 | 0.293333 | 0.326667 | 0.311111 | 0.486667 | 0.455556 | 0.384444 | 0.284444 | 0.284444 | 0.213333 | 0 | 0.271967 | 0.418963 | 1,234 | 43 | 47 | 28.697674 | 0.355649 | 0 | 0 | 0.205128 | 1 | 0 | 0.029984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.205128 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e80bc6b130a15fb674ed9d8a5405b6412f446f94 | 95 | py | Python | src/hub/dataload/sources/wellderly/__init__.py | erikyao/myvariant.info | a4eaaca7ab6c069199f8942d5afae2dece908147 | [
"Apache-2.0"
] | 39 | 2017-07-01T22:34:39.000Z | 2022-03-15T22:25:59.000Z | src/hub/dataload/sources/wellderly/__init__.py | erikyao/myvariant.info | a4eaaca7ab6c069199f8942d5afae2dece908147 | [
"Apache-2.0"
] | 105 | 2017-06-28T17:26:06.000Z | 2022-03-17T17:49:53.000Z | src/hub/dataload/sources/wellderly/__init__.py | erikyao/myvariant.info | a4eaaca7ab6c069199f8942d5afae2dece908147 | [
"Apache-2.0"
] | 14 | 2017-06-12T18:29:36.000Z | 2021-03-18T15:51:27.000Z | from .wellderly_dumper import WellderlyDumper
from .wellderly_upload import WellderlyUploader
| 23.75 | 47 | 0.884211 | 10 | 95 | 8.2 | 0.7 | 0.317073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094737 | 95 | 3 | 48 | 31.666667 | 0.953488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e82c8c34c56128a930322e74c75ef45fc98ff7b3 | 35 | py | Python | yUMItools/__init__.py | adamn102/yUMItools | c2a4a40ffc672dd7168f3262b4b27ada1c609de9 | [
"MIT"
] | null | null | null | yUMItools/__init__.py | adamn102/yUMItools | c2a4a40ffc672dd7168f3262b4b27ada1c609de9 | [
"MIT"
] | null | null | null | yUMItools/__init__.py | adamn102/yUMItools | c2a4a40ffc672dd7168f3262b4b27ada1c609de9 | [
"MIT"
] | null | null | null | from yUMItools.utils import YUMISet | 35 | 35 | 0.885714 | 5 | 35 | 6.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 35 | 1 | 35 | 35 | 0.96875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
08fc0a6157001aa817e8b654705fcc065cd1046a | 16,565 | py | Python | src/geocat/comp/eofunc.py | dimaclimate/geocat-comp | dcb55e22d69d96762b683652cf83f6b9ef4fcc38 | [
"Apache-2.0"
] | null | null | null | src/geocat/comp/eofunc.py | dimaclimate/geocat-comp | dcb55e22d69d96762b683652cf83f6b9ef4fcc38 | [
"Apache-2.0"
] | null | null | null | src/geocat/comp/eofunc.py | dimaclimate/geocat-comp | dcb55e22d69d96762b683652cf83f6b9ef4fcc38 | [
"Apache-2.0"
] | null | null | null | import warnings
from typing import Iterable
import numpy as np
import xarray as xr
from eofs.xarray import Eof
def _generate_eofs_solver(data, time_dim=0, weights=None, center=True, ddof=1):
"""Convenience function to be used in both `eofunc_eofs` and `eofunc_pcs`
functions."""
# ''' Start of boilerplat... | 47.737752 | 120 | 0.665801 | 2,322 | 16,565 | 4.715762 | 0.167528 | 0.019178 | 0.016438 | 0.018904 | 0.76411 | 0.75169 | 0.730411 | 0.723014 | 0.706393 | 0.695251 | 0 | 0.005375 | 0.258738 | 16,565 | 346 | 121 | 47.875723 | 0.886391 | 0.668458 | 0 | 0.469027 | 1 | 0 | 0.178804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044248 | false | 0 | 0.044248 | 0 | 0.132743 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
08fc5b54b27a2297b81e7f1f32927f318c1558e5 | 385 | py | Python | kaggle_adcal_2021/__init__.py | sinchir0/kaggle_adcal_2021 | 15eec5c3b99e98afc07c11c278230191379a1e30 | [
"MIT"
] | null | null | null | kaggle_adcal_2021/__init__.py | sinchir0/kaggle_adcal_2021 | 15eec5c3b99e98afc07c11c278230191379a1e30 | [
"MIT"
] | null | null | null | kaggle_adcal_2021/__init__.py | sinchir0/kaggle_adcal_2021 | 15eec5c3b99e98afc07c11c278230191379a1e30 | [
"MIT"
] | null | null | null | from kaggle_adcal_2021.model.sample import Sample
from kaggle_adcal_2021.model.get_tweet import GetTweetTask
from kaggle_adcal_2021.model.extract_text_info import PreprocessTextTask
from kaggle_adcal_2021.model.merge_tweet import MergeTweetTask
from kaggle_adcal_2021.model.classify_lang import AddClassifyLangColTask
fr... | 64.166667 | 72 | 0.909091 | 54 | 385 | 6.148148 | 0.407407 | 0.180723 | 0.271084 | 0.343373 | 0.433735 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066298 | 0.05974 | 385 | 6 | 73 | 64.166667 | 0.850829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
1c072e6aad3e3e024f07c2255c46e88552e3c74b | 87 | py | Python | cvgear/framework/torch/__init__.py | ivanpp/cvgear | a09ab5119f6578d7960042180d66141cf66d4dae | [
"MIT"
] | 1 | 2020-05-20T03:33:15.000Z | 2020-05-20T03:33:15.000Z | cvgear/framework/torch/__init__.py | ivanpp/cvgear | a09ab5119f6578d7960042180d66141cf66d4dae | [
"MIT"
] | null | null | null | cvgear/framework/torch/__init__.py | ivanpp/cvgear | a09ab5119f6578d7960042180d66141cf66d4dae | [
"MIT"
] | null | null | null | from .loader import TorchNestedLoader
from .loader_advanced import TorchNestedLoaderAdv | 43.5 | 49 | 0.896552 | 9 | 87 | 8.555556 | 0.666667 | 0.25974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08046 | 87 | 2 | 49 | 43.5 | 0.9625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
98fc11aaff77a342e873b3f48e57cd78d2c46606 | 4,964 | py | Python | swagger_marshmallow_codegen/tests/legacy_dst/03paths.py | Danil-Grigorev/swagger-marshmallow-codegen | 4c077f6e1ef535bcbdbf1f643f97bc4cbc62c0e8 | [
"MIT"
] | 49 | 2017-02-05T17:32:18.000Z | 2022-01-30T13:20:22.000Z | swagger_marshmallow_codegen/tests/legacy_dst/03paths.py | Danil-Grigorev/swagger-marshmallow-codegen | 4c077f6e1ef535bcbdbf1f643f97bc4cbc62c0e8 | [
"MIT"
] | 62 | 2016-12-27T15:38:28.000Z | 2021-09-30T02:47:00.000Z | swagger_marshmallow_codegen/tests/legacy_dst/03paths.py | Danil-Grigorev/swagger-marshmallow-codegen | 4c077f6e1ef535bcbdbf1f643f97bc4cbc62c0e8 | [
"MIT"
] | 10 | 2017-07-19T12:38:25.000Z | 2020-04-07T09:11:22.000Z | from marshmallow import (
Schema,
fields,
)
from marshmallow.validate import (
Length,
Regexp,
)
from swagger_marshmallow_codegen.schema import PrimitiveValueSchema
import re
class Label(Schema):
color = fields.String(validate=[Length(min=6, max=6, equal=None)])
name = fields.String()
url ... | 40.032258 | 158 | 0.64726 | 593 | 4,964 | 5.283305 | 0.165261 | 0.076604 | 0.051069 | 0.102139 | 0.827322 | 0.827322 | 0.827322 | 0.827322 | 0.827322 | 0.827322 | 0 | 0.002909 | 0.238114 | 4,964 | 123 | 159 | 40.357724 | 0.825489 | 0.04029 | 0 | 0.666667 | 0 | 0 | 0.21988 | 0.018072 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012821 | false | 0.025641 | 0.051282 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c731efdde3d041e5e7f0bea67300e41333b7d6ee | 51,402 | py | Python | logo.py | leigh123linux/streamtuner2 | 43ded3a68bcf3d968a99c849d779fc8c3fb3d8d8 | [
"MIT"
] | 1 | 2019-03-03T19:58:01.000Z | 2019-03-03T19:58:01.000Z | logo.py | leigh123linux/streamtuner2 | 43ded3a68bcf3d968a99c849d779fc8c3fb3d8d8 | [
"MIT"
] | null | null | null | logo.py | leigh123linux/streamtuner2 | 43ded3a68bcf3d968a99c849d779fc8c3fb3d8d8 | [
"MIT"
] | null | null | null | # type: binary
# api: gtk
# title: streamtuner2 logo
# description: encoded PNG
#
# Allows to be packaged within PYZ archive.
png = """
iVBORw0KGgoAAAANSUhEUgAAAUEAAABzCAYAAAAGy7AjAABq0UlEQVR4Aezda2xT5xnAcWi77rJKm9bJ9rHPCSG1WBLH5ziOnQtNRaR1+9BpFxB0ZQgGE0ViarnQDhQI5AIhxECAXEJCVkhKYlInjnMhhGZkhNwdiqpW+7BFmrRqFZXoNE1ojC4... | 446.973913 | 512 | 0.966577 | 1,607 | 51,402 | 30.917237 | 0.97822 | 0.000242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15074 | 0.002626 | 51,402 | 114 | 513 | 450.894737 | 0.818382 | 0.002198 | 0 | 0.019048 | 0 | 0.828571 | 0.999318 | 0.997309 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c752230204736fb051a7e7f6aee2d73d9d7959d0 | 273 | py | Python | site-packages/serpent/machine_learning/context_classification/context_classifiers/__init__.py | nanpuhaha/SerpentAI | 6af1105fc0a970227a0d7c11e6a0da1bd0bacec6 | [
"MIT"
] | 14 | 2021-10-31T10:02:30.000Z | 2022-03-31T06:16:57.000Z | site-packages/serpent/machine_learning/context_classification/context_classifiers/__init__.py | nanpuhaha/SerpentAI | 6af1105fc0a970227a0d7c11e6a0da1bd0bacec6 | [
"MIT"
] | 6 | 2021-09-26T21:18:30.000Z | 2022-02-01T01:26:18.000Z | serpent/machine_learning/context_classification/context_classifiers/__init__.py | PiterPentester/SerpentAI | 614bafd3c2df3ee6736309d46a7b92325f9a2d15 | [
"MIT"
] | 2 | 2021-11-14T00:21:27.000Z | 2022-02-19T00:26:21.000Z | from serpent.machine_learning.context_classification.context_classifiers.svm_context_classifier import SVMContextClassifier
from serpent.machine_learning.context_classification.context_classifiers.cnn_inception_v3_context_classifier import CNNInceptionV3ContextClassifier
| 68.25 | 147 | 0.937729 | 28 | 273 | 8.714286 | 0.535714 | 0.090164 | 0.147541 | 0.213115 | 0.532787 | 0.532787 | 0.532787 | 0.532787 | 0 | 0 | 0 | 0.007576 | 0.032967 | 273 | 3 | 148 | 91 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4053350b2cc870776918c441df73f7d514e34d89 | 139 | py | Python | test/conftest.py | jaimeHMol/airflow-kubernetes | f520216555c00dc87158bd7c169d3f36722acac3 | [
"MIT"
] | 6 | 2020-11-18T11:02:20.000Z | 2021-11-16T13:00:20.000Z | test/conftest.py | jaimeHMol/airflow-kubernetes | f520216555c00dc87158bd7c169d3f36722acac3 | [
"MIT"
] | null | null | null | test/conftest.py | jaimeHMol/airflow-kubernetes | f520216555c00dc87158bd7c169d3f36722acac3 | [
"MIT"
] | 2 | 2020-11-18T11:02:22.000Z | 2020-11-19T04:18:22.000Z | import pytest
from airflow.models import DagBag
@pytest.fixture(scope="session")
def dagbag():
return DagBag(include_examples=False)
| 17.375 | 41 | 0.776978 | 18 | 139 | 5.944444 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122302 | 139 | 7 | 42 | 19.857143 | 0.877049 | 0 | 0 | 0 | 0 | 0 | 0.05036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
40756b4079cdc5e77b816bbd3d494316b33e2713 | 193 | py | Python | datasets/utils/__init__.py | YorkSu/hat | b646b6689f3d81c985ed13f3d5c23b6c717fd07d | [
"Apache-2.0"
] | 1 | 2019-04-10T04:49:30.000Z | 2019-04-10T04:49:30.000Z | datasets/utils/__init__.py | Suger131/HAT-tf2.0 | b646b6689f3d81c985ed13f3d5c23b6c717fd07d | [
"Apache-2.0"
] | null | null | null | datasets/utils/__init__.py | Suger131/HAT-tf2.0 | b646b6689f3d81c985ed13f3d5c23b6c717fd07d | [
"Apache-2.0"
] | 1 | 2019-06-14T05:53:42.000Z | 2019-06-14T05:53:42.000Z | """
dataset tools
NOTE:
Better not change anything.
"""
# pylint: disable=wildcard-import
from hat.datasets.utils.dsbuilder import *
from hat.datasets.utils.datagenerator import DG
| 16.083333 | 47 | 0.735751 | 24 | 193 | 5.916667 | 0.75 | 0.140845 | 0.183099 | 0.295775 | 0.366197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165803 | 193 | 11 | 48 | 17.545455 | 0.881988 | 0.435233 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
408d8e241ee39c59b205cdee5b121ec5daf67f68 | 166 | py | Python | eecs-online-server/homework/admin.py | luhc228/eecs-online-test | 72cbe3d238b26c3ee4d03fbde59c1e34f4fc29cd | [
"MIT"
] | 4 | 2020-01-09T05:10:30.000Z | 2020-10-18T07:14:51.000Z | eecs-online-server/homework/admin.py | luhc228/eecs-online | 72cbe3d238b26c3ee4d03fbde59c1e34f4fc29cd | [
"MIT"
] | 14 | 2019-12-02T10:53:06.000Z | 2022-03-12T00:09:05.000Z | eecs-online-server/homework/admin.py | luhc228/eecs-online-test | 72cbe3d238b26c3ee4d03fbde59c1e34f4fc29cd | [
"MIT"
] | 4 | 2019-11-02T08:34:45.000Z | 2019-12-10T13:10:05.000Z | from django.contrib import admin
# Register your models here.
from . import models
admin.site.register(models.Homework)
admin.site.register(models.HomeworkQuestion) | 23.714286 | 44 | 0.819277 | 22 | 166 | 6.181818 | 0.545455 | 0.132353 | 0.25 | 0.338235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096386 | 166 | 7 | 44 | 23.714286 | 0.906667 | 0.156627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
40b759bdb145ad81c41241e343c1354284523512 | 16 | py | Python | pckg2/user22.py | balqui/nothing01234 | 3dae2ed2c9def2886c9fdae88b6ba8ddd061b5ac | [
"MIT"
] | null | null | null | pckg2/user22.py | balqui/nothing01234 | 3dae2ed2c9def2886c9fdae88b6ba8ddd061b5ac | [
"MIT"
] | null | null | null | pckg2/user22.py | balqui/nothing01234 | 3dae2ed2c9def2886c9fdae88b6ba8ddd061b5ac | [
"MIT"
] | null | null | null | from b import B
| 8 | 15 | 0.75 | 4 | 16 | 3 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 16 | 1 | 16 | 16 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
40bf97665eccddc34f0f04bfdfae47bd83193b1b | 28 | py | Python | Language/helloworldsanthosh.py | Guuh137/Hacktoberfest | 165cb4e66757764408830ed131ff704f48f8a620 | [
"Apache-2.0"
] | 2 | 2019-10-06T15:37:50.000Z | 2019-10-06T16:51:42.000Z | Language/helloworldsanthosh.py | Guuh137/Hacktoberfest | 165cb4e66757764408830ed131ff704f48f8a620 | [
"Apache-2.0"
] | null | null | null | Language/helloworldsanthosh.py | Guuh137/Hacktoberfest | 165cb4e66757764408830ed131ff704f48f8a620 | [
"Apache-2.0"
] | null | null | null | print("Hello World program") | 28 | 28 | 0.785714 | 4 | 28 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 28 | 1 | 28 | 28 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
90f52c7d97da8a1c35ee417038917426882fe85b | 1,242 | py | Python | test/expensive_test_signature_2.py | salilab/rmf | 4895bff9d22381882ac38180bdd025e22bdc7c00 | [
"Apache-2.0"
] | 2 | 2017-12-22T18:09:47.000Z | 2019-12-18T05:00:50.000Z | test/expensive_test_signature_2.py | salilab/rmf | 4895bff9d22381882ac38180bdd025e22bdc7c00 | [
"Apache-2.0"
] | 5 | 2015-03-07T19:32:39.000Z | 2021-04-22T20:00:10.000Z | test/expensive_test_signature_2.py | salilab/rmf | 4895bff9d22381882ac38180bdd025e22bdc7c00 | [
"Apache-2.0"
] | 2 | 2015-03-12T18:34:23.000Z | 2015-06-19T20:15:14.000Z | import unittest
import RMF
class Tests(unittest.TestCase):
def test_0(self):
"""Test that signatures make sense and are stable"""
try:
import RMF_HDF5
except:
return
RMF.set_log_level("Off")
path = RMF._get_test_input_file_path("rep_and_geom.rmf")
... | 25.875 | 69 | 0.578905 | 157 | 1,242 | 4.159236 | 0.318471 | 0.05513 | 0.061256 | 0.091884 | 0.866769 | 0.866769 | 0.866769 | 0.866769 | 0.866769 | 0.790199 | 0 | 0.014406 | 0.329308 | 1,242 | 47 | 70 | 26.425532 | 0.769508 | 0.091787 | 0 | 0.628571 | 0 | 0 | 0.091398 | 0.062724 | 0 | 0 | 0 | 0 | 0.057143 | 1 | 0.057143 | false | 0 | 0.114286 | 0 | 0.257143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
29040c7381b3c063c849b37afae2e433cdfe8e31 | 198 | py | Python | assignment4/experiments/__init__.py | prestononeal/CS-7641-assignments | c3a6815ba1be837084c60c3dd0dc8e8e702aa9b7 | [
"MIT"
] | 148 | 2018-12-18T21:14:04.000Z | 2022-03-04T09:13:21.000Z | assignment4/experiments/__init__.py | prestononeal/CS-7641-assignments | c3a6815ba1be837084c60c3dd0dc8e8e702aa9b7 | [
"MIT"
] | 22 | 2019-01-20T00:11:06.000Z | 2021-05-01T17:21:58.000Z | assignment4/experiments/__init__.py | prestononeal/CS-7641-assignments | c3a6815ba1be837084c60c3dd0dc8e8e702aa9b7 | [
"MIT"
] | 172 | 2019-01-09T06:01:54.000Z | 2022-03-25T22:53:19.000Z | from .base import *
from .policy_iteration import *
from .value_iteration import *
from .q_learner import *
# from .plotting import *
__all__ = ['policy_iteration', 'value_iteration', 'q_learner']
| 24.75 | 62 | 0.752525 | 25 | 198 | 5.56 | 0.4 | 0.28777 | 0.273381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 198 | 7 | 63 | 28.285714 | 0.812866 | 0.116162 | 0 | 0 | 0 | 0 | 0.231214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
290ea779877f36acc53ea7c96d149b10971ba1f1 | 24 | py | Python | src/pipeline_docs/pipeline_atac_consensus_balanced_peaks/__init__.py | jaime11/pipeline_atac_consensus_balanced_peaks | 9d3d5095c4977e8f1883b49a33400a6ffac6da22 | [
"MIT"
] | null | null | null | src/pipeline_docs/pipeline_atac_consensus_balanced_peaks/__init__.py | jaime11/pipeline_atac_consensus_balanced_peaks | 9d3d5095c4977e8f1883b49a33400a6ffac6da22 | [
"MIT"
] | null | null | null | src/pipeline_docs/pipeline_atac_consensus_balanced_peaks/__init__.py | jaime11/pipeline_atac_consensus_balanced_peaks | 9d3d5095c4977e8f1883b49a33400a6ffac6da22 | [
"MIT"
] | null | null | null |
from trackers import *
| 8 | 22 | 0.75 | 3 | 24 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 24 | 2 | 23 | 12 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
29275f3e604cc02cd345bb199800775cc9993b46 | 31 | py | Python | hiveplot/__init__.py | isrobson/hiveplot | 2c4340b1f9ab5d18c7f6aa9663e3cad0bd9ac151 | [
"MIT"
] | null | null | null | hiveplot/__init__.py | isrobson/hiveplot | 2c4340b1f9ab5d18c7f6aa9663e3cad0bd9ac151 | [
"MIT"
] | null | null | null | hiveplot/__init__.py | isrobson/hiveplot | 2c4340b1f9ab5d18c7f6aa9663e3cad0bd9ac151 | [
"MIT"
] | null | null | null | from .hiveplot import HivePlot
| 15.5 | 30 | 0.83871 | 4 | 31 | 6.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 1 | 31 | 31 | 0.962963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
292f76a06cd7c18792c8e973956215fef8eb920a | 7,490 | py | Python | tests/test_views.py | Nonse/monkeys | 93681edf18126cc49858992f80df25a7cff931e8 | [
"MIT"
] | null | null | null | tests/test_views.py | Nonse/monkeys | 93681edf18126cc49858992f80df25a7cff931e8 | [
"MIT"
] | null | null | null | tests/test_views.py | Nonse/monkeys | 93681edf18126cc49858992f80df25a7cff931e8 | [
"MIT"
] | null | null | null | from flask import url_for
from monkeygod import models
def test_index(app):
with app.test_client() as client:
res = client.get(url_for('monkey_views.index'))
assert 'Meet the Monkeys' in str(res.data)
def test_search_basic(app, testdata_with_friends):
with app.test_client() as client:
re... | 37.638191 | 78 | 0.586782 | 913 | 7,490 | 4.651698 | 0.109529 | 0.035319 | 0.067813 | 0.096068 | 0.80292 | 0.783141 | 0.753709 | 0.734165 | 0.712503 | 0.703555 | 0 | 0.028263 | 0.296128 | 7,490 | 198 | 79 | 37.828283 | 0.777314 | 0 | 0 | 0.539877 | 0 | 0 | 0.210147 | 0.044726 | 0 | 0 | 0 | 0 | 0.245399 | 1 | 0.07362 | false | 0 | 0.01227 | 0 | 0.08589 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
295cebd462a47fb162e6d09499799ff820675545 | 412 | py | Python | ludwig/encoders/__init__.py | dantreiman/ludwig | daeffd21f9eef524afb2037763abd07a93228c2a | [
"Apache-2.0"
] | 7,739 | 2019-02-11T14:06:31.000Z | 2020-12-16T18:30:29.000Z | ludwig/encoders/__init__.py | dantreiman/ludwig | daeffd21f9eef524afb2037763abd07a93228c2a | [
"Apache-2.0"
] | 769 | 2019-02-11T16:13:20.000Z | 2020-12-16T17:26:11.000Z | ludwig/encoders/__init__.py | dantreiman/ludwig | daeffd21f9eef524afb2037763abd07a93228c2a | [
"Apache-2.0"
] | 975 | 2019-02-11T15:55:54.000Z | 2020-12-14T21:45:39.000Z | # register all encoders
import ludwig.encoders.bag_encoders
import ludwig.encoders.binary_encoders
import ludwig.encoders.category_encoders
import ludwig.encoders.date_encoders
import ludwig.encoders.generic_encoders
import ludwig.encoders.h3_encoders
import ludwig.encoders.image_encoders
import ludwig.encoders.sequenc... | 34.333333 | 44 | 0.881068 | 54 | 412 | 6.537037 | 0.296296 | 0.396601 | 0.566572 | 0.793201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002597 | 0.065534 | 412 | 11 | 45 | 37.454545 | 0.914286 | 0.063107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
464269a1ba8e9b5928956da894f1c3910a31e77e | 7,260 | py | Python | tests/filelinecomparedifflineswithtoleranceunittests.py | thomasms/filecompare | 393af84939689481da27460cccb52040e6171e01 | [
"MIT"
] | null | null | null | tests/filelinecomparedifflineswithtoleranceunittests.py | thomasms/filecompare | 393af84939689481da27460cccb52040e6171e01 | [
"MIT"
] | null | null | null | tests/filelinecomparedifflineswithtoleranceunittests.py | thomasms/filecompare | 393af84939689481da27460cccb52040e6171e01 | [
"MIT"
] | null | null | null | import unittest
import os.path
import filecompare as fc
from tests.filelinecompareunittests import FileLineCompareUnitTest
class FileLineCompareDiffLinesWithToleranceUnitTest(FileLineCompareUnitTest, unittest.TestCase):
def setUp(self):
FileLineCompareUnitTest.setUp(self)
self.filename_origi... | 54.586466 | 135 | 0.734573 | 863 | 7,260 | 5.887601 | 0.103129 | 0.107459 | 0.037788 | 0.060618 | 0.925015 | 0.911435 | 0.894115 | 0.884668 | 0.883094 | 0.874237 | 0 | 0.024605 | 0.171488 | 7,260 | 132 | 136 | 55 | 0.820116 | 0 | 0 | 0.632653 | 0 | 0 | 0.073141 | 0.01708 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.173469 | false | 0.010204 | 0.040816 | 0.020408 | 0.244898 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4687fbf3f04a651844a3b068784d37dbe87907a7 | 47 | py | Python | __init__.py | kivy-garden/garden.resizable_behavior | d9b9bf1fdb222b6d6f344e23e2dd7777c66e4d43 | [
"MIT"
] | 8 | 2016-12-29T01:58:18.000Z | 2021-01-12T02:45:13.000Z | __init__.py | kivy-garden/garden.resizable_behavior | d9b9bf1fdb222b6d6f344e23e2dd7777c66e4d43 | [
"MIT"
] | 3 | 2019-05-19T11:06:18.000Z | 2021-01-04T09:25:20.000Z | __init__.py | kivy-garden/garden.resizable_behavior | d9b9bf1fdb222b6d6f344e23e2dd7777c66e4d43 | [
"MIT"
] | 4 | 2017-04-08T09:57:25.000Z | 2021-03-24T19:10:17.000Z | from behaviors.resize import ResizableBehavior
| 23.5 | 46 | 0.893617 | 5 | 47 | 8.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 47 | 1 | 47 | 47 | 0.976744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
46b275d6715176c8da4522a81061dbf91f6dcbac | 44 | py | Python | src/abb_communication/clients/rfl_robot/communication/__init__.py | createchaos/abb_communication | e4f5eae90f9423d8a20be9f6e0738467d1a5f5aa | [
"MIT"
] | 3 | 2020-02-07T20:16:16.000Z | 2020-12-18T01:14:51.000Z | src/abb_communication/clients/rfl_robot/communication/__init__.py | createchaos/abb_communication | e4f5eae90f9423d8a20be9f6e0738467d1a5f5aa | [
"MIT"
] | 21 | 2021-01-14T14:55:03.000Z | 2021-01-28T00:44:15.000Z | src/abb_communication/clients/rfl_robot/communication/__init__.py | createchaos/abb_communication | e4f5eae90f9423d8a20be9f6e0738467d1a5f5aa | [
"MIT"
] | 1 | 2021-04-01T15:59:21.000Z | 2021-04-01T15:59:21.000Z | from communication import ABBCommunication
| 22 | 43 | 0.886364 | 4 | 44 | 9.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 44 | 1 | 44 | 44 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d3be550d26654194ee488861bb3f3563d5323fea | 601 | py | Python | lesson8/Car.py | vinaymayar/python-game-workshop | e990f51815c2080a0d702c9d90dac8e8c2a35d45 | [
"MIT"
] | 1 | 2016-10-11T19:27:08.000Z | 2016-10-11T19:27:08.000Z | lesson8/Car.py | vinaymayar/python-game-workshop | e990f51815c2080a0d702c9d90dac8e8c2a35d45 | [
"MIT"
] | null | null | null | lesson8/Car.py | vinaymayar/python-game-workshop | e990f51815c2080a0d702c9d90dac8e8c2a35d45 | [
"MIT"
] | null | null | null | class Car:
def __init__(self, make, model, kilometers_driven):
self.make = make
self.model = model
self.kilometers_driven = kilometers_driven
def get_make(self):
return self.make
def get_model(self):
return self.model
def get_kilometers(self):
return se... | 24.04 | 55 | 0.65391 | 71 | 601 | 5.309859 | 0.225352 | 0.297082 | 0.265252 | 0.238727 | 0.233422 | 0.233422 | 0 | 0 | 0 | 0 | 0 | 0.009132 | 0.271215 | 601 | 24 | 56 | 25.041667 | 0.851598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
316e42054c89053292cf8c9bffbfa290a6efa55c | 46 | py | Python | test.py | unofficialdxnny/ToolX | b1708cdba31a3e648804d6711235d885e0980ff6 | [
"MIT"
] | null | null | null | test.py | unofficialdxnny/ToolX | b1708cdba31a3e648804d6711235d885e0980ff6 | [
"MIT"
] | null | null | null | test.py | unofficialdxnny/ToolX | b1708cdba31a3e648804d6711235d885e0980ff6 | [
"MIT"
] | 1 | 2022-02-20T12:32:18.000Z | 2022-02-20T12:32:18.000Z | import webbrowser
print(webbrowser._browsers) | 23 | 27 | 0.869565 | 5 | 46 | 7.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 46 | 2 | 27 | 23 | 0.906977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
317bf78abe09da12e3b776e15198a060538f48ee | 1,173 | py | Python | art.py | sarthakkarandikar03/Guess-The-Number | aa8d7f7e229b84c714e89e6de62057f3fe525cf1 | [
"CC0-1.0"
] | null | null | null | art.py | sarthakkarandikar03/Guess-The-Number | aa8d7f7e229b84c714e89e6de62057f3fe525cf1 | [
"CC0-1.0"
] | null | null | null | art.py | sarthakkarandikar03/Guess-The-Number | aa8d7f7e229b84c714e89e6de62057f3fe525cf1 | [
"CC0-1.0"
] | null | null | null | # includes all the art
logo = """
_______ __ __ _______ _______. _______. .___________. __ __ _______ .__ __. __ __ .___ ___. .______ _______ .______
/ _____|| | | | | ____| / | / | | || | | | | ____| | \ | | | | | | | \/ ... | 97.75 | 161 | 0.207161 | 5 | 1,173 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.574595 | 1,173 | 11 | 162 | 106.636364 | 0.042084 | 0.01705 | 0 | 0 | 0 | 0.75 | 0.986099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3194b37743fded68e8e8fb264a6531da9e66cb21 | 37 | py | Python | tests/test_example.py | sergeiissaev/fibrosis-quantification-software | ac0ead806aca11ebf8c1ecf375d3b037988f3fa1 | [
"Apache-2.0"
] | null | null | null | tests/test_example.py | sergeiissaev/fibrosis-quantification-software | ac0ead806aca11ebf8c1ecf375d3b037988f3fa1 | [
"Apache-2.0"
] | null | null | null | tests/test_example.py | sergeiissaev/fibrosis-quantification-software | ac0ead806aca11ebf8c1ecf375d3b037988f3fa1 | [
"Apache-2.0"
] | null | null | null | def test_example():
assert False
| 12.333333 | 19 | 0.702703 | 5 | 37 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216216 | 37 | 2 | 20 | 18.5 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
31a6e370260ebb397f9ca1f35ba1a89028938762 | 22 | py | Python | altitude/teachers/__init__.py | StamKaly/altitude-mod | e77eb156c933aeae9b0a89841a64d5df6e99da76 | [
"MIT"
] | 2 | 2016-10-08T11:28:26.000Z | 2018-07-11T16:53:36.000Z | altitude/teachers/__init__.py | StamKaly/altitude-mod | e77eb156c933aeae9b0a89841a64d5df6e99da76 | [
"MIT"
] | 1 | 2016-09-06T12:34:19.000Z | 2016-09-06T16:14:29.000Z | altitude/teachers/__init__.py | StamKaly/altitude-mod | e77eb156c933aeae9b0a89841a64d5df6e99da76 | [
"MIT"
] | null | null | null | from . import teachers | 22 | 22 | 0.818182 | 3 | 22 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
31b5650787afc20f7afca9881750b845bed1f4d2 | 2,084 | py | Python | pytest-virtualenv/tests/unit/test_package_entry.py | RaiVaibhav/pytest-plugins | b21eef7fb2d876b3910f4a476875f9f157275b49 | [
"MIT"
] | 282 | 2015-12-01T12:40:31.000Z | 2019-10-30T23:30:54.000Z | pytest-virtualenv/tests/unit/test_package_entry.py | RaiVaibhav/pytest-plugins | b21eef7fb2d876b3910f4a476875f9f157275b49 | [
"MIT"
] | 126 | 2015-09-02T14:31:02.000Z | 2019-10-21T20:32:18.000Z | pytest-virtualenv/tests/unit/test_package_entry.py | RaiVaibhav/pytest-plugins | b21eef7fb2d876b3910f4a476875f9f157275b49 | [
"MIT"
] | 55 | 2015-09-21T09:11:05.000Z | 2019-10-27T00:44:32.000Z | from pytest_virtualenv import PackageEntry
def test_issrc_dev_in_version_plus_path_to_source_True():
p = PackageEntry('acme.x', '1.3.10dev1', 'path/to/source')
assert p.issrc
def test_issrc_no_dev_in_version_plus_path_to_source_False():
p = PackageEntry('acme.x', '1.3.10', 'path/to/source')
assert n... | 27.786667 | 72 | 0.721209 | 337 | 2,084 | 4.160237 | 0.118694 | 0.064907 | 0.11127 | 0.166904 | 0.833809 | 0.791726 | 0.766049 | 0.684736 | 0.537803 | 0.513552 | 0 | 0.033879 | 0.150192 | 2,084 | 74 | 73 | 28.162162 | 0.757764 | 0.004798 | 0 | 0.416667 | 0 | 0 | 0.118726 | 0 | 0 | 0 | 0 | 0 | 0.4375 | 1 | 0.270833 | false | 0 | 0.020833 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
31d512e84c38e001f5ea55f84c2e06fef329cc24 | 28,266 | py | Python | src/services/sre_data.py | anandmoghan/speaker-recognition | ff5557e89b686b1da3e3eb30e3dad9bf851e7bbe | [
"MIT"
] | 6 | 2018-11-13T08:11:23.000Z | 2021-08-29T22:52:57.000Z | src/services/sre_data.py | anandmoghan/speaker-recognition | ff5557e89b686b1da3e3eb30e3dad9bf851e7bbe | [
"MIT"
] | null | null | null | src/services/sre_data.py | anandmoghan/speaker-recognition | ff5557e89b686b1da3e3eb30e3dad9bf851e7bbe | [
"MIT"
] | 3 | 2019-04-08T03:38:20.000Z | 2020-03-12T05:02:53.000Z | from json import loads as load_json
from os.path import join as join_path
import numpy as np
import re
from services.common import get_file_list_as_dict, remove_duplicates, sort_by_index
def get_train_data(data_config):
with open(data_config, 'r') as f:
sre_data = load_json(f.read())
data_root = sre... | 40.553802 | 119 | 0.596547 | 3,815 | 28,266 | 4.092005 | 0.056619 | 0.070463 | 0.02921 | 0.03363 | 0.832746 | 0.80802 | 0.775287 | 0.735187 | 0.701877 | 0.68503 | 0 | 0.025046 | 0.273969 | 28,266 | 696 | 120 | 40.612069 | 0.73565 | 0.000778 | 0 | 0.695507 | 0 | 0.001664 | 0.112421 | 0.023724 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021631 | false | 0.026622 | 0.008319 | 0 | 0.049917 | 0.036606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
31e127dffb58a3654a8b1c36306ac6638b8d8eef | 15,902 | py | Python | ldif/nets/pointnet.py | JRyanShue/ldif | fd2cbfbcb752d0e5e19e80b98760bf5bf9d1661f | [
"Apache-2.0"
] | null | null | null | ldif/nets/pointnet.py | JRyanShue/ldif | fd2cbfbcb752d0e5e19e80b98760bf5bf9d1661f | [
"Apache-2.0"
] | null | null | null | ldif/nets/pointnet.py | JRyanShue/ldif | fd2cbfbcb752d0e5e19e80b98760bf5bf9d1661f | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 38.225962 | 134 | 0.616526 | 1,938 | 15,902 | 4.853973 | 0.146027 | 0.048368 | 0.056128 | 0.036356 | 0.780908 | 0.761667 | 0.746572 | 0.715106 | 0.715106 | 0.715106 | 0 | 0.029042 | 0.285436 | 15,902 | 415 | 135 | 38.318072 | 0.798821 | 0.248711 | 0 | 0.803333 | 0 | 0 | 0.05455 | 0.015197 | 0 | 0 | 0 | 0.004819 | 0.013333 | 1 | 0.013333 | false | 0 | 0.016667 | 0 | 0.043333 | 0.006667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
31ea12e096bc2bfb23ffa3a3ed61d17f48b2ff5e | 8,035 | py | Python | src/keen/utilities/train_utils.py | ddomingof/KEEN | 2dcd548e904ae05b337a61548d7b082b6307175a | [
"MIT"
] | null | null | null | src/keen/utilities/train_utils.py | ddomingof/KEEN | 2dcd548e904ae05b337a61548d7b082b6307175a | [
"MIT"
] | null | null | null | src/keen/utilities/train_utils.py | ddomingof/KEEN | 2dcd548e904ae05b337a61548d7b082b6307175a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
import timeit
import numpy as np
import torch
import torch.optim as optim
from sklearn.utils import shuffle
from keen.constants import *
logging.basicConfig(level=logging.INFO)
log = logging.getLogger(__name__)
def _split_list_in_batches(input_list, batch_size):
return [... | 41.848958 | 120 | 0.661357 | 1,035 | 8,035 | 4.802899 | 0.144928 | 0.032187 | 0.039429 | 0.021123 | 0.808892 | 0.799034 | 0.786562 | 0.786562 | 0.786562 | 0.786562 | 0 | 0.007074 | 0.243435 | 8,035 | 191 | 121 | 42.068063 | 0.81066 | 0.061108 | 0 | 0.677419 | 0 | 0 | 0.020452 | 0 | 0 | 0 | 0 | 0.005236 | 0 | 1 | 0.032258 | false | 0 | 0.056452 | 0.008065 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
31ec57dcf6ff0e15f81dc145058eacf24f7e23e5 | 7,748 | py | Python | a2c_ppo_acktr/wrappers/algorithms.py | AndrewPaulChester/pytorch-a2c-ppo-acktr-gail | efb2f508ee0d7bad8d3bf438cd231d66fbbd4df0 | [
"MIT"
] | null | null | null | a2c_ppo_acktr/wrappers/algorithms.py | AndrewPaulChester/pytorch-a2c-ppo-acktr-gail | efb2f508ee0d7bad8d3bf438cd231d66fbbd4df0 | [
"MIT"
] | null | null | null | a2c_ppo_acktr/wrappers/algorithms.py | AndrewPaulChester/pytorch-a2c-ppo-acktr-gail | efb2f508ee0d7bad8d3bf438cd231d66fbbd4df0 | [
"MIT"
] | null | null | null | import abc
import time
import gtimer as gt
from a2c_ppo_acktr.wrappers.data_collectors import RolloutStepCollector
from rlkit.core.rl_algorithm import BaseRLAlgorithm
from rlkit.data_management.replay_buffer import ReplayBuffer
class IkostrikovRLAlgorithm(BaseRLAlgorithm, metaclass=abc.ABCMeta):
def __init__(
... | 36.895238 | 138 | 0.623774 | 926 | 7,748 | 4.777538 | 0.137149 | 0.056962 | 0.065099 | 0.05425 | 0.88585 | 0.88585 | 0.875226 | 0.84132 | 0.84132 | 0.818264 | 0 | 0.001488 | 0.306273 | 7,748 | 209 | 139 | 37.07177 | 0.821581 | 0.472122 | 0 | 0.307692 | 0 | 0 | 0.058221 | 0.021239 | 0 | 0 | 0 | 0.004785 | 0.010989 | 1 | 0.054945 | false | 0 | 0.065934 | 0 | 0.142857 | 0.021978 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
9ec88028f4c8cc0f2d5164b57876466f77ffd3a7 | 1,888 | py | Python | examples/written_numbers.py | HelloChatterbox/simple_NER | 678f0003030c9158583122e8b818a3b4e4ba3ea1 | [
"MIT"
] | 25 | 2019-12-26T14:10:47.000Z | 2022-03-16T02:17:16.000Z | examples/written_numbers.py | HelloChatterbox/simple_NER | 678f0003030c9158583122e8b818a3b4e4ba3ea1 | [
"MIT"
] | null | null | null | examples/written_numbers.py | HelloChatterbox/simple_NER | 678f0003030c9158583122e8b818a3b4e4ba3ea1 | [
"MIT"
] | 5 | 2020-08-16T16:38:09.000Z | 2022-03-21T16:59:16.000Z | from simple_NER.annotators.numbers_ner import NumberNER
ner = NumberNER()
for r in ner.extract_entities("three hundred trillion tons of spinning metal"):
"""
{'confidence': 1,
'data': {'number': '300000000000000.0'},
'entity_type': 'written_number',
'rules': [],
'source_text': 'three hundre... | 29.968254 | 79 | 0.57786 | 224 | 1,888 | 4.758929 | 0.223214 | 0.067542 | 0.11257 | 0.118199 | 0.891182 | 0.891182 | 0.891182 | 0.881801 | 0.870544 | 0.870544 | 0 | 0.048898 | 0.230932 | 1,888 | 63 | 80 | 29.968254 | 0.685262 | 0 | 0 | 0.666667 | 0 | 0 | 0.325679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
9edcc743cece33d41b3ef89de3f18a87d48a1144 | 253 | py | Python | cimcb_lite/utils/nested_getattr.py | RuibingS/cimcb | 382f7d8fff30d3d276f18ac8c7dc686e0e643fa9 | [
"MIT"
] | 5 | 2020-05-26T23:45:40.000Z | 2022-01-13T00:40:14.000Z | cimcb_lite/utils/nested_getattr.py | RuibingS/cimcb | 382f7d8fff30d3d276f18ac8c7dc686e0e643fa9 | [
"MIT"
] | 3 | 2020-10-20T09:03:18.000Z | 2021-11-01T14:22:05.000Z | cimcb_lite/utils/nested_getattr.py | RuibingS/cimcb | 382f7d8fff30d3d276f18ac8c7dc686e0e643fa9 | [
"MIT"
] | 4 | 2020-10-12T07:17:43.000Z | 2022-03-28T06:28:44.000Z | from functools import reduce
def nested_getattr(model, attributes):
"""getattr for nested attributes."""
def _getattr(model, attributes):
return getattr(model, attributes)
return reduce(_getattr, [model] + attributes.split("."))
| 23 | 60 | 0.699605 | 27 | 253 | 6.444444 | 0.444444 | 0.275862 | 0.505747 | 0.321839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 253 | 10 | 61 | 25.3 | 0.84058 | 0.118577 | 0 | 0 | 0 | 0 | 0.004608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.2 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 6 |
7308e8a7df0420ed7a6105c5802b416399b5f26d | 78 | py | Python | Text_Annotation/demo/__init__.py | renjunxiang/Text_Annotation | cd03ac5f49c4460b762c499d60bc0b2434364dc0 | [
"MIT"
] | 5 | 2018-08-09T03:30:16.000Z | 2019-10-21T00:36:18.000Z | Text_Annotation/demo/__init__.py | renjunxiang/Text_Annotation | cd03ac5f49c4460b762c499d60bc0b2434364dc0 | [
"MIT"
] | null | null | null | Text_Annotation/demo/__init__.py | renjunxiang/Text_Annotation | cd03ac5f49c4460b762c499d60bc0b2434364dc0 | [
"MIT"
] | 3 | 2018-07-26T20:51:06.000Z | 2019-11-21T01:44:08.000Z | from .annotate_cut import annotate_cut
from .annotate_pos import annotate_pos
| 26 | 38 | 0.871795 | 12 | 78 | 5.333333 | 0.416667 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 78 | 2 | 39 | 39 | 0.914286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
730965623ac94bf8f18427b5825634c2d079d9d7 | 175 | py | Python | rested/commands/__init__.py | mochi-ai/rested | 94a8961f2297fd4a941417f4be47047d91a4aa00 | [
"MIT"
] | 1 | 2020-09-07T22:04:05.000Z | 2020-09-07T22:04:05.000Z | rested/commands/__init__.py | mochi-ai/rested | 94a8961f2297fd4a941417f4be47047d91a4aa00 | [
"MIT"
] | null | null | null | rested/commands/__init__.py | mochi-ai/rested | 94a8961f2297fd4a941417f4be47047d91a4aa00 | [
"MIT"
] | null | null | null | from . import create
from . import manage
from . import serve
from . import shell
from . import test
from . import worker
from . import version
from .command import register
| 17.5 | 29 | 0.765714 | 25 | 175 | 5.36 | 0.44 | 0.522388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188571 | 175 | 9 | 30 | 19.444444 | 0.943662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7347fdf03639839a7c41a0aa1ae64a234241616b | 121 | py | Python | Aula1/Aula1.py | gabriel-correia0408/Sala_Green_GabrielCorreia | 1d22f466d372786c5f8c8eaba7202844b5f03445 | [
"Apache-2.0"
] | null | null | null | Aula1/Aula1.py | gabriel-correia0408/Sala_Green_GabrielCorreia | 1d22f466d372786c5f8c8eaba7202844b5f03445 | [
"Apache-2.0"
] | null | null | null | Aula1/Aula1.py | gabriel-correia0408/Sala_Green_GabrielCorreia | 1d22f466d372786c5f8c8eaba7202844b5f03445 | [
"Apache-2.0"
] | null | null | null | class Pessoa:
id = 0
def set_id(self,id):
self.id = id
def get_id(self):
return self.id
| 11 | 24 | 0.512397 | 19 | 121 | 3.157895 | 0.473684 | 0.3 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.38843 | 121 | 10 | 25 | 12.1 | 0.797297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
b438fd9fc0303a38499b6b0633a082b294777ba4 | 180 | py | Python | plaso/hashers/__init__.py | Defense-Cyber-Crime-Center/plaso | 4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47 | [
"Apache-2.0"
] | 2 | 2016-02-18T12:46:29.000Z | 2022-03-13T03:04:59.000Z | plaso/hashers/__init__.py | CNR-ITTIG/plasodfaxp | 923797fc00664fa9e3277781b0334d6eed5664fd | [
"Apache-2.0"
] | null | null | null | plaso/hashers/__init__.py | CNR-ITTIG/plasodfaxp | 923797fc00664fa9e3277781b0334d6eed5664fd | [
"Apache-2.0"
] | 6 | 2016-12-18T08:05:36.000Z | 2021-04-06T14:19:11.000Z | # -*- coding: utf-8 -*-
"""This file contains an import statement for each hasher."""
from plaso.hashers import md5
from plaso.hashers import sha1
from plaso.hashers import sha256
| 30 | 61 | 0.75 | 27 | 180 | 5 | 0.666667 | 0.2 | 0.355556 | 0.488889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0.144444 | 180 | 5 | 62 | 36 | 0.837662 | 0.433333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
b4526614da7aceee5b403a3769bfd1bca453e892 | 1,027 | py | Python | iMOOC/00_Flask_blog/home/views.py | MurphyWan/SDC | 5828bc9c7e818fffa7db951fc9f00adf261f9031 | [
"Unlicense"
] | 1 | 2017-03-20T15:46:13.000Z | 2017-03-20T15:46:13.000Z | iMOOC/00_Flask_blog/home/views.py | MurphyWan/SDC | 5828bc9c7e818fffa7db951fc9f00adf261f9031 | [
"Unlicense"
] | null | null | null | iMOOC/00_Flask_blog/home/views.py | MurphyWan/SDC | 5828bc9c7e818fffa7db951fc9f00adf261f9031 | [
"Unlicense"
] | null | null | null | # coding:utf8
# 3定义home视图
# 从当前模块中导入
from . import home
from flask import render_template, redirect, url_for
# 在home.html的内容里面定义数据块{% block content %}{% endblock %}之后
# 这里我们要导入render_template模块,用于呈现网页
# 定义视图函数
@home.route("/")
def index():
return render_template("home/index.html")
@home.route("/login/")
def l... | 20.137255 | 86 | 0.703992 | 127 | 1,027 | 5.598425 | 0.314961 | 0.177215 | 0.225035 | 0.270042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00222 | 0.122687 | 1,027 | 50 | 87 | 20.54 | 0.786903 | 0.161636 | 0 | 0 | 0 | 0 | 0.241501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.310345 | true | 0 | 0.068966 | 0.310345 | 0.689655 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
b46d9a40787c4c5dd58d723672554c05edf6a443 | 144 | py | Python | tests/test_zh2en.py | ffreemt/gpt3-api | 785f1bf09915047f6bfb5071929ebaa61b000d43 | [
"MIT"
] | 1 | 2021-11-23T11:01:03.000Z | 2021-11-23T11:01:03.000Z | tests/test_zh2en.py | ffreemt/gpt3-api | 785f1bf09915047f6bfb5071929ebaa61b000d43 | [
"MIT"
] | null | null | null | tests/test_zh2en.py | ffreemt/gpt3-api | 785f1bf09915047f6bfb5071929ebaa61b000d43 | [
"MIT"
] | null | null | null | """Test zh2en."""
from gpt3_api.zh2en import zh2en
def test_zh2en():
"""Test zh2en '这是测试'."""
assert "test" in zh2en("这是测试").lower()
| 16 | 42 | 0.618056 | 20 | 144 | 4.35 | 0.55 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059322 | 0.180556 | 144 | 8 | 43 | 18 | 0.677966 | 0.208333 | 0 | 0 | 0 | 0 | 0.07767 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
c330ddfd8c55cce1897833e2ce443501096895e9 | 132 | py | Python | Patterns/rebs-becca15.py | sanchit781/HACKTOBERFEST2021_PATTERN | c457eb2a1c7b729bdaa26ade7d4c7eb4092291e2 | [
"MIT"
] | 229 | 2021-09-10T13:24:47.000Z | 2022-03-18T16:54:29.000Z | Patterns/rebs-becca15.py | sanchit781/HACKTOBERFEST2021_PATTERN | c457eb2a1c7b729bdaa26ade7d4c7eb4092291e2 | [
"MIT"
] | 164 | 2021-09-10T12:04:39.000Z | 2021-10-29T21:20:42.000Z | Patterns/rebs-becca15.py | sanchit781/HACKTOBERFEST2021_PATTERN | c457eb2a1c7b729bdaa26ade7d4c7eb4092291e2 | [
"MIT"
] | 567 | 2021-09-10T17:35:27.000Z | 2021-12-11T12:45:43.000Z | for i in range(1,6):
for j in range(1,6):
if(j<6-i):
print(i*i, end=" ")
else:
print(i, end=" ")
print("\n") | 18.857143 | 25 | 0.454545 | 26 | 132 | 2.307692 | 0.461538 | 0.233333 | 0.266667 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054348 | 0.30303 | 132 | 7 | 26 | 18.857143 | 0.597826 | 0 | 0 | 0 | 0 | 0 | 0.030075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
5ef0f201bf1b30c23c0001a611cf89e7dd5a8c82 | 156 | py | Python | example_project/core/admin.py | pnuckowski/django-guardian | 8e8dab207296ee37aa1d19eaeebfad7d0642f138 | [
"MIT"
] | 2,469 | 2015-07-27T14:21:38.000Z | 2022-03-29T23:37:37.000Z | example_project/core/admin.py | meetbill/django-guardian | d3611494c1e40a67b20e32ffe9e5198a53923aa2 | [
"MIT"
] | 458 | 2015-07-27T12:02:14.000Z | 2022-03-25T21:42:59.000Z | example_project/core/admin.py | meetbill/django-guardian | d3611494c1e40a67b20e32ffe9e5198a53923aa2 | [
"MIT"
] | 429 | 2015-07-31T08:04:17.000Z | 2022-03-11T09:28:55.000Z | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import CustomUser
admin.site.register(CustomUser, UserAdmin)
| 26 | 47 | 0.839744 | 21 | 156 | 6.238095 | 0.52381 | 0.152672 | 0.259542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 156 | 5 | 48 | 31.2 | 0.929078 | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6f05dd7f7abc23bb8dc84b3f83bcfa1a3bf0745c | 81 | py | Python | GenerIter/app/clep_inventory.py | homosaur/GenerIter | 5b9d123bfb483c4eddd01d871ba39e72cfb95c9c | [
"MIT"
] | null | null | null | GenerIter/app/clep_inventory.py | homosaur/GenerIter | 5b9d123bfb483c4eddd01d871ba39e72cfb95c9c | [
"MIT"
] | null | null | null | GenerIter/app/clep_inventory.py | homosaur/GenerIter | 5b9d123bfb483c4eddd01d871ba39e72cfb95c9c | [
"MIT"
] | null | null | null | from GenerIter.app.inventory import Inventory
def main():
app = Inventory()
| 16.2 | 45 | 0.728395 | 10 | 81 | 5.9 | 0.7 | 0.40678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17284 | 81 | 4 | 46 | 20.25 | 0.880597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6f19d7eac6db5a4d0eda12d19c473c60774381c3 | 48 | py | Python | ARLO/hyperparameter/__init__.py | arlo-lib/ARLO | 159669884044686e36e07bd1cc0948884ed7cc8d | [
"MIT"
] | null | null | null | ARLO/hyperparameter/__init__.py | arlo-lib/ARLO | 159669884044686e36e07bd1cc0948884ed7cc8d | [
"MIT"
] | null | null | null | ARLO/hyperparameter/__init__.py | arlo-lib/ARLO | 159669884044686e36e07bd1cc0948884ed7cc8d | [
"MIT"
] | null | null | null | from ARLO.hyperparameter.hyperparameter import * | 48 | 48 | 0.875 | 5 | 48 | 8.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 48 | 1 | 48 | 48 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6f3cfede0d2dee88f97fc52260ca542a2fff2434 | 94 | py | Python | lmtuners/utils/__init__.py | shoarora/polytune | 86f31ba3f41ea47edcfa0442a29a79a2a46deaeb | [
"MIT"
] | 2 | 2020-09-17T10:12:36.000Z | 2020-11-22T16:34:08.000Z | lmtuners/utils/__init__.py | shoarora/polytune | 86f31ba3f41ea47edcfa0442a29a79a2a46deaeb | [
"MIT"
] | null | null | null | lmtuners/utils/__init__.py | shoarora/polytune | 86f31ba3f41ea47edcfa0442a29a79a2a46deaeb | [
"MIT"
] | null | null | null | from .masked_lm import mask_tokens # noqa: F401
from .utils import tie_weights # noqa: F401
| 31.333333 | 48 | 0.765957 | 15 | 94 | 4.6 | 0.733333 | 0.231884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.170213 | 94 | 2 | 49 | 47 | 0.807692 | 0.223404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6f477a6ea88b6764f0cbd439f8384909a38b648e | 136 | py | Python | BE/shop/products/admin.py | kosior/ngLearn-1 | 4cc52153876aca409d56bd9cabace9283946bd32 | [
"MIT"
] | 2 | 2022-03-24T14:00:33.000Z | 2022-03-26T19:50:32.000Z | BE/shop/products/admin.py | kosior/ngLearn-1 | 4cc52153876aca409d56bd9cabace9283946bd32 | [
"MIT"
] | null | null | null | BE/shop/products/admin.py | kosior/ngLearn-1 | 4cc52153876aca409d56bd9cabace9283946bd32 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Product
@admin.register(Product)
class ProductAdmin(admin.ModelAdmin):
pass
| 15.111111 | 37 | 0.786765 | 17 | 136 | 6.294118 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139706 | 136 | 8 | 38 | 17 | 0.91453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
6f763d1280e08ee4c16909985f1e307b6c504777 | 199 | py | Python | livy_submit/__init__.py | ericdill/livy-submit | 50bb43aed61527ebb2e7e93cd204f6f1c7e0cc17 | [
"BSD-3-Clause"
] | 1 | 2021-04-14T03:05:56.000Z | 2021-04-14T03:05:56.000Z | livy_submit/__init__.py | ericdill/livy-submit | 50bb43aed61527ebb2e7e93cd204f6f1c7e0cc17 | [
"BSD-3-Clause"
] | 3 | 2020-01-13T16:50:15.000Z | 2020-02-03T20:30:37.000Z | livy_submit/__init__.py | ericdill/livy-submit | 50bb43aed61527ebb2e7e93cd204f6f1c7e0cc17 | [
"BSD-3-Clause"
] | 3 | 2019-12-05T16:53:03.000Z | 2021-09-01T17:23:24.000Z | from .krb import kinit_keytab, kinit_username
from .livy_api import LivyAPI
from .hdfs_api import upload
from ._version import get_versions
__version__ = get_versions()["version"]
del get_versions
| 22.111111 | 45 | 0.819095 | 29 | 199 | 5.206897 | 0.517241 | 0.218543 | 0.238411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120603 | 199 | 8 | 46 | 24.875 | 0.862857 | 0 | 0 | 0 | 0 | 0 | 0.035176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
488eedfa9092703dcb3097097517405201b6a395 | 3,242 | py | Python | test/PR_test/integration_test/trace/adapt/test_reduce_lr_on_plateau.py | hanskrupakar/fastestimator | 1c3fe89ad8b012991b524a6c48f328b2a80dc9f6 | [
"Apache-2.0"
] | null | null | null | test/PR_test/integration_test/trace/adapt/test_reduce_lr_on_plateau.py | hanskrupakar/fastestimator | 1c3fe89ad8b012991b524a6c48f328b2a80dc9f6 | [
"Apache-2.0"
] | null | null | null | test/PR_test/integration_test/trace/adapt/test_reduce_lr_on_plateau.py | hanskrupakar/fastestimator | 1c3fe89ad8b012991b524a6c48f328b2a80dc9f6 | [
"Apache-2.0"
] | null | null | null | import math
import unittest
from io import StringIO
from unittest.mock import patch
import fastestimator as fe
from fastestimator.test.unittest_util import MultiLayerTorchModel, one_layer_tf_model, sample_system_object
from fastestimator.trace.adapt import ReduceLROnPlateau
from fastestimator.util.data import Data
c... | 47.676471 | 114 | 0.706663 | 443 | 3,242 | 4.878104 | 0.191874 | 0.040722 | 0.111985 | 0.041647 | 0.807034 | 0.807034 | 0.807034 | 0.794077 | 0.736696 | 0.736696 | 0 | 0.033487 | 0.198643 | 3,242 | 67 | 115 | 48.38806 | 0.798306 | 0 | 0 | 0.666667 | 0 | 0 | 0.108267 | 0.033004 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.083333 | false | 0 | 0.133333 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
489da8b28526198a06fe7a7454c9a9edfbfbca2a | 1,055 | py | Python | aula023 - TRATAMENTO DE ERRO/ex113-FuncoesAprofundadas.py | miradouro/CursoEmVideo-Python | cc7b05a9a4aad8e6ef3b29453d83370094d75e41 | [
"MIT"
] | null | null | null | aula023 - TRATAMENTO DE ERRO/ex113-FuncoesAprofundadas.py | miradouro/CursoEmVideo-Python | cc7b05a9a4aad8e6ef3b29453d83370094d75e41 | [
"MIT"
] | null | null | null | aula023 - TRATAMENTO DE ERRO/ex113-FuncoesAprofundadas.py | miradouro/CursoEmVideo-Python | cc7b05a9a4aad8e6ef3b29453d83370094d75e41 | [
"MIT"
] | null | null | null | def leiaInt(msg):
ok = False
valor = 0
while True:
try:
n = int(input(msg))
except (ValueError, TypeError):
print(f'\033[1;31mERRO! Digite un número inteiro válido.\033[m')
continue
except (KeyboardInterrupt):
print(f'\033[1;32mEntrada ... | 27.763158 | 81 | 0.552607 | 129 | 1,055 | 4.51938 | 0.395349 | 0.051458 | 0.06175 | 0.068611 | 0.703259 | 0.703259 | 0.703259 | 0.703259 | 0.703259 | 0.603774 | 0 | 0.059829 | 0.334597 | 1,055 | 37 | 82 | 28.513514 | 0.770655 | 0.017062 | 0 | 0.75 | 0 | 0 | 0.308213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.1875 | 0.15625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
48b1ad64378048493f6923259e53fc7e98bab123 | 100 | py | Python | hs_model_program/admin.py | tommac7/hydroshare | 87c4543a55f98103d2614bf4c47f7904c3f9c029 | [
"BSD-3-Clause"
] | 178 | 2015-01-08T23:03:36.000Z | 2022-03-03T13:56:45.000Z | hs_model_program/admin.py | tommac7/hydroshare | 87c4543a55f98103d2614bf4c47f7904c3f9c029 | [
"BSD-3-Clause"
] | 4,125 | 2015-01-01T14:26:15.000Z | 2022-03-31T16:38:55.000Z | hs_model_program/admin.py | tommac7/hydroshare | 87c4543a55f98103d2614bf4c47f7904c3f9c029 | [
"BSD-3-Clause"
] | 53 | 2015-03-15T17:56:51.000Z | 2022-03-17T00:32:16.000Z | from django.contrib import admin
from .models import *
admin.site.unregister(ModelProgramResource)
| 20 | 43 | 0.83 | 12 | 100 | 6.916667 | 0.75 | 0.26506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 100 | 4 | 44 | 25 | 0.922222 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
48b9f47d32e4959c5e551aabcd7630496ff82351 | 116 | py | Python | ml_automation/metrics/r2.py | ChillBoss/ml_automation | 50d42b3cd5a3bb2f7a91e4c53bf3bbfe7a3b1741 | [
"MIT"
] | null | null | null | ml_automation/metrics/r2.py | ChillBoss/ml_automation | 50d42b3cd5a3bb2f7a91e4c53bf3bbfe7a3b1741 | [
"MIT"
] | null | null | null | ml_automation/metrics/r2.py | ChillBoss/ml_automation | 50d42b3cd5a3bb2f7a91e4c53bf3bbfe7a3b1741 | [
"MIT"
] | null | null | null | import numpy as np
from sklearn.metrics import r2_score
def r2(preds, target):
return r2_score(target, preds)
| 16.571429 | 36 | 0.758621 | 19 | 116 | 4.526316 | 0.684211 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.172414 | 116 | 6 | 37 | 19.333333 | 0.864583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
48dfacd9d981a07ac8a88462c0f731dc224f4a7b | 1,116 | py | Python | tests/TestParseArgs.py | lastcolour/Tacos | fe2b65250bfa74613151ae2dc6a91eb30f254844 | [
"MIT"
] | null | null | null | tests/TestParseArgs.py | lastcolour/Tacos | fe2b65250bfa74613151ae2dc6a91eb30f254844 | [
"MIT"
] | null | null | null | tests/TestParseArgs.py | lastcolour/Tacos | fe2b65250bfa74613151ae2dc6a91eb30f254844 | [
"MIT"
] | null | null | null | import unittest
import lib.ParseArgs as PA
class TestParseArgs(unittest.TestCase):
def test_only_project_in_args_0(self):
projectName, startIdx = PA._extractProjectName(["--project", "Test"], 0)
self.assertEqual(projectName, "Test")
self.assertEqual(startIdx, 2)
def test_only_project... | 37.2 | 84 | 0.684588 | 123 | 1,116 | 5.98374 | 0.219512 | 0.203804 | 0.15625 | 0.169837 | 0.767663 | 0.767663 | 0.611413 | 0.611413 | 0.611413 | 0.611413 | 0 | 0.014365 | 0.189068 | 1,116 | 30 | 85 | 37.2 | 0.798895 | 0 | 0 | 0.347826 | 0 | 0 | 0.068935 | 0 | 0 | 0 | 0 | 0 | 0.434783 | 1 | 0.217391 | false | 0 | 0.086957 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5b150461003bb7e6236ddff33cbe9e42d69fe8c6 | 15,865 | py | Python | dexplo/_tests/test_setitem.py | dexplo/dexplo | 2a522437d3bf848260f9772e7a8f705f534c2e2c | [
"BSD-3-Clause"
] | 78 | 2018-01-25T21:07:17.000Z | 2020-11-07T00:19:13.000Z | dexplo/_tests/test_setitem.py | dexplo/dexplo | 2a522437d3bf848260f9772e7a8f705f534c2e2c | [
"BSD-3-Clause"
] | null | null | null | dexplo/_tests/test_setitem.py | dexplo/dexplo | 2a522437d3bf848260f9772e7a8f705f534c2e2c | [
"BSD-3-Clause"
] | 8 | 2018-04-15T15:28:51.000Z | 2022-03-22T10:37:54.000Z | import dexplo as dx
import numpy as np
from numpy import array, nan
import pytest
from dexplo.testing import assert_frame_equal, assert_array_equal, assert_dict_list
class TestSetItem:
df = dx.DataFrame({'a': [1, 5], 'b': ['eleni', 'teddy'], 'c': [nan, 5.4],
'd': [True, False]})
df1 = ... | 41.970899 | 97 | 0.423007 | 2,097 | 15,865 | 3.122079 | 0.04578 | 0.092409 | 0.098977 | 0.119139 | 0.882236 | 0.840232 | 0.821139 | 0.798228 | 0.76157 | 0.744158 | 0 | 0.072875 | 0.334006 | 15,865 | 377 | 98 | 42.082228 | 0.546754 | 0 | 0 | 0.627832 | 0 | 0 | 0.074819 | 0 | 0 | 0 | 0 | 0 | 0.171521 | 1 | 0.032362 | false | 0 | 0.016181 | 0 | 0.058252 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5b1e8f28785b23ef5d81cdbb32ee5b44643e50b0 | 206 | py | Python | packages/jet_bridge_base/jet_bridge_base/fields/raw.py | F2210/jet-bridge | 72b1af5cd7df585a4026d65170d3607f8cdf6bea | [
"MIT"
] | 1,247 | 2019-01-10T22:22:08.000Z | 2022-03-29T20:54:32.000Z | packages/jet_bridge_base/jet_bridge_base/fields/raw.py | F2210/jet-bridge | 72b1af5cd7df585a4026d65170d3607f8cdf6bea | [
"MIT"
] | 12 | 2019-03-15T20:06:14.000Z | 2022-01-07T10:28:20.000Z | packages/jet_bridge_base/jet_bridge_base/fields/raw.py | F2210/jet-bridge | 72b1af5cd7df585a4026d65170d3607f8cdf6bea | [
"MIT"
] | 130 | 2019-02-26T17:36:53.000Z | 2022-03-17T22:46:27.000Z | from jet_bridge_base.fields.field import Field
class RawField(Field):
def to_internal_value_item(self, value):
return value
def to_representation_item(self, value):
return value
| 18.727273 | 46 | 0.723301 | 28 | 206 | 5.071429 | 0.607143 | 0.070423 | 0.183099 | 0.267606 | 0.338028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213592 | 206 | 10 | 47 | 20.6 | 0.876543 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
d2a47abfdfa288331556fd4f5c8f627041c631d4 | 22,697 | py | Python | dataworkspace/dataworkspace/tests/applications/test_views.py | uktrade/jupyterhub-data-auth-admin | 91544f376209a201531f4dbfb8faad1b8ada18c9 | [
"MIT"
] | 1 | 2019-06-10T08:22:56.000Z | 2019-06-10T08:22:56.000Z | dataworkspace/dataworkspace/tests/applications/test_views.py | uktrade/jupyterhub-data-auth-admin | 91544f376209a201531f4dbfb8faad1b8ada18c9 | [
"MIT"
] | 2 | 2019-05-17T13:10:42.000Z | 2019-06-17T10:48:46.000Z | dataworkspace/dataworkspace/tests/applications/test_views.py | uktrade/jupyterhub-data-auth-admin | 91544f376209a201531f4dbfb8faad1b8ada18c9 | [
"MIT"
] | null | null | null | import json
from contextlib import contextmanager
from unittest import mock
import botocore
import pytest
from django.contrib.admin.models import LogEntry
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
from dja... | 39.404514 | 99 | 0.639159 | 2,229 | 22,697 | 6.238223 | 0.125168 | 0.032794 | 0.024452 | 0.015102 | 0.82215 | 0.787846 | 0.759871 | 0.732542 | 0.722042 | 0.701474 | 0 | 0.011384 | 0.268538 | 22,697 | 575 | 100 | 39.473043 | 0.826166 | 0.007005 | 0 | 0.606855 | 0 | 0 | 0.13729 | 0.075591 | 0 | 0 | 0 | 0 | 0.094758 | 1 | 0.03629 | false | 0 | 0.030242 | 0 | 0.078629 | 0.002016 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d2a716f97972120bcf7d4de3bbb3eed66518458e | 67,271 | py | Python | tests/unit/test_copr_build.py | jpopelka/packit-service | 5802fa78200daf9cd479d820c3cc003c530b9af7 | [
"MIT"
] | null | null | null | tests/unit/test_copr_build.py | jpopelka/packit-service | 5802fa78200daf9cd479d820c3cc003c530b9af7 | [
"MIT"
] | null | null | null | tests/unit/test_copr_build.py | jpopelka/packit-service | 5802fa78200daf9cd479d820c3cc003c530b9af7 | [
"MIT"
] | null | null | null | # Copyright Contributors to the Packit project.
# SPDX-License-Identifier: MIT
import json
from datetime import datetime, timezone
from pathlib import Path
from typing import Type
import pytest
from celery import Celery
from copr.v3 import Client
from flexmock import flexmock
import gitlab
import packit
import packi... | 37.207412 | 100 | 0.644483 | 7,233 | 67,271 | 5.691553 | 0.049495 | 0.096315 | 0.054097 | 0.026307 | 0.890519 | 0.883086 | 0.871183 | 0.863556 | 0.851216 | 0.840017 | 0 | 0.01598 | 0.237205 | 67,271 | 1,807 | 101 | 37.228002 | 0.786277 | 0.033506 | 0 | 0.694199 | 0 | 0.003153 | 0.173398 | 0.051291 | 0 | 0 | 0 | 0 | 0.015132 | 1 | 0.014502 | false | 0 | 0.020177 | 0 | 0.03657 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d2d721cc1f55bedac724436b0753bc6639072efc | 37,735 | py | Python | instances/passenger_demand/pas-20210421-2109-int12e/8.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210421-2109-int12e/8.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210421-2109-int12e/8.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null |
"""
PASSENGERS
"""
numPassengers = 2831
passenger_arriving = (
(4, 8, 5, 3, 2, 0, 3, 9, 8, 6, 0, 0), # 0
(3, 14, 8, 4, 0, 0, 6, 5, 3, 2, 3, 0), # 1
(2, 6, 4, 0, 0, 0, 6, 3, 5, 8, 1, 0), # 2
(4, 6, 6, 3, 4, 0, 5, 9, 3, 7, 2, 0), # 3
(3, 5, 12, 0, 3, 0, 5, 8, 6, 8, 2, 0), # 4
(2, 7, 9, 4, 1, 0, 10, 9, 4, 6,... | 112.641791 | 213 | 0.727998 | 5,147 | 37,735 | 5.335147 | 0.224597 | 0.314639 | 0.24909 | 0.471959 | 0.331646 | 0.329643 | 0.329643 | 0.329643 | 0.329643 | 0.329643 | 0 | 0.818187 | 0.119624 | 37,735 | 334 | 214 | 112.979042 | 0.008398 | 0.032092 | 0 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.015823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d2faa0b97e5024a8d2d56c463fff15b25c8767f7 | 32 | py | Python | calibratesdr/gsm/__init__.py | arnaudlb/CalibrateSDR | 3493da7808bdec23aa89ad88b1149a811ace143a | [
"MIT"
] | 24 | 2020-12-30T02:11:28.000Z | 2022-02-21T20:18:44.000Z | calibratesdr/gsm/__init__.py | rahulv1999/CalibrateSDR | e3952bda2e731196798a44b405e254d428746750 | [
"MIT"
] | 5 | 2020-12-29T09:47:08.000Z | 2021-08-30T10:33:58.000Z | calibratesdr/gsm/__init__.py | rahulv1999/CalibrateSDR | e3952bda2e731196798a44b405e254d428746750 | [
"MIT"
] | 15 | 2020-12-31T13:34:29.000Z | 2021-11-19T13:57:55.000Z | from calibratesdr.gsm import gsm | 32 | 32 | 0.875 | 5 | 32 | 5.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 32 | 1 | 32 | 32 | 0.965517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
825d76f4209d2ae9a3d4b36081aa1001af829071 | 155 | py | Python | indexer/src/annotators/__init__.py | alliance-genome/agr_archive_initial_prototype | 8559303de20e55886cc5bc7c2153f9357fc0ca2f | [
"MIT"
] | 9 | 2016-10-03T16:10:39.000Z | 2016-10-10T16:22:52.000Z | indexer/src/annotators/__init__.py | alliance-genome/agr | 8559303de20e55886cc5bc7c2153f9357fc0ca2f | [
"MIT"
] | 168 | 2017-02-06T17:07:20.000Z | 2017-08-23T21:23:55.000Z | indexer/src/annotators/__init__.py | alliance-genome/agr_prototype | 8559303de20e55886cc5bc7c2153f9357fc0ca2f | [
"MIT"
] | 12 | 2016-10-04T22:01:48.000Z | 2017-02-01T21:17:33.000Z | from so_annotator import SoAnnotator
from go_annotator import GoAnnotator
from do_annotator import DoAnnotator
from ortho_annotator import OrthoAnnotator
| 25.833333 | 42 | 0.890323 | 20 | 155 | 6.7 | 0.55 | 0.447761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109677 | 155 | 5 | 43 | 31 | 0.971014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
829e19a50fb715c59cbde09ffb935b34fa635b4e | 162 | py | Python | parlai/chat_service/services/telegram/websocket_manager.py | hhschu/ParlAI | 1c2732b2a6c6b50154caae42e1f6ba6737d23feb | [
"MIT"
] | 1 | 2020-05-04T06:08:45.000Z | 2020-05-04T06:08:45.000Z | parlai/chat_service/services/telegram/websocket_manager.py | hhschu/ParlAI | 1c2732b2a6c6b50154caae42e1f6ba6737d23feb | [
"MIT"
] | null | null | null | parlai/chat_service/services/telegram/websocket_manager.py | hhschu/ParlAI | 1c2732b2a6c6b50154caae42e1f6ba6737d23feb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from parlai.chat_service.services.websocket.websocket_manager import WebsocketManager
class TelegramManager(WebsocketManager):
pass
| 20.25 | 85 | 0.82716 | 18 | 162 | 7.333333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.098765 | 162 | 7 | 86 | 23.142857 | 0.89726 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
82cb699f53cd3d64d433d9ce74f4a60ff42a1d17 | 8,409 | py | Python | plots/DIMSVM-Batch:64-LR:2e-4-alpha:6e-4/plots/plots.py | Abhishek-Aditya-bs/Streaming-Spark-For-Machine-Learning | 76f9c97e66d6171bc83d1183fadc30bd492422a7 | [
"MIT"
] | 1 | 2021-12-10T13:14:53.000Z | 2021-12-10T13:14:53.000Z | plots/DIMSVM-Batch:64-LR:2e-4-alpha:6e-4/plots/plots.py | iVishalr/SSML-spark-streaming-for-machine-learning | ba95a7d2d6bb15bacfbbf5b3c95317310b36d54f | [
"MIT"
] | null | null | null | plots/DIMSVM-Batch:64-LR:2e-4-alpha:6e-4/plots/plots.py | iVishalr/SSML-spark-streaming-for-machine-learning | ba95a7d2d6bb15bacfbbf5b3c95317310b36d54f | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
# from torchvision.utils import make_grid,save_image
import seaborn as sns
import numpy as np
import pandas as pd
import time
accuracy = np.load('../checkpoints/DIMSVM-Batch:64-LR:2e-4-alpha:6e-4/accuracy-epoch-7.npy')
avg_accuracy = np.load('../checkpoints/DIMSVM-Batch:64-LR:2e-4-alph... | 44.257895 | 105 | 0.67618 | 1,379 | 8,409 | 4.058013 | 0.084844 | 0.025733 | 0.051465 | 0.077198 | 0.867584 | 0.859543 | 0.794139 | 0.755182 | 0.755182 | 0.755182 | 0 | 0.053853 | 0.11892 | 8,409 | 189 | 106 | 44.492063 | 0.701444 | 0.014033 | 0 | 0.588957 | 0 | 0.104294 | 0.240256 | 0.103777 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03681 | false | 0 | 0.030675 | 0 | 0.067485 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
82de5a5767a1b0b6d7af8ec67c7f80ed865b08b8 | 107 | py | Python | myapi/admin.py | Planthive/PlantHive_WebApp | 3ae9623406348981b4873b6d857ee9124188a4ee | [
"Apache-2.0"
] | null | null | null | myapi/admin.py | Planthive/PlantHive_WebApp | 3ae9623406348981b4873b6d857ee9124188a4ee | [
"Apache-2.0"
] | null | null | null | myapi/admin.py | Planthive/PlantHive_WebApp | 3ae9623406348981b4873b6d857ee9124188a4ee | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import growth_schedule
admin.site.register(growth_schedule)
| 21.4 | 36 | 0.850467 | 15 | 107 | 5.933333 | 0.666667 | 0.314607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093458 | 107 | 4 | 37 | 26.75 | 0.917526 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
82e48976869087f61fa9c140d7e61a4f1c52994d | 2,775 | py | Python | core/tests/test_views.py | callmb/directory-sso-profile | 9d5a5038c1665dbf6804e03ad95a02b5c2412b64 | [
"MIT"
] | null | null | null | core/tests/test_views.py | callmb/directory-sso-profile | 9d5a5038c1665dbf6804e03ad95a02b5c2412b64 | [
"MIT"
] | null | null | null | core/tests/test_views.py | callmb/directory-sso-profile | 9d5a5038c1665dbf6804e03ad95a02b5c2412b64 | [
"MIT"
] | null | null | null | from unittest import mock
import pytest
import requests
from django.urls import reverse
from core.tests.helpers import create_response
def test_companies_house_search_validation_error(client, settings):
url = reverse('api:companies-house-search')
response = client.get(url) # notice absense of `term`
... | 30.494505 | 75 | 0.695135 | 363 | 2,775 | 5.118457 | 0.192837 | 0.067815 | 0.086114 | 0.058127 | 0.818622 | 0.791173 | 0.769107 | 0.769107 | 0.758881 | 0.681916 | 0 | 0.028682 | 0.158198 | 2,775 | 90 | 76 | 30.833333 | 0.766695 | 0.008649 | 0 | 0.457627 | 0 | 0 | 0.27028 | 0.124045 | 0 | 0 | 0 | 0 | 0.152542 | 1 | 0.118644 | false | 0 | 0.084746 | 0 | 0.20339 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7d87415c62395b74254297b1189e0d7c9f19d7d4 | 93 | py | Python | wavesim/tests/python/test_Mesh.py | TheComet/wavesim | 90125d5273b96633e5f74666ddb707cedfa2fbf1 | [
"Apache-2.0"
] | 7 | 2018-01-25T10:58:39.000Z | 2021-05-08T08:08:37.000Z | wavesim/tests/python/test_Mesh.py | TheComet/wavesim | 90125d5273b96633e5f74666ddb707cedfa2fbf1 | [
"Apache-2.0"
] | 4 | 2018-03-06T15:47:13.000Z | 2018-03-07T19:07:45.000Z | wavesim/tests/python/test_Mesh.py | TheComet/wavesim | 90125d5273b96633e5f74666ddb707cedfa2fbf1 | [
"Apache-2.0"
] | 2 | 2018-02-18T02:02:31.000Z | 2020-02-16T09:49:12.000Z | import wavesim
import unittest
class TestMesh(unittest.TestCase):
pass
unittest.main()
| 11.625 | 34 | 0.774194 | 11 | 93 | 6.545455 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150538 | 93 | 7 | 35 | 13.285714 | 0.911392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
7da301f964bfa2e7f71274c54598d16ede203e81 | 5,765 | py | Python | constellation_forms/tests/views/testPermissions.py | ConstellationApps/Forms | 5d2bacf589c1a473cf619f34d569d33191b11285 | [
"ISC"
] | 2 | 2017-04-18T02:41:00.000Z | 2017-04-18T02:51:39.000Z | constellation_forms/tests/views/testPermissions.py | ConstellationApps/Forms | 5d2bacf589c1a473cf619f34d569d33191b11285 | [
"ISC"
] | 33 | 2017-03-03T06:16:44.000Z | 2019-08-20T23:06:21.000Z | constellation_forms/tests/views/testPermissions.py | ConstellationApps/Forms | 5d2bacf589c1a473cf619f34d569d33191b11285 | [
"ISC"
] | 1 | 2017-02-22T18:48:04.000Z | 2017-02-22T18:48:04.000Z | from django.contrib.auth.models import User, Group, Permission
from django.test import TestCase, RequestFactory
from guardian.shortcuts import assign_perm
from ... import views
from ...models import Form
class PermissionsTest(TestCase):
def setUp(self):
self.factory = RequestFactory()
self.group =... | 40.886525 | 79 | 0.643365 | 705 | 5,765 | 5.073759 | 0.112057 | 0.055913 | 0.08946 | 0.086106 | 0.810735 | 0.797596 | 0.797596 | 0.794241 | 0.780263 | 0.73749 | 0 | 0.011078 | 0.248395 | 5,765 | 140 | 80 | 41.178571 | 0.814447 | 0.030529 | 0 | 0.644068 | 0 | 0 | 0.103529 | 0.081677 | 0 | 0 | 0 | 0 | 0.118644 | 1 | 0.135593 | false | 0.008475 | 0.042373 | 0 | 0.186441 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
816eb49b48651101c65472ec9033d23744d9e6ba | 9,752 | py | Python | mayan/apps/permissions/tests/test_api.py | Syunkolee9891/Mayan-EDMS | 3759a9503a264a180b74cc8518388f15ca66ac1a | [
"Apache-2.0"
] | 1 | 2021-06-17T18:24:25.000Z | 2021-06-17T18:24:25.000Z | mayan/apps/permissions/tests/test_api.py | Syunkolee9891/Mayan-EDMS | 3759a9503a264a180b74cc8518388f15ca66ac1a | [
"Apache-2.0"
] | 7 | 2020-06-06T00:01:04.000Z | 2022-01-13T01:47:17.000Z | mayan/apps/permissions/tests/test_api.py | Syunkolee9891/Mayan-EDMS | 3759a9503a264a180b74cc8518388f15ca66ac1a | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from rest_framework import status
from mayan.apps.rest_api.tests import BaseAPITestCase
from mayan.apps.user_management.tests.mixins import GroupTestMixin
from ..classes import Permission
from ..models import Role
from ..permissions import (
permission_role_create, permiss... | 34.828571 | 117 | 0.713495 | 1,238 | 9,752 | 5.168821 | 0.07189 | 0.095015 | 0.073136 | 0.077043 | 0.872636 | 0.853571 | 0.83388 | 0.825754 | 0.816065 | 0.793718 | 0 | 0.007311 | 0.200472 | 9,752 | 279 | 118 | 34.953405 | 0.81339 | 0 | 0 | 0.636364 | 0 | 0 | 0.016304 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.106061 | false | 0 | 0.040404 | 0 | 0.171717 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
81ba79d95f574170c14fce38d769536078108969 | 30 | py | Python | cloudy/util/__init__.py | un33k/python-cloudy | 597e55fe308521c0df25ce5ed6c859949bd5dd17 | [
"MIT"
] | 1 | 2015-04-29T13:43:36.000Z | 2015-04-29T13:43:36.000Z | cloudy/util/__init__.py | un33k/python-cloudy | 597e55fe308521c0df25ce5ed6c859949bd5dd17 | [
"MIT"
] | null | null | null | cloudy/util/__init__.py | un33k/python-cloudy | 597e55fe308521c0df25ce5ed6c859949bd5dd17 | [
"MIT"
] | 2 | 2015-06-20T16:39:11.000Z | 2016-11-18T13:58:58.000Z | from conf import CloudyConfig
| 15 | 29 | 0.866667 | 4 | 30 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 30 | 1 | 30 | 30 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
81bb031e9d151a3b7f05429919871b8dc4790d05 | 1,332 | py | Python | problem8.py | adhikariprajitraj/Project-Euler | c5628601c87b76f2514c245f6682928a45fb9ef6 | [
"MIT"
] | 1 | 2020-08-05T00:50:44.000Z | 2020-08-05T00:50:44.000Z | problem8.py | adhikariprajitraj/Project-Euler | c5628601c87b76f2514c245f6682928a45fb9ef6 | [
"MIT"
] | null | null | null | problem8.py | adhikariprajitraj/Project-Euler | c5628601c87b76f2514c245f6682928a45fb9ef6 | [
"MIT"
] | null | null | null | num = """
73167176531330624919225119674426574742355349194934
96983520312774506326239578318016984801869478851843
85861560789112949495459501737958331952853208805511
12540698747158523863050715693290963295227443043557
66896648950445244523161731856403098711121722383113
62229893423380308135336276614282806444486645238749
3035... | 32.487805 | 53 | 0.871622 | 69 | 1,332 | 16.826087 | 0.637681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.831683 | 0.09009 | 1,332 | 40 | 54 | 33.3 | 0.126238 | 0 | 0 | 0 | 0 | 0 | 0.767267 | 0.750751 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.028571 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
81bc83657ff1875f91618000e05d78dc043fc1e9 | 114 | py | Python | simeng/data_containers/container.py | OWigginsHay/simulation_engine | bb2ab5578d05b0235fd90e4b858f5e83b20257cc | [
"MIT"
] | null | null | null | simeng/data_containers/container.py | OWigginsHay/simulation_engine | bb2ab5578d05b0235fd90e4b858f5e83b20257cc | [
"MIT"
] | 2 | 2021-12-01T16:58:37.000Z | 2021-12-03T23:11:56.000Z | simeng/data_containers/container.py | OWigginsHay/simulation_engine | bb2ab5578d05b0235fd90e4b858f5e83b20257cc | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class DataContainer(ABC):
@abstractmethod
def update():
pass | 16.285714 | 35 | 0.684211 | 12 | 114 | 6.5 | 0.75 | 0.435897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245614 | 114 | 7 | 36 | 16.285714 | 0.906977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0.2 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
81c4ba3be62444e0fde619d35fbca6c852bd18ca | 134 | py | Python | src/decaylanguage/modeling/__init__.py | ExternalRepositories/decaylanguage | c726ed105d5cafecc0e7bca513acf83295e03bea | [
"BSD-3-Clause"
] | null | null | null | src/decaylanguage/modeling/__init__.py | ExternalRepositories/decaylanguage | c726ed105d5cafecc0e7bca513acf83295e03bea | [
"BSD-3-Clause"
] | null | null | null | src/decaylanguage/modeling/__init__.py | ExternalRepositories/decaylanguage | c726ed105d5cafecc0e7bca513acf83295e03bea | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from .amplitudechain import LS
from .amplitudechain import AmplitudeChain
__all__ = ("LS", "AmplitudeChain")
| 22.333333 | 42 | 0.723881 | 14 | 134 | 6.642857 | 0.571429 | 0.387097 | 0.516129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.134328 | 134 | 5 | 43 | 26.8 | 0.793103 | 0.156716 | 0 | 0 | 0 | 0 | 0.144144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
81c65897c0ccd2a3e07373aa785ef891b3a85419 | 41 | py | Python | src/OddsJamClient/__init__.py | cooperbrandon1/oddsjam-api | 1d1170ba74fa1705cc786a96ab12a8cf5fa19dff | [
"MIT"
] | 3 | 2021-11-02T14:07:31.000Z | 2021-12-03T01:15:53.000Z | src/OddsJamClient/__init__.py | cooperbrandon1/oddsjam-api | 1d1170ba74fa1705cc786a96ab12a8cf5fa19dff | [
"MIT"
] | null | null | null | src/OddsJamClient/__init__.py | cooperbrandon1/oddsjam-api | 1d1170ba74fa1705cc786a96ab12a8cf5fa19dff | [
"MIT"
] | 2 | 2022-02-17T09:31:04.000Z | 2022-02-23T04:16:51.000Z | from .OddsJamClient import OddsJamClient; | 41 | 41 | 0.878049 | 4 | 41 | 9 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 41 | 1 | 41 | 41 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
81dbd2b0f472198784b54000b6ad9732b5ef58b2 | 80 | py | Python | gae/wsgi.py | vb64/mfl-analyze | 4af42023fb9f104fbe9497e316fa4a9178c49cfe | [
"MIT"
] | null | null | null | gae/wsgi.py | vb64/mfl-analyze | 4af42023fb9f104fbe9497e316fa4a9178c49cfe | [
"MIT"
] | null | null | null | gae/wsgi.py | vb64/mfl-analyze | 4af42023fb9f104fbe9497e316fa4a9178c49cfe | [
"MIT"
] | null | null | null | import django.core.handlers.wsgi
app = django.core.handlers.wsgi.WSGIHandler()
| 20 | 45 | 0.8 | 11 | 80 | 5.818182 | 0.636364 | 0.3125 | 0.5625 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 80 | 3 | 46 | 26.666667 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
81e2b467a00e10e633f8c92e1bb95b971249f5e2 | 12,308 | py | Python | feasability_study/WriteAllDataTypesToProtobufDataMatrix.py | totonga/wodson | 9c8cf8b54ce5c2bebebe46fecac36e1a2ad9af02 | [
"Apache-2.0"
] | 1 | 2016-01-06T13:13:00.000Z | 2016-01-06T13:13:00.000Z | feasability_study/WriteAllDataTypesToProtobufDataMatrix.py | totonga/wodson | 9c8cf8b54ce5c2bebebe46fecac36e1a2ad9af02 | [
"Apache-2.0"
] | 5 | 2016-02-16T08:11:49.000Z | 2016-03-06T19:33:43.000Z | feasability_study/WriteAllDataTypesToProtobufDataMatrix.py | totonga/wodson | 9c8cf8b54ce5c2bebebe46fecac36e1a2ad9af02 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
import sys
import time
import wodson_pb2
from google.protobuf import json_format
from google.protobuf import timestamp_pb2
def get_time_stamp(timeVal):
seconds = int(timeVal)
nanos = int((timeVal - seconds) * 10**9)
return timestamp_pb2.Timestamp(seconds=seconds, nanos=nanos)
if len(s... | 37.072289 | 200 | 0.746831 | 1,987 | 12,308 | 4.454454 | 0.059386 | 0.105751 | 0.101796 | 0.106768 | 0.89843 | 0.757316 | 0.746808 | 0.718337 | 0.691221 | 0.675291 | 0 | 0.038878 | 0.076292 | 12,308 | 332 | 201 | 37.072289 | 0.739643 | 0.005444 | 0 | 0.492248 | 0 | 0 | 0.091281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.01938 | null | null | 0.007752 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c48d97343fca1c2acf5dfb7954475ee8390d7560 | 19,461 | py | Python | ultron_cli/clients.py | gitter-badger/ultron-cli | d555f7be9738a3bf86f8a7a2186eac221303acca | [
"MIT"
] | 1 | 2019-04-15T14:04:24.000Z | 2019-04-15T14:04:24.000Z | ultron_cli/clients.py | gitter-badger/ultron-cli | d555f7be9738a3bf86f8a7a2186eac221303acca | [
"MIT"
] | null | null | null | ultron_cli/clients.py | gitter-badger/ultron-cli | d555f7be9738a3bf86f8a7a2186eac221303acca | [
"MIT"
] | null | null | null | import os
import json
import logging
import requests
from attrdict import AttrDict
from cliff.lister import Lister
from cliff.command import Command
from cliff.show import ShowOne
from prompt_toolkit import prompt
sessionfile = os.path.expanduser('~/.ultron_session.json')
class List(Lister):
"List all clients i... | 39.235887 | 120 | 0.586609 | 2,285 | 19,461 | 4.917287 | 0.077462 | 0.036045 | 0.068085 | 0.044856 | 0.832503 | 0.804201 | 0.793076 | 0.791296 | 0.769135 | 0.764952 | 0 | 0.003261 | 0.259442 | 19,461 | 495 | 121 | 39.315152 | 0.776367 | 0.026206 | 0 | 0.663073 | 0 | 0 | 0.124897 | 0.001137 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06469 | false | 0.013477 | 0.024259 | 0 | 0.218329 | 0.010782 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c4d687fd0ecaed15c28519e763d37c7758be6505 | 132 | py | Python | tests/conftest.py | nekhaly/network-analyzer | 62cf8ae35ed8442131cc609129b7c2b0af9f9526 | [
"MIT"
] | null | null | null | tests/conftest.py | nekhaly/network-analyzer | 62cf8ae35ed8442131cc609129b7c2b0af9f9526 | [
"MIT"
] | 1 | 2021-09-28T12:49:47.000Z | 2021-09-28T12:49:47.000Z | tests/conftest.py | nekhaly/network-analyzer | 62cf8ae35ed8442131cc609129b7c2b0af9f9526 | [
"MIT"
] | 2 | 2021-11-24T08:57:59.000Z | 2022-03-08T10:25:18.000Z | import pytest
@pytest.fixture(scope="session")
def bridge_contract(deploy_contract):
return deploy_contract("TestHomeBridge")
| 18.857143 | 44 | 0.795455 | 15 | 132 | 6.8 | 0.733333 | 0.27451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098485 | 132 | 6 | 45 | 22 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
c4f478ca4f9cf10ef8452424466ba4ad9e9d3a0a | 33 | py | Python | __init__.py | YusukeKambara/japan_horse_racing | 05c2e06fe265c5744b908b8575df260db18a115b | [
"MIT"
] | null | null | null | __init__.py | YusukeKambara/japan_horse_racing | 05c2e06fe265c5744b908b8575df260db18a115b | [
"MIT"
] | 1 | 2021-12-13T20:32:18.000Z | 2021-12-13T20:32:18.000Z | __init__.py | YusukeKambara/japan_horse_racing | 05c2e06fe265c5744b908b8575df260db18a115b | [
"MIT"
] | null | null | null | from japan_horse_racing import *
| 16.5 | 32 | 0.848485 | 5 | 33 | 5.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f20b0ee2d917265e3eb0a1ebf7738ee21e026e5f | 96 | py | Python | venv/lib/python3.8/site-packages/pip/_internal/commands/search.py | GiulianaPola/select_repeats | 17a0d053d4f874e42cf654dd142168c2ec8fbd11 | [
"MIT"
] | 2 | 2022-03-13T01:58:52.000Z | 2022-03-31T06:07:54.000Z | venv/lib/python3.8/site-packages/pip/_internal/commands/search.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/pip/_internal/commands/search.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/14/0f/b9/42574440301fbdc3e52e683cd89904d7831b1a5d8a1859d17fd9b9802c | 96 | 96 | 0.895833 | 9 | 96 | 9.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.458333 | 0 | 96 | 1 | 96 | 96 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1eeb3f975c57a84067b954aa2ca03d94b513ebf8 | 3,389 | py | Python | test/sprot_tests.py | genomeannotation/Annie-new | 4bb39804c4d51877907f531d72e8b2e841c58243 | [
"MIT"
] | 7 | 2018-06-14T18:19:14.000Z | 2022-01-12T12:31:50.000Z | test/sprot_tests.py | genomeannotation/Annie-new | 4bb39804c4d51877907f531d72e8b2e841c58243 | [
"MIT"
] | 10 | 2015-05-01T00:42:32.000Z | 2022-02-08T17:27:31.000Z | test/sprot_tests.py | genomeannotation/Annie | 4bb39804c4d51877907f531d72e8b2e841c58243 | [
"MIT"
] | 5 | 2016-01-22T11:59:08.000Z | 2022-03-14T06:21:13.000Z | #!/usr/bin/env python
import unittest
import io
from src.annotation import Annotation
from src.sprot import read_sprot, get_gff_info
class TestSprot(unittest.TestCase):
def setUp(self):
self.blast_file = io.StringIO(\
'm.4830 sp|Q5AZY1|MRH4_EMENI 32.65 49 33 0 114 162 500 548 0.56 34.3\n'\
... | 48.414286 | 190 | 0.77663 | 339 | 3,389 | 7.619469 | 0.315634 | 0.01355 | 0.02168 | 0.035618 | 0.805265 | 0.805265 | 0.805265 | 0.805265 | 0.779714 | 0.779714 | 0 | 0.061356 | 0.129537 | 3,389 | 69 | 191 | 49.115942 | 0.814237 | 0.005901 | 0 | 0.509091 | 0 | 0.090909 | 0.131658 | 0.025135 | 0 | 0 | 0 | 0 | 0.054545 | 1 | 0.090909 | false | 0 | 0.072727 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1ef17bd19b88211fcbab7bb4b4ca4fb0317897e1 | 12,421 | py | Python | parser_util/parser_helper.py | norbit8/online-sat-solver | 92abf0541ddd214db1c8db6cab0c270081f5f2d0 | [
"Apache-2.0"
] | null | null | null | parser_util/parser_helper.py | norbit8/online-sat-solver | 92abf0541ddd214db1c8db6cab0c270081f5f2d0 | [
"Apache-2.0"
] | 2 | 2021-02-15T16:07:33.000Z | 2021-02-15T16:13:51.000Z | parser_util/parser_helper.py | norbit8/online-sat-solver | 92abf0541ddd214db1c8db6cab0c270081f5f2d0 | [
"Apache-2.0"
] | 1 | 2021-12-12T04:41:18.000Z | 2021-12-12T04:41:18.000Z | from prop_logic.formula import *
def helper_nnf(formula: Formula):
if is_variable(str(formula)) or is_constant(str(formula)):
return formula
if formula.root == "~":
removed_neg_formula = formula.first
if removed_neg_formula.root == '|':
if removed_neg_formula.first.root == ... | 67.505435 | 117 | 0.579986 | 1,372 | 12,421 | 5.093294 | 0.041545 | 0.14253 | 0.099599 | 0.157699 | 0.914282 | 0.881797 | 0.881511 | 0.855753 | 0.837149 | 0.837149 | 0 | 0.000212 | 0.241365 | 12,421 | 183 | 118 | 67.874317 | 0.741377 | 0.012318 | 0 | 0.643678 | 0 | 0 | 0.052434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0 | 0.005747 | 0 | 0.132184 | 0.005747 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4800f4d99c4f587de428f1b83381397dce6a89b0 | 109 | py | Python | myprojects/views.py | albertvisser/myprojects | 121f8832cb6be288c125ec1886d9100b0bb6ba02 | [
"MIT"
] | null | null | null | myprojects/views.py | albertvisser/myprojects | 121f8832cb6be288c125ec1886d9100b0bb6ba02 | [
"MIT"
] | null | null | null | myprojects/views.py | albertvisser/myprojects | 121f8832cb6be288c125ec1886d9100b0bb6ba02 | [
"MIT"
] | null | null | null | from django.http import HttpResponseRedirect
def index(request):
return HttpResponseRedirect('/docs/')
| 18.166667 | 44 | 0.779817 | 11 | 109 | 7.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12844 | 109 | 5 | 45 | 21.8 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0.055046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
481ceace7801c610a763d365cdde8b738ad68c84 | 18,742 | py | Python | backend/tests/views/test_labeling_task.py | druzhynin-oleksii/model_garden | 3599f5d0c81bc79139ceabed5dd647c29ccadc31 | [
"MIT"
] | 8 | 2020-09-10T18:28:19.000Z | 2022-02-22T03:41:14.000Z | backend/tests/views/test_labeling_task.py | druzhynin-oleksii/model_garden | 3599f5d0c81bc79139ceabed5dd647c29ccadc31 | [
"MIT"
] | 1 | 2020-09-15T21:20:29.000Z | 2020-09-15T21:20:29.000Z | backend/tests/views/test_labeling_task.py | druzhynin-oleksii/model_garden | 3599f5d0c81bc79139ceabed5dd647c29ccadc31 | [
"MIT"
] | 8 | 2020-09-10T16:29:35.000Z | 2022-01-25T15:05:03.000Z | from unittest import mock
from rest_framework import status
from rest_framework.reverse import reverse
from model_garden.constants import LabelingTaskStatus
from model_garden.services.cvat import CVATServiceException
from tests import BaseAPITestCase
class TestLabelingTaskViewSet(BaseAPITestCase):
def setUp(self)... | 34.966418 | 114 | 0.705528 | 2,339 | 18,742 | 5.38478 | 0.075673 | 0.079079 | 0.073839 | 0.103374 | 0.83287 | 0.804526 | 0.769671 | 0.754029 | 0.738706 | 0.693053 | 0 | 0.016493 | 0.168605 | 18,742 | 535 | 115 | 35.031776 | 0.791811 | 0 | 0 | 0.520548 | 0 | 0 | 0.119464 | 0.002348 | 0 | 0 | 0 | 0 | 0.184932 | 1 | 0.068493 | false | 0 | 0.013699 | 0 | 0.084475 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4820389d3e5123ae5cff498473a4108cdb3d45d4 | 105 | py | Python | cac/relaxed_sync/__init__.py | FujitsuLaboratories/CAC | d12df8e47f61eaf7d7b0ed355e2d1aa296453f86 | [
"Apache-2.0"
] | 8 | 2021-09-30T07:24:43.000Z | 2022-02-21T07:30:46.000Z | cac/relaxed_sync/__init__.py | FujitsuLaboratories/CAC | d12df8e47f61eaf7d7b0ed355e2d1aa296453f86 | [
"Apache-2.0"
] | null | null | null | cac/relaxed_sync/__init__.py | FujitsuLaboratories/CAC | d12df8e47f61eaf7d7b0ed355e2d1aa296453f86 | [
"Apache-2.0"
] | null | null | null | # TODO: Review and modify comments
"""
"""
from .relaxed_sync import RelaxedSyncDistributedDataParallel
| 17.5 | 60 | 0.790476 | 10 | 105 | 8.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12381 | 105 | 5 | 61 | 21 | 0.891304 | 0.304762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
483939f0010c4caa6bfc5b6ad2485e39c96f6934 | 61 | py | Python | utils.py | meetaime/keras-extensions | 95af56b499e6ac01ca187666ef7e1f0cf7a58d4a | [
"CC0-1.0"
] | null | null | null | utils.py | meetaime/keras-extensions | 95af56b499e6ac01ca187666ef7e1f0cf7a58d4a | [
"CC0-1.0"
] | null | null | null | utils.py | meetaime/keras-extensions | 95af56b499e6ac01ca187666ef7e1f0cf7a58d4a | [
"CC0-1.0"
] | null | null | null | import numpy as np
def sigmoid(x):
return 1/(1+np.exp(-x)) | 15.25 | 25 | 0.655738 | 13 | 61 | 3.076923 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.163934 | 61 | 4 | 25 | 15.25 | 0.745098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
484522e3a65a7e32b3ef740f66a5f03ac4b17eb1 | 2,538 | py | Python | tests/integration/genome/test_genome_assembly_metrics.py | JLSteenwyk/BioKIT | 9ca31d8003dc845bf56b2c56c87820c0b05021c4 | [
"MIT"
] | 8 | 2021-10-03T21:08:33.000Z | 2021-12-02T17:15:32.000Z | tests/integration/genome/test_genome_assembly_metrics.py | JLSteenwyk/BioKIT | 9ca31d8003dc845bf56b2c56c87820c0b05021c4 | [
"MIT"
] | null | null | null | tests/integration/genome/test_genome_assembly_metrics.py | JLSteenwyk/BioKIT | 9ca31d8003dc845bf56b2c56c87820c0b05021c4 | [
"MIT"
] | 5 | 2021-10-05T06:25:03.000Z | 2022-01-04T11:01:09.000Z | import pytest
import textwrap
from mock import patch, call
from pathlib import Path
import sys
from biokit.biokit import Biokit
here = Path(__file__)
@pytest.mark.integration
class TestGenomeAssemblyMetrics(object):
@patch("builtins.print")
def test_genome_assembly_metrics_invalid_input(self, mocked_print)... | 30.95122 | 88 | 0.589441 | 305 | 2,538 | 4.754098 | 0.308197 | 0.013793 | 0.057931 | 0.033103 | 0.772414 | 0.772414 | 0.772414 | 0.772414 | 0.74069 | 0.74069 | 0 | 0.100633 | 0.314815 | 2,538 | 81 | 89 | 31.333333 | 0.73318 | 0.005516 | 0 | 0.704225 | 0 | 0 | 0.097222 | 0.06627 | 0 | 0 | 0 | 0 | 0.056338 | 1 | 0.042254 | false | 0 | 0.084507 | 0 | 0.140845 | 0.112676 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
485b93888b21974875647c874e3b68242dc9326a | 137 | py | Python | Capitulo 1/11 - lower.py | mmmacedo/python | 2e7d99021342a5c7c31fe644ff194b6a8fa88a88 | [
"MIT"
] | null | null | null | Capitulo 1/11 - lower.py | mmmacedo/python | 2e7d99021342a5c7c31fe644ff194b6a8fa88a88 | [
"MIT"
] | null | null | null | Capitulo 1/11 - lower.py | mmmacedo/python | 2e7d99021342a5c7c31fe644ff194b6a8fa88a88 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
nome = "Daniel Moreno"
print nome, "em minúsculo:", nome.lower()
print nome, "em maiúsculo:", nome.upper() | 22.833333 | 42 | 0.613139 | 18 | 137 | 4.666667 | 0.666667 | 0.214286 | 0.261905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.182482 | 137 | 6 | 43 | 22.833333 | 0.741071 | 0.153285 | 0 | 0 | 0 | 0 | 0.354545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.666667 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
485da1c5ba3aac9135c030c7b42074ef51dd8ea1 | 33 | py | Python | sfEQAA/__init__.py | komodo108/sfEQAA.py | aec88a8960fec946611514a83f020e875106b3c7 | [
"Apache-2.0"
] | null | null | null | sfEQAA/__init__.py | komodo108/sfEQAA.py | aec88a8960fec946611514a83f020e875106b3c7 | [
"Apache-2.0"
] | 2 | 2021-05-05T22:51:37.000Z | 2021-05-06T00:06:18.000Z | sfEQAA/__init__.py | komodo108/sfEQAA.py | aec88a8960fec946611514a83f020e875106b3c7 | [
"Apache-2.0"
] | null | null | null | from .convert import EQ_AA, AA_EQ | 33 | 33 | 0.818182 | 7 | 33 | 3.571429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6ff69ce8a8559c0eac0e2b3df72c2a0c67c3efe7 | 25 | py | Python | kalliope/neurons/shell/__init__.py | joshuaboniface/kalliope | 0e040be3165e838485d1e5addc4d2c5df12bfd84 | [
"MIT"
] | 1 | 2020-03-30T15:03:19.000Z | 2020-03-30T15:03:19.000Z | kalliope/neurons/shell/__init__.py | joshuaboniface/kalliope | 0e040be3165e838485d1e5addc4d2c5df12bfd84 | [
"MIT"
] | 1 | 2020-06-08T23:32:48.000Z | 2020-06-08T23:32:48.000Z | kalliope/neurons/shell/__init__.py | joshuaboniface/kalliope | 0e040be3165e838485d1e5addc4d2c5df12bfd84 | [
"MIT"
] | 1 | 2021-11-21T19:08:15.000Z | 2021-11-21T19:08:15.000Z | from .shell import Shell
| 12.5 | 24 | 0.8 | 4 | 25 | 5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b50613045bdc3a08affdd15261df02a1121740ba | 37 | py | Python | src/project/api/user/__init__.py | jSkrod/djangae-react-browser-games-app | 28c5064f0a126021afb08b195839305aba6b35a2 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | src/project/api/user/__init__.py | jSkrod/djangae-react-browser-games-app | 28c5064f0a126021afb08b195839305aba6b35a2 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | src/project/api/user/__init__.py | jSkrod/djangae-react-browser-games-app | 28c5064f0a126021afb08b195839305aba6b35a2 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | from project.api.user import signals
| 18.5 | 36 | 0.837838 | 6 | 37 | 5.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 37 | 1 | 37 | 37 | 0.939394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
82f6e27076d50b11e9f0f4f685f6893ddc976e4d | 119 | py | Python | basetrainer/utils/__init__.py | PanJinquan/pytorch-base-trainer | 37799c948f72b2f9d3771ff469e06cdbff4a1d07 | [
"MIT"
] | 11 | 2022-01-18T10:07:52.000Z | 2022-03-16T02:40:31.000Z | basetrainer/utils/__init__.py | PanJinquan/pytorch-base-trainer | 37799c948f72b2f9d3771ff469e06cdbff4a1d07 | [
"MIT"
] | null | null | null | basetrainer/utils/__init__.py | PanJinquan/pytorch-base-trainer | 37799c948f72b2f9d3771ff469e06cdbff4a1d07 | [
"MIT"
] | 1 | 2022-01-26T06:31:29.000Z | 2022-01-26T06:31:29.000Z | # -*-coding: utf-8 -*-
"""
@Author : panjq
@E-mail : pan_jinquan@163.com
@Date : 2021-07-28 08:57:17
"""
| 17 | 33 | 0.512605 | 18 | 119 | 3.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202247 | 0.252101 | 119 | 6 | 34 | 19.833333 | 0.47191 | 0.815126 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d2058e2db091fa0fb77e14398a08a64e9bdb3040 | 170 | py | Python | clifford/test/__init__.py | Dano-drevo/clifford | 3da06765b3c48d9840b5d55f082363ba6075a0d4 | [
"BSD-3-Clause"
] | 1 | 2019-11-11T13:07:29.000Z | 2019-11-11T13:07:29.000Z | clifford/test/__init__.py | Dano-drevo/clifford | 3da06765b3c48d9840b5d55f082363ba6075a0d4 | [
"BSD-3-Clause"
] | null | null | null | clifford/test/__init__.py | Dano-drevo/clifford | 3da06765b3c48d9840b5d55f082363ba6075a0d4 | [
"BSD-3-Clause"
] | null | null | null | import os
import pytest
def run_all_tests(*args):
""" Invoke pytest, forwarding options to pytest.main """
pytest.main([os.path.dirname(__file__)] + list(args))
| 24.285714 | 60 | 0.705882 | 24 | 170 | 4.75 | 0.708333 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152941 | 170 | 6 | 61 | 28.333333 | 0.791667 | 0.282353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
962855ef5863b7054bc0fcacc5786238d8cd996d | 55,737 | py | Python | heat_cfntools/tests/test_cfn_helper.py | openstack/heat-cfntools | ce3f97cecdf4e932cafdffae8f13d07756aed2db | [
"Apache-2.0"
] | 38 | 2015-01-29T20:10:40.000Z | 2021-12-07T15:17:22.000Z | heat_cfntools/tests/test_cfn_helper.py | openstack/heat-cfntools | ce3f97cecdf4e932cafdffae8f13d07756aed2db | [
"Apache-2.0"
] | null | null | null | heat_cfntools/tests/test_cfn_helper.py | openstack/heat-cfntools | ce3f97cecdf4e932cafdffae8f13d07756aed2db | [
"Apache-2.0"
] | 13 | 2015-01-06T08:49:57.000Z | 2018-11-17T22:14:38.000Z | #
# Copyright 2013 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unle... | 39.30677 | 79 | 0.578467 | 6,015 | 55,737 | 5.151288 | 0.084954 | 0.025851 | 0.029821 | 0.020042 | 0.830595 | 0.795901 | 0.754462 | 0.727739 | 0.703857 | 0.691464 | 0 | 0.011982 | 0.288767 | 55,737 | 1,417 | 80 | 39.33451 | 0.769638 | 0.024346 | 0 | 0.671353 | 0 | 0.008787 | 0.178015 | 0.039778 | 0 | 0 | 0 | 0 | 0.136204 | 1 | 0.066784 | false | 0.003515 | 0.007909 | 0.002636 | 0.096661 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
966a780ae8ab7bc07530140e071455dacca94155 | 361 | py | Python | crowdsource/tests/test_all.py | timkpaine/crowdsource | fa6acd9572812876421229ce3543db0606ceb445 | [
"Apache-2.0"
] | null | null | null | crowdsource/tests/test_all.py | timkpaine/crowdsource | fa6acd9572812876421229ce3543db0606ceb445 | [
"Apache-2.0"
] | 46 | 2017-09-30T04:01:00.000Z | 2021-12-12T20:26:10.000Z | crowdsource/tests/test_all.py | timkpaine/crowdsource | fa6acd9572812876421229ce3543db0606ceb445 | [
"Apache-2.0"
] | 1 | 2019-11-12T00:53:31.000Z | 2019-11-12T00:53:31.000Z | # accurate coverage
from crowdsource.client import *
from crowdsource.client.samples import *
from crowdsource.client.samples_mixin import *
from crowdsource.handlers import *
from crowdsource.persistence import *
from crowdsource.persistence.models import *
from crowdsource.enums import *
from crowdsource.exceptions i... | 32.818182 | 46 | 0.831025 | 42 | 361 | 7.119048 | 0.333333 | 0.451505 | 0.561873 | 0.180602 | 0.227425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108033 | 361 | 10 | 47 | 36.1 | 0.928571 | 0.047091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
96765c12a9749f2b243964eb1d07e072ed85b3ca | 137 | py | Python | oscarapi/views/mixin.py | dhaker-ramnivas/ecomAPI | 5b029974d16aad4f4b7955d52e190169590136a9 | [
"BSD-3-Clause"
] | 3 | 2020-03-30T13:11:57.000Z | 2020-04-22T13:55:31.000Z | oscarapi/views/mixin.py | dhaker-ramnivas/ecomAPI | 5b029974d16aad4f4b7955d52e190169590136a9 | [
"BSD-3-Clause"
] | 9 | 2020-10-29T08:03:28.000Z | 2021-09-08T01:21:10.000Z | oscarapi/views/mixin.py | dhaker-ramnivas/ecomAPI | 5b029974d16aad4f4b7955d52e190169590136a9 | [
"BSD-3-Clause"
] | 2 | 2021-01-06T19:25:07.000Z | 2021-05-14T02:00:19.000Z | class PutIsPatchMixin(object):
def put(self, request, *args, **kwargs):
return self.partial_update(request, *args, **kwargs)
| 34.25 | 60 | 0.686131 | 16 | 137 | 5.8125 | 0.75 | 0.236559 | 0.365591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167883 | 137 | 3 | 61 | 45.666667 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 6 |
967b18fd328ee91377f911d60eab0cf56b2e282f | 4,708 | py | Python | tests/test_cli.py | sz3/pog | e7d53a425f29c61e243a500d12f6830c9c69461b | [
"MIT"
] | 3 | 2020-02-22T21:58:04.000Z | 2021-07-18T04:23:09.000Z | tests/test_cli.py | sz3/pog | e7d53a425f29c61e243a500d12f6830c9c69461b | [
"MIT"
] | null | null | null | tests/test_cli.py | sz3/pog | e7d53a425f29c61e243a500d12f6830c9c69461b | [
"MIT"
] | null | null | null | from os import environ
from subprocess import PIPE
from unittest import TestCase
from unittest.mock import patch
from .helpers import TestDirMixin
from pog.cli import PogCli, POG_ROOT
class PogCliTest(TestDirMixin, TestCase):
# test for the PogCli class
def test_keyfiles(self):
cli = PogCli()
... | 36.215385 | 117 | 0.580501 | 566 | 4,708 | 4.678445 | 0.157244 | 0.074018 | 0.081571 | 0.108761 | 0.803248 | 0.757175 | 0.757175 | 0.748489 | 0.709215 | 0.668429 | 0 | 0.020875 | 0.257222 | 4,708 | 129 | 118 | 36.496124 | 0.736345 | 0.011045 | 0 | 0.598131 | 0 | 0 | 0.242046 | 0.038693 | 0 | 0 | 0 | 0 | 0.186916 | 1 | 0.046729 | false | 0 | 0.056075 | 0 | 0.11215 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7366aaa284e7dc7b5dbf03067f63bcfb1f5d5f29 | 175 | py | Python | testing/tests/001-main/005-unittests/002-api/013-filechange.py | piwaniuk/critic | 28ed20bb8032d7cc5aa23de98da51e619fd84164 | [
"Apache-2.0"
] | 216 | 2015-01-05T12:48:10.000Z | 2022-03-08T00:12:23.000Z | testing/tests/001-main/005-unittests/002-api/013-filechange.py | piwaniuk/critic | 28ed20bb8032d7cc5aa23de98da51e619fd84164 | [
"Apache-2.0"
] | 55 | 2015-02-28T12:10:26.000Z | 2020-11-18T17:45:16.000Z | testing/tests/001-main/005-unittests/002-api/013-filechange.py | piwaniuk/critic | 28ed20bb8032d7cc5aa23de98da51e619fd84164 | [
"Apache-2.0"
] | 34 | 2015-05-02T15:15:10.000Z | 2020-06-15T19:20:37.000Z | instance.unittest("api.filechange", ["pre"])
instance.synchronize_service("changeset") # wait for changeset creation to finish
instance.unittest("api.filechange", ["post"])
| 29.166667 | 81 | 0.76 | 20 | 175 | 6.6 | 0.7 | 0.242424 | 0.287879 | 0.439394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 175 | 5 | 82 | 35 | 0.819876 | 0.211429 | 0 | 0 | 0 | 0 | 0.323529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.