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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6fc4a2daf6b759ba8bc4213dc5af6877f7f9f9b2 | 42,977 | py | Python | pybind/slxos/v16r_1_00b/mpls_state/rsvp/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v16r_1_00b/mpls_state/rsvp/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v16r_1_00b/mpls_state/rsvp/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | 1 | 2021-11-05T22:15:42.000Z | 2021-11-05T22:15:42.000Z |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | 76.335702 | 824 | 0.748051 | 5,808 | 42,977 | 5.296832 | 0.040806 | 0.043557 | 0.050969 | 0.035106 | 0.877129 | 0.848784 | 0.831101 | 0.814393 | 0.808022 | 0.797621 | 0 | 0.008997 | 0.11548 | 42,977 | 562 | 825 | 76.47153 | 0.800284 | 0.157177 | 0 | 0.485623 | 0 | 0.047923 | 0.408399 | 0.229023 | 0 | 0 | 0 | 0 | 0 | 1 | 0.124601 | false | 0 | 0.041534 | 0 | 0.277955 | 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 |
6fce00b9af2a31898e244321bb75a44ba57a5883 | 198 | py | Python | src/pacman/lib/models/sine_curve.py | sebastian-zieba/PACMAN | 2eb1e4b450c97dc28d5a05b3ebddd80706cfca79 | [
"MIT"
] | 1 | 2022-03-23T10:26:33.000Z | 2022-03-23T10:26:33.000Z | src/pacman/lib/models/sine_curve.py | sebastian-zieba/PACMAN | 2eb1e4b450c97dc28d5a05b3ebddd80706cfca79 | [
"MIT"
] | null | null | null | src/pacman/lib/models/sine_curve.py | sebastian-zieba/PACMAN | 2eb1e4b450c97dc28d5a05b3ebddd80706cfca79 | [
"MIT"
] | 1 | 2022-03-29T13:37:31.000Z | 2022-03-29T13:37:31.000Z | import numpy as np
def get_phaselc(t, p, data, v_num):
return 1.+p.amp1[v_num]*np.cos(2.*np.pi*(t-p.theta1[v_num])/p.per[v_num]) + p.amp2[v_num]*np.cos(4.*np.pi*(t-p.theta2[v_num])/p.per[v_num])
| 33 | 140 | 0.661616 | 50 | 198 | 2.46 | 0.46 | 0.227642 | 0.121951 | 0.146341 | 0.195122 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.080808 | 198 | 5 | 141 | 39.6 | 0.637363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
6fcf9c2d7fe2987d76bfac30e1d6729b0a9d7ec9 | 215 | py | Python | efficientnet/__init__.py | Lornatang/EfficientNet | 1b8718735888aa21fbef78b825af1dacd3c257a2 | [
"Apache-2.0"
] | 4 | 2020-01-12T01:02:04.000Z | 2020-04-10T00:32:05.000Z | efficientnet/__init__.py | Lornatang/EfficientNet | 1b8718735888aa21fbef78b825af1dacd3c257a2 | [
"Apache-2.0"
] | null | null | null | efficientnet/__init__.py | Lornatang/EfficientNet | 1b8718735888aa21fbef78b825af1dacd3c257a2 | [
"Apache-2.0"
] | null | null | null | __version__ = "0.3.1"
from .model import EfficientNet
from .utils import GlobalParams
from .utils import BlockArgs
from .utils import BlockDecoder
from .utils import efficientnet
from .utils import get_model_params
| 26.875 | 35 | 0.823256 | 30 | 215 | 5.7 | 0.466667 | 0.263158 | 0.438596 | 0.315789 | 0.385965 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015957 | 0.125581 | 215 | 7 | 36 | 30.714286 | 0.893617 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6ffd0886d4a70bb1de0f7217771e26bf12458003 | 37,749 | py | Python | instances/passenger_demand/pas-20210421-2109-int12e/80.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210421-2109-int12e/80.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210421-2109-int12e/80.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null |
"""
PASSENGERS
"""
numPassengers = 2846
passenger_arriving = (
(4, 6, 12, 1, 0, 0, 5, 10, 4, 7, 1, 0), # 0
(2, 11, 7, 3, 1, 0, 7, 10, 7, 1, 3, 0), # 1
(2, 2, 8, 0, 1, 0, 4, 10, 4, 3, 4, 0), # 2
(3, 6, 5, 5, 2, 0, 5, 4, 3, 4, 1, 0), # 3
(4, 10, 2, 1, 2, 0, 4, 6, 4, 3, 1, 0), # 4
(2, 4, 5, 4, 2, 0, 3, 7, 3,... | 112.683582 | 213 | 0.728099 | 5,147 | 37,749 | 5.337867 | 0.22382 | 0.314479 | 0.248963 | 0.471719 | 0.332387 | 0.329621 | 0.329621 | 0.329621 | 0.329621 | 0.329621 | 0 | 0.818264 | 0.119579 | 37,749 | 334 | 214 | 113.020958 | 0.008395 | 0.03208 | 0 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.015823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
82fb4087e710989a4ee0d718eb10593559ffe115 | 33 | py | Python | __init__.py | DivyanshuSingh96/myCalc | 8a5909bedf18b9744875b6a460e966c37e062aa6 | [
"MIT"
] | 2 | 2021-03-03T11:46:45.000Z | 2021-07-07T12:24:46.000Z | __init__.py | DivyanshuSingh96/myCalc | 8a5909bedf18b9744875b6a460e966c37e062aa6 | [
"MIT"
] | null | null | null | __init__.py | DivyanshuSingh96/myCalc | 8a5909bedf18b9744875b6a460e966c37e062aa6 | [
"MIT"
] | null | null | null | from myCalc.arithmetics import *
| 16.5 | 32 | 0.818182 | 4 | 33 | 6.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.931034 | 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 |
d22141fda9d3ccc609128deddf2bc693eeb2e207 | 302 | py | Python | deepy/debug/debug_functions.py | uaca/deepy | 090fbad22a08a809b12951cd0d4984f5bd432698 | [
"MIT"
] | 260 | 2015-05-16T07:58:29.000Z | 2016-01-07T09:10:47.000Z | deepy/debug/debug_functions.py | uaca/deepy | 090fbad22a08a809b12951cd0d4984f5bd432698 | [
"MIT"
] | 20 | 2015-04-21T01:46:46.000Z | 2015-12-20T00:04:23.000Z | deepy/debug/debug_functions.py | zomux/deepy | 090fbad22a08a809b12951cd0d4984f5bd432698 | [
"MIT"
] | 50 | 2016-01-27T03:45:25.000Z | 2020-12-16T07:02:57.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import theano
def check_test_values():
theano.config.compute_test_value = 'warn'
def set_trace():
try:
from ipdb import set_trace as _set_trace
except ImportError as e:
from pdb import set_trace as _set_trace
_set_trace() | 21.571429 | 48 | 0.678808 | 45 | 302 | 4.266667 | 0.6 | 0.25 | 0.145833 | 0.166667 | 0.25 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0.004274 | 0.225166 | 302 | 14 | 49 | 21.571429 | 0.816239 | 0.139073 | 0 | 0 | 0 | 0 | 0.015444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | true | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d234d38d67639ef4c186b7bae6f5e47507b589b5 | 107 | py | Python | terrascript/cloudscale/__init__.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | terrascript/cloudscale/__init__.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | terrascript/cloudscale/__init__.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # terrascript/cloudscale/__init__.py
import terrascript
class cloudscale(terrascript.Provider):
pass
| 15.285714 | 39 | 0.803738 | 11 | 107 | 7.454545 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121495 | 107 | 6 | 40 | 17.833333 | 0.87234 | 0.317757 | 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 |
d236980839847a5971d1e1c656471ed763715b09 | 8,063 | py | Python | dundunduh/records.py | jmhobbs/dun-dun-duh | 6100aeaa199d9f1fb1c5b046fadb2ccaa6c9aeb2 | [
"MIT"
] | 3 | 2016-10-28T12:29:22.000Z | 2017-07-19T12:50:19.000Z | dundunduh/records.py | jmhobbs/dun-dun-duh | 6100aeaa199d9f1fb1c5b046fadb2ccaa6c9aeb2 | [
"MIT"
] | 6 | 2016-01-28T17:38:49.000Z | 2021-03-25T22:03:27.000Z | dundunduh/records.py | jmhobbs/dun-dun-duh | 6100aeaa199d9f1fb1c5b046fadb2ccaa6c9aeb2 | [
"MIT"
] | 5 | 2015-08-23T18:51:52.000Z | 2016-10-28T12:29:23.000Z | # -*- coding: utf-8 -*-
import json
from datetime import datetime
from pytz import timezone
from flask import current_app
from .extensions import redis
rolling_average_lua = """
local i = redis.call('GET', KEYS[1])
local cai = redis.call('GET', KEYS[2])
i = tonumber(i)
cai = tonumber(cai)
if i == nil then
i = 0
... | 36.156951 | 198 | 0.650254 | 1,233 | 8,063 | 4.145174 | 0.083536 | 0.07748 | 0.045197 | 0.083937 | 0.836823 | 0.807865 | 0.807865 | 0.797691 | 0.797691 | 0.783017 | 0 | 0.036705 | 0.168796 | 8,063 | 222 | 199 | 36.31982 | 0.725903 | 0.01017 | 0 | 0.408805 | 0 | 0.006289 | 0.230132 | 0.118644 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125786 | false | 0 | 0.031447 | 0 | 0.36478 | 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 |
9669db9712fe53f51db84a3d075e5531e78196a2 | 4,547 | py | Python | main/model/DDAE.py | kuluchen/EMMA | 76f4b2a143300ba9567c9875560b8fd6c4c57b23 | [
"MIT"
] | 2 | 2020-08-11T10:33:04.000Z | 2022-03-30T03:24:32.000Z | main/model/DDAE.py | kuluchen/EMMA | 76f4b2a143300ba9567c9875560b8fd6c4c57b23 | [
"MIT"
] | null | null | null | main/model/DDAE.py | kuluchen/EMMA | 76f4b2a143300ba9567c9875560b8fd6c4c57b23 | [
"MIT"
] | 1 | 2022-03-30T03:24:21.000Z | 2022-03-30T03:24:21.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
class Dense_L(nn.Module):
def __init__(self, in_size, out_size,bias=True):
super().__init__()
self.dense = nn.Sequential(
nn.Linear(in_size, out_size, bias=True),
nn.ReLU(),
)
... | 28.41875 | 78 | 0.517704 | 587 | 4,547 | 3.855196 | 0.0954 | 0.13787 | 0.131242 | 0.148475 | 0.826337 | 0.824569 | 0.80601 | 0.782148 | 0.739284 | 0.711003 | 0 | 0.087264 | 0.347262 | 4,547 | 160 | 79 | 28.41875 | 0.675202 | 0.005278 | 0 | 0.686567 | 0 | 0 | 0.001996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0 | 0.022388 | 0 | 0.201493 | 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 |
96bc41e66dae9d24f116b6b6d6d202c9a28ae216 | 155 | py | Python | hello_world/test_main.py | bertl4398/semaphore-demo-python-pants | bd6e44804f71542bbc89474c527cc61bbc5ba099 | [
"MIT"
] | 4 | 2021-05-21T13:43:08.000Z | 2021-12-29T02:36:34.000Z | hello_world/test_main.py | bertl4398/semaphore-demo-python-pants | bd6e44804f71542bbc89474c527cc61bbc5ba099 | [
"MIT"
] | null | null | null | hello_world/test_main.py | bertl4398/semaphore-demo-python-pants | bd6e44804f71542bbc89474c527cc61bbc5ba099 | [
"MIT"
] | 4 | 2021-06-25T02:32:49.000Z | 2022-03-11T19:06:40.000Z | """Tests main.py."""
from hello_world.main import message
def test_message() -> None:
"""Tests hello message."""
assert message() == "Hi world"
| 17.222222 | 36 | 0.63871 | 20 | 155 | 4.85 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187097 | 155 | 8 | 37 | 19.375 | 0.769841 | 0.225806 | 0 | 0 | 0 | 0 | 0.073395 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7371a4ff3f0251d317e39e004c849b7266c2eb26 | 257,272 | py | Python | instances/passenger_demand/pas-20210422-1717-int8e-1/72.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210422-1717-int8e-1/72.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210422-1717-int8e-1/72.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null |
"""
PASSENGERS
"""
numPassengers = 15280
passenger_arriving = (
(6, 3, 0, 2, 2, 0, 3, 2, 3, 0, 1, 0, 0, 4, 3, 5, 0, 5, 1, 3, 0, 3, 0, 2, 0, 0), # 0
(1, 4, 0, 2, 7, 2, 0, 1, 1, 1, 0, 0, 0, 6, 7, 1, 2, 3, 3, 1, 0, 2, 0, 1, 0, 0), # 1
(3, 3, 2, 6, 2, 0, 3, 0, 1, 1, 0, 0, 0, 8, 3, 3, 1, 3, 4, 1, 3, 1, 0, 0, 0, 0), ... | 275.157219 | 493 | 0.768634 | 32,987 | 257,272 | 5.994392 | 0.211993 | 0.360479 | 0.345914 | 0.655416 | 0.380591 | 0.37249 | 0.367923 | 0.366204 | 0.366042 | 0.365951 | 0 | 0.849143 | 0.096139 | 257,272 | 934 | 494 | 275.45182 | 0.0012 | 0.015591 | 0 | 0.200873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.005459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
73799f33286dcc8dce43e001f996f53d1f904c88 | 18 | py | Python | src/nkmodel/__init__.py | elplatt/elp_nkmodel | 16265a29efe48a388bc15f3003f62fb86ffd7022 | [
"BSD-3-Clause"
] | 1 | 2022-02-17T20:58:58.000Z | 2022-02-17T20:58:58.000Z | src/nkmodel/__init__.py | elplatt/elp_nkmodel | 16265a29efe48a388bc15f3003f62fb86ffd7022 | [
"BSD-3-Clause"
] | null | null | null | src/nkmodel/__init__.py | elplatt/elp_nkmodel | 16265a29efe48a388bc15f3003f62fb86ffd7022 | [
"BSD-3-Clause"
] | 2 | 2021-06-09T05:21:58.000Z | 2022-02-17T20:59:30.000Z | from .nk import *
| 9 | 17 | 0.666667 | 3 | 18 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 18 | 1 | 18 | 18 | 0.857143 | 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 |
7385a9d64f3a19e562f865e1dbd65785405200b5 | 629 | py | Python | tests/expectations/python-expr/apply-mask-image-exp3.py | nipeone/histolab | 78854423df04c95c7168d03a95ae8665e3e957d8 | [
"Apache-2.0"
] | 149 | 2020-06-23T17:56:04.000Z | 2022-03-26T05:51:08.000Z | tests/expectations/python-expr/apply-mask-image-exp3.py | nipeone/histolab | 78854423df04c95c7168d03a95ae8665e3e957d8 | [
"Apache-2.0"
] | 245 | 2020-06-22T22:56:06.000Z | 2022-03-28T03:18:11.000Z | tests/expectations/python-expr/apply-mask-image-exp3.py | MPBA/histolab | 1dffe88aa04022567c70bbb78f96a860d73a599b | [
"Apache-2.0"
] | 31 | 2020-06-23T17:56:36.000Z | 2022-02-07T07:41:26.000Z | [
[
[23, 153, 214, 226],
[82, 172, 200, 90],
[179, 178, 109, 250],
[178, 23, 132, 171],
[159, 104, 98, 179],
],
[[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]],
[
[172, 206, 47, 28],
[185, 136, 220, 130],
[183, 196, 1... | 24.192308 | 75 | 0.324324 | 100 | 629 | 2.04 | 0.52 | 0.372549 | 0.529412 | 0.666667 | 0.196078 | 0.196078 | 0.196078 | 0.196078 | 0.196078 | 0.196078 | 0 | 0.552846 | 0.413355 | 629 | 25 | 76 | 25.16 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
73b81e21e63966b0f1260ba45e8a7db96437534a | 208 | py | Python | SybilRanking/__init__.py | mikeitexpert/osn-sybilranking | 4f4fd65808d39f9e6d1a44ed5fe3b95f17e77aa3 | [
"MIT"
] | 3 | 2019-03-11T15:30:08.000Z | 2021-03-04T18:25:26.000Z | SybilRanking/__init__.py | mikeitexpert/osn-sybilranking | 4f4fd65808d39f9e6d1a44ed5fe3b95f17e77aa3 | [
"MIT"
] | null | null | null | SybilRanking/__init__.py | mikeitexpert/osn-sybilranking | 4f4fd65808d39f9e6d1a44ed5fe3b95f17e77aa3 | [
"MIT"
] | 3 | 2019-10-31T08:52:23.000Z | 2022-03-24T07:32:28.000Z | # name = "SybilRanking"
# from .ranker import ranker
# print( "SybilRanking.__path__ = ", __path__ )
import SybilRanking.ranker
import SybilRanking.model
import SybilRanking.settings
import SybilRanking.test
| 26 | 47 | 0.798077 | 22 | 208 | 7.181818 | 0.454545 | 0.455696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 208 | 7 | 48 | 29.714286 | 0.858696 | 0.451923 | 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 |
73c270e57ef6198c1f8ac0da53164d47451d706b | 158 | py | Python | info/info/email_info.py | temi4000/Infoeducatie | a6b93c39291411a8dc4c33c60b946629412e7a81 | [
"Apache-2.0"
] | 2 | 2018-07-22T18:51:39.000Z | 2019-05-25T21:24:30.000Z | info/info/email_info.py | TemianMihai/Biosferra | a6b93c39291411a8dc4c33c60b946629412e7a81 | [
"Apache-2.0"
] | 79 | 2018-07-09T08:44:22.000Z | 2018-07-31T21:57:21.000Z | info/info/email_info.py | temi4000/Infoeducatie | a6b93c39291411a8dc4c33c60b946629412e7a81 | [
"Apache-2.0"
] | 1 | 2018-07-26T14:10:17.000Z | 2018-07-26T14:10:17.000Z | EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'biosferra.noreplay@gmail.com'
EMAIL_HOST_PASSWORD = 'qlufedistokkeklp'
EMAIL_PORT = 587
| 26.333333 | 48 | 0.803797 | 23 | 158 | 5.173913 | 0.652174 | 0.226891 | 0.218487 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020979 | 0.094937 | 158 | 5 | 49 | 31.6 | 0.811189 | 0 | 0 | 0 | 0 | 0 | 0.367089 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
73e82e6fdd6eac3578fde215ccb3d34c4d09811a | 10,502 | py | Python | tests/components/switch/test_template.py | davidedmundson/home-assistant | cd02563552ffc28239fa17c79a5d9bc0013bd5ac | [
"MIT"
] | null | null | null | tests/components/switch/test_template.py | davidedmundson/home-assistant | cd02563552ffc28239fa17c79a5d9bc0013bd5ac | [
"MIT"
] | null | null | null | tests/components/switch/test_template.py | davidedmundson/home-assistant | cd02563552ffc28239fa17c79a5d9bc0013bd5ac | [
"MIT"
] | 1 | 2018-11-20T17:44:08.000Z | 2018-11-20T17:44:08.000Z | """
tests.components.switch.template
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests template switch.
"""
import homeassistant.components as core
import homeassistant.components.switch as switch
from homeassistant.const import (
STATE_ON,
STATE_OFF)
from tests.common import get_test_home_assistant
class TestTemplat... | 34.097403 | 70 | 0.410684 | 820 | 10,502 | 4.990244 | 0.087805 | 0.082111 | 0.106305 | 0.079179 | 0.831378 | 0.821848 | 0.821848 | 0.814516 | 0.805474 | 0.805474 | 0 | 0.001088 | 0.474862 | 10,502 | 307 | 71 | 34.208469 | 0.740888 | 0.013807 | 0 | 0.636364 | 0 | 0 | 0.231208 | 0.040921 | 0 | 0 | 0 | 0 | 0.102273 | 1 | 0.056818 | false | 0 | 0.015152 | 0 | 0.075758 | 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 |
fb54a673ffd03462308ea1e265b2b2ecb7bedfb7 | 204 | py | Python | dace/libraries/pblas/__init__.py | Walon1998/dace | 95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0 | [
"BSD-3-Clause"
] | 227 | 2019-03-15T23:39:06.000Z | 2022-03-30T07:49:08.000Z | dace/libraries/pblas/__init__.py | Walon1998/dace | 95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0 | [
"BSD-3-Clause"
] | 834 | 2019-07-31T22:49:31.000Z | 2022-03-28T14:01:32.000Z | dace/libraries/pblas/__init__.py | Walon1998/dace | 95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0 | [
"BSD-3-Clause"
] | 64 | 2019-03-19T05:40:37.000Z | 2022-03-11T15:02:42.000Z | # Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved.
from dace.library import register_library
from .nodes import *
from .environments import *
register_library(__name__, "pblas")
| 29.142857 | 75 | 0.79902 | 28 | 204 | 5.607143 | 0.714286 | 0.178344 | 0.267516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045198 | 0.132353 | 204 | 6 | 76 | 34 | 0.841808 | 0.357843 | 0 | 0 | 0 | 0 | 0.03876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
fb5a74ab5e8a4f2fb413c6039661a24d31ce884d | 34 | py | Python | random2.py | spitis/stable-baselines | f62cd6698b2427c0fb5ac452b9059a59b22cde81 | [
"MIT"
] | null | null | null | random2.py | spitis/stable-baselines | f62cd6698b2427c0fb5ac452b9059a59b22cde81 | [
"MIT"
] | 2 | 2018-11-14T22:53:17.000Z | 2018-11-15T00:06:40.000Z | random2.py | spitis/stable-baselines | f62cd6698b2427c0fb5ac452b9059a59b22cde81 | [
"MIT"
] | null | null | null | import tensorflow
print('hi tf')
| 8.5 | 17 | 0.735294 | 5 | 34 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 34 | 3 | 18 | 11.333333 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 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 |
fbc720a87a6ced96ed233ff39d2a776b9d2b25d2 | 226 | py | Python | python/1186.encode-and-decode-tinyurl.py | Ubastic/lintcode | 9f600eece075410221a24859331a810503c76014 | [
"MIT"
] | 6 | 2019-10-02T02:24:49.000Z | 2021-11-18T10:08:07.000Z | python/1186.encode-and-decode-tinyurl.py | Ubastic/lintcode | 9f600eece075410221a24859331a810503c76014 | [
"MIT"
] | 1 | 2020-02-28T03:42:36.000Z | 2020-03-07T09:26:00.000Z | src/1186.encode-and-decode-tinyurl/1186.encode-and-decode-tinyurl.py | jiangshanmeta/lintcode | 7d7003825b5a7b9fd5b0be57aa2d84391e0d1fa5 | [
"MIT"
] | 2 | 2020-07-25T08:42:38.000Z | 2021-05-07T06:16:46.000Z | class Solution:
def encode(self, longUrl):
# Encodes a URL to a shortened URL.
return longUrl
def decode(self, shortUrl):
# Decodes a shortened URL to its original URL.
return shortUrl
| 25.111111 | 54 | 0.632743 | 29 | 226 | 4.931034 | 0.586207 | 0.06993 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.309735 | 226 | 8 | 55 | 28.25 | 0.916667 | 0.345133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.4 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
8394a34165e880feea2cdd7b4177973bbcb51274 | 54 | py | Python | argostranslatefiles/__init__.py | PJ-Finlay/argos-translate-files | 0753eccfbbc6d9d88ecabe6eddc4d39ac4c39e2d | [
"MIT"
] | 5 | 2021-11-08T18:50:27.000Z | 2022-03-28T14:12:19.000Z | argostranslatefiles/__init__.py | PJ-Finlay/argos-translate-files | 0753eccfbbc6d9d88ecabe6eddc4d39ac4c39e2d | [
"MIT"
] | 1 | 2021-12-26T08:13:48.000Z | 2021-12-26T13:33:47.000Z | argostranslatefiles/__init__.py | PJ-Finlay/argos-translate-files | 0753eccfbbc6d9d88ecabe6eddc4d39ac4c39e2d | [
"MIT"
] | 2 | 2021-11-08T18:50:38.000Z | 2021-12-25T20:52:28.000Z | from argostranslatefiles.argostranslatefiles import *
| 27 | 53 | 0.888889 | 4 | 54 | 12 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 54 | 1 | 54 | 54 | 0.96 | 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 |
83eec13763de06117eb87bc69ed5b63d4ec3f9c3 | 2,900 | py | Python | colour/appearance/__init__.py | JGoldstone/colour | 6829b363d5f0682bff0f4826995e7ceac189ff28 | [
"BSD-3-Clause"
] | null | null | null | colour/appearance/__init__.py | JGoldstone/colour | 6829b363d5f0682bff0f4826995e7ceac189ff28 | [
"BSD-3-Clause"
] | null | null | null | colour/appearance/__init__.py | JGoldstone/colour | 6829b363d5f0682bff0f4826995e7ceac189ff28 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from .hunt import (
InductionFactors_Hunt,
VIEWING_CONDITIONS_HUNT,
CAM_Specification_Hunt,
XYZ_to_Hunt,
)
from .atd95 import CAM_Specification_ATD95, XYZ_to_ATD95
from .ciecam02 import (
InductionFactors_CIECAM02,
VIEWING_CONDITIONS_CIECAM02,
CAM_KWARGS_CIECAM02_sRG... | 22.834646 | 74 | 0.735172 | 305 | 2,900 | 6.288525 | 0.131148 | 0.150156 | 0.016684 | 0.037539 | 0.890511 | 0.890511 | 0.815433 | 0.763295 | 0.763295 | 0.763295 | 0 | 0.070889 | 0.177931 | 2,900 | 126 | 75 | 23.015873 | 0.733641 | 0.007241 | 0 | 0.081301 | 0 | 0 | 0.326382 | 0.264164 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.089431 | 0 | 0.089431 | 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 |
8600f11d58ca40e3c274297b0d75e4888c620f0b | 26 | py | Python | source/rpg_game/__init__.py | caitlingbailey/python-oop | 4d853bdc90bba76dc205effd4c5b3830bc114d3e | [
"MIT"
] | null | null | null | source/rpg_game/__init__.py | caitlingbailey/python-oop | 4d853bdc90bba76dc205effd4c5b3830bc114d3e | [
"MIT"
] | null | null | null | source/rpg_game/__init__.py | caitlingbailey/python-oop | 4d853bdc90bba76dc205effd4c5b3830bc114d3e | [
"MIT"
] | null | null | null | from .main import rpg_game | 26 | 26 | 0.846154 | 5 | 26 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.913043 | 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 |
86011f52f9f7662cffe7016ecdab9966c6d8903d | 89 | py | Python | Chapter 08/ch8_17.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 08/ch8_17.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 08/ch8_17.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | num=[10,20]
n= 30
num.append(n)
m=40
num.append(m)
print(num)
#[10,20,30,40] | 11.125 | 19 | 0.550562 | 19 | 89 | 2.578947 | 0.473684 | 0.204082 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231884 | 0.224719 | 89 | 8 | 20 | 11.125 | 0.478261 | 0.146067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f7a7974084152f2142df22345332892195f74b8e | 111 | py | Python | excript/aulas/aula96_funcao_aninhada.py | victorers1/anotacoes_curso_python | c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e | [
"MIT"
] | null | null | null | excript/aulas/aula96_funcao_aninhada.py | victorers1/anotacoes_curso_python | c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e | [
"MIT"
] | null | null | null | excript/aulas/aula96_funcao_aninhada.py | victorers1/anotacoes_curso_python | c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e | [
"MIT"
] | null | null | null | def func():
print("func")
def func_interna():
print("func_interna")
func_interna()
func() | 13.875 | 29 | 0.576577 | 13 | 111 | 4.692308 | 0.307692 | 0.540984 | 0.491803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261261 | 111 | 8 | 30 | 13.875 | 0.743902 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f7a8b316b4a0c2c4a51b054b9f020b35a4286d96 | 10,285 | py | Python | scale/metrics/test/test_views.py | kfconsultant/scale | 28618aee07ceed9e4a6eb7b8d0e6f05b31d8fd6b | [
"Apache-2.0"
] | null | null | null | scale/metrics/test/test_views.py | kfconsultant/scale | 28618aee07ceed9e4a6eb7b8d0e6f05b31d8fd6b | [
"Apache-2.0"
] | null | null | null | scale/metrics/test/test_views.py | kfconsultant/scale | 28618aee07ceed9e4a6eb7b8d0e6f05b31d8fd6b | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from __future__ import absolute_import
import json
import django
import django.utils.timezone as timezone
import datetime
from rest_framework import status
from rest_framework.test import APITestCase, APITransactionTestCase
import job.test.utils as job_test_utils
import metric... | 40.976096 | 120 | 0.651726 | 1,253 | 10,285 | 5.177973 | 0.107741 | 0.064735 | 0.066584 | 0.050092 | 0.827219 | 0.809494 | 0.800092 | 0.78807 | 0.765721 | 0.699137 | 0 | 0.022069 | 0.224599 | 10,285 | 251 | 121 | 40.976096 | 0.791473 | 0.087409 | 0 | 0.625 | 0 | 0 | 0.11191 | 0.057833 | 0 | 0 | 0 | 0 | 0.363095 | 1 | 0.10119 | false | 0 | 0.065476 | 0 | 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 |
f7c678bda9151ec3869781121531b964cfcdf796 | 887 | py | Python | nesmdb/convert.py | youngmg1995/NES-Music-Maker | aeda10a541cfd439cfa46c45e63411e0d98e41c1 | [
"MIT"
] | 3 | 2020-06-26T22:02:35.000Z | 2021-11-20T19:24:33.000Z | nesmdb/convert.py | youngmg1995/NES-Music-Maker | aeda10a541cfd439cfa46c45e63411e0d98e41c1 | [
"MIT"
] | null | null | null | nesmdb/convert.py | youngmg1995/NES-Music-Maker | aeda10a541cfd439cfa46c45e63411e0d98e41c1 | [
"MIT"
] | null | null | null | import nesmdb.vgm
import nesmdb.score
def seprsco_to_vgm(seprsco):
exprsco = nesmdb.score.seprsco_to_exprsco(seprsco)
rawsco = nesmdb.score.exprsco_to_rawsco(exprsco)
ndf = nesmdb.score.rawsco_to_ndf(rawsco)
ndr = nesmdb.vgm.ndf_to_ndr(ndf)
vgm = nesmdb.vgm.ndr_to_vgm(ndr)
return vgm
def seprsco_to_wav(se... | 31.678571 | 52 | 0.768884 | 146 | 887 | 4.39726 | 0.09589 | 0.17134 | 0.084112 | 0.11215 | 0.791277 | 0.791277 | 0.791277 | 0.791277 | 0.791277 | 0.791277 | 0 | 0 | 0.122886 | 887 | 28 | 53 | 31.678571 | 0.825193 | 0 | 0 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.08 | 0 | 0.32 | 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 |
f7eb24935af516bf0c1e47e2fa0006ba5f75b447 | 30,666 | py | Python | nustar_gen/wrappers.py | rmludlam/nustar-gen-utils | 96e76f7bf4c16fb0bb7d1d99fdfdaa0f6010b320 | [
"MIT"
] | null | null | null | nustar_gen/wrappers.py | rmludlam/nustar-gen-utils | 96e76f7bf4c16fb0bb7d1d99fdfdaa0f6010b320 | [
"MIT"
] | null | null | null | nustar_gen/wrappers.py | rmludlam/nustar-gen-utils | 96e76f7bf4c16fb0bb7d1d99fdfdaa0f6010b320 | [
"MIT"
] | null | null | null | import os, stat
import warnings
from nustar_gen.utils import energy_to_chan, validate_det1_region
from astropy import units as u
def make_spectra(infile, mod, src_reg,
mode='01', bgd_reg='None', outpath='None', runmkarf='yes', extended='no'):
'''
Generate a script to run nuproducts to extract a source (an... | 27.878182 | 99 | 0.6066 | 4,047 | 30,666 | 4.511984 | 0.09785 | 0.024315 | 0.026287 | 0.01977 | 0.796276 | 0.773494 | 0.747097 | 0.736747 | 0.715663 | 0.705805 | 0 | 0.006027 | 0.27493 | 30,666 | 1,099 | 100 | 27.903549 | 0.815201 | 0.322768 | 0 | 0.740741 | 0 | 0.004115 | 0.229608 | 0.035855 | 0 | 0 | 0 | 0 | 0.018519 | 1 | 0.034979 | false | 0.024691 | 0.026749 | 0 | 0.09465 | 0.004115 | 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 |
f7f1464000e18fed759b53d82c0c419935b3e977 | 33 | py | Python | interpret/__init__.py | haochunchang/explain-ECG-diagnosis | 6799ad38a71e2392192919d123548bdce5059541 | [
"MIT"
] | null | null | null | interpret/__init__.py | haochunchang/explain-ECG-diagnosis | 6799ad38a71e2392192919d123548bdce5059541 | [
"MIT"
] | null | null | null | interpret/__init__.py | haochunchang/explain-ECG-diagnosis | 6799ad38a71e2392192919d123548bdce5059541 | [
"MIT"
] | 1 | 2022-02-07T20:03:11.000Z | 2022-02-07T20:03:11.000Z | from .Explainer import Explainer
| 16.5 | 32 | 0.848485 | 4 | 33 | 7 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.965517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
79199dac9959a4a75552d04329e9a79769a82337 | 186 | py | Python | mayan/apps/metadata/cleanup.py | Dave360-crypto/mayan-edms | 9cd37537461347f79ff0429e4b8b16fd2446798d | [
"Apache-2.0"
] | 3 | 2020-02-03T11:58:51.000Z | 2020-10-20T03:52:21.000Z | mayan/apps/metadata/cleanup.py | Dave360-crypto/mayan-edms | 9cd37537461347f79ff0429e4b8b16fd2446798d | [
"Apache-2.0"
] | null | null | null | mayan/apps/metadata/cleanup.py | Dave360-crypto/mayan-edms | 9cd37537461347f79ff0429e4b8b16fd2446798d | [
"Apache-2.0"
] | 2 | 2020-10-24T11:10:06.000Z | 2021-03-03T20:05:38.000Z | from __future__ import absolute_import
def cleanup():
from .models import MetadataType, MetadataSet
MetadataType.objects.all().delete()
MetadataSet.objects.all().delete()
| 20.666667 | 49 | 0.747312 | 20 | 186 | 6.7 | 0.6 | 0.149254 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150538 | 186 | 8 | 50 | 23.25 | 0.848101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7939c6f68b223f3aa92eca17ed8f7d367a5ec23e | 47 | py | Python | __init__.py | rakshitraj/findFire | 0263aa92a1790f10fa13a243acee48207b3f63b3 | [
"MIT"
] | 1 | 2021-07-12T03:41:15.000Z | 2021-07-12T03:41:15.000Z | __init__.py | rakshitraj/findFire | 0263aa92a1790f10fa13a243acee48207b3f63b3 | [
"MIT"
] | null | null | null | __init__.py | rakshitraj/findFire | 0263aa92a1790f10fa13a243acee48207b3f63b3 | [
"MIT"
] | null | null | null | print ("Initializing modules from findFire...") | 47 | 47 | 0.765957 | 5 | 47 | 7.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 47 | 1 | 47 | 47 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0.770833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
f705942f8f1cc804e3b4671a85ed097d24911237 | 27 | py | Python | __init__.py | JDavidMoreno/meditative_cards | b935a422037c4f3ed076ce1bcd5bcdcbe24f1565 | [
"MIT"
] | null | null | null | __init__.py | JDavidMoreno/meditative_cards | b935a422037c4f3ed076ce1bcd5bcdcbe24f1565 | [
"MIT"
] | null | null | null | __init__.py | JDavidMoreno/meditative_cards | b935a422037c4f3ed076ce1bcd5bcdcbe24f1565 | [
"MIT"
] | 1 | 2021-04-03T18:00:14.000Z | 2021-04-03T18:00:14.000Z |
from . import controllers
| 9 | 25 | 0.777778 | 3 | 27 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 27 | 2 | 26 | 13.5 | 0.954545 | 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 |
f71e2402789d811aef5d0e4eab5187008fe4414f | 103 | py | Python | realtimenet/feature_extractors/__init__.py | floriandotpy/20bn-realtimenet | 6cf6359606ccb3cb205fb65dd102402bc84255e2 | [
"MIT"
] | 2 | 2021-03-03T09:36:49.000Z | 2022-03-18T06:36:54.000Z | realtimenet/feature_extractors/__init__.py | mc261670164/20bn-realtimenet | 6d1e21c3ccd3ff7d15af2927a31f1012ae9853e9 | [
"MIT"
] | 1 | 2021-03-10T08:38:03.000Z | 2021-03-10T10:48:13.000Z | realtimenet/feature_extractors/__init__.py | floriandotpy/20bn-realtimenet | 6cf6359606ccb3cb205fb65dd102402bc84255e2 | [
"MIT"
] | 1 | 2022-01-26T02:45:18.000Z | 2022-01-26T02:45:18.000Z | from .mobilenet import StridedInflatedMobileNetV2
from .efficientnet import StridedInflatedEfficientNet | 51.5 | 53 | 0.912621 | 8 | 103 | 11.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.067961 | 103 | 2 | 53 | 51.5 | 0.96875 | 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 |
f72b8af740fb1cc78203d79551f725c340162fdf | 49 | py | Python | typings/bl_rna_utils/__init__.py | Argmaster/PyR3 | 6786bcb6a101fe4bd4cc50fe43767b8178504b15 | [
"MIT"
] | 2 | 2021-12-12T18:51:52.000Z | 2022-02-23T09:49:16.000Z | typings/bl_rna_utils/__init__.py | Argmaster/PyR3 | 6786bcb6a101fe4bd4cc50fe43767b8178504b15 | [
"MIT"
] | 2 | 2021-11-08T12:09:02.000Z | 2021-12-12T23:01:12.000Z | typings/bl_rna_utils/__init__.py | Argmaster/PyR3 | 6786bcb6a101fe4bd4cc50fe43767b8178504b15 | [
"MIT"
] | null | null | null | import sys
import typing
from . import data_path
| 12.25 | 23 | 0.816327 | 8 | 49 | 4.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 49 | 3 | 24 | 16.333333 | 0.95122 | 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 |
e3957f84fe0e286070de738a5e2e34cf4fb545ef | 25 | py | Python | nukochan/libs/__init__.py | nekonium/NekoniumBalanceSnapshotTool | bebc2edcd5f92cd489011a5ec4ea84ba8f9834de | [
"MIT"
] | null | null | null | nukochan/libs/__init__.py | nekonium/NekoniumBalanceSnapshotTool | bebc2edcd5f92cd489011a5ec4ea84ba8f9834de | [
"MIT"
] | null | null | null | nukochan/libs/__init__.py | nekonium/NekoniumBalanceSnapshotTool | bebc2edcd5f92cd489011a5ec4ea84ba8f9834de | [
"MIT"
] | null | null | null | from .db import SqliteDb
| 12.5 | 24 | 0.8 | 4 | 25 | 5 | 1 | 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 |
e3e89a05443e994a2f65bfa69fa02e4cf9da2fcc | 18,904 | py | Python | src/conv_units.py | Malmactor/maze-solver | 5cd5ab136b23e223991ea5043262b6c88781d396 | [
"MIT"
] | null | null | null | src/conv_units.py | Malmactor/maze-solver | 5cd5ab136b23e223991ea5043262b6c88781d396 | [
"MIT"
] | null | null | null | src/conv_units.py | Malmactor/maze-solver | 5cd5ab136b23e223991ea5043262b6c88781d396 | [
"MIT"
] | null | null | null | import tensorflow as tf
def print_variable_info():
"""auxiliary function to print trainable variables"""
var_list = tf.trainable_variables()
total = 0
for var in var_list:
num = 1
for dim in var.shape:
num *= int(dim)
print("{}: {}, {}".format(var.name, str(var.shap... | 40.393162 | 120 | 0.595588 | 2,504 | 18,904 | 4.260383 | 0.0627 | 0.01856 | 0.066929 | 0.105174 | 0.866329 | 0.841582 | 0.824147 | 0.808961 | 0.77709 | 0.753843 | 0 | 0.061873 | 0.287823 | 18,904 | 468 | 121 | 40.393162 | 0.730521 | 0.22281 | 0 | 0.581967 | 0 | 0 | 0.052557 | 0.007901 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04918 | false | 0 | 0.004098 | 0 | 0.098361 | 0.020492 | 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 |
e3f85910ad619b6f999288bc9c166c24f6d39f52 | 43 | py | Python | Attack_SplitNN/src/attacksplitnn/splitnn/__init__.py | EduardaChagas/Cybersecurity-FL | 52db1a31e71e021f2ce57231a27341c4c080ad3b | [
"MIT"
] | 10 | 2021-04-16T00:38:34.000Z | 2022-02-11T01:28:52.000Z | Attack_SplitNN/src/attacksplitnn/splitnn/__init__.py | EduardaChagas/Cybersecurity-FL | 52db1a31e71e021f2ce57231a27341c4c080ad3b | [
"MIT"
] | 7 | 2021-03-27T04:49:06.000Z | 2021-06-20T06:16:32.000Z | Attack_SplitNN/src/attacksplitnn/splitnn/__init__.py | EduardaChagas/Cybersecurity-FL | 52db1a31e71e021f2ce57231a27341c4c080ad3b | [
"MIT"
] | 3 | 2021-07-07T21:55:52.000Z | 2022-03-17T21:17:51.000Z | from .model import Client, Server, SplitNN
| 21.5 | 42 | 0.790698 | 6 | 43 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 43 | 1 | 43 | 43 | 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 |
54268c8e1cef4e995585e22e8c51248b16eb6023 | 37,843 | py | Python | tests/fabric/test_crypto.py | aidtechnology/nephos-1 | a591741b596cf39b1974fe358784230b97e89e15 | [
"Apache-2.0"
] | 1 | 2019-05-21T03:47:54.000Z | 2019-05-21T03:47:54.000Z | tests/fabric/test_crypto.py | aidtechnology/nephos-1 | a591741b596cf39b1974fe358784230b97e89e15 | [
"Apache-2.0"
] | null | null | null | tests/fabric/test_crypto.py | aidtechnology/nephos-1 | a591741b596cf39b1974fe358784230b97e89e15 | [
"Apache-2.0"
] | null | null | null | from copy import deepcopy
from unittest.mock import call, patch, Mock
import pytest
from nephos.fabric.crypto import (
CryptoInfo,
check_id,
register_id,
enroll_id,
create_admin,
admin_creds,
copy_secret,
msp_secrets,
admin_msp,
item_to_secret,
id_to_secrets,
cacerts_to... | 38.615306 | 118 | 0.614988 | 4,564 | 37,843 | 4.792287 | 0.042068 | 0.073519 | 0.110278 | 0.139859 | 0.913771 | 0.901609 | 0.884967 | 0.873537 | 0.843178 | 0.82617 | 0 | 0.001582 | 0.248263 | 37,843 | 979 | 119 | 38.65475 | 0.76726 | 0.005708 | 0 | 0.664105 | 0 | 0.020856 | 0.294484 | 0.171767 | 0 | 0 | 0 | 0.001021 | 0.150384 | 1 | 0.043908 | false | 0.027442 | 0.004391 | 0 | 0.074643 | 0.023052 | 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 |
5836c0c0a812983e6ecde85f67763900c9f0dac0 | 12,990 | py | Python | tests/test_vertex.py | tscizzle/pygraph | b6fe9e21bd30ae4249d02a1818b49351575fa98e | [
"MIT"
] | 1 | 2017-04-09T21:58:28.000Z | 2017-04-09T21:58:28.000Z | tests/test_vertex.py | tscizzle/graphpy | b6fe9e21bd30ae4249d02a1818b49351575fa98e | [
"MIT"
] | null | null | null | tests/test_vertex.py | tscizzle/graphpy | b6fe9e21bd30ae4249d02a1818b49351575fa98e | [
"MIT"
] | null | null | null | """
Tests for vertex.py
"""
from graphpy.edge import UndirectedEdge, DirectedEdge
from graphpy.vertex import UndirectedVertex, DirectedVertex
import unittest
################################################################################
# ... | 32.638191 | 80 | 0.556813 | 1,521 | 12,990 | 4.633136 | 0.074293 | 0.04172 | 0.039591 | 0.042429 | 0.833404 | 0.792252 | 0.739322 | 0.718036 | 0.661984 | 0.615297 | 0 | 0.062377 | 0.296536 | 12,990 | 397 | 81 | 32.720403 | 0.708798 | 0.123788 | 0 | 0.762264 | 0 | 0 | 0.055224 | 0 | 0 | 0 | 0 | 0 | 0.283019 | 1 | 0.09434 | false | 0 | 0.011321 | 0 | 0.113208 | 0 | 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 |
586c977a99a033b3175c79188af15d56a019d674 | 23,072 | py | Python | backend/data_export/tests/test_repositories.py | WojciechKusa/doccano | 6013413474be20094be8662131e44b2fc3fb88f6 | [
"MIT"
] | null | null | null | backend/data_export/tests/test_repositories.py | WojciechKusa/doccano | 6013413474be20094be8662131e44b2fc3fb88f6 | [
"MIT"
] | null | null | null | backend/data_export/tests/test_repositories.py | WojciechKusa/doccano | 6013413474be20094be8662131e44b2fc3fb88f6 | [
"MIT"
] | null | null | null | import unittest
from model_mommy import mommy
from ..pipeline.repositories import (
FileRepository,
IntentDetectionSlotFillingRepository,
RelationExtractionRepository,
Seq2seqRepository,
SequenceLabelingRepository,
Speech2TextRepository,
TextClassificationRepository,
)
from projects.models... | 43.287054 | 120 | 0.574506 | 2,104 | 23,072 | 6.126901 | 0.05038 | 0.091847 | 0.085331 | 0.055853 | 0.916996 | 0.906602 | 0.898379 | 0.898379 | 0.89737 | 0.889846 | 0 | 0.008663 | 0.309596 | 23,072 | 532 | 121 | 43.368421 | 0.800615 | 0 | 0 | 0.6417 | 0 | 0 | 0.068915 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.05668 | false | 0 | 0.010121 | 0 | 0.082996 | 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 |
545bead31e3d24ad423edc561195f640d50c0198 | 8,921 | py | Python | diffxpy/unit_test/test_constrained.py | felix0097/diffxpy | 5b37c4fafeb35e7d682d899648a598ea0ad0ed12 | [
"BSD-3-Clause"
] | null | null | null | diffxpy/unit_test/test_constrained.py | felix0097/diffxpy | 5b37c4fafeb35e7d682d899648a598ea0ad0ed12 | [
"BSD-3-Clause"
] | null | null | null | diffxpy/unit_test/test_constrained.py | felix0097/diffxpy | 5b37c4fafeb35e7d682d899648a598ea0ad0ed12 | [
"BSD-3-Clause"
] | null | null | null | import logging
import unittest
import numpy as np
import pandas as pd
import scipy.stats as stats
from batchglm.api.models.tf1.glm_nb import Simulator
import diffxpy.api as de
class TestConstrained(unittest.TestCase):
def test_forfatal_from_string(self):
"""
Test if _from_string interface is wo... | 38.619048 | 104 | 0.60565 | 1,138 | 8,921 | 4.579086 | 0.16696 | 0.026866 | 0.01612 | 0.026099 | 0.803493 | 0.790443 | 0.758588 | 0.758588 | 0.751679 | 0.743235 | 0 | 0.061052 | 0.283937 | 8,921 | 230 | 105 | 38.786957 | 0.754696 | 0.179464 | 0 | 0.597484 | 0 | 0 | 0.102672 | 0 | 0 | 0 | 0 | 0 | 0.012579 | 1 | 0.025157 | false | 0 | 0.044025 | 0 | 0.08805 | 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 |
54677b5166c822f0bf8c05965790dc8c9ab0362c | 114 | py | Python | pypict/__init__.py | cheuora/pypict | 062fd6c70af202f767b6c8a674c92082db922b15 | [
"MIT"
] | null | null | null | pypict/__init__.py | cheuora/pypict | 062fd6c70af202f767b6c8a674c92082db922b15 | [
"MIT"
] | null | null | null | pypict/__init__.py | cheuora/pypict | 062fd6c70af202f767b6c8a674c92082db922b15 | [
"MIT"
] | null | null | null | from pypict._version import __version__
from pypict.api import Task
from pypict.capi import PAIRWISE_GENERATION
| 19 | 43 | 0.850877 | 16 | 114 | 5.6875 | 0.5625 | 0.32967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122807 | 114 | 5 | 44 | 22.8 | 0.91 | 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 |
5468937169742274234438b95ccc5975f43d3ffc | 113,640 | py | Python | sdk/cognitiveservices/azure-cognitiveservices-search-entitysearch/azure/cognitiveservices/search/entitysearch/models/_models.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/cognitiveservices/azure-cognitiveservices-search-entitysearch/azure/cognitiveservices/search/entitysearch/models/_models.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/cognitiveservices/azure-cognitiveservices-search-entitysearch/azure/cognitiveservices/search/entitysearch/models/_models.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 40.355114 | 309 | 0.64824 | 12,870 | 113,640 | 5.58446 | 0.038539 | 0.05443 | 0.018199 | 0.058437 | 0.812917 | 0.796792 | 0.787748 | 0.78182 | 0.772443 | 0.771497 | 0 | 0.000181 | 0.220679 | 113,640 | 2,815 | 310 | 40.369449 | 0.811364 | 0.486985 | 0 | 0.685641 | 0 | 0 | 0.395674 | 0.083159 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033135 | false | 0 | 0.001699 | 0 | 0.147833 | 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 |
54a6b081f00613d4f178b10bb324325c7b9ff556 | 122 | py | Python | synbio/picklists/__init__.py | Imperial-iGEM/synbio | 6f27ed514d9f904ca14f9055820d3922adbfe307 | [
"MIT"
] | 12 | 2019-09-20T15:47:27.000Z | 2021-12-29T19:40:02.000Z | synbio/picklists/__init__.py | Imperial-iGEM/synbio | 6f27ed514d9f904ca14f9055820d3922adbfe307 | [
"MIT"
] | 11 | 2019-08-08T20:57:27.000Z | 2020-07-29T14:27:08.000Z | synbio/picklists/__init__.py | Imperial-iGEM/synbio | 6f27ed514d9f904ca14f9055820d3922adbfe307 | [
"MIT"
] | 3 | 2019-09-16T14:30:01.000Z | 2021-12-29T03:47:36.000Z | """Picklist generators."""
from .hamilton import to_hamilton
from .labcyte import to_labcyte
from .tecan import to_tecan
| 20.333333 | 33 | 0.795082 | 17 | 122 | 5.529412 | 0.470588 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122951 | 122 | 5 | 34 | 24.4 | 0.878505 | 0.163934 | 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 |
54ab359dd23aff800e869e07e43d4a846cdbe206 | 44 | py | Python | pdvalidate/__init__.py | S3DEV/pdvalidate | 810b7d0aed72e2df54f5b66176bb5d829b569ba5 | [
"MIT"
] | 1 | 2021-04-14T10:03:38.000Z | 2021-04-14T10:03:38.000Z | pdvalidate/__init__.py | S3DEV/pdvalidate | 810b7d0aed72e2df54f5b66176bb5d829b569ba5 | [
"MIT"
] | null | null | null | pdvalidate/__init__.py | S3DEV/pdvalidate | 810b7d0aed72e2df54f5b66176bb5d829b569ba5 | [
"MIT"
] | null | null | null | from pdvalidate._version import __version__
| 22 | 43 | 0.886364 | 5 | 44 | 6.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 44 | 1 | 44 | 44 | 0.85 | 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 |
49c2d06aa77f4afa239121b61e5a7003b6da77a3 | 85,194 | py | Python | venv/lib/python3.7/site-packages/google/protobuf/util/json_format_proto3_pb2.py | nicholasadamou/StockBird | 257396479667863d4ee122ea46adb86087c9aa78 | [
"Apache-2.0"
] | 8 | 2020-05-14T12:40:52.000Z | 2022-03-28T05:38:37.000Z | venv/lib/python3.7/site-packages/google/protobuf/util/json_format_proto3_pb2.py | nicholasadamou/StockBird | 257396479667863d4ee122ea46adb86087c9aa78 | [
"Apache-2.0"
] | 15 | 2020-01-28T23:14:29.000Z | 2022-02-10T00:40:40.000Z | venv/lib/python3.7/site-packages/google/protobuf/util/json_format_proto3_pb2.py | nicholasadamou/StockBird | 257396479667863d4ee122ea46adb86087c9aa78 | [
"Apache-2.0"
] | 8 | 2020-04-17T12:18:15.000Z | 2021-02-23T08:48:40.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/protobuf/util/json_format_proto3.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor ... | 42.940524 | 8,019 | 0.758434 | 10,655 | 85,194 | 5.73252 | 0.035007 | 0.048068 | 0.033235 | 0.03998 | 0.809398 | 0.765832 | 0.728193 | 0.692485 | 0.650966 | 0.640586 | 0 | 0.048876 | 0.119339 | 85,194 | 1,983 | 8,020 | 42.962179 | 0.765231 | 0.027044 | 0 | 0.694429 | 1 | 0.000541 | 0.22217 | 0.167638 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.007031 | 0 | 0.007031 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b7291419f463d61cac33a09501e23178c977235d | 34 | py | Python | lib/torcs/__init__.py | RedwanNewaz/Keras-Torcs-DRL | c438933be40c7725da99231f35d50417c849c10a | [
"MIT"
] | null | null | null | lib/torcs/__init__.py | RedwanNewaz/Keras-Torcs-DRL | c438933be40c7725da99231f35d50417c849c10a | [
"MIT"
] | null | null | null | lib/torcs/__init__.py | RedwanNewaz/Keras-Torcs-DRL | c438933be40c7725da99231f35d50417c849c10a | [
"MIT"
] | null | null | null | from .snakeoil3_gym import Client
| 17 | 33 | 0.852941 | 5 | 34 | 5.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.117647 | 34 | 1 | 34 | 34 | 0.9 | 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 |
3fe30068dbf679cfd1d70540e56cc10551d96a4c | 23 | py | Python | __init__.py | fmiko/webscraper | f255310f610a193913a36b6f46591b5dc3ea36b8 | [
"MIT"
] | null | null | null | __init__.py | fmiko/webscraper | f255310f610a193913a36b6f46591b5dc3ea36b8 | [
"MIT"
] | null | null | null | __init__.py | fmiko/webscraper | f255310f610a193913a36b6f46591b5dc3ea36b8 | [
"MIT"
] | null | null | null | from pyscrape import *
| 11.5 | 22 | 0.782609 | 3 | 23 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 23 | 1 | 23 | 23 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b76f903b09cdecf7d4ced22ba2c51dac1f703774 | 41 | py | Python | ddcz/models/__init__.py | ItIsI-Orient/graveyard | 4b1c1be90b6f1362aa43c65899bb3676ffccbeb9 | [
"MIT"
] | null | null | null | ddcz/models/__init__.py | ItIsI-Orient/graveyard | 4b1c1be90b6f1362aa43c65899bb3676ffccbeb9 | [
"MIT"
] | null | null | null | ddcz/models/__init__.py | ItIsI-Orient/graveyard | 4b1c1be90b6f1362aa43c65899bb3676ffccbeb9 | [
"MIT"
] | null | null | null | from .used import *
from .legacy import * | 20.5 | 21 | 0.731707 | 6 | 41 | 5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 41 | 2 | 21 | 20.5 | 0.882353 | 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 |
b7d3bb654f701a022630fbb0d940fb139dc3b219 | 9,570 | py | Python | tests/test_wpe.py | speechdnn/nara_wpe | 89db94e4938d4afc68736022819852e1bbea95e2 | [
"MIT"
] | 6 | 2019-08-02T01:59:50.000Z | 2022-02-21T12:28:11.000Z | tests/test_wpe.py | nd1511/nara_wpe | 1d33f9862950ac8a6d42613e15247b72d68dfef5 | [
"MIT"
] | null | null | null | tests/test_wpe.py | nd1511/nara_wpe | 1d33f9862950ac8a6d42613e15247b72d68dfef5 | [
"MIT"
] | 6 | 2019-11-23T05:07:16.000Z | 2021-07-06T12:22:57.000Z | """
Run all tests with:
nosetests -w tests/
"""
import unittest
import numpy.testing as tc
import numpy as np
from nara_wpe import wpe
from nara_wpe.test_utils import retry
class TestWPE(unittest.TestCase):
def setUp(self):
self.T = np.random.randint(100, 120)
self.D = np.random.randint(2, 8)... | 40.897436 | 123 | 0.636364 | 1,401 | 9,570 | 4.117773 | 0.089222 | 0.050269 | 0.079563 | 0.114058 | 0.844167 | 0.820593 | 0.788352 | 0.780205 | 0.75663 | 0.728896 | 0 | 0.022201 | 0.237513 | 9,570 | 233 | 124 | 41.072961 | 0.768398 | 0.010345 | 0 | 0.497382 | 0 | 0 | 0.015851 | 0 | 0 | 0 | 0 | 0 | 0.157068 | 1 | 0.078534 | false | 0 | 0.026178 | 0.005236 | 0.115183 | 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 |
4d40a2735369a0575f2e9ddc2eef67fa6bd65682 | 65 | py | Python | pflacg/__init__.py | ericlincc/Parameter-free-LaCG | c2d61d5e6b5eb5c29f0bf74b8f4beaa2cbbc4282 | [
"MIT"
] | null | null | null | pflacg/__init__.py | ericlincc/Parameter-free-LaCG | c2d61d5e6b5eb5c29f0bf74b8f4beaa2cbbc4282 | [
"MIT"
] | null | null | null | pflacg/__init__.py | ericlincc/Parameter-free-LaCG | c2d61d5e6b5eb5c29f0bf74b8f4beaa2cbbc4282 | [
"MIT"
] | null | null | null | from pflacg.algorithms import *
from pflacg.experiments import *
| 21.666667 | 32 | 0.815385 | 8 | 65 | 6.625 | 0.625 | 0.377358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123077 | 65 | 2 | 33 | 32.5 | 0.929825 | 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 |
4dba2b70fa9ae61569cc7bd52c17176cec9d67f6 | 10,424 | py | Python | contentcuration/contentcuration/tests/viewsets/test_clipboard.py | kollivier/studio | 9089780858ae9870421056b4e6e5659ae854db57 | [
"MIT"
] | 1 | 2019-03-30T18:14:25.000Z | 2019-03-30T18:14:25.000Z | contentcuration/contentcuration/tests/viewsets/test_clipboard.py | kollivier/studio | 9089780858ae9870421056b4e6e5659ae854db57 | [
"MIT"
] | 2 | 2019-04-06T07:06:08.000Z | 2019-04-08T23:33:53.000Z | contentcuration/contentcuration/tests/viewsets/test_clipboard.py | MisRob/studio | 92a5c780c8952f7d37db38952483ab7a28d3cb9d | [
"MIT"
] | 1 | 2020-10-20T05:21:56.000Z | 2020-10-20T05:21:56.000Z | from __future__ import absolute_import
import uuid
from django.core.management import call_command
from django.core.urlresolvers import reverse
from le_utils.constants import content_kinds
from contentcuration import models
from contentcuration.tests import testdata
from contentcuration.tests.base import StudioAPITe... | 34.979866 | 84 | 0.620299 | 1,070 | 10,424 | 5.862617 | 0.105607 | 0.075881 | 0.068867 | 0.055954 | 0.835167 | 0.827674 | 0.819066 | 0.795791 | 0.706839 | 0.686434 | 0 | 0.008125 | 0.279739 | 10,424 | 297 | 85 | 35.097643 | 0.827384 | 0 | 0 | 0.69084 | 0 | 0 | 0.070223 | 0.006907 | 0 | 0 | 0 | 0 | 0.053435 | 1 | 0.076336 | false | 0.015267 | 0.045802 | 0.019084 | 0.148855 | 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 |
4dbe81d96ecd29000176f7b8960213b15db82b26 | 105 | py | Python | flask_demo/app/home/__init__.py | SummerWater/Python_Flask_Movie_project | a38bd096be7b69951da40398898a147e7210efed | [
"MIT"
] | null | null | null | flask_demo/app/home/__init__.py | SummerWater/Python_Flask_Movie_project | a38bd096be7b69951da40398898a147e7210efed | [
"MIT"
] | null | null | null | flask_demo/app/home/__init__.py | SummerWater/Python_Flask_Movie_project | a38bd096be7b69951da40398898a147e7210efed | [
"MIT"
] | null | null | null | # coding:utf8
from flask import Blueprint
home = Blueprint('home', __name__)
import app.home.views | 17.5 | 35 | 0.733333 | 14 | 105 | 5.214286 | 0.714286 | 0.356164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.171429 | 105 | 6 | 36 | 17.5 | 0.827586 | 0.104762 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
4df199b45bd58996f91840e366366c7ae4908213 | 263 | py | Python | MODELS/Line.py | seyedalirahimi/BorsAnalysis | c6bd611ba0a8d29fd5a3437898810fdc0a380945 | [
"MIT"
] | null | null | null | MODELS/Line.py | seyedalirahimi/BorsAnalysis | c6bd611ba0a8d29fd5a3437898810fdc0a380945 | [
"MIT"
] | null | null | null | MODELS/Line.py | seyedalirahimi/BorsAnalysis | c6bd611ba0a8d29fd5a3437898810fdc0a380945 | [
"MIT"
] | null | null | null | class Line:
def __init__(self, point1, point2):
self.point1 = point1
self.point2 = point2
def __str__(self):
return f'({self.point1}) - ({self.point2})'
def __repr__(self):
return f'({self.point1}) - ({self.point2})'
| 23.909091 | 51 | 0.574144 | 31 | 263 | 4.483871 | 0.354839 | 0.28777 | 0.345324 | 0.215827 | 0.446043 | 0.446043 | 0.446043 | 0 | 0 | 0 | 0 | 0.051813 | 0.26616 | 263 | 10 | 52 | 26.3 | 0.668394 | 0 | 0 | 0.25 | 0 | 0 | 0.250951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
12dd7302a4021024cac9aa6fb9a4365ebfb7d872 | 124 | py | Python | order-services/app/order_api/__init__.py | SalAlba/flask-microservices | 8625e8fb3352d3704a17796635e95bbef25f1d06 | [
"MIT"
] | null | null | null | order-services/app/order_api/__init__.py | SalAlba/flask-microservices | 8625e8fb3352d3704a17796635e95bbef25f1d06 | [
"MIT"
] | null | null | null | order-services/app/order_api/__init__.py | SalAlba/flask-microservices | 8625e8fb3352d3704a17796635e95bbef25f1d06 | [
"MIT"
] | null | null | null | from flask import Blueprint
order_blueprint = Blueprint('order', __name__, template_folder='templates')
from . import routes | 41.333333 | 75 | 0.814516 | 15 | 124 | 6.333333 | 0.666667 | 0.294737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 124 | 3 | 76 | 41.333333 | 0.848214 | 0 | 0 | 0 | 0 | 0 | 0.112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
12e8820a3c59df974e3238094514ed3e40343556 | 171,220 | py | Python | esociallib/v2_04/evtTabEstab.py | akretion/esociallib | 2472d68b45610638cf10d87aeed48b917ebae6d8 | [
"MIT"
] | 6 | 2018-02-16T09:59:35.000Z | 2021-09-01T20:40:02.000Z | esociallib/v2_04/evtTabEstab.py | akretion/esociallib | 2472d68b45610638cf10d87aeed48b917ebae6d8 | [
"MIT"
] | 2 | 2018-02-02T19:32:21.000Z | 2019-01-25T14:43:05.000Z | esociallib/v2_04/evtTabEstab.py | akretion/esociallib | 2472d68b45610638cf10d87aeed48b917ebae6d8 | [
"MIT"
] | 2 | 2018-05-03T17:16:38.000Z | 2021-04-02T19:17:31.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated Tue Oct 10 00:42:26 2017 by generateDS.py version 2.28b.
# Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]
#
# Command line options:
# ('--no-process-includes', '')
# ('-o', 'esociallib/v2_04/evtTabEstab.py')
#
# Command line argument... | 41.924584 | 186 | 0.60928 | 17,844 | 171,220 | 5.577785 | 0.037436 | 0.040671 | 0.025771 | 0.026113 | 0.800593 | 0.764352 | 0.741284 | 0.709384 | 0.684698 | 0.654225 | 0 | 0.003992 | 0.284645 | 171,220 | 4,083 | 187 | 41.934852 | 0.80861 | 0.030423 | 0 | 0.688847 | 1 | 0.000266 | 0.042971 | 0.006086 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150652 | false | 0.033005 | 0.036998 | 0.023689 | 0.321799 | 0.081182 | 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 |
420621af0ef9ffc4ac9d85f00c5052c1f9b8114d | 2,193 | py | Python | test/util/fft_test.py | daviswert/gpytorch | b1b546eea573aead6c509c8b23ccf93bd9ce82ec | [
"MIT"
] | 1 | 2021-06-22T11:53:41.000Z | 2021-06-22T11:53:41.000Z | test/util/fft_test.py | daviswert/gpytorch | b1b546eea573aead6c509c8b23ccf93bd9ce82ec | [
"MIT"
] | null | null | null | test/util/fft_test.py | daviswert/gpytorch | b1b546eea573aead6c509c8b23ccf93bd9ce82ec | [
"MIT"
] | null | null | null | import torch
import numpy as np
from gpytorch.utils import fft
def test_fft1_computes_fft_of_1d_input():
d = 8
input = torch.randn(d)
res = fft.fft1(input)
actual = np.fft.fft(input.numpy())
assert(tuple(res.size()) == (5, 2))
res_real = res[:, 0]
res_imag = res[:, 1]
actual_real = ... | 25.206897 | 65 | 0.641131 | 339 | 2,193 | 3.955752 | 0.144543 | 0.065623 | 0.089485 | 0.0783 | 0.909769 | 0.856078 | 0.829978 | 0.829978 | 0.806861 | 0.786726 | 0 | 0.037442 | 0.20839 | 2,193 | 86 | 66 | 25.5 | 0.735023 | 0 | 0 | 0.57377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262295 | 1 | 0.114754 | false | 0 | 0.04918 | 0 | 0.163934 | 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 |
424289772a5f1a11e76ce3d9bceb1cff2d49bdd2 | 69,647 | py | Python | src/costmanagement/azext_costmanagement/tests/latest/test_costmanagement_scenario.py | ravithanneeru/azure-cli-extensions | e0de87f3563ae39525370e9912589aac33e7bded | [
"MIT"
] | 207 | 2017-11-29T06:59:41.000Z | 2022-03-31T10:00:53.000Z | src/costmanagement/azext_costmanagement/tests/latest/test_costmanagement_scenario.py | ravithanneeru/azure-cli-extensions | e0de87f3563ae39525370e9912589aac33e7bded | [
"MIT"
] | 4,061 | 2017-10-27T23:19:56.000Z | 2022-03-31T23:18:30.000Z | src/costmanagement/azext_costmanagement/tests/latest/test_costmanagement_scenario.py | ravithanneeru/azure-cli-extensions | e0de87f3563ae39525370e9912589aac33e7bded | [
"MIT"
] | 802 | 2017-10-11T17:36:26.000Z | 2022-03-31T22:24:32.000Z | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause... | 51.06085 | 123 | 0.596465 | 5,767 | 69,647 | 7.019768 | 0.056702 | 0.031569 | 0.031717 | 0.041104 | 0.906529 | 0.896697 | 0.75407 | 0.619519 | 0.618704 | 0.61742 | 0 | 0.027212 | 0.202751 | 69,647 | 1,363 | 124 | 51.098313 | 0.701869 | 0.942998 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
428f3cd469f686c3cdce8425082dd3f4abac6496 | 94 | py | Python | attendees/persons/services/__init__.py | xjlin0/attendees | 3c337ee68c00f17cbbbe26f2e33131e57850e4ed | [
"MIT"
] | 1 | 2020-03-26T00:42:04.000Z | 2020-03-26T00:42:04.000Z | attendees/persons/services/__init__.py | xjlin0/attendees | 3c337ee68c00f17cbbbe26f2e33131e57850e4ed | [
"MIT"
] | null | null | null | attendees/persons/services/__init__.py | xjlin0/attendees | 3c337ee68c00f17cbbbe26f2e33131e57850e4ed | [
"MIT"
] | null | null | null | from .attending_service import AttendingService
from .attendee_service import AttendeeService
| 31.333333 | 47 | 0.893617 | 10 | 94 | 8.2 | 0.7 | 0.317073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 94 | 2 | 48 | 47 | 0.953488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
42a5b616689e163099b4ea75363113e2f474f257 | 5,986 | py | Python | tests/handlers/test_visualizations.py | zero1number/redash | caabc4afa4e60e273782a46d84099857821c6500 | [
"BSD-2-Clause"
] | 20,680 | 2015-11-16T15:38:37.000Z | 2022-03-31T21:43:43.000Z | tests/handlers/test_visualizations.py | zero1number/redash | caabc4afa4e60e273782a46d84099857821c6500 | [
"BSD-2-Clause"
] | 3,934 | 2015-11-16T14:46:49.000Z | 2022-03-31T13:22:31.000Z | tests/handlers/test_visualizations.py | zero1number/redash | caabc4afa4e60e273782a46d84099857821c6500 | [
"BSD-2-Clause"
] | 4,147 | 2015-11-17T15:57:23.000Z | 2022-03-31T11:57:43.000Z | from tests import BaseTestCase
from redash import models
class VisualizationResourceTest(BaseTestCase):
def test_create_visualization(self):
query = self.factory.create_query()
models.db.session.commit()
data = {
"query_id": query.id,
"name": "Chart",
"... | 36.278788 | 86 | 0.625626 | 698 | 5,986 | 5.157593 | 0.106017 | 0.067222 | 0.103889 | 0.075556 | 0.875278 | 0.862778 | 0.849444 | 0.841389 | 0.7375 | 0.7375 | 0 | 0.010371 | 0.2429 | 5,986 | 164 | 87 | 36.5 | 0.783981 | 0 | 0 | 0.689394 | 0 | 0 | 0.102072 | 0.025894 | 0 | 0 | 0 | 0 | 0.143939 | 1 | 0.05303 | false | 0 | 0.015152 | 0 | 0.075758 | 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 |
c41e2f2bd1f55b669cd15d9433abcd4d461e9242 | 43 | py | Python | 2558.py | FelisCatusKR/Baekjoon_Python3 | d84dc9421fe956001864d138b6d6ec9ebd793edf | [
"MIT"
] | null | null | null | 2558.py | FelisCatusKR/Baekjoon_Python3 | d84dc9421fe956001864d138b6d6ec9ebd793edf | [
"MIT"
] | null | null | null | 2558.py | FelisCatusKR/Baekjoon_Python3 | d84dc9421fe956001864d138b6d6ec9ebd793edf | [
"MIT"
] | null | null | null | # 2558.py
print(int(input())+int(input())) | 21.5 | 32 | 0.627907 | 8 | 43 | 3.5 | 0.75 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0.046512 | 43 | 2 | 32 | 21.5 | 0.560976 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
671b5b0e11d18f552b57678e1c67f6a745d46d93 | 79 | py | Python | shopify/resources/location.py | SachinTitus/shopify_python_api | 134de8e61639957050c73da1eddbaec847c4b8cd | [
"MIT"
] | null | null | null | shopify/resources/location.py | SachinTitus/shopify_python_api | 134de8e61639957050c73da1eddbaec847c4b8cd | [
"MIT"
] | null | null | null | shopify/resources/location.py | SachinTitus/shopify_python_api | 134de8e61639957050c73da1eddbaec847c4b8cd | [
"MIT"
] | null | null | null | from ..base import ShopifyResource
class Location(ShopifyResource):
pass
| 13.166667 | 34 | 0.772152 | 8 | 79 | 7.625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164557 | 79 | 5 | 35 | 15.8 | 0.924242 | 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 |
67587d3489b835a37d971678d918e7a3927630f6 | 13,088 | py | Python | veroviz/generateArcs.py | optimatorlab/veroviz | 4b4b7da07abbc764169223cc4cac41e19ff7031d | [
"MIT"
] | 16 | 2019-11-05T06:33:21.000Z | 2022-02-09T04:37:03.000Z | veroviz/generateArcs.py | optimatorlab/veroviz | 4b4b7da07abbc764169223cc4cac41e19ff7031d | [
"MIT"
] | 6 | 2019-11-22T09:38:01.000Z | 2021-06-18T02:08:43.000Z | veroviz/generateArcs.py | optimatorlab/veroviz | 4b4b7da07abbc764169223cc4cac41e19ff7031d | [
"MIT"
] | 4 | 2020-09-25T07:48:56.000Z | 2022-02-09T04:39:54.000Z | from veroviz._common import *
from veroviz._validation import valCreateArcsFromLocSeq
from veroviz._validation import valCreateArcsFromNodeSeq
from veroviz._createEntitiesFromList import privCreateArcsFromLocSeq
def createArcsFromLocSeq(locSeq=None, initArcs=None, startArc=1, objectID=None, leafletColor=config['VRV_D... | 59.762557 | 656 | 0.713631 | 1,685 | 13,088 | 5.512166 | 0.165579 | 0.030039 | 0.051249 | 0.03876 | 0.806094 | 0.802972 | 0.791021 | 0.785745 | 0.785745 | 0.766796 | 0 | 0.017494 | 0.187653 | 13,088 | 218 | 657 | 60.036697 | 0.856095 | 0.795232 | 0 | 0.5 | 0 | 0 | 0.201121 | 0.197824 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.357143 | 0.142857 | 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 |
67e9b627329a156ab18c65f9fbd0dbce23188f4f | 3,350 | py | Python | tests/parser/statements/test_IfStatement.py | niyrme/NyrLang | 49c427fdd4aca4349c629fe220f3a235f305f50f | [
"MIT"
] | 3 | 2021-07-25T14:06:34.000Z | 2021-08-19T04:06:10.000Z | tests/parser/statements/test_IfStatement.py | niyrme/NyrLang | 49c427fdd4aca4349c629fe220f3a235f305f50f | [
"MIT"
] | 14 | 2021-06-19T15:31:51.000Z | 2021-08-25T14:11:24.000Z | tests/parser/statements/test_IfStatement.py | niyrme/NyrLang | 49c427fdd4aca4349c629fe220f3a235f305f50f | [
"MIT"
] | 1 | 2021-09-06T16:23:07.000Z | 2021-09-06T16:23:07.000Z | import json
from nyr.parser import node
from nyr.parser.parser import Parser
def testSimpleIfStatement():
ast = json.loads(
json.dumps(
Parser().parse("""
if (x) {
x = 1;
}
"""),
cls=node.ComplexEncoder,
),
)
expected = {
"type": "Program",
"body": [
{
"type": "IfStatement",
... | 16.105769 | 39 | 0.433433 | 236 | 3,350 | 6.152542 | 0.186441 | 0.086777 | 0.11157 | 0.104683 | 0.826446 | 0.826446 | 0.779614 | 0.779614 | 0.779614 | 0.75551 | 0 | 0.003735 | 0.360597 | 3,350 | 207 | 40 | 16.183575 | 0.674136 | 0 | 0 | 0.668421 | 0 | 0 | 0.324179 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 1 | 0.021053 | false | 0 | 0.015789 | 0 | 0.036842 | 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 |
db328c4779002378de0df06ef9f4057fe2c8b66e | 535 | py | Python | ex5-7.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | ex5-7.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | ex5-7.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | favorite_fruits = ['apple', 'banana', 'orange', 'watermelon']
my_fruit = 'banana'
if my_fruit in favorite_fruits:
print(f"You really like {my_fruit}")
my_fruit = "apple"
if my_fruit in favorite_fruits:
print(f"You really like {my_fruit}")
my_fruit = "orange"
if my_fruit in favorite_fruits:
print(f"You re... | 24.318182 | 61 | 0.719626 | 86 | 535 | 4.232558 | 0.186047 | 0.288462 | 0.123626 | 0.151099 | 0.777473 | 0.777473 | 0.777473 | 0.777473 | 0.777473 | 0.777473 | 0 | 0 | 0.160748 | 535 | 21 | 62 | 25.47619 | 0.81069 | 0 | 0 | 0.625 | 0 | 0 | 0.35514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.3125 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
db359858d39737e5b2b8df204cf7799879fac9fe | 38,083 | py | Python | instances/passenger_demand/pas-20210421-2109-int16e/61.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210421-2109-int16e/61.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210421-2109-int16e/61.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null |
"""
PASSENGERS
"""
numPassengers = 3603
passenger_arriving = (
(3, 5, 8, 8, 6, 0, 10, 11, 8, 3, 2, 0), # 0
(5, 10, 11, 3, 3, 0, 4, 13, 5, 2, 2, 0), # 1
(4, 13, 8, 5, 3, 0, 7, 10, 4, 3, 4, 0), # 2
(6, 6, 13, 2, 2, 0, 10, 6, 3, 5, 3, 0), # 3
(4, 10, 11, 5, 1, 0, 10, 5, 5, 3, 4, 0), # 4
(6, 6, 14, 8, 1, 0, 7... | 113.680597 | 214 | 0.730483 | 5,147 | 38,083 | 5.402759 | 0.231591 | 0.310702 | 0.245972 | 0.466053 | 0.326093 | 0.325662 | 0.325662 | 0.325662 | 0.325662 | 0.325662 | 0 | 0.820072 | 0.118531 | 38,083 | 334 | 215 | 114.020958 | 0.008311 | 0.031799 | 0 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.015823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e1ecba45d271166cdd0cee21d7be8a6120474ad9 | 99,392 | py | Python | sigProfilerPlotting/sample_portrait.py | AlexandrovLab/SigProfilerPlotting | 1a1549de41fda13043028ef8933ad789ca039bba | [
"BSD-2-Clause"
] | 27 | 2019-06-21T03:29:03.000Z | 2022-02-28T16:51:58.000Z | build/lib/sigProfilerPlotting/sample_portrait.py | AlexandrovLab/SigProfilerPlotting | 1a1549de41fda13043028ef8933ad789ca039bba | [
"BSD-2-Clause"
] | 4 | 2019-10-16T14:45:34.000Z | 2020-11-04T17:45:42.000Z | sigProfilerPlotting/sample_portrait.py | xtmgah/SigProfilerPlotting | 8fbef65cbf74a1b07f2aa524ab5f624ca0869e52 | [
"BSD-2-Clause"
] | 18 | 2019-07-02T13:39:52.000Z | 2022-02-01T19:36:02.000Z | #!/usr/bin/env python3
#Author: Erik Bergstrom
#Contact: ebergstr@eng.ucsd.edu
import re
import os
import sys
import argparse
from collections import OrderedDict
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.font_manager
from matplotlib.backends.backend_pdf import PdfPages
import matplotlib.... | 42.989619 | 205 | 0.625926 | 15,114 | 99,392 | 4.019584 | 0.043337 | 0.008922 | 0.010666 | 0.08217 | 0.861601 | 0.827331 | 0.798212 | 0.766493 | 0.742132 | 0.722709 | 0 | 0.087319 | 0.165788 | 99,392 | 2,311 | 206 | 43.008222 | 0.645392 | 0.034188 | 0 | 0.58595 | 0 | 0 | 0.098917 | 0.001239 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001064 | false | 0.000532 | 0.005322 | 0 | 0.006386 | 0.00479 | 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 |
c01810a4d7924725e886f4b9697cf9e354731827 | 33 | py | Python | opm/linty/__init__.py | Open-Prose-Metrics/open_prose_metrics_app-core | 9df65edfe9ee9af0a0731c3f2e21ea25bced250c | [
"MIT"
] | null | null | null | opm/linty/__init__.py | Open-Prose-Metrics/open_prose_metrics_app-core | 9df65edfe9ee9af0a0731c3f2e21ea25bced250c | [
"MIT"
] | 4 | 2021-04-30T21:38:10.000Z | 2022-01-13T03:32:33.000Z | opm/linty/__init__.py | Open-Prose-Metrics/open_prose_metrics_app-core | 9df65edfe9ee9af0a0731c3f2e21ea25bced250c | [
"MIT"
] | 1 | 2021-03-21T14:08:28.000Z | 2021-03-21T14:08:28.000Z | from linty.linty import lint_text | 33 | 33 | 0.878788 | 6 | 33 | 4.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 33 | 1 | 33 | 33 | 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 |
22154b840c06d1d136738c0743a2315aae64fa1d | 101 | py | Python | env/lib/python3.6/site-packages/collectfast/tests/test_storages/boto3_subclass.py | Mohitkaushal97/File | 0bc5cca9a557e242861a289af74dfe8b905bc3bd | [
"MIT"
] | null | null | null | env/lib/python3.6/site-packages/collectfast/tests/test_storages/boto3_subclass.py | Mohitkaushal97/File | 0bc5cca9a557e242861a289af74dfe8b905bc3bd | [
"MIT"
] | null | null | null | env/lib/python3.6/site-packages/collectfast/tests/test_storages/boto3_subclass.py | Mohitkaushal97/File | 0bc5cca9a557e242861a289af74dfe8b905bc3bd | [
"MIT"
] | null | null | null | from storages.backends.s3boto3 import S3Boto3Storage
class CustomStorage(S3Boto3Storage):
pass
| 16.833333 | 52 | 0.821782 | 10 | 101 | 8.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.128713 | 101 | 5 | 53 | 20.2 | 0.875 | 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 |
22201839a5a07738e08b522381dc124fec34bd1a | 29 | py | Python | pytealutils/debug/__init__.py | nullun/pyteal-utils | 1c7705a6c2fd80faee1e45962fe399fd672f37c6 | [
"MIT"
] | 20 | 2021-09-01T17:57:18.000Z | 2022-03-13T07:51:26.000Z | pytealutils/debug/__init__.py | nullun/pyteal-utils | 1c7705a6c2fd80faee1e45962fe399fd672f37c6 | [
"MIT"
] | 12 | 2021-09-01T20:09:30.000Z | 2022-01-11T12:17:51.000Z | pytealutils/debug/__init__.py | nullun/pyteal-utils | 1c7705a6c2fd80faee1e45962fe399fd672f37c6 | [
"MIT"
] | 8 | 2021-09-03T10:44:19.000Z | 2022-02-28T11:52:20.000Z | from .debug import log_stats
| 14.5 | 28 | 0.827586 | 5 | 29 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 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 |
2239c56134f59f26086454a43e1b3e1059adb449 | 6,900 | py | Python | python/tvm/topi/testing/depthwise_conv2d_python.py | zhenlohuang/tvm | fd2e6d17120a79533852c6bb705429d9c7bc286b | [
"Apache-2.0"
] | 90 | 2019-01-26T00:38:49.000Z | 2022-03-11T23:12:34.000Z | python/tvm/topi/testing/depthwise_conv2d_python.py | zhenlohuang/tvm | fd2e6d17120a79533852c6bb705429d9c7bc286b | [
"Apache-2.0"
] | 91 | 2019-02-27T00:17:01.000Z | 2022-02-21T18:08:21.000Z | python/tvm/topi/testing/depthwise_conv2d_python.py | zhenlohuang/tvm | fd2e6d17120a79533852c6bb705429d9c7bc286b | [
"Apache-2.0"
] | 41 | 2019-01-28T14:37:03.000Z | 2022-03-31T03:58:57.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 42.331288 | 98 | 0.62029 | 941 | 6,900 | 4.284803 | 0.154091 | 0.084325 | 0.027778 | 0.032738 | 0.788442 | 0.775794 | 0.755952 | 0.71875 | 0.703373 | 0.703373 | 0 | 0.012338 | 0.271739 | 6,900 | 162 | 99 | 42.592593 | 0.79005 | 0.265507 | 0 | 0.847826 | 0 | 0 | 0.007329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.021739 | 0 | 0.065217 | 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 |
224174cc2452e3f4bafcfee06c99c6b28e9e4041 | 8,937 | py | Python | tests/benchmarks/sort_lib_numbers.py | feihong/arturo | b07bb638874c59d2fe976d7344dac065be04a459 | [
"MIT"
] | 401 | 2019-09-22T14:50:12.000Z | 2022-03-24T02:00:40.000Z | tests/benchmarks/sort_lib_numbers.py | feihong/arturo | b07bb638874c59d2fe976d7344dac065be04a459 | [
"MIT"
] | 394 | 2020-02-04T05:46:39.000Z | 2022-03-18T18:09:16.000Z | tests/benchmarks/sort_lib_numbers.py | feihong/arturo | b07bb638874c59d2fe976d7344dac065be04a459 | [
"MIT"
] | 14 | 2020-07-17T18:19:35.000Z | 2022-03-05T18:51:48.000Z |
lst = [138,1696,1274,1240,398,1208,1309,1512,931,1361,180,247,1003,1536,814,308,333,1408,1724,1451,1594,1108,192,1376,1877,827,764,1113,376,1284,423,1353,1354,1629,390,1052,315,1550,1647,603,1289,1754,1549,1479,314,1009,875,1058,344,498,849,1709,616,38,1980,643,348,1432,1611,1994,1306,1583,1112,1640,1494,139,199,774,1... | 1,276.714286 | 8,900 | 0.774085 | 2,009 | 8,937 | 3.443504 | 0.998507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.772411 | 0.001455 | 8,937 | 7 | 8,901 | 1,276.714286 | 0.002801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
2274102eb8c813d474923368b165fc9ddb2f380a | 21,938 | py | Python | Project/cats/tests/07.py | IZUMI-Zu/CS61A | 50b0352ab5d45e1cd3f0114a397f3bac012ba7c1 | [
"MIT"
] | null | null | null | Project/cats/tests/07.py | IZUMI-Zu/CS61A | 50b0352ab5d45e1cd3f0114a397f3bac012ba7c1 | [
"MIT"
] | null | null | null | Project/cats/tests/07.py | IZUMI-Zu/CS61A | 50b0352ab5d45e1cd3f0114a397f3bac012ba7c1 | [
"MIT"
] | null | null | null | test = {
'name': 'Problem 7',
'points': 3,
'suites': [
{
'cases': [
{
'code': r"""
>>> big_limit = 10
>>> pawssible_patches("wird", "wiry", big_limit)
1
>>> pawssible_patches("wird", "bird", big_limit)
1
>>> pawssible_patches(... | 24.649438 | 106 | 0.350898 | 1,756 | 21,938 | 4.299544 | 0.165718 | 0.254305 | 0.234172 | 0.303046 | 0.763046 | 0.74649 | 0.712715 | 0.690331 | 0.684238 | 0.658278 | 0 | 0.030486 | 0.472194 | 21,938 | 889 | 107 | 24.677165 | 0.621556 | 0 | 0 | 0.471316 | 0 | 0.048369 | 0.590847 | 0.146367 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003375 | 0 | 0.003375 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
2274a0704e9e2991fd851e721007b9a02390dabd | 6,383 | py | Python | models/layers.py | LaudateCorpus1/ml-equivariant-neural-rendering | 44e5bfc6ebf479ea2b7bf25dddf94e05637e4fc8 | [
"AML"
] | 81 | 2020-12-17T19:41:26.000Z | 2022-03-30T07:45:46.000Z | models/layers.py | LaudateCorpus1/ml-equivariant-neural-rendering | 44e5bfc6ebf479ea2b7bf25dddf94e05637e4fc8 | [
"AML"
] | null | null | null | models/layers.py | LaudateCorpus1/ml-equivariant-neural-rendering | 44e5bfc6ebf479ea2b7bf25dddf94e05637e4fc8 | [
"AML"
] | 13 | 2020-12-21T17:26:43.000Z | 2022-03-26T11:44:42.000Z | import torch
import torch.nn as nn
class ConvBlock2d(nn.Module):
"""Block of 1x1, 3x3, 1x1 convolutions with non linearities. Shape of input
and output is the same.
Args:
in_channels (int): Number of channels in input.
num_filters (list of ints): List of two ints with the number of filter... | 41.448052 | 89 | 0.596271 | 827 | 6,383 | 4.412334 | 0.113664 | 0.093176 | 0.039463 | 0.042751 | 0.889833 | 0.868183 | 0.861332 | 0.861332 | 0.861332 | 0.861332 | 0 | 0.032325 | 0.316622 | 6,383 | 153 | 90 | 41.718954 | 0.804218 | 0.293749 | 0 | 0.698925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.021505 | 0.043011 | 0.268817 | 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 |
97d37e1c985a92ecc062970dd971bc40b60757d9 | 109 | py | Python | student/views.py | sgr-smile2015/website | a6a90e8fff52a3d8adb797cfe2e6f74c4ad0e3c0 | [
"Apache-2.0"
] | 1 | 2018-02-27T08:24:12.000Z | 2018-02-27T08:24:12.000Z | student/views.py | sgr-smile2015/website | a6a90e8fff52a3d8adb797cfe2e6f74c4ad0e3c0 | [
"Apache-2.0"
] | null | null | null | student/views.py | sgr-smile2015/website | a6a90e8fff52a3d8adb797cfe2e6f74c4ad0e3c0 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
def index(request):
return render(request, 'student/student.html')
| 18.166667 | 50 | 0.761468 | 14 | 109 | 5.928571 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137615 | 109 | 5 | 51 | 21.8 | 0.882979 | 0 | 0 | 0 | 0 | 0 | 0.183486 | 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 |
97e5648eb43b9c9e2eb2c22777583bc10bc253b9 | 70 | py | Python | 15/15.py | derdon/euler-solutions | 47fe1d5c23ec9ece8a2c3991566d414f00e86d34 | [
"0BSD"
] | 1 | 2015-11-06T01:08:22.000Z | 2015-11-06T01:08:22.000Z | 15/15.py | derdon/euler-solutions | 47fe1d5c23ec9ece8a2c3991566d414f00e86d34 | [
"0BSD"
] | null | null | null | 15/15.py | derdon/euler-solutions | 47fe1d5c23ec9ece8a2c3991566d414f00e86d34 | [
"0BSD"
] | null | null | null | from math import factorial as fac
print fac(40) / (fac(20) * fac(20))
| 23.333333 | 35 | 0.685714 | 13 | 70 | 3.692308 | 0.692308 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 0.171429 | 70 | 2 | 36 | 35 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | null | null | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
3f5ea3bd7a9326e06c831bbf69f70bcfef31a61c | 35 | py | Python | OAuth2Util/__init__.py | SmBe19/praw-OAuth2Util | ca0a2d4d7eefcc681aac92c9cd4b83cd9ea6c5fe | [
"MIT"
] | 53 | 2015-07-02T23:45:50.000Z | 2019-06-20T09:18:09.000Z | OAuth2Util/__init__.py | SmBe19/praw-OAuth2Util | ca0a2d4d7eefcc681aac92c9cd4b83cd9ea6c5fe | [
"MIT"
] | 14 | 2015-06-28T12:50:52.000Z | 2017-02-19T18:45:28.000Z | OAuth2Util/__init__.py | SmBe19/praw-OAuth2Util | ca0a2d4d7eefcc681aac92c9cd4b83cd9ea6c5fe | [
"MIT"
] | 23 | 2015-06-26T06:52:39.000Z | 2018-10-06T21:39:49.000Z | from .OAuth2Util import OAuth2Util
| 17.5 | 34 | 0.857143 | 4 | 35 | 7.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 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 |
4513aaa767ae979bb53abd22626afa6e026ea258 | 37 | py | Python | numpy_test.py | marcus-tam/ws_selenium_trader | 5c1a7df9639fc472d65f3f9b781c95e9109f6cbb | [
"MIT"
] | null | null | null | numpy_test.py | marcus-tam/ws_selenium_trader | 5c1a7df9639fc472d65f3f9b781c95e9109f6cbb | [
"MIT"
] | null | null | null | numpy_test.py | marcus-tam/ws_selenium_trader | 5c1a7df9639fc472d65f3f9b781c95e9109f6cbb | [
"MIT"
] | null | null | null | import numpy
print(numpy.__version__) | 18.5 | 24 | 0.864865 | 5 | 37 | 5.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 37 | 2 | 24 | 18.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
452092ee296a8509e1a25cce9c8618accbbe167d | 2,469 | py | Python | plenum/test/view_change/test_last_ordered_reset_for_new_view.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | null | null | null | plenum/test/view_change/test_last_ordered_reset_for_new_view.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 1 | 2019-03-20T14:57:22.000Z | 2019-03-20T15:01:55.000Z | plenum/test/view_change/test_last_ordered_reset_for_new_view.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | null | null | null | from plenum.test.helper import sdk_send_random_and_check, checkViewNoForNodes
from plenum.test.node_catchup.helper import ensure_all_nodes_have_same_data
from plenum.test.view_change.helper import ensure_view_change_complete
def test_last_ordered_3pc_not_reset_if_more_than_new_view(txnPoolNodeSet, looper, sdk_pool_ha... | 43.315789 | 118 | 0.778048 | 375 | 2,469 | 4.776 | 0.205333 | 0.104411 | 0.132887 | 0.077052 | 0.865438 | 0.840313 | 0.778336 | 0.778336 | 0.761027 | 0.761027 | 0 | 0.021792 | 0.163629 | 2,469 | 56 | 119 | 44.089286 | 0.845521 | 0.251114 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 1 | 0.115385 | false | 0 | 0.115385 | 0 | 0.230769 | 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 |
45361bd5ca0c94a5c62c9f86418ef8847d1a0f3d | 4,725 | py | Python | main.py | vwallajabad/multiplayer-battleship | 78491869958795f17e692b3ffcd799cef4fe0e9a | [
"MIT"
] | null | null | null | main.py | vwallajabad/multiplayer-battleship | 78491869958795f17e692b3ffcd799cef4fe0e9a | [
"MIT"
] | null | null | null | main.py | vwallajabad/multiplayer-battleship | 78491869958795f17e692b3ffcd799cef4fe0e9a | [
"MIT"
] | null | null | null | import replit
#Board
guessnumber = 0
shipsdown = 0
print("1 2 3 4 5 6 7 8 9 10")
board = [
"*", "*", "*", "*", "*", "*", "*", "*", "*", "*",
"*", "*", "*", "*", "*", "*", "*", "*", "*", "*",
"*", "*", "*", "*", "*", "*", "*", "*", "*", "*",
"*", "*", "*", "*", "*", "*", "*", "*", "*", "*",
"*", "*", "*", "*", ... | 36.627907 | 121 | 0.545397 | 711 | 4,725 | 3.624473 | 0.220816 | 0.07761 | 0.046566 | 0.058207 | 0.794723 | 0.794723 | 0.778036 | 0.778036 | 0.778036 | 0.778036 | 0 | 0.118804 | 0.17164 | 4,725 | 128 | 122 | 36.914063 | 0.539601 | 0.004233 | 0 | 0.315315 | 0 | 0 | 0.149904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.009009 | 0.009009 | 0 | 0.009009 | 0.432432 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
18a8c0b344b8e046ff0cefab5027f110011c6396 | 956 | py | Python | config.py | aliyun/alibabacloud-quantization-networks | 05522aabebf5188df5a92b26f96f5ebded806ca9 | [
"Apache-2.0"
] | 102 | 2019-11-08T08:45:56.000Z | 2022-03-03T05:22:14.000Z | config.py | DefTruth/alibabacloud-quantization-networks | 05522aabebf5188df5a92b26f96f5ebded806ca9 | [
"Apache-2.0"
] | 8 | 2019-12-02T08:44:36.000Z | 2021-08-12T13:35:03.000Z | config.py | DefTruth/alibabacloud-quantization-networks | 05522aabebf5188df5a92b26f96f5ebded806ca9 | [
"Apache-2.0"
] | 30 | 2019-11-22T05:16:05.000Z | 2021-08-04T07:18:56.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os.path
# gets home dir cross platform
HOME = os.path.expanduser("~")
QW_values = {
'alexnet-w-1': [-1, 0, 1], 'alexnet-w-2': [-1, 0, 1], 'alexnet-w-3-pm2': [-2, -1, 0, 1, 2], 'alexnet-w-3-pm4': [-4, -2, -1, 0, 1, 2, 4],
'resnet18-w-1': [-1, 0, 1], 'resnet18-w-2'... | 30.83871 | 137 | 0.408996 | 222 | 956 | 1.747748 | 0.144144 | 0.505155 | 0.742268 | 0.969072 | 0.582474 | 0.435567 | 0.435567 | 0.399485 | 0.399485 | 0.399485 | 0 | 0.271523 | 0.210251 | 956 | 30 | 138 | 31.866667 | 0.242384 | 0.074268 | 0 | 0.117647 | 0 | 0 | 0.141069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
18d8f11dc03dc327db0713d040ca9bf1de859a5a | 40 | py | Python | simfempy/tools/__init__.py | anairabeze/simfempy | 144362956263cb9b81f4bade15664d9cc640f93a | [
"MIT"
] | null | null | null | simfempy/tools/__init__.py | anairabeze/simfempy | 144362956263cb9b81f4bade15664d9cc640f93a | [
"MIT"
] | 3 | 2018-12-18T16:36:52.000Z | 2019-01-29T18:34:55.000Z | simfempy/tools/__init__.py | beckerrh/fempy | dd7214ea7f6d81a5200fcb4a91f07a5cd3322e9e | [
"MIT"
] | 1 | 2021-06-09T15:49:51.000Z | 2021-06-09T15:49:51.000Z | from . import timer, latexwriter, matrix | 40 | 40 | 0.8 | 5 | 40 | 6.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 40 | 1 | 40 | 40 | 0.914286 | 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 |
e13f76b1f806c297ba13bfc35d5aadf1eaae743a | 16,608 | py | Python | pybind/slxos/v16r_1_00b/mpls_state/path/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v16r_1_00b/mpls_state/path/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v16r_1_00b/mpls_state/path/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | 1 | 2021-11-05T22:15:42.000Z | 2021-11-05T22:15:42.000Z |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | 65.644269 | 750 | 0.731154 | 2,340 | 16,608 | 4.941026 | 0.080769 | 0.053624 | 0.053278 | 0.037364 | 0.806608 | 0.763536 | 0.750908 | 0.744508 | 0.734475 | 0.731707 | 0 | 0.005133 | 0.131924 | 16,608 | 252 | 751 | 65.904762 | 0.796837 | 0.131804 | 0 | 0.415584 | 0 | 0.025974 | 0.361848 | 0.17976 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097403 | false | 0 | 0.064935 | 0 | 0.285714 | 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 |
e1c3dc876b34d4c0e14ccf7d38341aa13b0ce410 | 16 | py | Python | RoverPy_daemon.py | PiKSo05/RoverPy | d21953acf4b5c1bb49c3af1b0014d5169fe7d029 | [
"MIT"
] | null | null | null | RoverPy_daemon.py | PiKSo05/RoverPy | d21953acf4b5c1bb49c3af1b0014d5169fe7d029 | [
"MIT"
] | null | null | null | RoverPy_daemon.py | PiKSo05/RoverPy | d21953acf4b5c1bb49c3af1b0014d5169fe7d029 | [
"MIT"
] | null | null | null | import daemon
| 4 | 13 | 0.75 | 2 | 16 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 16 | 3 | 14 | 5.333333 | 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 |
bef19e97a827f0d02bbb80815f70c96818f5d9fc | 5,260 | py | Python | tests/test_check_if_new_minimizer.py | Megscammell/METOD-Algorithm | 7518145ec100599bddc880f5f52d28f9a3959108 | [
"MIT"
] | null | null | null | tests/test_check_if_new_minimizer.py | Megscammell/METOD-Algorithm | 7518145ec100599bddc880f5f52d28f9a3959108 | [
"MIT"
] | 1 | 2021-11-17T09:03:17.000Z | 2021-11-17T09:03:17.000Z | tests/test_check_if_new_minimizer.py | Megscammell/METOD-Algorithm | 7518145ec100599bddc880f5f52d28f9a3959108 | [
"MIT"
] | null | null | null | import numpy as np
from hypothesis import given, settings, strategies as st
from metod_alg import objective_functions as mt_obj
from metod_alg import metod_algorithm_functions as mt_alg
from metod_alg import check_metod_class as prev_mt_alg
def calc_minimizer_sev_quad(point, p, store_x0, matrix_test):
"""
Fi... | 37.571429 | 83 | 0.596008 | 742 | 5,260 | 3.978437 | 0.188679 | 0.035569 | 0.01897 | 0.018293 | 0.747967 | 0.737805 | 0.70393 | 0.70393 | 0.70393 | 0.70393 | 0 | 0.033279 | 0.303042 | 5,260 | 139 | 84 | 37.841727 | 0.771959 | 0.179468 | 0 | 0.818182 | 0 | 0 | 0.016691 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 1 | 0.030303 | false | 0 | 0.050505 | 0 | 0.090909 | 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 |
befbc10e9192b44802763c68827ffc0e983dbd14 | 28 | py | Python | mkdocs_include/__init__.py | nqkdev/mkdocs-include | eb504673db7fc046af5f8cde951f57a62f0cd6e5 | [
"Apache-2.0"
] | null | null | null | mkdocs_include/__init__.py | nqkdev/mkdocs-include | eb504673db7fc046af5f8cde951f57a62f0cd6e5 | [
"Apache-2.0"
] | null | null | null | mkdocs_include/__init__.py | nqkdev/mkdocs-include | eb504673db7fc046af5f8cde951f57a62f0cd6e5 | [
"Apache-2.0"
] | null | null | null | from .plugin import Include
| 14 | 27 | 0.821429 | 4 | 28 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 28 | 1 | 28 | 28 | 0.958333 | 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 |
831760dadf547a4611016a61248bdd119cc8d06d | 2,945 | py | Python | parsers/tests/test_topconsparser.py | rigdenlab/conkit-web | bf50d28a73f43b9eb0e0c397ec1d0fd32547fdf1 | [
"BSD-3-Clause"
] | 1 | 2020-04-16T16:52:53.000Z | 2020-04-16T16:52:53.000Z | parsers/tests/test_topconsparser.py | rigdenlab/conplot | 9b3129d9e1b7ed93da63c6fd31f9b50e63f2d4d9 | [
"BSD-3-Clause"
] | 47 | 2020-05-11T13:59:11.000Z | 2022-01-21T09:37:18.000Z | parsers/tests/test_topconsparser.py | rigdenlab/conkit-web | bf50d28a73f43b9eb0e0c397ec1d0fd32547fdf1 | [
"BSD-3-Clause"
] | 5 | 2020-04-24T11:19:21.000Z | 2020-05-06T08:01:36.000Z | import unittest
from parsers import TopconsParser, MembraneStates
from utils.exceptions import InvalidFormat
class TopconsParserTestCase(unittest.TestCase):
def test_1(self):
dummy_prediction = """##############################################################################
TOPCONS2 result file
Generate... | 23.373016 | 138 | 0.61562 | 328 | 2,945 | 5.496951 | 0.341463 | 0.094842 | 0.039933 | 0.057682 | 0.799224 | 0.799224 | 0.799224 | 0.764282 | 0.665557 | 0.665557 | 0 | 0.080227 | 0.161969 | 2,945 | 125 | 139 | 23.56 | 0.650324 | 0 | 0 | 0.847059 | 0 | 0.070588 | 0.672326 | 0.173854 | 0 | 0 | 0 | 0 | 0.035294 | 1 | 0.023529 | false | 0 | 0.035294 | 0 | 0.070588 | 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 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
83211b43d3dbdd6066644038a96625f0b9eb598e | 109 | py | Python | mag_report/report_graphs/__init__.py | Curtin-Open-Knowledge-Initiative/mag_coverage_report | a75dd1273c44895b5c857ebd498407aa95bd45e5 | [
"Apache-2.0"
] | null | null | null | mag_report/report_graphs/__init__.py | Curtin-Open-Knowledge-Initiative/mag_coverage_report | a75dd1273c44895b5c857ebd498407aa95bd45e5 | [
"Apache-2.0"
] | 2 | 2021-08-30T11:52:25.000Z | 2021-09-02T12:11:05.000Z | mag_report/report_graphs/__init__.py | Curtin-Open-Knowledge-Initiative/mag_coverage_report | a75dd1273c44895b5c857ebd498407aa95bd45e5 | [
"Apache-2.0"
] | 3 | 2021-07-04T07:39:01.000Z | 2021-08-24T15:24:29.000Z | from .alluvial import *
from .overall_coverage import *
from .bar_line import *
from .value_add_bar import *
| 21.8 | 31 | 0.779817 | 16 | 109 | 5.0625 | 0.5625 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146789 | 109 | 4 | 32 | 27.25 | 0.870968 | 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 |
832b06fe98dcdb6c4a2f779524b1127b64d254a5 | 36,084 | py | Python | tests/test_dumper.py | sgrah-oss/haystackapi | dc6000120e5ef97b174bb1440460ce170f22026e | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | tests/test_dumper.py | sgrah-oss/haystackapi | dc6000120e5ef97b174bb1440460ce170f22026e | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | tests/test_dumper.py | sgrah-oss/haystackapi | dc6000120e5ef97b174bb1440460ce170f22026e | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Zinc dumping and parsing module
# See the accompanying LICENSE Apache V2.0 file.
# (C) 2016 VRT Systems
# (C) 2021 Engie Digital
#
# vim: set ts=4 sts=4 et tw=78 sw=4 si:
import datetime
import json
from csv import reader
import pytz
import haystackapi
from haystackapi import dump_scalar
fro... | 29.723229 | 160 | 0.514134 | 3,887 | 36,084 | 4.655004 | 0.067661 | 0.035813 | 0.047253 | 0.025644 | 0.865038 | 0.829612 | 0.819332 | 0.79297 | 0.769316 | 0.74439 | 0 | 0.038731 | 0.334553 | 36,084 | 1,213 | 161 | 29.747733 | 0.714809 | 0.026161 | 0 | 0.520561 | 0 | 0.006542 | 0.254664 | 0.016031 | 0 | 0 | 0 | 0 | 0.056075 | 1 | 0.050467 | false | 0.017757 | 0.006542 | 0 | 0.060748 | 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 |
8337306f265fbac194613f787304d42893abdbbc | 121 | py | Python | code/argtest.py | joaovitorsilvestre/py4inf-ptBR | 236780517d99af14c0c58ae4177a85e770d6fe46 | [
"CC-BY-3.0"
] | 41 | 2015-02-27T22:13:41.000Z | 2021-11-14T15:37:29.000Z | code/argtest.py | joaovitorsilvestre/py4inf-ptBR | 236780517d99af14c0c58ae4177a85e770d6fe46 | [
"CC-BY-3.0"
] | 2 | 2015-12-15T04:03:15.000Z | 2017-01-13T15:29:47.000Z | code/argtest.py | joaovitorsilvestre/py4inf-ptBR | 236780517d99af14c0c58ae4177a85e770d6fe46 | [
"CC-BY-3.0"
] | 45 | 2015-01-03T17:26:02.000Z | 2022-01-09T16:06:04.000Z | import sys
print 'Count:', len(sys.argv)
print 'Type:', type(sys.argv)
for arg in sys.argv:
print 'Argument:', arg
| 13.444444 | 29 | 0.661157 | 20 | 121 | 4 | 0.55 | 0.2625 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173554 | 121 | 8 | 30 | 15.125 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.6 | 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 |
834f02e5f15d4c42d1d332fffd9be008a7e1539a | 2,387 | py | Python | code/predict-reg.py | jizhang02/HC-reg-seg | 0e8e141cf3ccce2b74abd8bee47f65516d0cf1c0 | [
"MIT"
] | null | null | null | code/predict-reg.py | jizhang02/HC-reg-seg | 0e8e141cf3ccce2b74abd8bee47f65516d0cf1c0 | [
"MIT"
] | null | null | null | code/predict-reg.py | jizhang02/HC-reg-seg | 0e8e141cf3ccce2b74abd8bee47f65516d0cf1c0 | [
"MIT"
] | null | null | null | '''
-----------------------------------------------
File Name: predict$
Description:
Author: Jing$
Date: 7/17/2021$
-----------------------------------------------
'''
import time
from keras.models import load_model
from data_reg import *
from model_reg import *
from memory_profiler import profile
H = 22... | 29.469136 | 106 | 0.632174 | 353 | 2,387 | 4.011331 | 0.269122 | 0.028249 | 0.016949 | 0.025424 | 0.786723 | 0.786723 | 0.786723 | 0.786723 | 0.786723 | 0.786723 | 0 | 0.032499 | 0.213657 | 2,387 | 81 | 107 | 29.469136 | 0.721897 | 0.268538 | 0 | 0.814815 | 0 | 0 | 0.125457 | 0.062119 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.092593 | 0 | 0.12963 | 0.074074 | 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 |
55c1ff8706189047a0e29c9604efc3cb923167bc | 870 | py | Python | api_test/common/GlobalStatusCode.py | RockyLiys/api_auto_test_platform | 7e6aec23b6f54d20c534b77a2679daf37b65c960 | [
"MIT"
] | null | null | null | api_test/common/GlobalStatusCode.py | RockyLiys/api_auto_test_platform | 7e6aec23b6f54d20c534b77a2679daf37b65c960 | [
"MIT"
] | 10 | 2019-12-04T23:30:37.000Z | 2022-02-10T12:05:45.000Z | apitest/api_test/common/GlobalStatusCode.py | willhuang1206/apitest | 4b41855710ba8f21788027da83a830f631e11f26 | [
"Apache-2.0"
] | 3 | 2019-07-01T10:18:40.000Z | 2019-07-06T00:59:19.000Z | def success():
return '999999', '成功'
def fail():
return '999998', '失败'
def name_repetition():
return '999997', '存在相同名称'
def parameter_wrong():
return '999996', '参数有误'
def project_not_exist():
return '999995', '项目不存在'
def project_is_exist():
return '999994', '项目已存在'
def host_is_exist(... | 13.809524 | 58 | 0.644828 | 111 | 870 | 4.81982 | 0.522523 | 0.205607 | 0.183178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138929 | 0.205747 | 870 | 62 | 59 | 14.032258 | 0.635311 | 0 | 0 | 0 | 0 | 0 | 0.248276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
36ca2a07f133faf7ad6f97491c6cd66de79d16e0 | 2,345 | py | Python | calm/dsl/api/user_group.py | tuxtof/calm-dsl | 5af67435d8304b97e170a690068f2d5975e9bfe6 | [
"Apache-2.0"
] | 1 | 2021-01-20T04:44:13.000Z | 2021-01-20T04:44:13.000Z | calm/dsl/api/user_group.py | gabybeitler/calm-dsl | bac453413cfcf800eef95d89d5a7323c83654a93 | [
"Apache-2.0"
] | null | null | null | calm/dsl/api/user_group.py | gabybeitler/calm-dsl | bac453413cfcf800eef95d89d5a7323c83654a93 | [
"Apache-2.0"
] | null | null | null | from .resource import ResourceAPI
class UserGroupAPI(ResourceAPI):
def __init__(self, connection):
super().__init__(connection, resource_type="user_groups")
def get_name_uuid_map(self, params=dict()):
res, err = self.list(params)
if err:
raise Exception("[{}] - {}".format... | 32.123288 | 87 | 0.579531 | 238 | 2,345 | 5.357143 | 0.210084 | 0.225882 | 0.12549 | 0.156863 | 0.795294 | 0.795294 | 0.795294 | 0.795294 | 0.795294 | 0.795294 | 0 | 0 | 0.311727 | 2,345 | 72 | 88 | 32.569444 | 0.789963 | 0 | 0 | 0.692308 | 0 | 0 | 0.13177 | 0.046908 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.019231 | 0 | 0.134615 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
36edb824c7638ebee49c058bdc84ca218c9b8635 | 1,736 | py | Python | experiments/gen_tex.py | LizhengMathAi/svgd | 9606388cf4565e4fafe82869feef7a7ba8986ef2 | [
"Apache-2.0"
] | 3 | 2019-07-10T16:48:53.000Z | 2019-11-03T11:23:06.000Z | experiments/gen_tex.py | LizhengMathAi/svgd | 9606388cf4565e4fafe82869feef7a7ba8986ef2 | [
"Apache-2.0"
] | null | null | null | experiments/gen_tex.py | LizhengMathAi/svgd | 9606388cf4565e4fafe82869feef7a7ba8986ef2 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
for file_name in ["so", "sgd", "rmsprop", "adam"]:
# ----------------------- mlp -----------------------
df = pd.read_csv("./logs/csv/mlp_" + file_name + ".csv").values[:, [2, 3, 4]]
with open("./logs/dat/mlp_" + file_name + "_loss.dat", "w") as f:
f.write("iter loss \n")
... | 40.372093 | 84 | 0.468318 | 254 | 1,736 | 3.090551 | 0.165354 | 0.09172 | 0.09172 | 0.11465 | 0.852229 | 0.852229 | 0.783439 | 0.70828 | 0.70828 | 0.70828 | 0 | 0.044394 | 0.234447 | 1,736 | 42 | 85 | 41.333333 | 0.546275 | 0.092742 | 0 | 0.482759 | 0 | 0 | 0.228025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 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 |
7fdab03b2d28911fcc54b7f97e4d27d88eaf5444 | 4,262 | py | Python | bindings/python/test/units/test_derived.py | robinpdm/open-space-toolkit-physics | b53e5d4287fa6568d700cb8942c9a56d57b8d7cf | [
"Apache-2.0"
] | 7 | 2020-03-30T11:51:11.000Z | 2022-02-02T15:20:44.000Z | bindings/python/test/units/test_derived.py | robinpdm/open-space-toolkit-physics | b53e5d4287fa6568d700cb8942c9a56d57b8d7cf | [
"Apache-2.0"
] | 24 | 2018-06-25T08:06:39.000Z | 2020-01-05T20:34:02.000Z | bindings/python/test/units/test_derived.py | robinpdm/open-space-toolkit-physics | b53e5d4287fa6568d700cb8942c9a56d57b8d7cf | [
"Apache-2.0"
] | 3 | 2020-03-05T18:18:38.000Z | 2020-07-02T05:06:53.000Z | ################################################################################################################################################################
# @project Open Space Toolkit ▸ Physics
# @file bindings/python/test/units/test_derived.py
# @author Remy Derollez <remy@loftorbital.... | 36.42735 | 160 | 0.461755 | 349 | 4,262 | 5.426934 | 0.17765 | 0.429778 | 0.323126 | 0.394931 | 0.79831 | 0.736536 | 0.563358 | 0.441922 | 0.441922 | 0.441922 | 0 | 0.00053 | 0.114735 | 4,262 | 116 | 161 | 36.741379 | 0.501193 | 0.069451 | 0 | 0.510204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.469388 | 1 | 0.122449 | false | 0.061224 | 0.040816 | 0 | 0.163265 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
7ffa4b171da0c392aa198ab141120868ffe1a0c9 | 133 | py | Python | core/serializers/__init__.py | NTUSA/fudez-app | 91c8d85238fb642488ef5616be441e4417f21d0a | [
"MIT"
] | 2 | 2017-04-13T08:52:19.000Z | 2018-05-07T12:14:34.000Z | core/serializers/__init__.py | NTUSA/fudez-app | 91c8d85238fb642488ef5616be441e4417f21d0a | [
"MIT"
] | null | null | null | core/serializers/__init__.py | NTUSA/fudez-app | 91c8d85238fb642488ef5616be441e4417f21d0a | [
"MIT"
] | 1 | 2018-07-28T16:09:59.000Z | 2018-07-28T16:09:59.000Z | from .expense_record import *
from .fund import *
from .requirement import *
from .review import ApproveSerializer, RejectSerializer
| 26.6 | 55 | 0.81203 | 15 | 133 | 7.133333 | 0.6 | 0.280374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12782 | 133 | 4 | 56 | 33.25 | 0.922414 | 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 |
e9e9da16b57cadb38c1cba222d894ebcdef579ba | 42 | py | Python | indra/assemblers/index_card/__init__.py | zebulon2/indra | 7727ddcab52ad8012eb6592635bfa114e904bd48 | [
"BSD-2-Clause"
] | 136 | 2016-02-11T22:06:37.000Z | 2022-03-31T17:26:20.000Z | indra/assemblers/index_card/__init__.py | zebulon2/indra | 7727ddcab52ad8012eb6592635bfa114e904bd48 | [
"BSD-2-Clause"
] | 748 | 2016-02-03T16:27:56.000Z | 2022-03-09T14:27:54.000Z | indra/assemblers/index_card/__init__.py | zebulon2/indra | 7727ddcab52ad8012eb6592635bfa114e904bd48 | [
"BSD-2-Clause"
] | 56 | 2015-08-28T14:03:44.000Z | 2022-02-04T06:15:55.000Z | from .assembler import IndexCardAssembler
| 21 | 41 | 0.880952 | 4 | 42 | 9.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 42 | 1 | 42 | 42 | 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 |
e9fb2f7d8281b504afdc3b7067d238ba29eb85c7 | 160 | py | Python | views/about.py | Javascript-void0/javascript-void0.github.io | 7816f23cc1234057ff9d55f0de9108572cb792e4 | [
"MIT"
] | null | null | null | views/about.py | Javascript-void0/javascript-void0.github.io | 7816f23cc1234057ff9d55f0de9108572cb792e4 | [
"MIT"
] | null | null | null | views/about.py | Javascript-void0/javascript-void0.github.io | 7816f23cc1234057ff9d55f0de9108572cb792e4 | [
"MIT"
] | null | null | null | from flask import Blueprint, render_template
about = Blueprint('about', __name__)
@about.route('/')
def form():
return render_template('about/about.html') | 22.857143 | 46 | 0.7375 | 20 | 160 | 5.6 | 0.65 | 0.25 | 0.339286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11875 | 160 | 7 | 46 | 22.857143 | 0.794326 | 0 | 0 | 0 | 0 | 0 | 0.136646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0.4 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
1835665600c71f44884e38eb228ee614443d7115 | 164 | py | Python | test_scripts/ns/msb_get_one.py | lremember/VFC | 837559db1396091811382359100bfc60e1aab5b2 | [
"MIT"
] | 1 | 2019-10-10T00:52:18.000Z | 2019-10-10T00:52:18.000Z | test_scripts/ns/msb_get_one.py | lremember/VFC-Files | 837559db1396091811382359100bfc60e1aab5b2 | [
"MIT"
] | null | null | null | test_scripts/ns/msb_get_one.py | lremember/VFC-Files | 837559db1396091811382359100bfc60e1aab5b2 | [
"MIT"
] | null | null | null | import requests
resp = requests.get('http://10.12.5.131:30280/api/nsd/v1/ns_descriptors/8acc4e46-08c1-46f3-a594-2910490930de')
print resp.status_code, resp.json()
| 32.8 | 110 | 0.780488 | 27 | 164 | 4.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23871 | 0.054878 | 164 | 4 | 111 | 41 | 0.574194 | 0 | 0 | 0 | 0 | 0.333333 | 0.533742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
1862428193b5c902e38d97d644dde08b6e187cd2 | 67 | py | Python | units/shapes/axis.py | doldam0/grapher | 5e82dd57be5274ab616839d10b42d2b741f2b081 | [
"MIT"
] | null | null | null | units/shapes/axis.py | doldam0/grapher | 5e82dd57be5274ab616839d10b42d2b741f2b081 | [
"MIT"
] | null | null | null | units/shapes/axis.py | doldam0/grapher | 5e82dd57be5274ab616839d10b42d2b741f2b081 | [
"MIT"
] | null | null | null | from units.shapes.shape import Shape
class Axis(Shape):
pass
| 11.166667 | 36 | 0.731343 | 10 | 67 | 4.9 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19403 | 67 | 5 | 37 | 13.4 | 0.907407 | 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 |
18731f5e2110e89d48482ca4607d8f98bd3413b6 | 30 | py | Python | URAPY/__init__.py | Warhawk947/URAPY | 043578a928afa9c3fe6b742dcea8c0f08f5a5cb8 | [
"MIT"
] | 4 | 2020-04-16T00:13:12.000Z | 2020-06-13T18:33:30.000Z | URAPY/__init__.py | Warhawk947/URAPY | 043578a928afa9c3fe6b742dcea8c0f08f5a5cb8 | [
"MIT"
] | 1 | 2020-04-16T14:55:52.000Z | 2020-04-16T14:55:58.000Z | URAPY/__init__.py | Warhawk947/URAPY | 043578a928afa9c3fe6b742dcea8c0f08f5a5cb8 | [
"MIT"
] | 1 | 2021-07-27T08:08:39.000Z | 2021-07-27T08:08:39.000Z | from URAPY.URAPY import Client | 30 | 30 | 0.866667 | 5 | 30 | 5.2 | 0.8 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.