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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e2f550e1be14fc4de3d3f2c4274e4cb59e59e02d | 3,550 | py | Python | lib/click-6.6/tests/test_formatting.py | brianrodri/google_appengine | ec4e7cdfa1afd99de23b0a32eb94563fe5e6ef43 | [
"Apache-2.0"
] | 26 | 2015-01-20T08:02:38.000Z | 2020-06-10T04:57:41.000Z | lib/click-6.6/tests/test_formatting.py | brianrodri/google_appengine | ec4e7cdfa1afd99de23b0a32eb94563fe5e6ef43 | [
"Apache-2.0"
] | 4 | 2016-02-28T05:53:54.000Z | 2017-01-03T07:39:50.000Z | lib/click-6.6/tests/test_formatting.py | brianrodri/google_appengine | ec4e7cdfa1afd99de23b0a32eb94563fe5e6ef43 | [
"Apache-2.0"
] | 13 | 2016-02-28T00:14:23.000Z | 2021-05-03T15:47:36.000Z | # -*- coding: utf-8 -*-
import click
def test_basic_functionality(runner):
@click.command()
def cli():
"""First paragraph.
This is a very long second
paragraph and not correctly
wrapped but it will be rewrapped.
\b
This is
a paragraph
without r... | 23.986486 | 79 | 0.510704 | 362 | 3,550 | 4.895028 | 0.21547 | 0.088036 | 0.023702 | 0.036117 | 0.888826 | 0.822799 | 0.738149 | 0.72912 | 0.706546 | 0.706546 | 0 | 0.006573 | 0.357183 | 3,550 | 147 | 80 | 24.14966 | 0.769939 | 0.141127 | 0 | 0.659574 | 0 | 0 | 0.298513 | 0.014528 | 0 | 0 | 0 | 0 | 0.085106 | 1 | 0.12766 | false | 0 | 0.010638 | 0 | 0.138298 | 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 |
391766e831921eaed8b2ee02ec5c93bd98c4153f | 1,197 | py | Python | test/example_algorithm.py | fluxtransport/hazel2 | 4121df2fa6bf96bf8f193f287bbf11c70c5a519e | [
"MIT"
] | 17 | 2018-08-31T11:13:59.000Z | 2022-01-12T02:30:56.000Z | test/example_algorithm.py | fluxtransport/hazel2 | 4121df2fa6bf96bf8f193f287bbf11c70c5a519e | [
"MIT"
] | 26 | 2018-04-03T15:09:21.000Z | 2021-05-27T10:10:45.000Z | test/example_algorithm.py | fluxtransport/hazel2 | 4121df2fa6bf96bf8f193f287bbf11c70c5a519e | [
"MIT"
] | 3 | 2018-05-01T13:47:21.000Z | 2019-09-23T20:49:08.000Z | import numpy as np
import matplotlib.pyplot as pl
import hazel
import h5py
from scipy.optimize import minimize
import gc
# Test a single inversion in non-iterator mode
mod = hazel.Model('conf_single.ini', working_mode='inversion', verbose=2)
mod.read_observation()
mod.open_output()
mod.invert()
mod.write_output()
mod.... | 27.204545 | 73 | 0.730994 | 187 | 1,197 | 4.57754 | 0.347594 | 0.042056 | 0.098131 | 0.121495 | 0.787383 | 0.787383 | 0.787383 | 0.787383 | 0.787383 | 0.787383 | 0 | 0.028131 | 0.079365 | 1,197 | 44 | 74 | 27.204545 | 0.748639 | 0.036759 | 0 | 0.722222 | 0 | 0 | 0.233507 | 0.121528 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
392a862eb4cf1206505179391fd2906fb0b5c6e2 | 32 | py | Python | lxdspawner/__init__.py | KeioAIConsortium/jupyterhub-lxd-spawner | 7c5123990cfa51fb1214b7d5c7eb882dda6a50c6 | [
"MIT"
] | 1 | 2021-11-25T01:17:51.000Z | 2021-11-25T01:17:51.000Z | lxdspawner/__init__.py | KeioAIConsortium/jupyterhub-lxd-spawner | 7c5123990cfa51fb1214b7d5c7eb882dda6a50c6 | [
"MIT"
] | 9 | 2020-05-29T05:36:28.000Z | 2021-03-13T09:21:26.000Z | lxdspawner/__init__.py | KeioAIConsortium/jupyterhub-lxd-spawner | 7c5123990cfa51fb1214b7d5c7eb882dda6a50c6 | [
"MIT"
] | null | null | null | from .spawner import LXDSpawner
| 16 | 31 | 0.84375 | 4 | 32 | 6.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 32 | 1 | 32 | 32 | 0.964286 | 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 |
1a92abfa6c5aa128578bbcefafd065a659dc1fe9 | 12,086 | py | Python | oscars_test.py | srio/shadow3-scripts | 10712641333c29ca9854e9cc60d86cb321f3762b | [
"MIT"
] | 1 | 2019-10-30T10:06:15.000Z | 2019-10-30T10:06:15.000Z | oscars_test.py | srio/shadow3-scripts | 10712641333c29ca9854e9cc60d86cb321f3762b | [
"MIT"
] | null | null | null | oscars_test.py | srio/shadow3-scripts | 10712641333c29ca9854e9cc60d86cb321f3762b | [
"MIT"
] | null | null | null |
# coding: utf-8
# Plots inline for notebook
#get_ipython().run_line_magic('matplotlib', 'inline')
# Import the OSCARS SR module
from srxraylib.plot.gol import set_qt
import oscars.sr
from oscars.plots_mpl import *
from oscars.parametric_surfaces import PSCylinder
import numpy
def undulator_spectrum():
# Create... | 31.310881 | 121 | 0.676485 | 1,734 | 12,086 | 4.579585 | 0.119954 | 0.010074 | 0.01763 | 0.022667 | 0.878101 | 0.865886 | 0.848004 | 0.83793 | 0.834656 | 0.822818 | 0 | 0.049989 | 0.22042 | 12,086 | 386 | 122 | 31.310881 | 0.792825 | 0.457471 | 0 | 0.688742 | 0 | 0 | 0.005324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059603 | false | 0 | 0.05298 | 0 | 0.112583 | 0.046358 | 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 |
46b7d92ab60cce8857403f110c10a7f7acc9e8c1 | 137 | py | Python | pyrimidine/local_search/__init__.py | Freakwill/pyrimidine | ff05998f110a69a002180d0dae2ae514a5807cfb | [
"MIT"
] | 1 | 2021-03-04T17:03:14.000Z | 2021-03-04T17:03:14.000Z | pyrimidine/local_search/__init__.py | Freakwill/pyrimidine | ff05998f110a69a002180d0dae2ae514a5807cfb | [
"MIT"
] | null | null | null | pyrimidine/local_search/__init__.py | Freakwill/pyrimidine | ff05998f110a69a002180d0dae2ae514a5807cfb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from .simulated_annealing import *
from .random_walk import *
from .tabu_search import * | 19.571429 | 34 | 0.708029 | 19 | 137 | 4.947368 | 0.789474 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 0.145985 | 137 | 7 | 35 | 19.571429 | 0.786325 | 0.313869 | 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 |
46d8c9d44e9dbc1ea9309c2a2e8cbfd2d94c2d06 | 145 | py | Python | dvc/utils/collections.py | vyloy/dvc | 60c89adeb5dcc293d8661d6aabeb1da6d05466f5 | [
"Apache-2.0"
] | 1 | 2019-04-16T19:51:03.000Z | 2019-04-16T19:51:03.000Z | dvc/utils/collections.py | vyloy/dvc | 60c89adeb5dcc293d8661d6aabeb1da6d05466f5 | [
"Apache-2.0"
] | null | null | null | dvc/utils/collections.py | vyloy/dvc | 60c89adeb5dcc293d8661d6aabeb1da6d05466f5 | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
# just simple check for Nones and emtpy strings
def compact(args):
return list(filter(bool, args))
| 20.714286 | 47 | 0.772414 | 21 | 145 | 5.095238 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165517 | 145 | 6 | 48 | 24.166667 | 0.884298 | 0.310345 | 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 |
46ddd2452e2167c4d040cbcb09e2c5f4dfefaa71 | 1,111 | py | Python | operation.py | lucasma8795/chess | 2d8a1f6472dc12e83bace2eb7e8329358edb6b4c | [
"Unlicense"
] | null | null | null | operation.py | lucasma8795/chess | 2d8a1f6472dc12e83bace2eb7e8329358edb6b4c | [
"Unlicense"
] | null | null | null | operation.py | lucasma8795/chess | 2d8a1f6472dc12e83bace2eb7e8329358edb6b4c | [
"Unlicense"
] | null | null | null | class Operation():
def __init__(self):
pass
class op_pawn_move(Operation):
def __init__(self, old_pos, new_pos, two_squares=False):
super().__init__()
self.old_pos = old_pos
self.new_pos = new_pos
self.two_squares = two_squares
class op_en_passant(Operation):
def __init__(self, old_pos, new_pos, ep_pos):... | 24.152174 | 59 | 0.723672 | 181 | 1,111 | 3.878453 | 0.176796 | 0.153846 | 0.188034 | 0.239316 | 0.725071 | 0.725071 | 0.725071 | 0.725071 | 0.679487 | 0.517094 | 0 | 0.002132 | 0.155716 | 1,111 | 45 | 60 | 24.688889 | 0.746269 | 0.045905 | 0 | 0.578947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184211 | false | 0.052632 | 0 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
645c421a7c0a65c7f4ed2f6036aaba467e9a0a8a | 7,307 | py | Python | tests/unit/test_install.py | markharley/pip-install-privates | a55b82020db0813ed8bac95e175edf5e8363bf32 | [
"MIT"
] | null | null | null | tests/unit/test_install.py | markharley/pip-install-privates | a55b82020db0813ed8bac95e175edf5e8363bf32 | [
"MIT"
] | null | null | null | tests/unit/test_install.py | markharley/pip-install-privates | a55b82020db0813ed8bac95e175edf5e8363bf32 | [
"MIT"
] | null | null | null | import os
import tempfile
from unittest import TestCase
from pip_install_privates.install import collect_requirements
class TestInstall(TestCase):
def _create_reqs_file(self, reqs):
with tempfile.NamedTemporaryFile(delete=False) as f:
f.write('\n'.join(reqs).encode('utf-8'))
self.ad... | 47.75817 | 118 | 0.608458 | 1,056 | 7,307 | 3.971591 | 0.099432 | 0.069146 | 0.096805 | 0.120172 | 0.8598 | 0.852408 | 0.843348 | 0.805913 | 0.802575 | 0.802575 | 0 | 0.045741 | 0.195155 | 7,307 | 152 | 119 | 48.072368 | 0.667404 | 0 | 0 | 0.504762 | 0 | 0 | 0.283641 | 0.036003 | 0 | 0 | 0 | 0 | 0.171429 | 1 | 0.180952 | false | 0 | 0.038095 | 0 | 0.238095 | 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 |
646d6e4235411c4ee4a21ed373eb71a093cd02cb | 179 | py | Python | matid/__init__.py | markus1978/matid | dad7a79db727015a3ad0a50962e351f6bf724e4d | [
"Apache-2.0"
] | 20 | 2018-06-25T10:04:58.000Z | 2021-07-09T06:15:06.000Z | matid/__init__.py | markus1978/matid | dad7a79db727015a3ad0a50962e351f6bf724e4d | [
"Apache-2.0"
] | 7 | 2019-02-28T11:19:14.000Z | 2020-11-27T10:16:09.000Z | matid/__init__.py | markus1978/matid | dad7a79db727015a3ad0a50962e351f6bf724e4d | [
"Apache-2.0"
] | 5 | 2018-11-23T10:02:12.000Z | 2021-06-30T12:41:45.000Z | from matid.classification.classifier import Classifier
from matid.classification.periodicfinder import PeriodicFinder
from matid.symmetry.symmetryanalyzer import SymmetryAnalyzer
| 44.75 | 62 | 0.899441 | 18 | 179 | 8.944444 | 0.444444 | 0.167702 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067039 | 179 | 3 | 63 | 59.666667 | 0.964072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 |
6473ac17ff682dd87cd41748c7ec4698347a9b13 | 196 | py | Python | modules/dials/algorithms/background/median/__init__.py | jorgediazjr/dials-dev20191018 | 77d66c719b5746f37af51ad593e2941ed6fbba17 | [
"BSD-3-Clause"
] | null | null | null | modules/dials/algorithms/background/median/__init__.py | jorgediazjr/dials-dev20191018 | 77d66c719b5746f37af51ad593e2941ed6fbba17 | [
"BSD-3-Clause"
] | null | null | null | modules/dials/algorithms/background/median/__init__.py | jorgediazjr/dials-dev20191018 | 77d66c719b5746f37af51ad593e2941ed6fbba17 | [
"BSD-3-Clause"
] | 1 | 2020-02-04T15:39:06.000Z | 2020-02-04T15:39:06.000Z | from __future__ import absolute_import, division, print_function
from dials.algorithms.background.median.algorithm import BackgroundAlgorithm
from dials_algorithms_background_median_ext import *
| 39.2 | 76 | 0.887755 | 23 | 196 | 7.130435 | 0.608696 | 0.109756 | 0.231707 | 0.353659 | 0.426829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076531 | 196 | 4 | 77 | 49 | 0.906077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.333333 | 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 |
648b275bc7cd5a4ba6b055f739ed44b8ed35745d | 41 | py | Python | core/exception/__init__.py | ryanolee/pager-duty-sync | 1fd88634e461b5db647d856bc6b59f990944685e | [
"MIT"
] | null | null | null | core/exception/__init__.py | ryanolee/pager-duty-sync | 1fd88634e461b5db647d856bc6b59f990944685e | [
"MIT"
] | 2 | 2020-09-27T18:19:17.000Z | 2021-06-29T09:21:04.000Z | core/exception/__init__.py | ryanolee/pager-duty-sync | 1fd88634e461b5db647d856bc6b59f990944685e | [
"MIT"
] | null | null | null | from .httpExceptions import HTTPException | 41 | 41 | 0.902439 | 4 | 41 | 9.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 41 | 1 | 41 | 41 | 0.973684 | 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 |
6492c020f5fcfef7237266ba7de4fa58ee7a6c87 | 102 | py | Python | aws_mock/requests/modify_subnet_attribute.py | enaydanov/aws_mock | 4ad3dca270ad164693e85741d5e92f845c34aa01 | [
"Apache-2.0"
] | null | null | null | aws_mock/requests/modify_subnet_attribute.py | enaydanov/aws_mock | 4ad3dca270ad164693e85741d5e92f845c34aa01 | [
"Apache-2.0"
] | 1 | 2021-10-21T21:06:29.000Z | 2021-10-21T21:06:29.000Z | aws_mock/requests/modify_subnet_attribute.py | bentsi/aws_mock | d6c1b963e02b4cd3602722e7135f4d65f6a71d3e | [
"Apache-2.0"
] | 1 | 2021-11-08T14:20:36.000Z | 2021-11-08T14:20:36.000Z | from aws_mock.lib import aws_response
@aws_response
def modify_subnet_attribute() -> None:
pass
| 14.571429 | 38 | 0.77451 | 15 | 102 | 4.933333 | 0.8 | 0.297297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 102 | 6 | 39 | 17 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0.25 | 0.25 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
649a7cdf7291e8bb3799fdb69b8b932c130f83e7 | 7,097 | py | Python | loldib/getratings/models/NA/na_cassiopeia/na_cassiopeia_sup.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_cassiopeia/na_cassiopeia_sup.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_cassiopeia/na_cassiopeia_sup.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | from getratings.models.ratings import Ratings
class NA_Cassiopeia_Sup_Aatrox(Ratings):
pass
class NA_Cassiopeia_Sup_Ahri(Ratings):
pass
class NA_Cassiopeia_Sup_Akali(Ratings):
pass
class NA_Cassiopeia_Sup_Alistar(Ratings):
pass
class NA_Cassiopeia_Sup_Amumu(Ratings):
pass
class NA_Cassiopeia... | 17.019185 | 47 | 0.784839 | 972 | 7,097 | 5.304527 | 0.151235 | 0.187355 | 0.455004 | 0.535299 | 0.823701 | 0.823701 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156545 | 7,097 | 416 | 48 | 17.060096 | 0.861343 | 0 | 0 | 0.498195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.498195 | 0.00361 | 0 | 0.501805 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
64b725ad878c5678871563ccb1019a7f54db1797 | 22,388 | py | Python | tests/test_smartCompare.py | salesforce/smartACL | b8ccf5003689e32e9cf10512df84117f95ed86c2 | [
"BSD-3-Clause"
] | 3 | 2019-10-10T16:53:06.000Z | 2020-12-29T22:48:29.000Z | tests/test_smartCompare.py | salesforce/smartACL | b8ccf5003689e32e9cf10512df84117f95ed86c2 | [
"BSD-3-Clause"
] | 5 | 2018-03-02T08:30:52.000Z | 2021-07-26T10:53:18.000Z | tests/test_smartCompare.py | salesforce/smartACL | b8ccf5003689e32e9cf10512df84117f95ed86c2 | [
"BSD-3-Clause"
] | 3 | 2018-02-27T14:41:31.000Z | 2019-08-06T04:41:21.000Z | # Copyright (c) 2018, salesforce.com, inc.
# All rights reserved.
# Licensed under the BSD 3-Clause license.
# For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
import unittest
import sys
import os
from smartACL import linkdef
from smartACL import link_cisco... | 68.886154 | 290 | 0.719939 | 3,089 | 22,388 | 5.056329 | 0.081256 | 0.022537 | 0.019976 | 0.012037 | 0.854344 | 0.810935 | 0.748639 | 0.726231 | 0.725527 | 0.721173 | 0 | 0.089206 | 0.1608 | 22,388 | 325 | 291 | 68.886154 | 0.742123 | 0.01273 | 0 | 0.378378 | 0 | 0.127413 | 0.169639 | 0.049266 | 0 | 0 | 0 | 0 | 0.138996 | 1 | 0.084942 | false | 0 | 0.027027 | 0 | 0.11583 | 0.138996 | 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 |
b37f659598aede38ce5c3895f879e9aef08c302a | 75 | py | Python | code_export/run.py | EPFLMachineLearningTeamYoor/Project02 | 1274e45b8fe6f43e959dbf862a50fdab7def7797 | [
"MIT"
] | null | null | null | code_export/run.py | EPFLMachineLearningTeamYoor/Project02 | 1274e45b8fe6f43e959dbf862a50fdab7def7797 | [
"MIT"
] | 13 | 2017-11-15T18:08:15.000Z | 2017-12-26T19:27:02.000Z | code_export/run.py | EPFLMachineLearningTeamYoor/Project02 | 1274e45b8fe6f43e959dbf862a50fdab7def7797 | [
"MIT"
] | 1 | 2018-05-25T19:39:20.000Z | 2018-05-25T19:39:20.000Z | import os
os.system("python 00clean.py")
os.system("python 01classify.py")
| 18.75 | 33 | 0.76 | 12 | 75 | 4.75 | 0.583333 | 0.280702 | 0.491228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 0.08 | 75 | 3 | 34 | 25 | 0.768116 | 0 | 0 | 0 | 0 | 0 | 0.493333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
b3a7d12bc9a3f6a864f63bd5a3da3a1bb16349c9 | 49 | py | Python | gmplot/__init__.py | Monti03/gmplot | 888ed6e2845913a8623009757e03ec49a11da7db | [
"MIT"
] | 606 | 2015-10-04T02:43:48.000Z | 2020-04-17T16:57:36.000Z | gmplot/__init__.py | Monti03/gmplot | 888ed6e2845913a8623009757e03ec49a11da7db | [
"MIT"
] | 100 | 2020-04-20T04:46:16.000Z | 2022-01-07T00:41:47.000Z | gmplot/__init__.py | Monti03/gmplot | 888ed6e2845913a8623009757e03ec49a11da7db | [
"MIT"
] | 266 | 2015-05-10T21:44:15.000Z | 2020-04-12T15:11:03.000Z | from .google_map_plotter import GoogleMapPlotter
| 24.5 | 48 | 0.897959 | 6 | 49 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 49 | 1 | 49 | 49 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b3acd2e000318018920640120ff7b09a5c66d8ea | 10,588 | py | Python | projects/vdk-control-cli/tests/vdk/internal/control/command_groups/job/test_execute.py | alod83/versatile-data-kit | 9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8 | [
"Apache-2.0"
] | 100 | 2021-10-04T09:32:04.000Z | 2022-03-30T11:23:53.000Z | projects/vdk-control-cli/tests/vdk/internal/control/command_groups/job/test_execute.py | alod83/versatile-data-kit | 9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8 | [
"Apache-2.0"
] | 208 | 2021-10-04T16:56:40.000Z | 2022-03-31T10:41:44.000Z | projects/vdk-control-cli/tests/vdk/internal/control/command_groups/job/test_execute.py | alod83/versatile-data-kit | 9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8 | [
"Apache-2.0"
] | 14 | 2021-10-11T14:15:13.000Z | 2022-03-11T13:39:17.000Z | # Copyright 2021 VMware, Inc.
# SPDX-License-Identifier: Apache-2.0
import json
import os
from unittest.mock import patch
from click.testing import CliRunner
from py._path.local import LocalPath
from pytest_httpserver.pytest_plugin import PluginHTTPServer
from taurus_datajob_api import DataJobDeployment
from taurus_da... | 30.868805 | 97 | 0.619286 | 1,276 | 10,588 | 4.9279 | 0.121473 | 0.052322 | 0.028626 | 0.028626 | 0.82395 | 0.787373 | 0.779262 | 0.764313 | 0.75 | 0.73855 | 0 | 0.011453 | 0.241311 | 10,588 | 342 | 98 | 30.959064 | 0.771318 | 0.00595 | 0 | 0.670213 | 0 | 0.014184 | 0.250238 | 0.102832 | 0 | 0 | 0 | 0 | 0.08156 | 1 | 0.042553 | false | 0 | 0.039007 | 0 | 0.08156 | 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 |
b61224b359b1b664d0d88a9fb2fe8fd54623ffd0 | 165 | py | Python | main/admin.py | drhoet/photo-workflow | 4d1e6be82a71fec34e37ddf4096c46d871b24b66 | [
"MIT"
] | null | null | null | main/admin.py | drhoet/photo-workflow | 4d1e6be82a71fec34e37ddf4096c46d871b24b66 | [
"MIT"
] | null | null | null | main/admin.py | drhoet/photo-workflow | 4d1e6be82a71fec34e37ddf4096c46d871b24b66 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Author, Directory, Image
admin.site.register(Directory)
admin.site.register(Image)
admin.site.register(Author)
| 23.571429 | 44 | 0.818182 | 23 | 165 | 5.869565 | 0.478261 | 0.2 | 0.377778 | 0.325926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084848 | 165 | 6 | 45 | 27.5 | 0.89404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 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 |
37a107ac9978b71007d044eaab66a8782c71ec7b | 38 | py | Python | maps/lotus_island/__init__.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | maps/lotus_island/__init__.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | maps/lotus_island/__init__.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | from .lotus_island import LotusIsland
| 19 | 37 | 0.868421 | 5 | 38 | 6.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 38 | 1 | 38 | 38 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
809e95004d6bb84c2a15c2de65286c1bbf8a2c1c | 10,372 | py | Python | tests/test_model_decisions.py | djmhunt/TTpy | 0f0997314bf0f54831494b2ef1a64f1bff95c097 | [
"MIT"
] | null | null | null | tests/test_model_decisions.py | djmhunt/TTpy | 0f0997314bf0f54831494b2ef1a64f1bff95c097 | [
"MIT"
] | 4 | 2020-04-19T11:43:41.000Z | 2020-07-21T09:57:51.000Z | tests/test_model_decisions.py | djmhunt/TTpy | 0f0997314bf0f54831494b2ef1a64f1bff95c097 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
:Author: Dominic
"""
import collections
import model.decision.binary as binary
import model.decision.discrete as discrete
import numpy as np
#%% For binary.single
class TestClass_decSingle:
def test_S_normal(self):
np.random.seed(100)
d = binary.single... | 40.996047 | 99 | 0.554956 | 1,533 | 10,372 | 3.6197 | 0.049576 | 0.166336 | 0.018382 | 0.126149 | 0.922689 | 0.922509 | 0.907911 | 0.861597 | 0.81348 | 0.786448 | 0 | 0.088647 | 0.256074 | 10,372 | 253 | 100 | 40.996047 | 0.630508 | 0.016294 | 0 | 0.593137 | 0 | 0 | 0.006439 | 0 | 0 | 0 | 0 | 0 | 0.186275 | 1 | 0.161765 | false | 0 | 0.019608 | 0 | 0.205882 | 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 |
809eed726ebdd675fbefd9df1532efbcc6869cd5 | 1,289 | py | Python | interactions/__init__.py | Jalancar/discord-interactions | d443d7de39780987ea8c8a580a2ca6f083542c21 | [
"MIT"
] | null | null | null | interactions/__init__.py | Jalancar/discord-interactions | d443d7de39780987ea8c8a580a2ca6f083542c21 | [
"MIT"
] | null | null | null | interactions/__init__.py | Jalancar/discord-interactions | d443d7de39780987ea8c8a580a2ca6f083542c21 | [
"MIT"
] | null | null | null | """
(interactions)
discord-interactions
Easy, simple, scalable and modular: a Python API wrapper for interactions.
To see the documentation, please head over to the link here:
https://discord-interactions.rtfd.io/en/latest for ``stable`` builds.
https://discord-interactions.rtfd.io/en/unstable for ``unstable`... | 39.060606 | 77 | 0.713732 | 191 | 1,289 | 4.816754 | 0.314136 | 0.206522 | 0.28913 | 0.371739 | 0.645652 | 0.526087 | 0.336957 | 0 | 0 | 0 | 0 | 0.111528 | 0.172227 | 1,289 | 32 | 78 | 40.28125 | 0.750703 | 0.523662 | 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 |
80ec0b533e065032c62d77a15af81c098418bb7a | 130 | py | Python | tests/conftest.py | rhanka/addok | 320d145e72964d54eb33742f0329e9f46f5c5ab5 | [
"WTFPL"
] | 215 | 2016-01-29T08:37:56.000Z | 2022-03-28T06:28:41.000Z | tests/conftest.py | bendathierrycom/addok | 07346046ed53993d8e2b66262f52d505f26f5ba9 | [
"MIT"
] | 487 | 2016-01-13T10:11:34.000Z | 2022-03-31T10:56:24.000Z | tests/conftest.py | bendathierrycom/addok | 07346046ed53993d8e2b66262f52d505f26f5ba9 | [
"MIT"
] | 52 | 2016-01-12T13:10:28.000Z | 2022-03-24T15:45:39.000Z | def pytest_configure():
from addok.config import config as addok_config
addok_config.SYNONYMS_PATH = 'tests/synonyms.txt'
| 32.5 | 53 | 0.776923 | 18 | 130 | 5.388889 | 0.666667 | 0.340206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146154 | 130 | 3 | 54 | 43.333333 | 0.873874 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
038e9fece67b1cf6dca75b65528af70db559ef7a | 90 | py | Python | camp/Core/__init__.py | blakezim/CAMP | a42a407dc62151ab8a7eb4be3aee1318b984502c | [
"MIT"
] | 4 | 2021-03-02T05:18:06.000Z | 2021-11-29T16:06:39.000Z | camp/Core/__init__.py | blakezim/CAMP | a42a407dc62151ab8a7eb4be3aee1318b984502c | [
"MIT"
] | null | null | null | camp/Core/__init__.py | blakezim/CAMP | a42a407dc62151ab8a7eb4be3aee1318b984502c | [
"MIT"
] | 1 | 2021-03-26T20:38:11.000Z | 2021-03-26T20:38:11.000Z | from .StructuredGridClass import *
from .TriangleMeshClass import *
from .Display import * | 30 | 34 | 0.811111 | 9 | 90 | 8.111111 | 0.555556 | 0.273973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122222 | 90 | 3 | 35 | 30 | 0.924051 | 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 |
ff1ff5eb8a3d4b3cfe2f72163ab368db619cda37 | 195 | py | Python | pasa/dict/__init__.py | sonoisa/pasa | 90dbcd72890bfe390d2a58f2a4cdb79d42a9f9f8 | [
"MIT"
] | 5 | 2018-07-23T05:45:24.000Z | 2021-04-04T14:59:15.000Z | pasa/dict/__init__.py | sonoisa/pasa | 90dbcd72890bfe390d2a58f2a4cdb79d42a9f9f8 | [
"MIT"
] | 2 | 2019-01-28T04:33:12.000Z | 2019-11-20T14:30:27.000Z | pasa/dict/__init__.py | sonoisa/pasa | 90dbcd72890bfe390d2a58f2a4cdb79d42a9f9f8 | [
"MIT"
] | 1 | 2020-02-07T08:09:12.000Z | 2020-02-07T08:09:12.000Z | # -*- coding: utf-8 -*-
from . import category
from . import cchart
from . import filter
from . import frame
from . import idiom
from . import compound_predicate
from .load_json import LoadJson
| 19.5 | 32 | 0.74359 | 27 | 195 | 5.296296 | 0.555556 | 0.41958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006211 | 0.174359 | 195 | 9 | 33 | 21.666667 | 0.881988 | 0.107692 | 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 |
209cc331543d15ad5bdae8f487f601e323119dd4 | 516 | py | Python | cbpro/__init__.py | Cattes/coinbasepro-python | 0a9c9ba2188f6bfa08a842a666ab12fe1cc02276 | [
"MIT"
] | null | null | null | cbpro/__init__.py | Cattes/coinbasepro-python | 0a9c9ba2188f6bfa08a842a666ab12fe1cc02276 | [
"MIT"
] | null | null | null | cbpro/__init__.py | Cattes/coinbasepro-python | 0a9c9ba2188f6bfa08a842a666ab12fe1cc02276 | [
"MIT"
] | null | null | null | from cbpro.auth import Auth
from cbpro.messenger import Messenger
from cbpro.public import PublicClient
from cbpro.public import public_client
from cbpro.private import PrivateClient
from cbpro.private import private_client
from cbpro.models import PublicModel
from cbpro.models import PrivateModel
from cbpro.websock... | 32.25 | 43 | 0.870155 | 68 | 516 | 6.558824 | 0.294118 | 0.262332 | 0.201794 | 0.269058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104651 | 516 | 16 | 44 | 32.25 | 0.965368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
20b43209e8d703bc2cd7dc94334a85f61041e9d0 | 9,938 | py | Python | tests/test_decompressor_fuzzing.py | thewtex/python-zstandard | 51d4c71ab6ca6aa915e4caf3f51a73fa6fc3b43a | [
"BSD-3-Clause"
] | null | null | null | tests/test_decompressor_fuzzing.py | thewtex/python-zstandard | 51d4c71ab6ca6aa915e4caf3f51a73fa6fc3b43a | [
"BSD-3-Clause"
] | null | null | null | tests/test_decompressor_fuzzing.py | thewtex/python-zstandard | 51d4c71ab6ca6aa915e4caf3f51a73fa6fc3b43a | [
"BSD-3-Clause"
] | null | null | null | import io
import os
import unittest
try:
import hypothesis
import hypothesis.strategies as strategies
except ImportError:
raise unittest.SkipTest('hypothesis not available')
import zstandard as zstd
from . common import (
make_cffi,
random_input_data,
)
@unittest.skipUnless('ZSTD_SLOW_TESTS' in... | 39.280632 | 111 | 0.639666 | 1,113 | 9,938 | 5.47619 | 0.115903 | 0.073831 | 0.051682 | 0.063987 | 0.801805 | 0.783429 | 0.761936 | 0.717801 | 0.717801 | 0.700902 | 0 | 0.015048 | 0.26444 | 9,938 | 252 | 112 | 39.436508 | 0.818741 | 0 | 0 | 0.649485 | 0 | 0 | 0.026263 | 0 | 0 | 0 | 0 | 0 | 0.061856 | 1 | 0.046392 | false | 0 | 0.041237 | 0 | 0.118557 | 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 |
20e678b65518d51c75c0bea4ebbfc07e9a58fa53 | 511 | py | Python | relfs/relfs/error.py | matus-chochlik/various | 2a9f5eddd964213f7d1e1ce8328e2e0b2a8e998b | [
"MIT"
] | 1 | 2020-10-25T12:28:50.000Z | 2020-10-25T12:28:50.000Z | relfs/relfs/error.py | matus-chochlik/various | 2a9f5eddd964213f7d1e1ce8328e2e0b2a8e998b | [
"MIT"
] | null | null | null | relfs/relfs/error.py | matus-chochlik/various | 2a9f5eddd964213f7d1e1ce8328e2e0b2a8e998b | [
"MIT"
] | null | null | null | # coding=utf-8
#------------------------------------------------------------------------------#
from __future__ import print_function
import sys
#------------------------------------------------------------------------------#
class RelFsError(Exception):
pass
#-------------------------------------------------------... | 42.583333 | 80 | 0.268102 | 27 | 511 | 4.851852 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002083 | 0.060665 | 511 | 11 | 81 | 46.454545 | 0.270833 | 0.634051 | 0 | 0 | 0 | 0 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.333333 | 0 | 0.666667 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 6 |
45ac294f52215a510ce54899c0cff4967a472747 | 30 | py | Python | BHT_ARIMA/__init__.py | ridwanfathin/BHT-ARIMA | 65df2af999cb13e15e39c4729638d31eb553c9c2 | [
"MIT"
] | 74 | 2020-02-25T13:28:47.000Z | 2022-03-29T09:10:41.000Z | BHT_ARIMA/__init__.py | tongnie/BHT-ARIMA | d88c7cedaa9c60b317d501eb595ec6f6ee72dced | [
"MIT"
] | 6 | 2020-02-27T20:04:58.000Z | 2021-12-04T08:58:01.000Z | BHT_ARIMA/__init__.py | tongnie/BHT-ARIMA | d88c7cedaa9c60b317d501eb595ec6f6ee72dced | [
"MIT"
] | 29 | 2020-03-09T03:14:14.000Z | 2022-03-29T09:09:21.000Z | from .BHTARIMA import BHTARIMA | 30 | 30 | 0.866667 | 4 | 30 | 6.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 30 | 1 | 30 | 30 | 0.962963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
affe65db0edb95b01441f0d328b87045db9c06de | 95 | py | Python | fcmeans/__init__.py | agrande-analog/fuzzy-c-means | f005223362a978ea183abc7cc4dd91f2e299f34a | [
"MIT"
] | null | null | null | fcmeans/__init__.py | agrande-analog/fuzzy-c-means | f005223362a978ea183abc7cc4dd91f2e299f34a | [
"MIT"
] | null | null | null | fcmeans/__init__.py | agrande-analog/fuzzy-c-means | f005223362a978ea183abc7cc4dd91f2e299f34a | [
"MIT"
] | null | null | null | """fuzzy-c-means - A simple implementation of Fuzzy C-means algorithm."""
from .fcm import FCM
| 31.666667 | 73 | 0.736842 | 15 | 95 | 4.666667 | 0.733333 | 0.171429 | 0.314286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136842 | 95 | 2 | 74 | 47.5 | 0.853659 | 0.705263 | 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 | 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 |
b33e6bdebf0f161a4e73a547d7ce5d9d2ae121f7 | 44 | py | Python | scripts/pipeline/try.py | ahsanbarkati/DRQA | d03dbd3ee12e80594e47f3003e6576e86d037f81 | [
"BSD-3-Clause"
] | null | null | null | scripts/pipeline/try.py | ahsanbarkati/DRQA | d03dbd3ee12e80594e47f3003e6576e86d037f81 | [
"BSD-3-Clause"
] | null | null | null | scripts/pipeline/try.py | ahsanbarkati/DRQA | d03dbd3ee12e80594e47f3003e6576e86d037f81 | [
"BSD-3-Clause"
] | null | null | null | import images
print(images.images("apple"))
| 14.666667 | 29 | 0.772727 | 6 | 44 | 5.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 44 | 2 | 30 | 22 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 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 |
2fced5b34fc78bcda8f8146448f6f22365d26f60 | 2,889 | py | Python | src/tests/services/metrics/test_console.py | cicadatesting/cicada-distributed | cb9caa4107fd5da30e508f34e6e11d0f8f58c142 | [
"Apache-2.0"
] | 6 | 2021-07-12T20:53:13.000Z | 2022-01-14T19:34:25.000Z | src/tests/services/metrics/test_console.py | cicadatesting/cicada-distributed | cb9caa4107fd5da30e508f34e6e11d0f8f58c142 | [
"Apache-2.0"
] | 9 | 2021-04-24T04:20:12.000Z | 2022-03-22T02:14:17.000Z | src/tests/services/metrics/test_console.py | cicadatesting/cicada-distributed | cb9caa4107fd5da30e508f34e6e11d0f8f58c142 | [
"Apache-2.0"
] | null | null | null | from unittest.mock import patch
from cicadad.metrics import console
def sample_collector(latest_results):
return [
float(result.output) for result in latest_results if result.exception is None
]
@patch("cicadad.services.datastore.get_metric_statistics")
def test_console_stats(metrics_mock):
met... | 27 | 85 | 0.731741 | 381 | 2,889 | 5.278215 | 0.144357 | 0.155147 | 0.079562 | 0.115365 | 0.876181 | 0.876181 | 0.843362 | 0.843362 | 0.843362 | 0.724018 | 0 | 0.027386 | 0.165801 | 2,889 | 106 | 86 | 27.254717 | 0.807054 | 0 | 0 | 0.571429 | 0 | 0.015873 | 0.270336 | 0.121149 | 0 | 0 | 0 | 0 | 0.126984 | 1 | 0.142857 | false | 0 | 0.031746 | 0.015873 | 0.190476 | 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 |
2fdfb4c931e0a5abf9c4fd2206cab5adb4db2618 | 68 | py | Python | jwtornadodemo/account/cache.py | jaggerwang/jw-pyserver | 80d621e5fe5474c3ee38b78395778c59543916cf | [
"MIT"
] | 10 | 2019-03-07T02:11:17.000Z | 2021-08-24T06:51:13.000Z | jwtornadodemo/account/cache.py | jaggerwang/jw-pyserver | 80d621e5fe5474c3ee38b78395778c59543916cf | [
"MIT"
] | 1 | 2021-06-01T21:50:48.000Z | 2021-06-01T21:50:48.000Z | jwtornadodemo/account/cache.py | jaggerwang/jw-pyserver | 80d621e5fe5474c3ee38b78395778c59543916cf | [
"MIT"
] | 3 | 2019-03-07T02:11:18.000Z | 2020-06-22T07:13:02.000Z | from ..common import cache
class UserCache(cache.Cache):
pass
| 11.333333 | 29 | 0.720588 | 9 | 68 | 5.444444 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191176 | 68 | 5 | 30 | 13.6 | 0.890909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
6417cdfcc4d25762f0bddd3d8e12b5d04ce98023 | 29 | py | Python | libsaas/services/compete/__init__.py | MidtownFellowship/libsaas | 541bb731b996b08ede1d91a235cb82895765c38a | [
"MIT"
] | 155 | 2015-01-27T15:17:59.000Z | 2022-02-20T00:14:08.000Z | libsaas/services/compete/__init__.py | MidtownFellowship/libsaas | 541bb731b996b08ede1d91a235cb82895765c38a | [
"MIT"
] | 14 | 2015-01-12T08:22:37.000Z | 2021-06-16T19:49:31.000Z | libsaas/services/compete/__init__.py | MidtownFellowship/libsaas | 541bb731b996b08ede1d91a235cb82895765c38a | [
"MIT"
] | 43 | 2015-01-28T22:41:45.000Z | 2021-09-21T04:44:26.000Z | from .service import Compete
| 14.5 | 28 | 0.827586 | 4 | 29 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 0.96 | 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 |
6432ccabf89a81ad9e221e5310bc810e793b5fd5 | 20,674 | py | Python | integration/sawtooth_integration/tests/test_tp_validator_registry.py | lcarranco/sawtooth-core | 70cd65bfe4204545501d73f748d908e6695828f3 | [
"Apache-2.0"
] | null | null | null | integration/sawtooth_integration/tests/test_tp_validator_registry.py | lcarranco/sawtooth-core | 70cd65bfe4204545501d73f748d908e6695828f3 | [
"Apache-2.0"
] | 1 | 2021-12-09T23:11:26.000Z | 2021-12-09T23:11:26.000Z | integration/sawtooth_integration/tests/test_tp_validator_registry.py | lcarranco/sawtooth-core | 70cd65bfe4204545501d73f748d908e6695828f3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 37.452899 | 80 | 0.608494 | 2,086 | 20,674 | 5.698466 | 0.110259 | 0.083284 | 0.050307 | 0.045428 | 0.785228 | 0.764701 | 0.740809 | 0.733154 | 0.724994 | 0.697064 | 0 | 0.014414 | 0.26173 | 20,674 | 551 | 81 | 37.520871 | 0.764398 | 0.20475 | 0 | 0.755556 | 0 | 0 | 0.087097 | 0.01495 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034921 | false | 0 | 0.022222 | 0 | 0.060317 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ff7a59fd8cce612a32e2603d1d2db5d3a9c23b13 | 204 | py | Python | jupyterlab2pymolpysnips/Pymolrc/fetchPath.py | MooersLab/pymolpysnips | 50a89c85adf8006d85c1d6cd3f8aad7e440a0b92 | [
"MIT"
] | null | null | null | jupyterlab2pymolpysnips/Pymolrc/fetchPath.py | MooersLab/pymolpysnips | 50a89c85adf8006d85c1d6cd3f8aad7e440a0b92 | [
"MIT"
] | null | null | null | jupyterlab2pymolpysnips/Pymolrc/fetchPath.py | MooersLab/pymolpysnips | 50a89c85adf8006d85c1d6cd3f8aad7e440a0b92 | [
"MIT"
] | null | null | null | """
cmd.do('set fetch_path, ${1:/Users/blaine/pdbFiles};')
"""
cmd.do('set fetch_path, /Users/blaine/pdbFiles;')
# Description: Set path for location to save fetched pdb files.
# Source: placeHolder
| 22.666667 | 65 | 0.696078 | 29 | 204 | 4.827586 | 0.655172 | 0.071429 | 0.114286 | 0.185714 | 0.242857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00565 | 0.132353 | 204 | 8 | 66 | 25.5 | 0.785311 | 0.686275 | 0 | 0 | 0 | 0 | 0.722222 | 0.425926 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
440b6a3eea96c535aa8895dd14241914f910d2a1 | 45 | py | Python | server/parsing_lib/__init__.py | cnavrides/wireless-debugging | 9c057d0127a5f8eebca4193af4bdb7e96c3ae6dd | [
"Apache-2.0"
] | 3 | 2017-06-23T15:19:31.000Z | 2018-03-07T01:31:37.000Z | server/parsing_lib/__init__.py | cnavrides/wireless-debugging | 9c057d0127a5f8eebca4193af4bdb7e96c3ae6dd | [
"Apache-2.0"
] | 75 | 2017-06-15T20:09:32.000Z | 2018-01-17T01:30:26.000Z | server/parsing_lib/__init__.py | cnavrides/wireless-debugging | 9c057d0127a5f8eebca4193af4bdb7e96c3ae6dd | [
"Apache-2.0"
] | 3 | 2017-06-17T04:39:10.000Z | 2017-08-16T15:25:00.000Z | from parsing_lib.log_parser import LogParser
| 22.5 | 44 | 0.888889 | 7 | 45 | 5.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 45 | 1 | 45 | 45 | 0.926829 | 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 |
4411dff36e164ce52bde15bdbb30214fe31d9aae | 344 | py | Python | tests/test_agents/test_bandit/__init__.py | matrig/genrl | 25eb018f18a9a1d0865c16e5233a2a7ccddbfd78 | [
"MIT"
] | 390 | 2020-05-03T17:34:02.000Z | 2022-03-05T11:29:07.000Z | tests/test_agents/test_bandit/__init__.py | matrig/genrl | 25eb018f18a9a1d0865c16e5233a2a7ccddbfd78 | [
"MIT"
] | 306 | 2020-05-03T05:53:53.000Z | 2022-03-12T00:27:28.000Z | tests/test_agents/test_bandit/__init__.py | matrig/genrl | 25eb018f18a9a1d0865c16e5233a2a7ccddbfd78 | [
"MIT"
] | 64 | 2020-05-05T20:23:30.000Z | 2022-03-30T08:43:10.000Z | from tests.test_agents.test_bandit.test_cb_agents import TestCBAgent # noqa
from tests.test_agents.test_bandit.test_data_bandits import TestDataBandit # noqa
from tests.test_agents.test_bandit.test_mab_agents import TestMABAgent # noqa
from tests.test_agents.test_bandit.test_multi_armed_bandits import (
TestMult... | 49.142857 | 82 | 0.84593 | 49 | 344 | 5.591837 | 0.346939 | 0.131387 | 0.189781 | 0.277372 | 0.525547 | 0.525547 | 0.525547 | 0.405109 | 0 | 0 | 0 | 0 | 0.098837 | 344 | 6 | 83 | 57.333333 | 0.883871 | 0.055233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4421cf48be1b7210e4fd2a9b6594eb5c4459f905 | 77 | py | Python | modules/activation_functions/sigmoid.py | df424/ml | e12232ca4b90f983bfb14718afd314d3d6cc1bf9 | [
"MIT"
] | null | null | null | modules/activation_functions/sigmoid.py | df424/ml | e12232ca4b90f983bfb14718afd314d3d6cc1bf9 | [
"MIT"
] | null | null | null | modules/activation_functions/sigmoid.py | df424/ml | e12232ca4b90f983bfb14718afd314d3d6cc1bf9 | [
"MIT"
] | null | null | null |
import numpy as np
def sigmoid(Y: np.ndarray):
return 1/(1+np.exp(-Y))
| 12.833333 | 27 | 0.636364 | 15 | 77 | 3.266667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.194805 | 77 | 5 | 28 | 15.4 | 0.758065 | 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 |
44939478cce1f268d37c5060a1ed2866f2780550 | 130 | py | Python | app/app.py | Zuoxiaoxian/falcon_gq | 58fd22e91864789bffca26d0f2e16797b7393d3a | [
"MIT"
] | null | null | null | app/app.py | Zuoxiaoxian/falcon_gq | 58fd22e91864789bffca26d0f2e16797b7393d3a | [
"MIT"
] | null | null | null | app/app.py | Zuoxiaoxian/falcon_gq | 58fd22e91864789bffca26d0f2e16797b7393d3a | [
"MIT"
] | null | null | null | # 这里是接口方法
from jsonrpc import dispatcher
@dispatcher.add_method
def foobar(**kwargs):
return kwargs['name'] + kwargs['age']
| 18.571429 | 41 | 0.723077 | 16 | 130 | 5.8125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146154 | 130 | 6 | 42 | 21.666667 | 0.837838 | 0.053846 | 0 | 0 | 0 | 0 | 0.057851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0.25 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
9264ed44fbc67a6d209397197586c50ca1196e97 | 121 | py | Python | mainRoadMap/views.py | h1gfun4/h1gfun4.github.io | e460467cb505b525ecd5b01b9eb3fd73de7ec6e1 | [
"MIT"
] | null | null | null | mainRoadMap/views.py | h1gfun4/h1gfun4.github.io | e460467cb505b525ecd5b01b9eb3fd73de7ec6e1 | [
"MIT"
] | null | null | null | mainRoadMap/views.py | h1gfun4/h1gfun4.github.io | e460467cb505b525ecd5b01b9eb3fd73de7ec6e1 | [
"MIT"
] | null | null | null | from django.shortcuts import render
def RoadMapView(request):
return render(request, 'mainRoadMap/roadmapPage.html') | 30.25 | 58 | 0.801653 | 14 | 121 | 6.928571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107438 | 121 | 4 | 58 | 30.25 | 0.898148 | 0 | 0 | 0 | 0 | 0 | 0.229508 | 0.229508 | 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 |
928e11591af78268ba0af04278f08144a844085d | 38 | py | Python | src/gbt/__init__.py | firiceguo/Recommendation-NLP | 526c0d50deb05331eebc1f4c82f76d12b6ba80c6 | [
"MIT"
] | null | null | null | src/gbt/__init__.py | firiceguo/Recommendation-NLP | 526c0d50deb05331eebc1f4c82f76d12b6ba80c6 | [
"MIT"
] | null | null | null | src/gbt/__init__.py | firiceguo/Recommendation-NLP | 526c0d50deb05331eebc1f4c82f76d12b6ba80c6 | [
"MIT"
] | 3 | 2017-03-14T17:27:29.000Z | 2019-06-11T14:02:59.000Z | import traingbt
import dataprocessing
| 12.666667 | 21 | 0.894737 | 4 | 38 | 8.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 38 | 2 | 22 | 19 | 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 |
2bab62cca2e407ccf7184884547dd4ec530f8380 | 1,990 | py | Python | tatau_core/models/payments.py | makar21/core | e6a0c8d5456567dd3139ee3fd3cf6cd4acdd4a05 | [
"Apache-2.0"
] | null | null | null | tatau_core/models/payments.py | makar21/core | e6a0c8d5456567dd3139ee3fd3cf6cd4acdd4a05 | [
"Apache-2.0"
] | null | null | null | tatau_core/models/payments.py | makar21/core | e6a0c8d5456567dd3139ee3fd3cf6cd4acdd4a05 | [
"Apache-2.0"
] | null | null | null | from logging import getLogger
from tatau_core.db import models, fields
from tatau_core.models.task import TaskDeclaration
from tatau_core.models.nodes import ProducerNode, WorkerNode, VerifierNode
from tatau_core.utils import cached_property
logger = getLogger('tatau_core')
class WorkerPayment(models.Model):
pr... | 37.54717 | 100 | 0.765327 | 235 | 1,990 | 6.33617 | 0.182979 | 0.113499 | 0.068502 | 0.104768 | 0.727334 | 0.727334 | 0.727334 | 0.727334 | 0.661518 | 0.661518 | 0 | 0 | 0.142714 | 1,990 | 52 | 101 | 38.269231 | 0.872802 | 0 | 0 | 0.615385 | 0 | 0 | 0.005028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.128205 | 0.153846 | 0.820513 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
9200f83b61582c0c017bfc63101bb48b64375ecf | 157 | py | Python | tests/test_network.py | brunorijsman/quantum-path-computation-engine | 021bca03f8555cd9cd0cdbd7d5c6a32050ab6271 | [
"Apache-2.0"
] | null | null | null | tests/test_network.py | brunorijsman/quantum-path-computation-engine | 021bca03f8555cd9cd0cdbd7d5c6a32050ab6271 | [
"Apache-2.0"
] | 1 | 2021-06-01T23:56:41.000Z | 2021-06-01T23:56:41.000Z | tests/test_network.py | brunorijsman/quantum-path-computation-element | 021bca03f8555cd9cd0cdbd7d5c6a32050ab6271 | [
"Apache-2.0"
] | null | null | null | """Unit tests for module network."""
from network import Network
def test_create_network():
"""Test creation of a network."""
_network = Network()
| 19.625 | 37 | 0.687898 | 20 | 157 | 5.25 | 0.65 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184713 | 157 | 7 | 38 | 22.428571 | 0.820313 | 0.369427 | 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 |
a6007dc4ef5a842518819773606454e3a597339e | 42 | py | Python | gendist/gendist/__init__.py | probml/shift-happens | 67bd65a7652e0cd148d94a2085d6e546ace584b2 | [
"MIT"
] | 5 | 2022-01-19T18:58:25.000Z | 2022-03-08T16:08:54.000Z | gendist/gendist/__init__.py | probml/shift-happens | 67bd65a7652e0cd148d94a2085d6e546ace584b2 | [
"MIT"
] | null | null | null | gendist/gendist/__init__.py | probml/shift-happens | 67bd65a7652e0cd148d94a2085d6e546ace584b2 | [
"MIT"
] | 1 | 2022-01-20T01:56:55.000Z | 2022-01-20T01:56:55.000Z | from . import training, processing, models | 42 | 42 | 0.809524 | 5 | 42 | 6.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 42 | 1 | 42 | 42 | 0.918919 | 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 |
a6250c01d95465ac7f8a79f65b0c4b979c6ea023 | 15,766 | py | Python | Utils/util_opt.py | soshishimada/PhysCap_demo_release | 542756ed9ecdca77eda8b6b44ba2348253b999c3 | [
"Unlicense"
] | 62 | 2021-09-05T19:36:06.000Z | 2022-03-29T11:47:09.000Z | Utils/util_opt.py | soshishimada/PhysCap_demo_release | 542756ed9ecdca77eda8b6b44ba2348253b999c3 | [
"Unlicense"
] | 4 | 2021-09-21T09:52:02.000Z | 2022-03-27T09:08:30.000Z | Utils/util_opt.py | soshishimada/PhysCap_demo_release | 542756ed9ecdca77eda8b6b44ba2348253b999c3 | [
"Unlicense"
] | 10 | 2021-09-05T00:27:17.000Z | 2022-03-22T13:25:57.000Z | import numpy as np
import sys
import math
sys.path.append("/HPS/Shimada/work/rbdl37/rbdl/build/python")
import rbdl
#import cvxopt
from cvxopt import matrix, solvers
solvers.options['show_progress'] = False
class RbdlOpt():
def __init__(self, delta_t, l_kafth_ids, r_kafth_ids):
self.delta_t = delt... | 40.950649 | 132 | 0.528796 | 2,484 | 15,766 | 3.071659 | 0.061594 | 0.065269 | 0.079817 | 0.085976 | 0.808126 | 0.773001 | 0.753866 | 0.739843 | 0.728047 | 0.7173 | 0 | 0.055466 | 0.328745 | 15,766 | 384 | 133 | 41.057292 | 0.665501 | 0.068375 | 0 | 0.477099 | 0 | 0 | 0.004277 | 0.003044 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053435 | false | 0 | 0.019084 | 0 | 0.137405 | 0.007634 | 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 |
a63afe42f4ad77faa3963963290020b0ea93e16c | 35 | py | Python | sloth/uff/bin/__init__.py | frank26080115/jetbot | 19354e5f8b2e3e4853f7b197b5e2714502822c3d | [
"MIT"
] | null | null | null | sloth/uff/bin/__init__.py | frank26080115/jetbot | 19354e5f8b2e3e4853f7b197b5e2714502822c3d | [
"MIT"
] | null | null | null | sloth/uff/bin/__init__.py | frank26080115/jetbot | 19354e5f8b2e3e4853f7b197b5e2714502822c3d | [
"MIT"
] | null | null | null | from uff.bin import convert_to_uff
| 17.5 | 34 | 0.857143 | 7 | 35 | 4 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 35 | 1 | 35 | 35 | 0.903226 | 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 |
a663c8a30961d2064cef6deb84386ff7f1efea11 | 68 | py | Python | algorithms/map/__init__.py | upzone/algorithms | d56792abe70ddbb444fd7fd2662e087da0d225c8 | [
"MIT"
] | 4 | 2018-10-21T04:12:12.000Z | 2019-07-24T08:38:20.000Z | algorithms/map/__init__.py | Tw1stFate/algorithms | a9ed2ce490c6ac1dd220530fe1afb765a51656f4 | [
"MIT"
] | null | null | null | algorithms/map/__init__.py | Tw1stFate/algorithms | a9ed2ce490c6ac1dd220530fe1afb765a51656f4 | [
"MIT"
] | 7 | 2019-03-21T10:18:22.000Z | 2021-09-22T07:34:10.000Z | from .hashtable import *
from .separate_chaining_hashtable import *
| 22.666667 | 42 | 0.823529 | 8 | 68 | 6.75 | 0.625 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 68 | 2 | 43 | 34 | 0.9 | 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 |
a6965c015bc59d41e762a97ec717be86f37c0499 | 167 | py | Python | readpaircluster/svcf/__init__.py | RCollins13/Holmes | 3eb0119638bb93c1cab914af60a1dfd472146e28 | [
"MIT"
] | 3 | 2017-03-14T17:49:16.000Z | 2017-03-29T18:19:00.000Z | readpaircluster/svcf/__init__.py | talkowski-lab/holmes | 3eb0119638bb93c1cab914af60a1dfd472146e28 | [
"MIT"
] | null | null | null | readpaircluster/svcf/__init__.py | talkowski-lab/holmes | 3eb0119638bb93c1cab914af60a1dfd472146e28 | [
"MIT"
] | null | null | null | __all__ = []
from .rpc import RPC
# from .svcall import SVCall, SVCallCluster, LumpyCall
from .svcall import SVCall, SVCFRecord, LumpyCall
from .svfile import SVFile
| 27.833333 | 55 | 0.778443 | 21 | 167 | 6 | 0.428571 | 0.15873 | 0.253968 | 0.349206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149701 | 167 | 5 | 56 | 33.4 | 0.887324 | 0.311377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4700ca84e05cf86a46c3eeac4da2eec28b570289 | 25 | py | Python | apps/entity/models/group/__init__.py | dy1zan/softwarecapstone | c121a2b2d43b72aac19b75c31519711c0ace9c02 | [
"MIT"
] | null | null | null | apps/entity/models/group/__init__.py | dy1zan/softwarecapstone | c121a2b2d43b72aac19b75c31519711c0ace9c02 | [
"MIT"
] | 16 | 2018-11-10T21:46:40.000Z | 2018-11-11T15:08:36.000Z | apps/entity/models/group/__init__.py | dy1zan/softwarecapstone | c121a2b2d43b72aac19b75c31519711c0ace9c02 | [
"MIT"
] | null | null | null | from .group import Group
| 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 |
5b2b2429cbb37b823092275aa72379a1bd141465 | 38 | py | Python | vega/modules/necks/__init__.py | jie311/vega | 1bba6100ead802697e691403b951e6652a99ccae | [
"MIT"
] | 724 | 2020-06-22T12:05:30.000Z | 2022-03-31T07:10:54.000Z | vega/modules/necks/__init__.py | jie311/vega | 1bba6100ead802697e691403b951e6652a99ccae | [
"MIT"
] | 147 | 2020-06-30T13:34:46.000Z | 2022-03-29T11:30:17.000Z | vega/modules/necks/__init__.py | jie311/vega | 1bba6100ead802697e691403b951e6652a99ccae | [
"MIT"
] | 160 | 2020-06-29T18:27:58.000Z | 2022-03-23T08:42:21.000Z | from .parallel_fpn import ParallelFPN
| 19 | 37 | 0.868421 | 5 | 38 | 6.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 38 | 1 | 38 | 38 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5b35d0c948a0d8061ccfbc934d4df3b07235bd21 | 107 | py | Python | udemy/01_walkthrough/script2.py | inderpal2406/python | 7bd7d03a6b3cd09ff16a4447ff495a2393a87a33 | [
"MIT"
] | null | null | null | udemy/01_walkthrough/script2.py | inderpal2406/python | 7bd7d03a6b3cd09ff16a4447ff495a2393a87a33 | [
"MIT"
] | null | null | null | udemy/01_walkthrough/script2.py | inderpal2406/python | 7bd7d03a6b3cd09ff16a4447ff495a2393a87a33 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import script1
print(f"This is script2 and __name__ variable value is {__name__}")
| 21.4 | 67 | 0.766355 | 17 | 107 | 4.352941 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.130841 | 107 | 4 | 68 | 26.75 | 0.763441 | 0.196262 | 0 | 0 | 0 | 0 | 0.670588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
5b71d8f30fe552731a5f2190b3ffe243d27c1405 | 2,029 | py | Python | 2015/day/13/solution.py | iangregson/advent-of-code | e2a2dde30dcaed027a5ba78f9270f8a1976577f1 | [
"MIT"
] | null | null | null | 2015/day/13/solution.py | iangregson/advent-of-code | e2a2dde30dcaed027a5ba78f9270f8a1976577f1 | [
"MIT"
] | null | null | null | 2015/day/13/solution.py | iangregson/advent-of-code | e2a2dde30dcaed027a5ba78f9270f8a1976577f1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
from collections import defaultdict
from itertools import permutations
dir_path = os.path.dirname(os.path.realpath(__file__))
file = open(dir_path + "/input.txt", "r")
lines = file.readlines()
lines = [line.strip().rstrip('.') for line in lines]
# file = open(dir_path + "/test_input... | 21.817204 | 54 | 0.583539 | 295 | 2,029 | 3.932203 | 0.216949 | 0.010345 | 0.031034 | 0.048276 | 0.768966 | 0.768966 | 0.768966 | 0.768966 | 0.713793 | 0.713793 | 0 | 0.020222 | 0.244455 | 2,029 | 92 | 55 | 22.054348 | 0.736464 | 0.117792 | 0 | 0.78125 | 0 | 0 | 0.033765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046875 | 0 | 0.046875 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5ba03eea79e6526c17e85e553d782fae7b34e434 | 108 | py | Python | tests/fixtures/__init__.py | andreroggeri/br-to-ynab | c5d0ef3804bb575badc05ac6dc771f6a9281f955 | [
"MIT"
] | 5 | 2021-09-20T13:15:37.000Z | 2022-03-01T01:03:27.000Z | tests/fixtures/__init__.py | andreroggeri/br-to-ynab | c5d0ef3804bb575badc05ac6dc771f6a9281f955 | [
"MIT"
] | 4 | 2021-04-28T14:11:42.000Z | 2021-10-09T16:18:15.000Z | tests/fixtures/__init__.py | andreroggeri/br-to-ynab | c5d0ef3804bb575badc05ac6dc771f6a9281f955 | [
"MIT"
] | 1 | 2021-09-27T15:13:30.000Z | 2021-09-27T15:13:30.000Z | from .config import config_for_nubank, config_for_bradesco, config_for_alelo
from .ynab import ynab_account
| 36 | 76 | 0.87037 | 17 | 108 | 5.117647 | 0.529412 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092593 | 108 | 2 | 77 | 54 | 0.887755 | 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 |
5ba169d04296c4c3800e341f00e9e47e8becca97 | 3,088 | py | Python | tests/plugins/mockserver/test_tracing_enabled.py | okutane/yandex-taxi-testsuite | 7e2e3dd5a65869ecbf37bf3f79cba7bb4e782b0c | [
"MIT"
] | 128 | 2020-03-10T09:13:41.000Z | 2022-02-11T20:16:16.000Z | tests/plugins/mockserver/test_tracing_enabled.py | okutane/yandex-taxi-testsuite | 7e2e3dd5a65869ecbf37bf3f79cba7bb4e782b0c | [
"MIT"
] | 3 | 2021-11-01T12:31:27.000Z | 2022-02-11T13:08:38.000Z | tests/plugins/mockserver/test_tracing_enabled.py | okutane/yandex-taxi-testsuite | 7e2e3dd5a65869ecbf37bf3f79cba7bb4e782b0c | [
"MIT"
] | 22 | 2020-03-05T07:13:12.000Z | 2022-03-15T10:30:58.000Z | # pylint: disable=protected-access
import aiohttp.web
import pytest
from testsuite.plugins import mockserver as mockserver_module
# pylint: disable=invalid-name
async def test_mockserver_responds_with_handler_to_current_test(
mockserver, create_service_client,
):
@mockserver.handler('/arbitrary/path')
... | 29.692308 | 79 | 0.714054 | 351 | 3,088 | 5.897436 | 0.188034 | 0.037198 | 0.091787 | 0.126087 | 0.833333 | 0.792754 | 0.725121 | 0.725121 | 0.725121 | 0.682609 | 0 | 0.012097 | 0.196891 | 3,088 | 103 | 80 | 29.980583 | 0.822581 | 0.028821 | 0 | 0.607595 | 0 | 0 | 0.083806 | 0.009349 | 0 | 0 | 0 | 0 | 0.113924 | 1 | 0.050633 | false | 0 | 0.037975 | 0.050633 | 0.139241 | 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 |
75104617008938af895fcbe46077b0c8d76d36d0 | 129 | py | Python | lambdapool/exceptions.py | rorodata/lambdapool | da7b514496f75484541ebcbcc596f1f72dab09bf | [
"Apache-2.0"
] | null | null | null | lambdapool/exceptions.py | rorodata/lambdapool | da7b514496f75484541ebcbcc596f1f72dab09bf | [
"Apache-2.0"
] | null | null | null | lambdapool/exceptions.py | rorodata/lambdapool | da7b514496f75484541ebcbcc596f1f72dab09bf | [
"Apache-2.0"
] | 1 | 2019-12-30T12:46:24.000Z | 2019-12-30T12:46:24.000Z |
class LambdaPoolError(Exception):
pass
class LambdaFunctionError(Exception):
pass
class AWSError(Exception):
pass
| 12.9 | 37 | 0.744186 | 12 | 129 | 8 | 0.5 | 0.40625 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 129 | 9 | 38 | 14.333333 | 0.914286 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
75306ab244d8390e38c5c1d7687d2acf47eaaf1c | 3,591 | py | Python | oop/property/class_book_property.py | levs72/pyneng-examples | d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9 | [
"MIT"
] | 11 | 2021-04-05T09:30:23.000Z | 2022-03-09T13:27:56.000Z | oop/property/class_book_property.py | levs72/pyneng-examples | d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9 | [
"MIT"
] | null | null | null | oop/property/class_book_property.py | levs72/pyneng-examples | d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9 | [
"MIT"
] | 11 | 2021-04-06T03:44:35.000Z | 2022-03-04T21:20:40.000Z | ## Стандартный вариант применения property без setter
class Book:
def __init__(self, title, price, quantity):
self.title = title
self.price = price
self.quantity = quantity
# метод, который декорирован property становится getter'ом
@property
def total(self):
print("gette... | 27.412214 | 66 | 0.628516 | 420 | 3,591 | 5.25 | 0.159524 | 0.073469 | 0.077098 | 0.036281 | 0.712925 | 0.712925 | 0.712925 | 0.712925 | 0.712925 | 0.712925 | 0 | 0.00349 | 0.281816 | 3,591 | 130 | 67 | 27.623077 | 0.851493 | 0.133668 | 0 | 0.902174 | 0 | 0 | 0.111793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195652 | false | 0 | 0 | 0.043478 | 0.445652 | 0.097826 | 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 |
753f6f871578fee0abddaadd84fe83762fc5fd23 | 48 | py | Python | ppln/schedulers/__init__.py | amirassov/mmcv | aa517bbc62823d2c68753dd33ca1f840a75ceb2c | [
"MIT"
] | 10 | 2020-02-10T10:43:59.000Z | 2021-04-22T11:32:16.000Z | ppln/schedulers/__init__.py | amirassov/mmcv | aa517bbc62823d2c68753dd33ca1f840a75ceb2c | [
"MIT"
] | 3 | 2020-07-16T14:06:28.000Z | 2020-07-16T14:06:38.000Z | ppln/schedulers/__init__.py | amirassov/mmcv | aa517bbc62823d2c68753dd33ca1f840a75ceb2c | [
"MIT"
] | 2 | 2019-12-23T07:52:56.000Z | 2019-12-23T08:20:30.000Z | from .cosine import CosineAnnealingWithWarmupLR
| 24 | 47 | 0.895833 | 4 | 48 | 10.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 48 | 1 | 48 | 48 | 0.977273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
754e29d616b767924d014f4530e050d00950481e | 46 | py | Python | criss_cross/envs/__init__.py | mark-gluzman/RLinOR | 2c54dfebdd8248353baf4c0e703ef29d642cc5a7 | [
"MIT"
] | null | null | null | criss_cross/envs/__init__.py | mark-gluzman/RLinOR | 2c54dfebdd8248353baf4c0e703ef29d642cc5a7 | [
"MIT"
] | null | null | null | criss_cross/envs/__init__.py | mark-gluzman/RLinOR | 2c54dfebdd8248353baf4c0e703ef29d642cc5a7 | [
"MIT"
] | null | null | null | from criss_cross.envs.cc_env import CrissCross | 46 | 46 | 0.891304 | 8 | 46 | 4.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 46 | 1 | 46 | 46 | 0.906977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
755ebf006e7e23b978e12adf996be785ba00cf9d | 12,720 | py | Python | reclist/metrics/metadata_distribution.py | bbc/datalab-reclist | 42ea321856e02e46cca8e3b032b3b088ff328f57 | [
"MIT"
] | null | null | null | reclist/metrics/metadata_distribution.py | bbc/datalab-reclist | 42ea321856e02e46cca8e3b032b3b088ff328f57 | [
"MIT"
] | null | null | null | reclist/metrics/metadata_distribution.py | bbc/datalab-reclist | 42ea321856e02e46cca8e3b032b3b088ff328f57 | [
"MIT"
] | null | null | null | import os
import matplotlib.pyplot as plt
import numpy as np
from collections import defaultdict, Counter
from reclist.current import current
from reclist.utils.vectorise_sounds_data import generate_genre_dict
def round_up(number):
return int(number) + (number % 1 > 0)
def genre_distribution_by_gender(enrich... | 40.253165 | 119 | 0.609591 | 1,531 | 12,720 | 4.766166 | 0.093403 | 0.061395 | 0.039194 | 0.035083 | 0.928875 | 0.895025 | 0.871317 | 0.787447 | 0.747842 | 0.656845 | 0 | 0.009936 | 0.303695 | 12,720 | 315 | 120 | 40.380952 | 0.813932 | 0.048349 | 0 | 0.621145 | 0 | 0 | 0.045118 | 0.010386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022026 | false | 0.017621 | 0.026432 | 0.004405 | 0.070485 | 0.008811 | 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 |
f351124db469647604e6a3f2c4659b97b636a995 | 211 | py | Python | apps/secure_url/mixins.py | fryta/sercure-url | 06029e8e3a95616f939f62f04c260d14d128f0b4 | [
"MIT"
] | null | null | null | apps/secure_url/mixins.py | fryta/sercure-url | 06029e8e3a95616f939f62f04c260d14d128f0b4 | [
"MIT"
] | 7 | 2020-02-11T23:49:48.000Z | 2022-01-13T01:05:42.000Z | apps/secure_url/mixins.py | fryta/secure-url | 06029e8e3a95616f939f62f04c260d14d128f0b4 | [
"MIT"
] | null | null | null | from django.contrib.auth.mixins import UserPassesTestMixin
class EditOnlyOwnSecuredEntitiesMixin(UserPassesTestMixin):
def test_func(self):
return self.get_object().user.pk == self.request.user.pk
| 30.142857 | 64 | 0.78673 | 24 | 211 | 6.833333 | 0.791667 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123223 | 211 | 6 | 65 | 35.166667 | 0.886486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.5 | 0.25 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 6 |
f36803e44081834548ac1f3e13a66c28b269f627 | 115 | py | Python | core/validators/cat.py | mzrwalzy/NJUPTCats | 325dde6f48cac7dc85490935d78439d3b23a8395 | [
"MIT"
] | null | null | null | core/validators/cat.py | mzrwalzy/NJUPTCats | 325dde6f48cac7dc85490935d78439d3b23a8395 | [
"MIT"
] | null | null | null | core/validators/cat.py | mzrwalzy/NJUPTCats | 325dde6f48cac7dc85490935d78439d3b23a8395 | [
"MIT"
] | null | null | null |
import typing as tp
from core.validators._base import BaseValidator
class CatValidator(BaseValidator):
pass
| 14.375 | 47 | 0.8 | 14 | 115 | 6.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156522 | 115 | 7 | 48 | 16.428571 | 0.938144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
f37990b546183d4d6faa45d1d602c02abaefaee9 | 10,427 | py | Python | tests/test_get_scores.py | hsbc/pyratings | f71d7d2e9030f0e34eb6dd8f2e753611d049302c | [
"Apache-2.0"
] | 9 | 2022-03-25T12:48:28.000Z | 2022-03-28T15:17:49.000Z | tests/test_get_scores.py | rbirkby/pyratings | eb9dfa35dfec9676e4d16152bbcae278444869d4 | [
"Apache-2.0"
] | null | null | null | tests/test_get_scores.py | rbirkby/pyratings | eb9dfa35dfec9676e4d16152bbcae278444869d4 | [
"Apache-2.0"
] | 3 | 2022-03-25T13:27:55.000Z | 2022-03-28T10:06:28.000Z | """
Copyright 2022 HSBC Global Asset Management (Deutschland) GmbH
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ... | 32.584375 | 86 | 0.698955 | 1,386 | 10,427 | 4.955988 | 0.134199 | 0.05503 | 0.075702 | 0.066968 | 0.814529 | 0.811472 | 0.773038 | 0.735478 | 0.708254 | 0.684379 | 0 | 0.006871 | 0.190467 | 10,427 | 319 | 87 | 32.68652 | 0.806895 | 0.197756 | 0 | 0.463303 | 0 | 0 | 0.107485 | 0.006551 | 0 | 0 | 0 | 0 | 0.114679 | 1 | 0.09633 | false | 0 | 0.027523 | 0 | 0.123853 | 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 |
f3b671835453bcad9342db7a5d778bed4d3e924e | 1,127 | py | Python | torchexpo/vision/image_classification/shufflenet.py | torchexpo/torchexpo | 88c875358e830065ee23f49f47d4995b5b2d3e3c | [
"Apache-2.0"
] | 23 | 2020-09-08T05:08:46.000Z | 2021-08-12T07:16:53.000Z | torchexpo/vision/image_classification/shufflenet.py | torchexpo/torchexpo | 88c875358e830065ee23f49f47d4995b5b2d3e3c | [
"Apache-2.0"
] | 1 | 2021-12-05T06:15:18.000Z | 2021-12-20T08:10:19.000Z | torchexpo/vision/image_classification/shufflenet.py | torchexpo/torchexpo | 88c875358e830065ee23f49f47d4995b5b2d3e3c | [
"Apache-2.0"
] | 2 | 2021-01-12T06:10:53.000Z | 2021-07-24T08:21:59.000Z | import torchvision
from torchexpo.modules import ImageClassificationModule
def shufflenet_v2_x0_5():
"""ShuffleNet V2 0.5x Model pre-trained on ImageNet"""
model = torchvision.models.shufflenet_v2_x0_5(pretrained=True)
obj = ImageClassificationModule(model, "ShuffleNet_v2_x0_5", model_example="default")
... | 41.740741 | 91 | 0.75244 | 147 | 1,127 | 5.496599 | 0.204082 | 0.237624 | 0.10396 | 0.084158 | 0.813119 | 0.813119 | 0.77599 | 0.77599 | 0.47401 | 0.306931 | 0 | 0.049638 | 0.14197 | 1,127 | 27 | 92 | 41.740741 | 0.785936 | 0.543035 | 0 | 0.2 | 0 | 0 | 0.100806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
341415e48060a622d4be670188996ee2a77ade0f | 53 | py | Python | tests/core/test_import.py | vaporydev/bimini | 7c26efec585742ef870bf58ea5d96e2deb242775 | [
"MIT"
] | 7 | 2019-02-28T01:42:27.000Z | 2021-11-04T14:25:49.000Z | tests/core/test_import.py | vaporydev/bimini | 7c26efec585742ef870bf58ea5d96e2deb242775 | [
"MIT"
] | null | null | null | tests/core/test_import.py | vaporydev/bimini | 7c26efec585742ef870bf58ea5d96e2deb242775 | [
"MIT"
] | 3 | 2020-10-01T03:02:26.000Z | 2022-03-28T18:55:40.000Z |
def test_import():
import bimini # noqa: F401
| 10.6 | 31 | 0.641509 | 7 | 53 | 4.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.264151 | 53 | 4 | 32 | 13.25 | 0.769231 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 1 | 0 | 1.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3417d30c8003a78f64f68acf07fb416e55d09463 | 32 | py | Python | app.py | SRtsuki/SELab02 | 33a3728e2141838f3c797c1df40b1aa1758f23fd | [
"MIT"
] | null | null | null | app.py | SRtsuki/SELab02 | 33a3728e2141838f3c797c1df40b1aa1758f23fd | [
"MIT"
] | null | null | null | app.py | SRtsuki/SELab02 | 33a3728e2141838f3c797c1df40b1aa1758f23fd | [
"MIT"
] | null | null | null | #app.py
print("this is app.py")
| 10.666667 | 23 | 0.65625 | 7 | 32 | 3 | 0.714286 | 0.47619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 32 | 2 | 24 | 16 | 0.75 | 0.1875 | 0 | 0 | 0 | 0 | 0.56 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
343c54335bc955777387748ef0208b37c9bd5607 | 6,323 | py | Python | tests-manual/manual_testing.py | rashidalyahyai/piecewise-regression | 2cccd101ac6f44b5e2fe9e79d6782e3ce2a06ed7 | [
"MIT"
] | 24 | 2021-11-15T13:26:05.000Z | 2022-03-19T16:42:23.000Z | tests-manual/manual_testing.py | rashidalyahyai/piecewise-regression | 2cccd101ac6f44b5e2fe9e79d6782e3ce2a06ed7 | [
"MIT"
] | 5 | 2021-11-30T10:17:40.000Z | 2022-03-30T23:22:24.000Z | tests-manual/manual_testing.py | rashidalyahyai/piecewise-regression | 2cccd101ac6f44b5e2fe9e79d6782e3ce2a06ed7 | [
"MIT"
] | 4 | 2021-11-22T17:42:28.000Z | 2022-03-20T18:36:15.000Z |
from piecewise_regression import ModelSelection
from piecewise_regression import Fit
import numpy as np
import matplotlib.pyplot as plt
import os
import sys
sys.path.insert(1, os.path.join(sys.path[0], '..'))
def on_data_1():
alpha = -4
beta_1 = -2
intercept = 100
breakpoint_1 = 7
n_points = ... | 20.201278 | 74 | 0.625969 | 977 | 6,323 | 3.802457 | 0.113613 | 0.06218 | 0.06218 | 0.118708 | 0.806999 | 0.782773 | 0.766083 | 0.719785 | 0.698789 | 0.672948 | 0 | 0.073501 | 0.253361 | 6,323 | 313 | 75 | 20.201278 | 0.713408 | 0.009805 | 0 | 0.762136 | 0 | 0 | 0.007992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053398 | false | 0 | 0.029126 | 0 | 0.082524 | 0.029126 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 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 |
34500cbc5d609d33d0365ed63be410b2cd714077 | 47 | py | Python | src/chart/example.py | hasta13/chart | 3292b81a15cdf361b0b85e120c58dc1f6a22ddb8 | [
"MIT"
] | null | null | null | src/chart/example.py | hasta13/chart | 3292b81a15cdf361b0b85e120c58dc1f6a22ddb8 | [
"MIT"
] | null | null | null | src/chart/example.py | hasta13/chart | 3292b81a15cdf361b0b85e120c58dc1f6a22ddb8 | [
"MIT"
] | null | null | null | def test():
print('this is a placeholder')
| 15.666667 | 34 | 0.638298 | 7 | 47 | 4.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212766 | 47 | 2 | 35 | 23.5 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0.446809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
346f7f3c8862ce237b48d855353cec42fdc02259 | 77 | py | Python | src/python/stup/twistedutils/__init__.py | Wizmann/STUP-Protocol | e06a3442082e5061d2be32be3ffd681675e7ffb5 | [
"MIT"
] | 14 | 2017-05-06T10:14:32.000Z | 2018-07-17T02:58:00.000Z | src/python/stup/twistedutils/__init__.py | Wizmann/STUP-Protocol | e06a3442082e5061d2be32be3ffd681675e7ffb5 | [
"MIT"
] | 2 | 2017-06-13T05:40:18.000Z | 2017-06-13T16:23:01.000Z | src/python/stup/twistedutils/__init__.py | Wizmann/STUP-Protocol | e06a3442082e5061d2be32be3ffd681675e7ffb5 | [
"MIT"
] | 4 | 2017-06-09T20:20:54.000Z | 2018-07-17T02:58:10.000Z | from .deferred_deque import *
from .utils import *
from .time_wheel import *
| 19.25 | 29 | 0.766234 | 11 | 77 | 5.181818 | 0.636364 | 0.350877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155844 | 77 | 3 | 30 | 25.666667 | 0.876923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3479c13138309154e6c90e770d2f2209b49c8376 | 252 | py | Python | nndet/arch/heads/__init__.py | joeranbosma/nnDetection | 2ebbf1cdc8a8794c73e325f06fea50632c78ae8c | [
"BSD-3-Clause"
] | 242 | 2021-05-17T12:31:39.000Z | 2022-03-31T11:51:29.000Z | nndet/arch/heads/__init__.py | joeranbosma/nnDetection | 2ebbf1cdc8a8794c73e325f06fea50632c78ae8c | [
"BSD-3-Clause"
] | 59 | 2021-06-02T07:32:10.000Z | 2022-03-31T18:45:52.000Z | nndet/arch/heads/__init__.py | joeranbosma/nnDetection | 2ebbf1cdc8a8794c73e325f06fea50632c78ae8c | [
"BSD-3-Clause"
] | 38 | 2021-05-31T14:01:37.000Z | 2022-03-21T08:24:40.000Z | from nndet.arch.heads.classifier import ClassifierType, Classifier
from nndet.arch.heads.comb import HeadType, AbstractHead
from nndet.arch.heads.regressor import RegressorType, Regressor
from nndet.arch.heads.segmenter import SegmenterType, Segmenter
| 50.4 | 66 | 0.857143 | 32 | 252 | 6.75 | 0.4375 | 0.166667 | 0.240741 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079365 | 252 | 4 | 67 | 63 | 0.931034 | 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 |
347ed8336a84485625e89e82067bdc54d0863113 | 90,321 | py | Python | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_asr9k_netflow_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_asr9k_netflow_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_asr9k_netflow_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """ Cisco_IOS_XR_asr9k_netflow_oper
This module contains a collection of YANG definitions
for Cisco IOS\-XR asr9k\-netflow package operational data.
This module contains definitions
for the following management objects\:
net\-flow\: NetFlow operational data
Copyright (c) 2013\-2016 by Cisco Systems, Inc.
All righ... | 40.887732 | 298 | 0.399929 | 6,800 | 90,321 | 5.092206 | 0.035882 | 0.033962 | 0.042452 | 0.042452 | 0.823606 | 0.778988 | 0.751119 | 0.717504 | 0.670864 | 0.63875 | 0 | 0.0369 | 0.540937 | 90,321 | 2,208 | 299 | 40.90625 | 0.79823 | 0.224643 | 0 | 0.692661 | 0 | 0.011468 | 0.098759 | 0.064931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134174 | false | 0 | 0.034404 | 0.006881 | 0.472477 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1b20735c563570dc520739ec4ddd9cd22be22ca3 | 96 | py | Python | venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/_pydev_imps/_pydev_xmlrpclib.py | Retraces/UkraineBot | 3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71 | [
"MIT"
] | 2 | 2022-03-13T01:58:52.000Z | 2022-03-31T06:07:54.000Z | venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/_pydev_imps/_pydev_xmlrpclib.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/_pydev_imps/_pydev_xmlrpclib.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/be/43/ef/7355ddd663c90414eaec755b395245888202140781f7fcbdb1bdf2fea5 | 96 | 96 | 0.895833 | 9 | 96 | 9.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.40625 | 0 | 96 | 1 | 96 | 96 | 0.489583 | 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 |
1b97da5065661dcc6d77181421005001b148607d | 1,937 | py | Python | processl.py | rustylocks79/Figgie | fa1af3224eba83c0f0f0e070acc160583f5a68e1 | [
"MIT"
] | null | null | null | processl.py | rustylocks79/Figgie | fa1af3224eba83c0f0f0e070acc160583f5a68e1 | [
"MIT"
] | null | null | null | processl.py | rustylocks79/Figgie | fa1af3224eba83c0f0f0e070acc160583f5a68e1 | [
"MIT"
] | null | null | null | import pickle
import matplotlib.pyplot as plt
from sklearn import tree
from sklearn.tree import DecisionTreeRegressor
print('\nResults\n')
prefix = 'faded_custom_'
# ask pricer
print(prefix + 'ask pricer: ')
regression = DecisionTreeRegressor(max_depth=3)
x = pickle.load(open('data/asking_x.pickle', 'rb'))
y = pic... | 32.830508 | 112 | 0.726897 | 286 | 1,937 | 4.797203 | 0.188811 | 0.058309 | 0.081633 | 0.104956 | 0.841108 | 0.795918 | 0.795918 | 0.795918 | 0.795918 | 0.690962 | 0 | 0.018359 | 0.100155 | 1,937 | 58 | 113 | 33.396552 | 0.768789 | 0.056273 | 0 | 0.421053 | 0 | 0 | 0.27073 | 0.104887 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0.131579 | 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 |
59ed25256496b74bf5ed5d0694727e1f77897e61 | 16,360 | py | Python | platform/core/polyaxon/db/migrations/0021_auto_20190418_1600_v05.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/db/migrations/0021_auto_20190418_1600_v05.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/db/migrations/0021_auto_20190418_1600_v05.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2 on 2019-04-18 14:00
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
from django.db.models import ExpressionWrapper, F
import django.core.validators
import libs.blacklist
import re
def create_cluster_owner(apps, schema_editor):
Cluster = apps.get_mode... | 45.444444 | 133 | 0.531418 | 1,467 | 16,360 | 5.777778 | 0.111793 | 0.040349 | 0.06194 | 0.07185 | 0.788462 | 0.744691 | 0.710005 | 0.70328 | 0.697971 | 0.678858 | 0 | 0.009305 | 0.362836 | 16,360 | 359 | 134 | 45.571031 | 0.803818 | 0.002628 | 0 | 0.776435 | 1 | 0 | 0.190009 | 0.011155 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024169 | false | 0 | 0.018127 | 0 | 0.05136 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
942abf8e6237eb68eec6a3cb18a4d59f6642d6e1 | 26 | py | Python | packer/__init__.py | thekashifmalik/packer | 736d052d2536ada7733f4b8459e32fb771af2e1c | [
"MIT"
] | null | null | null | packer/__init__.py | thekashifmalik/packer | 736d052d2536ada7733f4b8459e32fb771af2e1c | [
"MIT"
] | null | null | null | packer/__init__.py | thekashifmalik/packer | 736d052d2536ada7733f4b8459e32fb771af2e1c | [
"MIT"
] | null | null | null | from .packer import Packer | 26 | 26 | 0.846154 | 4 | 26 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.956522 | 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 |
945d6f6dbe61afc3aecec22d285574976adcecbc | 37 | py | Python | tf_image_classification/deploy_utils/__init__.py | ciandt-d1/tf_image_classification | 76ff4cb9ec35418eb20ea3240221bbfb88970737 | [
"MIT"
] | null | null | null | tf_image_classification/deploy_utils/__init__.py | ciandt-d1/tf_image_classification | 76ff4cb9ec35418eb20ea3240221bbfb88970737 | [
"MIT"
] | null | null | null | tf_image_classification/deploy_utils/__init__.py | ciandt-d1/tf_image_classification | 76ff4cb9ec35418eb20ea3240221bbfb88970737 | [
"MIT"
] | null | null | null | import pb_viewer
import freeze_graph | 18.5 | 19 | 0.891892 | 6 | 37 | 5.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 37 | 2 | 19 | 18.5 | 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 |
94759511ab16e6c5bbc155be542bb1cd2225688a | 106 | py | Python | SigProfilerClusters/version.py | AlexandrovLab/SigProfilerClusters | 804a6333bdde8df68241736ec1adba4faaa1adce | [
"BSD-2-Clause"
] | 7 | 2022-02-20T09:12:38.000Z | 2022-03-30T20:01:55.000Z | SigProfilerClusters/version.py | AlexandrovLab/SigProfilerClusters | 804a6333bdde8df68241736ec1adba4faaa1adce | [
"BSD-2-Clause"
] | 5 | 2022-02-21T09:34:45.000Z | 2022-03-30T19:57:27.000Z | SigProfilerClusters/version.py | AlexandrovLab/SigProfilerClusters | 804a6333bdde8df68241736ec1adba4faaa1adce | [
"BSD-2-Clause"
] | null | null | null |
# THIS FILE IS GENERATED FROM SIGPROFILECLUSTERS SETUP.PY
short_version = '1.0.11'
version = '1.0.11'
| 17.666667 | 57 | 0.716981 | 17 | 106 | 4.411765 | 0.764706 | 0.213333 | 0.24 | 0.293333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.169811 | 106 | 6 | 58 | 17.666667 | 0.761364 | 0.518868 | 0 | 0 | 1 | 0 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
84b021b3f02732e0ea7aad74bbe55301578a7f6c | 40 | py | Python | fcs_trade/gateway/idcm/__init__.py | fcscolorstone/fcs-trade | d76c5b8338ab55f49d78b218817326c2d1168151 | [
"MIT"
] | 2 | 2019-09-26T06:46:03.000Z | 2020-01-29T23:28:07.000Z | fcs_trade/gateway/idcm/__init__.py | fcscolorstone/fcs-trade | d76c5b8338ab55f49d78b218817326c2d1168151 | [
"MIT"
] | null | null | null | fcs_trade/gateway/idcm/__init__.py | fcscolorstone/fcs-trade | d76c5b8338ab55f49d78b218817326c2d1168151 | [
"MIT"
] | 2 | 2019-05-31T00:15:37.000Z | 2022-02-11T08:32:27.000Z | from .idcm_gateway import IdcmGateway
| 10 | 37 | 0.825 | 5 | 40 | 6.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 40 | 3 | 38 | 13.333333 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ca476e2a445d23aa004180ad3976155d29b184d7 | 77 | py | Python | FastAPIMongoEngineGraphQL/app/util/get_json.py | scionoftech/FastAPI-Full-Stack-Samples | e7d42661ed59324ff20f419d05c6cd1e7dab7e97 | [
"MIT"
] | 29 | 2021-03-31T02:42:59.000Z | 2022-03-12T16:20:05.000Z | FastAPIMongoEngine/app/util/get_json.py | scionoftech/FastAPI-Full-Stack-Samples | e7d42661ed59324ff20f419d05c6cd1e7dab7e97 | [
"MIT"
] | null | null | null | FastAPIMongoEngine/app/util/get_json.py | scionoftech/FastAPI-Full-Stack-Samples | e7d42661ed59324ff20f419d05c6cd1e7dab7e97 | [
"MIT"
] | 4 | 2021-08-21T01:02:00.000Z | 2022-01-09T15:33:51.000Z | import json
def get_json(data):
return json.loads(data.to_json())
| 12.833333 | 38 | 0.662338 | 12 | 77 | 4.083333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220779 | 77 | 5 | 39 | 15.4 | 0.816667 | 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 |
ca5e3cf48ab9ba2db1285063f80648945de13bb9 | 4,235 | py | Python | tests/unittests/test_authentication.py | ZPascal/grafana_api_sdk | 97c347790200e8e9a2aafd47e322297aa97b964c | [
"Apache-2.0"
] | 2 | 2022-02-01T20:18:48.000Z | 2022-02-02T01:22:14.000Z | tests/unittests/test_authentication.py | ZPascal/grafana_api_sdk | 97c347790200e8e9a2aafd47e322297aa97b964c | [
"Apache-2.0"
] | 5 | 2022-01-12T06:55:54.000Z | 2022-03-26T13:35:50.000Z | tests/unittests/test_authentication.py | ZPascal/grafana_api_sdk | 97c347790200e8e9a2aafd47e322297aa97b964c | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from unittest.mock import MagicMock, Mock, patch
from src.grafana_api.model import APIModel
from src.grafana_api.authentication import Authentication
class AuthenticationTestCase(TestCase):
@patch("src.grafana_api.api.Api.call_the_api")
def test_get_api_tokens(self, call_the_api... | 35.889831 | 80 | 0.683117 | 514 | 4,235 | 5.317121 | 0.093385 | 0.061471 | 0.087816 | 0.081961 | 0.900476 | 0.884376 | 0.884376 | 0.884376 | 0.884376 | 0.868277 | 0 | 0.000894 | 0.207556 | 4,235 | 117 | 81 | 36.196581 | 0.813468 | 0 | 0 | 0.626506 | 0 | 0 | 0.082645 | 0.068005 | 0 | 0 | 0 | 0 | 0.096386 | 1 | 0.096386 | false | 0 | 0.048193 | 0 | 0.156627 | 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 |
04bcf98918f6433495dc5b34ff3810062c9864f9 | 39 | py | Python | runtime/pubsub/__init__.py | akrantz01/backendless | 27acada7ab5ee4e81f9e23e0079cfb15b9f6b09e | [
"MIT"
] | 1 | 2020-10-17T04:39:29.000Z | 2020-10-17T04:39:29.000Z | runtime/pubsub/__init__.py | akrantz01/backendless | 27acada7ab5ee4e81f9e23e0079cfb15b9f6b09e | [
"MIT"
] | null | null | null | runtime/pubsub/__init__.py | akrantz01/backendless | 27acada7ab5ee4e81f9e23e0079cfb15b9f6b09e | [
"MIT"
] | null | null | null | from .setup import configure, shutdown
| 19.5 | 38 | 0.820513 | 5 | 39 | 6.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 39 | 1 | 39 | 39 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b6f13a5419347d84a6288c6e719d119541a68613 | 110 | py | Python | build/disco_f407vg/rpc_extra_script.py | swansk/avatar-fw | 48bb98285ca1d5a102d17bc4df8bd77593c37dd4 | [
"MIT"
] | null | null | null | build/disco_f407vg/rpc_extra_script.py | swansk/avatar-fw | 48bb98285ca1d5a102d17bc4df8bd77593c37dd4 | [
"MIT"
] | null | null | null | build/disco_f407vg/rpc_extra_script.py | swansk/avatar-fw | 48bb98285ca1d5a102d17bc4df8bd77593c37dd4 | [
"MIT"
] | null | null | null | Import('env')
env.Prepend(CPPPATH=['/home/karl/.platformio/packages/framework-mbed/features/unsupported/rpc']) | 55 | 96 | 0.790909 | 14 | 110 | 6.214286 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 110 | 2 | 96 | 55 | 0.798165 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 0.63964 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
f3dc8e97a1de0f3177c93e2c134479dec218fad9 | 163 | py | Python | Python/Polar Coordinates.py | MonwarAdeeb/HackerRank-Solutions | 571327e9688061745000ae81c5fd74ff7a2976d4 | [
"MIT"
] | null | null | null | Python/Polar Coordinates.py | MonwarAdeeb/HackerRank-Solutions | 571327e9688061745000ae81c5fd74ff7a2976d4 | [
"MIT"
] | null | null | null | Python/Polar Coordinates.py | MonwarAdeeb/HackerRank-Solutions | 571327e9688061745000ae81c5fd74ff7a2976d4 | [
"MIT"
] | null | null | null | # Enter your code here. Read input from STDIN. Print output to STDOUT
import cmath
r = complex(input().strip())
print(cmath.polar(r)[0])
print(cmath.polar(r)[1]) | 23.285714 | 69 | 0.717791 | 28 | 163 | 4.178571 | 0.714286 | 0.17094 | 0.25641 | 0.273504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.128834 | 163 | 7 | 70 | 23.285714 | 0.809859 | 0.411043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
f3f2711cb5accf77b96ae587e85ce00bbc4ef71f | 11,835 | py | Python | tests/basic_tests.py | dhdsjy/Feature_auto_ml | d30aa3f884c51cc060e26d38a8c648f9744f43c1 | [
"MIT"
] | null | null | null | tests/basic_tests.py | dhdsjy/Feature_auto_ml | d30aa3f884c51cc060e26d38a8c648f9744f43c1 | [
"MIT"
] | null | null | null | tests/basic_tests.py | dhdsjy/Feature_auto_ml | d30aa3f884c51cc060e26d38a8c648f9744f43c1 | [
"MIT"
] | null | null | null | """
To get standard out, run nosetests as follows:
$ nosetests -s tests
"""
import datetime
import os
import random
import sys
sys.path = [os.path.abspath(os.path.dirname(__file__))] + sys.path
from auto_ml import Predictor
from nose.tools import assert_equal, assert_not_equal, with_setup
from sklearn.metrics impor... | 35.64759 | 135 | 0.738826 | 1,735 | 11,835 | 4.769452 | 0.116427 | 0.030453 | 0.03142 | 0.023202 | 0.887251 | 0.860665 | 0.857764 | 0.852931 | 0.837221 | 0.822961 | 0 | 0.018482 | 0.181665 | 11,835 | 331 | 136 | 35.755287 | 0.835932 | 0.237854 | 0 | 0.675393 | 0 | 0 | 0.047731 | 0.014275 | 0 | 0 | 0 | 0 | 0.089005 | 1 | 0.052356 | false | 0 | 0.052356 | 0 | 0.104712 | 0.188482 | 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 |
6d0e1b1c0be4d8c3dacf7757e9a6671119c7bbf7 | 106 | py | Python | train-or-finetune-model/tmp/test.py | ysh329/kaggle-invasive-species-monitoring-classification | 782a15998900fcb60de6fc1cb9fd8a3eb525435c | [
"MIT"
] | null | null | null | train-or-finetune-model/tmp/test.py | ysh329/kaggle-invasive-species-monitoring-classification | 782a15998900fcb60de6fc1cb9fd8a3eb525435c | [
"MIT"
] | null | null | null | train-or-finetune-model/tmp/test.py | ysh329/kaggle-invasive-species-monitoring-classification | 782a15998900fcb60de6fc1cb9fd8a3eb525435c | [
"MIT"
] | null | null | null | import sys
print sys.argv, len(sys.argv)
for idx in xrange(len(sys.argv)):
print idx, sys.argv[idx]
| 15.142857 | 33 | 0.688679 | 20 | 106 | 3.65 | 0.45 | 0.383562 | 0.273973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 106 | 6 | 34 | 17.666667 | 0.829545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.5 | 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 |
6d2b93cdf981eea9a5331fe0e85086a51a6e7e1b | 132 | py | Python | app/models/__init__.py | uk-gov-mirror/alphagov.digitalmarketplace-api | 5a1db63691d0c4a435714837196ab6914badaf62 | [
"MIT"
] | 25 | 2015-01-14T10:45:13.000Z | 2021-05-26T17:21:41.000Z | app/models/__init__.py | uk-gov-mirror/alphagov.digitalmarketplace-api | 5a1db63691d0c4a435714837196ab6914badaf62 | [
"MIT"
] | 641 | 2015-01-15T11:10:50.000Z | 2021-06-15T22:18:42.000Z | app/models/__init__.py | uk-gov-mirror/alphagov.digitalmarketplace-api | 5a1db63691d0c4a435714837196ab6914badaf62 | [
"MIT"
] | 22 | 2015-06-13T15:37:45.000Z | 2021-08-19T23:40:49.000Z | from .main import * # noqa
from .direct_award import * # noqa
from .buyer_domains import * # noqa
from .outcomes import * # noqa
| 26.4 | 36 | 0.704545 | 18 | 132 | 5.055556 | 0.5 | 0.43956 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 132 | 4 | 37 | 33 | 0.866667 | 0.143939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
6d2c9aa2eb55a138b2cac46ac0839af9f13f1fda | 140 | py | Python | pilog.humid_temp.py | marcheiligers/piscripts | 453986872dd5dc784a4953607da6d70429417668 | [
"MIT"
] | null | null | null | pilog.humid_temp.py | marcheiligers/piscripts | 453986872dd5dc784a4953607da6d70429417668 | [
"MIT"
] | null | null | null | pilog.humid_temp.py | marcheiligers/piscripts | 453986872dd5dc784a4953607da6d70429417668 | [
"MIT"
] | null | null | null | import socket
from pilog import *
from dht11 import *
humidity, temperature = read_humidity_and_temp()
post_weather(humidity, temperature)
| 20 | 48 | 0.814286 | 18 | 140 | 6.111111 | 0.666667 | 0.345455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0.121429 | 140 | 6 | 49 | 23.333333 | 0.878049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ed957652349ce731a9f084d193e38af668bc087c | 41 | py | Python | python-renascence/module/__init__.py | jxt1234/Genetic-Program-Frame | c0a801e337a31de05f49047fd11920a3c2e32ed6 | [
"Apache-2.0"
] | 3 | 2016-01-04T09:23:31.000Z | 2019-08-06T11:52:07.000Z | python-renascence/module/__init__.py | jxt1234/Renascence | c0a801e337a31de05f49047fd11920a3c2e32ed6 | [
"Apache-2.0"
] | null | null | null | python-renascence/module/__init__.py | jxt1234/Renascence | c0a801e337a31de05f49047fd11920a3c2e32ed6 | [
"Apache-2.0"
] | 6 | 2016-05-10T16:05:12.000Z | 2019-12-30T09:14:21.000Z | import RenascenceBasic
import Renascence
| 13.666667 | 22 | 0.902439 | 4 | 41 | 9.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 41 | 2 | 23 | 20.5 | 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 |
eda63e60cb70e627e96422e4ec0d03f0c200810e | 125 | py | Python | net/model/decoder/__init__.py | lhq1/legal-predicetion | 0919732d9aecba17630a3dcaedd3611ca990010c | [
"MIT"
] | 87 | 2018-08-27T14:59:11.000Z | 2022-03-01T07:29:27.000Z | net/model/decoder/__init__.py | lllybi/TopJudge | c9186b132e79830fd4e855777b06a601d76bf0a2 | [
"MIT"
] | 6 | 2018-10-11T09:29:05.000Z | 2020-12-14T02:29:28.000Z | net/model/decoder/__init__.py | lllybi/TopJudge | c9186b132e79830fd4e855777b06a601d76bf0a2 | [
"MIT"
] | 31 | 2018-08-28T00:44:59.000Z | 2022-02-18T18:17:01.000Z | from .fc_decoder import FCDecoder
from .lstm_article_decoder import LSTMArticleDecoder
from .lstm_decoder import LSTMDecoder
| 31.25 | 52 | 0.88 | 16 | 125 | 6.625 | 0.5625 | 0.367925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096 | 125 | 3 | 53 | 41.666667 | 0.938053 | 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 |
edb5dc17eea618b45e20b4dc8709a561e933224e | 22,434 | py | Python | tests/utils.py | ruth-ann/deepsnap | 35eeb5abdb304c53b2e0a68cbbeeaa55dca286a0 | [
"MIT"
] | 412 | 2020-06-20T01:37:29.000Z | 2022-03-29T11:32:55.000Z | tests/utils.py | ruth-ann/deepsnap | 35eeb5abdb304c53b2e0a68cbbeeaa55dca286a0 | [
"MIT"
] | 43 | 2020-06-21T09:16:10.000Z | 2022-02-28T03:07:50.000Z | tests/utils.py | ruth-ann/deepsnap | 35eeb5abdb304c53b2e0a68cbbeeaa55dca286a0 | [
"MIT"
] | 46 | 2020-06-20T02:00:48.000Z | 2022-03-16T21:25:20.000Z | import numpy as np
import networkx as nx
import random
import torch
import itertools
np.random.seed(0)
def pyg_to_dicts(dataset, task="enzyme"):
ds = []
for data in dataset:
d = {}
d["node_feature"] = data.x
if task == "enzyme":
d["grpah_label"] = data.y
elif task =... | 33.284866 | 92 | 0.522867 | 3,392 | 22,434 | 3.246167 | 0.045401 | 0.048315 | 0.074108 | 0.141677 | 0.884933 | 0.87567 | 0.84906 | 0.830351 | 0.808464 | 0.776678 | 0 | 0.057736 | 0.33681 | 22,434 | 673 | 93 | 33.334324 | 0.68235 | 0.024249 | 0 | 0.640678 | 0 | 0 | 0.009372 | 0 | 0 | 0 | 0 | 0.001486 | 0.001695 | 1 | 0.028814 | false | 0 | 0.008475 | 0 | 0.066102 | 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 |
610529a684e4e2d65e3385e34075668b0c7289f1 | 20,138 | py | Python | MV3D_TF_release/lib/rpn_msr/proposal_layer_tf.py | ZiningWang/Sparse_Pooling | a160ddf9a03ef53bad630b4ac186a8437bd0475c | [
"Unlicense"
] | 52 | 2018-08-28T03:44:51.000Z | 2022-03-23T16:00:14.000Z | MV3D_TF_release/lib/rpn_msr/proposal_layer_tf.py | weidezhang/Sparse_Pooling | a160ddf9a03ef53bad630b4ac186a8437bd0475c | [
"Unlicense"
] | 1 | 2019-06-25T01:32:35.000Z | 2019-07-01T01:34:20.000Z | MV3D_TF_release/lib/rpn_msr/proposal_layer_tf.py | weidezhang/Sparse_Pooling | a160ddf9a03ef53bad630b4ac186a8437bd0475c | [
"Unlicense"
] | 20 | 2018-07-31T18:17:35.000Z | 2021-07-09T08:42:06.000Z | # --------------------------------------------------------
# Faster R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick and Sean Bell
# --------------------------------------------------------
import numpy as np
import yaml
from fast_rcnn.config im... | 38.212524 | 178 | 0.647979 | 2,964 | 20,138 | 4.171727 | 0.095142 | 0.040922 | 0.017792 | 0.030247 | 0.827173 | 0.792964 | 0.769592 | 0.74355 | 0.73336 | 0.72503 | 0 | 0.026661 | 0.223309 | 20,138 | 526 | 179 | 38.285171 | 0.76389 | 0.345367 | 0 | 0.656904 | 0 | 0 | 0.064066 | 0.001714 | 0 | 0 | 0 | 0.003802 | 0.012552 | 1 | 0.020921 | false | 0 | 0.037657 | 0 | 0.079498 | 0.142259 | 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 |
b642330d777865a30f86b512306388c12565a30b | 5,684 | py | Python | pycsw/core/test_spatialSimilarity.py | Anika2/aahll-pycsw | cacc662e4d252d3bb12ccd225d67e936a53b6e4a | [
"MIT"
] | null | null | null | pycsw/core/test_spatialSimilarity.py | Anika2/aahll-pycsw | cacc662e4d252d3bb12ccd225d67e936a53b6e4a | [
"MIT"
] | null | null | null | pycsw/core/test_spatialSimilarity.py | Anika2/aahll-pycsw | cacc662e4d252d3bb12ccd225d67e936a53b6e4a | [
"MIT"
] | null | null | null | # Author: Lia Kirsch
import spatialSimilarity
# Geometry
def test_spatialdistance_Geometry():
total = spatialSimilarity.spatialDistance([13.0078125, 50.62507306341435, 5.44921875, 45.82879925192134], [
17.7978515625, 52.09300763963822, 7.27294921875, 46.1493943764768... | 39.748252 | 114 | 0.639163 | 589 | 5,684 | 6.096774 | 0.159593 | 0.040936 | 0.115288 | 0.125313 | 0.737678 | 0.720969 | 0.720969 | 0.681147 | 0.681147 | 0.681147 | 0 | 0.430954 | 0.25088 | 5,684 | 142 | 115 | 40.028169 | 0.4124 | 0.026566 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247059 | 1 | 0.247059 | false | 0 | 0.011765 | 0 | 0.258824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b657c3743ca24bea90b32e037ba793c40689dd81 | 10,824 | py | Python | stubs/micropython-v1_13-95-pyboard/pyb.py | mattytrentini/micropython-stubs | 4d596273823b69e9e5bcf5fa67f249c374ee0bbc | [
"MIT"
] | null | null | null | stubs/micropython-v1_13-95-pyboard/pyb.py | mattytrentini/micropython-stubs | 4d596273823b69e9e5bcf5fa67f249c374ee0bbc | [
"MIT"
] | null | null | null | stubs/micropython-v1_13-95-pyboard/pyb.py | mattytrentini/micropython-stubs | 4d596273823b69e9e5bcf5fa67f249c374ee0bbc | [
"MIT"
] | null | null | null | """
Module: 'pyb' on pyboard 1.13.0-95
"""
# MCU: (sysname='pyboard', nodename='pyboard', release='1.13.0', version='v1.13-95-g0fff2e03f on 2020-10-03', machine='PYBv1.1 with STM32F405RG')
# Stubber: 1.3.4 - updated
from typing import Any
class ADC:
""""""
def read(self, *args) -> Any:
pass
def ... | 14.470588 | 145 | 0.500277 | 1,385 | 10,824 | 3.836823 | 0.200722 | 0.227889 | 0.358111 | 0.397817 | 0.636244 | 0.447121 | 0.407038 | 0.34061 | 0.34061 | 0.34061 | 0 | 0.043447 | 0.364191 | 10,824 | 747 | 146 | 14.48996 | 0.728713 | 0.018847 | 0 | 0.529032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.372043 | false | 0.374194 | 0.002151 | 0 | 0.621505 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
b6628f7ce8905e934bd40723b480c40fa73204a6 | 59 | py | Python | src/__init__.py | m1k1o/ext4-backup-pointers | b5a4ce1f7fce87d0feed8df8294f40c919ece578 | [
"Apache-2.0"
] | 1 | 2020-05-09T17:36:06.000Z | 2020-05-09T17:36:06.000Z | src/__init__.py | m1k1o/ext4-backup-pointers | b5a4ce1f7fce87d0feed8df8294f40c919ece578 | [
"Apache-2.0"
] | 1 | 2020-05-09T23:34:45.000Z | 2020-05-09T23:34:45.000Z | src/__init__.py | m1k1o/ext4-backup-pointers | b5a4ce1f7fce87d0feed8df8294f40c919ece578 | [
"Apache-2.0"
] | null | null | null | from src.console import start
def console():
start()
| 11.8 | 30 | 0.677966 | 8 | 59 | 5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220339 | 59 | 4 | 31 | 14.75 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b67462b8708f7acc5d93c5276a0508fddf2ff772 | 5,791 | py | Python | mlxtend/mlxtend/regressor/tests/test_linear_regression.py | WhiteWolf21/fp-growth | 01e1d853b09f244f14e66d7d0c87f139a0f67c81 | [
"MIT"
] | null | null | null | mlxtend/mlxtend/regressor/tests/test_linear_regression.py | WhiteWolf21/fp-growth | 01e1d853b09f244f14e66d7d0c87f139a0f67c81 | [
"MIT"
] | null | null | null | mlxtend/mlxtend/regressor/tests/test_linear_regression.py | WhiteWolf21/fp-growth | 01e1d853b09f244f14e66d7d0c87f139a0f67c81 | [
"MIT"
] | null | null | null | # Sebastian Raschka 2014-2020
# mlxtend Machine Learning Library Extensions
# Author: Sebastian Raschka <sebastianraschka.com>
#
# License: BSD 3 clause
from mlxtend.regressor import LinearRegression
from mlxtend.data import boston_housing_data
import numpy as np
from numpy.testing import assert_almost_equal
from skl... | 31.472826 | 59 | 0.574167 | 839 | 5,791 | 3.620977 | 0.110846 | 0.026662 | 0.134299 | 0.0395 | 0.819947 | 0.778144 | 0.757077 | 0.757077 | 0.721527 | 0.686636 | 0 | 0.041687 | 0.304093 | 5,791 | 183 | 60 | 31.644809 | 0.712159 | 0.028492 | 0 | 0.695035 | 0 | 0 | 0.006051 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 1 | 0.113475 | false | 0 | 0.035461 | 0 | 0.148936 | 0.021277 | 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 |
b6804856bec79c7d2d285078375638cc5601e190 | 145 | py | Python | 4_class/utils/__init__.py | Acrophase/Sleep_Staging_KD | e40bcef04fed669153fcb6192663bf0f1efaacb1 | [
"MIT"
] | 15 | 2022-01-16T01:22:32.000Z | 2022-02-03T07:17:14.000Z | 3_class/utils/__init__.py | Acrophase/Sleep_Staging_KD | e40bcef04fed669153fcb6192663bf0f1efaacb1 | [
"MIT"
] | null | null | null | 3_class/utils/__init__.py | Acrophase/Sleep_Staging_KD | e40bcef04fed669153fcb6192663bf0f1efaacb1 | [
"MIT"
] | 2 | 2022-01-17T03:51:40.000Z | 2022-01-25T20:10:53.000Z | from .arg_utils import get_args
from .dataset_utils import get_data
from .callback_utils import get_callbacks
from .model_utils import get_model
| 29 | 41 | 0.862069 | 24 | 145 | 4.875 | 0.458333 | 0.376068 | 0.478632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110345 | 145 | 4 | 42 | 36.25 | 0.906977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
b68f4fbccc758b2fc9e73a626b8b3eab5c219c65 | 6,111 | py | Python | imcsdk/mometa/comm/CommMailAlert.py | vadimkuznetsov/imcsdk | ed038ce1dbc8031f99d2dfb3ccee3bf0b48309d8 | [
"Apache-2.0"
] | null | null | null | imcsdk/mometa/comm/CommMailAlert.py | vadimkuznetsov/imcsdk | ed038ce1dbc8031f99d2dfb3ccee3bf0b48309d8 | [
"Apache-2.0"
] | null | null | null | imcsdk/mometa/comm/CommMailAlert.py | vadimkuznetsov/imcsdk | ed038ce1dbc8031f99d2dfb3ccee3bf0b48309d8 | [
"Apache-2.0"
] | 1 | 2019-11-10T18:42:04.000Z | 2019-11-10T18:42:04.000Z | """This module contains the general information for CommMailAlert ManagedObject."""
from ...imcmo import ManagedObject
from ...imccoremeta import MoPropertyMeta, MoMeta
from ...imcmeta import VersionMeta
class CommMailAlertConsts:
MIN_SEVERITY_LEVEL_CONDITION = "condition"
MIN_SEVERITY_LEVEL_CRITICAL = "crit... | 67.153846 | 896 | 0.578465 | 838 | 6,111 | 4.118138 | 0.133652 | 0.026079 | 0.043466 | 0.052159 | 0.808751 | 0.798319 | 0.79745 | 0.79745 | 0.79745 | 0.79745 | 0 | 0.084659 | 0.166912 | 6,111 | 90 | 897 | 67.9 | 0.593204 | 0.017346 | 0 | 0.492754 | 0 | 0.028986 | 0.39179 | 0.190556 | 0 | 0 | 0.009678 | 0 | 0 | 1 | 0.014493 | false | 0 | 0.043478 | 0 | 0.231884 | 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 |
fcd7a0e40264829f945d11a7a6fe887077226a24 | 28 | py | Python | nblog/core/models/__init__.py | NestorMonroy/BlogTemplate | 82dfc7eb26e8a8ff0d51f29176c3b4d537092be7 | [
"MIT"
] | 1 | 2019-09-16T13:23:44.000Z | 2019-09-16T13:23:44.000Z | nblog/core/models/__init__.py | NestorMonroy/BlogTemplate | 82dfc7eb26e8a8ff0d51f29176c3b4d537092be7 | [
"MIT"
] | 8 | 2020-07-22T02:06:35.000Z | 2021-09-22T19:22:27.000Z | nblog/core/models/__init__.py | NestorMonroy/BlogTemplate | 82dfc7eb26e8a8ff0d51f29176c3b4d537092be7 | [
"MIT"
] | 1 | 2019-09-17T13:24:27.000Z | 2019-09-17T13:24:27.000Z | from .notifications import * | 28 | 28 | 0.821429 | 3 | 28 | 7.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 28 | 1 | 28 | 28 | 0.92 | 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 |
fcd91f6d7ad6ea5ee46c94b95cd34dea3d40844d | 9,558 | py | Python | tests/modules/test_math.py | HelloMelanieC/batavia | 1fc436e2cf7d14896bc485b6a25f2a396cfefaf3 | [
"BSD-3-Clause"
] | 1 | 2021-01-03T00:59:23.000Z | 2021-01-03T00:59:23.000Z | tests/modules/test_math.py | HelloMelanieC/batavia | 1fc436e2cf7d14896bc485b6a25f2a396cfefaf3 | [
"BSD-3-Clause"
] | null | null | null | tests/modules/test_math.py | HelloMelanieC/batavia | 1fc436e2cf7d14896bc485b6a25f2a396cfefaf3 | [
"BSD-3-Clause"
] | null | null | null | import sys
from unittest import skipUnless
from ..utils import ModuleFunctionTestCase, TranspileTestCase
class MathTests(ModuleFunctionTestCase, TranspileTestCase):
substitutions = {
# A
'7.32747...e-15': [
'7.35784...e-15'
],
'1.53745...e-12': [
'1.53743...... | 38.232 | 2,496 | 0.634442 | 760 | 9,558 | 7.639474 | 0.189474 | 0.12246 | 0.086807 | 0.079573 | 0.243713 | 0.22804 | 0.206855 | 0.126076 | 0.080262 | 0.046159 | 0 | 0.377626 | 0.263026 | 9,558 | 249 | 2,497 | 38.385542 | 0.446621 | 0.010776 | 0 | 0.243243 | 0 | 0.009009 | 0.714528 | 0.474553 | 0 | 1 | 0 | 0 | 0.063063 | 1 | 0.067568 | false | 0 | 0.076577 | 0 | 0.157658 | 0.373874 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
fcf2ca34ce5d9ed7f03a3b101826e237fe90a9c9 | 23,227 | py | Python | tests/tools/test_aux_methods_labels_descriptor_manager.py | nipy/nilabels | b065febc611eef638785651b4642d53bb61f1321 | [
"MIT"
] | 15 | 2019-04-09T21:47:47.000Z | 2022-02-01T14:11:51.000Z | tests/tools/test_aux_methods_labels_descriptor_manager.py | SebastianoF/LabelsManager | b065febc611eef638785651b4642d53bb61f1321 | [
"MIT"
] | 4 | 2018-08-24T09:25:49.000Z | 2018-08-29T10:47:50.000Z | tests/tools/test_aux_methods_labels_descriptor_manager.py | nipy/nilabels | b065febc611eef638785651b4642d53bb61f1321 | [
"MIT"
] | 1 | 2019-04-06T20:49:48.000Z | 2019-04-06T20:49:48.000Z | import collections
from os.path import join as jph
import pytest
from nilabels.tools.aux_methods.label_descriptor_manager import LabelsDescriptorManager, \
generate_dummy_label_descriptor
from tests.tools.decorators_tools import write_and_erase_temporary_folder, pfo_tmp_test, \
write_and_erase_temporary_fol... | 46.085317 | 120 | 0.687002 | 3,407 | 23,227 | 4.336073 | 0.070737 | 0.018547 | 0.013606 | 0.034116 | 0.828268 | 0.797739 | 0.77249 | 0.736343 | 0.684492 | 0.630745 | 0 | 0.052304 | 0.170276 | 23,227 | 503 | 121 | 46.176938 | 0.714249 | 0.044302 | 0 | 0.468144 | 1 | 0.00277 | 0.100717 | 0.035722 | 0 | 0 | 0 | 0 | 0.058172 | 1 | 0.074792 | false | 0 | 0.01385 | 0 | 0.088643 | 0.01385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1e644bb033782b715202a9df50b757be66e108c6 | 232 | py | Python | spikeforestwidgets/__init__.py | tjd2002/spikeforest2 | 2e393564b858b2995aa2ccccd9bd73065681b5de | [
"Apache-2.0"
] | null | null | null | spikeforestwidgets/__init__.py | tjd2002/spikeforest2 | 2e393564b858b2995aa2ccccd9bd73065681b5de | [
"Apache-2.0"
] | null | null | null | spikeforestwidgets/__init__.py | tjd2002/spikeforest2 | 2e393564b858b2995aa2ccccd9bd73065681b5de | [
"Apache-2.0"
] | null | null | null | from .timeserieswidget import TimeseriesWidget
from .electrodegeometrywidget import ElectrodeGeometryWidget
from .unitwaveformswidget import UnitWaveformWidget, UnitWaveformsWidget
from .correlogramswidget import CorrelogramsWidget
| 46.4 | 72 | 0.905172 | 17 | 232 | 12.352941 | 0.411765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073276 | 232 | 4 | 73 | 58 | 0.976744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.