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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e683d34545ca8711a15916d84cb42a58410b9f71 | 281 | py | Python | test_finder.py | akanksha234/Python-Interview-Questions | 431913628fbef0c9e503cf1915136fae21e8b023 | [
"MIT"
] | null | null | null | test_finder.py | akanksha234/Python-Interview-Questions | 431913628fbef0c9e503cf1915136fae21e8b023 | [
"MIT"
] | null | null | null | test_finder.py | akanksha234/Python-Interview-Questions | 431913628fbef0c9e503cf1915136fae21e8b023 | [
"MIT"
] | null | null | null | from find_missing_element import finder
def test_1():
assert(finder([5, 5, 7, 7], [5, 7, 7])== 5)
def test_2():
assert(finder([1, 2, 3, 4, 5, 6, 7], [3, 7, 2, 1, 4, 6])== 5)
def test_3():
assert(finder([9, 8, 7, 6, 5, 4, 3, 2, 1], [9, 8, 7, 5, 4, 3, 2, 1])== 6) | 35.125 | 77 | 0.494662 | 61 | 281 | 2.196721 | 0.295082 | 0.156716 | 0.044776 | 0.059701 | 0.074627 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20283 | 0.245552 | 281 | 8 | 77 | 35.125 | 0.429245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.428571 | true | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e688cbdec7b801aa6b862d176813286e25591d55 | 211 | py | Python | worstcase/__init__.py | amosborne/worstcase | 4a5f3cd907a6fab303607d14a6ad2a0a73db3955 | [
"MIT"
] | null | null | null | worstcase/__init__.py | amosborne/worstcase | 4a5f3cd907a6fab303607d14a6ad2a0a73db3955 | [
"MIT"
] | null | null | null | worstcase/__init__.py | amosborne/worstcase | 4a5f3cd907a6fab303607d14a6ad2a0a73db3955 | [
"MIT"
] | null | null | null | from .worstcase import Config as config
from .worstcase import Derivative as derive
from .worstcase import Parameter as param
from .worstcase import Unit as unit
__all__ = ["config", "param", "derive", "unit"]
| 30.142857 | 47 | 0.767773 | 29 | 211 | 5.448276 | 0.37931 | 0.329114 | 0.481013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146919 | 211 | 6 | 48 | 35.166667 | 0.877778 | 0 | 0 | 0 | 0 | 0 | 0.099526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e6a511da7a4190ba3e92fe6af24cc2bd40bd899b | 70,616 | py | Python | bungieapi/generated/components/schemas/__init__.py | itemmanager/bungieapi | 0c4326f88ea0f28a1dcab683dc08c8d21c940fc1 | [
"MIT"
] | 5 | 2022-01-06T21:05:53.000Z | 2022-02-12T19:58:11.000Z | bungieapi/generated/components/schemas/__init__.py | itemmanager/bungieapi | 0c4326f88ea0f28a1dcab683dc08c8d21c940fc1 | [
"MIT"
] | 8 | 2021-12-25T02:40:56.000Z | 2022-03-28T03:31:41.000Z | bungieapi/generated/components/schemas/__init__.py | itemmanager/bungieapi | 0c4326f88ea0f28a1dcab683dc08c8d21c940fc1 | [
"MIT"
] | 1 | 2022-01-30T23:53:25.000Z | 2022-01-30T23:53:25.000Z | # generated by update to not change manually
import dataclasses as dt
import typing as t
from enum import Enum
from bungieapi.json import to_json
class BungieMembershipType(Enum):
"""The types of membership the Accounts system supports.
This is the external facing enum used in place of the internal-only
... | 35.882114 | 254 | 0.677807 | 7,149 | 70,616 | 6.600643 | 0.056931 | 0.058617 | 0.097482 | 0.045393 | 0.738726 | 0.72688 | 0.72493 | 0.703971 | 0.703971 | 0.703971 | 0 | 0.005549 | 0.213932 | 70,616 | 1,967 | 255 | 35.900356 | 0.844548 | 0.013042 | 0 | 0.663809 | 1 | 0.007348 | 0.276602 | 0.100363 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062462 | false | 0 | 0.020208 | 0.062462 | 0.446418 | 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 |
fc62779da8250b9f8530c89236dee1e3e82f7bfc | 165 | py | Python | repixelator/cmd.py | yclee126/RePixelator | 7bef8f6f667964fff4c244065f4375c94ccf1b2d | [
"MIT"
] | null | null | null | repixelator/cmd.py | yclee126/RePixelator | 7bef8f6f667964fff4c244065f4375c94ccf1b2d | [
"MIT"
] | null | null | null | repixelator/cmd.py | yclee126/RePixelator | 7bef8f6f667964fff4c244065f4375c94ccf1b2d | [
"MIT"
] | null | null | null | import sys
def cmd():
args = sys.argv[1:]
from .repixelator import main
main(args)
def gui():
from .repixelator_gui import main
main() | 16.5 | 38 | 0.6 | 22 | 165 | 4.454545 | 0.5 | 0.306122 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.29697 | 165 | 10 | 39 | 16.5 | 0.836207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
fc7553a8aea40df314ff24e55b131aeef58b917d | 23 | py | Python | vid_seg/__init__.py | YutingZhang/zcode | 79f4a990298ccf21b5de569821a84a8553220d3f | [
"Apache-2.0"
] | null | null | null | vid_seg/__init__.py | YutingZhang/zcode | 79f4a990298ccf21b5de569821a84a8553220d3f | [
"Apache-2.0"
] | null | null | null | vid_seg/__init__.py | YutingZhang/zcode | 79f4a990298ccf21b5de569821a84a8553220d3f | [
"Apache-2.0"
] | null | null | null | from .vid_seg import *
| 11.5 | 22 | 0.73913 | 4 | 23 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 23 | 1 | 23 | 23 | 0.842105 | 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 |
fc85b898843e547b15b543abe0d5287ea080039b | 15,909 | py | Python | CNS_analysis/overlapCnsWithSNPs.py | baoxingsong/CNSpublication | 00540e13be60631e2ea6f337944101e78c45119c | [
"MIT"
] | null | null | null | CNS_analysis/overlapCnsWithSNPs.py | baoxingsong/CNSpublication | 00540e13be60631e2ea6f337944101e78c45119c | [
"MIT"
] | null | null | null | CNS_analysis/overlapCnsWithSNPs.py | baoxingsong/CNSpublication | 00540e13be60631e2ea6f337944101e78c45119c | [
"MIT"
] | null | null | null | #!python
import re
import subprocess
import sys
from argparse import ArgumentParser
import sys
#read a fasta file and return a dictionary, the key is entry id and the value is the sequence in upcase
from utils import readFastaFile
from utils import str2bool
import re
class SNP:
def __init__(self, chr, v4cordinate,... | 44.191667 | 281 | 0.514049 | 1,829 | 15,909 | 4.372881 | 0.079825 | 0.048762 | 0.032508 | 0.044636 | 0.845586 | 0.807452 | 0.803701 | 0.791823 | 0.782821 | 0.782821 | 0 | 0.026915 | 0.346093 | 15,909 | 359 | 282 | 44.314763 | 0.741901 | 0.476397 | 0 | 0.50625 | 0 | 0 | 0.102614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0125 | false | 0 | 0.05 | 0.00625 | 0.075 | 0.1 | 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 |
fc8f8582a7a4f7ce96b1e0b353852f829f46e961 | 1,345 | py | Python | PgCognition/Schema/Grants.py | mathewmoon/pgcog | a07bcb6ddd03dbb3665958341dcca7cef039eef1 | [
"Apache-2.0"
] | 1 | 2021-05-15T14:29:26.000Z | 2021-05-15T14:29:26.000Z | PgCognition/Schema/Grants.py | mathewmoon/pgcog | a07bcb6ddd03dbb3665958341dcca7cef039eef1 | [
"Apache-2.0"
] | null | null | null | PgCognition/Schema/Grants.py | mathewmoon/pgcog | a07bcb6ddd03dbb3665958341dcca7cef039eef1 | [
"Apache-2.0"
] | null | null | null | GRANTS = """
SELECT cognition.createrole('tenant_admins', NULL, NULL);
GRANT USAGE ON SCHEMA cognition TO tenant_admins;
GRANT SELECT, INSERT, DELETE, UPDATE ON TABLE cognition.users TO tenant_admins;
GRANT SELECT, UPDATE (displayname) ON TABLE cognition.tenants to tenant_admins;
SELECT cognition.c... | 51.730769 | 83 | 0.771747 | 177 | 1,345 | 5.745763 | 0.180791 | 0.106195 | 0.123894 | 0.19469 | 0.819076 | 0.785644 | 0.717797 | 0.717797 | 0.693215 | 0.220256 | 0 | 0 | 0.181413 | 1,345 | 25 | 84 | 53.8 | 0.923706 | 0 | 0 | 0 | 0 | 0 | 0.988104 | 0.054275 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
fc993220492259c2b840912c0a4d0859e8b547fb | 7,804 | py | Python | lumen/tests/sources/test_intake_sql.py | holoviz/monitor | db04d037c17101b9e126973a21e77f940f6cf83c | [
"BSD-3-Clause"
] | 1 | 2020-09-25T20:21:59.000Z | 2020-09-25T20:21:59.000Z | lumen/tests/sources/test_intake_sql.py | holoviz/monitor | db04d037c17101b9e126973a21e77f940f6cf83c | [
"BSD-3-Clause"
] | 3 | 2020-09-24T16:59:03.000Z | 2020-10-01T12:32:49.000Z | lumen/tests/sources/test_intake_sql.py | holoviz/monitor | db04d037c17101b9e126973a21e77f940f6cf83c | [
"BSD-3-Clause"
] | null | null | null | import datetime as dt
import os
import pandas as pd
from lumen.sources.intake_sql import IntakeSQLSource
from lumen.transforms.sql import SQLGroupBy
def test_intake_sql_get():
root = os.path.dirname(__file__)
source = IntakeSQLSource(
uri=os.path.join(root, 'catalog.yml'), root=root
)
df = p... | 37.883495 | 91 | 0.658893 | 1,038 | 7,804 | 4.710019 | 0.087669 | 0.039272 | 0.042544 | 0.052362 | 0.902843 | 0.880139 | 0.846594 | 0.837595 | 0.827163 | 0.817754 | 0 | 0.028065 | 0.182727 | 7,804 | 205 | 92 | 38.068293 | 0.738476 | 0 | 0 | 0.575269 | 0 | 0 | 0.124552 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.086022 | false | 0 | 0.026882 | 0 | 0.112903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
fc9cc9174dbb7e4b0ff4a213151c6b43bd8c10aa | 2,190 | py | Python | src/IceRayPy/utility/light/sun.py | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 2 | 2020-09-04T12:27:15.000Z | 2022-01-17T14:49:40.000Z | src/IceRayPy/utility/light/sun.py | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | null | null | null | src/IceRayPy/utility/light/sun.py | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 1 | 2020-09-04T12:27:52.000Z | 2020-09-04T12:27:52.000Z |
import IceRayPy
Coord3D = IceRayPy.type.math.coord.Scalar3D
class Point:
def __init__( self, P_dll, P_center = None ):
self.m_implementation = IceRayPy.core.light.SunG( P_dll, IceRayPy.core.light.Point( P_dll, IceRayPy.core.light.Spot( Coord3D( 0, 0, 10 ) ) ) )
#self.m_implementation =... | 35.322581 | 151 | 0.615068 | 293 | 2,190 | 4.242321 | 0.129693 | 0.092518 | 0.259855 | 0.13033 | 0.79646 | 0.779566 | 0.724859 | 0.679807 | 0.679807 | 0.679807 | 0 | 0.004444 | 0.280822 | 2,190 | 61 | 152 | 35.901639 | 0.784762 | 0.051598 | 0 | 0.543478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0.108696 | 0.021739 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
fca6e7cc832a0acf6b9ee3b2025690ae9817b3ae | 31,127 | py | Python | custom_loss.py | Mirorrn/Spline-Lane-Detection | 7535e3a1c0c347dafbb9d0efb7da390f0dc5e482 | [
"MIT"
] | 1 | 2021-06-16T10:10:12.000Z | 2021-06-16T10:10:12.000Z | custom_loss.py | Mirorrn/Spline-Lane-Detection | 7535e3a1c0c347dafbb9d0efb7da390f0dc5e482 | [
"MIT"
] | null | null | null | custom_loss.py | Mirorrn/Spline-Lane-Detection | 7535e3a1c0c347dafbb9d0efb7da390f0dc5e482 | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
import config as cfg
from keras import backend as K
def huber(true, pred, delta):
loss = tf.where(tf.abs(true-pred) < delta , 0.5*((true-pred)**2), delta*tf.abs(true - pred) - 0.5*(delta**2))
# loss = tf.Print(loss, [loss], message="This is loss: ", summarize=1000)
... | 56.185921 | 188 | 0.615768 | 4,809 | 31,127 | 3.66022 | 0.043668 | 0.092603 | 0.047722 | 0.037837 | 0.854221 | 0.816669 | 0.781161 | 0.761334 | 0.7573 | 0.729576 | 0 | 0.031489 | 0.232788 | 31,127 | 554 | 189 | 56.185921 | 0.705582 | 0.43435 | 0 | 0.698745 | 0 | 0 | 0.006634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066946 | false | 0 | 0.016736 | 0.029289 | 0.150628 | 0.025105 | 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 |
5d7f95820466f18515766e62e41780268e866fb3 | 185 | py | Python | reproject/setup_package.py | pllim/reproject | 35415be015a28ba097526649b1b02b85c4893e90 | [
"BSD-3-Clause"
] | 29 | 2015-02-24T17:55:31.000Z | 2018-11-15T23:20:30.000Z | reproject/setup_package.py | pllim/reproject | 35415be015a28ba097526649b1b02b85c4893e90 | [
"BSD-3-Clause"
] | 93 | 2015-02-27T08:26:38.000Z | 2018-12-12T08:30:18.000Z | reproject/setup_package.py | pllim/reproject | 35415be015a28ba097526649b1b02b85c4893e90 | [
"BSD-3-Clause"
] | 22 | 2015-04-13T16:56:32.000Z | 2018-08-09T17:08:10.000Z | def get_package_data():
return {
_ASTROPY_PACKAGE_NAME_ + '.tests': ['coveragerc', 'data/*'],
_ASTROPY_PACKAGE_NAME_ + '.interpolation.tests': ['reference/*']
}
| 30.833333 | 72 | 0.621622 | 17 | 185 | 6.176471 | 0.647059 | 0.266667 | 0.342857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205405 | 185 | 5 | 73 | 37 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.286486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0 | 0.2 | 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 | 0 | 1 | 0 | 0 | 0 | 6 |
5d8c83807cb911c45577dfa33e1923d33dcf6921 | 7,301 | py | Python | tests/integration/test_sort.py | ckmganesh/dask-sql | 5a056cc5e3e80463fb3d16dc45f1feffbf278b65 | [
"MIT"
] | 1 | 2021-02-18T06:47:56.000Z | 2021-02-18T06:47:56.000Z | tests/integration/test_sort.py | ckmganesh/dask-sql | 5a056cc5e3e80463fb3d16dc45f1feffbf278b65 | [
"MIT"
] | null | null | null | tests/integration/test_sort.py | ckmganesh/dask-sql | 5a056cc5e3e80463fb3d16dc45f1feffbf278b65 | [
"MIT"
] | null | null | null | from dask_sql.context import Context
import pytest
from pandas.testing import assert_frame_equal, assert_series_equal
import pandas as pd
import dask.dataframe as dd
def test_sort(c, user_table_1, df):
df_result = c.sql(
"""
SELECT
*
FROM user_table_1
ORDER BY b, user_id DESC
"""... | 25.617544 | 95 | 0.563895 | 1,013 | 7,301 | 3.84304 | 0.080948 | 0.143848 | 0.061649 | 0.070896 | 0.82841 | 0.799897 | 0.792962 | 0.770357 | 0.770357 | 0.745184 | 0 | 0.02713 | 0.283112 | 7,301 | 284 | 96 | 25.707746 | 0.71666 | 0.001644 | 0 | 0.547739 | 0 | 0 | 0.142606 | 0 | 0 | 0 | 0 | 0 | 0.120603 | 1 | 0.035176 | false | 0 | 0.025126 | 0 | 0.060302 | 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 |
5dbd77146643a2151b1e520363ca2ce60b096fb1 | 6,959 | py | Python | tests/test_jobs/test_serializers.py | gzcf/polyaxon | 77ac8838c6444a36541e6c28aba7ae42de392fee | [
"MIT"
] | null | null | null | tests/test_jobs/test_serializers.py | gzcf/polyaxon | 77ac8838c6444a36541e6c28aba7ae42de392fee | [
"MIT"
] | null | null | null | tests/test_jobs/test_serializers.py | gzcf/polyaxon | 77ac8838c6444a36541e6c28aba7ae42de392fee | [
"MIT"
] | null | null | null | from unittest.mock import patch
import pytest
from api.jobs.serializers import JobDetailSerializer, JobSerializer, JobStatusSerializer
from constants.jobs import JobLifeCycle
from db.models.jobs import Job, JobStatus
from factories.factory_jobs import JobFactory, JobStatusFactory
from tests.utils import BaseTest
@p... | 32.069124 | 88 | 0.617761 | 853 | 6,959 | 4.873388 | 0.12075 | 0.053885 | 0.060621 | 0.07746 | 0.78013 | 0.769305 | 0.734905 | 0.734905 | 0.734905 | 0.734905 | 0 | 0.009766 | 0.264262 | 6,959 | 216 | 89 | 32.217593 | 0.802148 | 0.000575 | 0 | 0.779661 | 0 | 0 | 0.094635 | 0 | 0 | 0 | 0 | 0 | 0.271186 | 1 | 0.067797 | false | 0 | 0.039548 | 0 | 0.20904 | 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 |
f8fe8e3cac45dece6c65701cd98d52641b402ca9 | 215 | py | Python | XKT/utils/__init__.py | bigdata-ustc/XKT | b3ac07541b92001b62d7cff4e8fe7e5a69c5c93c | [
"MIT"
] | 17 | 2019-09-11T12:00:05.000Z | 2022-03-30T04:41:05.000Z | XKT/utils/__init__.py | bigdata-ustc/XKT | b3ac07541b92001b62d7cff4e8fe7e5a69c5c93c | [
"MIT"
] | 1 | 2021-10-24T01:13:33.000Z | 2021-10-24T02:03:26.000Z | XKT/utils/__init__.py | bigdata-ustc/XKT | b3ac07541b92001b62d7cff4e8fe7e5a69c5c93c | [
"MIT"
] | 6 | 2019-09-13T07:50:07.000Z | 2022-03-12T00:22:11.000Z | # coding: utf-8
# create by tongshiwei on 2019-7-13
from .etl import *
from .loss import SequenceLogisticMaskLoss as SLMLoss, LogisticMaskLoss as LMLoss
from .loss import SequenceLogisticMaskLoss, LogisticMaskLoss
| 30.714286 | 81 | 0.813953 | 27 | 215 | 6.481481 | 0.703704 | 0.091429 | 0.16 | 0.434286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042781 | 0.130233 | 215 | 6 | 82 | 35.833333 | 0.893048 | 0.218605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5d2bf13fb0bea759ba675e868d1472a4df028e0f | 27 | py | Python | exostriker/__init__.py | exoristos21/exostriker | 85cee34744bcd6e960dcdffc9140bb1d9107982e | [
"MIT"
] | 69 | 2020-01-06T13:31:06.000Z | 2022-03-29T11:23:14.000Z | exostriker/__init__.py | sai-33/Exostriker | f59fa51c6bdce3a2ed51d6621fe42bfcd8c2846f | [
"MIT"
] | 67 | 2019-11-30T14:45:05.000Z | 2022-03-14T20:26:06.000Z | exostriker/__init__.py | sai-33/Exostriker | f59fa51c6bdce3a2ed51d6621fe42bfcd8c2846f | [
"MIT"
] | 13 | 2020-01-06T13:44:40.000Z | 2022-03-29T11:23:17.000Z | from exostriker import gui
| 13.5 | 26 | 0.851852 | 4 | 27 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 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 |
5d3e1029d3649948176aac1cf9c38d5a370f155c | 22 | py | Python | hmi/__init__.py | hsuanhauliu/image-hidden-message | f7e38fb8f2922e9a1c57665d281c74cd9b6a297e | [
"MIT"
] | null | null | null | hmi/__init__.py | hsuanhauliu/image-hidden-message | f7e38fb8f2922e9a1c57665d281c74cd9b6a297e | [
"MIT"
] | null | null | null | hmi/__init__.py | hsuanhauliu/image-hidden-message | f7e38fb8f2922e9a1c57665d281c74cd9b6a297e | [
"MIT"
] | null | null | null | from hmi.hmi import *
| 11 | 21 | 0.727273 | 4 | 22 | 4 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 22 | 1 | 22 | 22 | 0.888889 | 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 |
5d4ae1296c83a059b8e03dec747794ee9e3b2b0b | 34 | py | Python | libs/yowsup/yowsup/yowsup/demos/sendclient/__init__.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 22 | 2017-07-14T20:01:17.000Z | 2022-03-08T14:22:39.000Z | libs/yowsup/yowsup/yowsup/demos/sendclient/__init__.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 6 | 2017-07-14T21:03:50.000Z | 2021-06-10T19:08:32.000Z | libs/yowsup/yowsup/yowsup/demos/sendclient/__init__.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 13 | 2017-07-14T20:13:14.000Z | 2020-11-12T08:06:05.000Z | from .stack import YowsupSendStack | 34 | 34 | 0.882353 | 4 | 34 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 34 | 1 | 34 | 34 | 0.967742 | 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 |
5d52455c8b1921c9d57097589dda983dfd3194d0 | 163 | py | Python | boml/lower_iter/__init__.py | LongMa319/BOML | 8cbb5a557e93dabd858438efd67c0685402efa9e | [
"MIT"
] | 2 | 2021-12-20T03:24:27.000Z | 2022-01-10T14:16:21.000Z | boml/lower_iter/__init__.py | perseveranceLX/BOML | 8cbb5a557e93dabd858438efd67c0685402efa9e | [
"MIT"
] | null | null | null | boml/lower_iter/__init__.py | perseveranceLX/BOML | 8cbb5a557e93dabd858438efd67c0685402efa9e | [
"MIT"
] | 1 | 2022-03-29T13:21:20.000Z | 2022-03-29T13:21:20.000Z | from boml.lower_iter.inner_grad import BOMLInnerGradTrad
from boml.lower_iter.simple import BOMLInnerGradSimple
from boml.lower_iter.aggr import BOMLInnerGradAggr
| 40.75 | 56 | 0.889571 | 22 | 163 | 6.409091 | 0.545455 | 0.170213 | 0.276596 | 0.361702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07362 | 163 | 3 | 57 | 54.333333 | 0.933775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 |
5d7394fc529391b2bd147b81bc5fdf3c06ccbf7a | 103,618 | py | Python | tests/licensedcode/test_match.py | jimjag/scancode-toolkit | 37d574b194696261dad486c6771f6e7dc4138eac | [
"Apache-2.0",
"CC-BY-4.0"
] | 1,511 | 2015-07-01T15:29:03.000Z | 2022-03-30T13:40:05.000Z | tests/licensedcode/test_match.py | jimjag/scancode-toolkit | 37d574b194696261dad486c6771f6e7dc4138eac | [
"Apache-2.0",
"CC-BY-4.0"
] | 2,695 | 2015-07-01T16:01:35.000Z | 2022-03-31T19:17:44.000Z | tests/licensedcode/test_match.py | jimjag/scancode-toolkit | 37d574b194696261dad486c6771f6e7dc4138eac | [
"Apache-2.0",
"CC-BY-4.0"
] | 540 | 2015-07-01T15:08:19.000Z | 2022-03-31T12:13:11.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) nexB Inc. and others. All rights reserved.
# ScanCode is a trademark of nexB Inc.
# SPDX-License-Identifier: Apache-2.0
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
# See https://github.com/nexB/scancode-toolkit for support or download.
# See https://a... | 49.720729 | 567 | 0.639049 | 14,040 | 103,618 | 4.533903 | 0.048789 | 0.02757 | 0.033932 | 0.039745 | 0.888337 | 0.864993 | 0.847666 | 0.825594 | 0.799532 | 0.779769 | 0 | 0.043823 | 0.23494 | 103,618 | 2,083 | 568 | 49.744599 | 0.759064 | 0.02792 | 0 | 0.625749 | 0 | 0.005389 | 0.270354 | 0.025129 | 0 | 0 | 0 | 0 | 0.123353 | 1 | 0.05988 | false | 0.001198 | 0.013174 | 0 | 0.079042 | 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 |
5389c0437cbdc35cc7d90059103ad85e108aac9d | 39,492 | py | Python | tests/test_asgi.py | HyperGH/Yuyo | c8ce6ca8e8ba5a7ad18b0f2f74d4be6be239ade4 | [
"BSD-3-Clause"
] | null | null | null | tests/test_asgi.py | HyperGH/Yuyo | c8ce6ca8e8ba5a7ad18b0f2f74d4be6be239ade4 | [
"BSD-3-Clause"
] | null | null | null | tests/test_asgi.py | HyperGH/Yuyo | c8ce6ca8e8ba5a7ad18b0f2f74d4be6be239ade4 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# cython: language_level=3
# BSD 3-Clause License
#
# Copyright (c) 2020-2022, Faster Speeding
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of sour... | 40.380368 | 120 | 0.618986 | 4,476 | 39,492 | 5.158624 | 0.080429 | 0.024946 | 0.031182 | 0.03456 | 0.847726 | 0.816197 | 0.789736 | 0.770637 | 0.739324 | 0.721351 | 0 | 0.007268 | 0.278791 | 39,492 | 977 | 121 | 40.421699 | 0.803314 | 0.040616 | 0 | 0.638677 | 0 | 0 | 0.109268 | 0.007952 | 0 | 0 | 0 | 0 | 0.161578 | 1 | 0.022901 | false | 0.002545 | 0.010178 | 0.003817 | 0.049618 | 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 |
538ead2f3a3d2d4e0e9addda210b530d028ece26 | 79 | py | Python | test/src/Python/Functions/return-literal-integer.py | milliburn/llvmPy | d6fa3002e823fae00cf33d9b2ea480604681376c | [
"MIT"
] | 1 | 2019-01-22T02:58:04.000Z | 2019-01-22T02:58:04.000Z | test/src/Python/Functions/return-literal-integer.py | roberth-k/llvmPy | d6fa3002e823fae00cf33d9b2ea480604681376c | [
"MIT"
] | null | null | null | test/src/Python/Functions/return-literal-integer.py | roberth-k/llvmPy | d6fa3002e823fae00cf33d9b2ea480604681376c | [
"MIT"
] | null | null | null | # RUN: %S/../test.sh %s
def func():
return 1
print(func()) # CHECK: 1
| 8.777778 | 25 | 0.506329 | 13 | 79 | 3.076923 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.265823 | 79 | 8 | 26 | 9.875 | 0.655172 | 0.379747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0 | 0.333333 | 0.666667 | 0.333333 | 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 |
0733388e2145a6c34fc4cda59a4a77944633f80a | 241 | py | Python | activities_photos/serializer.py | uestc-msc/uestcmsc_webapp_backend | fce859899346598f5a263b6fabb74deec816bc8c | [
"MIT"
] | 1 | 2021-01-04T01:56:26.000Z | 2021-01-04T01:56:26.000Z | activities_photos/serializer.py | uestc-msc/uestcmsc_webapp_backend | fce859899346598f5a263b6fabb74deec816bc8c | [
"MIT"
] | null | null | null | activities_photos/serializer.py | uestc-msc/uestcmsc_webapp_backend | fce859899346598f5a263b6fabb74deec816bc8c | [
"MIT"
] | null | null | null | from activities_files.serializer import ActivityFileSerializer
from .models import ActivityPhoto
# 序列化器也复用 ActivityFileSerializer
class ActivityPhotoSerializer(ActivityFileSerializer):
class Meta:
model = ActivityPhoto
| 26.777778 | 63 | 0.80083 | 19 | 241 | 10.105263 | 0.684211 | 0.28125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165975 | 241 | 8 | 64 | 30.125 | 0.955224 | 0.124481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 1 | 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 | 0 | 0 | 6 |
073638edef453ca25440758bcee2af3c96582761 | 154 | py | Python | src/forum/admin.py | earth-emoji/infotechia | 44ed7aecf052001573b47320e6a1239968d2a067 | [
"BSD-2-Clause"
] | null | null | null | src/forum/admin.py | earth-emoji/infotechia | 44ed7aecf052001573b47320e6a1239968d2a067 | [
"BSD-2-Clause"
] | 11 | 2019-10-27T23:41:10.000Z | 2022-02-10T10:30:00.000Z | src/forum/admin.py | earth-emoji/infotechia | 44ed7aecf052001573b47320e6a1239968d2a067 | [
"BSD-2-Clause"
] | null | null | null | from django.contrib import admin
from django.db import models
from .models import Thread, Topic
admin.site.register (Thread)
admin.site.register(Topic)
| 19.25 | 33 | 0.805195 | 23 | 154 | 5.391304 | 0.478261 | 0.16129 | 0.274194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116883 | 154 | 7 | 34 | 22 | 0.911765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
07555e4b6900835b0ef0152b4c9922e0ef9e5d1d | 4,881 | py | Python | ros/src/super_fast_object_detection/src/veloster_2sides_bev_utils.py | hyungikim4/SFA3D | 2e46d54276ce6ad9413fecd9f0aebbf6332554ed | [
"MIT"
] | 2 | 2021-01-07T14:30:25.000Z | 2021-05-24T11:12:15.000Z | ros/src/super_fast_object_detection/src/veloster_2sides_bev_utils.py | hyungikim4/SFA3D | 2e46d54276ce6ad9413fecd9f0aebbf6332554ed | [
"MIT"
] | 3 | 2021-06-02T02:30:37.000Z | 2021-08-21T11:34:14.000Z | ros/src/super_fast_object_detection/src/veloster_2sides_bev_utils.py | hyungikim4/SFA3D | 2e46d54276ce6ad9413fecd9f0aebbf6332554ed | [
"MIT"
] | 3 | 2021-06-10T04:55:49.000Z | 2022-02-06T12:05:13.000Z | """
# -*- coding: utf-8 -*-
-----------------------------------------------------------------------------------
"""
import math
import sys
import cv2
import numpy as np
sys.path.append('../')
import veloster_config_2sides as cnf
def makeBEVMap_binary(PointCloud_, boundary):
Height = cnf.BEV_HEIGHT + 1
Widt... | 37.837209 | 115 | 0.62774 | 707 | 4,881 | 4.151344 | 0.138614 | 0.032709 | 0.061329 | 0.049063 | 0.831005 | 0.82862 | 0.80954 | 0.791141 | 0.791141 | 0.791141 | 0 | 0.035016 | 0.192583 | 4,881 | 128 | 116 | 38.132813 | 0.709718 | 0.100184 | 0 | 0.56 | 0 | 0 | 0.004354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053333 | false | 0 | 0.066667 | 0 | 0.16 | 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 |
075bb885ac92b2db1804d37f83387e3fec363b21 | 67,178 | py | Python | tests/test_0046-histograms-bh-hist.py | eic/uproot4 | deb8d88c2643521f372bf5005c51af8926016c7e | [
"BSD-3-Clause"
] | 133 | 2020-05-08T21:34:11.000Z | 2022-03-07T18:12:58.000Z | tests/test_0046-histograms-bh-hist.py | eic/uproot4 | deb8d88c2643521f372bf5005c51af8926016c7e | [
"BSD-3-Clause"
] | 269 | 2020-05-13T02:42:24.000Z | 2022-03-24T20:24:16.000Z | tests/test_0046-histograms-bh-hist.py | eic/uproot4 | deb8d88c2643521f372bf5005c51af8926016c7e | [
"BSD-3-Clause"
] | 45 | 2020-05-15T17:48:04.000Z | 2022-03-18T19:23:07.000Z | # BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE
from __future__ import absolute_import
import numpy
import pytest
import skhep_testdata
import uproot
def test_numpy_1d():
with uproot.open(skhep_testdata.data_path("uproot-hepdata-example.root")) as f:
values, edges = ... | 23.612654 | 241 | 0.265012 | 5,652 | 67,178 | 3.140481 | 0.145435 | 0.160901 | 0.218366 | 0.261634 | 0.577239 | 0.539211 | 0.539099 | 0.519831 | 0.510761 | 0.502592 | 0 | 0.679195 | 0.645911 | 67,178 | 2,844 | 242 | 23.620956 | 0.067011 | 0.004719 | 0 | 0.805832 | 0 | 0 | 0.003949 | 0.002827 | 0 | 0 | 0 | 0 | 0.003912 | 1 | 0.002489 | false | 0 | 0.003201 | 0 | 0.00569 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ab132bd86eea337e261f2d94fe53829ba56df939 | 958 | py | Python | cowsay/lib/cows/glados.py | Ovlic/cowsay_py | 1ee8d11d6d895d7695d57e26003d71ce18379d3b | [
"MIT"
] | null | null | null | cowsay/lib/cows/glados.py | Ovlic/cowsay_py | 1ee8d11d6d895d7695d57e26003d71ce18379d3b | [
"MIT"
] | null | null | null | cowsay/lib/cows/glados.py | Ovlic/cowsay_py | 1ee8d11d6d895d7695d57e26003d71ce18379d3b | [
"MIT"
] | null | null | null | def Glados(thoughts, eyes, eye, tongue):
return f"""
{thoughts}
{thoughts}
\#+ \@ \# \# M#\@
. .X X.%##\@;# \# +\@#######X. \@#%
,==. ,######M+ -#####%M####M- \#
:H##M%:=##+ .M##M,;#####/+#######% ,M#
.M########= =\@#\@.=#####M=M#######= X#
:\@\@MMM##M. -##M.,#####... | 38.32 | 49 | 0.136743 | 81 | 958 | 1.617284 | 0.17284 | 0.427481 | 0.435115 | 0.396947 | 0.412214 | 0.328244 | 0.282443 | 0.122137 | 0 | 0 | 0 | 0 | 0.295407 | 958 | 25 | 50 | 38.32 | 0.194074 | 0 | 0 | 0.08 | 0 | 0 | 0.93952 | 0.070907 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0 | 0.04 | 0.08 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ab27c5cfd1e89a0a65c6c608c191e8a107d3fab8 | 38 | py | Python | main.py | risker93/king | b7cac65595960a81236cb0d9d004d4f3ffe1edf0 | [
"Apache-2.0"
] | 2 | 2021-05-02T12:23:27.000Z | 2021-05-02T12:56:25.000Z | main.py | risker93/king | b7cac65595960a81236cb0d9d004d4f3ffe1edf0 | [
"Apache-2.0"
] | null | null | null | main.py | risker93/king | b7cac65595960a81236cb0d9d004d4f3ffe1edf0 | [
"Apache-2.0"
] | null | null | null | print("I'm the king of the world!!")
| 12.666667 | 36 | 0.631579 | 8 | 38 | 3 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 38 | 2 | 37 | 19 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0.72973 | 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 |
db9f50f7f6a511f59f5eeb13061ff69713fcf6cf | 32,339 | py | Python | autodiff/ad.py | sandrawing/cs107-FinalProject | f8f884d22f55c3b47d9524621bdcab41d69b2690 | [
"MIT"
] | null | null | null | autodiff/ad.py | sandrawing/cs107-FinalProject | f8f884d22f55c3b47d9524621bdcab41d69b2690 | [
"MIT"
] | null | null | null | autodiff/ad.py | sandrawing/cs107-FinalProject | f8f884d22f55c3b47d9524621bdcab41d69b2690 | [
"MIT"
] | null | null | null | import numpy as np
class AutoDiff():
"""
Forward Mode Implementation of Automatic Differentiation
The class overloads the basic operations, including the unary operation,
and contains some elemental functions
"""
def __init__(self, val, der=1, name="not_specified"):
"""
constr... | 30.916826 | 114 | 0.506045 | 3,916 | 32,339 | 4.111083 | 0.07048 | 0.035654 | 0.024225 | 0.030188 | 0.82061 | 0.810423 | 0.780173 | 0.743028 | 0.721225 | 0.697186 | 0 | 0.042335 | 0.348465 | 32,339 | 1,045 | 115 | 30.946411 | 0.721737 | 0.443675 | 0 | 0.521401 | 0 | 0 | 0.054678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132296 | false | 0 | 0.003891 | 0 | 0.311284 | 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 |
916c240b18480df1840829668d990f3cb3a7efae | 12,140 | py | Python | TextCNN/Module/trick.py | enternityFan/BJTUNLP_Practice | 9bcd2a0a08a10164d0afc13f2a4ceeea4c87eedf | [
"Apache-2.0"
] | null | null | null | TextCNN/Module/trick.py | enternityFan/BJTUNLP_Practice | 9bcd2a0a08a10164d0afc13f2a4ceeea4c87eedf | [
"Apache-2.0"
] | null | null | null | TextCNN/Module/trick.py | enternityFan/BJTUNLP_Practice | 9bcd2a0a08a10164d0afc13f2a4ceeea4c87eedf | [
"Apache-2.0"
] | null | null | null | # @Time : 2022-02-23 15:33
# @Author : Phalange
# @File : trick.py
# @Software: PyCharm
# C'est la vie,enjoy it! :D
import math
import torch
from torch import nn
from torch.optim import lr_scheduler
from d2l import torch as d2l
from tqdm import *
class CosineScheduler:
def __init__(self, max_update, base_lr=0.01, ... | 39.673203 | 95 | 0.586161 | 1,646 | 12,140 | 4.170109 | 0.12819 | 0.019668 | 0.017483 | 0.018357 | 0.805216 | 0.773893 | 0.773893 | 0.773893 | 0.773893 | 0.765443 | 0 | 0.021899 | 0.285338 | 12,140 | 306 | 96 | 39.673203 | 0.769249 | 0.149506 | 0 | 0.690265 | 0 | 0.013274 | 0.096673 | 0.002348 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057522 | false | 0 | 0.026549 | 0 | 0.123894 | 0.044248 | 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 |
531adcd78d0c1661d85ef12e4a00e5d9a7596cb3 | 6,773 | py | Python | imagecluster/main.py | Little-Frog-233/imagecluster | fdd68a7d13b039b4c17a8b48eab95cb87556802f | [
"BSD-3-Clause"
] | 1 | 2021-12-31T05:01:22.000Z | 2021-12-31T05:01:22.000Z | imagecluster/main.py | Little-Frog-233/imagecluster | fdd68a7d13b039b4c17a8b48eab95cb87556802f | [
"BSD-3-Clause"
] | null | null | null | imagecluster/main.py | Little-Frog-233/imagecluster | fdd68a7d13b039b4c17a8b48eab95cb87556802f | [
"BSD-3-Clause"
] | null | null | null | #coding:utf-8
import os
import pandas as pd
import numpy as np
from imagecluster import calc as ic
from imagecluster import common as co
from imagecluster import postproc as pp
from imagecluster.log import log
pj = os.path.join
ic_base_dir = 'imagecluster'
def main_hierarchy(imagedir, sim=0.5, layer='fc2', size=(... | 38.050562 | 127 | 0.613908 | 909 | 6,773 | 4.465347 | 0.216722 | 0.019709 | 0.015521 | 0.023651 | 0.809559 | 0.80069 | 0.796748 | 0.779502 | 0.734171 | 0.721606 | 0 | 0.009717 | 0.285841 | 6,773 | 177 | 128 | 38.265537 | 0.82944 | 0.365274 | 0 | 0.693182 | 0 | 0 | 0.141648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.079545 | 0 | 0.102273 | 0.204545 | 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 |
532525617c88cf9206bddcbe6bb2bde7097edaa6 | 36 | py | Python | discord/types/message.py | Harukomaze/disnake | 541f5c9623a02be894cd1015dbb344070700cb87 | [
"MIT"
] | null | null | null | discord/types/message.py | Harukomaze/disnake | 541f5c9623a02be894cd1015dbb344070700cb87 | [
"MIT"
] | null | null | null | discord/types/message.py | Harukomaze/disnake | 541f5c9623a02be894cd1015dbb344070700cb87 | [
"MIT"
] | null | null | null | from disnake.types.message import *
| 18 | 35 | 0.805556 | 5 | 36 | 5.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 36 | 1 | 36 | 36 | 0.90625 | 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 |
533a5c10796a9a8aaa30d7cd87047655bcb6ff71 | 46 | py | Python | __init__.py | smwa/multiprocessing_tools | 11f00f0cc12cf1b23a6e3a9daafaf8c98529a6e7 | [
"MIT"
] | null | null | null | __init__.py | smwa/multiprocessing_tools | 11f00f0cc12cf1b23a6e3a9daafaf8c98529a6e7 | [
"MIT"
] | null | null | null | __init__.py | smwa/multiprocessing_tools | 11f00f0cc12cf1b23a6e3a9daafaf8c98529a6e7 | [
"MIT"
] | null | null | null | from multiprocessing_tools import map, filter
| 23 | 45 | 0.869565 | 6 | 46 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 46 | 1 | 46 | 46 | 0.95122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
53526a1a3a4247402490b9972f4604c2d9e53518 | 2,980 | py | Python | tests/dsl/test_parser.py | kikuchi-m/ceryle | 1f91a9aaa17c60700d8827158cb69e7220200757 | [
"MIT"
] | 2 | 2019-10-29T22:50:28.000Z | 2020-03-25T03:06:48.000Z | tests/dsl/test_parser.py | kikuchi-m/ceryle | 1f91a9aaa17c60700d8827158cb69e7220200757 | [
"MIT"
] | null | null | null | tests/dsl/test_parser.py | kikuchi-m/ceryle | 1f91a9aaa17c60700d8827158cb69e7220200757 | [
"MIT"
] | null | null | null | import pathlib
from ceryle import Command, Task, TaskGroup
from ceryle.dsl.parser import parse_tasks
def test_parse():
raw_tasks = {
'g1': {
'tasks': [{
'run': Command('do some'),
}, {
'run': Command('do some more'),
}],
},
... | 26.371681 | 90 | 0.550671 | 362 | 2,980 | 4.486188 | 0.116022 | 0.077586 | 0.083744 | 0.098522 | 0.799877 | 0.705665 | 0.705665 | 0.705665 | 0.705665 | 0.652709 | 0 | 0.043296 | 0.279195 | 2,980 | 112 | 91 | 26.607143 | 0.712756 | 0 | 0 | 0.606742 | 0 | 0 | 0.113087 | 0 | 0 | 0 | 0 | 0 | 0.494382 | 1 | 0.033708 | false | 0 | 0.033708 | 0 | 0.067416 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5368ff455d9fad548304189adebff730d8b0f478 | 15,404 | py | Python | tests/test_pydv_images.py | fillmore1/PyDV | 4258e00ae7261b779f0787278f01d007fc68f77e | [
"BSD-3-Clause"
] | 2 | 2019-04-04T02:32:04.000Z | 2019-04-06T16:43:26.000Z | tests/test_pydv_images.py | fillmore1/PyDV | 4258e00ae7261b779f0787278f01d007fc68f77e | [
"BSD-3-Clause"
] | 37 | 2019-04-03T23:25:09.000Z | 2020-02-05T23:57:02.000Z | tests/test_pydv_images.py | fillmore1/PyDV | 4258e00ae7261b779f0787278f01d007fc68f77e | [
"BSD-3-Clause"
] | 2 | 2019-04-25T15:56:31.000Z | 2019-09-04T20:16:50.000Z |
import os
import shutil
import subprocess
from matplotlib import image
from numpy import testing as np
TEST_DIR = os.path.dirname(os.path.abspath(__file__))
PYDV_DIR = os.path.dirname(TEST_DIR)
BASELINE_DIR = os.path.join(TEST_DIR, 'baseline')
# ------------------------ #
# --- Prepare the data --- #
# ------------... | 34.929705 | 86 | 0.709945 | 2,446 | 15,404 | 4.235487 | 0.092396 | 0.158977 | 0.123552 | 0.200193 | 0.852896 | 0.822394 | 0.808301 | 0.808301 | 0.800965 | 0.561776 | 0 | 0.030975 | 0.130226 | 15,404 | 440 | 87 | 35.009091 | 0.742275 | 0.054661 | 0 | 0.185185 | 0 | 0 | 0.180838 | 0.003262 | 0 | 0 | 0 | 0 | 0.185185 | 1 | 0.185185 | false | 0 | 0.015432 | 0 | 0.200617 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7254c94deffa2e831b9f7802e28abe7ff393fbd2 | 27 | py | Python | kpireport/tests/test_theme.py | diurnalist/kpireporter | b3ce9ca52567405557ea12f45c1a7fda076d746a | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 9 | 2021-05-17T05:32:46.000Z | 2022-03-16T22:49:26.000Z | kpireport/tests/test_theme.py | diurnalist/kpireporter | b3ce9ca52567405557ea12f45c1a7fda076d746a | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 4 | 2020-10-10T23:38:20.000Z | 2020-11-08T22:41:24.000Z | kpireport/tests/test_theme.py | diurnalist/kpireporter | b3ce9ca52567405557ea12f45c1a7fda076d746a | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 1 | 2021-01-12T02:49:04.000Z | 2021-01-12T02:49:04.000Z | def test_theme():
pass
| 9 | 17 | 0.62963 | 4 | 27 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 27 | 2 | 18 | 13.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
72d240f7008c24054fe09fe5e48cdb067b7af11c | 48 | py | Python | em2/auth/__init__.py | samuelcolvin/em2 | a587eaa80c09a2b44d9c221d09a563aad5b05d78 | [
"MIT"
] | 5 | 2019-03-20T19:07:45.000Z | 2020-10-03T01:16:05.000Z | em2/auth/__init__.py | samuelcolvin/em2 | a587eaa80c09a2b44d9c221d09a563aad5b05d78 | [
"MIT"
] | 51 | 2019-03-12T16:19:46.000Z | 2021-03-09T00:52:24.000Z | em2/auth/__init__.py | samuelcolvin/em2 | a587eaa80c09a2b44d9c221d09a563aad5b05d78 | [
"MIT"
] | 1 | 2019-05-31T14:41:18.000Z | 2019-05-31T14:41:18.000Z | from .main import create_app_auth # noqa: F401
| 24 | 47 | 0.770833 | 8 | 48 | 4.375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 0.166667 | 48 | 1 | 48 | 48 | 0.8 | 0.208333 | 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 |
72e5fbfbc76386fcacccff2adaf9beb8bec3a5a0 | 242 | py | Python | src/simmate/calculators/vasp/workflows/energy/__init__.py | laurenmm/simmate-1 | c06b94c46919b01cda50f78221ad14f75c100a14 | [
"BSD-3-Clause"
] | 9 | 2021-12-21T02:58:21.000Z | 2022-01-25T14:00:06.000Z | src/simmate/calculators/vasp/workflows/energy/__init__.py | laurenmm/simmate-1 | c06b94c46919b01cda50f78221ad14f75c100a14 | [
"BSD-3-Clause"
] | 51 | 2022-01-01T15:59:58.000Z | 2022-03-26T21:25:42.000Z | src/simmate/calculators/vasp/workflows/energy/__init__.py | laurenmm/simmate-1 | c06b94c46919b01cda50f78221ad14f75c100a14 | [
"BSD-3-Clause"
] | 7 | 2022-01-01T03:44:32.000Z | 2022-03-29T19:59:27.000Z | # -*- coding: utf-8 -*-
from .materials_project import workflow as matproj_workflow
from .mit import workflow as mit_workflow
from .quality_04 import workflow as quality04_workflow
from .neb_endpoint import workflow as neb_endpoint_workflow
| 34.571429 | 59 | 0.822314 | 35 | 242 | 5.457143 | 0.457143 | 0.293194 | 0.335079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023585 | 0.123967 | 242 | 6 | 60 | 40.333333 | 0.877358 | 0.086777 | 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 |
f443b011be36ac96d6d1e31d3bece9a92fa8a7b1 | 260 | py | Python | coremltools/converters/nnssa/commons/serialization/__init__.py | Gerzer/coremltools | 47e2010a68668bd1960dca040f5f87c0e66a0cbd | [
"BSD-3-Clause"
] | 65 | 2019-10-02T09:56:22.000Z | 2022-03-16T22:41:14.000Z | coremltools/converters/nnssa/commons/serialization/__init__.py | velociraptor111/coremltools | 655b3be5cc0d42c3c4fa49f0f0e4a93a26b3e492 | [
"BSD-3-Clause"
] | 51 | 2020-01-13T07:54:13.000Z | 2022-03-17T09:11:56.000Z | coremltools/converters/nnssa/commons/serialization/__init__.py | velociraptor111/coremltools | 655b3be5cc0d42c3c4fa49f0f0e4a93a26b3e492 | [
"BSD-3-Clause"
] | 16 | 2020-03-06T09:26:03.000Z | 2022-02-05T05:35:05.000Z | # -*- coding: utf-8 -*-
from __future__ import print_function as _
from __future__ import division as _
from __future__ import absolute_import as _
from .dump_impl import dump, dump_obj
from .file_writer import file_writer
from .file_reader import file_reader
| 32.5 | 43 | 0.811538 | 39 | 260 | 4.820513 | 0.435897 | 0.159574 | 0.255319 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004464 | 0.138462 | 260 | 7 | 44 | 37.142857 | 0.834821 | 0.080769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.166667 | 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 |
f450a8510479390f8de6a93b6c3642bf3e749748 | 68 | py | Python | dpipe/torch/__init__.py | samokhinv/deep_pipe | 9461b02f5f32c3e9f24490619ebccf417979cffc | [
"MIT"
] | 38 | 2017-09-08T04:51:17.000Z | 2022-03-29T17:34:22.000Z | dpipe/torch/__init__.py | samokhinv/deep_pipe | 9461b02f5f32c3e9f24490619ebccf417979cffc | [
"MIT"
] | 41 | 2017-09-29T22:06:21.000Z | 2021-12-03T09:31:57.000Z | dpipe/torch/__init__.py | samokhinv/deep_pipe | 9461b02f5f32c3e9f24490619ebccf417979cffc | [
"MIT"
] | 12 | 2017-09-08T04:40:39.000Z | 2021-01-19T19:19:37.000Z | from .model import *
from .utils import *
from .functional import *
| 17 | 25 | 0.735294 | 9 | 68 | 5.555556 | 0.555556 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 68 | 3 | 26 | 22.666667 | 0.892857 | 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 |
f452e015f08c0d28367d5893ffe0680dba67228d | 34 | py | Python | 01/mymodule.py | mariusgruenewald/lectures-2019 | 36812db370dfe7229be2df88b5020940394e54c0 | [
"MIT"
] | 14 | 2019-01-11T09:47:18.000Z | 2019-08-25T05:45:18.000Z | 01/mymodule.py | mariusgruenewald/lectures-2019 | 36812db370dfe7229be2df88b5020940394e54c0 | [
"MIT"
] | 19 | 2020-01-06T14:43:17.000Z | 2020-05-17T14:49:12.000Z | 01/mymodule.py | mariusgruenewald/lectures-2019 | 36812db370dfe7229be2df88b5020940394e54c0 | [
"MIT"
] | 31 | 2019-02-11T09:23:44.000Z | 2020-01-13T10:54:42.000Z | def myfunction(x):
return x**2 | 17 | 18 | 0.647059 | 6 | 34 | 3.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.205882 | 34 | 2 | 19 | 17 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
f45e4be000a17348664486f627f74934c81add1a | 6,314 | py | Python | examples/erniesage/models/message_passing.py | Nancy823/PGL | 8be7e76a7d0f3ca28c3e69b505947ea5b68af7f3 | [
"Apache-2.0"
] | 1 | 2021-04-22T17:30:12.000Z | 2021-04-22T17:30:12.000Z | examples/erniesage/models/message_passing.py | cheeryoung79/PGL | fc517bbb87c570d0b854507769078c479d613914 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-04-29T13:38:01.000Z | 2020-04-29T13:38:01.000Z | examples/erniesage/models/message_passing.py | cheeryoung79/PGL | fc517bbb87c570d0b854507769078c479d613914 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-09-01T12:00:31.000Z | 2021-09-01T12:00:31.000Z | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 43.246575 | 109 | 0.536427 | 688 | 6,314 | 4.68314 | 0.196221 | 0.075109 | 0.063315 | 0.074488 | 0.759466 | 0.759466 | 0.759466 | 0.759466 | 0.759466 | 0.759466 | 0 | 0.010043 | 0.36918 | 6,314 | 145 | 110 | 43.544828 | 0.798895 | 0.09867 | 0 | 0.701923 | 0 | 0 | 0.023632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096154 | false | 0 | 0.038462 | 0 | 0.230769 | 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 |
f4739d56b417ab0c67435100679555bf659a2dd6 | 2,020 | py | Python | code/loader.py | SeanLee97/duReader_pytorch | 1d55022ed0a87054f9a0d6e012a75a6380984264 | [
"MIT"
] | 14 | 2018-02-22T04:29:21.000Z | 2020-02-04T07:00:54.000Z | code/loader.py | SeanLee97/duReader_pytorch | 1d55022ed0a87054f9a0d6e012a75a6380984264 | [
"MIT"
] | null | null | null | code/loader.py | SeanLee97/duReader_pytorch | 1d55022ed0a87054f9a0d6e012a75a6380984264 | [
"MIT"
] | 3 | 2018-01-13T16:31:04.000Z | 2018-08-01T03:40:10.000Z | import h5py
import math
import torch
import torch.utils.data as data
class loadTrainDataset(data.Dataset):
def __init__(self, path):
self.file = h5py.File(path)
self.nb_samples = len(self.file['question'][:])
print('Dataset: ', self.nb_samples)
def __getitem__(self, index):
que... | 36.071429 | 82 | 0.662871 | 235 | 2,020 | 5.408511 | 0.131915 | 0.132179 | 0.138474 | 0.042486 | 0.780488 | 0.780488 | 0.780488 | 0.780488 | 0.749803 | 0.70653 | 0 | 0.002513 | 0.211881 | 2,020 | 56 | 83 | 36.071429 | 0.795854 | 0 | 0 | 0.717391 | 0 | 0 | 0.111331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195652 | false | 0 | 0.086957 | 0.065217 | 0.478261 | 0.065217 | 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 |
be56b5d523bea502c9a48fe042037921c7fa05ae | 29,676 | py | Python | qulab/tools/resonator_tools/circuit.py | liuqichun3809/quantum-lab | 05bea707b314ea1687866f56ee439079336cfbbc | [
"MIT"
] | 3 | 2020-08-30T16:11:49.000Z | 2021-03-05T12:09:30.000Z | qulab/tools/resonator_tools/circuit.py | liuqichun3809/quantum-lab | 05bea707b314ea1687866f56ee439079336cfbbc | [
"MIT"
] | null | null | null | qulab/tools/resonator_tools/circuit.py | liuqichun3809/quantum-lab | 05bea707b314ea1687866f56ee439079336cfbbc | [
"MIT"
] | 2 | 2019-07-24T15:12:31.000Z | 2019-09-20T02:17:28.000Z | import warnings
import numpy as np
import scipy.optimize as spopt
from scipy.constants import hbar
from scipy.interpolate import splrep, splev
from .utilities import plotting, save_load, Watt2dBm, dBm2Watt
from .circlefit import circlefit
from .calibration import calibration
##
## z_data_raw denotes the raw data
## z... | 42.273504 | 217 | 0.694467 | 5,061 | 29,676 | 3.912863 | 0.113812 | 0.032318 | 0.025905 | 0.015149 | 0.756855 | 0.742918 | 0.723022 | 0.717316 | 0.71373 | 0.704338 | 0 | 0.031 | 0.142337 | 29,676 | 702 | 218 | 42.273504 | 0.747053 | 0.234364 | 0 | 0.762749 | 0 | 0.004435 | 0.108914 | 0.004135 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084257 | false | 0.011086 | 0.026608 | 0.002217 | 0.172949 | 0.022173 | 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 |
be6454dcd7dffe1eb46f400b2579bc4c68018ce4 | 25 | py | Python | event.grid-client.python/main/__init__.py | enjector/enjector-event.grid | 7dfec2a1e155bf6b3ba25b1d6b133a3237b7ba14 | [
"Apache-2.0"
] | null | null | null | event.grid-client.python/main/__init__.py | enjector/enjector-event.grid | 7dfec2a1e155bf6b3ba25b1d6b133a3237b7ba14 | [
"Apache-2.0"
] | 11 | 2020-08-08T16:10:32.000Z | 2020-08-11T06:35:51.000Z | event.grid-client.python/main/__init__.py | enjector/enjector-event.grid-server | 7dfec2a1e155bf6b3ba25b1d6b133a3237b7ba14 | [
"Apache-2.0"
] | null | null | null | from .eventgrid import *
| 12.5 | 24 | 0.76 | 3 | 25 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.904762 | 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 |
be8064b4b41f111bfa023afcd8b3680ca3cdc30b | 167 | py | Python | sw/control/__init__.py | christopherco/moabian | 29b623d60212ba4daa18e3ca9aeed364390533e6 | [
"MIT"
] | null | null | null | sw/control/__init__.py | christopherco/moabian | 29b623d60212ba4daa18e3ca9aeed364390533e6 | [
"MIT"
] | null | null | null | sw/control/__init__.py | christopherco/moabian | 29b623d60212ba4daa18e3ca9aeed364390533e6 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
from .debug import *
from .device import *
from .timers import *
from .perfcounters import *
| 20.875 | 38 | 0.748503 | 21 | 167 | 5.952381 | 0.714286 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167665 | 167 | 7 | 39 | 23.857143 | 0.899281 | 0.407186 | 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 |
beb4e0a933714af799118ed326bf5e54ee4ed540 | 19,827 | py | Python | lingvo/core/spectrum_augmenter_on_device_test.py | Singed-jj/lingvo | a2a4ac8bd835ffc2f95fc38ee3e9bc17c30fcc56 | [
"Apache-2.0"
] | null | null | null | lingvo/core/spectrum_augmenter_on_device_test.py | Singed-jj/lingvo | a2a4ac8bd835ffc2f95fc38ee3e9bc17c30fcc56 | [
"Apache-2.0"
] | null | null | null | lingvo/core/spectrum_augmenter_on_device_test.py | Singed-jj/lingvo | a2a4ac8bd835ffc2f95fc38ee3e9bc17c30fcc56 | [
"Apache-2.0"
] | null | null | null | # Lint as: python3
# Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | 40.054545 | 80 | 0.637262 | 2,524 | 19,827 | 4.797147 | 0.099445 | 0.031715 | 0.034688 | 0.043608 | 0.792369 | 0.78221 | 0.767261 | 0.766435 | 0.761397 | 0.750661 | 0 | 0.033909 | 0.245877 | 19,827 | 494 | 81 | 40.135628 | 0.775883 | 0.042568 | 0 | 0.766147 | 0 | 0 | 0.020837 | 0 | 0 | 0 | 0 | 0 | 0.044543 | 1 | 0.042316 | false | 0 | 0.013363 | 0 | 0.057906 | 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 |
fe29e9d4848eec29299ab01c971a80b123d5364f | 306 | py | Python | src/tests/test_trivial.py | ndejong/pyvboxmanage | 6cb49546782ae97f177e7035982b1dc86b8f61db | [
"BSD-2-Clause"
] | 1 | 2020-12-28T02:19:35.000Z | 2020-12-28T02:19:35.000Z | src/tests/test_trivial.py | ndejong/pyvboxmanage | 6cb49546782ae97f177e7035982b1dc86b8f61db | [
"BSD-2-Clause"
] | null | null | null | src/tests/test_trivial.py | ndejong/pyvboxmanage | 6cb49546782ae97f177e7035982b1dc86b8f61db | [
"BSD-2-Clause"
] | null | null | null |
import pytest
from pyvboxmanage import __author__
from pyvboxmanage import __version__
from pyvboxmanage import __title__
def test_author_exist():
assert __author__ is not None
def test_version_exist():
assert __version__ is not None
def test_title_exist():
assert __title__ is not None
| 17 | 36 | 0.794118 | 41 | 306 | 5.195122 | 0.341463 | 0.225352 | 0.309859 | 0.112676 | 0.150235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 306 | 17 | 37 | 18 | 0.845238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | true | 0 | 0.4 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
fe34b1165175e9ca4d32cddd690f0443186dcade | 20 | py | Python | dataloader/dataset/__init__.py | sajith-rahim/papyrus | 1f027274670b6492caaeb09e6ad6f80d2ebff390 | [
"Apache-2.0"
] | 5 | 2019-03-24T07:33:12.000Z | 2021-08-10T07:10:00.000Z | dataloader/dataset/__init__.py | sajith-rahim/papyrus | 1f027274670b6492caaeb09e6ad6f80d2ebff390 | [
"Apache-2.0"
] | null | null | null | dataloader/dataset/__init__.py | sajith-rahim/papyrus | 1f027274670b6492caaeb09e6ad6f80d2ebff390 | [
"Apache-2.0"
] | 1 | 2021-08-10T07:10:01.000Z | 2021-08-10T07:10:01.000Z | from .mnist import * | 20 | 20 | 0.75 | 3 | 20 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 20 | 1 | 20 | 20 | 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 |
fe5310de7ff402e5af5ced94f870127483d6d509 | 36 | py | Python | testing/__init__.py | michelebersani/ComputationalMathematics | ddc75251b01ed6b4f6f70d9aaf135c93f9c624f1 | [
"MIT"
] | 1 | 2021-04-23T10:31:13.000Z | 2021-04-23T10:31:13.000Z | testing/__init__.py | michelebersani/ComputationalMathematics | ddc75251b01ed6b4f6f70d9aaf135c93f9c624f1 | [
"MIT"
] | null | null | null | testing/__init__.py | michelebersani/ComputationalMathematics | ddc75251b01ed6b4f6f70d9aaf135c93f9c624f1 | [
"MIT"
] | null | null | null | from .multiple_runs import multi_run | 36 | 36 | 0.888889 | 6 | 36 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 36 | 1 | 36 | 36 | 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 |
fe5af8266a2106adcbb7b93247d388aa9a95f346 | 114 | py | Python | profiles/utils.py | abdellatifLabr/MyStore | 6a1db004d7372c236be72077aa55260927a46135 | [
"MIT"
] | null | null | null | profiles/utils.py | abdellatifLabr/MyStore | 6a1db004d7372c236be72077aa55260927a46135 | [
"MIT"
] | null | null | null | profiles/utils.py | abdellatifLabr/MyStore | 6a1db004d7372c236be72077aa55260927a46135 | [
"MIT"
] | null | null | null | import uuid
def build_avatar_path(instance, filename):
return f'img/profile/avatar/{uuid.uuid4()}_{filename}' | 28.5 | 58 | 0.763158 | 16 | 114 | 5.25 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.096491 | 114 | 4 | 58 | 28.5 | 0.805825 | 0 | 0 | 0 | 0 | 0 | 0.382609 | 0.382609 | 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 |
fe612c49f6a9bee666e6e76365e814bbd645d44e | 418 | py | Python | tests/conftest.py | vintesk/gpwebpay | 70f790e82831baaeb807cf4703191710e51b9b23 | [
"MIT"
] | 5 | 2018-02-01T15:59:31.000Z | 2021-05-31T08:15:54.000Z | tests/conftest.py | filias/gpwebpay | 70f790e82831baaeb807cf4703191710e51b9b23 | [
"MIT"
] | 61 | 2020-01-09T23:04:32.000Z | 2022-01-02T18:26:57.000Z | tests/conftest.py | vintesk/gpwebpay | 70f790e82831baaeb807cf4703191710e51b9b23 | [
"MIT"
] | null | null | null | import base64
import pytest
from gpwebpay.config import configuration
from gpwebpay.gpwebpay import GpwebpayClient
@pytest.fixture()
def gateway_client():
return GpwebpayClient()
@pytest.fixture()
def private_key() -> bytes:
return base64.b64decode(configuration.GPWEBPAY_MERCHANT_PRIVATE_KEY)
@pytest.fi... | 19 | 72 | 0.789474 | 48 | 418 | 6.708333 | 0.395833 | 0.121118 | 0.149068 | 0.186335 | 0.310559 | 0.310559 | 0.310559 | 0 | 0 | 0 | 0 | 0.027248 | 0.12201 | 418 | 21 | 73 | 19.904762 | 0.850136 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | true | 0 | 0.307692 | 0.230769 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
2287ae37ae4f1a5ae7c8e582a10c93cb91f42725 | 109 | py | Python | 506-Packaging-Lambda-Code-in-a-Container-Image/app.py | AWSCookbook/Serverless | ad39607b2901774b99056505e0ed03386c10ef7e | [
"MIT"
] | 5 | 2021-12-16T19:21:12.000Z | 2022-02-10T02:23:16.000Z | 506-Packaging-Lambda-Code-in-a-Container-Image/app.py | AWSCookbook/Serverless | ad39607b2901774b99056505e0ed03386c10ef7e | [
"MIT"
] | null | null | null | 506-Packaging-Lambda-Code-in-a-Container-Image/app.py | AWSCookbook/Serverless | ad39607b2901774b99056505e0ed03386c10ef7e | [
"MIT"
] | 4 | 2021-11-25T13:42:24.000Z | 2022-02-25T06:53:11.000Z | import sys
def handler(event, context):
return 'Hello from the AWS Cookbook ' + sys.version + '!' | 36.333333 | 69 | 0.642202 | 14 | 109 | 5 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247706 | 109 | 3 | 69 | 36.333333 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0.263636 | 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 |
2292f2acae4e80e79020c793179fecbd620a995c | 1,352 | py | Python | python/msc/entry/15.py | gerritjvv/optimization_algorithms | eab2e8fff39eeab8d9be45af3dae3be1a62be3ba | [
"MIT"
] | null | null | null | python/msc/entry/15.py | gerritjvv/optimization_algorithms | eab2e8fff39eeab8d9be45af3dae3be1a62be3ba | [
"MIT"
] | null | null | null | python/msc/entry/15.py | gerritjvv/optimization_algorithms | eab2e8fff39eeab8d9be45af3dae3be1a62be3ba | [
"MIT"
] | null | null | null | import numpy as np
import sympy as s
def f_a(a, b, x):
return a * np.sin(2 * x) + b * np.cos(2 * x) - (x / 4.0) * np.cos(2 * x)
def f_da(a, b):
x = s.Symbol('x')
f = a * s.sin(2 * x) + b * s.cos(2 * x) - (x / 4.0) * s.cos(2 * x)
f_prime = f.diff(x)
print(f_prime)
l = s.lambdify(x, f_prime)... | 17.333333 | 76 | 0.462278 | 308 | 1,352 | 1.938312 | 0.103896 | 0.067002 | 0.050251 | 0.060302 | 0.850921 | 0.788945 | 0.715243 | 0.715243 | 0.693467 | 0.693467 | 0 | 0.063559 | 0.301775 | 1,352 | 77 | 77 | 17.558442 | 0.568856 | 0.066568 | 0 | 0.47619 | 0 | 0 | 0.0032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.047619 | 0.095238 | 0.428571 | 0.190476 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
22c5af7cb8e9126224a9facdae968a7c93c8d55b | 9,512 | py | Python | ml/rl/preprocessing/batch_preprocessor.py | brettkoonce/ReAgent | dcaa16e0bdc5e1cecf816a6683e8909a9859855d | [
"BSD-3-Clause"
] | 2 | 2021-05-23T22:11:21.000Z | 2021-06-17T13:08:53.000Z | ml/rl/preprocessing/batch_preprocessor.py | brettkoonce/ReAgent | dcaa16e0bdc5e1cecf816a6683e8909a9859855d | [
"BSD-3-Clause"
] | null | null | null | ml/rl/preprocessing/batch_preprocessor.py | brettkoonce/ReAgent | dcaa16e0bdc5e1cecf816a6683e8909a9859855d | [
"BSD-3-Clause"
] | 2 | 2021-01-06T01:06:50.000Z | 2021-06-24T01:12:52.000Z | #!/usr/bin/env python3
from typing import Tuple, Union, cast
import torch
from ml.rl import types as rlt
from ml.rl.preprocessing.normalization import get_num_output_features
from ml.rl.preprocessing.preprocessor import Preprocessor
class BatchPreprocessor:
def __call__(self, batch: rlt.RawTrainingBatch) -> rlt... | 44.037037 | 88 | 0.66926 | 880 | 9,512 | 6.827273 | 0.096591 | 0.151465 | 0.053928 | 0.056258 | 0.859021 | 0.828395 | 0.81275 | 0.730193 | 0.709221 | 0.677929 | 0 | 0.001575 | 0.26598 | 9,512 | 215 | 89 | 44.24186 | 0.858923 | 0.002208 | 0 | 0.580311 | 0 | 0 | 0.00295 | 0 | 0 | 0 | 0 | 0 | 0.041451 | 1 | 0.056995 | false | 0 | 0.025907 | 0 | 0.145078 | 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 |
fe1a9b988209ca845015a3c8edfd39864c966052 | 116 | py | Python | tests/test.py | cwoodall/doppler-gestures-py | 625d506452bdc35412f129a7c746ecb8fe0dee26 | [
"MIT"
] | 4 | 2015-06-28T00:27:34.000Z | 2018-08-19T00:43:35.000Z | tests/test.py | cwoodall/doppler-gestures-py | 625d506452bdc35412f129a7c746ecb8fe0dee26 | [
"MIT"
] | 17 | 2015-03-22T03:07:34.000Z | 2021-02-27T13:19:02.000Z | tests/test.py | cwoodall/doppler-gestures-py | 625d506452bdc35412f129a7c746ecb8fe0dee26 | [
"MIT"
] | 5 | 2015-03-25T01:33:56.000Z | 2018-08-19T00:43:20.000Z | import nose
def test_nose_working():
"""
Test that the nose runner is working.
"""
assert True
| 14.5 | 45 | 0.603448 | 15 | 116 | 4.533333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.310345 | 116 | 7 | 46 | 16.571429 | 0.85 | 0.318966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a3f144f65ecff9cc551fe7b3e7cf87a4a9dd45a0 | 104 | py | Python | malanka/websockets.py | alex-oleshkevich/malanka | d46207fd889f5d2cd3888ac04ea980a963a7559f | [
"MIT"
] | 1 | 2021-08-01T21:09:59.000Z | 2021-08-01T21:09:59.000Z | malanka/websockets.py | alex-oleshkevich/malanka | d46207fd889f5d2cd3888ac04ea980a963a7559f | [
"MIT"
] | null | null | null | malanka/websockets.py | alex-oleshkevich/malanka | d46207fd889f5d2cd3888ac04ea980a963a7559f | [
"MIT"
] | null | null | null | from starlette.websockets import WebSocket, WebSocketClose, WebSocketDisconnect, WebSocketState # noqa
| 52 | 103 | 0.855769 | 9 | 104 | 9.888889 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 104 | 1 | 104 | 104 | 0.946809 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
431710dc46aa23cd0e91b299dba1e232c5bfc722 | 187 | py | Python | domain_adaptation/feature_based/pca.py | eddardd/CrossDomainFaultDetection | 83dd24727a8b35cda2549b40166beaf740e14c98 | [
"MIT"
] | 3 | 2021-08-30T11:41:36.000Z | 2021-12-22T10:45:25.000Z | domain_adaptation/feature_based/pca.py | eddardd/CrossDomainFaultDiagnosis | 83dd24727a8b35cda2549b40166beaf740e14c98 | [
"MIT"
] | 1 | 2021-02-26T06:02:33.000Z | 2021-02-26T06:02:33.000Z | domain_adaptation/feature_based/pca.py | eddardd/CrossDomainFaultDetection | 83dd24727a8b35cda2549b40166beaf740e14c98 | [
"MIT"
] | 2 | 2021-06-03T11:46:20.000Z | 2022-03-25T09:16:03.000Z | import numpy as np
from sklearn.decomposition import PCA
def DAPCA(Xs, Xt, n_components=2):
return PCA(n_components=n_components).fit(np.concatenate([Xs, Xt], axis=0)).components_.T | 31.166667 | 93 | 0.764706 | 31 | 187 | 4.483871 | 0.677419 | 0.23741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.112299 | 187 | 6 | 93 | 31.166667 | 0.825301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
4332a92ae7efd23ada1f62516ce25aa2afbf2df2 | 15,086 | py | Python | src/extension/tests/Test_EnvHealthManager.py | Azure/LinuxPatchExtension | 6af622afb4298805bdf47328d6bc66a785f7166b | [
"Apache-2.0"
] | 4 | 2020-06-01T14:36:30.000Z | 2021-08-24T16:55:50.000Z | src/extension/tests/Test_EnvHealthManager.py | Azure/LinuxPatchExtension | 6af622afb4298805bdf47328d6bc66a785f7166b | [
"Apache-2.0"
] | 34 | 2020-09-11T17:20:42.000Z | 2022-03-28T14:08:44.000Z | src/extension/tests/Test_EnvHealthManager.py | Azure/LinuxPatchExtension | 6af622afb4298805bdf47328d6bc66a785f7166b | [
"Apache-2.0"
] | 1 | 2020-12-28T10:13:20.000Z | 2020-12-28T10:13:20.000Z | # Copyright 2020 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 67.048889 | 208 | 0.808034 | 2,108 | 15,086 | 5.215844 | 0.08871 | 0.082947 | 0.129604 | 0.121874 | 0.815098 | 0.793633 | 0.790996 | 0.782083 | 0.780809 | 0.772533 | 0 | 0.000833 | 0.124155 | 15,086 | 225 | 209 | 67.048889 | 0.831303 | 0.08604 | 0 | 0.56129 | 0 | 0 | 0.03897 | 0.002399 | 0.03871 | 0 | 0 | 0 | 0.206452 | 1 | 0.090323 | false | 0.006452 | 0.135484 | 0 | 0.23871 | 0.012903 | 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 |
4334c06e304d34181374392c66e7f756605de103 | 972 | py | Python | fastapi/{{ cookiecutter.project_name }}/tests/api/test_api_with_auth.py | Hannarong98/templates | bf0c77809cd71c1208b442ce89ee7c5dc692ce34 | [
"MIT"
] | 22 | 2021-06-24T23:00:59.000Z | 2022-03-17T15:06:55.000Z | fastapi/{{ cookiecutter.project_name }}/tests/api/test_api_with_auth.py | Hannarong98/templates | bf0c77809cd71c1208b442ce89ee7c5dc692ce34 | [
"MIT"
] | 28 | 2021-06-23T14:52:06.000Z | 2022-03-02T13:41:06.000Z | fastapi/{{ cookiecutter.project_name }}/tests/api/test_api_with_auth.py | Hannarong98/templates | bf0c77809cd71c1208b442ce89ee7c5dc692ce34 | [
"MIT"
] | 2 | 2021-11-06T11:33:48.000Z | 2022-02-23T13:40:14.000Z | import pytest
from httpx import AsyncClient
from tests.api.auth_utils import create_access_token
@pytest.mark.asyncio
async def test_auth_view(client: AsyncClient):
response = await client.get('api/v1/hello')
assert response.status_code == 401
@pytest.mark.asyncio
async def test_auth_view(client: AsyncClien... | 32.4 | 115 | 0.747942 | 131 | 972 | 5.366412 | 0.282443 | 0.068279 | 0.096728 | 0.125178 | 0.859175 | 0.816501 | 0.816501 | 0.816501 | 0.763869 | 0.763869 | 0 | 0.01889 | 0.128601 | 972 | 29 | 116 | 33.517241 | 0.811098 | 0 | 0 | 0.47619 | 0 | 0 | 0.213992 | 0.090535 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
433ef033cc8254687a9d5ad30039c535aade1fce | 51 | py | Python | handy_features/decorators/__init__.py | vishwaefor/handy-python-features | cbc6f772655a1a329971cc2972d691501b2c66a1 | [
"Apache-2.0"
] | 2 | 2019-07-05T18:07:36.000Z | 2019-07-11T15:49:55.000Z | handy_features/decorators/__init__.py | vishwaefor/handy-python-features | cbc6f772655a1a329971cc2972d691501b2c66a1 | [
"Apache-2.0"
] | 1 | 2019-07-03T08:18:21.000Z | 2019-07-04T07:32:09.000Z | handy_features/decorators/__init__.py | vishwaefor/handy-python-features | cbc6f772655a1a329971cc2972d691501b2c66a1 | [
"Apache-2.0"
] | null | null | null | from .private_function_dec import private_function
| 25.5 | 50 | 0.901961 | 7 | 51 | 6.142857 | 0.714286 | 0.697674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 51 | 1 | 51 | 51 | 0.914894 | 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 |
4a28c933ff7862cdb014fcddfac0020197cc1b4e | 104 | py | Python | simuvex/simuvex/s_action_object.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | 86 | 2015-08-06T23:25:07.000Z | 2022-02-17T14:58:22.000Z | simuvex/simuvex/s_action_object.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | 132 | 2015-09-10T19:06:59.000Z | 2018-10-04T20:36:45.000Z | simuvex/simuvex/s_action_object.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | 80 | 2015-08-07T10:30:20.000Z | 2020-03-21T14:45:28.000Z | print '... Importing simuvex/s_action_object.py ...'
from angr.state_plugins.sim_action_object import *
| 34.666667 | 52 | 0.788462 | 15 | 104 | 5.133333 | 0.866667 | 0.311688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086538 | 104 | 2 | 53 | 52 | 0.810526 | 0 | 0 | 0 | 0 | 0 | 0.423077 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 1 | null | null | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
4a2b3739bd4c92b8eade9586fcaa89c72014ab58 | 9,683 | py | Python | flink-python/pyflink/shell.py | journeyqiao/flink | 164202bd9b4662f246e961fd964b96ae308cbcee | [
"Apache-2.0"
] | 1 | 2020-03-07T15:49:39.000Z | 2020-03-07T15:49:39.000Z | flink-python/pyflink/shell.py | journeyqiao/flink | 164202bd9b4662f246e961fd964b96ae308cbcee | [
"Apache-2.0"
] | 5 | 2021-03-30T04:48:08.000Z | 2021-12-24T08:22:11.000Z | flink-python/pyflink/shell.py | journeyqiao/flink | 164202bd9b4662f246e961fd964b96ae308cbcee | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. ... | 58.684848 | 242 | 0.633275 | 1,237 | 9,683 | 4.898141 | 0.16249 | 0.204654 | 0.136161 | 0.082522 | 0.694339 | 0.593992 | 0.444628 | 0.269681 | 0.224294 | 0.156627 | 0 | 0.36193 | 0.218734 | 9,683 | 164 | 243 | 59.042683 | 0.438995 | 0.08706 | 0 | 0.265625 | 0 | 0.257813 | 0.861018 | 0.438993 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015625 | false | 0 | 0.148438 | 0 | 0.164063 | 0.007813 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4a38a518066c13935febff437af0522d985ef3d4 | 1,683 | py | Python | Complete/Tests/test_formy_submit_success.py | tim-corley/Selenium-Starter-Kit | e74beae52c97464f40c034996c0645fe3f8cc235 | [
"Unlicense",
"MIT"
] | null | null | null | Complete/Tests/test_formy_submit_success.py | tim-corley/Selenium-Starter-Kit | e74beae52c97464f40c034996c0645fe3f8cc235 | [
"Unlicense",
"MIT"
] | 1 | 2021-06-02T00:54:01.000Z | 2021-06-02T00:54:01.000Z | Complete/Tests/test_formy_submit_success.py | tim-corley/Selenium-Starter-Kit | e74beae52c97464f40c034996c0645fe3f8cc235 | [
"Unlicense",
"MIT"
] | null | null | null | # must be within Tests folder to run
# Complete/Tests $ pytest -v
import sys
sys.path.append('..')
from Pages.page_form import FormPage
from globals import FormyGlobals
from selenium import webdriver
import pytest
class TestFormSuccessChrome():
@pytest.fixture()
def test_setup(self):
global driver
... | 34.346939 | 125 | 0.694593 | 194 | 1,683 | 5.835052 | 0.345361 | 0.024735 | 0.028269 | 0.035336 | 0.738516 | 0.738516 | 0.738516 | 0.738516 | 0.738516 | 0.738516 | 0 | 0.003028 | 0.215092 | 1,683 | 48 | 126 | 35.0625 | 0.853899 | 0.036245 | 0 | 0.714286 | 0 | 0 | 0.067943 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.095238 | false | 0 | 0.119048 | 0 | 0.261905 | 0.047619 | 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 |
4a7c85e64191816a7e4f343d7e0cd40d781fc50f | 8,689 | py | Python | src/vfb_query_builder/test/TermInfo_schema_tests.py | VirtualFlyBrain/VFB_json_schema | 998f8cf4d580fd74b9bfb38c958123233a8d8d1a | [
"Apache-2.0"
] | null | null | null | src/vfb_query_builder/test/TermInfo_schema_tests.py | VirtualFlyBrain/VFB_json_schema | 998f8cf4d580fd74b9bfb38c958123233a8d8d1a | [
"Apache-2.0"
] | 76 | 2018-11-09T12:03:00.000Z | 2021-12-14T18:06:11.000Z | src/vfb_query_builder/test/TermInfo_schema_tests.py | VirtualFlyBrain/VFB_json_schema | 998f8cf4d580fd74b9bfb38c958123233a8d8d1a | [
"Apache-2.0"
] | null | null | null | import unittest
from vfb_query_builder.query_roller import QueryLibrary, query_builder
from .test_tools import TestWrapper
class TermInfoRollerTest(unittest.TestCase):
def setUp(self):
self.ql = QueryLibrary()
self.qw = TestWrapper('vfb_termInfo.json')
print("Running", self.id().split('.'... | 40.602804 | 110 | 0.486477 | 874 | 8,689 | 4.586957 | 0.106407 | 0.123472 | 0.164131 | 0.076827 | 0.805188 | 0.777002 | 0.770516 | 0.75106 | 0.745822 | 0.72911 | 0 | 0.039136 | 0.403038 | 8,689 | 213 | 111 | 40.793427 | 0.733757 | 0.00656 | 0 | 0.653631 | 0 | 0 | 0.062109 | 0.009386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.167598 | false | 0 | 0.01676 | 0.005587 | 0.195531 | 0.027933 | 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 |
4a9ebffbe7102fca646b8220663a12cf4794c21c | 8,932 | py | Python | tests/paths_test.py | rhofour/InfiniTDBackend | 8763d64a82d02e4282abff5419e1ab256af41d7e | [
"MIT"
] | null | null | null | tests/paths_test.py | rhofour/InfiniTDBackend | 8763d64a82d02e4282abff5419e1ab256af41d7e | [
"MIT"
] | null | null | null | tests/paths_test.py | rhofour/InfiniTDBackend | 8763d64a82d02e4282abff5419e1ab256af41d7e | [
"MIT"
] | null | null | null | import unittest
from random import Random
import numpy as np
from infinitd_server.game_config import CellPos, Row, Col
from infinitd_server.battleground_state import BattlegroundState, BgTowersState, BgTowerState
from infinitd_server.paths import makePathMap, compressPath, PathMap, pathExists
def emptyBattleground(r... | 41.16129 | 104 | 0.613636 | 1,061 | 8,932 | 5.132894 | 0.102733 | 0.108336 | 0.070694 | 0.089974 | 0.864304 | 0.844106 | 0.82097 | 0.812707 | 0.777084 | 0.771025 | 0 | 0.041691 | 0.248097 | 8,932 | 216 | 105 | 41.351852 | 0.769208 | 0.028101 | 0 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26875 | 1 | 0.13125 | false | 0 | 0.0375 | 0.00625 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4ac3ca9d9755d6fe5e8ceead186b8b9dfc7deabd | 24,475 | py | Python | furnace/seg_opr/loss_opr.py | akinoriosamura/TorchSeg-mirror | 34033fe85fc24015bcef7a92aad39d2a25a001a5 | [
"MIT"
] | null | null | null | furnace/seg_opr/loss_opr.py | akinoriosamura/TorchSeg-mirror | 34033fe85fc24015bcef7a92aad39d2a25a001a5 | [
"MIT"
] | 1 | 2021-06-08T20:36:43.000Z | 2021-06-08T20:36:43.000Z | furnace/seg_opr/loss_opr.py | akinoriosamura/TorchSeg-mirror | 34033fe85fc24015bcef7a92aad39d2a25a001a5 | [
"MIT"
] | null | null | null | import numpy as np
import scipy.ndimage as nd
import torch
import torch.nn as nn
import torch.nn.functional as F
from engine.logger import get_logger
from seg_opr.seg_oprs import one_hot
logger = get_logger()
class SigmoidFocalLoss(nn.Module):
def __init__(self, ignore_label, gamma=2.0, alpha=0.25,
... | 40.122951 | 81 | 0.60617 | 2,972 | 24,475 | 4.750336 | 0.066622 | 0.038674 | 0.036124 | 0.025499 | 0.798413 | 0.77681 | 0.762998 | 0.749398 | 0.71887 | 0.711149 | 0 | 0.02663 | 0.281961 | 24,475 | 609 | 82 | 40.188834 | 0.776716 | 0.018345 | 0 | 0.702083 | 0 | 0 | 0.004372 | 0 | 0 | 0 | 0 | 0.001642 | 0 | 1 | 0.066667 | false | 0 | 0.014583 | 0 | 0.147917 | 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 |
4361210dec81b69d21208a86186f6252ab59c80a | 54 | py | Python | tests/core/test_import.py | pipermerriam/eth-orm | b7353e24357f133ae5cf63727cace92fd45d1867 | [
"MIT"
] | 1 | 2021-01-16T08:54:04.000Z | 2021-01-16T08:54:04.000Z | tests/core/test_import.py | pipermerriam/eth-orm | b7353e24357f133ae5cf63727cace92fd45d1867 | [
"MIT"
] | null | null | null | tests/core/test_import.py | pipermerriam/eth-orm | b7353e24357f133ae5cf63727cace92fd45d1867 | [
"MIT"
] | null | null | null |
def test_import():
import eth_orm # noqa: F401
| 10.8 | 32 | 0.648148 | 8 | 54 | 4.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 0.259259 | 54 | 4 | 33 | 13.5 | 0.75 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 1 | 0 | 1.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4367883ef8a85f3ebd2c8fc60711a24b5eaa87d3 | 9,681 | py | Python | tests/test_juniper_legacy.py | bkresoja/splunk-connect-for-syslog | 2710ad9d7c7881ceef7cb57577311e819138ed34 | [
"BSD-2-Clause",
"CC0-1.0"
] | null | null | null | tests/test_juniper_legacy.py | bkresoja/splunk-connect-for-syslog | 2710ad9d7c7881ceef7cb57577311e819138ed34 | [
"BSD-2-Clause",
"CC0-1.0"
] | null | null | null | tests/test_juniper_legacy.py | bkresoja/splunk-connect-for-syslog | 2710ad9d7c7881ceef7cb57577311e819138ed34 | [
"BSD-2-Clause",
"CC0-1.0"
] | null | null | null | # Copyright 2019 Splunk, Inc.
#
# Use of this source code is governed by a BSD-2-clause-style
# license that can be found in the LICENSE-BSD2 file or at
# https://opensource.org/licenses/BSD-2-Clause
from jinja2 import Environment
from .sendmessage import *
from .splunkutils import *
env = Environment(extensions=['j... | 76.833333 | 869 | 0.688152 | 1,624 | 9,681 | 4.025246 | 0.196429 | 0.015298 | 0.015603 | 0.014686 | 0.875019 | 0.875019 | 0.875019 | 0.875019 | 0.875019 | 0.875019 | 0 | 0.132071 | 0.132631 | 9,681 | 125 | 870 | 77.448 | 0.646421 | 0.384155 | 0 | 0.695652 | 0 | 0.101449 | 0.434724 | 0.018001 | 0 | 0 | 0 | 0 | 0.072464 | 1 | 0.072464 | false | 0 | 0.043478 | 0 | 0.115942 | 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 |
4376094138704e9557fbccd18eadae01200057f6 | 22 | py | Python | dmonpoint/__init__.py | dice-project/DICE-Anomaly-Detection-Tool | a5eeacb9e888348adbe97be0c26a500f2f03ec6f | [
"Apache-2.0"
] | 4 | 2017-02-06T15:33:06.000Z | 2018-05-08T01:43:03.000Z | dmonpoint/__init__.py | dice-project/DICE-Anomaly-Detection-Tool | a5eeacb9e888348adbe97be0c26a500f2f03ec6f | [
"Apache-2.0"
] | null | null | null | dmonpoint/__init__.py | dice-project/DICE-Anomaly-Detection-Tool | a5eeacb9e888348adbe97be0c26a500f2f03ec6f | [
"Apache-2.0"
] | null | null | null | from adppoint import * | 22 | 22 | 0.818182 | 3 | 22 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
43af7abdc21c53798382d8ee2c48a950fadb6a80 | 18 | py | Python | tests/broke_import.py | BachelorForever/FuckitPy | 1a7295b318816e3cae68f46956710dbcdf5700fe | [
"WTFPL"
] | null | null | null | tests/broke_import.py | BachelorForever/FuckitPy | 1a7295b318816e3cae68f46956710dbcdf5700fe | [
"WTFPL"
] | null | null | null | tests/broke_import.py | BachelorForever/FuckitPy | 1a7295b318816e3cae68f46956710dbcdf5700fe | [
"WTFPL"
] | null | null | null |
p=np?
fuck3='123' | 6 | 11 | 0.611111 | 4 | 18 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.111111 | 18 | 3 | 11 | 6 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
43b7e04cc18f84ea3ce0ac58b5afc9f05e79458b | 3,865 | py | Python | tests/test_codegen_ppac.py | hgyhungry/heterocl | 4ee0a9345404d808ce939f9c2cb5143392457042 | [
"Apache-2.0"
] | null | null | null | tests/test_codegen_ppac.py | hgyhungry/heterocl | 4ee0a9345404d808ce939f9c2cb5143392457042 | [
"Apache-2.0"
] | null | null | null | tests/test_codegen_ppac.py | hgyhungry/heterocl | 4ee0a9345404d808ce939f9c2cb5143392457042 | [
"Apache-2.0"
] | null | null | null | import heterocl as hcl
import hlib
def test_func_print():
def test_hmm_sim():
hcl.init()
x = hcl.placeholder((1,), 'x', dtype=hcl.UInt(64))
y = hcl.placeholder((64,), 'y', dtype=hcl.UInt(64))
def kernel(X, Y):
return hlib.ppac.hmm_sim(X, Y, name='Z')
... | 39.040404 | 79 | 0.550323 | 572 | 3,865 | 3.498252 | 0.127622 | 0.097951 | 0.05997 | 0.062969 | 0.917541 | 0.872064 | 0.831584 | 0.793603 | 0.74063 | 0.711144 | 0 | 0.027283 | 0.288745 | 3,865 | 99 | 80 | 39.040404 | 0.700618 | 0 | 0 | 0.6 | 0 | 0 | 0.078025 | 0.01672 | 0 | 0 | 0 | 0 | 0.144444 | 1 | 0.177778 | false | 0 | 0.022222 | 0.077778 | 0.277778 | 0.011111 | 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 |
78df51de062a404596927ae48aa500e626145597 | 102 | py | Python | unpoly/__init__.py | thinkwelltwd/unpoly_django | 2da514e8fbdf254e7dadbe0f73bee62c51aa579b | [
"MIT"
] | 4 | 2021-07-03T06:10:36.000Z | 2022-03-26T02:08:51.000Z | unpoly/__init__.py | thinkwelltwd/unpoly_django | 2da514e8fbdf254e7dadbe0f73bee62c51aa579b | [
"MIT"
] | null | null | null | unpoly/__init__.py | thinkwelltwd/unpoly_django | 2da514e8fbdf254e7dadbe0f73bee62c51aa579b | [
"MIT"
] | null | null | null | __version_info__ = __version__ = version = VERSION = '0.1.0'
def get_version():
return version
| 14.571429 | 60 | 0.696078 | 13 | 102 | 4.692308 | 0.538462 | 0.459016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.196078 | 102 | 6 | 61 | 17 | 0.707317 | 0 | 0 | 0 | 0 | 0 | 0.049505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 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 |
78e4559279858cb86ce9e8dc5bdb7a4cc18a2f39 | 37 | py | Python | __init__.py | cgons/dbinspector | 358f5bd091ab29f462654f713adf9f54a180365d | [
"MIT"
] | null | null | null | __init__.py | cgons/dbinspector | 358f5bd091ab29f462654f713adf9f54a180365d | [
"MIT"
] | null | null | null | __init__.py | cgons/dbinspector | 358f5bd091ab29f462654f713adf9f54a180365d | [
"MIT"
] | null | null | null | from .dbinspector import DBInspector
| 18.5 | 36 | 0.864865 | 4 | 37 | 8 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 37 | 1 | 37 | 37 | 0.969697 | 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 |
60214d10d1ecac140607347aa775512421903b74 | 201 | py | Python | etiqette/admin.py | peterken674/etiqette | 12437615ae1fcdf2a5e01dd88111880ca8e76776 | [
"MIT"
] | null | null | null | etiqette/admin.py | peterken674/etiqette | 12437615ae1fcdf2a5e01dd88111880ca8e76776 | [
"MIT"
] | null | null | null | etiqette/admin.py | peterken674/etiqette | 12437615ae1fcdf2a5e01dd88111880ca8e76776 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Profile, Ticket, Cinema, Session
admin.site.register(Profile)
admin.site.register(Ticket)
admin.site.register(Cinema)
admin.site.register(Session)
| 25.125 | 52 | 0.81592 | 28 | 201 | 5.857143 | 0.428571 | 0.219512 | 0.414634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079602 | 201 | 7 | 53 | 28.714286 | 0.886486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
6030435780d692090427e69c873772954ebdbf26 | 152 | py | Python | tests/spec/config.py | cfm-art/selenium-docker | 191e2591db2dfc9fa664ade84451f74d3a43db89 | [
"MIT"
] | null | null | null | tests/spec/config.py | cfm-art/selenium-docker | 191e2591db2dfc9fa664ade84451f74d3a43db89 | [
"MIT"
] | null | null | null | tests/spec/config.py | cfm-art/selenium-docker | 191e2591db2dfc9fa664ade84451f74d3a43db89 | [
"MIT"
] | null | null | null | # coding: utf-8
class Config(object):
def __init__(self):
pass
def initialize(self):
pass
def exit(self):
pass
| 10.857143 | 25 | 0.539474 | 18 | 152 | 4.333333 | 0.666667 | 0.307692 | 0.282051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.361842 | 152 | 13 | 26 | 11.692308 | 0.793814 | 0.085526 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.428571 | 0 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
60b7ca27a0cf54cf90842fdf815a43d85b60cd5e | 3,497 | py | Python | tests/unordered/substitutor/test_unordered_substitution.py | nikitanovosibirsk/district42-exp-types | e36e43da62f32d58d4b14c65afa16856dc8849e1 | [
"Apache-2.0"
] | null | null | null | tests/unordered/substitutor/test_unordered_substitution.py | nikitanovosibirsk/district42-exp-types | e36e43da62f32d58d4b14c65afa16856dc8849e1 | [
"Apache-2.0"
] | 2 | 2021-08-01T05:02:21.000Z | 2021-08-01T10:06:28.000Z | tests/unordered/substitutor/test_unordered_substitution.py | nikitanovosibirsk/district42-exp-types | e36e43da62f32d58d4b14c65afa16856dc8849e1 | [
"Apache-2.0"
] | null | null | null | from typing import Any, List
from unittest.mock import sentinel
import pytest
from baby_steps import given, then, when
from district42 import schema
from pytest import raises
from revolt import substitute
from revolt.errors import SubstitutionError
from district42_exp_types.unordered import unordered_schema
@pytest... | 22.707792 | 94 | 0.645124 | 446 | 3,497 | 4.919283 | 0.11435 | 0.109389 | 0.072926 | 0.095716 | 0.861896 | 0.838651 | 0.793528 | 0.741568 | 0.684594 | 0.640839 | 0 | 0.019564 | 0.23992 | 3,497 | 153 | 95 | 22.856209 | 0.805869 | 0 | 0 | 0.738739 | 0 | 0 | 0.008579 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 1 | 0.09009 | false | 0 | 0.081081 | 0 | 0.171171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
719f86c8822ad5b6835564ee14cf88041a73db3f | 113 | py | Python | ksig/__init__.py | tgcsaba/ksig | bef68abeddb268d4166b4db0953f8dce9b8c36d1 | [
"Apache-2.0"
] | 8 | 2021-05-22T14:38:13.000Z | 2021-07-14T12:44:39.000Z | ksig/__init__.py | tgcsaba/ksig | bef68abeddb268d4166b4db0953f8dce9b8c36d1 | [
"Apache-2.0"
] | null | null | null | ksig/__init__.py | tgcsaba/ksig | bef68abeddb268d4166b4db0953f8dce9b8c36d1 | [
"Apache-2.0"
] | 2 | 2021-06-03T13:31:41.000Z | 2021-06-30T10:03:32.000Z | from . import algorithms
from . import static
from . import kernels
from . import projections
from . import utils | 22.6 | 25 | 0.787611 | 15 | 113 | 5.933333 | 0.466667 | 0.561798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168142 | 113 | 5 | 26 | 22.6 | 0.946809 | 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 |
e0b47f8a0b95c87f03c91eb667040767bd93a10a | 256 | py | Python | rl_utils/__init__.py | StuartCHAN/KARL | 2a4bb39d2db7646f57e66bda7c6694ba33022f76 | [
"MIT"
] | 1 | 2019-10-13T04:55:14.000Z | 2019-10-13T04:55:14.000Z | rl_utils/__init__.py | StuartCHAN/bert_rl_qa | 2a4bb39d2db7646f57e66bda7c6694ba33022f76 | [
"MIT"
] | 6 | 2021-04-30T20:56:34.000Z | 2022-03-12T00:02:12.000Z | rl_utils/__init__.py | StuartCHAN/bert_rl_qa | 2a4bb39d2db7646f57e66bda7c6694ba33022f76 | [
"MIT"
] | 1 | 2021-05-15T02:59:38.000Z | 2021-05-15T02:59:38.000Z | import rl_utils
import rl_utils.kgutils as kgutils
import rl_utils.queries as queries
import rl_utils.ans_reward as ans_reward
import rl_utils.sem_reward as sem_reward
import rl_utils.reward as reward
import rl_utils.generator_utils as generator_utils
| 32 | 51 | 0.859375 | 45 | 256 | 4.6 | 0.222222 | 0.270531 | 0.439614 | 0.275362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117188 | 256 | 7 | 52 | 36.571429 | 0.915929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e0db3b43a1dd04f7efacd6d5034667b6b9e89203 | 505,218 | py | Python | lib/googlecloudsdk/third_party/apis/aiplatform/v1beta1/aiplatform_v1beta1_client.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 2 | 2019-11-10T09:17:07.000Z | 2019-12-18T13:44:08.000Z | lib/googlecloudsdk/third_party/apis/aiplatform/v1beta1/aiplatform_v1beta1_client.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/third_party/apis/aiplatform/v1beta1/aiplatform_v1beta1_client.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 1 | 2020-07-25T01:40:19.000Z | 2020-07-25T01:40:19.000Z | """Generated client library for aiplatform version v1beta1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from __future__ import absolute_import
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.aiplatform.v1beta1 import aiplatform_v1beta1_messages as messages
clas... | 51.202797 | 985 | 0.733588 | 46,793 | 505,218 | 7.745176 | 0.027013 | 0.044733 | 0.035335 | 0.021387 | 0.778014 | 0.763407 | 0.745966 | 0.730048 | 0.707077 | 0.681629 | 0 | 0.005436 | 0.177474 | 505,218 | 9,866 | 986 | 51.207987 | 0.866699 | 0.328409 | 0 | 0.661635 | 1 | 0.010369 | 0.347368 | 0.307555 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061604 | false | 0 | 0.002897 | 0 | 0.127935 | 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 |
e0f6fc1758b37447dcb538fa7b9b21599d107f6f | 18,564 | py | Python | epm.py | davetremblay/Encrypted-Password-Manager | 213d00570967645b7522cc8b74082352e8bea374 | [
"MIT"
] | null | null | null | epm.py | davetremblay/Encrypted-Password-Manager | 213d00570967645b7522cc8b74082352e8bea374 | [
"MIT"
] | null | null | null | epm.py | davetremblay/Encrypted-Password-Manager | 213d00570967645b7522cc8b74082352e8bea374 | [
"MIT"
] | 1 | 2019-07-26T12:27:17.000Z | 2019-07-26T12:27:17.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 24 11:56:29 2019
@author: DaveTremblay
"""
import ast
import os
import random
import sys
import pyAesCrypt
def random_password(length, strength):
uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
lowercase = uppercase.lower()
numerical = "012... | 35.631478 | 161 | 0.540993 | 2,063 | 18,564 | 4.722249 | 0.096946 | 0.071443 | 0.050606 | 0.040033 | 0.785773 | 0.761137 | 0.742045 | 0.711558 | 0.693492 | 0.66978 | 0 | 0.012113 | 0.341844 | 18,564 | 520 | 162 | 35.7 | 0.785235 | 0.005495 | 0 | 0.753653 | 0 | 0.008351 | 0.199046 | 0.017233 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02714 | false | 0.334029 | 0.010438 | 0 | 0.056367 | 0.118998 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
460463142e21618ebea24bba23bb103526947813 | 197 | py | Python | src/wai/bynning/util/__init__.py | waikato-datamining/bynning | 01b7368d4dc1094651d7cbe067576dfb3756a1d3 | [
"MIT"
] | null | null | null | src/wai/bynning/util/__init__.py | waikato-datamining/bynning | 01b7368d4dc1094651d7cbe067576dfb3756a1d3 | [
"MIT"
] | null | null | null | src/wai/bynning/util/__init__.py | waikato-datamining/bynning | 01b7368d4dc1094651d7cbe067576dfb3756a1d3 | [
"MIT"
] | null | null | null | """
Utility functions for binning.
"""
from ._conservatively_cache import conservatively_cache
from ._frequency_divide import frequency_divide
from ._integer_dot_product import integer_dot_product
| 28.142857 | 55 | 0.857868 | 24 | 197 | 6.583333 | 0.541667 | 0.240506 | 0.21519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091371 | 197 | 6 | 56 | 32.833333 | 0.882682 | 0.152284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
e800e39cb8d38337c26f72f2b90511955f104d34 | 130 | py | Python | smtbx/refinement/constraints/geometrical/all.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | smtbx/refinement/constraints/geometrical/all.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | smtbx/refinement/constraints/geometrical/all.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z | from __future__ import absolute_import, division, print_function
from smtbx.refinement.constraints.geometrical.hydrogens import *
| 43.333333 | 64 | 0.869231 | 15 | 130 | 7.133333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 130 | 2 | 65 | 65 | 0.891667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
e8213ab7dcb4bf3c584e4890ef6627bd294be6a4 | 2,276 | py | Python | src/onegov/election_day/screen_widgets/__init__.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/election_day/screen_widgets/__init__.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/election_day/screen_widgets/__init__.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | from onegov.election_day.screen_widgets.election import (
ElectionCandidatesByEntityTableWidget,
ElectionCandidatesChartWidget,
ElectionCandidatesTableWidget,
ElectionCompoundCandidatesTableWidget,
ElectionCompoundDistrictsTableWidget,
ElectionCompoundListsChartWidget,
ElectionCompoundListsT... | 28.810127 | 57 | 0.774165 | 93 | 2,276 | 18.83871 | 0.473118 | 0.017123 | 0.030822 | 0.035959 | 0.939498 | 0.939498 | 0.881279 | 0.881279 | 0.881279 | 0.46347 | 0 | 0.003133 | 0.158612 | 2,276 | 78 | 58 | 29.179487 | 0.911749 | 0 | 0 | 0 | 0 | 0 | 0.353691 | 0.310633 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039474 | 0 | 0.039474 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e831e82aa05bc2c2b2ab3114d3a0133b1f0fa9ef | 709 | py | Python | HelloWorld/summarychallenge.py | zahraaliaghazadeh/python | 2f2d0141a916c99e8724f803bd4e5c7246a7a02e | [
"MIT"
] | null | null | null | HelloWorld/summarychallenge.py | zahraaliaghazadeh/python | 2f2d0141a916c99e8724f803bd4e5c7246a7a02e | [
"MIT"
] | null | null | null | HelloWorld/summarychallenge.py | zahraaliaghazadeh/python | 2f2d0141a916c99e8724f803bd4e5c7246a7a02e | [
"MIT"
] | null | null | null | # print("Please choose your option from the list below:")
# print("1:\tLearn Python")
# print("2:\tLearn Java")
# print("3:\tGo swimming")
# print("4:\tHave dinner")
# print("5:\tGo to bed")
# print("0:\tExit")
choice = "-"
while choice != "0":
# while True:
# choice = input()
# if choice == "0":
# bre... | 25.321429 | 63 | 0.558533 | 94 | 709 | 4.212766 | 0.404255 | 0.055556 | 0.085859 | 0.106061 | 0.717172 | 0.717172 | 0.717172 | 0.717172 | 0.717172 | 0.717172 | 0 | 0.045541 | 0.2567 | 709 | 27 | 64 | 26.259259 | 0.705882 | 0.390691 | 0 | 0 | 0 | 0 | 0.348449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.615385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
e8381ae864c6696df51d62d705f5983be9bb12c7 | 31,752 | py | Python | pyNastran/op2/tables/oee_energy/oee_objects.py | jtran10/pyNastran | 4aed8e05b91576c2b50ee835f0497a9aad1d2cb0 | [
"BSD-3-Clause"
] | null | null | null | pyNastran/op2/tables/oee_energy/oee_objects.py | jtran10/pyNastran | 4aed8e05b91576c2b50ee835f0497a9aad1d2cb0 | [
"BSD-3-Clause"
] | null | null | null | pyNastran/op2/tables/oee_energy/oee_objects.py | jtran10/pyNastran | 4aed8e05b91576c2b50ee835f0497a9aad1d2cb0 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import (nested_scopes, generators, division, absolute_import,
print_function, unicode_literals)
from six import integer_types, binary_type
import numpy as np
from pyNastran.op2.result_objects.op2_objects import ScalarObject
from pyNastran.f06.f06_formatting import _eigenvalue_he... | 41.614679 | 139 | 0.489859 | 3,472 | 31,752 | 4.341878 | 0.09879 | 0.039403 | 0.01592 | 0.010614 | 0.817446 | 0.793035 | 0.770879 | 0.757148 | 0.75257 | 0.740232 | 0 | 0.042254 | 0.39925 | 31,752 | 762 | 140 | 41.669291 | 0.748047 | 0.247386 | 0 | 0.655629 | 0 | 0.006623 | 0.111902 | 0.007582 | 0 | 0 | 0 | 0.002625 | 0.050773 | 1 | 0.059603 | false | 0.002208 | 0.013245 | 0.013245 | 0.119205 | 0.02649 | 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 |
08fe48afff591605c88865d0e75ca61c751a3c01 | 22,892 | py | Python | eventstore/test_forms.py | praekeltfoundation/ndoh-hub | 91d834ff8fe43b930a73d8debdaa0e6af78c5efc | [
"BSD-3-Clause"
] | null | null | null | eventstore/test_forms.py | praekeltfoundation/ndoh-hub | 91d834ff8fe43b930a73d8debdaa0e6af78c5efc | [
"BSD-3-Clause"
] | 126 | 2016-07-12T19:39:44.000Z | 2022-03-24T13:39:38.000Z | eventstore/test_forms.py | praekeltfoundation/ndoh-hub | 91d834ff8fe43b930a73d8debdaa0e6af78c5efc | [
"BSD-3-Clause"
] | 3 | 2016-09-28T13:16:11.000Z | 2020-11-07T15:32:37.000Z | from unittest import mock
from django.core.files.uploadedfile import SimpleUploadedFile
from django.test import TestCase
from eventstore.forms import MomConnectImportForm
from eventstore.models import ImportRow, MomConnectImport
from registrations.models import ClinicCode
class MomConnectImportFormTests(TestCase):
... | 40.020979 | 88 | 0.601127 | 2,583 | 22,892 | 5.276423 | 0.068525 | 0.043657 | 0.052315 | 0.057451 | 0.840487 | 0.824345 | 0.80857 | 0.794776 | 0.792795 | 0.783476 | 0 | 0.054989 | 0.285034 | 22,892 | 571 | 89 | 40.091068 | 0.777723 | 0.03617 | 0 | 0.627615 | 0 | 0.025105 | 0.339175 | 0.068251 | 0 | 0 | 0 | 0 | 0.169456 | 1 | 0.043933 | false | 0.014644 | 0.200837 | 0 | 0.246862 | 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 |
1c2999438d249cae19d9039c2c4d679652a5ede4 | 175 | py | Python | Classes/Logic/LogicStringUtil.py | AkulaBs/BSDS-Server-V42 | 2cf195f87838d8ad96b1852b367d39fd7e06b276 | [
"Apache-2.0"
] | 19 | 2021-12-23T19:15:09.000Z | 2022-03-03T12:40:33.000Z | Classes/Logic/LogicStringUtil.py | KulerDev/BSDS-V42 | 80d78c9a6e7ac57121fca6a3a404e630f2792603 | [
"Apache-2.0"
] | 12 | 2021-12-23T19:16:31.000Z | 2022-03-04T08:58:18.000Z | Classes/Logic/LogicStringUtil.py | KulerDev/BSDS-V42 | 80d78c9a6e7ac57121fca6a3a404e630f2792603 | [
"Apache-2.0"
] | 13 | 2021-12-24T10:00:11.000Z | 2022-03-14T02:03:54.000Z | class LogicStringUtil:
@staticmethod
def getBytes(string):
return string.encode()
@staticmethod
def getByteLength(string):
return len(string)
| 19.444444 | 30 | 0.662857 | 16 | 175 | 7.25 | 0.625 | 0.258621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257143 | 175 | 8 | 31 | 21.875 | 0.892308 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.285714 | 0.714286 | 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 |
98dc0b3993f178cb455eeb32022a8e882921b882 | 40 | py | Python | python/GMatElastoPlasticQPot3d/__init__.py | tdegeus/ElastoPlasticQPot3d | c61987f0dd001d218e067231e1a71b775815a849 | [
"MIT"
] | null | null | null | python/GMatElastoPlasticQPot3d/__init__.py | tdegeus/ElastoPlasticQPot3d | c61987f0dd001d218e067231e1a71b775815a849 | [
"MIT"
] | 15 | 2018-11-13T08:44:45.000Z | 2021-08-30T07:09:55.000Z | python/GMatElastoPlasticQPot3d/__init__.py | tdegeus/ElastoPlasticQPot3d | c61987f0dd001d218e067231e1a71b775815a849 | [
"MIT"
] | null | null | null | from ._GMatElastoPlasticQPot3d import *
| 20 | 39 | 0.85 | 3 | 40 | 11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.1 | 40 | 1 | 40 | 40 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
98dd012e5899e747046c78cc38bc70ecc3397f07 | 340 | py | Python | modules/extensions/regexes.py | BatedUrGonnaDie/salty_bot | f8ad53fdd865762225de49164400db33fae8ba85 | [
"MIT"
] | 12 | 2015-01-16T16:48:30.000Z | 2020-08-11T20:11:51.000Z | modules/extensions/regexes.py | BatedUrGonnaDie/salty_bot | f8ad53fdd865762225de49164400db33fae8ba85 | [
"MIT"
] | 28 | 2015-01-28T10:54:51.000Z | 2018-04-10T19:06:34.000Z | modules/extensions/regexes.py | BatedUrGonnaDie/salty_bot | f8ad53fdd865762225de49164400db33fae8ba85 | [
"MIT"
] | 4 | 2015-07-13T08:41:32.000Z | 2019-01-12T16:19:01.000Z | #! /usr/bin/env python3.7
import re
OSU_URL = re.compile("(?:http[s]{0,1}://)?osu.ppy.sh/beatmapsets/(\d+)(?:#.+?)/(\d+)")
YOUTUBE_URL = re.compile("(?:youtube(?:-nocookie)?\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})")
POLL_NAME = re.compile('"(.+)"')
POLL_OPTIONS = re.c... | 37.777778 | 142 | 0.508824 | 51 | 340 | 3.294118 | 0.686275 | 0.214286 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024922 | 0.055882 | 340 | 8 | 143 | 42.5 | 0.498442 | 0.070588 | 0 | 0 | 0 | 0.4 | 0.606349 | 0.55873 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c7888e08c7b01f52fb35b2daa7614a07c117b682 | 14,650 | py | Python | controller/api/tests/test_build.py | yun-an/deis | de27c11475bb7ca24816f288aa115699a1c37e26 | [
"Apache-2.0"
] | 3,375 | 2015-01-01T04:03:45.000Z | 2022-02-08T14:53:45.000Z | controller/api/tests/test_build.py | yun-an/deis | de27c11475bb7ca24816f288aa115699a1c37e26 | [
"Apache-2.0"
] | 2,422 | 2015-01-01T02:40:01.000Z | 2021-11-30T07:50:32.000Z | controller/api/tests/test_build.py | yun-an/deis | de27c11475bb7ca24816f288aa115699a1c37e26 | [
"Apache-2.0"
] | 688 | 2015-01-01T00:36:48.000Z | 2022-01-22T00:32:07.000Z | """
Unit tests for the Deis api app.
Run the tests with "./manage.py test api"
"""
from __future__ import unicode_literals
import json
from django.contrib.auth.models import User
from django.test import TransactionTestCase
import mock
from rest_framework.authtoken.models import Token
from api.models import Build
f... | 49.661017 | 93 | 0.590034 | 1,651 | 14,650 | 5.13507 | 0.109631 | 0.090234 | 0.072187 | 0.112291 | 0.792286 | 0.775065 | 0.762326 | 0.759377 | 0.755957 | 0.729535 | 0 | 0.01505 | 0.265256 | 14,650 | 294 | 94 | 49.829932 | 0.772575 | 0.074812 | 0 | 0.710638 | 0 | 0 | 0.154277 | 0.038513 | 0 | 0 | 0 | 0 | 0.234043 | 1 | 0.034043 | false | 0 | 0.034043 | 0 | 0.076596 | 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 |
c7c423dcd660acbea04b34e366433c5faba93db0 | 75 | py | Python | malaya_speech/train/model/tacotron2_nvidia/__init__.py | ishine/malaya-speech | fd34afc7107af1656dff4b3201fa51dda54fde18 | [
"MIT"
] | 111 | 2020-08-31T04:58:54.000Z | 2022-03-29T15:44:18.000Z | malaya_speech/train/model/tacotron2_nvidia/__init__.py | ishine/malaya-speech | fd34afc7107af1656dff4b3201fa51dda54fde18 | [
"MIT"
] | 14 | 2020-12-16T07:27:22.000Z | 2022-03-15T17:39:01.000Z | malaya_speech/train/model/tacotron2_nvidia/__init__.py | ishine/malaya-speech | fd34afc7107af1656dff4b3201fa51dda54fde18 | [
"MIT"
] | 29 | 2021-02-09T08:57:15.000Z | 2022-03-12T14:09:19.000Z | from .model import Model
from ..tacotron2 import generate_guided_attention
| 25 | 49 | 0.853333 | 10 | 75 | 6.2 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.106667 | 75 | 2 | 50 | 37.5 | 0.910448 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
40458cbb6dc4c78db2ef9e56546de2106fbbb007 | 7,525 | py | Python | tfx/tools/cli/commands/pipeline.py | romeokienzler/tfx | 6449173532bc35b78dbfb93aa89a688a7278ef59 | [
"Apache-2.0"
] | null | null | null | tfx/tools/cli/commands/pipeline.py | romeokienzler/tfx | 6449173532bc35b78dbfb93aa89a688a7278ef59 | [
"Apache-2.0"
] | null | null | null | tfx/tools/cli/commands/pipeline.py | romeokienzler/tfx | 6449173532bc35b78dbfb93aa89a688a7278ef59 | [
"Apache-2.0"
] | 1 | 2020-06-05T08:31:32.000Z | 2020-06-05T08:31:32.000Z | # Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 34.677419 | 80 | 0.706047 | 1,008 | 7,525 | 5.112103 | 0.143849 | 0.04968 | 0.07452 | 0.094314 | 0.757035 | 0.739569 | 0.732583 | 0.720551 | 0.720551 | 0.720551 | 0 | 0.002715 | 0.167973 | 7,525 | 216 | 81 | 34.837963 | 0.820316 | 0.113621 | 0 | 0.773481 | 0 | 0 | 0.239813 | 0 | 0 | 0 | 0 | 0.00463 | 0 | 1 | 0.033149 | false | 0.038674 | 0.049724 | 0 | 0.082873 | 0.005525 | 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 |
409c669213b3e763fa02dd8102741ac5297f8fde | 27 | py | Python | evoke/Permit/__init__.py | howiemac/evoke5 | 430d6dfd719f8c88a4c3de2b735f8736187ff19b | [
"BSD-3-Clause"
] | null | null | null | evoke/Permit/__init__.py | howiemac/evoke5 | 430d6dfd719f8c88a4c3de2b735f8736187ff19b | [
"BSD-3-Clause"
] | null | null | null | evoke/Permit/__init__.py | howiemac/evoke5 | 430d6dfd719f8c88a4c3de2b735f8736187ff19b | [
"BSD-3-Clause"
] | null | null | null | from .Permit import Permit
| 13.5 | 26 | 0.814815 | 4 | 27 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
40e6b63828e2285e4bcffa07db0ef97aa285748e | 28 | py | Python | notochord/test/classifier/__init__.py | jroose/notochord | da9a6ff5d0fabbf0694d0bee1b81a240b66fa006 | [
"MIT"
] | null | null | null | notochord/test/classifier/__init__.py | jroose/notochord | da9a6ff5d0fabbf0694d0bee1b81a240b66fa006 | [
"MIT"
] | null | null | null | notochord/test/classifier/__init__.py | jroose/notochord | da9a6ff5d0fabbf0694d0bee1b81a240b66fa006 | [
"MIT"
] | null | null | null | from .RandomForest 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 |
40eb80a3e6df4bd2a7089ef97648a3e1aac1598a | 2,675 | py | Python | test-unit/PythonToJavascript/converters_test/ListSliceConverter_test.py | stoogoff/python-to-javascript | 4349b09b15ada544501e7091c7ff1574487e7598 | [
"MIT"
] | 1 | 2021-11-19T09:56:41.000Z | 2021-11-19T09:56:41.000Z | test-unit/PythonToJavascript/converters_test/ListSliceConverter_test.py | stoogoff/python-to-javascript | 4349b09b15ada544501e7091c7ff1574487e7598 | [
"MIT"
] | 2 | 2022-02-25T23:11:27.000Z | 2022-03-04T10:22:14.000Z | test-unit/PythonToJavascript/converters_test/ListSliceConverter_test.py | stoogoff/python-to-javascript | 4349b09b15ada544501e7091c7ff1574487e7598 | [
"MIT"
] | 4 | 2021-05-06T19:03:19.000Z | 2022-03-06T13:52:30.000Z | from utils import parseSource, nodesToString, nodesToLines, dumpNodes, dumpTree
from converters import ListSliceConverter
def test_ListSliceGather_01():
src = """
alist[ start : finish ]
"""
matches = ListSliceConverter().gather( parseSource( src ) )
match = matches[ 0 ]
assert match.start.... | 28.457447 | 79 | 0.60486 | 262 | 2,675 | 6.10687 | 0.156489 | 0.039375 | 0.071875 | 0.071875 | 0.785 | 0.76 | 0.76 | 0.76 | 0.76 | 0.76 | 0 | 0.0145 | 0.252336 | 2,675 | 93 | 80 | 28.763441 | 0.7855 | 0 | 0 | 0.795181 | 0 | 0 | 0.168224 | 0 | 0 | 0 | 0 | 0 | 0.204819 | 1 | 0.108434 | false | 0 | 0.024096 | 0 | 0.13253 | 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 |
dc011bc9eb61a80d2db7f985f3aaf8a17530826a | 103 | py | Python | neo_db/test_neo.py | liupuchun/KGQA-of-HongLouMeng | 2d2a1192f7d2850fb306dbb948177370140a652d | [
"MIT"
] | 1 | 2020-06-03T08:07:37.000Z | 2020-06-03T08:07:37.000Z | neo_db/test_neo.py | liupuchun/KGQA-of-HongLouMeng | 2d2a1192f7d2850fb306dbb948177370140a652d | [
"MIT"
] | null | null | null | neo_db/test_neo.py | liupuchun/KGQA-of-HongLouMeng | 2d2a1192f7d2850fb306dbb948177370140a652d | [
"MIT"
] | null | null | null | from query_graph import query_name,query_all
#name = input("name=")
#s = query_name(name)
query_all() | 17.166667 | 44 | 0.747573 | 17 | 103 | 4.235294 | 0.470588 | 0.25 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116505 | 103 | 6 | 45 | 17.166667 | 0.791209 | 0.398058 | 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 | 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 |
909295fdaddb1cccdadc31d2af5beaaa554d3b0f | 27 | py | Python | d_serialize/__init__.py | Martlark/d_serialize | c4e4dfa35344a91d423abcf76d08557fee757afd | [
"MIT"
] | null | null | null | d_serialize/__init__.py | Martlark/d_serialize | c4e4dfa35344a91d423abcf76d08557fee757afd | [
"MIT"
] | null | null | null | d_serialize/__init__.py | Martlark/d_serialize | c4e4dfa35344a91d423abcf76d08557fee757afd | [
"MIT"
] | null | null | null | from .d_serialize import *
| 13.5 | 26 | 0.777778 | 4 | 27 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 0.869565 | 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 |
90a567c11c1581ac550720ac88fde1a1d5335d35 | 202 | py | Python | imgapp/admin.py | rtice3/imgdb | 9ef7a105632e31011324bec028005a7435ae052f | [
"MIT"
] | null | null | null | imgapp/admin.py | rtice3/imgdb | 9ef7a105632e31011324bec028005a7435ae052f | [
"MIT"
] | null | null | null | imgapp/admin.py | rtice3/imgdb | 9ef7a105632e31011324bec028005a7435ae052f | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import UnprocessedImg
admin.site.register(UnprocessedImg)
from .models import ProcessedImg
admin.site.register(ProcessedImg) | 22.444444 | 35 | 0.831683 | 25 | 202 | 6.72 | 0.48 | 0.119048 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10396 | 202 | 9 | 36 | 22.444444 | 0.928177 | 0.128713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
2912e89608bf3ee49f3fa6fb32a2696858bbf7de | 6,951 | py | Python | matrix-python-project/cover_generator/typesetting/model/three.py | hokaso/hocassian-media-matrix | 2c2e5a4c72dfa43d2eed0f083f5b19238aea2765 | [
"MIT"
] | 141 | 2021-06-27T03:18:54.000Z | 2022-03-17T03:24:26.000Z | matrix-python-project/cover_generator/typesetting/model/three.py | hokaso/hocassian-media-matrix | 2c2e5a4c72dfa43d2eed0f083f5b19238aea2765 | [
"MIT"
] | 1 | 2021-08-06T17:35:01.000Z | 2021-08-06T17:35:01.000Z | matrix-python-project/cover_generator/typesetting/model/three.py | hokaso/hocassian-media-matrix | 2c2e5a4c72dfa43d2eed0f083f5b19238aea2765 | [
"MIT"
] | 24 | 2021-06-29T01:58:59.000Z | 2022-03-02T01:42:43.000Z | import sys, os, time, json, random
from PIL import Image, ImageDraw, ImageFont, ImageFilter
from cover_generator.typesetting.more import More
from cover_generator.typesetting.mark import Mark
from cover_generator.typesetting.build import Build
from utils.snow_id import SnowId
sys.path.append(os.getcwd())
class Three... | 36.015544 | 98 | 0.592145 | 952 | 6,951 | 4.138655 | 0.09979 | 0.054822 | 0.06269 | 0.063959 | 0.81269 | 0.801523 | 0.768782 | 0.753807 | 0.743147 | 0.743147 | 0 | 0.033403 | 0.237664 | 6,951 | 192 | 99 | 36.203125 | 0.710134 | 0.02719 | 0 | 0.504065 | 0 | 0 | 0.113222 | 0.010091 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081301 | false | 0 | 0.04878 | 0.03252 | 0.170732 | 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 |
295cf9e3843ea79bc5abd90a406e7a0075aa7d40 | 41 | py | Python | auth/signals/__init__.py | sanjeevkumar12/flask-app-apispecs | c3ab260e2dd533f647224337fcbab6e8e22dba5b | [
"MIT"
] | null | null | null | auth/signals/__init__.py | sanjeevkumar12/flask-app-apispecs | c3ab260e2dd533f647224337fcbab6e8e22dba5b | [
"MIT"
] | null | null | null | auth/signals/__init__.py | sanjeevkumar12/flask-app-apispecs | c3ab260e2dd533f647224337fcbab6e8e22dba5b | [
"MIT"
] | null | null | null | from .events import USER_REGISTER_SIGNAL
| 20.5 | 40 | 0.878049 | 6 | 41 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 41 | 1 | 41 | 41 | 0.918919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.