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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6048d20da49ea98d4711df54a5beadf997c0986a | 25 | py | Python | iweb/__init__.py | chaluemwut/iweb | 98e44a9d2ecd323889dde8a65582bb5d64b1a011 | [
"Apache-2.0"
] | null | null | null | iweb/__init__.py | chaluemwut/iweb | 98e44a9d2ecd323889dde8a65582bb5d64b1a011 | [
"Apache-2.0"
] | null | null | null | iweb/__init__.py | chaluemwut/iweb | 98e44a9d2ecd323889dde8a65582bb5d64b1a011 | [
"Apache-2.0"
] | null | null | null | from iweb.sys import iWeb | 25 | 25 | 0.84 | 5 | 25 | 4.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6085583863787610823241e7ad1a21e9f7acfe28 | 748 | py | Python | foolbox/batch_attacks/__init__.py | mkyybx/foolbox | 00b2dcc5ed30b12f28431e9dabe4d2bbc214d444 | [
"MIT"
] | 3 | 2021-12-25T02:29:24.000Z | 2022-02-22T02:12:30.000Z | foolbox/batch_attacks/__init__.py | pige2nd/foolbox | 2daabba8355afce9dfbec3de8d71dadadcfbd10b | [
"MIT"
] | null | null | null | foolbox/batch_attacks/__init__.py | pige2nd/foolbox | 2daabba8355afce9dfbec3de8d71dadadcfbd10b | [
"MIT"
] | 2 | 2020-11-27T00:03:48.000Z | 2020-11-27T00:08:04.000Z | # flake8: noqa
from .gradient import GradientAttack, GradientSignAttack, FGSM
from .carlini_wagner import CarliniWagnerL2Attack
from .ead import EADAttack
from .iterative_projected_gradient import LinfinityBasicIterativeAttack, BasicIterativeMethod, BIM
from .iterative_projected_gradient import L1BasicIterativeAttack... | 49.866667 | 126 | 0.898396 | 64 | 748 | 10.296875 | 0.46875 | 0.14871 | 0.200303 | 0.273141 | 0.327769 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005772 | 0.073529 | 748 | 14 | 127 | 53.428571 | 0.945166 | 0.016043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
60b5a58c60b76cd4b3f2348d6e92be983a366d7f | 140 | py | Python | paths.py | pykao/Brain-Lesion-Volume-of-Interest | ee5fd9b45fec8fbc8f5cdfbee2084fc799e606ed | [
"MIT"
] | null | null | null | paths.py | pykao/Brain-Lesion-Volume-of-Interest | ee5fd9b45fec8fbc8f5cdfbee2084fc799e606ed | [
"MIT"
] | null | null | null | paths.py | pykao/Brain-Lesion-Volume-of-Interest | ee5fd9b45fec8fbc8f5cdfbee2084fc799e606ed | [
"MIT"
] | null | null | null | brats2018_training_path = '/media/pkao/Dataset/BraTS2018/training/'
brats2018_validation_path = '/media/pkao/Dataset/BraTS2018/validation/' | 46.666667 | 71 | 0.828571 | 16 | 140 | 7 | 0.4375 | 0.303571 | 0.232143 | 0.357143 | 0.517857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 0.042857 | 140 | 3 | 71 | 46.666667 | 0.716418 | 0 | 0 | 0 | 0 | 0 | 0.567376 | 0.567376 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
60c76f1975ccab796d5853e3ff5966a48196958b | 40 | py | Python | sdk/exception/identity_exception.py | CLG0125/elemesdk | 344466398bad7cf026e082e47c77d3ca98621ef3 | [
"MIT"
] | 1 | 2021-04-03T05:11:29.000Z | 2021-04-03T05:11:29.000Z | sdk/exception/identity_exception.py | CLG0125/elemesdk | 344466398bad7cf026e082e47c77d3ca98621ef3 | [
"MIT"
] | null | null | null | sdk/exception/identity_exception.py | CLG0125/elemesdk | 344466398bad7cf026e082e47c77d3ca98621ef3 | [
"MIT"
] | null | null | null |
class IdentityException(Exception):pass | 20 | 39 | 0.875 | 4 | 40 | 8.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 40 | 2 | 39 | 20 | 0.921053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
7155d7317cc163ec519aed59f4573219d8243c42 | 158 | py | Python | chapter 1/c1q27.py | jonathanmonreal/nltk-examples | 95fb0b28c9ba433bac20990715496edc469293b4 | [
"Apache-2.0"
] | 2 | 2015-08-06T18:58:44.000Z | 2018-05-11T13:00:28.000Z | chapter 1/c1q27.py | jonathanmonreal/nltk-examples | 95fb0b28c9ba433bac20990715496edc469293b4 | [
"Apache-2.0"
] | null | null | null | chapter 1/c1q27.py | jonathanmonreal/nltk-examples | 95fb0b28c9ba433bac20990715496edc469293b4 | [
"Apache-2.0"
] | null | null | null | # Jonathan Monreal
from __future__ import division
import nltk
def vocab_size(test):
return len(set([word.lower() for word in text if word.isalpha()]))
| 19.75 | 70 | 0.740506 | 24 | 158 | 4.666667 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158228 | 158 | 7 | 71 | 22.571429 | 0.842105 | 0.101266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
717315ed91fa3390fa1e2d69d637e1e9ba571122 | 8,715 | py | Python | packages/ekstep_pipelines_tests/common/audio_commons/snr_util_tests.py | jeevan-revaneppa-hirethanad/audio-to-speech-pipeline | a5bd7f0321834507e4157eb1aea8659cd205bf1c | [
"MIT"
] | 23 | 2021-03-20T13:24:37.000Z | 2022-03-26T19:02:33.000Z | packages/ekstep_pipelines_tests/common/audio_commons/snr_util_tests.py | jeevan-revaneppa-hirethanad/audio-to-speech-pipeline | a5bd7f0321834507e4157eb1aea8659cd205bf1c | [
"MIT"
] | 10 | 2021-04-06T14:00:35.000Z | 2022-03-16T12:27:13.000Z | packages/ekstep_pipelines_tests/common/audio_commons/snr_util_tests.py | jeevan-revaneppa-hirethanad/audio-to-speech-pipeline | a5bd7f0321834507e4157eb1aea8659cd205bf1c | [
"MIT"
] | 16 | 2021-03-30T10:57:34.000Z | 2022-03-23T01:07:19.000Z | import subprocess
import unittest
from unittest import mock
from unittest.mock import Mock
from unittest.mock import call
from ekstep_data_pipelines.common.audio_commons.snr_util import SNR
class SNRTests(unittest.TestCase):
expected_file_content = (
"audio_id,cleaned_duration,utterances_files_list,medi... | 38.223684 | 126 | 0.642456 | 1,112 | 8,715 | 4.636691 | 0.138489 | 0.07564 | 0.105896 | 0.096974 | 0.81187 | 0.798875 | 0.774632 | 0.757564 | 0.705198 | 0.705198 | 0 | 0.033542 | 0.230293 | 8,715 | 227 | 127 | 38.39207 | 0.735092 | 0.01595 | 0 | 0.553672 | 0 | 0 | 0.280313 | 0.099545 | 0 | 0 | 0 | 0 | 0.096045 | 1 | 0.050847 | false | 0 | 0.033898 | 0 | 0.096045 | 0.011299 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
717528e85c12f55a54236e8c1b027938811dcd79 | 5,229 | py | Python | tests/test_light.py | ziv1234/python-dynalite-devices | 870daea2e540973fb913afdfff8425dae546708a | [
"MIT"
] | 3 | 2020-04-23T09:03:19.000Z | 2021-12-07T15:33:20.000Z | tests/test_light.py | ziv1234/python-dynalite-devices | 870daea2e540973fb913afdfff8425dae546708a | [
"MIT"
] | 3 | 2021-02-23T14:02:18.000Z | 2022-03-03T07:22:22.000Z | tests/test_light.py | ziv1234/python-dynalite-devices | 870daea2e540973fb913afdfff8425dae546708a | [
"MIT"
] | 3 | 2020-05-05T05:08:22.000Z | 2022-01-05T04:31:53.000Z | """Tests for Dynalite lights."""
import pytest
import dynalite_devices_lib.const as dyn_const
from dynalite_devices_lib.dynet import DynetPacket
from .common import packet_notification
@pytest.mark.asyncio
async def test_light(mock_gateway):
"""Test a Dynalite channel that is a light."""
name = "NAME"
c... | 36.062069 | 78 | 0.662459 | 672 | 5,229 | 4.809524 | 0.120536 | 0.108911 | 0.138614 | 0.129951 | 0.912129 | 0.897896 | 0.897896 | 0.850866 | 0.84375 | 0.84375 | 0 | 0.022308 | 0.25416 | 5,229 | 144 | 79 | 36.3125 | 0.80641 | 0.021419 | 0 | 0.643411 | 0 | 0 | 0.025718 | 0.009968 | 0 | 0 | 0 | 0 | 0.224806 | 1 | 0 | false | 0 | 0.031008 | 0 | 0.031008 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
717629598431d3e595279d44d93576f227eac46a | 9,422 | py | Python | nova/tests/unit/scheduler/filters/test_isolated_hosts_filter.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/scheduler/filters/test_isolated_hosts_filter.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/scheduler/filters/test_isolated_hosts_filter.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
comment|'# a copy of the License at'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# http://www.apache.org/licenses/L... | 14.062687 | 88 | 0.641902 | 1,422 | 9,422 | 4.089311 | 0.097046 | 0.170249 | 0.096303 | 0.110748 | 0.775924 | 0.747206 | 0.720034 | 0.704041 | 0.65761 | 0.62098 | 0 | 0.000473 | 0.102314 | 9,422 | 669 | 89 | 14.083707 | 0.687042 | 0 | 0 | 0.910314 | 0 | 0 | 0.420611 | 0.109849 | 0 | 0 | 0 | 0 | 0.029895 | 0 | null | null | 0.007474 | 0.005979 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e0b22965910c85c370afba10a9b48befd5e4816b | 7,782 | py | Python | FusionGene_spreadsheet_formatter.py | 25shmeckles/scripts | 61f2fd82a9500176e2b0d89665fedb936fdd9bc8 | [
"MIT"
] | null | null | null | FusionGene_spreadsheet_formatter.py | 25shmeckles/scripts | 61f2fd82a9500176e2b0d89665fedb936fdd9bc8 | [
"MIT"
] | null | null | null | FusionGene_spreadsheet_formatter.py | 25shmeckles/scripts | 61f2fd82a9500176e2b0d89665fedb936fdd9bc8 | [
"MIT"
] | 1 | 2018-03-02T08:02:50.000Z | 2018-03-02T08:02:50.000Z |
col_names = ['ID1', 'ID2', 'ID3', 'C1', 'START_C1', 'END_C1', 'C2', 'START_C2', 'END_C2', 'CNV_TYPE', 'ORIENTATION', 'ORIGIN', 'RECURRENCY']
infile_1 = '/home/amarcozz/Documents/Projects/Fusion Genes/datasets/nonrecdn_hg19_123sv.txt'
outfile_1 = '/home/amarcozz/Documents/Projects/Fusion Genes/datasets/dataset_1.txt'... | 34.586667 | 140 | 0.678232 | 1,159 | 7,782 | 4.348576 | 0.11648 | 0.134921 | 0.22619 | 0.159722 | 0.839881 | 0.823413 | 0.776389 | 0.63373 | 0.534921 | 0.506746 | 0 | 0.024615 | 0.190825 | 7,782 | 225 | 141 | 34.586667 | 0.775766 | 0.164996 | 0 | 0.80791 | 0 | 0 | 0.139117 | 0.090379 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.067797 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 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 | 6 |
e0dac74d80b89f5dea1a788433a027bfcafd89c5 | 1,970 | py | Python | tests/test_file_functions_zprocess_delete.py | devsetgo/dsg_lib | 520b1eb2ca5228b970b51ee1089208ab03d0cee5 | [
"MIT"
] | null | null | null | tests/test_file_functions_zprocess_delete.py | devsetgo/dsg_lib | 520b1eb2ca5228b970b51ee1089208ab03d0cee5 | [
"MIT"
] | 9 | 2020-01-20T23:41:51.000Z | 2020-01-26T03:44:05.000Z | tests/test_file_functions_zprocess_delete.py | devsetgo/dsg_lib | 520b1eb2ca5228b970b51ee1089208ab03d0cee5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
import unittest
import pytest
from dsg_lib.file_functions import delete_file
time_str = datetime.datetime.now()
class Test(unittest.TestCase):
def test_delete_csv_test_one(self):
file_named = "test_1.csv"
result = delete_file(file_named)
assert r... | 28.970588 | 46 | 0.668528 | 254 | 1,970 | 4.822835 | 0.169291 | 0.161633 | 0.116735 | 0.170612 | 0.854694 | 0.839184 | 0.820408 | 0.633469 | 0.633469 | 0.633469 | 0 | 0.002688 | 0.24467 | 1,970 | 67 | 47 | 29.402985 | 0.820565 | 0.01066 | 0 | 0.44 | 0 | 0 | 0.0981 | 0 | 0 | 0 | 0 | 0 | 0.22 | 1 | 0.22 | false | 0 | 0.08 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
461071ee0451caa979fc7c41143eec21363fef53 | 5,140 | py | Python | HLTriggerOffline/Top/python/topHLTValidationHarvest_cff.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | HLTriggerOffline/Top/python/topHLTValidationHarvest_cff.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 7 | 2016-07-17T02:34:54.000Z | 2019-08-13T07:58:37.000Z | HLTriggerOffline/Top/python/topHLTValidationHarvest_cff.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | import FWCore.ParameterSet.Config as cms
from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
DiMuonHLTValidationHarvest = DQMEDHarvester("DQMGenericClient",
subDirs = cms.untracked.vstring("HLT/TopHLTValidation/Top/DiMuon"),
efficiency = cms.vstring(
"hEffLeptonEta 'Efficiency vs Eta... | 52.44898 | 89 | 0.69144 | 400 | 5,140 | 8.885 | 0.15 | 0.094541 | 0.059088 | 0.078784 | 0.810917 | 0.810917 | 0.810917 | 0.810917 | 0.810917 | 0.653911 | 0 | 0 | 0.233658 | 5,140 | 97 | 90 | 52.989691 | 0.902259 | 0 | 0 | 0.636364 | 0 | 0 | 0.531232 | 0.050399 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022727 | 0 | 0.022727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1ce14c4a494ba2fd577352b87315c8393a9b917c | 666 | py | Python | sdk/python/pulumi_azure_nextgen/insights/v20150501/__init__.py | test-wiz-sec/pulumi-azure-nextgen | 20a695af0d020b34b0f1c336e1b69702755174cc | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_nextgen/insights/v20150501/__init__.py | test-wiz-sec/pulumi-azure-nextgen | 20a695af0d020b34b0f1c336e1b69702755174cc | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_nextgen/insights/v20150501/__init__.py | test-wiz-sec/pulumi-azure-nextgen | 20a695af0d020b34b0f1c336e1b69702755174cc | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
# Export this package's modules as members:
from .analytics_item import *
from .component import *
from .export_configuration import *
from .favorite i... | 30.272727 | 80 | 0.761261 | 98 | 666 | 5.010204 | 0.459184 | 0.305499 | 0.185336 | 0.093686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001779 | 0.156156 | 666 | 21 | 81 | 31.714286 | 0.871886 | 0.304805 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
1cef20a1a06409e7f1b924f525aee878995fc7fe | 23,483 | py | Python | PIV/base.py | fossabot/Python-Image-and-Video-Tools | 59d00cdc6a86cdf89b91af61f99e42dfdb4bf116 | [
"Unlicense"
] | null | null | null | PIV/base.py | fossabot/Python-Image-and-Video-Tools | 59d00cdc6a86cdf89b91af61f99e42dfdb4bf116 | [
"Unlicense"
] | null | null | null | PIV/base.py | fossabot/Python-Image-and-Video-Tools | 59d00cdc6a86cdf89b91af61f99e42dfdb4bf116 | [
"Unlicense"
] | null | null | null | # This is free and unencumbered software released into the public domain.
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
# In jurisdictions that recog... | 209.669643 | 20,794 | 0.710344 | 5,110 | 23,483 | 3.258708 | 0.279061 | 0.01153 | 0.012971 | 0.014413 | 0.010449 | 0.007567 | 0.007567 | 0.007567 | 0.007387 | 0.005405 | 0 | 0.224585 | 0.03658 | 23,483 | 112 | 20,795 | 209.669643 | 0.511448 | 0.053486 | 0 | 0.025974 | 0 | 0.207792 | 0.667327 | 0.654038 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038961 | 0 | 0.038961 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1cf28e060944e7a108745d07af7e4de1811a4482 | 28 | py | Python | eisen/models/__init__.py | canerozer/eisen-core | 02ab7dc4cc7e3e21fd48da2bc1a91ce474922804 | [
"MIT"
] | 41 | 2020-04-11T02:57:43.000Z | 2021-06-12T17:57:54.000Z | eisen/models/__init__.py | canerozer/eisen-core | 02ab7dc4cc7e3e21fd48da2bc1a91ce474922804 | [
"MIT"
] | 14 | 2020-02-04T07:20:11.000Z | 2020-09-28T13:24:06.000Z | eisen/models/__init__.py | canerozer/eisen-core | 02ab7dc4cc7e3e21fd48da2bc1a91ce474922804 | [
"MIT"
] | 14 | 2020-04-30T18:34:34.000Z | 2021-01-29T13:37:43.000Z | from .segmentation import *
| 14 | 27 | 0.785714 | 3 | 28 | 7.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 28 | 1 | 28 | 28 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e8131688d5ba86e8db7035d48ce362002fcfa009 | 5,757 | py | Python | core/tests/views/test_ansible_user.py | Suleymanov2006/ansible-manager | 57397c12e49611a5cc6197ecd184222caabf1361 | [
"MIT"
] | 13 | 2017-03-18T06:03:43.000Z | 2020-02-15T03:42:28.000Z | core/tests/views/test_ansible_user.py | Suleymanov2006/ansible-manager | 57397c12e49611a5cc6197ecd184222caabf1361 | [
"MIT"
] | 78 | 2017-03-17T18:16:32.000Z | 2018-10-26T11:58:20.000Z | core/tests/views/test_ansible_user.py | Suleymanov2006/ansible-manager | 57397c12e49611a5cc6197ecd184222caabf1361 | [
"MIT"
] | 6 | 2017-03-19T13:41:29.000Z | 2019-09-11T21:36:52.000Z | from django.test import TestCase
from django.urls import reverse
from django.contrib.auth.models import User
from django.contrib.auth.models import Permission
from core import models
from core.views import ansible_user
from core.tests.mixins import TestDefaultMixin
class SearchAnsibleUserView(TestDefaultMixin, TestC... | 38.898649 | 113 | 0.660935 | 654 | 5,757 | 5.680428 | 0.117737 | 0.094751 | 0.092059 | 0.088829 | 0.836608 | 0.82288 | 0.790579 | 0.761238 | 0.714401 | 0.614536 | 0 | 0.004997 | 0.200452 | 5,757 | 147 | 114 | 39.163265 | 0.802086 | 0 | 0 | 0.459459 | 0 | 0 | 0.162237 | 0 | 0 | 0 | 0 | 0 | 0.18018 | 1 | 0.117117 | false | 0.027027 | 0.063063 | 0 | 0.207207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e82520f449e09766ec822e18ce6fb0a522dd97ef | 190 | py | Python | demo/deep_learning/base/aug.py | jihuacao/Putil | b753fc94bea4cbda00f483681c55f0e9f54adef2 | [
"Apache-2.0"
] | 1 | 2018-12-09T06:09:29.000Z | 2018-12-09T06:09:29.000Z | demo/deep_learning/base/aug.py | jihuacao/Putil | b753fc94bea4cbda00f483681c55f0e9f54adef2 | [
"Apache-2.0"
] | null | null | null | demo/deep_learning/base/aug.py | jihuacao/Putil | b753fc94bea4cbda00f483681c55f0e9f54adef2 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
import Putil.data.aug as paug
def DefaultAug(args, property_type='', **kwargs):
return paug.AugFuncNoOp
def DefaultAugArg(parser, property_type='', **kwargs):
pass | 19 | 54 | 0.715789 | 25 | 190 | 5.36 | 0.8 | 0.179104 | 0.268657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.147368 | 190 | 10 | 55 | 19 | 0.820988 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.2 | 0.2 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 6 |
1c07bed31d34441d85e31f1b91c26bafe769bcc2 | 8,025 | py | Python | egret/thirdparty/pglib_files.py | kdheepak/Egret | f982247637137e098191453e682376adc1b4c2ac | [
"BSD-3-Clause"
] | 1 | 2021-08-25T12:53:38.000Z | 2021-08-25T12:53:38.000Z | egret/thirdparty/pglib_files.py | kdheepak/Egret | f982247637137e098191453e682376adc1b4c2ac | [
"BSD-3-Clause"
] | 1 | 2019-05-23T02:56:29.000Z | 2019-05-23T02:56:29.000Z | egret/thirdparty/pglib_files.py | kdheepak/Egret | f982247637137e098191453e682376adc1b4c2ac | [
"BSD-3-Clause"
] | 2 | 2019-11-18T20:18:51.000Z | 2020-05-08T15:56:17.000Z | # ___________________________________________________________________________
#
# EGRET: Electrical Grid Research and Engineering Tools
# Copyright 2019 National Technology & Engineering Solutions of Sandia, LLC
# (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
# Government retains certain r... | 51.774194 | 78 | 0.784922 | 1,342 | 8,025 | 4.146796 | 0.089419 | 0.38814 | 0.34717 | 0.3531 | 0.747709 | 0.708176 | 0.65858 | 0.497934 | 0.414555 | 0.012938 | 0 | 0.060832 | 0.080249 | 8,025 | 154 | 79 | 52.11039 | 0.693131 | 0.073271 | 0 | 0 | 0 | 0 | 0.864592 | 0.864592 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1c3b4272f1b549b9a0cd73b55c4038f19a4426a2 | 76 | py | Python | wd_extractor/adder.py | DuaneNielsen/wd_extractor | 128a189bacd0cd2d7f1fa598202b9c4e55f48e2f | [
"CC-BY-3.0"
] | null | null | null | wd_extractor/adder.py | DuaneNielsen/wd_extractor | 128a189bacd0cd2d7f1fa598202b9c4e55f48e2f | [
"CC-BY-3.0"
] | null | null | null | wd_extractor/adder.py | DuaneNielsen/wd_extractor | 128a189bacd0cd2d7f1fa598202b9c4e55f48e2f | [
"CC-BY-3.0"
] | null | null | null | class adder:
def add(self,first,second):
return first + second
| 15.2 | 31 | 0.631579 | 10 | 76 | 4.8 | 0.8 | 0.458333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276316 | 76 | 4 | 32 | 19 | 0.872727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
1c3e9ab846f7918dcf9e79fdc7c1a3960ef0324e | 1,408 | py | Python | terrascript/opsgenie/r.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | terrascript/opsgenie/r.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | terrascript/opsgenie/r.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # terrascript/opsgenie/r.py
# Automatically generated by tools/makecode.py ()
import warnings
warnings.warn(
"using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2
)
import terrascript
class opsgenie_alert_policy(terrascript.Resource):
pass
class opsgenie_api_integration(terrascript.R... | 16.372093 | 79 | 0.791193 | 153 | 1,408 | 7.065359 | 0.300654 | 0.228492 | 0.404255 | 0.466235 | 0.706753 | 0.540241 | 0 | 0 | 0 | 0 | 0 | 0.000827 | 0.141335 | 1,408 | 85 | 80 | 16.564706 | 0.8933 | 0.051847 | 0 | 0.44186 | 1 | 0 | 0.029279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.44186 | 0.046512 | 0 | 0.488372 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
1c5ee907f2d953035e265983d2517d49a2033ef8 | 14,901 | py | Python | dsd/dsp.py | c752334430/dsd_pip | e1d60ee7e788833353128bb79cfab9adfe285bef | [
"MIT"
] | null | null | null | dsd/dsp.py | c752334430/dsd_pip | e1d60ee7e788833353128bb79cfab9adfe285bef | [
"MIT"
] | null | null | null | dsd/dsp.py | c752334430/dsd_pip | e1d60ee7e788833353128bb79cfab9adfe285bef | [
"MIT"
] | null | null | null | from .fibheap import FibonacciHeap as FibHeap
import networkx as nx
import copy
# class DSFuncs(object):
# def __init__(self, arg):
# super(DenseSubgraphFuncs, self).__init__()
# self.arg = arg
# @staticmethod
def check_undirected_graph(G):
if isinstance(G, nx.Graph):
return
raise ... | 33.187082 | 116 | 0.625394 | 2,072 | 14,901 | 4.349421 | 0.10666 | 0.04261 | 0.027963 | 0.014425 | 0.830892 | 0.789503 | 0.759987 | 0.739791 | 0.723147 | 0.710053 | 0 | 0.009281 | 0.269646 | 14,901 | 448 | 117 | 33.261161 | 0.8188 | 0.430374 | 0 | 0.527638 | 0 | 0 | 0.011282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060302 | false | 0 | 0.015075 | 0 | 0.155779 | 0.005025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1c865327204ddc5c7c93a8f266cb201dd0424a45 | 5,825 | py | Python | tests/unit/bucket_file_preparation_test_io/bucket_file_preparation_1_functions_io.py | MickyHCorbett/MorfLess | 9761197d7767c250cc27262e1ab41adf21c59333 | [
"MIT"
] | null | null | null | tests/unit/bucket_file_preparation_test_io/bucket_file_preparation_1_functions_io.py | MickyHCorbett/MorfLess | 9761197d7767c250cc27262e1ab41adf21c59333 | [
"MIT"
] | null | null | null | tests/unit/bucket_file_preparation_test_io/bucket_file_preparation_1_functions_io.py | MickyHCorbett/MorfLess | 9761197d7767c250cc27262e1ab41adf21c59333 | [
"MIT"
] | null | null | null | #
import libraries.constants as ct
import libraries.globals as gb
import libraries.schematics as sch
from unit.second_processes_test_io.second_processes_supplemental import LIST_META_1
from unit.second_processes_test_io.second_processes_supplemental import POSTLIST_2
from unit.lists_test_io.lists_supplemental import D... | 27.738095 | 89 | 0.56927 | 539 | 5,825 | 5.829314 | 0.139147 | 0.038192 | 0.022915 | 0.046785 | 0.823043 | 0.806493 | 0.795035 | 0.742839 | 0.742839 | 0.742839 | 0 | 0.012776 | 0.260944 | 5,825 | 209 | 90 | 27.870813 | 0.717073 | 0 | 0 | 0.691919 | 0 | 0 | 0.456637 | 0.139447 | 0 | 0 | 0 | 0 | 0.035354 | 1 | 0 | false | 0 | 0.035354 | 0 | 0.035354 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
98e9e85087e5f27d4993b2c3d05fbb5a2aa768a2 | 298 | py | Python | custom/icds_reports/utils/tasks.py | dborowiecki/commcare-hq | f2f4fa67faec09040a98502f5657444075b63f2e | [
"BSD-3-Clause"
] | null | null | null | custom/icds_reports/utils/tasks.py | dborowiecki/commcare-hq | f2f4fa67faec09040a98502f5657444075b63f2e | [
"BSD-3-Clause"
] | null | null | null | custom/icds_reports/utils/tasks.py | dborowiecki/commcare-hq | f2f4fa67faec09040a98502f5657444075b63f2e | [
"BSD-3-Clause"
] | null | null | null |
def call_citus_experiment(parameterized_sql, params, data_source="Unknown"):
# This is necessary to mock for testing due to a circular import
from custom.icds_reports.tasks import run_citus_experiment_raw_sql
run_citus_experiment_raw_sql.delay(parameterized_sql, params, data_source)
| 42.571429 | 78 | 0.818792 | 44 | 298 | 5.204545 | 0.659091 | 0.196507 | 0.19214 | 0.227074 | 0.489083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127517 | 298 | 6 | 79 | 49.666667 | 0.880769 | 0.208054 | 0 | 0 | 0 | 0 | 0.030172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
98fccb050bebebd904e4252037acbf4464e56549 | 137 | py | Python | schema.py | asd65241/HKTVmall-Exchange-API | babb95e4686f56a24a42401c7cd2f318d6773036 | [
"MIT"
] | null | null | null | schema.py | asd65241/HKTVmall-Exchange-API | babb95e4686f56a24a42401c7cd2f318d6773036 | [
"MIT"
] | null | null | null | schema.py | asd65241/HKTVmall-Exchange-API | babb95e4686f56a24a42401c7cd2f318d6773036 | [
"MIT"
] | null | null | null | from typing import Optional
from pydantic import BaseModel
class Query(BaseModel):
username: str
password: str
merchant: str | 19.571429 | 30 | 0.751825 | 17 | 137 | 6.058824 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20438 | 137 | 7 | 31 | 19.571429 | 0.944954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
c73461f8967386b1a32eb92022e6d3ee74d02dc7 | 99 | py | Python | frontend/views.py | mrivadeneira/cs_page | 14b2d8bd29864090df9e9d5dc299d3d2bda994fe | [
"MIT"
] | null | null | null | frontend/views.py | mrivadeneira/cs_page | 14b2d8bd29864090df9e9d5dc299d3d2bda994fe | [
"MIT"
] | null | null | null | frontend/views.py | mrivadeneira/cs_page | 14b2d8bd29864090df9e9d5dc299d3d2bda994fe | [
"MIT"
] | null | null | null | from django.shortcuts import render
def index(req):
return render(req, 'frontend/index.html')
| 19.8 | 45 | 0.747475 | 14 | 99 | 5.285714 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141414 | 99 | 4 | 46 | 24.75 | 0.870588 | 0 | 0 | 0 | 0 | 0 | 0.191919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
c742cfc4be785b522f6acb9af9edb07797bd2ab2 | 10,097 | py | Python | mxmrt/cvm_op.py | KunyFox/MRTv2 | 7b7a156be6f99082964227babd9e157708255b2c | [
"Apache-2.0"
] | null | null | null | mxmrt/cvm_op.py | KunyFox/MRTv2 | 7b7a156be6f99082964227babd9e157708255b2c | [
"Apache-2.0"
] | null | null | null | mxmrt/cvm_op.py | KunyFox/MRTv2 | 7b7a156be6f99082964227babd9e157708255b2c | [
"Apache-2.0"
] | null | null | null | import mxnet as mx
from mxnet import ndarray as nd
import numpy as np
class Clip(mx.operator.CustomOp):
def __init__(self, precision, **kwargs):
super(Clip, self).__init__(**kwargs)
clip = 2 ** (int(precision) - 1) - 1
self.min = float(-clip)
self.max = float(clip)
def forward... | 33.656667 | 71 | 0.618302 | 1,455 | 10,097 | 3.990378 | 0.072165 | 0.033069 | 0.026352 | 0.033586 | 0.799346 | 0.784361 | 0.763004 | 0.730968 | 0.720462 | 0.692215 | 0 | 0.010614 | 0.253541 | 10,097 | 299 | 72 | 33.769231 | 0.759719 | 0 | 0 | 0.681818 | 0 | 0 | 0.017241 | 0 | 0 | 0 | 0 | 0 | 0.05303 | 1 | 0.257576 | false | 0 | 0.011364 | 0.090909 | 0.481061 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c795805ca5dd99023872582e942f70d1dc0efb64 | 20,993 | py | Python | resources/dot_PyCharm/system/python_stubs/-762174762/datetime.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/-762174762/datetime.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | null | null | null | resources/dot_PyCharm/system/python_stubs/-762174762/datetime.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | null | null | null | # encoding: utf-8
# module datetime
# from (built-in)
# by generator 1.147
""" Fast implementation of the datetime type. """
# no imports
# Variables with simple values
MAXYEAR = 9999
MINYEAR = 1
# no functions
# classes
class date(object):
""" date(year, month, day) --> date object """
def ctime(self): # ... | 33.428344 | 165 | 0.595722 | 2,625 | 20,993 | 4.389333 | 0.088 | 0.097032 | 0.14928 | 0.194411 | 0.795348 | 0.743447 | 0.6774 | 0.630967 | 0.588613 | 0.550338 | 0 | 0.01529 | 0.264755 | 20,993 | 627 | 166 | 33.481659 | 0.731195 | 0.500548 | 0 | 0.765306 | 0 | 0 | 0.00011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.414966 | false | 0.306122 | 0 | 0 | 0.636054 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
c7d732f94ffc33c1ab4b40832d2fee099dfa12ff | 181 | py | Python | states/data/__init__.py | AColocho/us-states | 1b97d9d4d1784ad6e297ffe1df2927eab3e86546 | [
"BSL-1.0"
] | 3 | 2020-12-31T02:08:01.000Z | 2022-01-11T07:21:22.000Z | states/data/__init__.py | AColocho/us-states | 1b97d9d4d1784ad6e297ffe1df2927eab3e86546 | [
"BSL-1.0"
] | 14 | 2020-12-23T00:06:20.000Z | 2022-01-10T16:43:43.000Z | states/data/__init__.py | AColocho/us-states | 1b97d9d4d1784ad6e297ffe1df2927eab3e86546 | [
"BSL-1.0"
] | 3 | 2020-12-28T08:47:00.000Z | 2022-01-10T15:27:01.000Z | from .states_data import _states_data_
from .territories_data import _territories_data_
_states_data_ = _states_data_().states
_territories_data_ = _territories_data_().territories | 36.2 | 53 | 0.867403 | 22 | 181 | 6.227273 | 0.227273 | 0.291971 | 0.20438 | 0.291971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077348 | 181 | 5 | 53 | 36.2 | 0.820359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
1bf28fc1cde48efb4025f30d68c9f53b33182684 | 522 | py | Python | src/nlp_datasets/word_embedding/__init__.py | TeaKatz/NLP_Datasets | 6eeacd0d120ce8d7d1e3da2b40af94006ee1cdf6 | [
"MIT"
] | null | null | null | src/nlp_datasets/word_embedding/__init__.py | TeaKatz/NLP_Datasets | 6eeacd0d120ce8d7d1e3da2b40af94006ee1cdf6 | [
"MIT"
] | null | null | null | src/nlp_datasets/word_embedding/__init__.py | TeaKatz/NLP_Datasets | 6eeacd0d120ce8d7d1e3da2b40af94006ee1cdf6 | [
"MIT"
] | null | null | null | from .SemanticSimilarityDataset import WordSim353Dataset
from .SpellingSimilarityDataset import SpellingSimilarityDataset
from .SpellingSimilarityDataset import WordSpellingSimilarityDataset
from .SpellingSimilarityDataset import AnagramSpellingSimilarityDataset
from .SpellingSimilarityDataset import MisspellingSpelli... | 52.2 | 75 | 0.921456 | 32 | 522 | 15.03125 | 0.375 | 0.241164 | 0.29106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006135 | 0.063218 | 522 | 10 | 76 | 52.2 | 0.977505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
1bf6d4c964ebfb750024fb650bd27746db790c60 | 1,701 | py | Python | build/lib/augmentit/draw/plot_box.py | sandesha-hegde/augmen | 133894207db633cc7f0029e8b0070c6fb11a9f77 | [
"MIT"
] | 2 | 2021-02-26T07:39:10.000Z | 2021-02-26T08:34:07.000Z | build/lib/augmentit/draw/plot_box.py | sandesha-hegde/augmentit | 133894207db633cc7f0029e8b0070c6fb11a9f77 | [
"MIT"
] | null | null | null | build/lib/augmentit/draw/plot_box.py | sandesha-hegde/augmentit | 133894207db633cc7f0029e8b0070c6fb11a9f77 | [
"MIT"
] | null | null | null | import cv2
import random
import numpy as np
def plot_one_box(x, img, color=None, label=None, line_thickness=None):
# Plots one bounding box on image img
# x = [[xmin,ymin], [xmax, ymax]]
tl = line_thickness or round(0.002 * (img.shape[0] + img.shape[1]) / 2) + 1 # line/font thickness
color = color or ... | 53.15625 | 117 | 0.620223 | 289 | 1,701 | 3.581315 | 0.214533 | 0.04058 | 0.052174 | 0.082126 | 0.87343 | 0.87343 | 0.831884 | 0.831884 | 0.831884 | 0.831884 | 0 | 0.081602 | 0.207525 | 1,701 | 31 | 118 | 54.870968 | 0.686202 | 0.188125 | 0 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.125 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4001a9930ac8af308a4e154595c298fb54f29405 | 91 | py | Python | app/estate/__init__.py | lcgameszero/lcgames_blog | 43df3685f1c826f2a8f236a33e1f183bef5e4b70 | [
"MIT"
] | 1 | 2017-05-27T02:10:28.000Z | 2017-05-27T02:10:28.000Z | app/estate/__init__.py | lcgameszero/lcgames_blog | 43df3685f1c826f2a8f236a33e1f183bef5e4b70 | [
"MIT"
] | null | null | null | app/estate/__init__.py | lcgameszero/lcgames_blog | 43df3685f1c826f2a8f236a33e1f183bef5e4b70 | [
"MIT"
] | null | null | null | from flask import Blueprint
estate = Blueprint('estate', __name__)
from . import views
| 11.375 | 38 | 0.747253 | 11 | 91 | 5.818182 | 0.636364 | 0.46875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175824 | 91 | 7 | 39 | 13 | 0.853333 | 0 | 0 | 0 | 0 | 0 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
405aaafac8fa2f456206ed72bd6cc69e3dd3bc34 | 38 | py | Python | src/Jacob.py | Bowmanj1/01-IntroductionToPython | 8ee103dfad43ba16ef3b4d6d9f923863fc096cd5 | [
"MIT"
] | null | null | null | src/Jacob.py | Bowmanj1/01-IntroductionToPython | 8ee103dfad43ba16ef3b4d6d9f923863fc096cd5 | [
"MIT"
] | null | null | null | src/Jacob.py | Bowmanj1/01-IntroductionToPython | 8ee103dfad43ba16ef3b4d6d9f923863fc096cd5 | [
"MIT"
] | null | null | null | import rosegraphics as rg
import math
| 12.666667 | 25 | 0.842105 | 6 | 38 | 5.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 38 | 2 | 26 | 19 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4073152af519800927a14d9d4eb26daa59f80dc3 | 7,208 | py | Python | pydebsign/tests/test_pydebsign.py | mkouhei/pydebsign | 6fd55d77a77099aff15a745f4f0c0285164c2853 | [
"ISC"
] | 2 | 2015-01-23T15:50:19.000Z | 2015-11-04T12:57:05.000Z | pydebsign/tests/test_pydebsign.py | mkouhei/pydebsign | 6fd55d77a77099aff15a745f4f0c0285164c2853 | [
"ISC"
] | 5 | 2015-04-10T06:37:00.000Z | 2018-04-11T01:41:40.000Z | pydebsign/tests/test_pydebsign.py | mkouhei/pydebsign | 6fd55d77a77099aff15a745f4f0c0285164c2853 | [
"ISC"
] | 2 | 2016-08-10T18:50:29.000Z | 2018-03-05T00:39:48.000Z | # -*- coding: utf-8 -*-
""" pydebsing.tests.test_pydebsign """
import unittest
import shutil
import os
import sys
from pydebsign import debsign
class PydebsignTests(unittest.TestCase):
""" Unit test of pydebsign """
def setUp(self):
shutil.copytree('pydebsign/tests/test_data', '_build')
self... | 44.493827 | 78 | 0.556881 | 753 | 7,208 | 5.23506 | 0.162019 | 0.041857 | 0.057078 | 0.035515 | 0.804414 | 0.761035 | 0.753425 | 0.719685 | 0.677829 | 0.65931 | 0 | 0.025256 | 0.362791 | 7,208 | 161 | 79 | 44.770186 | 0.833007 | 0.316731 | 0 | 0.569892 | 0 | 0.021505 | 0.078947 | 0.045776 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.107527 | false | 0.129032 | 0.053763 | 0 | 0.172043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
40b45a3d8cbb4d3156acf3a0160541ed327006b5 | 83 | py | Python | gammapy/estimators/map/__init__.py | Rishank2610/gammapy | 3cd64fdb2c53c8e5c697a9b85ef8d0486bff0b76 | [
"BSD-3-Clause"
] | 1 | 2017-11-22T17:07:56.000Z | 2017-11-22T17:07:56.000Z | gammapy/estimators/map/__init__.py | Rishank2610/gammapy | 3cd64fdb2c53c8e5c697a9b85ef8d0486bff0b76 | [
"BSD-3-Clause"
] | null | null | null | gammapy/estimators/map/__init__.py | Rishank2610/gammapy | 3cd64fdb2c53c8e5c697a9b85ef8d0486bff0b76 | [
"BSD-3-Clause"
] | 1 | 2019-09-04T14:03:33.000Z | 2019-09-04T14:03:33.000Z | from .asmooth import *
from .core import *
from .excess import *
from .ts import *
| 16.6 | 22 | 0.710843 | 12 | 83 | 4.916667 | 0.5 | 0.508475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192771 | 83 | 4 | 23 | 20.75 | 0.880597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
40ba079c7f94122a8b8e14ad72f294ceb4109bd6 | 5,595 | py | Python | huaweicloud-sdk-ces/huaweicloudsdkces/v1/model/__init__.py | Adek06/huaweicloud-sdk-python-v3 | 3d13b27d089e04a1ae567cd649b3c5509e0391d2 | [
"Apache-2.0"
] | null | null | null | huaweicloud-sdk-ces/huaweicloudsdkces/v1/model/__init__.py | Adek06/huaweicloud-sdk-python-v3 | 3d13b27d089e04a1ae567cd649b3c5509e0391d2 | [
"Apache-2.0"
] | null | null | null | huaweicloud-sdk-ces/huaweicloudsdkces/v1/model/__init__.py | Adek06/huaweicloud-sdk-python-v3 | 3d13b27d089e04a1ae567cd649b3c5509e0391d2 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
# import models into model package
from huaweicloudsdkces.v1.model.additional_info import AdditionalInfo
from huaweicloudsdkces.v1.model.alarm_actions import AlarmActions
from huaweicloudsdkces.v1.model.alarm_history_info import AlarmHistoryInfo
from huaweiclouds... | 76.643836 | 105 | 0.912779 | 638 | 5,595 | 7.752351 | 0.177116 | 0.284472 | 0.311565 | 0.379296 | 0.512333 | 0.438334 | 0.275981 | 0.07501 | 0.021836 | 0 | 0 | 0.012801 | 0.050581 | 5,595 | 72 | 106 | 77.708333 | 0.918298 | 0.008222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
40be63a6852ff255c7188ae63bf2c70f5a78817e | 195 | py | Python | tests/markers.py | vyahello/Blog | 5e0dae383be2eedde221f31bc61d29bfc436a44a | [
"MIT"
] | 4 | 2018-05-22T10:02:23.000Z | 2018-06-04T19:58:46.000Z | tests/markers.py | vyahello/blog | 5e0dae383be2eedde221f31bc61d29bfc436a44a | [
"MIT"
] | 1 | 2020-09-28T21:01:05.000Z | 2020-09-28T21:01:05.000Z | tests/markers.py | vyahello/blog | 5e0dae383be2eedde221f31bc61d29bfc436a44a | [
"MIT"
] | 1 | 2021-04-10T22:32:39.000Z | 2021-04-10T22:32:39.000Z | import pytest
from _pytest.mark import MarkDecorator
smoke: MarkDecorator = pytest.mark.smoke
unittest: MarkDecorator = pytest.mark.unittest
performance: MarkDecorator = pytest.mark.performance
| 27.857143 | 52 | 0.835897 | 22 | 195 | 7.363636 | 0.363636 | 0.246914 | 0.425926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097436 | 195 | 6 | 53 | 32.5 | 0.920455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
dc0b166145c26207ee91c18c65ecc4bf5d7b942f | 16,298 | py | Python | cumulusci/tasks/bulkdata/tests/test_upsert.py | davisagli/CumulusCI | fd74c324ad3ff662484b159395c639879011e711 | [
"BSD-3-Clause"
] | null | null | null | cumulusci/tasks/bulkdata/tests/test_upsert.py | davisagli/CumulusCI | fd74c324ad3ff662484b159395c639879011e711 | [
"BSD-3-Clause"
] | null | null | null | cumulusci/tasks/bulkdata/tests/test_upsert.py | davisagli/CumulusCI | fd74c324ad3ff662484b159395c639879011e711 | [
"BSD-3-Clause"
] | null | null | null | import re
from unittest import mock
import pytest
import responses
from cumulusci.tasks.bulkdata import LoadData
from cumulusci.tasks.bulkdata.step import DataApi, DataOperationStatus
from cumulusci.tests.util import mock_describe_calls
CURRENT_SF_API_VERSION = "52.0" # match cumulusci.yml until it updates
class ... | 40.241975 | 131 | 0.546018 | 1,372 | 16,298 | 6.266764 | 0.172012 | 0.02268 | 0.029658 | 0.036636 | 0.811584 | 0.768202 | 0.762387 | 0.720982 | 0.701907 | 0.697023 | 0 | 0.046326 | 0.347036 | 16,298 | 404 | 132 | 40.341584 | 0.761605 | 0.006811 | 0 | 0.617021 | 0 | 0 | 0.44417 | 0.216462 | 0 | 0 | 0 | 0 | 0.034574 | 1 | 0.018617 | false | 0 | 0.018617 | 0 | 0.045213 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
dc147827f58081a4c9de7b61d3ff84e4b3fc1a1a | 34 | py | Python | bestmatchfinder/submit_single_sequence.py | Amrithasuresh/BPPRC | 6ee01914a612d65f7084db7ce377da3bab682e66 | [
"BSD-3-Clause"
] | 2 | 2020-01-10T18:36:37.000Z | 2020-01-10T18:42:41.000Z | bestmatchfinder/submit_single_sequence.py | Amrithasuresh/BPPRC | 6ee01914a612d65f7084db7ce377da3bab682e66 | [
"BSD-3-Clause"
] | 12 | 2020-06-05T23:39:18.000Z | 2022-03-12T00:48:18.000Z | bestmatchfinder/submit_single_sequence.py | Amrithasuresh/BPPRC_v1 | 6ee01914a612d65f7084db7ce377da3bab682e66 | [
"BSD-3-Clause"
] | null | null | null | from bestmatchfinder import align
| 17 | 33 | 0.882353 | 4 | 34 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 34 | 1 | 34 | 34 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
906a328c7f5fe7e0196f85d8c81e8004603fae29 | 141 | py | Python | fresheveryday/apps/order/admin.py | vstarman/Fresh-Everyday | 4bb64d60ebd2e5bce45de7261581f870bd6d0d45 | [
"MIT"
] | 1 | 2017-12-21T07:52:07.000Z | 2017-12-21T07:52:07.000Z | fresheveryday/apps/order/admin.py | vstarman/Fresh-Everyday | 4bb64d60ebd2e5bce45de7261581f870bd6d0d45 | [
"MIT"
] | null | null | null | fresheveryday/apps/order/admin.py | vstarman/Fresh-Everyday | 4bb64d60ebd2e5bce45de7261581f870bd6d0d45 | [
"MIT"
] | null | null | null | from django.contrib import admin
from apps.order import models
admin.site.register(models.OrderGoods)
admin.site.register(models.OrderInfo)
| 23.5 | 38 | 0.836879 | 20 | 141 | 5.9 | 0.6 | 0.152542 | 0.288136 | 0.389831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078014 | 141 | 5 | 39 | 28.2 | 0.907692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
90dec324ad5eacf7071cc2ed565337b919494638 | 235 | py | Python | snm/spareparts/admin.py | sparesnmechs/sparesnmechs | 44a7178fcfd0c89004d9f31734405c8d0fd5cd97 | [
"MIT"
] | null | null | null | snm/spareparts/admin.py | sparesnmechs/sparesnmechs | 44a7178fcfd0c89004d9f31734405c8d0fd5cd97 | [
"MIT"
] | 9 | 2021-02-27T13:13:38.000Z | 2021-06-04T11:57:12.000Z | snm/spareparts/admin.py | sparesnmechs/sparesnmechs | 44a7178fcfd0c89004d9f31734405c8d0fd5cd97 | [
"MIT"
] | null | null | null | """Spareparts app Admin."""
from django.contrib import admin
import snm.spareparts.models as models
admin.site.register(models.SparePart)
admin.site.register(models.SparePartCategory)
admin.site.register(models.SparePartSubCategory)
| 26.111111 | 48 | 0.825532 | 29 | 235 | 6.689655 | 0.517241 | 0.139175 | 0.262887 | 0.35567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068085 | 235 | 8 | 49 | 29.375 | 0.885845 | 0.089362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
291a40500d9515ca8ce7048a9dc2e1ae81abc352 | 38,758 | py | Python | action-Actions.py | CandidoAC/Snips | 4276e52fce6a126399e39fb76fce2f1574e619e1 | [
"MIT"
] | null | null | null | action-Actions.py | CandidoAC/Snips | 4276e52fce6a126399e39fb76fce2f1574e619e1 | [
"MIT"
] | null | null | null | action-Actions.py | CandidoAC/Snips | 4276e52fce6a126399e39fb76fce2f1574e619e1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import time
import io
import configparser
import os
import csv
from datetime import datetime
from datetime import timedelta
import calendar
from snipsTools import SnipsConfigParser
from hermes_python.hermes import Hermes
from hermes_python.ffi.utils import MqttOptions
fro... | 53.165981 | 362 | 0.566464 | 3,975 | 38,758 | 5.437736 | 0.081006 | 0.049965 | 0.013879 | 0.014249 | 0.826324 | 0.804811 | 0.784687 | 0.747213 | 0.710016 | 0.678464 | 0 | 0.005205 | 0.310981 | 38,758 | 728 | 363 | 53.239011 | 0.804082 | 0.006012 | 0 | 0.62844 | 0 | 0 | 0.155021 | 0.00309 | 0.009174 | 0 | 0 | 0 | 0 | 1 | 0.039755 | false | 0 | 0.024465 | 0 | 0.08104 | 0.036697 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
29273087b6a9fbc29e7e73962bdacc4b9bb4c94d | 19,408 | py | Python | tests/test_interval.py | venaturum/piso | 54fd20443efb84d7a9982c92caf492b12206eaef | [
"MIT"
] | 5 | 2021-10-10T04:17:17.000Z | 2022-03-01T06:23:25.000Z | tests/test_interval.py | venaturum/piso | 54fd20443efb84d7a9982c92caf492b12206eaef | [
"MIT"
] | 35 | 2021-10-09T13:22:04.000Z | 2022-01-29T08:38:15.000Z | tests/test_interval.py | staircase-dev/piso | 2e6ac861f7166195e2fe67e2665c29e36b4ff12e | [
"MIT"
] | null | null | null | import operator
import numpy as np
import pandas as pd
import pytest
import piso.interval as piso_interval
from piso._exceptions import ClosedMismatchError, ClosedValueError
def make_overlapping_intervals(closed):
return [
(pd.Interval(0, 3, closed=closed), pd.Interval(2, 4, closed=closed)),
(pd... | 28.795252 | 88 | 0.648341 | 2,168 | 19,408 | 5.613469 | 0.035055 | 0.071487 | 0.089729 | 0.048809 | 0.95037 | 0.937387 | 0.91479 | 0.907149 | 0.888168 | 0.84659 | 0 | 0.015181 | 0.205791 | 19,408 | 673 | 89 | 28.838039 | 0.774361 | 0.007317 | 0 | 0.678201 | 0 | 0 | 0.058353 | 0 | 0 | 0 | 0 | 0 | 0.050173 | 1 | 0.072664 | false | 0 | 0.010381 | 0.008651 | 0.091696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
293334fe35d2b0803b5559a0b7ffd96f6fd2b749 | 35 | py | Python | codev/packer-python/src/SubPackageB/SubPackageX/beercraft.py | creative-sensor/echo-home | 14ed0da26e455ff19425ea9fc2a5e81bba8ca2c2 | [
"MIT"
] | null | null | null | codev/packer-python/src/SubPackageB/SubPackageX/beercraft.py | creative-sensor/echo-home | 14ed0da26e455ff19425ea9fc2a5e81bba8ca2c2 | [
"MIT"
] | 2 | 2021-05-11T10:33:39.000Z | 2022-01-22T11:35:20.000Z | codev/packer-python/src/SubPackageB/SubPackageX/beercraft.py | creative-sensor/echo-home | 14ed0da26e455ff19425ea9fc2a5e81bba8ca2c2 | [
"MIT"
] | null | null | null |
def brew():
print("bubble!")
| 7 | 20 | 0.514286 | 4 | 35 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257143 | 35 | 4 | 21 | 8.75 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
2962f9e420e42e54f57856233fd5a15a0231aadf | 4,971 | py | Python | timeseries/test/test_cv.py | igor-93/ml_utils | 898dbeec1ebd54443a83d95eadfb37fb1db2943c | [
"BSD-2-Clause"
] | 1 | 2020-11-05T20:54:17.000Z | 2020-11-05T20:54:17.000Z | timeseries/test/test_cv.py | igor-93/ml_utils | 898dbeec1ebd54443a83d95eadfb37fb1db2943c | [
"BSD-2-Clause"
] | 2 | 2021-09-08T02:23:23.000Z | 2022-01-13T03:05:47.000Z | timeseries/test/test_cv.py | igor-93/ml_utils | 898dbeec1ebd54443a83d95eadfb37fb1db2943c | [
"BSD-2-Clause"
] | null | null | null | import sys
import numpy as np
import pandas as pd
from unittest import TestCase, main
from timeseries.cv import TimeSeriesCV
class TestCV(TestCase):
def test_all_k(self):
idx = pd.date_range('2018-1-1 01:01', '2018-1-1 21:01', freq='1min')
n = len(idx)
df1 = pd.DataFrame(np.arange(1, n+1... | 45.190909 | 134 | 0.645544 | 764 | 4,971 | 3.922775 | 0.10733 | 0.13013 | 0.027027 | 0.051051 | 0.887554 | 0.865866 | 0.852519 | 0.852519 | 0.834835 | 0.806139 | 0 | 0.045313 | 0.22752 | 4,971 | 109 | 135 | 45.605505 | 0.735156 | 0.012674 | 0 | 0.696629 | 0 | 0 | 0.045251 | 0 | 0 | 0 | 0 | 0 | 0.303371 | 1 | 0.033708 | false | 0 | 0.05618 | 0 | 0.101124 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4641ac10a9421cfff77a390f514d0e44ad12f33d | 16,356 | py | Python | tests/fakes/host.py | bento-dbaas/bento2globomap | 257d914fad1bfa364b4910f797527b287176b6db | [
"BSD-3-Clause"
] | 1 | 2018-01-18T17:31:36.000Z | 2018-01-18T17:31:36.000Z | tests/fakes/host.py | bento-dbaas/bento2globomap | 257d914fad1bfa364b4910f797527b287176b6db | [
"BSD-3-Clause"
] | null | null | null | tests/fakes/host.py | bento-dbaas/bento2globomap | 257d914fad1bfa364b4910f797527b287176b6db | [
"BSD-3-Clause"
] | null | null | null | HOST_API_PAGE_1 = {
'_links': {
'count': 20,
'next': 'https://127.0.0.1:8000/api/host/?page=2&format=json',
'previous': None,
'self': 'https://127.0.0.1:8000/api/host/?format=json'
},
'host': [
{'_links': {'self': 'https://127.0.0.1:8000/api/host/?format=json'},
... | 42.704961 | 77 | 0.454757 | 1,550 | 16,356 | 4.6 | 0.083226 | 0.067321 | 0.030295 | 0.033661 | 0.775035 | 0.775035 | 0.775035 | 0.775035 | 0.775035 | 0.767742 | 0 | 0.115486 | 0.350942 | 16,356 | 382 | 78 | 42.816754 | 0.556142 | 0 | 0 | 0.74934 | 0 | 0.007916 | 0.465701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
464feaff6e19c0317cc6a65c28d970a8b2a36a14 | 126 | py | Python | robot_intelligence_student/ars_path_planner_student/source/util.py | Moado/Robotics-ROS | c5aca2dffa6c5c9376e1cda8624ed611ffb11ca0 | [
"MIT"
] | null | null | null | robot_intelligence_student/ars_path_planner_student/source/util.py | Moado/Robotics-ROS | c5aca2dffa6c5c9376e1cda8624ed611ffb11ca0 | [
"MIT"
] | null | null | null | robot_intelligence_student/ars_path_planner_student/source/util.py | Moado/Robotics-ROS | c5aca2dffa6c5c9376e1cda8624ed611ffb11ca0 | [
"MIT"
] | null | null | null | """
Utility methods for the program - PathPlanning node
"""
import math
def radians(degree):
return (degree * math.pi / 180) | 18 | 51 | 0.714286 | 17 | 126 | 5.294118 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.166667 | 126 | 7 | 52 | 18 | 0.828571 | 0.404762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
46889fcc9ffd1438d931e75b3a7c45dbe2b116be | 39 | py | Python | snippets/popular_libraries/click-lib/refactor_examples/__init__.py | melvio/python3-examples | 5340fe17e0a5001a81cf195e63f825b77dc16fca | [
"Apache-2.0"
] | null | null | null | snippets/popular_libraries/click-lib/refactor_examples/__init__.py | melvio/python3-examples | 5340fe17e0a5001a81cf195e63f825b77dc16fca | [
"Apache-2.0"
] | null | null | null | snippets/popular_libraries/click-lib/refactor_examples/__init__.py | melvio/python3-examples | 5340fe17e0a5001a81cf195e63f825b77dc16fca | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import click
| 6.5 | 22 | 0.692308 | 6 | 39 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.179487 | 39 | 5 | 23 | 7.8 | 0.8125 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
46aff07c586f4274a71b451af5ae79fd8da51706 | 42 | py | Python | cupy_alias/backend/ultima/__init__.py | fixstars/clpy | 693485f85397cc110fa45803c36c30c24c297df0 | [
"BSD-3-Clause"
] | 142 | 2018-06-07T07:43:10.000Z | 2021-10-30T21:06:32.000Z | cupy_alias/backend/ultima/__init__.py | fixstars/clpy | 693485f85397cc110fa45803c36c30c24c297df0 | [
"BSD-3-Clause"
] | 282 | 2018-06-07T08:35:03.000Z | 2021-03-31T03:14:32.000Z | cupy_alias/backend/ultima/__init__.py | fixstars/clpy | 693485f85397cc110fa45803c36c30c24c297df0 | [
"BSD-3-Clause"
] | 19 | 2018-06-19T11:07:53.000Z | 2021-05-13T20:57:04.000Z | from clpy.backend.ultima import * # NOQA
| 21 | 41 | 0.738095 | 6 | 42 | 5.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 42 | 1 | 42 | 42 | 0.885714 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d3d056672f6896595c84e5a837ac677835f0e905 | 18,604 | py | Python | app/modules/domain_chatbot/concern.py | music1353/AIBox-Server | 7f3a97c8a2d763f17216bfa938045bb210ca6b67 | [
"MIT"
] | null | null | null | app/modules/domain_chatbot/concern.py | music1353/AIBox-Server | 7f3a97c8a2d763f17216bfa938045bb210ca6b67 | [
"MIT"
] | null | null | null | app/modules/domain_chatbot/concern.py | music1353/AIBox-Server | 7f3a97c8a2d763f17216bfa938045bb210ca6b67 | [
"MIT"
] | null | null | null | import os
import json
import pymongo
import datetime
import app.modules.logger.logging as log
from app.modules.health_calculator import blood_pressure
from config import BASE_DIR, LOG_DIR, MONGO_URI, client
from flask import session
import requests
from app.modules.time_transfer import chin2time
'''關心使用者的身體健康狀況
mornin... | 44.721154 | 136 | 0.492636 | 1,825 | 18,604 | 4.86137 | 0.110137 | 0.158251 | 0.059964 | 0.076082 | 0.798805 | 0.770514 | 0.749662 | 0.743124 | 0.732755 | 0.695784 | 0 | 0.004167 | 0.380886 | 18,604 | 415 | 137 | 44.828916 | 0.766105 | 0.008385 | 0 | 0.703364 | 0 | 0 | 0.159712 | 0.055996 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015291 | false | 0.009174 | 0.030581 | 0 | 0.058104 | 0.009174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d3d51d5b6fa03fbed8e45757ba2c4e4db9b016ae | 25 | py | Python | pydm/PyQt/QtCore.py | KurtJacobson/pydm | 5a5cbc6cdb218b77335a3c4ad57a4a49e060e20d | [
"BSD-3-Clause-LBNL"
] | 89 | 2016-05-25T22:01:48.000Z | 2022-03-02T16:21:03.000Z | pydm/PyQt/QtCore.py | KurtJacobson/pydm | 5a5cbc6cdb218b77335a3c4ad57a4a49e060e20d | [
"BSD-3-Clause-LBNL"
] | 653 | 2016-10-15T01:45:02.000Z | 2022-03-31T23:36:39.000Z | pydm/PyQt/QtCore.py | KurtJacobson/pydm | 5a5cbc6cdb218b77335a3c4ad57a4a49e060e20d | [
"BSD-3-Clause-LBNL"
] | 56 | 2016-10-10T14:02:06.000Z | 2022-03-24T14:35:24.000Z | from qtpy.QtCore import * | 25 | 25 | 0.8 | 4 | 25 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d3ed8c05fdd0889bb656ddf9ea1645cc6140f1a6 | 17,096 | py | Python | engine/2.80/scripts/startup/bl_ui/properties_physics_rigidbody_constraint.py | byteinc/Phasor | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | [
"Unlicense"
] | 2 | 2019-03-20T13:10:46.000Z | 2019-05-15T20:00:31.000Z | engine/2.80/scripts/startup/bl_ui/properties_physics_rigidbody_constraint.py | byteinc/Phasor | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | [
"Unlicense"
] | null | null | null | engine/2.80/scripts/startup/bl_ui/properties_physics_rigidbody_constraint.py | byteinc/Phasor | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | [
"Unlicense"
] | null | null | null | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | 34.192 | 106 | 0.663255 | 2,263 | 17,096 | 4.7057 | 0.084401 | 0.058315 | 0.12311 | 0.064231 | 0.896986 | 0.886093 | 0.85454 | 0.824303 | 0.770871 | 0.717532 | 0 | 0.001685 | 0.236137 | 17,096 | 499 | 107 | 34.260521 | 0.813768 | 0.046736 | 0 | 0.683761 | 0 | 0 | 0.166728 | 0.037775 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082621 | false | 0 | 0.008547 | 0.005698 | 0.290598 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3127c9f25eb5b4b0bc6862345803a3ecf9a3035e | 20,206 | py | Python | Qmodule.py | raywan-110/quantization-DNNs | 7295f60d858c0e7daa7a6f14fe491b489eaa6f42 | [
"MIT"
] | 1 | 2022-03-12T09:25:46.000Z | 2022-03-12T09:25:46.000Z | Qmodule.py | raywan-110/quantization-DNNs | 7295f60d858c0e7daa7a6f14fe491b489eaa6f42 | [
"MIT"
] | null | null | null | Qmodule.py | raywan-110/quantization-DNNs | 7295f60d858c0e7daa7a6f14fe491b489eaa6f42 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from utils import FakeQuantize
import torch.nn.functional as F
def quantize_tensor(x, scale, zero_point, num_bits=8, signed=False):
'''input: x, real value tensor
output: q_x, quantized value tensor'''
if signed:
qmin = -2.**(num_bits - 1)
qmax = 2.**(nu... | 38.196597 | 173 | 0.585866 | 2,859 | 20,206 | 4.012592 | 0.07625 | 0.035391 | 0.048815 | 0.024407 | 0.865586 | 0.830631 | 0.778068 | 0.749826 | 0.73553 | 0.710948 | 0 | 0.008332 | 0.310947 | 20,206 | 528 | 174 | 38.268939 | 0.815629 | 0.17376 | 0 | 0.693989 | 0 | 0 | 0.052397 | 0 | 0 | 0 | 0 | 0.007576 | 0 | 1 | 0.098361 | false | 0.002732 | 0.010929 | 0 | 0.18306 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3133a0eb2f0790fa6382b022ed11e8f6b95207b0 | 20,945 | py | Python | autofile/schema/test_data_series.py | snelliott/autofile | 1aaa0afce640fb7540d37ce00c7074718590a4cf | [
"Apache-2.0"
] | null | null | null | autofile/schema/test_data_series.py | snelliott/autofile | 1aaa0afce640fb7540d37ce00c7074718590a4cf | [
"Apache-2.0"
] | null | null | null | autofile/schema/test_data_series.py | snelliott/autofile | 1aaa0afce640fb7540d37ce00c7074718590a4cf | [
"Apache-2.0"
] | null | null | null | """ test autofile.schema.data_series
"""
import os
import tempfile
import pytest
import autofile.info
import autofile.schema
PREFIX = tempfile.mkdtemp()
print(PREFIX)
# create a dummy root DataSeries for testing
ROOT_SPEC_DFILE = autofile.schema.data_files.locator(
file_prefix='dir',
map_dct_={
'loc... | 24.6702 | 78 | 0.582812 | 2,805 | 20,945 | 4.00107 | 0.05098 | 0.099795 | 0.07841 | 0.048472 | 0.913927 | 0.893968 | 0.827319 | 0.814043 | 0.782678 | 0.721821 | 0 | 0.021914 | 0.281022 | 20,945 | 848 | 79 | 24.699292 | 0.723355 | 0.060587 | 0 | 0.637124 | 0 | 0.005017 | 0.042625 | 0.014089 | 0 | 0 | 0 | 0 | 0.152174 | 1 | 0.036789 | false | 0 | 0.008361 | 0 | 0.046823 | 0.020067 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
313fd5cd7405ce533906a66b5c62a081ef5b2fc3 | 64 | py | Python | mla/base/__init__.py | qianlv/MachineLearningAlgorithm | c66d37bc9c0c1bebf97cdc142213b96cb6ceb989 | [
"MIT"
] | null | null | null | mla/base/__init__.py | qianlv/MachineLearningAlgorithm | c66d37bc9c0c1bebf97cdc142213b96cb6ceb989 | [
"MIT"
] | null | null | null | mla/base/__init__.py | qianlv/MachineLearningAlgorithm | c66d37bc9c0c1bebf97cdc142213b96cb6ceb989 | [
"MIT"
] | null | null | null | from .base import *
from .plot import *
from .kernerls import *
| 16 | 23 | 0.71875 | 9 | 64 | 5.111111 | 0.555556 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 64 | 3 | 24 | 21.333333 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3144e0f1f0ae2498211769135d5bf19b7308b07b | 304 | py | Python | Extension Attributes/ActiveDirectoryComputerPasswordChangeInterval.py | hhorn76/JAMF | 35b81f305ba58f07c133693deb7d3a25fc82ed4f | [
"MIT"
] | 33 | 2018-11-16T09:20:22.000Z | 2022-03-15T04:16:03.000Z | Extension Attributes/ActiveDirectoryComputerPasswordChangeInterval.py | hhorn76/JAMF | 35b81f305ba58f07c133693deb7d3a25fc82ed4f | [
"MIT"
] | 1 | 2019-07-28T13:50:29.000Z | 2019-11-11T10:47:20.000Z | Extension Attributes/ActiveDirectoryComputerPasswordChangeInterval.py | hhorn76/JAMF | 35b81f305ba58f07c133693deb7d3a25fc82ed4f | [
"MIT"
] | 6 | 2019-05-07T05:28:45.000Z | 2021-12-09T18:01:28.000Z | #!/usr/bin/python
# Written by Heiko 2019.02.07
# Will return the password change interval from Active Directory
import subprocess
result = subprocess.check_output( 'dsconfigad -show | grep \'Password change interval\' | awk \'{print $5}\' ', shell=True).strip()
print '<result>' + result + '</result>' | 38 | 131 | 0.717105 | 40 | 304 | 5.425 | 0.8 | 0.129032 | 0.202765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034221 | 0.134868 | 304 | 8 | 132 | 38 | 0.790875 | 0.351974 | 0 | 0 | 0 | 0 | 0.261538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.333333 | 0.333333 | null | null | 0.666667 | 0 | 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 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 6 |
9ee78a55c9fefbf41cf15bee9d7eb752be006839 | 12,541 | py | Python | sdk/python/pulumi_azure/logicapps/trigger_custom.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/logicapps/trigger_custom.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/logicapps/trigger_custom.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 41.253289 | 215 | 0.64038 | 1,504 | 12,541 | 5.132979 | 0.117686 | 0.053886 | 0.074352 | 0.059845 | 0.784456 | 0.762435 | 0.74456 | 0.722021 | 0.715415 | 0.713342 | 0 | 0.008154 | 0.266566 | 12,541 | 303 | 216 | 41.389439 | 0.831159 | 0.422215 | 0 | 0.59589 | 1 | 0 | 0.082599 | 0.006765 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150685 | false | 0.006849 | 0.034247 | 0 | 0.273973 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
9eed04d0b1d52a8326811b54e864ff71e095c753 | 31 | py | Python | openaipylite/__init__.py | argosopentech/openai-api-py-lite | 702eced3388e7119b33a24eb3443deea1aff9810 | [
"MIT"
] | 2 | 2021-06-19T14:36:04.000Z | 2021-06-19T15:03:25.000Z | openaipylite/__init__.py | argosopentech/openai-api-py-lite | 702eced3388e7119b33a24eb3443deea1aff9810 | [
"MIT"
] | null | null | null | openaipylite/__init__.py | argosopentech/openai-api-py-lite | 702eced3388e7119b33a24eb3443deea1aff9810 | [
"MIT"
] | null | null | null | from openaipylite.api import *
| 15.5 | 30 | 0.806452 | 4 | 31 | 6.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 1 | 31 | 31 | 0.925926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b45f0a29402444108a67d888888c2359c5a22dc7 | 7 | py | Python | tests/res/dicts/get/20/q/60.py | ssato/python-anyconfig | 09af1950f3226759932f5168d52f5e06ab88815c | [
"MIT"
] | 213 | 2015-01-14T22:09:20.000Z | 2022-02-02T17:23:41.000Z | tests/res/dicts/get/20/q/60.py | ssato/python-anyconfig | 09af1950f3226759932f5168d52f5e06ab88815c | [
"MIT"
] | 120 | 2015-03-13T15:47:43.000Z | 2022-03-31T01:55:34.000Z | tests/res/dicts/get/20/q/60.py | ssato/python-anyconfig | 09af1950f3226759932f5168d52f5e06ab88815c | [
"MIT"
] | 34 | 2015-01-12T05:03:30.000Z | 2021-09-09T14:40:56.000Z | "/e^f"
| 3.5 | 6 | 0.285714 | 2 | 7 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 7 | 1 | 7 | 7 | 0.333333 | 0.571429 | 0 | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c319db62455dcd97fedd62736924404c040b842a | 18,956 | py | Python | learn_to_infer/gmm_models.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 23,901 | 2018-10-04T19:48:53.000Z | 2022-03-31T21:27:42.000Z | learn_to_infer/gmm_models.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 891 | 2018-11-10T06:16:13.000Z | 2022-03-31T10:42:34.000Z | learn_to_infer/gmm_models.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 6,047 | 2018-10-12T06:31:02.000Z | 2022-03-31T13:59:28.000Z | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 41.753304 | 80 | 0.678888 | 2,752 | 18,956 | 4.484012 | 0.09266 | 0.045219 | 0.026742 | 0.042788 | 0.845624 | 0.840924 | 0.834603 | 0.827066 | 0.819773 | 0.816775 | 0 | 0.004986 | 0.238183 | 18,956 | 453 | 81 | 41.845475 | 0.849526 | 0.497362 | 0 | 0.652632 | 0 | 0 | 0.004147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094737 | false | 0 | 0.047368 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c3650d307fe6938ae8644304e6c6b7fc2b9c37e1 | 2,461 | py | Python | pyob/exceptions/__init__.py | khunspoonzi/pyob | b1b134b708585add15d04fa75001f3364f31dd74 | [
"MIT"
] | null | null | null | pyob/exceptions/__init__.py | khunspoonzi/pyob | b1b134b708585add15d04fa75001f3364f31dd74 | [
"MIT"
] | null | null | null | pyob/exceptions/__init__.py | khunspoonzi/pyob | b1b134b708585add15d04fa75001f3364f31dd74 | [
"MIT"
] | null | null | null | # ┌─────────────────────────────────────────────────────────────────────────────────────
# │ INVALID KEY ERROR
# └─────────────────────────────────────────────────────────────────────────────────────
class DuplicateKeyError(Exception):
""" Duplicate Key Error """
# ┌─────────────────────────────────────────────... | 30.7625 | 88 | 0.236896 | 107 | 2,461 | 20 | 0.252336 | 0.365888 | 0.403738 | 0.138785 | 0.336449 | 0.285047 | 0.180374 | 0 | 0 | 0 | 0 | 0 | 0.086144 | 2,461 | 79 | 89 | 31.151899 | 0.259226 | 0.791954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
5ee27ab00cff27d6777d814f46740fda0709ac38 | 480 | py | Python | atlas/foundations_events/src/test/consumers/jobs/running/__init__.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 296 | 2020-03-16T19:55:00.000Z | 2022-01-10T19:46:05.000Z | atlas/foundations_events/src/test/consumers/jobs/running/__init__.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 57 | 2020-03-17T11:15:57.000Z | 2021-07-10T14:42:27.000Z | atlas/foundations_events/src/test/consumers/jobs/running/__init__.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 38 | 2020-03-17T21:06:05.000Z | 2022-02-08T03:19:34.000Z |
from test.consumers.jobs.running.test_remove_queued_job import TestRemoveQueuedJob
from test.consumers.jobs.running.test_remove_global_queued_job import TestRemoveGlobalQueuedJob
from test.consumers.jobs.running.test_start_time import TestStartTime
from test.consumers.jobs.running.test_job_state import TestJobState
fr... | 68.571429 | 95 | 0.9 | 64 | 480 | 6.5 | 0.34375 | 0.115385 | 0.245192 | 0.302885 | 0.490385 | 0.490385 | 0.182692 | 0 | 0 | 0 | 0 | 0 | 0.05 | 480 | 7 | 96 | 68.571429 | 0.912281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6f5f0bea2f7d34a78311151e5f14f67485745a92 | 119 | py | Python | app/models/__init__.py | blavian/MySafePlace | b4ce6fc5855f8ff59b48f143c467d39fe81aef88 | [
"MIT"
] | 7 | 2021-03-02T13:57:40.000Z | 2021-04-09T11:39:34.000Z | app/models/__init__.py | blavian/MySafePlace | b4ce6fc5855f8ff59b48f143c467d39fe81aef88 | [
"MIT"
] | null | null | null | app/models/__init__.py | blavian/MySafePlace | b4ce6fc5855f8ff59b48f143c467d39fe81aef88 | [
"MIT"
] | null | null | null | from .db import db
from .user import User
from .notebook import Notebook
from .self_affirmation import Self_Affirmation | 29.75 | 46 | 0.840336 | 18 | 119 | 5.444444 | 0.388889 | 0.306122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12605 | 119 | 4 | 46 | 29.75 | 0.942308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
48bba98a48e9386c87438f758ad7e9039c1c0cb2 | 31 | py | Python | lib/util/SQScript/SQScriptPygmentsLexer.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 7 | 2016-02-13T18:47:23.000Z | 2020-07-03T13:47:49.000Z | lib/util/SQScript/__init__.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 1 | 2018-06-13T04:55:27.000Z | 2021-11-05T05:52:51.000Z | lib/util/SQScript/SQScriptPygmentsLexer.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 4 | 2016-02-15T13:32:46.000Z | 2019-12-12T17:22:31.000Z | from SQScriptCompiler import *
| 15.5 | 30 | 0.83871 | 3 | 31 | 8.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 1 | 31 | 31 | 0.962963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5b0c37647e66f78dc654a9daa7b64c673b11f4aa | 204 | py | Python | python/mock_patch/patch_input.py | amitsaha/playground | 82cb5ac02ac90d3fa858a5153b0a5705187c14ce | [
"Unlicense"
] | 4 | 2018-04-14T16:28:39.000Z | 2021-11-14T12:08:02.000Z | python/mock_patch/patch_input.py | amitsaha/playground | 82cb5ac02ac90d3fa858a5153b0a5705187c14ce | [
"Unlicense"
] | 3 | 2022-02-14T10:38:51.000Z | 2022-02-27T16:01:16.000Z | python/mock_patch/patch_input.py | amitsaha/playground | 82cb5ac02ac90d3fa858a5153b0a5705187c14ce | [
"Unlicense"
] | 4 | 2015-07-07T01:01:27.000Z | 2019-04-12T05:38:26.000Z | import mock
def ask_for_input():
return input('Input something')
def test_input():
with mock.patch('builtins.input', return_value='something'):
assert ask_for_input() == 'something'
| 22.666667 | 64 | 0.681373 | 26 | 204 | 5.115385 | 0.538462 | 0.090226 | 0.165414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186275 | 204 | 8 | 65 | 25.5 | 0.801205 | 0 | 0 | 0 | 0 | 0 | 0.230392 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.333333 | true | 0 | 0.166667 | 0.166667 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
96098286c369adf786d5af39ac1030d48fe11465 | 81 | py | Python | codingbat.com/Warmup-1/not_string.py | ahmedelq/PythonicAlgorithms | ce10dbb6e1fd0ea5c922a932b0f920236aa411bf | [
"MIT"
] | null | null | null | codingbat.com/Warmup-1/not_string.py | ahmedelq/PythonicAlgorithms | ce10dbb6e1fd0ea5c922a932b0f920236aa411bf | [
"MIT"
] | null | null | null | codingbat.com/Warmup-1/not_string.py | ahmedelq/PythonicAlgorithms | ce10dbb6e1fd0ea5c922a932b0f920236aa411bf | [
"MIT"
] | null | null | null | def not_string(str):
return 'not ' + str if 'not' != str.split(' ')[0] else str | 40.5 | 60 | 0.604938 | 14 | 81 | 3.428571 | 0.642857 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.185185 | 81 | 2 | 60 | 40.5 | 0.712121 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
8291e00ad73eaf5ec8817d64ad6be59588020729 | 48 | py | Python | extrafile.py | TillWeinhold/EQUSWORKSHOPTill | 95099cc8d8ebc93b53db6d9e9b4c67051fcb7763 | [
"MIT"
] | null | null | null | extrafile.py | TillWeinhold/EQUSWORKSHOPTill | 95099cc8d8ebc93b53db6d9e9b4c67051fcb7763 | [
"MIT"
] | null | null | null | extrafile.py | TillWeinhold/EQUSWORKSHOPTill | 95099cc8d8ebc93b53db6d9e9b4c67051fcb7763 | [
"MIT"
] | null | null | null | print('Added this to see if I can tack changes') | 48 | 48 | 0.75 | 10 | 48 | 3.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 48 | 1 | 48 | 48 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
829ba8cf28b95c4bf598865d4bfcf788a22e101f | 4,701 | py | Python | tests/test_validators.py | jochenparm/piny | 2480cdf725d5e76d4f4dac61d0615f4a3de206af | [
"MIT"
] | 13 | 2019-06-07T17:44:48.000Z | 2020-11-29T22:04:53.000Z | tests/test_validators.py | jochenparm/piny | 2480cdf725d5e76d4f4dac61d0615f4a3de206af | [
"MIT"
] | 156 | 2019-06-07T14:54:15.000Z | 2022-03-21T19:36:21.000Z | tests/test_validators.py | jochenparm/piny | 2480cdf725d5e76d4f4dac61d0615f4a3de206af | [
"MIT"
] | 1 | 2021-07-04T15:48:41.000Z | 2021-07-04T15:48:41.000Z | from unittest import mock
import pytest
import trafaret
from marshmallow import Schema, fields
from pydantic import BaseModel
from piny import (
MarshmallowValidator,
PydanticValidator,
StrictMatcher,
TrafaretValidator,
ValidationError,
YamlLoader,
YamlStreamLoader,
)
from . import config... | 29.566038 | 91 | 0.645395 | 470 | 4,701 | 6.346809 | 0.178723 | 0.048274 | 0.064365 | 0.058666 | 0.73349 | 0.73349 | 0.721086 | 0.721086 | 0.721086 | 0.667449 | 0 | 0 | 0.225271 | 4,701 | 158 | 92 | 29.753165 | 0.819055 | 0.00234 | 0 | 0.615385 | 0 | 0 | 0.112962 | 0.038437 | 0 | 0 | 0 | 0 | 0.102564 | 1 | 0.059829 | false | 0.08547 | 0.059829 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
82b86177b234ea838f6170a7261e710b2ad5de06 | 4,178 | py | Python | tests/test_batching.py | burukuru/awslogs-sd | 74d470bf07c473d35851eba4212fd6f1258b07ef | [
"MIT"
] | 5 | 2018-03-07T23:23:27.000Z | 2021-01-19T09:36:14.000Z | tests/test_batching.py | burukuru/awslogs-sd | 74d470bf07c473d35851eba4212fd6f1258b07ef | [
"MIT"
] | 1 | 2019-08-23T06:11:59.000Z | 2019-08-23T06:11:59.000Z | tests/test_batching.py | burukuru/awslogs-sd | 74d470bf07c473d35851eba4212fd6f1258b07ef | [
"MIT"
] | 1 | 2021-01-19T09:39:29.000Z | 2021-01-19T09:39:29.000Z | from unittest import mock
from queue import Queue
from datetime import datetime, timedelta
from awslogs_sd.awslogs_sd import batcher_task, split_batch_by_time_span
from .factories import make_record
def test_split_all_fresh(unit_conf):
now = datetime.now()
records = [
make_record(unit_conf, date=now +... | 38.330275 | 92 | 0.673528 | 586 | 4,178 | 4.580205 | 0.133106 | 0.101341 | 0.146051 | 0.187779 | 0.841654 | 0.805142 | 0.805142 | 0.773472 | 0.690387 | 0.690015 | 0 | 0.025978 | 0.19842 | 4,178 | 108 | 93 | 38.685185 | 0.775455 | 0 | 0 | 0.520833 | 0 | 0 | 0.014361 | 0.014361 | 0 | 0 | 0 | 0 | 0.15625 | 1 | 0.0625 | false | 0 | 0.052083 | 0 | 0.114583 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7d6d32e1b92a198350ca8319c0502bd1dec67abc | 1,483 | py | Python | tests/unit_tests/engine/collisions/rectangle/test_check_collision.py | alucardzom/pyxeltron | 314e5e4801c412c9a68cc49fa3c8977bf8f6366d | [
"MIT"
] | 1 | 2021-11-11T03:04:07.000Z | 2021-11-11T03:04:07.000Z | tests/unit_tests/engine/collisions/rectangle/test_check_collision.py | truizsanchez/pyxeltron | a219b7ef250517fee15ab39ac63b82f2752e875e | [
"MIT"
] | null | null | null | tests/unit_tests/engine/collisions/rectangle/test_check_collision.py | truizsanchez/pyxeltron | a219b7ef250517fee15ab39ac63b82f2752e875e | [
"MIT"
] | 1 | 2021-08-15T17:47:54.000Z | 2021-08-15T17:47:54.000Z | import unittest
from engine.physics.collisions.rectangle import Rectangle, check_collision
class CheckCollisionTest(unittest.TestCase):
def test_collision_1(self):
rect1 = Rectangle(x=1, y=1, width=3, height=2)
rect2 = Rectangle(x=3, y=2, width=2, height=3)
result = check_collision(rect1... | 34.488372 | 74 | 0.63857 | 216 | 1,483 | 4.282407 | 0.143519 | 0.12973 | 0.116757 | 0.123243 | 0.862703 | 0.860541 | 0.807568 | 0.777297 | 0.753514 | 0.749189 | 0 | 0.068722 | 0.234659 | 1,483 | 42 | 75 | 35.309524 | 0.746256 | 0 | 0 | 0.484848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | false | 0 | 0.060606 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7d9675627cb1c719fedd237b760e63f2325afd97 | 92 | py | Python | stereoVO/geometry/__init__.py | sakshamjindal/Visual-Odometry-Pipeline-in-Python | d4a8a8ee16f91a145b90c41744a85e8dd1c1d249 | [
"Apache-2.0"
] | 10 | 2021-11-01T23:56:30.000Z | 2022-03-07T08:08:25.000Z | stereoVO/geometry/__init__.py | sakshamjindal/StereoVO-SFM | d4a8a8ee16f91a145b90c41744a85e8dd1c1d249 | [
"Apache-2.0"
] | null | null | null | stereoVO/geometry/__init__.py | sakshamjindal/StereoVO-SFM | d4a8a8ee16f91a145b90c41744a85e8dd1c1d249 | [
"Apache-2.0"
] | 1 | 2021-12-02T03:15:00.000Z | 2021-12-02T03:15:00.000Z | from .features import *
from .epipolar import *
from .tracking import *
from .utils import * | 23 | 23 | 0.75 | 12 | 92 | 5.75 | 0.5 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 92 | 4 | 24 | 23 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7dc5b102a1b1795dd4b9eb29405a8e8ca9487934 | 108 | py | Python | handlers/__init__.py | DurbeKK/tg_pdf_bot | 75a180cc7c876df84a4cac825939898892a43aa9 | [
"MIT"
] | 3 | 2021-12-03T09:27:54.000Z | 2021-12-09T03:19:42.000Z | handlers/__init__.py | DurbeKK/tg-pdf-bot | 75a180cc7c876df84a4cac825939898892a43aa9 | [
"MIT"
] | null | null | null | handlers/__init__.py | DurbeKK/tg-pdf-bot | 75a180cc7c876df84a4cac825939898892a43aa9 | [
"MIT"
] | null | null | null | from . import merge_callbacks, merge_commands
from . import basic_commands, crypt, compress, convert, split | 54 | 61 | 0.814815 | 14 | 108 | 6.071429 | 0.714286 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12037 | 108 | 2 | 61 | 54 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7dcf7d6bd96f93c51af7bdfc7b49037ad4ed969f | 17,416 | py | Python | python/lib/lib_care/measure/_utils_find_tips.py | timtyree/bgmc | 891e003a9594be9e40c53822879421c2b8c44eed | [
"MIT"
] | null | null | null | python/lib/lib_care/measure/_utils_find_tips.py | timtyree/bgmc | 891e003a9594be9e40c53822879421c2b8c44eed | [
"MIT"
] | null | null | null | python/lib/lib_care/measure/_utils_find_tips.py | timtyree/bgmc | 891e003a9594be9e40c53822879421c2b8c44eed | [
"MIT"
] | null | null | null | import numpy as np
from ._utils_find_contours import *
def pop_until_long_enough(lst_lst,min_length):
if len(lst_lst)==0:
return np.array([])#, lst_lst
lst = lst_lst.pop(0)
if len(lst)>=min_length:
return lst#, lst_lst
else:
return pop_until_long_enough(lst_lst,min_length)
de... | 46.943396 | 169 | 0.63034 | 2,436 | 17,416 | 4.349343 | 0.117816 | 0.033978 | 0.015857 | 0.017933 | 0.848702 | 0.824729 | 0.808117 | 0.797829 | 0.766777 | 0.732327 | 0 | 0.01028 | 0.279456 | 17,416 | 370 | 170 | 47.07027 | 0.834011 | 0.58653 | 0 | 0.395833 | 0 | 0 | 0.000144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.013889 | 0.006944 | 0.145833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7dd4c78d3ae59897b4f6a09071a50438c1451c3a | 8,335 | py | Python | tests/server/test_database.py | mambas-team/mambas | e2b559dcc869a83f00888fcf5024092a83859c64 | [
"MIT"
] | null | null | null | tests/server/test_database.py | mambas-team/mambas | e2b559dcc869a83f00888fcf5024092a83859c64 | [
"MIT"
] | null | null | null | tests/server/test_database.py | mambas-team/mambas | e2b559dcc869a83f00888fcf5024092a83859c64 | [
"MIT"
] | null | null | null | import datetime
import os
import pytest
from mambas.server import models
from mambas.server import database
class TestMambasDatabase():
def create_test_db(self, db):
mambas_path = db.create_and_get_home()
db.db_path = os.path.join(mambas_path, "test_database.db")
self.destroy_test_db(db)
... | 40.072115 | 96 | 0.644871 | 1,150 | 8,335 | 4.407826 | 0.068696 | 0.032354 | 0.055238 | 0.060367 | 0.810416 | 0.797988 | 0.726573 | 0.726573 | 0.700335 | 0.6739 | 0 | 0.022226 | 0.233473 | 8,335 | 208 | 97 | 40.072115 | 0.771169 | 0 | 0 | 0.580645 | 0 | 0 | 0.068858 | 0 | 0 | 0 | 0 | 0 | 0.268817 | 1 | 0.102151 | false | 0 | 0.026882 | 0 | 0.134409 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7de94b573c3fb6a7b6855d2b0799090b68242464 | 1,767 | py | Python | configs/transforms_config.py | ArashVahabpour/encoder4editing | 819b90ecd7397fbe2ab7cb30eb451dab0f3149fd | [
"MIT"
] | null | null | null | configs/transforms_config.py | ArashVahabpour/encoder4editing | 819b90ecd7397fbe2ab7cb30eb451dab0f3149fd | [
"MIT"
] | null | null | null | configs/transforms_config.py | ArashVahabpour/encoder4editing | 819b90ecd7397fbe2ab7cb30eb451dab0f3149fd | [
"MIT"
] | null | null | null | from abc import abstractmethod
import torchvision.transforms as transforms
class TransformsConfig(object):
def __init__(self, opts):
self.opts = opts
@abstractmethod
def get_transforms(self):
pass
class EncodeTransforms(TransformsConfig):
def __init__(self, opts):
super(EncodeTransforms, self).__init__... | 28.047619 | 61 | 0.681947 | 227 | 1,767 | 5.145374 | 0.162996 | 0.065068 | 0.077055 | 0.10274 | 0.794521 | 0.794521 | 0.732877 | 0.72774 | 0.72774 | 0.72774 | 0 | 0.074567 | 0.149972 | 1,767 | 62 | 62 | 28.5 | 0.703063 | 0.020939 | 0 | 0.734694 | 0 | 0 | 0.077501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0.020408 | 0.040816 | 0 | 0.265306 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8195a39918791e949b11800a3e9530136c15cd7f | 39 | py | Python | command_composer/__init__.py | TaiSakuma/quick-yield-ra1-2015 | 15da2a10110352a672cce9ca2967ed1d48c1fb9c | [
"BSD-3-Clause"
] | null | null | null | command_composer/__init__.py | TaiSakuma/quick-yield-ra1-2015 | 15da2a10110352a672cce9ca2967ed1d48c1fb9c | [
"BSD-3-Clause"
] | null | null | null | command_composer/__init__.py | TaiSakuma/quick-yield-ra1-2015 | 15da2a10110352a672cce9ca2967ed1d48c1fb9c | [
"BSD-3-Clause"
] | null | null | null | from echo_commands import EchoCommands
| 19.5 | 38 | 0.897436 | 5 | 39 | 6.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 39 | 1 | 39 | 39 | 0.971429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
81d326abe477b7329f7aed08e39671476aff679e | 24 | py | Python | vision/src/autogluon/vision/detector/__init__.py | zhiqiangdon/autogluon | 71ee7ef0f05d8f0aad112d8c1719174aa33194d9 | [
"Apache-2.0"
] | 4,462 | 2019-12-09T17:41:07.000Z | 2022-03-31T22:00:41.000Z | vision/src/autogluon/vision/detector/__init__.py | zhiqiangdon/autogluon | 71ee7ef0f05d8f0aad112d8c1719174aa33194d9 | [
"Apache-2.0"
] | 1,408 | 2019-12-09T17:48:59.000Z | 2022-03-31T20:24:12.000Z | vision/src/autogluon/vision/detector/__init__.py | zhiqiangdon/autogluon | 71ee7ef0f05d8f0aad112d8c1719174aa33194d9 | [
"Apache-2.0"
] | 623 | 2019-12-10T02:04:18.000Z | 2022-03-20T17:11:01.000Z | from .detector import *
| 12 | 23 | 0.75 | 3 | 24 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 24 | 1 | 24 | 24 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c4a187b767641f6b36426f2a01192d7b069bc6f2 | 5,349 | py | Python | tests/data/test_Stacker.py | stachu86/dcase_util | 298b2db13a2ffce7791f4de9d374616793564816 | [
"MIT"
] | 122 | 2017-11-10T16:51:04.000Z | 2022-03-28T07:04:34.000Z | tests/data/test_Stacker.py | gpinyero/dcase_util | 298b2db13a2ffce7791f4de9d374616793564816 | [
"MIT"
] | 18 | 2018-03-29T01:14:35.000Z | 2022-03-30T11:21:17.000Z | tests/data/test_Stacker.py | gpinyero/dcase_util | 298b2db13a2ffce7791f4de9d374616793564816 | [
"MIT"
] | 39 | 2017-11-16T14:34:26.000Z | 2022-03-27T06:27:52.000Z | """ Unit tests for Stacker """
import nose.tools
import tempfile
import os
import dcase_util
from dcase_util.data import Stacker
def test_stack():
# Load audio and extract mel features
param = {
'feature_extraction': {
'fs': 44100,
'win_length_seconds': 0.04,
'hop... | 34.960784 | 104 | 0.62292 | 606 | 5,349 | 5.290429 | 0.181518 | 0.123518 | 0.082346 | 0.134747 | 0.89083 | 0.89083 | 0.89083 | 0.89083 | 0.866188 | 0.866188 | 0 | 0.031992 | 0.25201 | 5,349 | 152 | 105 | 35.190789 | 0.769308 | 0.082258 | 0 | 0.694915 | 0 | 0 | 0.18851 | 0.042527 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025424 | false | 0.008475 | 0.042373 | 0 | 0.067797 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c4b43c75cea1a57e7f618ed776bf5cbe67b0b2bb | 29 | py | Python | Noa/Core/__init__.py | KaivnD/Noa-Core | 82a7f65289df4f703da0bfebc8cb3d453a9cf7bd | [
"MIT"
] | null | null | null | Noa/Core/__init__.py | KaivnD/Noa-Core | 82a7f65289df4f703da0bfebc8cb3d453a9cf7bd | [
"MIT"
] | 4 | 2020-03-24T17:35:25.000Z | 2021-06-02T00:30:23.000Z | Noa/Core/__init__.py | KaivnD/Noa-Core | 82a7f65289df4f703da0bfebc8cb3d453a9cf7bd | [
"MIT"
] | null | null | null | from Noa.Core.Tasker import * | 29 | 29 | 0.793103 | 5 | 29 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 29 | 1 | 29 | 29 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c4ec9ecce380e8476a4cc122df8a48a78897d2c7 | 9,187 | py | Python | scrapers/02_urlopen.py | amamov/Pythonic | 95f8f7dca9d01f11ecdf4b26b46afe41dc20b0d0 | [
"MIT"
] | 2 | 2020-10-17T09:19:41.000Z | 2021-02-08T01:40:19.000Z | scrapers/02_urlopen.py | amamov/pythonic | 95f8f7dca9d01f11ecdf4b26b46afe41dc20b0d0 | [
"MIT"
] | null | null | null | scrapers/02_urlopen.py | amamov/pythonic | 95f8f7dca9d01f11ecdf4b26b46afe41dc20b0d0 | [
"MIT"
] | null | null | null | from urllib import request
from urllib.error import URLError, HTTPError
from pathlib import Path
BASE_DIR = Path(__file__).resolve().parent
# 다운로드 경로 및 파일명
save_path = {
"image": str(BASE_DIR / "files" / "cat.gif"),
"html": str(BASE_DIR / "files" / "google.html"),
}
# 다운로드 테겟
target_url = {
"image": "dat... | 235.564103 | 8,115 | 0.927724 | 317 | 9,187 | 26.851735 | 0.798107 | 0.002467 | 0.00235 | 0.003524 | 0.007284 | 0.007284 | 0 | 0 | 0 | 0 | 0 | 0.129669 | 0.029607 | 9,187 | 38 | 8,116 | 241.763158 | 0.825126 | 0.004136 | 0 | 0.066667 | 0 | 0.033333 | 0.91776 | 0.890967 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.3 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f225ee69878b95a45365e19169d4e08a89cc5baa | 23,262 | py | Python | source/Orchestrator/test/test_check_ssm_doc_state.py | j-erickson/aws-security-hub-automated-response-and-remediation | f1722c00817e1358a1d80272b67fc226f1105965 | [
"Apache-2.0"
] | 1 | 2022-03-16T08:23:33.000Z | 2022-03-16T08:23:33.000Z | source/Orchestrator/test/test_check_ssm_doc_state.py | j-erickson/aws-security-hub-automated-response-and-remediation | f1722c00817e1358a1d80272b67fc226f1105965 | [
"Apache-2.0"
] | null | null | null | source/Orchestrator/test/test_check_ssm_doc_state.py | j-erickson/aws-security-hub-automated-response-and-remediation | f1722c00817e1358a1d80272b67fc226f1105965 | [
"Apache-2.0"
] | 1 | 2021-11-15T21:45:48.000Z | 2021-11-15T21:45:48.000Z | #!/usr/bin/python
###############################################################################
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# #
# Licensed under the Apache License Version 2.0 (the "License"). Y... | 43.399254 | 639 | 0.53237 | 2,147 | 23,262 | 5.67769 | 0.156963 | 0.005414 | 0.008121 | 0.066448 | 0.83224 | 0.828958 | 0.81854 | 0.796719 | 0.785972 | 0.758162 | 0 | 0.083152 | 0.32998 | 23,262 | 535 | 640 | 43.480374 | 0.698961 | 0.05322 | 0 | 0.668712 | 0 | 0.067485 | 0.513124 | 0.27035 | 0 | 0 | 0 | 0 | 0.00818 | 1 | 0.00818 | false | 0.002045 | 0.014315 | 0 | 0.022495 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1ef9c103bdf813656e1f2b7c0ca00dc2e271c308 | 196 | py | Python | blueprints/example_01/learning2.py | software-foundations/learning-flask | 292b57358cad30034f3eb0420217952800a3f744 | [
"MIT"
] | null | null | null | blueprints/example_01/learning2.py | software-foundations/learning-flask | 292b57358cad30034f3eb0420217952800a3f744 | [
"MIT"
] | null | null | null | blueprints/example_01/learning2.py | software-foundations/learning-flask | 292b57358cad30034f3eb0420217952800a3f744 | [
"MIT"
] | null | null | null | from flask import Blueprint
learning2_blueprint = Blueprint('learning2', __name__)
@learning2_blueprint.route('/<string:name>')
def home(name):
return f"Hello by string parameter, \n{name}!"
| 21.777778 | 54 | 0.755102 | 25 | 196 | 5.68 | 0.64 | 0.253521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.112245 | 196 | 9 | 55 | 21.777778 | 0.798851 | 0 | 0 | 0 | 0 | 0 | 0.299492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0.6 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 6 |
480340ce3c37a87e963aef921dc885c9416555f4 | 41 | py | Python | build/scripts-3.9/__init__.py | Arorior/maia | feb88ea351b167d54ce5060b18c9693d43c863a0 | [
"MIT"
] | null | null | null | build/scripts-3.9/__init__.py | Arorior/maia | feb88ea351b167d54ce5060b18c9693d43c863a0 | [
"MIT"
] | null | null | null | build/scripts-3.9/__init__.py | Arorior/maia | feb88ea351b167d54ce5060b18c9693d43c863a0 | [
"MIT"
] | null | null | null | from .autoinstaller import AutoInstaller
| 20.5 | 40 | 0.878049 | 4 | 41 | 9 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 41 | 1 | 41 | 41 | 0.972973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4860815c2f41fc2629e7f26d27fdb7a3225c52e6 | 75,650 | py | Python | AgentZoo.py | binyao2020/ElegantRL | bf79f0d071d00cd93be03f1ca005020c3ab8dfe0 | [
"Apache-2.0"
] | null | null | null | AgentZoo.py | binyao2020/ElegantRL | bf79f0d071d00cd93be03f1ca005020c3ab8dfe0 | [
"Apache-2.0"
] | null | null | null | AgentZoo.py | binyao2020/ElegantRL | bf79f0d071d00cd93be03f1ca005020c3ab8dfe0 | [
"Apache-2.0"
] | null | null | null | import os
import numpy as np
import numpy.random as rd
import torch
import torch.nn as nn
from AgentNet import QNet, QNetTwin, QNetDuel, QNetDuelTwin # Q-learning based
from AgentNet import Actor, Critic, CriticTwin # DDPG, TD3
from AgentNet import ActorSAC, CriticTwinShared # SAC
from AgentNet import ActorPPO, Cr... | 41.248637 | 118 | 0.619114 | 10,242 | 75,650 | 4.319957 | 0.060437 | 0.032433 | 0.016544 | 0.020364 | 0.802735 | 0.773941 | 0.748243 | 0.716149 | 0.697955 | 0.686993 | 0 | 0.016559 | 0.268777 | 75,650 | 1,833 | 119 | 41.27114 | 0.783285 | 0.120793 | 0 | 0.73572 | 0 | 0.001705 | 0.010164 | 0.001516 | 0 | 0 | 0 | 0 | 0.001705 | 1 | 0.074169 | false | 0.000853 | 0.01023 | 0.00341 | 0.136402 | 0.011083 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6f84fa35e1047d4ead18778e04604666f0e444d2 | 21 | py | Python | mmskeleton/ops/__init__.py | GlenGGG/DR-GCN | 540e2ede803f78b87b862aa26d099fbc02173143 | [
"Apache-2.0"
] | 1 | 2022-01-24T15:18:04.000Z | 2022-01-24T15:18:04.000Z | mmskeleton/ops/__init__.py | GlenGGG/DR-GCN | 540e2ede803f78b87b862aa26d099fbc02173143 | [
"Apache-2.0"
] | 1 | 2021-03-13T06:01:12.000Z | 2021-03-13T06:01:12.000Z | mmskeleton/ops/__init__.py | GlenGGG/DR-GCN | 540e2ede803f78b87b862aa26d099fbc02173143 | [
"Apache-2.0"
] | null | null | null | from . import dr_gcn
| 10.5 | 20 | 0.761905 | 4 | 21 | 3.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 21 | 1 | 21 | 21 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6f9f813853e0ce56aeb74f3f6070f3314c0b247f | 1,265 | py | Python | projects/euler/problems/problem_011.py | jmsung/jmsung-research | c31f5a68e78b75e76b383bf6d2a2c4c478f6f566 | [
"MIT"
] | null | null | null | projects/euler/problems/problem_011.py | jmsung/jmsung-research | c31f5a68e78b75e76b383bf6d2a2c4c478f6f566 | [
"MIT"
] | null | null | null | projects/euler/problems/problem_011.py | jmsung/jmsung-research | c31f5a68e78b75e76b383bf6d2a2c4c478f6f566 | [
"MIT"
] | null | null | null | """
The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832.
73167176531330624919225119674426574742355349194934
96983520312774506326239578318016984801869478851843
85861560789112949495459501737958331952853208805511
12540698747158523863050715693290963295227443043557
6689... | 43.62069 | 125 | 0.932806 | 65 | 1,265 | 18.2 | 0.676923 | 0.023669 | 0.02705 | 0.032122 | 0.101437 | 0.101437 | 0.101437 | 0.101437 | 0.101437 | 0.101437 | 0 | 0.850209 | 0.055336 | 1,265 | 28 | 126 | 45.178571 | 0.137238 | 0.991304 | 0 | null | 0 | null | 0 | 0 | null | 1 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6faa01672bf8a5e9c607f624c2e6a5d48c767b3e | 180 | py | Python | tests/common.py | morysam96/geoserver-rest | ad66ce6877aad70f5cddb5baeccfff6d90732c84 | [
"MIT"
] | 83 | 2020-09-14T13:01:29.000Z | 2022-03-27T16:12:09.000Z | tests/common.py | morysam96/geoserver-rest | ad66ce6877aad70f5cddb5baeccfff6d90732c84 | [
"MIT"
] | 46 | 2020-09-15T06:47:52.000Z | 2022-03-03T06:16:28.000Z | tests/common.py | morysam96/geoserver-rest | ad66ce6877aad70f5cddb5baeccfff6d90732c84 | [
"MIT"
] | 40 | 2020-09-14T12:32:55.000Z | 2022-02-17T03:16:06.000Z | import os
from geo.Geoserver import Geoserver
GEO_URL = os.getenv("GEO_URL", "http://localhost:8080/geoserver")
geo = Geoserver(GEO_URL, username="admin", password="geoserver")
| 22.5 | 65 | 0.755556 | 25 | 180 | 5.32 | 0.52 | 0.270677 | 0.225564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0.1 | 180 | 7 | 66 | 25.714286 | 0.796296 | 0 | 0 | 0 | 0 | 0 | 0.288889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 6 |
b512de5230090f4a731ed4f8667a7bc5476865e1 | 10,540 | py | Python | tests/ut/python/dataset/test_pyfunc.py | i4oolish/mindspore | dac3be31d0f2c0a3516200f47af30980e566601b | [
"Apache-2.0"
] | 1 | 2020-08-10T12:06:22.000Z | 2020-08-10T12:06:22.000Z | tests/ut/python/dataset/test_pyfunc.py | dilingsong/mindspore | 4276050f2494cfbf8682560a1647576f859991e8 | [
"Apache-2.0"
] | null | null | null | tests/ut/python/dataset/test_pyfunc.py | dilingsong/mindspore | 4276050f2494cfbf8682560a1647576f859991e8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 35.369128 | 115 | 0.591176 | 1,490 | 10,540 | 4.054362 | 0.111409 | 0.011256 | 0.036583 | 0.056282 | 0.821884 | 0.775699 | 0.751862 | 0.745075 | 0.733322 | 0.733322 | 0 | 0.039462 | 0.259488 | 10,540 | 297 | 116 | 35.488215 | 0.734529 | 0.179222 | 0 | 0.567901 | 0 | 0.018519 | 0.119943 | 0.009463 | 0 | 0 | 0 | 0 | 0.117284 | 1 | 0.092593 | false | 0.012346 | 0.024691 | 0.006173 | 0.123457 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
738849f4c8054589e06c4e7e768f64e50528452f | 2,312 | py | Python | epytope/Data/pssms/smmpmbec/mat/A_02_12_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 7 | 2021-02-01T18:11:28.000Z | 2022-01-31T19:14:07.000Z | epytope/Data/pssms/smmpmbec/mat/A_02_12_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 22 | 2021-01-02T15:25:23.000Z | 2022-03-14T11:32:53.000Z | epytope/Data/pssms/smmpmbec/mat/A_02_12_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 4 | 2021-05-28T08:50:38.000Z | 2022-03-14T11:45:32.000Z | A_02_12_9 = {0: {'A': -0.032, 'C': -0.172, 'E': 0.78, 'D': 0.787, 'G': -0.231, 'F': -0.722, 'I': -0.051, 'H': -0.037, 'K': -0.336, 'M': -0.173, 'L': -0.235, 'N': -0.102, 'Q': 0.246, 'P': 1.04, 'S': 0.002, 'R': 0.017, 'T': 0.132, 'W': -0.176, 'V': -0.139, 'Y': -0.598}, 1: {'A': 0.471, 'C': 0.519, 'E': 0.499, 'D': 0.709,... | 2,312 | 2,312 | 0.394464 | 557 | 2,312 | 1.631957 | 0.315978 | 0.019802 | 0.011001 | 0.013201 | 0.046205 | 0 | 0 | 0 | 0 | 0 | 0 | 0.373904 | 0.161332 | 2,312 | 1 | 2,312 | 2,312 | 0.094894 | 0 | 0 | 0 | 0 | 0 | 0.079118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
73a0797444611bada8272597eb53b08a61feb2db | 297 | py | Python | renormalizer/spectra/__init__.py | shuaigroup/Renormalizer | 963d52efdaa247320e781a96b64d41c9cadf6f0e | [
"Apache-2.0"
] | 27 | 2019-09-02T08:35:01.000Z | 2022-02-22T08:18:02.000Z | renormalizer/spectra/__init__.py | shuaigroup/Renormalizer | 963d52efdaa247320e781a96b64d41c9cadf6f0e | [
"Apache-2.0"
] | 54 | 2019-08-30T12:18:39.000Z | 2022-03-20T13:23:07.000Z | renormalizer/spectra/__init__.py | shuaigroup/Renormalizer | 963d52efdaa247320e781a96b64d41c9cadf6f0e | [
"Apache-2.0"
] | 6 | 2019-09-10T03:25:28.000Z | 2021-11-20T18:41:58.000Z | # -*- coding: utf-8 -*-
# Author: Jiajun Ren <jiajunren0522@gmail.com>
from renormalizer.mps import gs
from renormalizer.spectra.exact import SpectraExact
from renormalizer.spectra.finitet import SpectraFiniteT
from renormalizer.spectra.zerot import SpectraOneWayPropZeroT, SpectraTwoWayPropZeroT
| 42.428571 | 85 | 0.83165 | 33 | 297 | 7.484848 | 0.666667 | 0.259109 | 0.279352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.090909 | 297 | 6 | 86 | 49.5 | 0.896296 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
73af3049a9d5d7e38b36fe3f2fdb4ed0baf7180e | 509 | py | Python | stubs/micropython-v1_13-95-pyboard/random.py | mattytrentini/micropython-stubs | 4d596273823b69e9e5bcf5fa67f249c374ee0bbc | [
"MIT"
] | null | null | null | stubs/micropython-v1_13-95-pyboard/random.py | mattytrentini/micropython-stubs | 4d596273823b69e9e5bcf5fa67f249c374ee0bbc | [
"MIT"
] | null | null | null | stubs/micropython-v1_13-95-pyboard/random.py | mattytrentini/micropython-stubs | 4d596273823b69e9e5bcf5fa67f249c374ee0bbc | [
"MIT"
] | null | null | null | """
Module: 'random' on pyboard 1.13.0-95
"""
# MCU: (sysname='pyboard', nodename='pyboard', release='1.13.0', version='v1.13-95-g0fff2e03f on 2020-10-03', machine='PYBv1.1 with STM32F405RG')
# Stubber: 1.3.4 - updated
from typing import Any
def choice(*args) -> Any:
pass
def getrandbits(*args) -> Any:
pass... | 14.542857 | 145 | 0.618861 | 75 | 509 | 4.2 | 0.52 | 0.155556 | 0.244444 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091358 | 0.204322 | 509 | 34 | 146 | 14.970588 | 0.68642 | 0.40668 | 0 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.466667 | true | 0.466667 | 0.066667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
73cf59f602ba744f00ca160b96f61ca66a8bf534 | 81 | py | Python | test/fixtures/a.py | prefapp/prefapp-core | 4f58bf1a8ce56a6025340dabe629c5278d4cffa7 | [
"Apache-2.0"
] | null | null | null | test/fixtures/a.py | prefapp/prefapp-core | 4f58bf1a8ce56a6025340dabe629c5278d4cffa7 | [
"Apache-2.0"
] | 1 | 2021-06-15T08:25:27.000Z | 2021-06-15T08:25:27.000Z | test/fixtures/a.py | prefapp/prefapp-core | 4f58bf1a8ce56a6025340dabe629c5278d4cffa7 | [
"Apache-2.0"
] | null | null | null | import core
from core.comando import Comando
class ComandoA(Comando):
pass
| 11.571429 | 32 | 0.765432 | 11 | 81 | 5.636364 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 81 | 6 | 33 | 13.5 | 0.939394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
73e147d63054995f94a49f9e1d67ca97e952e9cd | 11,684 | py | Python | tests/tasks/docker/test_containers.py | skyline-ai/prefect | 92430f2f91215d6c27d92ad67df67ccd639e587c | [
"Apache-2.0"
] | null | null | null | tests/tasks/docker/test_containers.py | skyline-ai/prefect | 92430f2f91215d6c27d92ad67df67ccd639e587c | [
"Apache-2.0"
] | null | null | null | tests/tasks/docker/test_containers.py | skyline-ai/prefect | 92430f2f91215d6c27d92ad67df67ccd639e587c | [
"Apache-2.0"
] | null | null | null | from unittest.mock import MagicMock
import pytest
from prefect.engine.signals import FAIL
from prefect.tasks.docker import (
CreateContainer,
GetContainerLogs,
ListContainers,
StartContainer,
StopContainer,
WaitOnContainer,
)
class TestCreateContainerTask:
def test_empty_initialization(s... | 34.364706 | 84 | 0.675368 | 1,338 | 11,684 | 5.656951 | 0.06577 | 0.077025 | 0.040692 | 0.079271 | 0.889021 | 0.865768 | 0.808033 | 0.755318 | 0.741577 | 0.730744 | 0 | 0.002074 | 0.215851 | 11,684 | 339 | 85 | 34.466077 | 0.824056 | 0 | 0 | 0.698795 | 0 | 0 | 0.133858 | 0.096029 | 0 | 0 | 0 | 0 | 0.204819 | 1 | 0.168675 | false | 0 | 0.016064 | 0 | 0.208835 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
73e3520fb66696beb6babc0d2b9fd7f0aead0d89 | 4,225 | py | Python | tests/integration/models/reddit/test_modmail.py | nickatnight/praw | 6ba5c92e5d5210338c0a2a2755a5e5e226a002fa | [
"BSD-2-Clause"
] | null | null | null | tests/integration/models/reddit/test_modmail.py | nickatnight/praw | 6ba5c92e5d5210338c0a2a2755a5e5e226a002fa | [
"BSD-2-Clause"
] | null | null | null | tests/integration/models/reddit/test_modmail.py | nickatnight/praw | 6ba5c92e5d5210338c0a2a2755a5e5e226a002fa | [
"BSD-2-Clause"
] | null | null | null | from unittest import mock
from praw.models import ModmailMessage
from ... import IntegrationTest
class TestModmailConversation(IntegrationTest):
@mock.patch("time.sleep", return_value=None)
def test_archive(self, _):
self.reddit.read_only = False
conversation = self.reddit.subreddit("all").m... | 44.473684 | 84 | 0.675266 | 447 | 4,225 | 6.221477 | 0.129754 | 0.100683 | 0.142395 | 0.200647 | 0.790363 | 0.790363 | 0.77562 | 0.77562 | 0.753326 | 0.636462 | 0 | 0.010695 | 0.203314 | 4,225 | 94 | 85 | 44.946809 | 0.815508 | 0 | 0 | 0.432099 | 0 | 0 | 0.145562 | 0.088994 | 0 | 0 | 0 | 0 | 0.098765 | 1 | 0.123457 | false | 0 | 0.037037 | 0 | 0.17284 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 6 |
73fe78330fefeb84f4076c9660b4674381e532f1 | 25 | py | Python | PyWeComSpy/__init__.py | veikai/PyWeComSpy | a531c4cb1474b75436da3b2a934a0f0acdb09051 | [
"MIT"
] | 1 | 2021-09-20T08:49:08.000Z | 2021-09-20T08:49:08.000Z | PyWeComSpy/__init__.py | veikai/PyWeComSpy | a531c4cb1474b75436da3b2a934a0f0acdb09051 | [
"MIT"
] | null | null | null | PyWeComSpy/__init__.py | veikai/PyWeComSpy | a531c4cb1474b75436da3b2a934a0f0acdb09051 | [
"MIT"
] | 1 | 2021-09-20T08:48:21.000Z | 2021-09-20T08:48:21.000Z | from .spy import WeComSpy | 25 | 25 | 0.84 | 4 | 25 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
fb4663c2cc899cac52d581fad243fbfd2dd9c9d8 | 243 | py | Python | lyricwikia/__init__.py | Swat712/lyricwikia | cdff57d5c1ea6b19aa7d4a2e2ddda68ea09bb07e | [
"MIT"
] | 41 | 2016-08-07T21:22:44.000Z | 2022-03-08T17:45:36.000Z | lyricwikia/__init__.py | Swat712/lyricwikia | cdff57d5c1ea6b19aa7d4a2e2ddda68ea09bb07e | [
"MIT"
] | 9 | 2016-12-09T15:40:38.000Z | 2020-10-08T10:59:14.000Z | lyricwikia/__init__.py | Swat712/lyricwikia | cdff57d5c1ea6b19aa7d4a2e2ddda68ea09bb07e | [
"MIT"
] | 16 | 2016-12-09T22:57:07.000Z | 2020-05-14T05:21:16.000Z | from .lyricwikia import get_lyrics, get_all_lyrics
from .lyricwikia import Song, Artist, LyricsNotFound
from .version import __version__
__all__ = ['get_lyrics', 'get_all_lyrics',
'Song', 'Artist', 'LyricsNotFound', '__version__']
| 34.714286 | 61 | 0.748971 | 28 | 243 | 5.857143 | 0.357143 | 0.170732 | 0.243902 | 0.182927 | 0.256098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144033 | 243 | 6 | 62 | 40.5 | 0.788462 | 0 | 0 | 0 | 0 | 0 | 0.242798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
fbcaa512fbbc148c5ce2f2a37eea8642bfe4237b | 39,860 | py | Python | namsorclient/request_objects.py | JosephPallipadan/Namsor-API-Wrapper-Python | 61b9299e1da11ce102b436812a5ff3859aae3ef9 | [
"MIT"
] | 6 | 2019-09-02T02:44:44.000Z | 2020-06-22T12:04:02.000Z | namsorclient/request_objects.py | JosephPallipadan/Namsor-API-Wrapper-Python | 61b9299e1da11ce102b436812a5ff3859aae3ef9 | [
"MIT"
] | null | null | null | namsorclient/request_objects.py | JosephPallipadan/Namsor-API-Wrapper-Python | 61b9299e1da11ce102b436812a5ff3859aae3ef9 | [
"MIT"
] | null | null | null | import math
import time
import xlsxwriter
import re
from abc import ABC, abstractmethod
import requests
import faker
import random
from namsorclient.models import GenderResponse
from namsorclient.models import GenderFullResponse
from namsorclient.models import OriginResponse
from namsorclient.models import CountryRes... | 39.701195 | 273 | 0.595835 | 4,791 | 39,860 | 4.845544 | 0.067418 | 0.034676 | 0.045359 | 0.049795 | 0.803877 | 0.792462 | 0.789317 | 0.789317 | 0.763817 | 0.755891 | 0 | 0.001779 | 0.323131 | 39,860 | 1,003 | 274 | 39.740778 | 0.858673 | 0.482137 | 0 | 0.658974 | 0 | 0.002564 | 0.059114 | 0.00439 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148718 | false | 0.005128 | 0.048718 | 0 | 0.412821 | 0.002564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8377962b84ac376eb910cc788118b47bc5378268 | 206 | py | Python | geo.py | Jacob1500/other_side_world | 3eeaa9c3b04980249e72453c7a069a703499185e | [
"MIT"
] | null | null | null | geo.py | Jacob1500/other_side_world | 3eeaa9c3b04980249e72453c7a069a703499185e | [
"MIT"
] | null | null | null | geo.py | Jacob1500/other_side_world | 3eeaa9c3b04980249e72453c7a069a703499185e | [
"MIT"
] | null | null | null | class Geopoint:
def __init__(self, latitude, longitude):
self.latitude = latitude
self.longitude = longitude
def closest_parallel(self):
return round(self.latitude)
| 22.888889 | 44 | 0.645631 | 21 | 206 | 6.095238 | 0.52381 | 0.28125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276699 | 206 | 9 | 45 | 22.888889 | 0.85906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
83ae8e76866ab94bacfb05fb5632ecb6292c2a45 | 132 | py | Python | model/evaluation/__init__.py | dfalci/deep_pt_srl | 6cfb209a96aa987aebf02aa1f6d321dceb822ca4 | [
"BSD-2-Clause"
] | 6 | 2018-03-20T12:41:30.000Z | 2021-08-29T14:25:05.000Z | model/evaluation/__init__.py | dfalci/deep_pt_srl | 6cfb209a96aa987aebf02aa1f6d321dceb822ca4 | [
"BSD-2-Clause"
] | 1 | 2019-11-29T12:05:57.000Z | 2020-05-12T17:05:52.000Z | model/evaluation/__init__.py | dfalci/deep_pt_srl | 6cfb209a96aa987aebf02aa1f6d321dceb822ca4 | [
"BSD-2-Clause"
] | 1 | 2018-02-28T04:51:31.000Z | 2018-02-28T04:51:31.000Z | from .conll_evaluator import CoNLLEvaluator
from .token_evaluation import TokenEvaluation
from .training_evaluation import Evaluator | 44 | 45 | 0.893939 | 15 | 132 | 7.666667 | 0.6 | 0.278261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 132 | 3 | 46 | 44 | 0.950413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
83ffa6e31be3cc2abdf311358ed184f8c69bd602 | 3,715 | py | Python | tests_local/login/login_test.py | manifiko/AdCampaign_tests | 39d88f3282f26e8976e795f2733491671bd1e028 | [
"MIT"
] | null | null | null | tests_local/login/login_test.py | manifiko/AdCampaign_tests | 39d88f3282f26e8976e795f2733491671bd1e028 | [
"MIT"
] | null | null | null | tests_local/login/login_test.py | manifiko/AdCampaign_tests | 39d88f3282f26e8976e795f2733491671bd1e028 | [
"MIT"
] | null | null | null | import config
from tests_steps.banners_steps import *
from tests_steps.browser_config import *
def test_login_as_admin():
browser = setup_local_browser(size='Full HD', polling_time=5)
try:
browser.get(config.AUTH_URL)
auth_form = browser.find_element_by_css_selector('body > div.container > ma... | 49.533333 | 124 | 0.648721 | 447 | 3,715 | 5.073826 | 0.163311 | 0.05291 | 0.068783 | 0.084656 | 0.892857 | 0.859347 | 0.790564 | 0.790564 | 0.698854 | 0.658289 | 0 | 0.003189 | 0.240377 | 3,715 | 74 | 125 | 50.202703 | 0.800496 | 0 | 0 | 0.646154 | 0 | 0 | 0.249529 | 0.044684 | 0 | 0 | 0 | 0 | 0.061538 | 1 | 0.061538 | false | 0.061538 | 0.046154 | 0 | 0.107692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
f7bf8f255cd0888970a47fa0b2e2726717fe6ced | 34 | py | Python | feint/__init__.py | wrobstory/feint | 9420e48d47052e14227cd6c878ebf67a4cbf5fd9 | [
"MIT"
] | 1 | 2017-06-12T17:37:54.000Z | 2017-06-12T17:37:54.000Z | feint/__init__.py | wrobstory/feint | 9420e48d47052e14227cd6c878ebf67a4cbf5fd9 | [
"MIT"
] | null | null | null | feint/__init__.py | wrobstory/feint | 9420e48d47052e14227cd6c878ebf67a4cbf5fd9 | [
"MIT"
] | null | null | null | from .core import (Chart, Scatter) | 34 | 34 | 0.764706 | 5 | 34 | 5.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 34 | 1 | 34 | 34 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f71e8ea85b6b54c6670609e8e6c0a91688ec4952 | 87 | py | Python | pyjswidgets/pyjamas/XMLDoc.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 739 | 2015-01-01T02:05:11.000Z | 2022-03-30T15:26:16.000Z | pyjswidgets/pyjamas/XMLDoc.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 33 | 2015-03-25T23:17:04.000Z | 2021-08-19T08:25:22.000Z | pyjswidgets/pyjamas/XMLDoc.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 167 | 2015-01-01T22:27:47.000Z | 2022-03-17T13:29:19.000Z | from __pyjamas__ import get_main_frame, JS
def create_xml_doc(text):
return None
| 14.5 | 42 | 0.781609 | 14 | 87 | 4.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 43 | 17.4 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.