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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0f6b7668a07fcfc2be7c89b25bd531b6c4285bc2 | 4,466 | py | Python | tests/prune_tests.py | dantaki/svtools | 9e13813ba25d0588bf2bbea204e34e7cef9bc039 | [
"MIT"
] | 120 | 2015-06-10T08:48:55.000Z | 2022-03-22T13:17:50.000Z | tests/prune_tests.py | dantaki/svtools | 9e13813ba25d0588bf2bbea204e34e7cef9bc039 | [
"MIT"
] | 281 | 2015-05-01T20:08:54.000Z | 2022-01-26T23:14:51.000Z | tests/prune_tests.py | dantaki/svtools | 9e13813ba25d0588bf2bbea204e34e7cef9bc039 | [
"MIT"
] | 52 | 2015-06-08T20:17:08.000Z | 2022-03-14T19:57:49.000Z | from unittest import TestCase, main
import os
import sys
import tempfile
import difflib
import svtools.prune
class IntegrationTestPrune(TestCase):
def run_integration_test(self):
test_directory = os.path.dirname(os.path.abspath(__file__))
test_data_dir = os.path.join(test_directory, 'test_data', 'p... | 51.333333 | 118 | 0.683162 | 565 | 4,466 | 5.092035 | 0.127434 | 0.04171 | 0.077859 | 0.058394 | 0.914494 | 0.914494 | 0.914494 | 0.914494 | 0.914494 | 0.914494 | 0 | 0.002268 | 0.210255 | 4,466 | 86 | 119 | 51.930233 | 0.813439 | 0 | 0 | 0.728395 | 0 | 0 | 0.059561 | 0.03202 | 0 | 0 | 0 | 0 | 0.049383 | 1 | 0.049383 | false | 0 | 0.074074 | 0 | 0.135802 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0f7941b2836cce282015431d44e115ab47015080 | 5,468 | py | Python | spekev2_verification_testsuite/test_case_3_preset_video_5_preset_audio_3.py | amphied/speke-reference-server | 7b589a333fb3c619c6f7e53483d43de9a588f7b7 | [
"Apache-2.0"
] | null | null | null | spekev2_verification_testsuite/test_case_3_preset_video_5_preset_audio_3.py | amphied/speke-reference-server | 7b589a333fb3c619c6f7e53483d43de9a588f7b7 | [
"Apache-2.0"
] | null | null | null | spekev2_verification_testsuite/test_case_3_preset_video_5_preset_audio_3.py | amphied/speke-reference-server | 7b589a333fb3c619c6f7e53483d43de9a588f7b7 | [
"Apache-2.0"
] | null | null | null | import pytest
from .helpers import utils, speke_element_assertions
import xml.etree.ElementTree as ET
@pytest.fixture(scope="session")
def widevine_response(spekev2_url):
return utils.send_speke_request(utils.TEST_CASE_3_P_V_5_A_3, utils.PRESETS_WIDEVINE, spekev2_url)
@pytest.fixture(scope="session")
def playre... | 47.137931 | 120 | 0.850037 | 789 | 5,468 | 5.333333 | 0.070976 | 0.093156 | 0.22481 | 0.249525 | 0.95865 | 0.953897 | 0.9173 | 0.875 | 0.835076 | 0.835076 | 0 | 0.018939 | 0.082663 | 5,468 | 115 | 121 | 47.547826 | 0.819976 | 0 | 0 | 0.525 | 0 | 0 | 0.014082 | 0 | 0 | 0 | 0 | 0 | 0.5375 | 1 | 0.175 | false | 0 | 0.0375 | 0.0875 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
7e16965166cdb807f535cfadf5a629741e900ed6 | 21,621 | py | Python | module2/RL_worlds.py | ccnss/ccnss2017_students | 619c4549fc6f54cc6df1108725b835a6e5019ce0 | [
"CC-BY-4.0"
] | 5 | 2017-07-17T05:26:26.000Z | 2021-04-03T06:54:09.000Z | module2/RL_worlds.py | ccnss/ccnss2017_students | 619c4549fc6f54cc6df1108725b835a6e5019ce0 | [
"CC-BY-4.0"
] | null | null | null | module2/RL_worlds.py | ccnss/ccnss2017_students | 619c4549fc6f54cc6df1108725b835a6e5019ce0 | [
"CC-BY-4.0"
] | 8 | 2017-07-06T02:01:16.000Z | 2018-06-26T15:57:12.000Z | #!/usr/bin/python
# ENVIRONMENT / WORLD DEFINITIONS
class world(object):
def __init__(self):
return
def get_outcome(self):
print("Abstract method, not implemented")
return
def get_all_outcomes(self):
outcomes = {}
for state in xrange(self.n_states):
fo... | 41.41954 | 113 | 0.4818 | 2,838 | 21,621 | 3.587738 | 0.086681 | 0.150265 | 0.147122 | 0.098998 | 0.850128 | 0.843449 | 0.834021 | 0.813887 | 0.771656 | 0.771656 | 0 | 0.122733 | 0.43134 | 21,621 | 521 | 114 | 41.49904 | 0.705409 | 0.192591 | 0 | 0.792857 | 0 | 0 | 0.016843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0 | 0.002381 | 0.085714 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7e74625bba4991dc41fdf7c85411356baee0794e | 2,609 | py | Python | terrafirma/stock/migrations/0001_initial.py | AlexandraAlter/django-terrafirma | afce5946f173aded2b4bfea78cf1b1034ec32272 | [
"MIT"
] | null | null | null | terrafirma/stock/migrations/0001_initial.py | AlexandraAlter/django-terrafirma | afce5946f173aded2b4bfea78cf1b1034ec32272 | [
"MIT"
] | null | null | null | terrafirma/stock/migrations/0001_initial.py | AlexandraAlter/django-terrafirma | afce5946f173aded2b4bfea78cf1b1034ec32272 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-18 22:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('terrafirma', '0001_initial'),
]
operations = [
migrations.CreateModel(
name... | 34.786667 | 99 | 0.423917 | 189 | 2,609 | 5.740741 | 0.349206 | 0.050691 | 0.092166 | 0.084793 | 0.707834 | 0.707834 | 0.707834 | 0.707834 | 0.707834 | 0.707834 | 0 | 0.014894 | 0.459563 | 2,609 | 74 | 100 | 35.256757 | 0.75461 | 0.017248 | 0 | 0.746269 | 1 | 0 | 0.083528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029851 | 0 | 0.089552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0e37ab706387609138c20e27e66e5b79975e8de0 | 301 | py | Python | playground_metrics/utils/__init__.py | ClementMaliet/playground-metrics | 7a0607c14a830818f9450d2febd8ae5e1709f8cf | [
"MIT"
] | 2 | 2020-11-25T13:33:19.000Z | 2021-04-16T08:14:16.000Z | playground_metrics/utils/__init__.py | ClementMaliet/playground-metrics | 7a0607c14a830818f9450d2febd8ae5e1709f8cf | [
"MIT"
] | 1 | 2021-03-01T13:35:16.000Z | 2021-03-01T15:38:04.000Z | playground_metrics/utils/__init__.py | ClementMaliet/playground-metrics | 7a0607c14a830818f9450d2febd8ae5e1709f8cf | [
"MIT"
] | 4 | 2021-01-14T13:00:49.000Z | 2022-03-09T04:00:55.000Z | def to_list(arr):
"""Transform an numpy array into a list with homogeneous element type."""
return arr.astype(type(arr.ravel()[0])).tolist()
def to_builtin(arr):
"""Transform an numpy array into a numpy array with homogeneous element type."""
return arr.astype(type(arr.ravel()[0]))
| 33.444444 | 84 | 0.694352 | 46 | 301 | 4.5 | 0.434783 | 0.144928 | 0.135266 | 0.183575 | 0.801932 | 0.801932 | 0.801932 | 0.521739 | 0.521739 | 0.521739 | 0 | 0.007937 | 0.162791 | 301 | 8 | 85 | 37.625 | 0.813492 | 0.471761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
addcf48bf1f6dbecd2b1dd5050ffc25533fec74d | 7,062 | py | Python | tests/test_specific.py | xadrnd/display_sdk_ios | f8a140d1cf3d1e8f63b915caf8c723d771dac13f | [
"BSD-3-Clause"
] | null | null | null | tests/test_specific.py | xadrnd/display_sdk_ios | f8a140d1cf3d1e8f63b915caf8c723d771dac13f | [
"BSD-3-Clause"
] | null | null | null | tests/test_specific.py | xadrnd/display_sdk_ios | f8a140d1cf3d1e8f63b915caf8c723d771dac13f | [
"BSD-3-Clause"
] | null | null | null | from test_base import DisplaySDKTest
from utils import *
SLEEP_INTERVAL = 2
class SpecificTest(DisplaySDKTest):
def test_banner(self):
set_channel_id(self, "22394")
click_load_ad_btn(self, "Banner")
accept_location(self)
webview = block_until_webview(self)
sleep(SLEEP_... | 24.102389 | 102 | 0.62192 | 822 | 7,062 | 5.027981 | 0.136253 | 0.101621 | 0.162594 | 0.203242 | 0.910235 | 0.844907 | 0.751996 | 0.720542 | 0.71038 | 0.701428 | 0 | 0.013448 | 0.273435 | 7,062 | 293 | 103 | 24.102389 | 0.792048 | 0.064571 | 0 | 0.722973 | 0 | 0 | 0.152795 | 0.043894 | 0 | 0 | 0 | 0 | 0.304054 | 1 | 0.060811 | false | 0.013514 | 0.013514 | 0 | 0.081081 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
70b4838cb42f93ba8319a6053b7f5e7b46579591 | 816 | py | Python | tests/test_get_fee_day.py | Alfareiza/calc-payment | c0ad005795a1841da82ae1c8092c65233510fd99 | [
"MIT"
] | null | null | null | tests/test_get_fee_day.py | Alfareiza/calc-payment | c0ad005795a1841da82ae1c8092c65233510fd99 | [
"MIT"
] | null | null | null | tests/test_get_fee_day.py | Alfareiza/calc-payment | c0ad005795a1841da82ae1c8092c65233510fd99 | [
"MIT"
] | null | null | null | from src.tools import get_fee_day
def test__MO10_00_12_00__return_30_0_Monday():
assert get_fee_day('MO10:00-12:00') == (30.0, 'Monday')
def test__TU10_00_12_00__return_30_0_Tuesday():
assert get_fee_day('TU10:00-12:00') == (30.0, 'Tuesday')
def test__TH01_00_03_00__return_50_0_Thursday():
assert get_... | 27.2 | 63 | 0.727941 | 154 | 816 | 3.298701 | 0.253247 | 0.094488 | 0.141732 | 0.206693 | 0.271654 | 0.153543 | 0 | 0 | 0 | 0 | 0 | 0.220527 | 0.116422 | 816 | 29 | 64 | 28.137931 | 0.48405 | 0 | 0 | 0 | 0 | 0 | 0.171569 | 0 | 0 | 0 | 0 | 0 | 0.466667 | 1 | 0.466667 | true | 0 | 0.066667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
cb558e278107416bb02eba298b9d1957b9e6466e | 67 | py | Python | all_windows/__init__.py | EXPmaster/notepad | b2d5535b424b8fbfa6786fc23af0d28e110fc2ba | [
"MIT"
] | 4 | 2020-11-15T15:45:15.000Z | 2020-11-22T08:08:08.000Z | all_windows/__init__.py | EXPmaster/notepad | b2d5535b424b8fbfa6786fc23af0d28e110fc2ba | [
"MIT"
] | null | null | null | all_windows/__init__.py | EXPmaster/notepad | b2d5535b424b8fbfa6786fc23af0d28e110fc2ba | [
"MIT"
] | null | null | null | # from .Find_win import Find_Win
from .Find_win_ide import Find_Win | 33.5 | 34 | 0.835821 | 13 | 67 | 3.923077 | 0.384615 | 0.54902 | 0.431373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 67 | 2 | 34 | 33.5 | 0.864407 | 0.447761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
cb95d72bfe7ade74bad0c068a9fba07bc500c2de | 9,114 | py | Python | test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders.py | Azure/autorest.python | c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7 | [
"MIT"
] | 35 | 2018-04-03T12:15:53.000Z | 2022-03-11T14:03:34.000Z | test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders.py | Azure/autorest.python | c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7 | [
"MIT"
] | 652 | 2017-08-28T22:44:41.000Z | 2022-03-31T21:20:31.000Z | test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders.py | Azure/autorest.python | c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7 | [
"MIT"
] | 29 | 2017-08-28T20:57:01.000Z | 2022-03-11T14:03:38.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 may ... | 35.463035 | 102 | 0.660632 | 1,193 | 9,114 | 4.986588 | 0.126572 | 0.048412 | 0.028408 | 0.026223 | 0.903345 | 0.894604 | 0.894604 | 0.894604 | 0.888889 | 0.888889 | 0 | 0.003936 | 0.219443 | 9,114 | 256 | 103 | 35.601563 | 0.832303 | 0.636274 | 0 | 0.793103 | 0 | 0 | 0.14988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.045977 | 0 | 0.183908 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
cbe92ef27e72a58ced059e9d40a8ed680b2fce55 | 6,720 | py | Python | scielomanager/export/tests/tests_pages.py | patymori/scielo-manager | 0945f377376de8ef0ada83c35b4e2312062cdf45 | [
"BSD-2-Clause"
] | 8 | 2015-07-07T03:09:16.000Z | 2019-03-16T04:46:32.000Z | scielomanager/export/tests/tests_pages.py | DalavanCloud/scielo-manager | 0945f377376de8ef0ada83c35b4e2312062cdf45 | [
"BSD-2-Clause"
] | 245 | 2015-01-14T13:29:58.000Z | 2022-01-13T00:48:44.000Z | scielomanager/export/tests/tests_pages.py | DalavanCloud/scielo-manager | 0945f377376de8ef0ada83c35b4e2312062cdf45 | [
"BSD-2-Clause"
] | 5 | 2016-02-19T15:47:08.000Z | 2019-03-16T04:46:20.000Z | # coding:utf-8
import json
from django_webtest import WebTest
from django.core.urlresolvers import reverse
from django_factory_boy import auth
from journalmanager.tests import modelfactories
class DownloadMarkupFilesTests(WebTest):
def setUp(self):
self.user = auth.UserF(is_active=True)
self.co... | 34.639175 | 72 | 0.634673 | 789 | 6,720 | 5.230672 | 0.174905 | 0.061304 | 0.095953 | 0.107584 | 0.83087 | 0.827962 | 0.827962 | 0.827962 | 0.80567 | 0.752362 | 0 | 0.008669 | 0.261905 | 6,720 | 193 | 73 | 34.818653 | 0.823387 | 0.126339 | 0 | 0.727273 | 0 | 0 | 0.106289 | 0.052081 | 0 | 0 | 0 | 0 | 0.07438 | 1 | 0.090909 | false | 0.024793 | 0.041322 | 0 | 0.14876 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1df4ec26816a20ff491b478808982fcc15795bff | 877 | py | Python | TCO2_Dashboard/Figures_Carbon_Pool.py | originalpkbims/subgrounds-pkbims | 03271135d985bc4a53129edb0cb2391555012270 | [
"Apache-2.0"
] | null | null | null | TCO2_Dashboard/Figures_Carbon_Pool.py | originalpkbims/subgrounds-pkbims | 03271135d985bc4a53129edb0cb2391555012270 | [
"Apache-2.0"
] | null | null | null | TCO2_Dashboard/Figures_Carbon_Pool.py | originalpkbims/subgrounds-pkbims | 03271135d985bc4a53129edb0cb2391555012270 | [
"Apache-2.0"
] | null | null | null | import plotly.express as px
from colors import colors
def deposited_over_time(df):
df = df.sort_values(by="Date", ascending=True)
df["Quantity"] = df["Quantity"].cumsum()
fig = px.area(df, x="Date", y="Quantity")
fig.update_layout(paper_bgcolor=colors['bg_color'], plot_bgcolor=colors['bg_color'], font... | 41.761905 | 136 | 0.675029 | 125 | 877 | 4.576 | 0.352 | 0.027972 | 0.104895 | 0.13986 | 0.881119 | 0.881119 | 0.881119 | 0.881119 | 0.881119 | 0.881119 | 0 | 0.005457 | 0.164196 | 877 | 20 | 137 | 43.85 | 0.774898 | 0 | 0 | 0.75 | 0 | 0 | 0.141391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
383212dd095b2dd56b9301d58f8461fdae16c81c | 2,485 | py | Python | test/regexp/python11.py | kylebarron/MagicPython | da6fa0793e2c85d3bf7709ff1d4f65ccf468db11 | [
"MIT"
] | 1,482 | 2015-10-16T21:59:32.000Z | 2022-03-30T11:44:40.000Z | test/regexp/python11.py | kylebarron/MagicPython | da6fa0793e2c85d3bf7709ff1d4f65ccf468db11 | [
"MIT"
] | 226 | 2015-10-15T15:53:44.000Z | 2022-03-25T03:08:27.000Z | test/regexp/python11.py | kylebarron/MagicPython | da6fa0793e2c85d3bf7709ff1d4f65ccf468db11 | [
"MIT"
] | 129 | 2015-10-20T02:41:49.000Z | 2022-03-22T01:44:36.000Z | a = r"""
(?x) # multi-XXXline XXX regexp
foo (?# comm TODOent TODO)
foo # type: int
foo (?# type: int)
"""
a : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
r ... | 69.027778 | 136 | 0.690543 | 294 | 2,485 | 5.836735 | 0.112245 | 0.181818 | 0.230769 | 0.294872 | 0.844406 | 0.828671 | 0.828671 | 0.828671 | 0.790793 | 0.703963 | 0 | 0 | 0.186318 | 2,485 | 35 | 137 | 71 | 0.848665 | 0 | 0 | 0.166667 | 0 | 0 | 0.278431 | 0 | 0 | 0 | 0 | 0.057143 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
384ca56fc8576951e380b7592003db15afa5865c | 11,735 | py | Python | tests/test_main.py | mitodl/xanalytics | 8cb7c373eb054bad741a9e567c0c8cbbc6ab08cf | [
"MIT"
] | 8 | 2015-03-05T21:09:40.000Z | 2020-02-03T09:15:09.000Z | tests/test_main.py | mitodl/xanalytics | 8cb7c373eb054bad741a9e567c0c8cbbc6ab08cf | [
"MIT"
] | 1 | 2015-09-24T18:43:27.000Z | 2015-10-01T18:11:20.000Z | tests/test_main.py | mitodl/xanalytics | 8cb7c373eb054bad741a9e567c0c8cbbc6ab08cf | [
"MIT"
] | 6 | 2015-04-23T16:47:34.000Z | 2017-10-13T19:11:53.000Z | import unittest
from google.appengine.api import memcache
from google.appengine.ext import ndb
from google.appengine.ext import testbed
import json
import pytest
import StringIO
import webapp2
from webtest import TestApp
from webtest import Upload
from lxml import etree
import local_config
class TestGsData(unittest.... | 43.624535 | 114 | 0.665786 | 1,399 | 11,735 | 5.354539 | 0.116512 | 0.050194 | 0.027233 | 0.04165 | 0.891203 | 0.871579 | 0.866106 | 0.86357 | 0.856628 | 0.803498 | 0 | 0.006575 | 0.235364 | 11,735 | 268 | 115 | 43.787313 | 0.828263 | 0.095611 | 0 | 0.758621 | 0 | 0 | 0.095261 | 0.031498 | 0 | 0 | 0 | 0 | 0.064039 | 0 | null | null | 0 | 0.123153 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
69ec74d55657bd37e13b5b9c8f45b462383e19d2 | 1,390 | py | Python | Algo and DSA/LeetCode-Solutions-master/Python/maximize-palindrome-length-from-subsequences.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | Algo and DSA/LeetCode-Solutions-master/Python/maximize-palindrome-length-from-subsequences.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | Algo and DSA/LeetCode-Solutions-master/Python/maximize-palindrome-length-from-subsequences.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | # Time: O((m + n)^2)
# Space: O((m + n)^2)
class Solution(object):
def longestPalindrome(self, word1, word2):
"""
:type word1: str
:type word2: str
:rtype: int
"""
s = word1+word2
dp = [[0]*len(s) for _ in xrange(len(s))]
result = 0
for j in ... | 30.888889 | 117 | 0.409353 | 215 | 1,390 | 2.637209 | 0.167442 | 0.063492 | 0.056437 | 0.028219 | 0.823633 | 0.786596 | 0.786596 | 0.786596 | 0.786596 | 0.786596 | 0 | 0.048603 | 0.407914 | 1,390 | 44 | 118 | 31.590909 | 0.64034 | 0.123741 | 0 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0e06cdd94322ab973c08fb98ac7907d30c9609f7 | 42 | py | Python | data/__all_models.py | IlyaLyamin/buynet | 8cef028cbe06af8ce25bd2c9980a9a4cf94aac79 | [
"MIT"
] | null | null | null | data/__all_models.py | IlyaLyamin/buynet | 8cef028cbe06af8ce25bd2c9980a9a4cf94aac79 | [
"MIT"
] | null | null | null | data/__all_models.py | IlyaLyamin/buynet | 8cef028cbe06af8ce25bd2c9980a9a4cf94aac79 | [
"MIT"
] | null | null | null | from . import users
from . import products | 21 | 22 | 0.785714 | 6 | 42 | 5.5 | 0.666667 | 0.606061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 42 | 2 | 22 | 21 | 0.942857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
38760036b074cddd836636f7a167e93a5b185e4b | 15,573 | py | Python | migration/20170407-fix-standard-ebooks-thumbnails.py | NYPL-Simplified/Simplified-content-server | 3edd2decfc2493f1983ac5ddcc2e3443ca30d681 | [
"Apache-2.0"
] | null | null | null | migration/20170407-fix-standard-ebooks-thumbnails.py | NYPL-Simplified/Simplified-content-server | 3edd2decfc2493f1983ac5ddcc2e3443ca30d681 | [
"Apache-2.0"
] | null | null | null | migration/20170407-fix-standard-ebooks-thumbnails.py | NYPL-Simplified/Simplified-content-server | 3edd2decfc2493f1983ac5ddcc2e3443ca30d681 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""Fixes thumbnails for Standard Ebooks that end in '.svg.png'
and thus render incorrectly (and largely invisibly)
"""
from nose.tools import set_trace
import os, sys
bin_dir = os.path.split(__file__)[0]
package_dir = os.path.join(bin_dir, "..")
sys.path.append(os.path.abspath(package_dir))
from ... | 87 | 213 | 0.760932 | 2,370 | 15,573 | 4.960338 | 0.156118 | 0.04083 | 0.059714 | 0.099524 | 0.802824 | 0.7967 | 0.7967 | 0.791256 | 0.791256 | 0.791256 | 0 | 0.024343 | 0.074103 | 15,573 | 178 | 214 | 87.488764 | 0.79097 | 0.032235 | 0 | 0 | 0 | 0.527027 | 0.769612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033784 | null | null | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
3895a969f82adb0f1006d2fe0088bb866806efc2 | 2,830 | py | Python | testRequests.py | jacblo/tests-and-early-projects | 16ca33498fe336b089e24981e148ad81e57adb13 | [
"CC0-1.0"
] | null | null | null | testRequests.py | jacblo/tests-and-early-projects | 16ca33498fe336b089e24981e148ad81e57adb13 | [
"CC0-1.0"
] | null | null | null | testRequests.py | jacblo/tests-and-early-projects | 16ca33498fe336b089e24981e148ad81e57adb13 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Nov 23 09:10:03 2020
@author: y4
"""
import requests
import time
import random
for x in range(1):
x = requests.post("https://pagead2.googlesyndication.com/pcs/activeview?xai=AKAOjsuGRTt_6bncT8b4q8oyKfrq281KRAA1B89SPphM13YPBxITGkHGbm_IxGc6ksS3VD_3e... | 94.333333 | 1,001 | 0.755477 | 463 | 2,830 | 4.580994 | 0.444924 | 0.013201 | 0.008487 | 0.013201 | 0.721358 | 0.721358 | 0.721358 | 0.721358 | 0.721358 | 0.721358 | 0 | 0.234428 | 0.063958 | 2,830 | 30 | 1,002 | 94.333333 | 0.566251 | 0.032509 | 0 | 0 | 0 | 0.25 | 0.881319 | 0.38022 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
38aedd7998e6e1b947607374fa753a918b64940d | 1,667 | py | Python | tests/test_print.py | IwoHerka/sexpr | 28e32f543a127bbbf832b2dba7cb93f9e57db3b6 | [
"MIT"
] | 7 | 2018-07-22T09:05:12.000Z | 2021-01-07T16:38:11.000Z | tests/test_print.py | IwoHerka/sexpr | 28e32f543a127bbbf832b2dba7cb93f9e57db3b6 | [
"MIT"
] | 15 | 2018-06-24T14:41:26.000Z | 2021-03-25T21:51:12.000Z | tests/test_print.py | IwoHerka/sexpr | 28e32f543a127bbbf832b2dba7cb93f9e57db3b6 | [
"MIT"
] | null | null | null | from sexpr import Sexpr
from sexpr.print import pformat
def test_pformat():
exp = ['select_exp',
['set_quantifier', 'all'],
['select_list',
['select_item', ['column_name', 'sid']],
['select_item', ['column_name', 'status']],
],
['inner_join',
['f... | 24.880597 | 57 | 0.479304 | 160 | 1,667 | 4.7125 | 0.225 | 0.212202 | 0.254642 | 0.318302 | 0.746684 | 0.746684 | 0.709549 | 0.709549 | 0.709549 | 0.709549 | 0 | 0.010161 | 0.291542 | 1,667 | 66 | 58 | 25.257576 | 0.628281 | 0 | 0 | 0.568966 | 0 | 0 | 0.539292 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 1 | 0.017241 | false | 0 | 0.034483 | 0 | 0.051724 | 0.017241 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
2a0e91e1f8f13f594e2a8e694feba76d2b998b3e | 129 | py | Python | graphite_feeder/handler/event/enum/power/__init__.py | majamassarini/automate-graphite-feeder | 0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0 | [
"MIT"
] | null | null | null | graphite_feeder/handler/event/enum/power/__init__.py | majamassarini/automate-graphite-feeder | 0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0 | [
"MIT"
] | null | null | null | graphite_feeder/handler/event/enum/power/__init__.py | majamassarini/automate-graphite-feeder | 0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0 | [
"MIT"
] | null | null | null | from graphite_feeder.handler.event.enum.power import production
from graphite_feeder.handler.event.enum.power import consumption
| 43 | 64 | 0.875969 | 18 | 129 | 6.166667 | 0.555556 | 0.216216 | 0.324324 | 0.45045 | 0.810811 | 0.810811 | 0.810811 | 0.810811 | 0 | 0 | 0 | 0 | 0.062016 | 129 | 2 | 65 | 64.5 | 0.917355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 12 |
2a45f3ae8a093bd69bd3f80a10cc45dab4c685fb | 2,791 | py | Python | Project1-MazeSolver/test_MazeSolver.py | EricCharnesky/CIS2001-Winter2021 | a633e32026726f985eea1fe7dd0da3497fff45aa | [
"MIT"
] | 3 | 2021-02-04T22:56:48.000Z | 2021-07-17T05:47:24.000Z | Project1-MazeSolver/test_MazeSolver.py | EricCharnesky/CIS2001-Winter2021 | a633e32026726f985eea1fe7dd0da3497fff45aa | [
"MIT"
] | null | null | null | Project1-MazeSolver/test_MazeSolver.py | EricCharnesky/CIS2001-Winter2021 | a633e32026726f985eea1fe7dd0da3497fff45aa | [
"MIT"
] | 1 | 2021-02-07T01:40:24.000Z | 2021-02-07T01:40:24.000Z | from unittest import TestCase
from MazeSolver import MazeSolver
class TestMazeSolver(TestCase):
def test_solve(self):
# arrange
maze = [
['S', 'W', ' ', ' ', ' '],
[' ', 'W', ' ', 'W', ' '],
[' ', ' ', ' ', ' ', ' '],
[' ', 'W', ' ', 'W', ' '],
... | 27.362745 | 68 | 0.406306 | 207 | 2,791 | 5.202899 | 0.149758 | 0.204271 | 0.038997 | 0.03714 | 0.857939 | 0.857939 | 0.851439 | 0.851439 | 0.851439 | 0.831941 | 0 | 0.003536 | 0.391974 | 2,791 | 101 | 69 | 27.633663 | 0.631114 | 0.03368 | 0 | 0.632353 | 0 | 0 | 0.048489 | 0 | 0 | 0 | 0 | 0 | 0.073529 | 1 | 0.073529 | false | 0 | 0.029412 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 1 | 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 | 7 |
aabc502f7243793cc6696613f6f4a4f90b2edb44 | 93 | py | Python | parameters_8000.py | mbreisch/real-python-rest-api | d89f70deca949273f021c995ca291e312b9fef13 | [
"BSD-3-Clause"
] | null | null | null | parameters_8000.py | mbreisch/real-python-rest-api | d89f70deca949273f021c995ca291e312b9fef13 | [
"BSD-3-Clause"
] | null | null | null | parameters_8000.py | mbreisch/real-python-rest-api | d89f70deca949273f021c995ca291e312b9fef13 | [
"BSD-3-Clause"
] | null | null | null | password="pbkdf2(1000,20,sha512)$be30318339857a4e$f163d3fdcd0c711d1db7b7e091d42420d171d782"
| 46.5 | 92 | 0.88172 | 7 | 93 | 11.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.516484 | 0.021505 | 93 | 1 | 93 | 93 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0.869565 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
6304f30891334d94b43e94140a68305f8c6e62bd | 3,440 | py | Python | progs/python-t77-date-master/python-t77-date-master/tests/set_next_week_day_test.py | am-3/TimeZoned | e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e | [
"MIT"
] | null | null | null | progs/python-t77-date-master/python-t77-date-master/tests/set_next_week_day_test.py | am-3/TimeZoned | e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e | [
"MIT"
] | 1 | 2016-02-08T18:43:49.000Z | 2016-02-08T19:21:13.000Z | progs/python-t77-date-master/python-t77-date-master/tests/set_next_week_day_test.py | am-3/TimeZoned | e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e | [
"MIT"
] | null | null | null | import unittest
from datetime import datetime, date
from t77_date import FRIDAY, ISO_FRIDAY, set_next_week_day
class SetNextWeekDayTestCase(unittest.TestCase):
def test_date_saturday_to_next_friday(self):
saturday = date(2016, 7, 2) # SATURDAY
next_friday = set_next_week_day(saturday, FRIDAY)
... | 43.544304 | 67 | 0.710465 | 444 | 3,440 | 5.164414 | 0.074324 | 0.191888 | 0.132577 | 0.174444 | 0.95072 | 0.941997 | 0.939381 | 0.910161 | 0.910161 | 0.910161 | 0 | 0.032715 | 0.200291 | 3,440 | 78 | 68 | 44.102564 | 0.8008 | 0.028779 | 0 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.1875 | false | 0 | 0.046875 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
630692d170e3e39e01cb9144acf59dcaa02d1ba0 | 4,316 | py | Python | capybara/tests/session/test_has_checked_field.py | dwt/capybara.py | eafd9ac50d02e8b57ef90d767493c8fa2be0739a | [
"MIT"
] | null | null | null | capybara/tests/session/test_has_checked_field.py | dwt/capybara.py | eafd9ac50d02e8b57ef90d767493c8fa2be0739a | [
"MIT"
] | null | null | null | capybara/tests/session/test_has_checked_field.py | dwt/capybara.py | eafd9ac50d02e8b57ef90d767493c8fa2be0739a | [
"MIT"
] | null | null | null | import pytest
class TestHasCheckedFiled:
@pytest.fixture(autouse=True)
def setup_session(self, session):
session.visit("/form")
def test_is_true_if_a_checked_field_is_on_the_page(self, session):
assert session.has_checked_field("gender_female")
assert session.has_checked_field("Ha... | 44.040816 | 87 | 0.777108 | 622 | 4,316 | 4.877814 | 0.09164 | 0.118655 | 0.071193 | 0.101516 | 0.979565 | 0.959459 | 0.917601 | 0.863217 | 0.76236 | 0.712261 | 0 | 0 | 0.145968 | 4,316 | 97 | 88 | 44.494845 | 0.823114 | 0 | 0 | 0.202899 | 0 | 0 | 0.111677 | 0 | 0 | 0 | 0 | 0 | 0.405797 | 1 | 0.376812 | false | 0 | 0.014493 | 0 | 0.42029 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
2da2983db7be31a130516be98d913fd0306cf632 | 164 | py | Python | django/contrib/gis/sitemaps/__init__.py | egenerat/gae-django | f12379483cf3917ed3cb46ca5ff0b94daf89fc50 | [
"MIT"
] | 3 | 2016-07-08T23:49:32.000Z | 2018-04-15T22:55:01.000Z | django/contrib/gis/sitemaps/__init__.py | egenerat/gae-django | f12379483cf3917ed3cb46ca5ff0b94daf89fc50 | [
"MIT"
] | 27 | 2017-02-05T15:57:04.000Z | 2018-04-15T22:57:26.000Z | django/contrib/gis/sitemaps/__init__.py | egenerat/gae-django | f12379483cf3917ed3cb46ca5ff0b94daf89fc50 | [
"MIT"
] | null | null | null | # Geo-enabled Sitemap classes.
from django.contrib.gis.sitemaps.georss import GeoRSSSitemap
from django.contrib.gis.sitemaps.kml import KMLSitemap, KMZSitemap
| 32.8 | 67 | 0.817073 | 21 | 164 | 6.380952 | 0.714286 | 0.149254 | 0.253731 | 0.298507 | 0.41791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109756 | 164 | 4 | 68 | 41 | 0.917808 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
2deea080c94c001c6d7c8f28cf0d655991d0aa50 | 1,941 | py | Python | python/15_bsearch/bs.py | ioyy900205/algo | 6ccf0d792cae34633d6044e2afd289a78d857fd5 | [
"Apache-2.0"
] | null | null | null | python/15_bsearch/bs.py | ioyy900205/algo | 6ccf0d792cae34633d6044e2afd289a78d857fd5 | [
"Apache-2.0"
] | null | null | null | python/15_bsearch/bs.py | ioyy900205/algo | 6ccf0d792cae34633d6044e2afd289a78d857fd5 | [
"Apache-2.0"
] | null | null | null | '''
Date: 2021-08-14 10:34:24
LastEditors: Liuliang
LastEditTime: 2021-08-14 11:55:32
Description:
'''
# 原始版本
def _bs(nums, target):
low, high = 0, len(nums)-1
while low <= high:
mid = low + (high - low) // 2
if nums[mid] == target:
return mid
elif nums[mid] < target:
... | 23.107143 | 62 | 0.44101 | 256 | 1,941 | 3.328125 | 0.164063 | 0.075117 | 0.122066 | 0.088028 | 0.812207 | 0.812207 | 0.794601 | 0.766432 | 0.766432 | 0.766432 | 0 | 0.068966 | 0.432251 | 1,941 | 84 | 63 | 23.107143 | 0.702359 | 0.073673 | 0 | 0.859375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078125 | false | 0 | 0 | 0 | 0.21875 | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
faeae81f91236726a47f9031dea8b4dfc2fd6f84 | 8,787 | py | Python | test/test_exec/test_shift.py | iafisher/hera-py | 773729870cd593f0dc55ac6fe8b9c8690faa73c1 | [
"MIT"
] | 2 | 2020-10-27T19:16:45.000Z | 2020-10-27T19:26:44.000Z | test/test_exec/test_shift.py | iafisher/hera-py | 773729870cd593f0dc55ac6fe8b9c8690faa73c1 | [
"MIT"
] | 141 | 2018-11-20T16:55:06.000Z | 2021-03-29T01:07:59.000Z | test/test_exec/test_shift.py | iafisher/hera-py | 773729870cd593f0dc55ac6fe8b9c8690faa73c1 | [
"MIT"
] | 1 | 2019-02-27T22:02:33.000Z | 2019-02-27T22:02:33.000Z | import pytest
from .utils import helper
from hera.utils import to_u16
from hera.vm import VirtualMachine
@pytest.fixture
def vm():
return VirtualMachine()
def test_LSL_with_small_positive(vm):
vm.registers[2] = 7
helper(vm, "LSL(R1, R2)")
assert vm.registers[1] == 14
def test_LSL_with_large_pos... | 18.117526 | 49 | 0.660294 | 1,420 | 8,787 | 3.851408 | 0.061268 | 0.179009 | 0.098738 | 0.107515 | 0.933809 | 0.907296 | 0.883891 | 0.877308 | 0.839824 | 0.672701 | 0 | 0.078069 | 0.205531 | 8,787 | 484 | 50 | 18.154959 | 0.705343 | 0 | 0 | 0.671698 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0.298113 | 1 | 0.207547 | false | 0 | 0.015094 | 0.003774 | 0.226415 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
faeff745f6edc8719b8aec858e8395dfa5316497 | 65,529 | py | Python | tccli/services/kms/kms_client.py | bopopescu/tencentcloud-cli-intl-en | e6317252557095dd10018226244e636daa4a3c67 | [
"Apache-2.0"
] | null | null | null | tccli/services/kms/kms_client.py | bopopescu/tencentcloud-cli-intl-en | e6317252557095dd10018226244e636daa4a3c67 | [
"Apache-2.0"
] | null | null | null | tccli/services/kms/kms_client.py | bopopescu/tencentcloud-cli-intl-en | e6317252557095dd10018226244e636daa4a3c67 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import json
import tccli.options_define as OptionsDefine
import tccli.format_output as FormatOutput
from tccli.nice_command import NiceCommand
import tccli.error_msg as ErrorMsg
import tccli.help_template as HelpTemplate
from tccli import __version__
from tccli.utils import Utils
from ... | 39.786885 | 105 | 0.698744 | 7,251 | 65,529 | 6.117639 | 0.043029 | 0.068171 | 0.197885 | 0.073852 | 0.810613 | 0.797268 | 0.788521 | 0.783156 | 0.778782 | 0.736987 | 0 | 0.008781 | 0.183217 | 65,529 | 1,646 | 106 | 39.811057 | 0.820003 | 0.00673 | 0 | 0.689227 | 0 | 0 | 0.072474 | 0.008686 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033149 | false | 0.000691 | 0.02279 | 0 | 0.087707 | 0.010359 | 0 | 0 | 0 | null | 0 | 1 | 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 | 7 |
4f0eea85824ce12fb4ae8d0a69a4a4eb60e7b5e2 | 2,877 | py | Python | tests/materials_provider/test_kms.py | hupe1980/aws-s3-encryption-python | 0d6cef12febdb6cbcf4657710f68e6875f30ae9f | [
"MIT"
] | null | null | null | tests/materials_provider/test_kms.py | hupe1980/aws-s3-encryption-python | 0d6cef12febdb6cbcf4657710f68e6875f30ae9f | [
"MIT"
] | null | null | null | tests/materials_provider/test_kms.py | hupe1980/aws-s3-encryption-python | 0d6cef12febdb6cbcf4657710f68e6875f30ae9f | [
"MIT"
] | null | null | null | from s3_encryption_sdk.keys import DataKeyAlgorithms
from s3_encryption_sdk.materials_providers import EncryptionContext, KmsMaterialsProvider
def test_encryption_materials(kms, key):
materials_provider = KmsMaterialsProvider(
key_id=key["KeyMetadata"]["Arn"],
client=kms,
)
plaintext = b"... | 29.659794 | 95 | 0.741745 | 295 | 2,877 | 6.935593 | 0.166102 | 0.099707 | 0.062561 | 0.117302 | 0.841642 | 0.841642 | 0.841642 | 0.841642 | 0.841642 | 0.841642 | 0 | 0.021411 | 0.172054 | 2,877 | 96 | 96 | 29.96875 | 0.837531 | 0 | 0 | 0.725806 | 0 | 0 | 0.042753 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.048387 | false | 0 | 0.032258 | 0 | 0.080645 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
87919e0118a907f067b12441758188bfc7ad5276 | 48 | py | Python | src/envs/test_smac.py | MAS-anony/ASN | ceec77f4d5514dcd5c9339ac96a435dd352789af | [
"Apache-2.0"
] | 26 | 2019-12-23T02:04:36.000Z | 2022-03-23T01:36:09.000Z | src/envs/test_smac.py | multiagent-arn/ARN | eb566fcab409965ea4684b6a18c433d34562d0d6 | [
"Apache-2.0"
] | 6 | 2021-03-19T00:29:23.000Z | 2022-03-11T23:47:17.000Z | src/envs/test_smac.py | multiagent-arn/ARN | eb566fcab409965ea4684b6a18c433d34562d0d6 | [
"Apache-2.0"
] | 7 | 2019-12-24T12:18:03.000Z | 2021-09-23T14:51:11.000Z | import smac
print('smac path: ', smac.__path__) | 16 | 35 | 0.729167 | 7 | 48 | 4.428571 | 0.571429 | 0.516129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 48 | 3 | 35 | 16 | 0.738095 | 0 | 0 | 0 | 0 | 0 | 0.22449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 7 |
87ffc0679174d06268203f06fa70419bac432a73 | 7,012 | py | Python | scripts/sdn_basic_topology_api.py | rombie/contrail-test | a68c71d6f282142501a7e2e889bbb232fdd82dc3 | [
"Apache-2.0"
] | 1 | 2017-06-13T04:42:34.000Z | 2017-06-13T04:42:34.000Z | scripts/policy/sdn_basic_topology_api.py | vkolli/contrail-test-perf | db04b8924a2c330baabe3059788b149d957a7d67 | [
"Apache-2.0"
] | 1 | 2021-06-01T22:19:48.000Z | 2021-06-01T22:19:48.000Z | scripts/policy/sdn_basic_topology_api.py | vkolli/contrail-test-perf | db04b8924a2c330baabe3059788b149d957a7d67 | [
"Apache-2.0"
] | null | null | null | '''*******AUTO-GENERATED TOPOLOGY*********'''
from vnc_api.vnc_api import *
class sdn_basic_config_api ():
def __init__(self, domain='default-domain', project='admin', username=None, password=None):
#
# Domain and project defaults: Do not change until support for
# non-default is tested!
... | 52.721805 | 160 | 0.617513 | 790 | 7,012 | 5.318987 | 0.213924 | 0.008567 | 0.089957 | 0.113279 | 0.794146 | 0.784388 | 0.758924 | 0.754641 | 0.714184 | 0.714184 | 0 | 0.036394 | 0.220194 | 7,012 | 132 | 161 | 53.121212 | 0.732078 | 0.165145 | 0 | 0.311688 | 1 | 0 | 0.151032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.116883 | 0.025974 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
35b64d09a334c284e7f061f5349a78133bd3953c | 32,418 | py | Python | yaksh/evaluator_tests/test_java_evaluation.py | patilnayan92/online | 0f9a8d8da5aa84a408a9a8e5825a045f6c86f481 | [
"Python-2.0"
] | null | null | null | yaksh/evaluator_tests/test_java_evaluation.py | patilnayan92/online | 0f9a8d8da5aa84a408a9a8e5825a045f6c86f481 | [
"Python-2.0"
] | null | null | null | yaksh/evaluator_tests/test_java_evaluation.py | patilnayan92/online | 0f9a8d8da5aa84a408a9a8e5825a045f6c86f481 | [
"Python-2.0"
] | 1 | 2015-04-05T09:51:54.000Z | 2015-04-05T09:51:54.000Z | from __future__ import unicode_literals
import unittest
import os
import shutil
import tempfile
from textwrap import dedent
from psutil import Process, pid_exists
import time
# Local Import
from yaksh import grader as gd
from yaksh.grader import Grader
from yaksh.java_code_evaluator import JavaCodeEvaluator
from yaks... | 37.564311 | 97 | 0.424301 | 2,774 | 32,418 | 4.774694 | 0.083634 | 0.040468 | 0.043488 | 0.02416 | 0.924651 | 0.920045 | 0.909324 | 0.899811 | 0.885693 | 0.879049 | 0 | 0.007716 | 0.476279 | 32,418 | 862 | 98 | 37.607889 | 0.772411 | 0.009254 | 0 | 0.765193 | 0 | 0.005525 | 0.523766 | 0.04404 | 0 | 0 | 0 | 0 | 0.053867 | 1 | 0.033149 | false | 0 | 0.037293 | 0 | 0.089779 | 0.035912 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ea0a8475a641571a2c34fc142491661c9cdddc63 | 1,711 | py | Python | hydroserver/hydroserver_core/migrations/0002_auto_20190709_2226.py | kjlippold/his_hydroserver | aaf3939965d12dd5bc74f69d22b653ce548bec0a | [
"MIT"
] | 1 | 2021-01-27T19:19:05.000Z | 2021-01-27T19:19:05.000Z | hydroserver/hydroserver_core/migrations/0002_auto_20190709_2226.py | CUAHSI-APPS/his_hydroserver | aaf3939965d12dd5bc74f69d22b653ce548bec0a | [
"MIT"
] | 1 | 2019-09-27T16:20:49.000Z | 2019-09-27T16:20:49.000Z | hydroserver/hydroserver_core/migrations/0002_auto_20190709_2226.py | kjlippold/his_hydroserver | aaf3939965d12dd5bc74f69d22b653ce548bec0a | [
"MIT"
] | 1 | 2020-06-08T21:43:38.000Z | 2020-06-08T21:43:38.000Z | # Generated by Django 2.1.7 on 2019-07-09 22:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hydroserver_core', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='timeseries',
name='begin_dat... | 31.685185 | 75 | 0.574518 | 164 | 1,711 | 5.884146 | 0.29878 | 0.165803 | 0.207254 | 0.240415 | 0.762694 | 0.762694 | 0.718135 | 0.718135 | 0.718135 | 0.718135 | 0 | 0.016034 | 0.307423 | 1,711 | 53 | 76 | 32.283019 | 0.798312 | 0.0263 | 0 | 0.659574 | 1 | 0 | 0.120793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.085106 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
ea1134e580a12dda91ecc014a49aa61efb5dbeb8 | 16,086 | py | Python | tests/test_BaseOpsParser.py | mihudec/net_parser | 025bd08e7b91b9c4674503be0f5ae6716f0af6f3 | [
"MIT"
] | null | null | null | tests/test_BaseOpsParser.py | mihudec/net_parser | 025bd08e7b91b9c4674503be0f5ae6716f0af6f3 | [
"MIT"
] | null | null | null | tests/test_BaseOpsParser.py | mihudec/net_parser | 025bd08e7b91b9c4674503be0f5ae6716f0af6f3 | [
"MIT"
] | 1 | 2021-08-09T06:34:13.000Z | 2021-08-09T06:34:13.000Z | import unittest
from net_parser.ops.BaseOpsParsers import *
from tests import BaseNetParserTest
class TestBaseOpsParser(BaseNetParserTest):
pass
class TestCdpNeighborDetailParser(BaseNetParserTest):
pass
class TestOpsParser(BaseNetParserTest):
cdp_text = """
-------------------------
Device ID: C... | 41.673575 | 127 | 0.724854 | 2,563 | 16,086 | 4.536481 | 0.120952 | 0.018061 | 0.022706 | 0.020642 | 0.873054 | 0.864367 | 0.855939 | 0.844156 | 0.838995 | 0.836415 | 0 | 0.110671 | 0.198993 | 16,086 | 386 | 128 | 41.673575 | 0.791696 | 0 | 0 | 0.783099 | 0 | 0.039437 | 0.946603 | 0.035681 | 0 | 0 | 0.00087 | 0 | 0 | 1 | 0.002817 | false | 0.005634 | 0.008451 | 0 | 0.025352 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
ea351337961c41bc65c9235bde8f813a450db74e | 8,797 | py | Python | ktapp/tests/test_message_sending.py | cu2/KT | 8a0964b77dce150358637faa679d969a07e42f07 | [
"CC-BY-3.0"
] | 5 | 2015-04-13T09:44:31.000Z | 2017-10-19T01:07:58.000Z | ktapp/tests/test_message_sending.py | cu2/KT | 8a0964b77dce150358637faa679d969a07e42f07 | [
"CC-BY-3.0"
] | 49 | 2015-02-15T07:12:05.000Z | 2022-03-11T23:11:43.000Z | ktapp/tests/test_message_sending.py | cu2/KT | 8a0964b77dce150358637faa679d969a07e42f07 | [
"CC-BY-3.0"
] | null | null | null | from django.test import TestCase
from ktapp import models
class MessageSendingTestCase(TestCase):
def setUp(self):
models.KTUser.objects.create(
id=1,
username='u1',
email='u1@example.com',
)
models.KTUser.objects.create(
id=2,
... | 43.549505 | 88 | 0.653177 | 1,084 | 8,797 | 5.144834 | 0.059963 | 0.223238 | 0.048772 | 0.109019 | 0.95338 | 0.934553 | 0.921822 | 0.89887 | 0.876995 | 0.868926 | 0 | 0.040018 | 0.22735 | 8,797 | 201 | 89 | 43.766169 | 0.780491 | 0 | 0 | 0.78534 | 0 | 0 | 0.013641 | 0 | 0 | 0 | 0 | 0 | 0.528796 | 1 | 0.036649 | false | 0 | 0.010471 | 0 | 0.052356 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
ea380841ca3c6af2b6b492697bd5ddc9b92f48fd | 207,806 | py | Python | data/enums.py | sebst/py-easyaddress | f71d76caf92e80cc69f34fc70811e95ce4b739dd | [
"MIT"
] | 1 | 2021-04-20T10:56:42.000Z | 2021-04-20T10:56:42.000Z | data/enums.py | sebst/py-easyaddress | f71d76caf92e80cc69f34fc70811e95ce4b739dd | [
"MIT"
] | null | null | null | data/enums.py | sebst/py-easyaddress | f71d76caf92e80cc69f34fc70811e95ce4b739dd | [
"MIT"
] | null | null | null | from enum import Enum
class Country(Enum):
AD = '00000000-0000-0000-0000-001000000000'
AE = '00000000-0000-0000-0000-002000000000'
AF = '00000000-0000-0000-0000-003000000000'
AG = '00000000-0000-0000-0000-004000000000'
AI = '00000000-0000-0000-0000-005000000000'
AL = '00000000-0000-0000-0000-006... | 45.126167 | 52 | 0.72495 | 28,243 | 207,806 | 5.201466 | 0.192685 | 0.43326 | 0.43326 | 0.541574 | 0.500555 | 0 | 0 | 0 | 0 | 0 | 0 | 0.709248 | 0.138033 | 207,806 | 4,604 | 53 | 45.135969 | 0.110891 | 0 | 0 | 0 | 0 | 0 | 0.689143 | 0.689143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000239 | 0 | 1 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
ea8b24982feeec6b75a570073c615748e0d9dd8a | 17,029 | py | Python | tests/test_opt.py | interesaaat/onnxconverter-common | 5f670d71184abb1f4601193f552bdda6c1f59555 | [
"MIT"
] | 1 | 2021-05-04T15:58:36.000Z | 2021-05-04T15:58:36.000Z | tests/test_opt.py | interesaaat/onnxconverter-common | 5f670d71184abb1f4601193f552bdda6c1f59555 | [
"MIT"
] | null | null | null | tests/test_opt.py | interesaaat/onnxconverter-common | 5f670d71184abb1f4601193f552bdda6c1f59555 | [
"MIT"
] | 1 | 2020-07-30T13:07:02.000Z | 2020-07-30T13:07:02.000Z | import os
import glob
import unittest
import numpy as np
import onnx
from onnx import helper
from onnx import onnx_pb as onnx_proto
from onnxconverter_common.optimizer import optimize_onnx, optimize_onnx_model
working_path = os.path.abspath(os.path.dirname(__file__))
tmp_path = os.path.join(working_path, 'temp')
cl... | 53.550314 | 116 | 0.587292 | 2,175 | 17,029 | 4.413333 | 0.071264 | 0.131264 | 0.105011 | 0.062507 | 0.859881 | 0.838629 | 0.833212 | 0.811647 | 0.805396 | 0.797271 | 0 | 0.049057 | 0.218333 | 17,029 | 317 | 117 | 53.719243 | 0.672076 | 0 | 0 | 0.745387 | 0 | 0 | 0.128193 | 0.007223 | 0 | 0 | 0 | 0 | 0.092251 | 1 | 0.04059 | false | 0 | 0.02952 | 0 | 0.077491 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
576ca5a890a2c18d7f34996c10bab812f74da0e7 | 87,853 | py | Python | nhance/nhance/report/india_gstr_1c/india_gstr_1c.py | ksbbalean/nhance | 2660878f9226d0bdaca7ffef7260c3af03a60885 | [
"MIT"
] | null | null | null | nhance/nhance/report/india_gstr_1c/india_gstr_1c.py | ksbbalean/nhance | 2660878f9226d0bdaca7ffef7260c3af03a60885 | [
"MIT"
] | null | null | null | nhance/nhance/report/india_gstr_1c/india_gstr_1c.py | ksbbalean/nhance | 2660878f9226d0bdaca7ffef7260c3af03a60885 | [
"MIT"
] | null | null | null | # Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils import flt, getdate
from frappe import _, msgprint
from datetime import datetime
import datetime
from datetime import date, time... | 40.691524 | 199 | 0.697893 | 12,015 | 87,853 | 4.698127 | 0.025884 | 0.03288 | 0.031498 | 0.01621 | 0.875461 | 0.835193 | 0.807115 | 0.791578 | 0.772321 | 0.765288 | 0 | 0.014992 | 0.199743 | 87,853 | 2,158 | 200 | 40.71038 | 0.78791 | 0.001298 | 0 | 0.751916 | 0 | 0.009579 | 0.16267 | 0.035459 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.006705 | null | null | 0.002395 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
57bc2f4fd8d9476b029e6e9217aa982dc56ffbda | 47,956 | py | Python | sdk/python/pulumi_newrelic/alert_condition.py | bob-bins/pulumi-newrelic | f8a121fb7d6e6ad979d3ccf72467b9e89769e305 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2019-09-17T20:41:26.000Z | 2022-01-13T23:54:14.000Z | sdk/python/pulumi_newrelic/alert_condition.py | bob-bins/pulumi-newrelic | f8a121fb7d6e6ad979d3ccf72467b9e89769e305 | [
"ECL-2.0",
"Apache-2.0"
] | 136 | 2019-04-29T21:34:57.000Z | 2022-03-30T17:07:03.000Z | sdk/python/pulumi_newrelic/alert_condition.py | bob-bins/pulumi-newrelic | f8a121fb7d6e6ad979d3ccf72467b9e89769e305 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2019-10-05T10:33:59.000Z | 2021-06-15T16:37:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 43.477788 | 371 | 0.613604 | 5,311 | 47,956 | 5.302015 | 0.0627 | 0.077737 | 0.052701 | 0.051564 | 0.933414 | 0.919422 | 0.908875 | 0.892397 | 0.889591 | 0.880536 | 0 | 0.003897 | 0.277588 | 47,956 | 1,102 | 372 | 43.517241 | 0.808914 | 0.457419 | 0 | 0.782313 | 1 | 0 | 0.104132 | 0.035761 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163265 | false | 0.002268 | 0.015873 | 0 | 0.276644 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
aa340a95f4493cb9d90f6ef2d9841f0cec58d215 | 122 | py | Python | src/handwriting_sample/reader/__init__.py | BDALab/handwriting-sample | a95913ade64b1854369db69ca77181cc33601225 | [
"MIT"
] | 2 | 2021-11-23T10:40:37.000Z | 2022-02-13T08:13:24.000Z | src/handwriting_sample/reader/__init__.py | BDALab/handwriting-sample | a95913ade64b1854369db69ca77181cc33601225 | [
"MIT"
] | null | null | null | src/handwriting_sample/reader/__init__.py | BDALab/handwriting-sample | a95913ade64b1854369db69ca77181cc33601225 | [
"MIT"
] | null | null | null | from handwriting_sample.reader.interface import HandwritingSampleReader
from handwriting_sample.reader.exceptions import * | 61 | 71 | 0.901639 | 13 | 122 | 8.307692 | 0.615385 | 0.277778 | 0.388889 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057377 | 122 | 2 | 72 | 61 | 0.93913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
a4ade91d8c7b92743edbd31e66481d3bd5ac55b0 | 158 | py | Python | make_colors/test.py | cumulus13/make_colors | 772e77aeaaa329dc2b34085423046957449f9773 | [
"BSD-3-Clause"
] | null | null | null | make_colors/test.py | cumulus13/make_colors | 772e77aeaaa329dc2b34085423046957449f9773 | [
"BSD-3-Clause"
] | null | null | null | make_colors/test.py | cumulus13/make_colors | 772e77aeaaa329dc2b34085423046957449f9773 | [
"BSD-3-Clause"
] | null | null | null | from make_colors import make_colors
print make_colors("TEST", 'lw', 'lr') + " --> " + make_colors("TEST 2", 'lw', 'm')
print make_colors("TEST1", 'lw', 'bl') | 39.5 | 82 | 0.632911 | 24 | 158 | 3.958333 | 0.5 | 0.526316 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014599 | 0.132911 | 158 | 4 | 83 | 39.5 | 0.678832 | 0 | 0 | 0 | 0 | 0 | 0.194969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.666667 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 7 |
a4d112c03d271b700cb473e1fdd8434c16121aec | 205 | py | Python | src/administration/admin.py | danpercic86/e-notary | ba15a9a80e2091593fb088feacfaf9574c816d6e | [
"Apache-2.0"
] | 6 | 2020-12-25T20:46:51.000Z | 2022-01-27T20:52:13.000Z | src/administration/admin.py | danpercic86/e-notary | ba15a9a80e2091593fb088feacfaf9574c816d6e | [
"Apache-2.0"
] | 59 | 2021-03-01T03:49:56.000Z | 2022-03-15T07:30:26.000Z | src/administration/admin.py | danpercic86/e-notary | ba15a9a80e2091593fb088feacfaf9574c816d6e | [
"Apache-2.0"
] | null | null | null | from django.contrib.admin import register
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from administration.models import User
@register(User)
class UserAdmin(BaseUserAdmin):
pass
| 22.777778 | 64 | 0.82439 | 26 | 205 | 6.5 | 0.576923 | 0.118343 | 0.201183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117073 | 205 | 8 | 65 | 25.625 | 0.933702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.5 | 0 | 0.666667 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
a4d72e17ab6a90d02870bc1274fdecc02b4ec251 | 46,262 | py | Python | tests/test_quotequail.py | sergio-hurtado-forcemanager/quotequail | 40b8522df0c5de8868b62950e26b928380c04453 | [
"MIT"
] | null | null | null | tests/test_quotequail.py | sergio-hurtado-forcemanager/quotequail | 40b8522df0c5de8868b62950e26b928380c04453 | [
"MIT"
] | null | null | null | tests/test_quotequail.py | sergio-hurtado-forcemanager/quotequail | 40b8522df0c5de8868b62950e26b928380c04453 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import unittest
from quotequail import *
class FileMixin(object):
def read_file(self, name):
with open(os.path.join(os.path.dirname(__file__), 'files', name), 'rb') as f:
return f.read().decode('utf8')
def assert_equal_to_file(self, string, name):
... | 46.871327 | 2,208 | 0.581752 | 6,465 | 46,262 | 4.103171 | 0.085538 | 0.044483 | 0.019867 | 0.019 | 0.823915 | 0.788668 | 0.747465 | 0.704904 | 0.663739 | 0.639537 | 0 | 0.035878 | 0.213156 | 46,262 | 986 | 2,209 | 46.918864 | 0.692866 | 0.014007 | 0 | 0.438217 | 0 | 0.073885 | 0.615508 | 0.200276 | 0 | 0 | 0 | 0 | 0.135032 | 1 | 0.073885 | false | 0 | 0.016561 | 0 | 0.100637 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a4dc23f57bc84ae983c51b650a891789cb032610 | 3,600 | py | Python | tests/state/test_DownCounterMod16.py | jamesjiang52/Bitwise | c71f151d23034b3f9e2a939f637be0eaa16c45c3 | [
"MIT"
] | null | null | null | tests/state/test_DownCounterMod16.py | jamesjiang52/Bitwise | c71f151d23034b3f9e2a939f637be0eaa16c45c3 | [
"MIT"
] | null | null | null | tests/state/test_DownCounterMod16.py | jamesjiang52/Bitwise | c71f151d23034b3f9e2a939f637be0eaa16c45c3 | [
"MIT"
] | null | null | null | import bitwise as bw
class TestDownCounterMod16:
def test_DownCounterMod16(self):
enable = bw.wire.Wire()
load_n = bw.wire.Wire()
clock = bw.wire.Wire()
load_1 = bw.wire.Wire()
load_2 = bw.wire.Wire()
load_3 = bw.wire.Wire()
load_4 = bw.wire.Wire()
o... | 25.174825 | 73 | 0.509444 | 516 | 3,600 | 3.383721 | 0.060078 | 0.24055 | 0.195304 | 0.210767 | 0.731386 | 0.723368 | 0.723368 | 0.70504 | 0.67354 | 0.65693 | 0 | 0.084375 | 0.377778 | 3,600 | 142 | 74 | 25.352113 | 0.695089 | 0 | 0 | 0.548673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20354 | 1 | 0.00885 | false | 0 | 0.00885 | 0 | 0.026549 | 0.017699 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3517f33d9a86aebebf0ff510b37856d2bea5bb81 | 1,990 | py | Python | tests/v2/test_1298-allow-nan_to_num-arguments-to-be-arrays.py | jpivarski/awkward-1.0 | 49a3ff13ef90b8778a80573211d58c544729eaa5 | [
"BSD-3-Clause"
] | 2 | 2019-09-12T03:07:23.000Z | 2019-09-27T05:32:07.000Z | tests/v2/test_1298-allow-nan_to_num-arguments-to-be-arrays.py | jpivarski/awkward-1.0 | 49a3ff13ef90b8778a80573211d58c544729eaa5 | [
"BSD-3-Clause"
] | 1 | 2019-09-26T17:57:45.000Z | 2019-09-26T17:57:45.000Z | tests/v2/test_1298-allow-nan_to_num-arguments-to-be-arrays.py | jpivarski/awkward-1.0 | 49a3ff13ef90b8778a80573211d58c544729eaa5 | [
"BSD-3-Clause"
] | null | null | null | # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
import pytest # noqa: F401
import awkward as ak # noqa: F401
to_list = ak._v2.operations.to_list
def test():
array = ak._v2.Array(
[[1.1, 2.2], [], [3.3, float("nan")], [float("-inf"), float("inf"), 7.7]]
)
... | 31.09375 | 87 | 0.411055 | 290 | 1,990 | 2.724138 | 0.165517 | 0.162025 | 0.070886 | 0.088608 | 0.813924 | 0.788608 | 0.764557 | 0.764557 | 0.75443 | 0.75443 | 0 | 0.138235 | 0.316583 | 1,990 | 63 | 88 | 31.587302 | 0.442647 | 0.053769 | 0 | 0.596154 | 0 | 0 | 0.031932 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 1 | 0.019231 | false | 0 | 0.038462 | 0 | 0.057692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
353ddb5cb0992b553d2706a167d1337118555dc5 | 12,454 | py | Python | OpenNRE/opennre/model/bag_average.py | NanoGDA/gda-extraction | 9dfedc54dab10ee4e90d8af622bcaf97e6dc2422 | [
"MIT"
] | 4 | 2021-09-07T00:36:29.000Z | 2021-12-09T21:30:01.000Z | OpenNRE/opennre/model/bag_average.py | GDAMining/gda-extraction | 67878b5bf8127413a204b12f019d776ab65aaac4 | [
"MIT"
] | 1 | 2021-09-07T13:54:54.000Z | 2021-09-07T16:09:34.000Z | OpenNRE/opennre/model/bag_average.py | NanoGDA/gda-extraction | 9dfedc54dab10ee4e90d8af622bcaf97e6dc2422 | [
"MIT"
] | null | null | null | import torch
from torch import nn, optim
from .base_model import BagRE
class BagCNNAverage(BagRE):
"""
Average policy for bag-level relation extraction.
"""
def __init__(self, sentence_encoder, num_class, rel2id):
"""
Args:
sentence_encoder: encoder for sentences
... | 36.098551 | 119 | 0.48635 | 1,534 | 12,454 | 3.839635 | 0.084746 | 0.042784 | 0.064516 | 0.01528 | 0.943124 | 0.935314 | 0.917487 | 0.889983 | 0.889983 | 0.843124 | 0 | 0.023788 | 0.375542 | 12,454 | 344 | 120 | 36.203488 | 0.733573 | 0.187731 | 0 | 0.825893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040179 | false | 0 | 0.013393 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
353f5c683ee23b1d2e1b6f079716351bff2d16e2 | 178 | py | Python | constance/__init__.py | trbs/django-constance-trbs | 60ca8139491d3c13efaf9bcd99ff41ecf8c315e3 | [
"BSD-3-Clause"
] | null | null | null | constance/__init__.py | trbs/django-constance-trbs | 60ca8139491d3c13efaf9bcd99ff41ecf8c315e3 | [
"BSD-3-Clause"
] | 1 | 2018-03-05T20:18:19.000Z | 2018-03-05T20:18:19.000Z | constance/__init__.py | trbs/django-constance-trbs | 60ca8139491d3c13efaf9bcd99ff41ecf8c315e3 | [
"BSD-3-Clause"
] | 2 | 2015-09-15T15:58:58.000Z | 2018-03-05T18:14:22.000Z | from constance import utils
from constance import settings
def load_config_class():
return utils.import_module_attr(settings.CONFIG_CLASS)
config = load_config_class()()
| 17.8 | 58 | 0.803371 | 24 | 178 | 5.666667 | 0.5 | 0.242647 | 0.279412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129213 | 178 | 9 | 59 | 19.777778 | 0.877419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0.2 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
10af1876354ddc579f960fca09e67aabf73c07fe | 2,062 | py | Python | capstone/capdb/migrations/0093_auto_20200226_1948.py | rachelaus/capstone | 2affa02706f9b1a99d032c66f258a7421c40a35e | [
"MIT"
] | 134 | 2017-07-12T17:03:06.000Z | 2022-03-27T06:38:29.000Z | capstone/capdb/migrations/0093_auto_20200226_1948.py | rachelaus/capstone | 2affa02706f9b1a99d032c66f258a7421c40a35e | [
"MIT"
] | 1,362 | 2017-06-22T17:42:49.000Z | 2022-03-31T15:28:00.000Z | capstone/capdb/migrations/0093_auto_20200226_1948.py | rachelaus/capstone | 2affa02706f9b1a99d032c66f258a7421c40a35e | [
"MIT"
] | 38 | 2017-06-22T14:46:23.000Z | 2022-03-16T05:32:54.000Z | # Generated by Django 2.2.10 on 2020-02-26 19:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('capdb', '0092_auto_20200225_1511'),
]
operations = [
migrations.AddField(
model_name='casemetadata',
name='first_pa... | 38.185185 | 112 | 0.615907 | 225 | 2,062 | 5.488889 | 0.222222 | 0.072874 | 0.084211 | 0.110121 | 0.879352 | 0.879352 | 0.838057 | 0.838057 | 0.803239 | 0.753846 | 0 | 0.032 | 0.272551 | 2,062 | 53 | 113 | 38.90566 | 0.791333 | 0.022308 | 0 | 0.851064 | 1 | 0 | 0.23138 | 0.055114 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.085106 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
529fa070f28eb9cc6ac3a2ee2e9e0b63832f5795 | 4,732 | py | Python | tests/flytekit/unit/use_scenarios/unit_testing/test_blobs.py | flytehub/flytekit | f8f53567594069b29fcd3f99abd1da71a5ef0e22 | [
"Apache-2.0"
] | 1 | 2019-10-22T05:22:16.000Z | 2019-10-22T05:22:16.000Z | tests/flytekit/unit/use_scenarios/unit_testing/test_blobs.py | chixcode/flytekit | f901aee721847c6264d44079d4fa31a75b8876e1 | [
"Apache-2.0"
] | null | null | null | tests/flytekit/unit/use_scenarios/unit_testing/test_blobs.py | chixcode/flytekit | f901aee721847c6264d44079d4fa31a75b8876e1 | [
"Apache-2.0"
] | 1 | 2019-08-28T22:27:07.000Z | 2019-08-28T22:27:07.000Z | from __future__ import absolute_import
from flytekit.sdk.types import Types
from flytekit.sdk.tasks import inputs, outputs, python_task
from flytekit.sdk.test_utils import flyte_test
from flytekit.common.utils import AutoDeletingTempDir
@flyte_test
def test_create_blob_from_local_path():
@outputs(a=Types.Blob)
... | 28.166667 | 62 | 0.588757 | 721 | 4,732 | 3.712899 | 0.087379 | 0.031378 | 0.017931 | 0.040344 | 0.816959 | 0.796787 | 0.755697 | 0.755697 | 0.714606 | 0.714606 | 0 | 0.018372 | 0.252325 | 4,732 | 167 | 63 | 28.335329 | 0.73827 | 0 | 0 | 0.76087 | 0 | 0 | 0.096999 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.115942 | false | 0.057971 | 0.036232 | 0 | 0.152174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
d81eaf90e7526515f33f59525f595129582dcf86 | 12,959 | py | Python | bureau/spiders/truckpaper_trucks.py | rusrom/scrapy_5_spiders_for_client | b831e36017a8c66a75cbce6f65a31cdcb35752f3 | [
"BSD-Source-Code"
] | null | null | null | bureau/spiders/truckpaper_trucks.py | rusrom/scrapy_5_spiders_for_client | b831e36017a8c66a75cbce6f65a31cdcb35752f3 | [
"BSD-Source-Code"
] | null | null | null | bureau/spiders/truckpaper_trucks.py | rusrom/scrapy_5_spiders_for_client | b831e36017a8c66a75cbce6f65a31cdcb35752f3 | [
"BSD-Source-Code"
] | null | null | null | # -*- coding: utf-8 -*-
import scrapy
import re
import csv
from selenium import webdriver
from scrapy.selector import Selector
from time import sleep
from random import randint
class TruckpaperTrucksSpider(scrapy.Spider):
name = 'truckpaper-trucks'
# allowed_domains = ['truckpaper.com']
allowed_domains =... | 97.43609 | 408 | 0.735165 | 1,415 | 12,959 | 6.722968 | 0.139223 | 0.309051 | 0.115106 | 0.191317 | 0.873121 | 0.871754 | 0.871754 | 0.864396 | 0.858404 | 0.858404 | 0 | 0.010702 | 0.127556 | 12,959 | 132 | 409 | 98.174242 | 0.830709 | 0.096998 | 0 | 0 | 0 | 0.707071 | 0.794246 | 0.02132 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010101 | false | 0 | 0.070707 | 0 | 0.111111 | 0.010101 | 0 | 0 | 0 | null | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
dc2b95b4fe62aab611b4512f18af3fa38734f07e | 7,968 | py | Python | tests/test_model/test_bottom_up_head.py | chaowentao/mmpose | b528c60ef4fab56d35d1ed7e187023794639be26 | [
"Apache-2.0"
] | 15 | 2020-12-10T07:43:34.000Z | 2022-03-21T08:38:36.000Z | tests/test_model/test_bottom_up_head.py | chaowentao/mmpose | b528c60ef4fab56d35d1ed7e187023794639be26 | [
"Apache-2.0"
] | null | null | null | tests/test_model/test_bottom_up_head.py | chaowentao/mmpose | b528c60ef4fab56d35d1ed7e187023794639be26 | [
"Apache-2.0"
] | 10 | 2020-12-17T07:57:10.000Z | 2022-03-08T07:17:12.000Z | import numpy as np
import pytest
import torch
from mmpose.models import BottomUpHigherResolutionHead, BottomUpSimpleHead
def test_bottom_up_simple_head():
"""test bottom up simple head."""
with pytest.raises(TypeError):
# extra
_ = BottomUpSimpleHead(
in_channels=512, num_joints=... | 32.129032 | 74 | 0.615211 | 1,027 | 7,968 | 4.510224 | 0.082765 | 0.032383 | 0.051813 | 0.079447 | 0.896589 | 0.883636 | 0.869819 | 0.869819 | 0.841753 | 0.841537 | 0 | 0.064746 | 0.259538 | 7,968 | 247 | 75 | 32.259109 | 0.720339 | 0.05246 | 0 | 0.890909 | 0 | 0 | 0.036257 | 0 | 0 | 0 | 0 | 0 | 0.118182 | 1 | 0.013636 | false | 0 | 0.018182 | 0 | 0.036364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
dc48e3e7df4bad22d36538a50f7563284d5b289e | 103 | py | Python | csdl/utils/get_array_indices.py | LSDOlab/csdl | 04c2c5764f6ca9b865ec87ecfeaf6f22ecacc5a3 | [
"MIT"
] | null | null | null | csdl/utils/get_array_indices.py | LSDOlab/csdl | 04c2c5764f6ca9b865ec87ecfeaf6f22ecacc5a3 | [
"MIT"
] | null | null | null | csdl/utils/get_array_indices.py | LSDOlab/csdl | 04c2c5764f6ca9b865ec87ecfeaf6f22ecacc5a3 | [
"MIT"
] | 1 | 2021-10-04T19:40:32.000Z | 2021-10-04T19:40:32.000Z | import numpy as np
def get_array_indices(*shape):
return np.arange(np.prod(shape)).reshape(shape) | 20.6 | 51 | 0.747573 | 17 | 103 | 4.411765 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126214 | 103 | 5 | 51 | 20.6 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
dc5c0386cd784e34ed1cffd4986544d375b515cf | 2,733 | py | Python | wikidata_research/dictionary_evaluation_handler.py | sjuenger/WikiMETA | 13ed293b4bda8ff0fc10b532907ca35c24a12616 | [
"MIT"
] | null | null | null | wikidata_research/dictionary_evaluation_handler.py | sjuenger/WikiMETA | 13ed293b4bda8ff0fc10b532907ca35c24a12616 | [
"MIT"
] | null | null | null | wikidata_research/dictionary_evaluation_handler.py | sjuenger/WikiMETA | 13ed293b4bda8ff0fc10b532907ca35c24a12616 | [
"MIT"
] | null | null | null | import wikidata_research.dictionary.dictionary_evaluation as dictionary_evaluation
# mode must either be "reference" or "qualifier"
# the x must by at least 1 or grater
def generate_information_of_property_dictionary(x, mode):
if mode not in ["qualifier", "reference"]:
error_message = "Not supported mode.... | 53.588235 | 92 | 0.817051 | 376 | 2,733 | 5.494681 | 0.154255 | 0.309777 | 0.333979 | 0.226525 | 0.78122 | 0.78122 | 0.78122 | 0.78122 | 0.78122 | 0.752662 | 0 | 0.002079 | 0.120015 | 2,733 | 50 | 93 | 54.66 | 0.856965 | 0.066959 | 0 | 0.842105 | 1 | 0 | 0.040487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.026316 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
dc6929b8d65865c9aa2f2eb4875895919dc25243 | 6,261 | py | Python | tests/e2e/test_comparatori.py | mario33881/blifparser | 403076573be4a50dc606bda92bf2b9464773d5ca | [
"MIT"
] | null | null | null | tests/e2e/test_comparatori.py | mario33881/blifparser | 403076573be4a50dc606bda92bf2b9464773d5ca | [
"MIT"
] | null | null | null | tests/e2e/test_comparatori.py | mario33881/blifparser | 403076573be4a50dc606bda92bf2b9464773d5ca | [
"MIT"
] | null | null | null | import os
import sys
import unittest
import urllib.request as urllib
import tempfile
try:
import httplib
except ImportError:
import http.client as httplib
# import fsm.py from the ../../blifparser/keywords folder
curr_dir = os.path.realpath(os.path.dirname(__file__))
blifparser_path = os.path.joi... | 39.377358 | 119 | 0.5793 | 691 | 6,261 | 5.196816 | 0.217077 | 0.200501 | 0.21164 | 0.077973 | 0.751323 | 0.724589 | 0.70064 | 0.70064 | 0.70064 | 0.70064 | 0 | 0.029163 | 0.282543 | 6,261 | 158 | 120 | 39.626582 | 0.770258 | 0.109407 | 0 | 0.505051 | 0 | 0 | 0.101468 | 0.010779 | 0 | 0 | 0 | 0 | 0.484848 | 1 | 0.030303 | false | 0 | 0.131313 | 0 | 0.191919 | 0.010101 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
dc8b06e07dfd551ce467986db544bcec9887e9e4 | 210 | py | Python | spymock/utils.py | lambdalisue/python-spymock | e2095b52bf7ca6252a2666500b1a522d3c6ed4a6 | [
"MIT"
] | 3 | 2020-12-18T07:33:37.000Z | 2020-12-19T21:47:42.000Z | spymock/utils.py | lambdalisue/python-spymock | e2095b52bf7ca6252a2666500b1a522d3c6ed4a6 | [
"MIT"
] | 1 | 2020-12-21T03:22:09.000Z | 2020-12-21T03:22:09.000Z | spymock/utils.py | lambdalisue/python-spymock | e2095b52bf7ca6252a2666500b1a522d3c6ed4a6 | [
"MIT"
] | null | null | null | from unittest.mock import patch
from .spymock import SpyMock
def spy(target, attribute, **kwargs):
return patch.object(
target, attribute, new=SpyMock(getattr(target, attribute)), **kwargs
)
| 21 | 76 | 0.704762 | 25 | 210 | 5.92 | 0.6 | 0.304054 | 0.283784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185714 | 210 | 9 | 77 | 23.333333 | 0.865497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
dc93ef6b1972ec8d4e613bd350a9e2a97bf36898 | 4,055 | py | Python | tests/test_urls_collection_icon.py | CubieDev/TheNounProjectAPI | 6db6031800047421146bc72e74060b8af9a7b3be | [
"MIT"
] | 8 | 2019-10-18T21:07:33.000Z | 2021-01-10T01:36:23.000Z | tests/test_urls_collection_icon.py | CubieDev/TheNounProjectAPI | 6db6031800047421146bc72e74060b8af9a7b3be | [
"MIT"
] | 1 | 2020-07-20T14:00:21.000Z | 2020-08-24T10:13:04.000Z | tests/test_urls_collection_icon.py | CubieDev/TheNounProjectAPI | 6db6031800047421146bc72e74060b8af9a7b3be | [
"MIT"
] | 1 | 2021-07-22T01:52:04.000Z | 2021-07-22T01:52:04.000Z | import unittest
import context
from TheNounProjectAPI.api import API
from TheNounProjectAPI.exceptions import IncorrectType
class CollectionIconsURLs(unittest.TestCase):
def setUp(self):
key = "mock api key to satisfy type check in api._get_oauth()"
secret = "mock secret key to satisfy type che... | 36.863636 | 105 | 0.66979 | 547 | 4,055 | 4.661792 | 0.135283 | 0.152941 | 0.211765 | 0.172549 | 0.886275 | 0.883922 | 0.872157 | 0.846275 | 0.836863 | 0.760784 | 0 | 0.018905 | 0.243403 | 4,055 | 110 | 106 | 36.863636 | 0.812256 | 0.18471 | 0 | 0.338983 | 0 | 0.033898 | 0.157843 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 1 | 0.186441 | false | 0 | 0.067797 | 0 | 0.305085 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
dca51d971ad57d32bd92ca3a4aef034b2da93c25 | 230 | py | Python | Chapter 10/03 - Pytests fixtures/test_fixtures.py | bernoli/Expert-Python-Programming-Fourth-Edition | 05b4bd64c66bea3252f06afee7a7a1e2bd93d171 | [
"MIT"
] | 56 | 2021-05-24T15:24:51.000Z | 2022-03-21T19:38:27.000Z | Chapter 10/03 - Pytests fixtures/test_fixtures.py | saibaldas/Expert-Python-Programming-Fourth-Edition | 572d47a802e7b1fe429f782d9aeb62f411cb5307 | [
"MIT"
] | 2 | 2020-11-03T12:53:26.000Z | 2021-05-11T23:47:39.000Z | Chapter 10/03 - Pytests fixtures/test_fixtures.py | saibaldas/Expert-Python-Programming-Fourth-Edition | 572d47a802e7b1fe429f782d9aeb62f411cb5307 | [
"MIT"
] | 37 | 2021-05-27T12:32:21.000Z | 2022-03-10T23:05:54.000Z | import pytest
@pytest.fixture
def dependency():
return "fixture value"
@pytest.fixture
def dependency_as_generator():
# setup code
yield "fixture value"
# teardown code
def test_fixture(dependency):
pass
| 12.777778 | 30 | 0.704348 | 27 | 230 | 5.888889 | 0.555556 | 0.163522 | 0.201258 | 0.327044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213043 | 230 | 17 | 31 | 13.529412 | 0.878453 | 0.104348 | 0 | 0.222222 | 0 | 0 | 0.128079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.111111 | 0.111111 | 0.111111 | 0.555556 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 7 |
f4c4b0395b9b3432442a13c1b8608f2fccf4287f | 197 | py | Python | dags/config/__init__.py | geosolutions-it/getit-airflow | f302d964f42cc20ed3d0d5df892b4b7e78db25e1 | [
"MIT"
] | 1 | 2020-04-19T08:33:43.000Z | 2020-04-19T08:33:43.000Z | dags/config/__init__.py | alegent/ibf-airflow | 1139616e64a9beebe29b7d416cdc1e999d588a13 | [
"MIT"
] | 3 | 2020-04-17T10:17:22.000Z | 2020-05-27T07:55:28.000Z | dags/config/__init__.py | alegent/ibf-airflow | 1139616e64a9beebe29b7d416cdc1e999d588a13 | [
"MIT"
] | 2 | 2020-05-07T07:03:17.000Z | 2020-05-20T08:15:41.000Z | try:
from settings import *
from override.settings import *
from override.secrets import *
# legacy
from xcom_keys import *
from workflow_settings import *
except:
pass
| 19.7 | 35 | 0.680203 | 23 | 197 | 5.73913 | 0.521739 | 0.318182 | 0.272727 | 0.393939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269036 | 197 | 9 | 36 | 21.888889 | 0.916667 | 0.030457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.125 | 0.625 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 9 |
7626518a79f4f6b7106e7b88f738eb7059924d87 | 592 | py | Python | test/debug_sample.py | trungtv/imgann | 130b2968dc5d1d8ecd513900291169e688869438 | [
"MIT"
] | null | null | null | test/debug_sample.py | trungtv/imgann | 130b2968dc5d1d8ecd513900291169e688869438 | [
"MIT"
] | null | null | null | test/debug_sample.py | trungtv/imgann | 130b2968dc5d1d8ecd513900291169e688869438 | [
"MIT"
] | null | null | null |
from imgann import Sample
Sample.show_samples('F:\JetBrain Project Files\Pycharm\security-point-object-detecton-Torch\data\data',
'F:\JetBrain Project Files\Pycharm\security-point-object-detecton-Torch\data\COCO\dataset.json',6,'coc')
# Sample.describe_ann('F:\JetBrain Project Files\Pycharm\secu... | 53.818182 | 125 | 0.748311 | 79 | 592 | 5.56962 | 0.303797 | 0.102273 | 0.181818 | 0.238636 | 0.831818 | 0.831818 | 0.831818 | 0.831818 | 0.831818 | 0.831818 | 0 | 0.001905 | 0.113176 | 592 | 10 | 126 | 59.2 | 0.83619 | 0.548986 | 0 | 0 | 0 | 0.666667 | 0.671756 | 0.507634 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 13 |
5239c024899b5e655a7ed966be086719e414fea8 | 23,413 | py | Python | tests/test_rwlock_async.py | kdeyev/pyReaderWriterLock | 7836c7d724b839a974089773c2f6449c39e9c8d2 | [
"MIT"
] | 62 | 2016-06-27T13:19:31.000Z | 2022-03-02T10:51:32.000Z | tests/test_rwlock_async.py | kdeyev/pyReaderWriterLock | 7836c7d724b839a974089773c2f6449c39e9c8d2 | [
"MIT"
] | 12 | 2018-09-26T08:17:55.000Z | 2021-09-21T04:51:53.000Z | tests/test_rwlock_async.py | kdeyev/pyReaderWriterLock | 7836c7d724b839a974089773c2f6449c39e9c8d2 | [
"MIT"
] | 12 | 2018-05-02T04:10:47.000Z | 2021-08-10T12:05:33.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Unit tests for rwlock_async."""
import unittest
import sys
import time
import asyncio
from typing import Union
from readerwriterlock import rwlock_async
class TestRWLock_Async(unittest.TestCase):
"""Test RWLock different strategies."""
def setUp(self) -> None:
... | 34.430882 | 133 | 0.703925 | 3,324 | 23,413 | 4.675391 | 0.075812 | 0.038608 | 0.043755 | 0.056882 | 0.856637 | 0.826845 | 0.802715 | 0.770864 | 0.75748 | 0.723763 | 0 | 0.007647 | 0.195661 | 23,413 | 679 | 134 | 34.481591 | 0.817226 | 0.197155 | 0 | 0.709184 | 0 | 0 | 0.006334 | 0.001333 | 0 | 0 | 0 | 0 | 0.196429 | 1 | 0.063776 | false | 0 | 0.015306 | 0 | 0.086735 | 0.007653 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
52728b59c019551fa10b53007e4a9e6a8af7538a | 1,408 | py | Python | utils/listFileSummaries.py | Neilstid/DBSClient-1 | 27894eedee2036564ae054231675dcb951395fb9 | [
"Apache-2.0"
] | 1 | 2021-07-02T14:51:49.000Z | 2021-07-02T14:51:49.000Z | utils/listFileSummaries.py | Neilstid/DBSClient-1 | 27894eedee2036564ae054231675dcb951395fb9 | [
"Apache-2.0"
] | 35 | 2021-07-30T14:47:52.000Z | 2022-03-19T12:45:44.000Z | utils/listFileSummaries.py | Neilstid/DBSClient-1 | 27894eedee2036564ae054231675dcb951395fb9 | [
"Apache-2.0"
] | 6 | 2021-07-02T14:34:41.000Z | 2022-01-25T22:57:04.000Z |
from dbs.apis.dbsClient import *
url="https://cmsweb.cern.ch/dbs/prod/global/DBSReader/"
#url="https://dbs3-test2.cern.ch/dbs/dev/global/DBSReader/"
dbs3api = DbsApi(url=url)
dataset = '/JetHT/Run2018A-v1/RAW'
print(dbs3api.listFileSummaries(dataset=dataset, validFileOnly=1))
print("\n")
print(dbs3api.listFileSummar... | 36.102564 | 109 | 0.81392 | 212 | 1,408 | 5.103774 | 0.278302 | 0.088725 | 0.214418 | 0.19963 | 0.813309 | 0.745841 | 0.745841 | 0.7061 | 0.7061 | 0.7061 | 0 | 0.135015 | 0.042614 | 1,408 | 38 | 110 | 37.052632 | 0.667656 | 0.041193 | 0 | 0.592593 | 0 | 0 | 0.445846 | 0.391691 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 0.62963 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 9 |
528fc881aefed349a9e1dc27640d07c8a8ee6c20 | 8,258 | py | Python | src/larksuiteoapi/service/doc/v2/api.py | keeperlibofan/oapi-sdk-python | 5743dd34eb0bfc30693e9b6e6f5cf35ac82edb26 | [
"Apache-2.0"
] | null | null | null | src/larksuiteoapi/service/doc/v2/api.py | keeperlibofan/oapi-sdk-python | 5743dd34eb0bfc30693e9b6e6f5cf35ac82edb26 | [
"Apache-2.0"
] | null | null | null | src/larksuiteoapi/service/doc/v2/api.py | keeperlibofan/oapi-sdk-python | 5743dd34eb0bfc30693e9b6e6f5cf35ac82edb26 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
# Code generated by lark suite oapi sdk gen
from typing import *
from ....api import Request, Response, set_timeout, set_tenant_key, set_user_access_token, set_path_params, \
set_query_params, set_response_stream, set_is_response_stream, FormData, FormDataFile
from ....config import Config... | 32.900398 | 114 | 0.633689 | 985 | 8,258 | 5.032487 | 0.086294 | 0.153117 | 0.081703 | 0.048416 | 0.785152 | 0.771434 | 0.759734 | 0.73956 | 0.73956 | 0.713335 | 0 | 0.000985 | 0.262654 | 8,258 | 250 | 115 | 33.032 | 0.813106 | 0.151005 | 0 | 0.753333 | 1 | 0 | 0.023523 | 0.01463 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14 | false | 0 | 0.033333 | 0 | 0.313333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5e7250ad2a2183e2bbffafb040f764a271b93b65 | 1,056 | py | Python | test/test_Fixes_point_iteration.py | Magho/Determine-roots-of-equations-project | 81f451dc8999ccf46183575adc160e8eff69e581 | [
"MIT"
] | null | null | null | test/test_Fixes_point_iteration.py | Magho/Determine-roots-of-equations-project | 81f451dc8999ccf46183575adc160e8eff69e581 | [
"MIT"
] | null | null | null | test/test_Fixes_point_iteration.py | Magho/Determine-roots-of-equations-project | 81f451dc8999ccf46183575adc160e8eff69e581 | [
"MIT"
] | 1 | 2019-04-12T22:42:40.000Z | 2019-04-12T22:42:40.000Z | # # ---------------------------------------------------test 1 -------------------------------------------------------
#
# x = Symbol('x')
# function_formula = exp(-x)
#
# call_func = Fixed_point_iteration_method.FixedPointIteration(function_formula, 0.1, 0, 0)
#
# # bool1 = call_func.verify_there_is_a_root()
# # print(... | 32 | 117 | 0.417614 | 93 | 1,056 | 4.419355 | 0.311828 | 0.155718 | 0.116788 | 0.077859 | 0.944039 | 0.832117 | 0.832117 | 0.832117 | 0.832117 | 0.506083 | 0 | 0.018692 | 0.088068 | 1,056 | 32 | 118 | 33 | 0.4081 | 0.933712 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
5e7f474645a27eb4ed313349083bd9c8fb9fc871 | 5,149 | py | Python | tests/test_command_arf_to_graph.py | TomasTomecek/oval-graph | 7c7e7930028f88ec60bfc410b082324e492e340f | [
"Apache-2.0"
] | null | null | null | tests/test_command_arf_to_graph.py | TomasTomecek/oval-graph | 7c7e7930028f88ec60bfc410b082324e492e340f | [
"Apache-2.0"
] | 1 | 2021-03-23T10:55:54.000Z | 2021-03-23T10:55:54.000Z | tests/test_command_arf_to_graph.py | TomasTomecek/oval-graph | 7c7e7930028f88ec60bfc410b082324e492e340f | [
"Apache-2.0"
] | null | null | null | import os
import subprocess
import pexpect
import pytest
from readchar import key
import tests.any_test_help
@pytest.mark.usefixtures("remove_generated_reports_in_root")
def test_command_arf_to_graph():
subprocess.check_call(['python3',
'-m',
'oval_graph.com... | 36.006993 | 92 | 0.483395 | 519 | 5,149 | 4.470135 | 0.202312 | 0.028017 | 0.056034 | 0.062069 | 0.846983 | 0.810345 | 0.759052 | 0.732328 | 0.715948 | 0.715948 | 0 | 0.008436 | 0.401437 | 5,149 | 142 | 93 | 36.260563 | 0.744322 | 0 | 0 | 0.653226 | 1 | 0 | 0.241989 | 0.176151 | 0 | 0 | 0 | 0 | 0.080645 | 1 | 0.064516 | false | 0 | 0.048387 | 0 | 0.112903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5ec46587991f50bbd8de642138046d738aa5e059 | 545,830 | py | Python | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_infra_xtc_agent_oper.py | CiscoDevNet/ydk-py | 073731fea50694d0bc6cd8ebf10fec308dcc0aa9 | [
"ECL-2.0",
"Apache-2.0"
] | 177 | 2016-03-15T17:03:51.000Z | 2022-03-18T16:48:44.000Z | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_infra_xtc_agent_oper.py | CiscoDevNet/ydk-py | 073731fea50694d0bc6cd8ebf10fec308dcc0aa9 | [
"ECL-2.0",
"Apache-2.0"
] | 18 | 2016-03-30T10:45:22.000Z | 2020-07-14T16:28:13.000Z | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_infra_xtc_agent_oper.py | CiscoDevNet/ydk-py | 073731fea50694d0bc6cd8ebf10fec308dcc0aa9 | [
"ECL-2.0",
"Apache-2.0"
] | 85 | 2016-03-16T20:38:57.000Z | 2022-02-22T04:26:02.000Z | """ Cisco_IOS_XR_infra_xtc_agent_oper
This module contains a collection of YANG definitions
for Cisco IOS\-XR infra\-xtc\-agent package operational data.
This module contains definitions
for the following management objects\:
pcc\: Path\-computation client in XTC
xtc\: xtc
Copyright (c) 2013\-2018 by Cisco Syst... | 44.061188 | 1,092 | 0.428034 | 44,814 | 545,830 | 4.921676 | 0.013701 | 0.028255 | 0.035319 | 0.04193 | 0.870452 | 0.834494 | 0.801256 | 0.779883 | 0.761824 | 0.74397 | 0 | 0.033906 | 0.462151 | 545,830 | 12,387 | 1,093 | 44.064745 | 0.717386 | 0.221089 | 0 | 0.712746 | 0 | 0.001658 | 0.138929 | 0.047576 | 0.000207 | 0 | 0 | 0 | 0 | 1 | 0.089948 | false | 0 | 0.033161 | 0 | 0.199585 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0d66970434c38d37db95abdf957b12b3aed6e2b5 | 8,267 | py | Python | tests/test_signer.py | erykpekala/python-cwt | 44db646cc0720b41f23425e2bed03bd5d1a7b6c7 | [
"MIT"
] | 1 | 2021-08-09T22:07:54.000Z | 2021-08-09T22:07:54.000Z | tests/test_signer.py | erykpekala/python-cwt | 44db646cc0720b41f23425e2bed03bd5d1a7b6c7 | [
"MIT"
] | null | null | null | tests/test_signer.py | erykpekala/python-cwt | 44db646cc0720b41f23425e2bed03bd5d1a7b6c7 | [
"MIT"
] | null | null | null | """
Tests for Signer.
"""
import cbor2
import pytest
from cwt import COSEKey, Signer
from .utils import key_path
class TestSigner:
"""
Tests for Signer.
"""
def test_signer_constructor(self):
signer = Signer(
cose_key=COSEKey.from_jwk(
{
"kty"... | 36.742222 | 81 | 0.524737 | 820 | 8,267 | 5.173171 | 0.114634 | 0.070721 | 0.061292 | 0.080622 | 0.917963 | 0.916549 | 0.905469 | 0.898868 | 0.884724 | 0.884724 | 0 | 0.055109 | 0.352486 | 8,267 | 224 | 82 | 36.90625 | 0.737344 | 0.004234 | 0 | 0.753695 | 0 | 0 | 0.245828 | 0.131319 | 0 | 0 | 0 | 0 | 0.17734 | 1 | 0.054187 | false | 0 | 0.019704 | 0 | 0.078818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0dda443c8645006cdda65ccc211ad5c21d734448 | 8,420 | py | Python | checkio/PyCon TW/The Einstein Problem-Lite/test_einstein_problem.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 39 | 2015-02-09T13:24:12.000Z | 2019-05-16T17:51:19.000Z | checkio/PyCon TW/The Einstein Problem-Lite/test_einstein_problem.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 1 | 2019-10-21T16:18:14.000Z | 2019-10-21T16:18:14.000Z | checkio/PyCon TW/The Einstein Problem-Lite/test_einstein_problem.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 22 | 2015-01-30T18:00:05.000Z | 2021-05-22T02:57:23.000Z | import unittest
from einstein_problem import answer
class Tests(unittest.TestCase):
TESTS = {
"Basic": [
{
"input": (
(
'Norwegian-Dunhill',
'Marlboro-blue',
'Brit-3',
... | 32.762646 | 53 | 0.23943 | 430 | 8,420 | 4.662791 | 0.14186 | 0.05586 | 0.083791 | 0.115711 | 0.833915 | 0.833915 | 0.790025 | 0.790025 | 0.790025 | 0.790025 | 0 | 0.019748 | 0.651188 | 8,420 | 256 | 54 | 32.890625 | 0.662921 | 0.0019 | 0 | 0.787149 | 0 | 0 | 0.236491 | 0 | 0 | 0 | 0 | 0 | 0.008032 | 1 | 0.008032 | false | 0 | 0.008032 | 0 | 0.024096 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
21b80c27146304b1733d99363201f5be609e3df6 | 1,100 | py | Python | J_Mathematical_Modeling/Section 1/solutionQuestion4explanation.py | sylvain2002/CBM101 | 4d9dc4264ce81cc2af58ceaff96fd0ed7a570af5 | [
"MIT"
] | 7 | 2019-07-03T07:41:55.000Z | 2022-02-06T20:25:37.000Z | J_Mathematical_Modeling/Section 1/solutionQuestion4explanation.py | sylvain2002/CBM101 | 4d9dc4264ce81cc2af58ceaff96fd0ed7a570af5 | [
"MIT"
] | 9 | 2019-03-14T15:15:09.000Z | 2019-08-01T14:18:21.000Z | J_Mathematical_Modeling/Section 1/solutionQuestion4explanation.py | sylvain2002/CBM101 | 4d9dc4264ce81cc2af58ceaff96fd0ed7a570af5 | [
"MIT"
] | 11 | 2019-03-12T10:43:11.000Z | 2021-10-05T12:15:00.000Z | print("Because we want to compute the ratio of internal to external glucose, both need to be part of the model. Glucose is imported with the help of Hxt proteins. Rgt2 and Snf3 are both redundantly inhibiting Mth1 and Std1, which are also redundant in activating Rgt1, resulting in HXT genes repression. Again, the linea... | 1,100 | 1,100 | 0.807273 | 181 | 1,100 | 4.906077 | 0.558011 | 0.036036 | 0.024775 | 0.033784 | 0.038288 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016234 | 0.16 | 1,100 | 1 | 1,100 | 1,100 | 0.944805 | 0 | 0 | 0 | 0 | 1 | 0.990917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 9 |
1d041b445c9fbf0d8b139a64825e2a06a5f802fa | 63,093 | py | Python | test/user17_time.py | time-track-tool/time-track-tool | a1c280f32a7766e460c862633b748fa206256f24 | [
"MIT"
] | null | null | null | test/user17_time.py | time-track-tool/time-track-tool | a1c280f32a7766e460c862633b748fa206256f24 | [
"MIT"
] | 1 | 2019-07-03T13:32:38.000Z | 2019-07-03T13:32:38.000Z | test/user17_time.py | time-track-tool/time-track-tool | a1c280f32a7766e460c862633b748fa206256f24 | [
"MIT"
] | 1 | 2019-05-15T16:01:31.000Z | 2019-05-15T16:01:31.000Z | from roundup import date
def import_data_17 (db, user, dep, olo) :
sd = dict (months = 1.0, required_overtime = 1, weekly = 0)
otp = db.overtime_period.filter (None, sd)
assert len (otp) == 1
otp = otp [0]
db.user_dynamic.create \
( hours_fri = 7.5
, hours_sun = 0.... | 29.760849 | 64 | 0.462254 | 7,283 | 63,093 | 3.859673 | 0.016339 | 0.076272 | 0.057204 | 0.163927 | 0.986695 | 0.986553 | 0.98392 | 0.98079 | 0.976912 | 0.972145 | 0 | 0.134774 | 0.412581 | 63,093 | 2,119 | 65 | 29.774894 | 0.623685 | 0.000349 | 0 | 0.700992 | 0 | 0 | 0.092327 | 0 | 0 | 0 | 0 | 0 | 0.000945 | 1 | 0.000472 | false | 0 | 0.000945 | 0 | 0.001417 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
df43ae108b046e57c43b529669a049ef02f99e5d | 3,681 | py | Python | pychoir/comparisons.py | jerry-git/pychoir | f3045bfe0a3586232bbfb5adfe425d9b947b4a9f | [
"MIT"
] | 12 | 2020-12-09T00:15:04.000Z | 2022-02-27T16:39:15.000Z | pychoir/comparisons.py | jerry-git/pychoir | f3045bfe0a3586232bbfb5adfe425d9b947b4a9f | [
"MIT"
] | 1 | 2021-01-09T23:01:03.000Z | 2021-01-15T00:39:48.000Z | pychoir/comparisons.py | jerry-git/pychoir | f3045bfe0a3586232bbfb5adfe425d9b947b4a9f | [
"MIT"
] | 2 | 2021-06-01T12:17:12.000Z | 2021-06-22T00:55:12.000Z | from typing import Any
from pychoir.core import Matcher
class EqualTo(Matcher):
"""A somewhat redundant matcher checking for equality. Most Matchers can take
values and/or Matchers and **you should prefer bare values instead of wrapping them
in EqualTo**.
:param value: The value to compare against.
... | 23.00625 | 90 | 0.622657 | 423 | 3,681 | 5.276596 | 0.177305 | 0.09319 | 0.060932 | 0.045699 | 0.709677 | 0.709677 | 0.700717 | 0.700717 | 0.6819 | 0.6819 | 0 | 0.008203 | 0.271394 | 3,681 | 159 | 91 | 23.150943 | 0.824012 | 0.41103 | 0 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.321429 | false | 0 | 0.035714 | 0.214286 | 0.678571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
df84a4259efd4416fb20bfde4eb889b7b4ce250d | 317,815 | py | Python | parser/team06/parsetab.py | 18SebastianVC/tytus | 2b22f4339356b6cf46e3235a5219f68e5ba5573b | [
"MIT"
] | null | null | null | parser/team06/parsetab.py | 18SebastianVC/tytus | 2b22f4339356b6cf46e3235a5219f68e5ba5573b | [
"MIT"
] | null | null | null | parser/team06/parsetab.py | 18SebastianVC/tytus | 2b22f4339356b6cf46e3235a5219f68e5ba5573b | [
"MIT"
] | null | null | null |
# parsetab.py
# This file is automatically generated. Do not edit.
# pylint: disable=W,C,R
_tabversion = '3.10'
_lr_method = 'LALR'
_lr_signature = 'leftTYPECASTrightUMINUSrightUNOTleftMASMENOSleftPOTENCIAleftPORDIVRESIDUOleftANDORSIMBOLOOR2SIMBOLOORSIMBOLOAND2leftDESPLAZAMIENTOIZQUIERDADESPLAZAMIENTODERECHAABS ACOS... | 1,107.369338 | 263,755 | 0.67774 | 71,807 | 317,815 | 2.990823 | 0.018062 | 0.0298 | 0.007878 | 0.010505 | 0.800365 | 0.78066 | 0.743223 | 0.723247 | 0.711034 | 0.702759 | 0 | 0.581492 | 0.024278 | 317,815 | 286 | 263,756 | 1,111.241259 | 0.111068 | 0.000264 | 0 | 0.007246 | 1 | 0.003623 | 0.13488 | 0.024656 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
10da60f765c4d584380b7d5764256bcc2499f823 | 1,825 | py | Python | fixture/group.py | MarjanShk/PythonTraining | c40b389157f32786a3c431d2ad02a5d5d29053c3 | [
"Apache-2.0"
] | null | null | null | fixture/group.py | MarjanShk/PythonTraining | c40b389157f32786a3c431d2ad02a5d5d29053c3 | [
"Apache-2.0"
] | null | null | null | fixture/group.py | MarjanShk/PythonTraining | c40b389157f32786a3c431d2ad02a5d5d29053c3 | [
"Apache-2.0"
] | null | null | null | class GroupHelper:
def __init__(self, app):
self.app = app
def open_group_page(self):
wd = self.app.wd
wd.find_element_by_link_text("Групи").click()
def create(self, Group):
wd = self.app.wd
wd.find_element_by_name("new").click()
wd.... | 42.44186 | 78 | 0.646027 | 257 | 1,825 | 4.182879 | 0.151751 | 0.133953 | 0.290233 | 0.334884 | 0.845581 | 0.845581 | 0.80093 | 0.791628 | 0.76093 | 0.725581 | 0 | 0 | 0.217534 | 1,825 | 43 | 79 | 42.44186 | 0.752801 | 0 | 0 | 0.513514 | 0 | 0 | 0.136364 | 0.012048 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0 | 0 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
8056ba92773a30367308621c761dc4d0d09d2bbd | 13,039 | py | Python | All-Operator/4.py | Alpha-Demon404/RE-14 | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 39 | 2020-02-26T09:44:36.000Z | 2022-03-23T00:18:25.000Z | All-Operator/4.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 15 | 2020-05-14T10:07:26.000Z | 2022-01-06T02:55:32.000Z | All-Operator/4.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 41 | 2020-03-16T22:36:38.000Z | 2022-03-17T14:47:19.000Z | # Filename : dg
# Python Bytecode : 2.7
# Time Succses Decompiled : Sun Sep 6 10:20:03 2020
TselOpok = [
'118.97.159.51:443']
Ilmupedia = ['118.98.95.99:443']
Gamemax = ['118.98.95.120:443']
TselRguru = ['video-cdn.quipper.com:443', 'rg-video.ruangguru.com:443']
TselMaxtream = ['118.98.93.91:443', '118.98.93.65:443']... | 521.56 | 11,525 | 0.965181 | 251 | 13,039 | 50.135458 | 0.406375 | 0.015257 | 0.013509 | 0.019867 | 0.053719 | 0.048315 | 0.048315 | 0.048315 | 0.048315 | 0.048315 | 0 | 0.569396 | 0.008129 | 13,039 | 24 | 11,526 | 543.291667 | 0.403619 | 0.006596 | 0 | 0 | 0 | 0 | 0.96409 | 0.946714 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.047619 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
33903f09833d843030b08953297fa8a731a05b5d | 1,237 | py | Python | test/integration/boto3/aws_common.py | groboclown/pipit | fc16eca523969dc318016deb5812b4e03d178b07 | [
"MIT"
] | 3 | 2016-12-21T20:06:47.000Z | 2017-10-26T14:36:34.000Z | test/integration/boto3/aws_common.py | groboclown/pipit | fc16eca523969dc318016deb5812b4e03d178b07 | [
"MIT"
] | 1 | 2020-11-11T16:53:43.000Z | 2020-11-11T16:53:43.000Z | test/integration/boto3/aws_common.py | groboclown/pipit | fc16eca523969dc318016deb5812b4e03d178b07 | [
"MIT"
] | null | null | null |
import os
from boto3.session import Session
def create_service(service_id, api_version=None, user='USER_ACCESS_KEY'):
def env(key, default_value):
return key in os.environ and os.environ[key] or default_value
session = Session(
aws_access_key_id=user,
aws_secret_access_key='... | 32.552632 | 74 | 0.653193 | 159 | 1,237 | 4.779874 | 0.264151 | 0.071053 | 0.063158 | 0.1 | 0.892105 | 0.892105 | 0.892105 | 0.892105 | 0.892105 | 0.892105 | 0 | 0.009667 | 0.247373 | 1,237 | 37 | 75 | 33.432432 | 0.80666 | 0 | 0 | 0.75 | 0 | 0 | 0.135113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0.0625 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d51303bc22fc35904c50a5bbc6e8ae73f619d22c | 17,971 | py | Python | driver/tests.py | swallville/driverBackEnd | 3599e5a2e58304e08502b10a3856b77a05c7fd16 | [
"MIT"
] | null | null | null | driver/tests.py | swallville/driverBackEnd | 3599e5a2e58304e08502b10a3856b77a05c7fd16 | [
"MIT"
] | 3 | 2021-03-30T12:53:49.000Z | 2021-09-22T18:44:52.000Z | driver/tests.py | swallville/driverBackEnd | 3599e5a2e58304e08502b10a3856b77a05c7fd16 | [
"MIT"
] | null | null | null | import datetime as dt
from rest_framework import status
from rest_framework.exceptions import ValidationError
from rest_framework.test import APITestCase
from django.urls import reverse
from model_mommy import mommy
from driver.models import Driver, Register
from truck.models import Truck
from utils import driver_... | 34.493282 | 84 | 0.628958 | 2,036 | 17,971 | 5.375246 | 0.064342 | 0.160362 | 0.151316 | 0.116502 | 0.921327 | 0.907164 | 0.900676 | 0.897204 | 0.887427 | 0.880482 | 0 | 0.025355 | 0.240666 | 17,971 | 520 | 85 | 34.559615 | 0.776638 | 0.00128 | 0 | 0.829333 | 0 | 0 | 0.12454 | 0.041458 | 0 | 0 | 0 | 0 | 0.314667 | 1 | 0.037333 | false | 0 | 0.024 | 0 | 0.069333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1d2e4f7ae87acc1e21060e5f15042de03c21dcee | 8,261 | py | Python | resources/dot_PyCharm/system/python_stubs/-762174762/PySide/QtGui/QStandardItem.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | 1 | 2020-04-20T02:27:20.000Z | 2020-04-20T02:27:20.000Z | resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QStandardItem.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | null | null | null | resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QStandardItem.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | null | null | null | # encoding: utf-8
# module PySide.QtGui
# from C:\Python27\lib\site-packages\PySide\QtGui.pyd
# by generator 1.147
# no doc
# imports
import PySide.QtCore as __PySide_QtCore
import Shiboken as __Shiboken
class QStandardItem(__Shiboken.Object):
# no doc
def accessibleDescription(self, *args, **kwargs): # real... | 28.00339 | 86 | 0.617117 | 942 | 8,261 | 5.255839 | 0.149682 | 0.231064 | 0.355484 | 0.279943 | 0.759039 | 0.74288 | 0.720461 | 0.720461 | 0.082812 | 0 | 0 | 0.001153 | 0.26498 | 8,261 | 294 | 87 | 28.098639 | 0.814229 | 0.339184 | 0 | 0.480874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.480874 | false | 0.480874 | 0.010929 | 0 | 0.513661 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 9 |
1d868a1efd38b2a3687dea748d42d5dde5a68b08 | 34 | py | Python | src/llv/__init__.py | think-biq/LLV | ad6411255c0efc38fea9b22a86906a31cf5e9296 | [
"BSD-2-Clause"
] | 20 | 2021-03-10T13:24:24.000Z | 2022-03-23T08:17:29.000Z | src/llv/__init__.py | think-biq/LLV | ad6411255c0efc38fea9b22a86906a31cf5e9296 | [
"BSD-2-Clause"
] | 2 | 2021-09-01T01:46:29.000Z | 2021-09-27T07:57:31.000Z | src/llv/__init__.py | think-biq/LLV | ad6411255c0efc38fea9b22a86906a31cf5e9296 | [
"BSD-2-Clause"
] | 6 | 2021-07-15T06:34:16.000Z | 2022-03-15T07:40:43.000Z |
def version():
return "1.4.0" | 11.333333 | 18 | 0.558824 | 6 | 34 | 3.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0.235294 | 34 | 3 | 18 | 11.333333 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
1da48c2ee0c0b93d91e519e2245455ae936bd727 | 11,239 | py | Python | app/main/views.py | ttlttl/fang | 54db92126e69960636469a6b002f6e6cb4330d12 | [
"Apache-2.0"
] | 1 | 2018-06-13T07:10:04.000Z | 2018-06-13T07:10:04.000Z | app/main/views.py | ttlttl/fang | 54db92126e69960636469a6b002f6e6cb4330d12 | [
"Apache-2.0"
] | null | null | null | app/main/views.py | ttlttl/fang | 54db92126e69960636469a6b002f6e6cb4330d12 | [
"Apache-2.0"
] | null | null | null | # -*- coding=UTF-8 -*-
from flask import render_template, request, redirect, url_for
from . import main
from ..models import House, District, Area, Community
import re
# total price range
a_range = ((0, 10000), (0, 101), (101, 150), (151, 201), (201, 301), \
(301, 501), (501, 1001), (1001, 10000))
# total ... | 48.865217 | 99 | 0.500756 | 1,254 | 11,239 | 4.254386 | 0.089314 | 0.041987 | 0.023618 | 0.026242 | 0.910028 | 0.904405 | 0.903468 | 0.903468 | 0.885098 | 0.885098 | 0 | 0.029825 | 0.379482 | 11,239 | 229 | 100 | 49.078603 | 0.735159 | 0.02607 | 0 | 0.802083 | 0 | 0 | 0.035126 | 0.01363 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.020833 | 0.026042 | 0.104167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
633725092dcb490287a11311561f7eab7309f606 | 1,897 | py | Python | core/migrations/0003_auto_20210527_1304.py | tanyutao544/digitalace-backend | 3607b1325856eafa4e1c96d6189f7aed1b163a19 | [
"MIT"
] | 1 | 2021-05-28T05:22:54.000Z | 2021-05-28T05:22:54.000Z | core/migrations/0003_auto_20210527_1304.py | tanyutao544/digitalace-backend | 3607b1325856eafa4e1c96d6189f7aed1b163a19 | [
"MIT"
] | 3 | 2021-05-31T15:44:14.000Z | 2021-06-29T07:48:13.000Z | core/migrations/0003_auto_20210527_1304.py | tanyutao544/digitalace-backend | 3607b1325856eafa4e1c96d6189f7aed1b163a19 | [
"MIT"
] | 1 | 2021-05-30T07:42:54.000Z | 2021-05-30T07:42:54.000Z | # Generated by Django 3.2.3 on 2021-05-27 13:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0002_company'),
]
operations = [
migrations.AddField(
model_name='user',
name='date_of_birth',
f... | 29.640625 | 63 | 0.546653 | 188 | 1,897 | 5.345745 | 0.271277 | 0.179104 | 0.228856 | 0.268657 | 0.779104 | 0.779104 | 0.779104 | 0.779104 | 0.697512 | 0.697512 | 0 | 0.038797 | 0.334212 | 1,897 | 63 | 64 | 30.111111 | 0.756928 | 0.023722 | 0 | 0.701754 | 1 | 0 | 0.095676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017544 | 0 | 0.070175 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
635a5c0b15184f8ebb7c8994ee1580e1ee1232b2 | 12,470 | py | Python | tests/plugins/product/sync/test_media.py | maxipavlovic/connect-cli | 73989c076c6fb5b4562c61a351448b1c77556676 | [
"Apache-2.0"
] | 12 | 2020-10-10T10:53:16.000Z | 2022-02-16T10:15:56.000Z | tests/plugins/product/sync/test_media.py | maxipavlovic/connect-cli | 73989c076c6fb5b4562c61a351448b1c77556676 | [
"Apache-2.0"
] | 37 | 2020-09-28T12:00:52.000Z | 2021-12-20T12:38:25.000Z | tests/plugins/product/sync/test_media.py | maxipavlovic/connect-cli | 73989c076c6fb5b4562c61a351448b1c77556676 | [
"Apache-2.0"
] | 11 | 2020-11-04T18:17:01.000Z | 2022-02-23T08:18:07.000Z | import pytest
from connect.cli.plugins.product.sync.media import MediaSynchronizer
from connect.client import ConnectClient
def test_no_action(get_sync_media_env):
synchronizer = MediaSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoin... | 29.341176 | 97 | 0.633039 | 1,558 | 12,470 | 4.870988 | 0.091784 | 0.068784 | 0.09013 | 0.112663 | 0.876005 | 0.869021 | 0.868494 | 0.858875 | 0.853604 | 0.853604 | 0 | 0.033243 | 0.230473 | 12,470 | 424 | 98 | 29.410377 | 0.757607 | 0 | 0 | 0.77439 | 0 | 0.015244 | 0.230152 | 0.056455 | 0 | 0 | 0 | 0 | 0.228659 | 1 | 0.045732 | false | 0 | 0.009146 | 0 | 0.054878 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
638daf57358b2ba0240995a096b0b83efdfa179e | 34,763 | py | Python | build/PureCloudPlatformClientV2/apis/alerting_api.py | cjohnson-ctl/platform-client-sdk-python | 38ce53bb8012b66e8a43cc8bd6ff00cf6cc99100 | [
"MIT"
] | 10 | 2019-02-22T00:27:08.000Z | 2021-09-12T23:23:44.000Z | libs/PureCloudPlatformClientV2/apis/alerting_api.py | rocketbot-cl/genesysCloud | dd9d9b5ebb90a82bab98c0d88b9585c22c91f333 | [
"MIT"
] | 5 | 2018-06-07T08:32:00.000Z | 2021-07-28T17:37:26.000Z | libs/PureCloudPlatformClientV2/apis/alerting_api.py | rocketbot-cl/genesysCloud | dd9d9b5ebb90a82bab98c0d88b9585c22c91f333 | [
"MIT"
] | 6 | 2020-04-09T17:43:07.000Z | 2022-02-17T08:48:05.000Z | # coding: utf-8
"""
AlertingApi.py
Copyright 2016 SmartBear Software
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required ... | 37.99235 | 127 | 0.545551 | 3,328 | 34,763 | 5.502704 | 0.064603 | 0.043248 | 0.025556 | 0.022825 | 0.916671 | 0.912084 | 0.903566 | 0.893409 | 0.893409 | 0.893409 | 0 | 0.001009 | 0.37281 | 34,763 | 914 | 128 | 38.033917 | 0.838921 | 0.261658 | 0 | 0.841438 | 0 | 0 | 0.176292 | 0.053764 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02537 | false | 0 | 0.014799 | 0 | 0.065539 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
63b233ac9066f87aaabd1e87b90764d25cde5c92 | 764 | py | Python | Python_basic_1/ex1.py | kagesg/Python_exercises_and_practice | ee9e9f1b07053f359dc3df5ac29a8396b6a02566 | [
"MIT"
] | null | null | null | Python_basic_1/ex1.py | kagesg/Python_exercises_and_practice | ee9e9f1b07053f359dc3df5ac29a8396b6a02566 | [
"MIT"
] | null | null | null | Python_basic_1/ex1.py | kagesg/Python_exercises_and_practice | ee9e9f1b07053f359dc3df5ac29a8396b6a02566 | [
"MIT"
] | null | null | null | '''
1. Write a Python program to print the following string in a specific format (see the output). Go to the editor
Sample String : "Twinkle, twinkle, little star, How I wonder what you are! Up above the world so high,
Like a diamond in the sky. Twinkle, twinkle, little star, How I wonder what you are"
... | 44.941176 | 201 | 0.664921 | 127 | 764 | 4 | 0.322835 | 0.153543 | 0.200787 | 0.165354 | 0.730315 | 0.661417 | 0.661417 | 0.661417 | 0.661417 | 0.661417 | 0 | 0.00177 | 0.260471 | 764 | 16 | 202 | 47.75 | 0.897345 | 0.736911 | 0 | 0 | 0 | 1 | 0.936585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
8958351452c6d35adccef21e3e0fa755d94118b2 | 5,547 | py | Python | course_2_project.py | joaovitorle/AnotacoesCoursera2 | b0b033feca28bf207e5edcaef5667c7e54b7bdb6 | [
"MIT"
] | null | null | null | course_2_project.py | joaovitorle/AnotacoesCoursera2 | b0b033feca28bf207e5edcaef5667c7e54b7bdb6 | [
"MIT"
] | null | null | null | course_2_project.py | joaovitorle/AnotacoesCoursera2 | b0b033feca28bf207e5edcaef5667c7e54b7bdb6 | [
"MIT"
] | null | null | null | projectTwitterDataFile = open("project_twitter_data.csv","r")
resultingDataFile = open("resulting_data.csv","w")
punctuation_chars = ["'", '"', ",", ".", "!", ":", ";", '#', '@']
# lists of words to use
positive_words = []
with open("positive_words.txt") as pos_f:
for lin in pos_f:
if lin[0] != ';' and lin... | 29.663102 | 167 | 0.610781 | 580 | 5,547 | 5.713793 | 0.112069 | 0.050996 | 0.023537 | 0.023537 | 0.986119 | 0.986119 | 0.986119 | 0.986119 | 0.986119 | 0.986119 | 0 | 0.008914 | 0.231476 | 5,547 | 187 | 168 | 29.663102 | 0.768473 | 0.01316 | 0 | 1 | 0 | 0 | 0.085634 | 0.009014 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8958684c48ec40cc49ed7516f4305a48a3e79f74 | 46 | py | Python | base_report_to_printer/wizards/__init__.py | Chief0-0/Localizacion_ERP_V12 | f59e56564e29525f772b59db7fef7c7cde347336 | [
"Apache-2.0"
] | null | null | null | base_report_to_printer/wizards/__init__.py | Chief0-0/Localizacion_ERP_V12 | f59e56564e29525f772b59db7fef7c7cde347336 | [
"Apache-2.0"
] | null | null | null | base_report_to_printer/wizards/__init__.py | Chief0-0/Localizacion_ERP_V12 | f59e56564e29525f772b59db7fef7c7cde347336 | [
"Apache-2.0"
] | null | null | null |
from . import printing_printer_update_wizard
| 15.333333 | 44 | 0.869565 | 6 | 46 | 6.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 46 | 2 | 45 | 23 | 0.902439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 7 |
89b28f3b0884c38ecc18544c081b2a14e4980a03 | 97,978 | py | Python | rotkehlchen/constants/ethereum.py | yairash/rotki | ef8f45d1e50b0bd5fa53ef783b66734b2ba98b41 | [
"BSD-3-Clause"
] | null | null | null | rotkehlchen/constants/ethereum.py | yairash/rotki | ef8f45d1e50b0bd5fa53ef783b66734b2ba98b41 | [
"BSD-3-Clause"
] | 10 | 2020-10-06T18:57:17.000Z | 2022-03-27T06:33:54.000Z | rotkehlchen/constants/ethereum.py | yairash/rotki | ef8f45d1e50b0bd5fa53ef783b66734b2ba98b41 | [
"BSD-3-Clause"
] | null | null | null | # flake8: noqa
from typing import Any, Dict, List, NamedTuple
from rotkehlchen.serialization.deserialize import deserialize_ethereum_address
from rotkehlchen.typing import ChecksumEthAddress
ZERO_ADDRESS = deserialize_ethereum_address('0x0000000000000000000000000000000000000000')
AAVE_ETH_RESERVE_ADDRESS = deseriali... | 809.735537 | 15,005 | 0.676499 | 9,610 | 97,978 | 6.865973 | 0.047867 | 0.067018 | 0.10318 | 0.066715 | 0.913901 | 0.886439 | 0.871541 | 0.843427 | 0.838759 | 0.823134 | 0 | 0.029374 | 0.005205 | 97,978 | 120 | 15,006 | 816.483333 | 0.647587 | 0.001756 | 0 | 0.103774 | 0 | 0 | 0.621858 | 0.020787 | 0 | 0 | 0.009018 | 0 | 0 | 1 | 0 | false | 0 | 0.028302 | 0 | 0.066038 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
89bec08e0812ae90534d451c567f1fd8dbd081c8 | 9,429 | py | Python | models/eyetracking.py | ventodiventu/eyewordembed | 040f913ba107ab4d196ae499a6aa38bd12f3fb0a | [
"MIT"
] | null | null | null | models/eyetracking.py | ventodiventu/eyewordembed | 040f913ba107ab4d196ae499a6aa38bd12f3fb0a | [
"MIT"
] | null | null | null | models/eyetracking.py | ventodiventu/eyewordembed | 040f913ba107ab4d196ae499a6aa38bd12f3fb0a | [
"MIT"
] | null | null | null | import chainer
import chainer.functions as F
import chainer.initializers as I
import chainer.links as L
import chainer.optimizers as O
from chainer import reporter
import numpy as np
def toOneHot(n, n_participants):
res = np.eye(n_participants, dtype=np.float32)[n]
return res
class BaselineClassifier(chainer.... | 35.052045 | 122 | 0.570262 | 1,242 | 9,429 | 4.123994 | 0.10467 | 0.019524 | 0.0246 | 0.039828 | 0.830925 | 0.824678 | 0.81394 | 0.799102 | 0.791097 | 0.751855 | 0 | 0.011162 | 0.306395 | 9,429 | 269 | 123 | 35.052045 | 0.772018 | 0.04518 | 0 | 0.758621 | 0 | 0 | 0.048753 | 0.011131 | 0 | 0 | 0 | 0 | 0.009852 | 1 | 0.068966 | false | 0 | 0.034483 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
98356f5d77cf92f49a41129352bed7398e07c195 | 1,260 | py | Python | cafeteria/images/migrations/0004_auto_20190607_2340.py | devGW/PostApp | fda99fbc838ee809b1ff28445d66cbd48e2b5016 | [
"MIT"
] | null | null | null | cafeteria/images/migrations/0004_auto_20190607_2340.py | devGW/PostApp | fda99fbc838ee809b1ff28445d66cbd48e2b5016 | [
"MIT"
] | 1 | 2019-08-31T01:07:46.000Z | 2019-09-01T15:10:42.000Z | cafeteria/images/migrations/0004_auto_20190607_2340.py | devGW/PostApp | fda99fbc838ee809b1ff28445d66cbd48e2b5016 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-06-07 14:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('images', '0003_auto_20190607_2303'),
]
operations = [
migrations.AddField(
model_name='comment',
name='created_at',
... | 28.636364 | 69 | 0.565079 | 128 | 1,260 | 5.375 | 0.3125 | 0.156977 | 0.200581 | 0.235465 | 0.78343 | 0.78343 | 0.723837 | 0.723837 | 0.723837 | 0.697674 | 0 | 0.036131 | 0.319048 | 1,260 | 43 | 70 | 29.302326 | 0.765734 | 0.035714 | 0 | 0.810811 | 1 | 0 | 0.099753 | 0.018961 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.108108 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
9865f63f879c56309facebaefeb974099f16cf68 | 6,978 | py | Python | test/issues/test_008.py | ajnelson-nist/pySHACL | eebb546c981d5e7de72c8e51b0d9eaf14960e807 | [
"Apache-2.0"
] | 167 | 2018-09-05T11:28:28.000Z | 2022-03-29T13:31:02.000Z | test/issues/test_008.py | ajnelson-nist/pySHACL | eebb546c981d5e7de72c8e51b0d9eaf14960e807 | [
"Apache-2.0"
] | 123 | 2018-09-07T04:27:05.000Z | 2022-03-25T15:07:56.000Z | test/issues/test_008.py | ajnelson-nist/pySHACL | eebb546c981d5e7de72c8e51b0d9eaf14960e807 | [
"Apache-2.0"
] | 50 | 2018-09-14T11:12:31.000Z | 2022-03-25T15:00:21.000Z | # -*- coding: utf-8 -*-
#
"""
https://github.com/RDFLib/pySHACL/issues/8
"""
from pyshacl import validate
mixed_file_text = '''
# baseURI: http://semanticprocess.x10host.com/Ontology/Testsparql
# imports: http://datashapes.org/dash
# prefix: Testsparql
@prefix Testsparql: <http://semanticprocess.x10host.com/Ontology/... | 28.716049 | 151 | 0.734738 | 844 | 6,978 | 6.027251 | 0.129147 | 0.048162 | 0.026538 | 0.035384 | 0.956359 | 0.950855 | 0.94024 | 0.94024 | 0.94024 | 0.93277 | 0 | 0.026142 | 0.133849 | 6,978 | 242 | 152 | 28.834711 | 0.81552 | 0.009315 | 0 | 0.80543 | 0 | 0.027149 | 0.929306 | 0.130668 | 0 | 0 | 0 | 0 | 0.00905 | 1 | 0.004525 | false | 0 | 0.0181 | 0 | 0.022624 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
987d9b8c613554f308649cbc675a993556a26314 | 144 | py | Python | ACM-Solution/Pascal'sT.py | wasi0013/Python-CodeBase | 4a7a36395162f68f84ded9085fa34cc7c9b19233 | [
"MIT"
] | 2 | 2016-04-26T15:40:40.000Z | 2018-07-18T10:16:42.000Z | ACM-Solution/Pascal'sT.py | wasi0013/Python-CodeBase | 4a7a36395162f68f84ded9085fa34cc7c9b19233 | [
"MIT"
] | 1 | 2016-04-26T15:44:15.000Z | 2016-04-29T14:44:40.000Z | ACM-Solution/Pascal'sT.py | wasi0013/Python-CodeBase | 4a7a36395162f68f84ded9085fa34cc7c9b19233 | [
"MIT"
] | 1 | 2018-10-02T16:12:19.000Z | 2018-10-02T16:12:19.000Z | exec('t=int(input())+1;R=[[1]];exec("R+=[list(map(sum,zip(R[-1]+[0],[0]+R[-1])))];"*t);print(" ".join("%d"%i for i in R[t-1]));'*int(input()))
| 72 | 143 | 0.479167 | 32 | 144 | 2.15625 | 0.53125 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051095 | 0.048611 | 144 | 1 | 144 | 144 | 0.452555 | 0 | 0 | 0 | 0 | 1 | 0.846154 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
98ad20fd81768c65669eabd9c601f2a81b23bd53 | 74,288 | py | Python | model_lr_and_gdbt_and_xgboost/feature_construct/feature_construct_part_3.py | Goooaaal/ali_freshman_compatiton | 8d3dd71f0757cb08d915f89daf103530b550f003 | [
"Apache-2.0"
] | 4 | 2018-09-12T05:02:51.000Z | 2020-10-06T08:48:19.000Z | model_lr_and_gdbt_and_xgboost/feature_construct/feature_construct_part_3.py | Goooaaal/ali_freshman_compatiton | 8d3dd71f0757cb08d915f89daf103530b550f003 | [
"Apache-2.0"
] | null | null | null | model_lr_and_gdbt_and_xgboost/feature_construct/feature_construct_part_3.py | Goooaaal/ali_freshman_compatiton | 8d3dd71f0757cb08d915f89daf103530b550f003 | [
"Apache-2.0"
] | null | null | null | ##### file path
# input
path_df_D = "tianchi_fresh_comp_train_user.csv"
path_df_part_1 = "df_part_1.csv"
path_df_part_2 = "df_part_2.csv"
path_df_part_3 = "df_part_3.csv"
path_df_part_1_tar = "df_part_1_tar.csv"
path_df_part_2_tar = "df_part_2_tar.csv"
path_df_part_1_uic_label = "df_part_1_uic_label.csv"
... | 59.813205 | 121 | 0.544718 | 11,841 | 74,288 | 2.719787 | 0.010641 | 0.214315 | 0.174321 | 0.047229 | 0.97106 | 0.940879 | 0.907313 | 0.896476 | 0.870765 | 0.843782 | 0 | 0.064548 | 0.352049 | 74,288 | 1,242 | 122 | 59.813205 | 0.604508 | 0.01618 | 0 | 0.442127 | 0 | 0 | 0.230118 | 0.001451 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.002086 | 0 | 0.002086 | 0 | 0 | 0 | 0 | null | 1 | 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 | 7 |
7f4386c9d839669a0201035a3acb85a6fb7aa7de | 71 | py | Python | toolkit/routes/graphs/__init__.py | salonimalhotra-ui/seo-audits-toolkit | 99af8b53dffad45f679eaf06b4a8080df75fcd72 | [
"MIT"
] | 1 | 2020-12-21T18:21:34.000Z | 2020-12-21T18:21:34.000Z | toolkit/routes/graphs/__init__.py | x0rzkov/seo-audits-toolkit | 29994cbab51bd0697c717b675df3c176096e4f03 | [
"MIT"
] | null | null | null | toolkit/routes/graphs/__init__.py | x0rzkov/seo-audits-toolkit | 29994cbab51bd0697c717b675df3c176096e4f03 | [
"MIT"
] | null | null | null | import toolkit.routes.graphs.api
import toolkit.routes.graphs.dashboard | 35.5 | 38 | 0.873239 | 10 | 71 | 6.2 | 0.6 | 0.419355 | 0.612903 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 71 | 2 | 38 | 35.5 | 0.911765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
124804528029cf09c82e6953ac80d110148fcb5c | 433 | py | Python | flower.py | surace997/suresh-dangol | e9014e8c151387f7ce92fb9ef15e2ded50befaf2 | [
"Unlicense"
] | null | null | null | flower.py | surace997/suresh-dangol | e9014e8c151387f7ce92fb9ef15e2ded50befaf2 | [
"Unlicense"
] | null | null | null | flower.py | surace997/suresh-dangol | e9014e8c151387f7ce92fb9ef15e2ded50befaf2 | [
"Unlicense"
] | null | null | null | #suresh dangol
#suresh.dangol66@myhunter.cuny.edu
import turtle
suresh=turtle.Turtle()
for i in range(8):
suresh.forward(100)
suresh.left(90)
suresh.forward(100)
suresh.left(90)
suresh.forward(100)
suresh.left(90)
suresh.forward(100)
suresh.left(90)
suresh.forward(100)
suresh.left(90)
suresh.forward(100)
... | 16.653846 | 34 | 0.741339 | 69 | 433 | 4.652174 | 0.26087 | 0.280374 | 0.398754 | 0.548287 | 0.716511 | 0.716511 | 0.716511 | 0.716511 | 0.716511 | 0.716511 | 0 | 0.121762 | 0.108545 | 433 | 25 | 35 | 17.32 | 0.709845 | 0.106236 | 0 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 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 | 9 |
89ddbb8d174d8e398852a848651d55d44db38766 | 3,805 | py | Python | DataStructures/LinkedList/tests/singly_linked_list_test.py | Nalhin/AlgorithmsAndDataStructures | 2d2c87d0572e107c993c3c8866b8beefd4d22082 | [
"MIT"
] | 1 | 2021-11-16T13:02:25.000Z | 2021-11-16T13:02:25.000Z | DataStructures/LinkedList/tests/singly_linked_list_test.py | Nalhin/AlgorithmsAndDataStructures | 2d2c87d0572e107c993c3c8866b8beefd4d22082 | [
"MIT"
] | null | null | null | DataStructures/LinkedList/tests/singly_linked_list_test.py | Nalhin/AlgorithmsAndDataStructures | 2d2c87d0572e107c993c3c8866b8beefd4d22082 | [
"MIT"
] | null | null | null | import pytest
from DataStructures.LinkedList.singly_linked_list import SinglyLinkedList
@pytest.fixture()
def singly_linked_list():
return SinglyLinkedList()
class TestSinglyLinkedList:
def test_is_empty(self, singly_linked_list):
result = singly_linked_list.is_empty()
assert result
d... | 27.178571 | 73 | 0.685677 | 533 | 3,805 | 4.467167 | 0.078799 | 0.347753 | 0.463671 | 0.247375 | 0.828643 | 0.794204 | 0.768165 | 0.718186 | 0.707266 | 0.657287 | 0 | 0.015188 | 0.238633 | 3,805 | 139 | 74 | 27.374101 | 0.806697 | 0 | 0 | 0.526882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182796 | 1 | 0.193548 | false | 0 | 0.021505 | 0.010753 | 0.236559 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
d627b5b57652c226169f6db684f22b14a6017a37 | 37,556 | py | Python | alphausblue/api/aws/reduction_pb2.py | alphauslabs/blue-sdk-python | 24120a60cd153a69080661a687938b417b32f947 | [
"Apache-2.0"
] | null | null | null | alphausblue/api/aws/reduction_pb2.py | alphauslabs/blue-sdk-python | 24120a60cd153a69080661a687938b417b32f947 | [
"Apache-2.0"
] | null | null | null | alphausblue/api/aws/reduction_pb2.py | alphauslabs/blue-sdk-python | 24120a60cd153a69080661a687938b417b32f947 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/aws/reduction.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from goog... | 58.407465 | 3,251 | 0.75253 | 4,957 | 37,556 | 5.433327 | 0.0581 | 0.061783 | 0.096647 | 0.073182 | 0.838674 | 0.810456 | 0.728734 | 0.709056 | 0.699811 | 0.699811 | 0 | 0.041134 | 0.121578 | 37,556 | 642 | 3,252 | 58.498442 | 0.775265 | 0.013393 | 0 | 0.731148 | 1 | 0.003279 | 0.21094 | 0.173466 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006557 | 0 | 0.006557 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
d63db059c7b344675367753765cbeb6af030a5c3 | 2,238 | py | Python | execute-scripts/Ti64_Diamond_2021_continuous_peak_fit_RUN.py | LightForm-group/continuous-peak-fit-analysis | e3133a016e64f45be6cb560d5cedc257bfe653a9 | [
"MIT"
] | null | null | null | execute-scripts/Ti64_Diamond_2021_continuous_peak_fit_RUN.py | LightForm-group/continuous-peak-fit-analysis | e3133a016e64f45be6cb560d5cedc257bfe653a9 | [
"MIT"
] | null | null | null | execute-scripts/Ti64_Diamond_2021_continuous_peak_fit_RUN.py | LightForm-group/continuous-peak-fit-analysis | e3133a016e64f45be6cb560d5cedc257bfe653a9 | [
"MIT"
] | null | null | null | import sys
print(sys.executable)
print(sys.version_info)
sys.path.append("../../continuous-peak-fit/Continuous-Peak-Fit")
import cpf
input_filepath = "../../../SXRD_analysis/diamond_2021/103845/texture-cpf-stage-scan/103845-cpf-output/"
input_filename = "INPUT_Diamond-2021_Ti64_21alpha_4beta_iCSF_1.py"
input_file = f"{... | 43.038462 | 103 | 0.840929 | 337 | 2,238 | 5.166172 | 0.133531 | 0.191269 | 0.130959 | 0.163699 | 0.887995 | 0.887995 | 0.887995 | 0.887995 | 0.887995 | 0.859851 | 0 | 0.049579 | 0.044683 | 2,238 | 52 | 104 | 43.038462 | 0.764733 | 0.172475 | 0 | 0.627907 | 0 | 0.023256 | 0.455779 | 0.455779 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.046512 | 0.255814 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
d655973de7a9a719211c683d7a68da3a38d2d17d | 313 | py | Python | tests/parser/true_negation.7.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/true_negation.7.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/true_negation.7.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | input = """
% true negation of terms does not make sense.
%g(-a).
okay(a).
%f(1,-"zwei").
%:- not g(-a).
:- not okay(a).
%:- not f(1,-"zwei").
"""
output = """
% true negation of terms does not make sense.
%g(-a).
okay(a).
%f(1,-"zwei").
%:- not g(-a).
:- not okay(a).
%:- not f(1,-"zwei").
"""
| 14.904762 | 46 | 0.482428 | 52 | 313 | 2.903846 | 0.307692 | 0.05298 | 0.15894 | 0.251656 | 0.927152 | 0.927152 | 0.927152 | 0.927152 | 0.927152 | 0.927152 | 0 | 0.016327 | 0.217252 | 313 | 20 | 47 | 15.65 | 0.6 | 0 | 0 | 0.888889 | 0 | 0 | 0.895623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
c3a4e8bed88341893ddc71f8407bd70dc9205f9d | 193 | py | Python | plates.py | kmbolando/boilerplates | ca42524cdce5b8873ca14c2a8dabd4f16d2dbc5d | [
"Unlicense"
] | 1 | 2020-01-03T17:22:52.000Z | 2020-01-03T17:22:52.000Z | plates.py | kmbolando/boilerplates | ca42524cdce5b8873ca14c2a8dabd4f16d2dbc5d | [
"Unlicense"
] | null | null | null | plates.py | kmbolando/boilerplates | ca42524cdce5b8873ca14c2a8dabd4f16d2dbc5d | [
"Unlicense"
] | null | null | null | #unlicense.org
#in case importing the numpy/scipy libraries should be avoided:
def zeros(item, quanity):
return [item] * quanity
def simple_matrix(item,quanity):
return [item] * quanity
| 21.444444 | 63 | 0.746114 | 27 | 193 | 5.296296 | 0.703704 | 0.307692 | 0.237762 | 0.293706 | 0.391608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15544 | 193 | 8 | 64 | 24.125 | 0.877301 | 0.388601 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
c3fe54b9b5c49315a1f453abb0b5624c2e6dfcc4 | 114 | py | Python | tests/misc/phantom.py | QuantStack/memestra | cde5ef6fb85f98b36efea6262bd6f38215778a12 | [
"BSD-3-Clause"
] | 21 | 2020-03-10T13:10:17.000Z | 2021-06-14T17:54:01.000Z | tests/misc/phantom.py | QuantStack/memestra | cde5ef6fb85f98b36efea6262bd6f38215778a12 | [
"BSD-3-Clause"
] | 48 | 2020-03-28T21:35:40.000Z | 2022-02-14T15:14:47.000Z | tests/misc/phantom.py | QuantStack/memestra | cde5ef6fb85f98b36efea6262bd6f38215778a12 | [
"BSD-3-Clause"
] | 9 | 2020-03-18T12:57:19.000Z | 2021-11-21T09:40:25.000Z | from decoratortest import deprecated
from endless_pit_of_useless_stuff import void
@deprecated
def empty(): pass
| 19 | 45 | 0.850877 | 16 | 114 | 5.8125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114035 | 114 | 5 | 46 | 22.8 | 0.920792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
613df6afa1b2852c1bd9c2024d34095b83236146 | 125 | py | Python | tests/parser/builtins.4.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/builtins.4.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/builtins.4.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | input = """
f(1).
a(X) :- 1=2+x, f(X). %+(1,2,x), f(X).
"""
output = """
f(1).
a(X) :- 1=2+x, f(X). %+(1,2,x), f(X).
"""
| 13.888889 | 38 | 0.312 | 30 | 125 | 1.3 | 0.233333 | 0.205128 | 0.307692 | 0.410256 | 0.717949 | 0.717949 | 0.717949 | 0.717949 | 0.717949 | 0.717949 | 0 | 0.10101 | 0.208 | 125 | 8 | 39 | 15.625 | 0.292929 | 0 | 0 | 0.75 | 0 | 0.25 | 0.743802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14 |
61a5710c79780c8f734628f83112f6a687694ecc | 3,694 | py | Python | util/data/gen/HID.DLL.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | util/data/gen/HID.DLL.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | util/data/gen/HID.DLL.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | symbols = []
exports = [{'type': 'function', 'name': 'HidD_FlushQueue', 'address': '0x7ffb3a3636c0'}, {'type': 'function', 'name': 'HidD_FreePreparsedData', 'address': '0x7ffb3a361c90'}, {'type': 'function', 'name': 'HidD_GetAttributes', 'address': '0x7ffb3a361790'}, {'type': 'function', 'name': 'HidD_GetConfiguration'... | 1,847 | 3,681 | 0.687872 | 310 | 3,694 | 8.054839 | 0.309677 | 0.211454 | 0.281938 | 0.192231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107998 | 0.07255 | 3,694 | 2 | 3,681 | 1,847 | 0.620841 | 0 | 0 | 0 | 0 | 0 | 0.683897 | 0.163735 | 0 | 0 | 0.166712 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f604bacccad9a74309be6fd70db227e0d38825ac | 106 | py | Python | embedding/_fasttext/__init__.py | vd1371/CBSA | f2b3f03c91ccd9ec02c2331f43573d7d6e72fd47 | [
"MIT"
] | null | null | null | embedding/_fasttext/__init__.py | vd1371/CBSA | f2b3f03c91ccd9ec02c2331f43573d7d6e72fd47 | [
"MIT"
] | null | null | null | embedding/_fasttext/__init__.py | vd1371/CBSA | f2b3f03c91ccd9ec02c2331f43573d7d6e72fd47 | [
"MIT"
] | null | null | null | from .create_fasttext_embedding import create_fasttext_embedding
from ._pkl_embedding import pkl_embedding | 53 | 64 | 0.915094 | 14 | 106 | 6.428571 | 0.428571 | 0.311111 | 0.511111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066038 | 106 | 2 | 65 | 53 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.