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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b90e1563532d8f5a9bd0112e0c1e612d450caec6 | 120 | py | Python | chickpea/__init__.py | ENPH-2113-Silicon-Photonics/legume | 45c64b78f09b7d8779f7a4e12f204f5778b08b0b | [
"MIT"
] | 2 | 2021-04-13T22:43:04.000Z | 2021-04-15T12:19:00.000Z | chickpea/__init__.py | ENPH-2113-Silicon-Photonics/legume | 45c64b78f09b7d8779f7a4e12f204f5778b08b0b | [
"MIT"
] | null | null | null | chickpea/__init__.py | ENPH-2113-Silicon-Photonics/legume | 45c64b78f09b7d8779f7a4e12f204f5778b08b0b | [
"MIT"
] | 1 | 2022-02-20T07:04:34.000Z | 2022-02-20T07:04:34.000Z | from .ctl import PhotonicCrystalCavity
from .ctl import NanoBeamCavity
from .ctl import PhotonicCrystalTopologyBuilder
| 24 | 47 | 0.866667 | 12 | 120 | 8.666667 | 0.5 | 0.201923 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108333 | 120 | 4 | 48 | 30 | 0.971963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
f8deab487cb0a79486a84144e652a41c00369e53 | 7,886 | py | Python | loadbalanceRL/lib/algorithm/Qlearning/agents/regression.py | fqzhou/LoadBalanceControl-RL | 689eec3b3b27e121aa45d2793e411f1863f6fc0b | [
"MIT"
] | 11 | 2018-10-29T06:50:43.000Z | 2022-03-28T14:26:09.000Z | loadbalanceRL/lib/algorithm/Qlearning/agents/regression.py | fqzhou/LoadBalanceControl-RL | 689eec3b3b27e121aa45d2793e411f1863f6fc0b | [
"MIT"
] | 1 | 2022-03-01T13:46:25.000Z | 2022-03-01T13:46:25.000Z | loadbalanceRL/lib/algorithm/Qlearning/agents/regression.py | fqzhou/LoadBalanceControl-RL | 689eec3b3b27e121aa45d2793e411f1863f6fc0b | [
"MIT"
] | 6 | 2019-02-05T20:01:53.000Z | 2020-09-04T12:30:00.000Z | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This module stores implementation of various regression models.
"""
import logging
import numpy as np
import tensorflow as tf
from loadbalanceRL.lib.algorithm.Qlearning.agents import agent_template
__author__ = 'Ari Saha (arisaha@icloud.com), Mingyang Liu(liux3941... | 32.452675 | 78 | 0.598909 | 958 | 7,886 | 4.807933 | 0.179541 | 0.058619 | 0.048632 | 0.027356 | 0.929223 | 0.929223 | 0.929223 | 0.929223 | 0.929223 | 0.929223 | 0 | 0.005708 | 0.28912 | 7,886 | 242 | 79 | 32.586777 | 0.815912 | 0.248034 | 0 | 0.903846 | 0 | 0 | 0.069069 | 0.00784 | 0 | 0 | 0 | 0 | 0.038462 | 1 | 0.153846 | false | 0 | 0.038462 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5d256101942915858612916efddc55c863dbaab1 | 12,262 | py | Python | tests/test_observable/test_pausablebuffered.py | AlexMost/RxPY | 05cb14c72806dc41e243789c05f498dede11cebd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tests/test_observable/test_pausablebuffered.py | AlexMost/RxPY | 05cb14c72806dc41e243789c05f498dede11cebd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tests/test_observable/test_pausablebuffered.py | AlexMost/RxPY | 05cb14c72806dc41e243789c05f498dede11cebd | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-11-04T11:13:49.000Z | 2021-11-04T11:13:49.000Z | import unittest
from rx import Observable
from rx.testing import TestScheduler, ReactiveTest, is_prime, MockDisposable
from rx.disposables import Disposable, SerialDisposable
from rx.subjects import Subject
on_next = ReactiveTest.on_next
on_completed = ReactiveTest.on_completed
on_error = ReactiveTest.on_error
subscr... | 27.617117 | 103 | 0.566955 | 1,311 | 12,262 | 5.067124 | 0.089245 | 0.121933 | 0.090321 | 0.027096 | 0.845702 | 0.841186 | 0.833659 | 0.823122 | 0.8168 | 0.803101 | 0 | 0.080659 | 0.336731 | 12,262 | 443 | 104 | 27.679458 | 0.736137 | 0 | 0 | 0.763848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029155 | 1 | 0.110787 | false | 0 | 0.014577 | 0.005831 | 0.134111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5d41df2846a991e51bcc6a6fb0422413c25dbf51 | 27,090 | py | Python | catkin_ws/install/lib/python2.7/dist-packages/sick_safetyscanners/msg/_ApplicationDataMsg.py | JMur2/MarquetteRMC2021 | 3f139b3278927e82c988306b4b75449f0f111027 | [
"Apache-2.0"
] | 1 | 2022-02-25T22:14:27.000Z | 2022-02-25T22:14:27.000Z | catkin_ws/install/lib/python2.7/dist-packages/sick_safetyscanners/msg/_ApplicationDataMsg.py | JMur2/MarquetteRMC2021 | 3f139b3278927e82c988306b4b75449f0f111027 | [
"Apache-2.0"
] | null | null | null | catkin_ws/install/lib/python2.7/dist-packages/sick_safetyscanners/msg/_ApplicationDataMsg.py | JMur2/MarquetteRMC2021 | 3f139b3278927e82c988306b4b75449f0f111027 | [
"Apache-2.0"
] | null | null | null | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from sick_safetyscanners/ApplicationDataMsg.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import sick_safetyscanners.msg
class ApplicationDataMsg(genpy.Me... | 53.117647 | 734 | 0.747988 | 3,621 | 27,090 | 5.220105 | 0.055786 | 0.068088 | 0.040631 | 0.068141 | 0.898529 | 0.872712 | 0.859644 | 0.83425 | 0.826844 | 0.809597 | 0 | 0.010052 | 0.148062 | 27,090 | 509 | 735 | 53.222004 | 0.808961 | 0.046585 | 0 | 0.730942 | 1 | 0 | 0.081918 | 0.054067 | 0 | 0 | 0.00039 | 0 | 0 | 1 | 0.020179 | false | 0 | 0.011211 | 0 | 0.060538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
5d69f1ae33ddaafe5e475c83fe16b7e8e2e750b9 | 1,805 | py | Python | aitlas/models/alexnet.py | biasvariancelabs/aitlas | e36913c44d5a8393566b7271607ba839f9be0df3 | [
"MIT"
] | 32 | 2020-12-04T19:48:19.000Z | 2022-03-16T18:18:05.000Z | aitlas/models/alexnet.py | biasvariancelabs/aitlas | e36913c44d5a8393566b7271607ba839f9be0df3 | [
"MIT"
] | 2 | 2021-04-11T17:09:14.000Z | 2021-05-14T13:22:41.000Z | aitlas/models/alexnet.py | biasvariancelabs/aitlas | e36913c44d5a8393566b7271607ba839f9be0df3 | [
"MIT"
] | 8 | 2021-04-06T22:06:27.000Z | 2022-01-30T06:01:39.000Z | import torch.nn as nn
import torchvision.models as models
from ..base import BaseMulticlassClassifier, BaseMultilabelClassifier
class AlexNet(BaseMulticlassClassifier):
def __init__(self, config):
super().__init__(config)
if self.config.pretrained:
self.model = models.alexnet(self.co... | 31.666667 | 84 | 0.629363 | 203 | 1,805 | 5.46798 | 0.236453 | 0.145946 | 0.171171 | 0.079279 | 0.827027 | 0.827027 | 0.827027 | 0.827027 | 0.827027 | 0.827027 | 0 | 0.01063 | 0.27036 | 1,805 | 56 | 85 | 32.232143 | 0.832194 | 0.084211 | 0 | 0.769231 | 0 | 0 | 0.00122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0.051282 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5377d2b13a0b95a52bd8837d251fe769cd9ece23 | 149,637 | py | Python | pyke/krb_compiler/compiler_bc.py | alimon/pyke3 | fc02c50c1c658dce0dc4b6ffa33cb819be03f6e2 | [
"MIT"
] | 5 | 2021-05-30T19:15:21.000Z | 2022-02-09T20:13:17.000Z | pyke/krb_compiler/compiler_bc.py | alimon/pyke3 | fc02c50c1c658dce0dc4b6ffa33cb819be03f6e2 | [
"MIT"
] | 1 | 2021-05-30T16:38:09.000Z | 2021-05-30T16:38:09.000Z | pyke/krb_compiler/compiler_bc.py | alimon/pyke3 | fc02c50c1c658dce0dc4b6ffa33cb819be03f6e2 | [
"MIT"
] | 2 | 2020-06-25T21:33:34.000Z | 2020-06-26T14:45:43.000Z | # compiler_bc.py
from pyke import contexts, pattern, bc_rule
pyke_version = '1.1.1'
compiler_version = 1
def file(rule, arg_patterns, arg_context):
engine = rule.rule_base.engine
patterns = rule.goal_arg_patterns()
if len(arg_patterns) == len(patterns):
context = contexts.bc_context(rule)
try:
if... | 46.92286 | 351 | 0.505837 | 15,032 | 149,637 | 4.75765 | 0.048896 | 0.157501 | 0.052771 | 0.040648 | 0.929891 | 0.913559 | 0.878868 | 0.848665 | 0.824727 | 0.806074 | 0 | 0.036543 | 0.379498 | 149,637 | 3,188 | 352 | 46.937578 | 0.7337 | 0.000094 | 0 | 0.791935 | 0 | 0 | 0.117731 | 0.010353 | 0 | 0 | 0 | 0 | 0.030323 | 1 | 0.013548 | false | 0 | 0.00129 | 0 | 0.014839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
53f6e9c9734461eb65967c07b5b9cf506e96cb70 | 18,591 | py | Python | lib/genpyblocking/snowflake/Snowflake.py | michaelmontano/snowflakepy | 5ffd0931df7ce2ba2e1d19d17d8d447f77e39060 | [
"BSD-3-Clause"
] | 2 | 2015-07-11T20:35:15.000Z | 2019-04-22T02:38:04.000Z | lib/genpyblocking/snowflake/Snowflake.py | michaelmontano/snowflakepy | 5ffd0931df7ce2ba2e1d19d17d8d447f77e39060 | [
"BSD-3-Clause"
] | null | null | null | lib/genpyblocking/snowflake/Snowflake.py | michaelmontano/snowflakepy | 5ffd0931df7ce2ba2e1d19d17d8d447f77e39060 | [
"BSD-3-Clause"
] | null | null | null | #
# Autogenerated by Thrift
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
from thrift.Thrift import *
from ttypes import *
from thrift.Thrift import TProcessor
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol
try:
from thrift.protocol import fastbinary
exce... | 31.833904 | 188 | 0.689581 | 2,224 | 18,591 | 5.432104 | 0.057104 | 0.03311 | 0.037083 | 0.064895 | 0.895538 | 0.858952 | 0.826173 | 0.798361 | 0.794636 | 0.782965 | 0 | 0.003813 | 0.195901 | 18,591 | 583 | 189 | 31.888508 | 0.804335 | 0.011887 | 0 | 0.802128 | 1 | 0 | 0.033486 | 0.002513 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142553 | false | 0.008511 | 0.012766 | 0.034043 | 0.302128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
07005da9c63f2e446abbd0de2bbc9a8673abc1c9 | 42,239 | py | Python | sdk/python/pulumi_aws/appstream/image_builder.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/appstream/image_builder.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/appstream/image_builder.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 47.835787 | 260 | 0.664528 | 5,018 | 42,239 | 5.377441 | 0.050219 | 0.093352 | 0.074192 | 0.066039 | 0.919026 | 0.907797 | 0.895975 | 0.890417 | 0.883079 | 0.859472 | 0 | 0.001972 | 0.231563 | 42,239 | 882 | 261 | 47.890023 | 0.82938 | 0.336182 | 0 | 0.80396 | 1 | 0 | 0.126509 | 0.058685 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166337 | false | 0.00198 | 0.013861 | 0 | 0.281188 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
075fcbc2f8128ddad85d7cbc134e8f326ab70b05 | 3,842 | py | Python | tests/unittests/test_tokenizer.py | mj-kh/speechbrain | 9351f61cc057ddf3f8a0b7074a9c3c857dec84ed | [
"Apache-2.0"
] | 3,913 | 2021-03-14T13:54:52.000Z | 2022-03-30T05:09:55.000Z | tests/unittests/test_tokenizer.py | mj-kh/speechbrain | 9351f61cc057ddf3f8a0b7074a9c3c857dec84ed | [
"Apache-2.0"
] | 667 | 2021-03-14T20:11:17.000Z | 2022-03-31T04:07:17.000Z | tests/unittests/test_tokenizer.py | mj-kh/speechbrain | 9351f61cc057ddf3f8a0b7074a9c3c857dec84ed | [
"Apache-2.0"
] | 785 | 2021-03-14T13:20:57.000Z | 2022-03-31T03:26:03.000Z | import os
import torch
def test_tokenizer():
from speechbrain.tokenizers.SentencePiece import SentencePiece
gt = [
["HELLO", "MORNING", "MORNING", "HELLO"],
["HELLO", "MORNING", "HELLO"],
]
# Word-level input test
dict_int2lab = {1: "HELLO", 2: "MORNING"}
spm = SentencePiece... | 26.496552 | 72 | 0.391983 | 370 | 3,842 | 3.886486 | 0.237838 | 0.111266 | 0.090403 | 0.013908 | 0.844228 | 0.844228 | 0.7879 | 0.782337 | 0.782337 | 0.782337 | 0 | 0.063377 | 0.498959 | 3,842 | 144 | 73 | 26.680556 | 0.683636 | 0.062728 | 0 | 0.709924 | 0 | 0 | 0.090707 | 0.024485 | 0 | 0 | 0 | 0 | 0.030534 | 1 | 0.007634 | false | 0 | 0.022901 | 0 | 0.030534 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4ae888ee135fab0e05dd441d010f2b15c93d4f0a | 1,349 | py | Python | tests/lib/test_fixp.py | bogdanvuk/pygears | a0b21d445e1d5c89ad66751447b8253536b835ee | [
"MIT"
] | 120 | 2018-04-23T08:29:04.000Z | 2022-03-30T14:41:52.000Z | tests/lib/test_fixp.py | FZP1607152286/pygears | a0b21d445e1d5c89ad66751447b8253536b835ee | [
"MIT"
] | 12 | 2019-07-09T17:12:58.000Z | 2022-03-18T09:05:10.000Z | tests/lib/test_fixp.py | FZP1607152286/pygears | a0b21d445e1d5c89ad66751447b8253536b835ee | [
"MIT"
] | 12 | 2019-05-10T19:42:08.000Z | 2022-03-28T18:26:44.000Z | from pygears import gear, Intf
from pygears.typing import Fixp, Int
from pygears.sim import cosim
from pygears.sim import call
def test_le():
@gear
def test(a: Fixp, b: Int):
return a <= b
test(Intf(Fixp[1, 16]), Intf(Int[16]))
assert call(test, Fixp[1, 16](0), Int[16](0))[0] == 1
assert... | 25.45283 | 61 | 0.539659 | 257 | 1,349 | 2.817121 | 0.097276 | 0.099448 | 0.154696 | 0.298343 | 0.825967 | 0.825967 | 0.825967 | 0.825967 | 0.825967 | 0.825967 | 0 | 0.138063 | 0.226835 | 1,349 | 52 | 62 | 25.942308 | 0.556088 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 9 |
4af8de6e470b9bbfb723a5d86b9140014850a5bc | 1,145 | py | Python | Leetcode/Python/_1122.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | 1 | 2021-11-28T15:03:32.000Z | 2021-11-28T15:03:32.000Z | Leetcode/Python/_1122.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | null | null | null | Leetcode/Python/_1122.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | null | null | null | class Solution:
def relativeSortArray(self, arr1: List[int], arr2: List[int]) -> List[int]:
hashMap = collections.Counter(arr1)
array = []
for num in arr2:
array += [num] * hashMap.pop(num)
return array + sorted(hashMap.elements())
class Solution:
de... | 30.131579 | 79 | 0.499563 | 123 | 1,145 | 4.650407 | 0.203252 | 0.11014 | 0.083916 | 0.173077 | 0.847902 | 0.847902 | 0.847902 | 0.847902 | 0.847902 | 0.847902 | 0 | 0.019746 | 0.380786 | 1,145 | 37 | 80 | 30.945946 | 0.787024 | 0 | 0 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
ab5150f51734a90985f4d011aeb89f7d575dd887 | 310,230 | py | Python | venv/Lib/site-packages/wcwidth/table_zero.py | gilbertekalea/booking.com_crawler | 71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae | [
"MIT"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | venv/Lib/site-packages/wcwidth/table_zero.py | gilbertekalea/booking.com_crawler | 71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae | [
"MIT"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | venv/Lib/site-packages/wcwidth/table_zero.py | gilbertekalea/booking.com_crawler | 71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae | [
"MIT"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | """Zero_Width table, created by bin/update-tables.py."""
# Generated: 2020-06-23T16:03:21.187024
ZERO_WIDTH = {
'4.1.0': (
# Source: DerivedGeneralCategory-4.1.0.txt
# Date: 2005-02-26, 02:35:50 GMT [MD]
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
... | 79.322424 | 82 | 0.642636 | 35,464 | 310,230 | 5.62156 | 0.031356 | 0.105862 | 0.014195 | 0.007424 | 0.992968 | 0.992235 | 0.992235 | 0.991829 | 0.991648 | 0.991648 | 0 | 0.154255 | 0.256455 | 310,230 | 3,910 | 83 | 79.342711 | 0.710023 | 0.602572 | 0 | 0.989378 | 1 | 0 | 0.000712 | 0 | 0 | 0 | 0.448557 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
db527b174c47d34a25b5a1249587ee1d764fbd0f | 159 | py | Python | sampleTest.py | yajiviki/python-espncricinfo | 530091790caf86f9c9cdf31ecaf8bcfa4f212b68 | [
"MIT"
] | null | null | null | sampleTest.py | yajiviki/python-espncricinfo | 530091790caf86f9c9cdf31ecaf8bcfa4f212b68 | [
"MIT"
] | null | null | null | sampleTest.py | yajiviki/python-espncricinfo | 530091790caf86f9c9cdf31ecaf8bcfa4f212b68 | [
"MIT"
] | null | null | null | from espncricinfo.summary import Summary
from espncricinfo.match import Match
from espncricinfo.match import Match
m = Match('1226866')
print(m.description)
| 19.875 | 40 | 0.81761 | 21 | 159 | 6.190476 | 0.428571 | 0.369231 | 0.323077 | 0.415385 | 0.492308 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049645 | 0.113208 | 159 | 7 | 41 | 22.714286 | 0.87234 | 0 | 0 | 0.4 | 0 | 0 | 0.044025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0.2 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
db5d5bdd3d46b9f9d4e89bce01af64b99a8fa98e | 286 | py | Python | src/models/query_response.py | ahmed-gohary/CarRentalSystem | 285cbbe9052903e60f8a38676af256c8a6b54fb8 | [
"Xnet",
"X11"
] | null | null | null | src/models/query_response.py | ahmed-gohary/CarRentalSystem | 285cbbe9052903e60f8a38676af256c8a6b54fb8 | [
"Xnet",
"X11"
] | null | null | null | src/models/query_response.py | ahmed-gohary/CarRentalSystem | 285cbbe9052903e60f8a38676af256c8a6b54fb8 | [
"Xnet",
"X11"
] | null | null | null |
class InsertResponse:
def __init__(self, entry_id, error_msg: str):
self.entry_id = entry_id
self.error_msg = error_msg
class UpdateResponse:
def __init__(self, entry_id, error_msg: str):
self.entry_id = entry_id
self.error_msg = error_msg
| 19.066667 | 49 | 0.671329 | 40 | 286 | 4.3 | 0.275 | 0.244186 | 0.255814 | 0.186047 | 0.77907 | 0.77907 | 0.77907 | 0.77907 | 0.77907 | 0.77907 | 0 | 0 | 0.251748 | 286 | 14 | 50 | 20.428571 | 0.803738 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
db930d4ebf786bf43c14bf2c8d1e2a9940afea65 | 4,449 | py | Python | tests/mpd/protocol/test_audio_output.py | hugovk/mopidy | 3c479d1e4506b532dcd246920d5da8b7a8a15290 | [
"Apache-2.0"
] | null | null | null | tests/mpd/protocol/test_audio_output.py | hugovk/mopidy | 3c479d1e4506b532dcd246920d5da8b7a8a15290 | [
"Apache-2.0"
] | null | null | null | tests/mpd/protocol/test_audio_output.py | hugovk/mopidy | 3c479d1e4506b532dcd246920d5da8b7a8a15290 | [
"Apache-2.0"
] | null | null | null | from tests.mpd import protocol
class AudioOutputHandlerTest(protocol.BaseTestCase):
def test_enableoutput(self):
self.core.mixer.set_mute(False)
self.send_request('enableoutput "0"')
self.assertInResponse("OK")
assert self.core.mixer.get_mute().get() is True
def test_enableo... | 30.682759 | 80 | 0.662396 | 472 | 4,449 | 6.103814 | 0.108051 | 0.298507 | 0.109337 | 0.068726 | 0.859077 | 0.859077 | 0.777161 | 0.745227 | 0.745227 | 0.745227 | 0 | 0.012931 | 0.217802 | 4,449 | 144 | 81 | 30.895833 | 0.814943 | 0 | 0 | 0.808081 | 0 | 0 | 0.204091 | 0 | 0 | 0 | 0 | 0 | 0.494949 | 1 | 0.131313 | false | 0 | 0.010101 | 0 | 0.171717 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
db9e77b2addaa76f4f40083d143864f2a0a8c980 | 32,217 | py | Python | tests/unit/gapic/v1/test_subscriber_client_v1.py | asrikumar2002/Google-API | 4a7211b3b10f47e3c6b046686d81261002e9ec36 | [
"Apache-2.0"
] | null | null | null | tests/unit/gapic/v1/test_subscriber_client_v1.py | asrikumar2002/Google-API | 4a7211b3b10f47e3c6b046686d81261002e9ec36 | [
"Apache-2.0"
] | null | null | null | tests/unit/gapic/v1/test_subscriber_client_v1.py | asrikumar2002/Google-API | 4a7211b3b10f47e3c6b046686d81261002e9ec36 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2020 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 38.171801 | 88 | 0.670547 | 3,241 | 32,217 | 6.409442 | 0.068497 | 0.067588 | 0.024262 | 0.03466 | 0.867183 | 0.828142 | 0.797718 | 0.786405 | 0.779185 | 0.752371 | 0 | 0.013899 | 0.24515 | 32,217 | 843 | 89 | 38.217082 | 0.840289 | 0.066021 | 0 | 0.710392 | 0 | 0 | 0.099927 | 0.057835 | 0 | 0 | 0 | 0 | 0.09029 | 1 | 0.069847 | false | 0.001704 | 0.015332 | 0.003407 | 0.097104 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
dbc5316f2c51b37d3166af2074795df5701d97d9 | 87 | py | Python | pypc/operations/io/__init__.py | xpenalosa/PyPc | fff3ae29b800d127d261492098aecbbf6719bd07 | [
"MIT"
] | null | null | null | pypc/operations/io/__init__.py | xpenalosa/PyPc | fff3ae29b800d127d261492098aecbbf6719bd07 | [
"MIT"
] | null | null | null | pypc/operations/io/__init__.py | xpenalosa/PyPc | fff3ae29b800d127d261492098aecbbf6719bd07 | [
"MIT"
] | null | null | null | from pypc.operations.io.input import InpOp
from pypc.operations.io.output import OutOp
| 29 | 43 | 0.83908 | 14 | 87 | 5.214286 | 0.642857 | 0.219178 | 0.493151 | 0.547945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091954 | 87 | 2 | 44 | 43.5 | 0.924051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
dbc9e3c415eb73585bf4b4e35fb58518bc87250d | 102,776 | py | Python | opac/tests/test_main_views.py | rafaelpezzuto/opac | 9b54202350e262a27cb9cb756a892185b288df24 | [
"BSD-2-Clause"
] | 12 | 2016-11-23T17:49:07.000Z | 2019-10-07T00:21:03.000Z | opac/tests/test_main_views.py | rafaelpezzuto/opac | 9b54202350e262a27cb9cb756a892185b288df24 | [
"BSD-2-Clause"
] | 1,589 | 2015-12-03T17:47:10.000Z | 2022-03-31T23:43:36.000Z | opac/tests/test_main_views.py | rafaelpezzuto/opac | 9b54202350e262a27cb9cb756a892185b288df24 | [
"BSD-2-Clause"
] | 21 | 2015-11-13T18:59:33.000Z | 2021-10-03T22:34:29.000Z | # coding: utf-8
import unittest
import pathlib
from unittest.mock import patch, Mock
from urllib.parse import urlparse, parse_qs
import flask
import warnings
from flask import url_for, g, current_app
from flask import render_template
from bs4 import BeautifulSoup
from flask_babelex import gettext as _
from .base impo... | 39.959565 | 150 | 0.528256 | 9,938 | 102,776 | 5.284061 | 0.064601 | 0.02148 | 0.017329 | 0.032792 | 0.887952 | 0.868223 | 0.844153 | 0.829852 | 0.801268 | 0.78274 | 0 | 0.030757 | 0.362234 | 102,776 | 2,571 | 151 | 39.975107 | 0.770394 | 0.133484 | 0 | 0.708509 | 0 | 0.005432 | 0.171141 | 0.037808 | 0 | 0 | 0 | 0.001167 | 0.162945 | 1 | 0.054315 | false | 0 | 0.008449 | 0 | 0.066989 | 0.002414 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
91d48fe9d67b08039a567e9b5048948d7dc6397c | 17,873 | py | Python | src/diamond/handler/test/testtsdb.py | harrisonfeng/Diamond | f2bece462577a7c557be8a9f90f6b9340c3db571 | [
"MIT"
] | 1 | 2020-08-20T09:37:23.000Z | 2020-08-20T09:37:23.000Z | src/diamond/handler/test/testtsdb.py | harrisonfeng/Diamond | f2bece462577a7c557be8a9f90f6b9340c3db571 | [
"MIT"
] | null | null | null | src/diamond/handler/test/testtsdb.py | harrisonfeng/Diamond | f2bece462577a7c557be8a9f90f6b9340c3db571 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# coding=utf-8
##########################################################################
from test import unittest
from mock import patch, Mock
from diamond.metric import Metric
import urllib2
import configobj
import StringIO
import gzip
import contextlib
from diamond.handler.tsdb import TSDBHandle... | 41.955399 | 80 | 0.564483 | 1,748 | 17,873 | 5.641304 | 0.089245 | 0.04462 | 0.010648 | 0.012778 | 0.874962 | 0.843626 | 0.836731 | 0.836731 | 0.832066 | 0.832066 | 0 | 0.05456 | 0.282157 | 17,873 | 425 | 81 | 42.054118 | 0.71403 | 0.015218 | 0 | 0.715569 | 0 | 0.002994 | 0.302684 | 0.061105 | 0 | 0 | 0 | 0 | 0.062874 | 1 | 0.065868 | false | 0.020958 | 0.026946 | 0 | 0.098802 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5309e001f2f910f46d5bde9d7a7ce221764bef37 | 110 | py | Python | qd3dt/models/backbones/__init__.py | mengmengliu1998/qd-3dt | 9fcd1c0b165793e259deb46a64fcbbdc33735f2f | [
"BSD-3-Clause"
] | 384 | 2021-03-19T11:12:31.000Z | 2022-03-31T01:59:16.000Z | qd3dt/models/backbones/__init__.py | mengmengliu1998/qd-3dt | 9fcd1c0b165793e259deb46a64fcbbdc33735f2f | [
"BSD-3-Clause"
] | 22 | 2021-04-06T14:28:12.000Z | 2022-03-22T18:02:00.000Z | qd3dt/models/backbones/__init__.py | mengmengliu1998/qd-3dt | 9fcd1c0b165793e259deb46a64fcbbdc33735f2f | [
"BSD-3-Clause"
] | 73 | 2021-03-20T06:23:26.000Z | 2022-03-16T08:00:21.000Z | from .resnet import ResNet, make_res_layer
from .dla import DLA
__all__ = ['ResNet', 'make_res_layer', 'DLA'] | 27.5 | 45 | 0.745455 | 17 | 110 | 4.352941 | 0.470588 | 0.27027 | 0.351351 | 0.486486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127273 | 110 | 4 | 45 | 27.5 | 0.770833 | 0 | 0 | 0 | 0 | 0 | 0.207207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
530f2941554f8fe127b1bdc2fd83c7480f3364d2 | 18,571 | py | Python | nexus_api_python_client/api/email_api.py | simonebruzzechesse/nexus-api-python-client | eaa1098dbd8778f6f3bda948268953b742f2ab64 | [
"MIT"
] | 1 | 2021-11-14T12:43:38.000Z | 2021-11-14T12:43:38.000Z | nexus_api_python_client/api/email_api.py | simonebruzzechesse/nexus-api-python-client | eaa1098dbd8778f6f3bda948268953b742f2ab64 | [
"MIT"
] | null | null | null | nexus_api_python_client/api/email_api.py | simonebruzzechesse/nexus-api-python-client | eaa1098dbd8778f6f3bda948268953b742f2ab64 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Nexus Repository Manager REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 3.20.1-01
Generated by: https://openapi-generator.tech
"""
from __future__ import absol... | 42.790323 | 126 | 0.599752 | 2,056 | 18,571 | 5.16537 | 0.090467 | 0.036158 | 0.052731 | 0.033898 | 0.922881 | 0.918362 | 0.912618 | 0.908569 | 0.908569 | 0.894068 | 0 | 0.012246 | 0.331646 | 18,571 | 433 | 127 | 42.889146 | 0.843377 | 0.474988 | 0 | 0.777778 | 1 | 0 | 0.145833 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.026455 | 0 | 0.121693 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
534b537bd5b376fed8afb038df18d92ddb67d149 | 1,678 | py | Python | core/migrations/0013_auto_20210313_0323.py | lcbiplove/nepfdb | 56e48bb0dcae34d409b7d75d210d2938e763a953 | [
"MIT"
] | null | null | null | core/migrations/0013_auto_20210313_0323.py | lcbiplove/nepfdb | 56e48bb0dcae34d409b7d75d210d2938e763a953 | [
"MIT"
] | null | null | null | core/migrations/0013_auto_20210313_0323.py | lcbiplove/nepfdb | 56e48bb0dcae34d409b7d75d210d2938e763a953 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-13 03:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0012_auto_20210312_1354'),
]
operations = [
migrations.AlterField(
model_name='award',
name='id',
... | 34.244898 | 108 | 0.593564 | 176 | 1,678 | 5.482955 | 0.255682 | 0.087047 | 0.181347 | 0.210363 | 0.77513 | 0.77513 | 0.77513 | 0.77513 | 0.77513 | 0.77513 | 0 | 0.025748 | 0.282479 | 1,678 | 48 | 109 | 34.958333 | 0.775748 | 0.026818 | 0 | 0.666667 | 1 | 0 | 0.05886 | 0.014102 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
7271b13791319bb90bb40d701668b95b6f937e34 | 6,417 | py | Python | deepmath/deephol/utilities/proof_analysis_test.py | LaudateCorpus1/deepmath | b5b721f54de1d5d6a02d78f5da5995237f9995f9 | [
"Apache-2.0"
] | 830 | 2016-11-07T21:46:27.000Z | 2022-03-23T08:01:03.000Z | deepmath/deephol/utilities/proof_analysis_test.py | LaudateCorpus1/deepmath | b5b721f54de1d5d6a02d78f5da5995237f9995f9 | [
"Apache-2.0"
] | 26 | 2016-11-07T22:06:31.000Z | 2022-02-16T00:18:29.000Z | deepmath/deephol/utilities/proof_analysis_test.py | LaudateCorpus1/deepmath | b5b721f54de1d5d6a02d78f5da5995237f9995f9 | [
"Apache-2.0"
] | 168 | 2016-11-07T21:48:55.000Z | 2022-03-19T02:47:14.000Z | """Tests for deepmath.deephol.proof_analysis."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from deepmath.deephol.utilities import proof_analysis
from deepmath.deephol.utilities import proof_test_util
class ProofAnalysisTest(t... | 44.255172 | 70 | 0.693315 | 994 | 6,417 | 4.087525 | 0.073441 | 0.145705 | 0.188777 | 0.169333 | 0.886537 | 0.861679 | 0.830667 | 0.8095 | 0.801624 | 0.798425 | 0 | 0.02635 | 0.154278 | 6,417 | 144 | 71 | 44.5625 | 0.722314 | 0.006545 | 0 | 0.598361 | 0 | 0 | 0.001256 | 0 | 0 | 0 | 0 | 0 | 0.204918 | 1 | 0.122951 | false | 0 | 0.04918 | 0 | 0.180328 | 0.008197 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
72b27a086871314b0a500c6c08b536d79648c912 | 4,336 | py | Python | Accounts/migrations/0002_auto_20210712_2009.py | Larry-Manuel/SMA-TEAM | 14c50bfce4327bb70812341b094c0001b90843f6 | [
"MIT"
] | null | null | null | Accounts/migrations/0002_auto_20210712_2009.py | Larry-Manuel/SMA-TEAM | 14c50bfce4327bb70812341b094c0001b90843f6 | [
"MIT"
] | null | null | null | Accounts/migrations/0002_auto_20210712_2009.py | Larry-Manuel/SMA-TEAM | 14c50bfce4327bb70812341b094c0001b90843f6 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-12 20:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Accounts', '0001_initial'),
]
operations = [
migrations.AlterField(
... | 37.37931 | 151 | 0.585332 | 438 | 4,336 | 5.673516 | 0.19863 | 0.160966 | 0.201207 | 0.2334 | 0.788732 | 0.76338 | 0.715091 | 0.715091 | 0.644668 | 0.62495 | 0 | 0.017886 | 0.290821 | 4,336 | 115 | 152 | 37.704348 | 0.790244 | 0.010378 | 0 | 0.669725 | 1 | 0 | 0.094194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055046 | 0.027523 | 0 | 0.055046 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
72d7d20650df98172186f8f2f011c97d8e35bcca | 18,328 | py | Python | tests/test_get_agents_decision_trees_bulk.py | craft-ai/craft-ai-client-python | 3d8b3d9a49c0c70964deaeb9645130dd54f9a0b3 | [
"BSD-3-Clause"
] | 14 | 2016-08-26T07:06:57.000Z | 2020-09-22T07:41:21.000Z | tests/test_get_agents_decision_trees_bulk.py | craft-ai/craft-ai-client-python | 3d8b3d9a49c0c70964deaeb9645130dd54f9a0b3 | [
"BSD-3-Clause"
] | 94 | 2016-08-02T14:07:59.000Z | 2021-10-06T11:50:52.000Z | tests/test_get_agents_decision_trees_bulk.py | craft-ai/craft-ai-client-python | 3d8b3d9a49c0c70964deaeb9645130dd54f9a0b3 | [
"BSD-3-Clause"
] | 8 | 2017-02-07T12:05:57.000Z | 2021-10-14T09:45:30.000Z | import unittest
import semver
from craft_ai import Client, errors as craft_err
from craft_ai.constants import DEFAULT_DECISION_TREE_VERSION
from . import settings
from .utils import generate_entity_id
from .data import valid_data, invalid_data
NB_DECISION_TREES_TO_GET = 3
AGENT_ID_1_BASE = "get_dt_bulk_1"
AGENT_ID_2... | 40.370044 | 100 | 0.659046 | 2,308 | 18,328 | 4.979203 | 0.080589 | 0.082579 | 0.036547 | 0.040202 | 0.871911 | 0.844588 | 0.809433 | 0.778803 | 0.770275 | 0.765141 | 0 | 0.005707 | 0.254256 | 18,328 | 453 | 101 | 40.459161 | 0.835089 | 0.226921 | 0 | 0.62069 | 1 | 0 | 0.050486 | 0.006576 | 0 | 0 | 0 | 0 | 0.131034 | 1 | 0.1 | false | 0 | 0.024138 | 0 | 0.141379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
72e279eca010fb91248ac9c4c52e786ed68f89c5 | 4,036 | py | Python | role_call_lib/delbertina.py | MagnaRisa/BeginnerIsland | 8cac024965c6b23690a5a0cd344d44f3876762a8 | [
"MIT"
] | null | null | null | role_call_lib/delbertina.py | MagnaRisa/BeginnerIsland | 8cac024965c6b23690a5a0cd344d44f3876762a8 | [
"MIT"
] | null | null | null | role_call_lib/delbertina.py | MagnaRisa/BeginnerIsland | 8cac024965c6b23690a5a0cd344d44f3876762a8 | [
"MIT"
] | 2 | 2021-01-24T03:55:31.000Z | 2021-01-24T12:18:43.000Z | def write_name_delbertina(input_turtle):
# d
input_turtle.right(90)
input_turtle.forward(50)
input_turtle.left(90)
input_turtle.pendown()
input_turtle.forward(30)
input_turtle.left(90)
input_turtle.forward(50)
input_turtle.left(180)
input_turtle.forward(30)
input_turtle.right... | 26.207792 | 40 | 0.69995 | 561 | 4,036 | 4.777184 | 0.048128 | 0.58694 | 0.436567 | 0.298507 | 0.984701 | 0.984701 | 0.975373 | 0.934701 | 0.926493 | 0.919776 | 0 | 0.07598 | 0.191278 | 4,036 | 153 | 41 | 26.379085 | 0.745098 | 0.004708 | 0 | 0.986014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006993 | false | 0 | 0 | 0 | 0.006993 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
f4239d30de046f46dd2d9ceed067a7768d897f03 | 202,537 | py | Python | nidaqmx/_task_modules/ai_channel_collection.py | zhindes/nidaqmx-python | b756fbd7f0c0f7deadb468d77ceacb03ed467885 | [
"MIT"
] | null | null | null | nidaqmx/_task_modules/ai_channel_collection.py | zhindes/nidaqmx-python | b756fbd7f0c0f7deadb468d77ceacb03ed467885 | [
"MIT"
] | null | null | null | nidaqmx/_task_modules/ai_channel_collection.py | zhindes/nidaqmx-python | b756fbd7f0c0f7deadb468d77ceacb03ed467885 | [
"MIT"
] | null | null | null | # Do not edit this file; it was automatically generated.
import ctypes
import numpy
from nidaqmx._lib import (
lib_importer, wrapped_ndpointer, ctypes_byte_str, c_bool32)
from nidaqmx.errors import check_for_error
from nidaqmx._task_modules.channels.ai_channel import AIChannel
from nidaqmx._task_modules.channel_c... | 52.757749 | 98 | 0.627698 | 23,195 | 202,537 | 5.280405 | 0.023108 | 0.021832 | 0.026062 | 0.030405 | 0.951877 | 0.948701 | 0.947264 | 0.944954 | 0.94088 | 0.936422 | 0 | 0.005766 | 0.318352 | 202,537 | 3,838 | 99 | 52.771496 | 0.881384 | 0.546947 | 0 | 0.825191 | 1 | 0 | 0.000463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041221 | false | 0 | 0.08626 | 0 | 0.168702 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
f47dc318630c0632cba152a7c84200513f1125b8 | 21,441 | py | Python | test/test_parse_custom_time.py | chosak/apachelogs | 7ee86af1c6c038bda68903b0da6537604900e331 | [
"MIT"
] | null | null | null | test/test_parse_custom_time.py | chosak/apachelogs | 7ee86af1c6c038bda68903b0da6537604900e331 | [
"MIT"
] | null | null | null | test/test_parse_custom_time.py | chosak/apachelogs | 7ee86af1c6c038bda68903b0da6537604900e331 | [
"MIT"
] | null | null | null | from datetime import date, datetime, time, timedelta, timezone
import locale
import pytest
from apachelogs import LogParser
w5 = timezone(timedelta(hours=-5))
w4 = timezone(timedelta(hours=-4))
@pytest.mark.parametrize('fmt,entry,fields', [
(
'%{%a %b %d}t %r',
'Sat Nov 25 GET / HTTP/1.1',
... | 26.93593 | 83 | 0.324005 | 2,131 | 21,441 | 3.175035 | 0.068043 | 0.133314 | 0.103015 | 0.039905 | 0.85841 | 0.830772 | 0.784215 | 0.757464 | 0.743275 | 0.704109 | 0 | 0.166817 | 0.481647 | 21,441 | 795 | 84 | 26.969811 | 0.441965 | 0 | 0 | 0.556441 | 0 | 0.001328 | 0.253999 | 0.014272 | 0 | 0 | 0 | 0 | 0.002656 | 1 | 0.002656 | false | 0 | 0.005312 | 0 | 0.007968 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
be49ffe4e083418100aca43067bf9b214f603e97 | 164 | py | Python | src/repro/optimizer/sgd.py | bouthilx/repro | 611734e4eddd6a76dd4c1e7114a28a634a2a75c1 | [
"BSD-3-Clause"
] | null | null | null | src/repro/optimizer/sgd.py | bouthilx/repro | 611734e4eddd6a76dd4c1e7114a28a634a2a75c1 | [
"BSD-3-Clause"
] | null | null | null | src/repro/optimizer/sgd.py | bouthilx/repro | 611734e4eddd6a76dd4c1e7114a28a634a2a75c1 | [
"BSD-3-Clause"
] | null | null | null | from torch.optim import SGD
def build(model, lr, momentum, weight_decay):
return SGD(model.parameters(), lr=lr, momentum=momentum, weight_decay=weight_decay)
| 27.333333 | 87 | 0.768293 | 24 | 164 | 5.125 | 0.583333 | 0.268293 | 0.308943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 164 | 5 | 88 | 32.8 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
be60457e2fba4d5f4068ff9d049d9bfa989b8ab4 | 5,824 | py | Python | testproject/testapp/tests/test_user_delete.py | ulgens/djoser | c62371e3f9a8bbad2eaf55ffd0efad6eb6c02f26 | [
"MIT"
] | null | null | null | testproject/testapp/tests/test_user_delete.py | ulgens/djoser | c62371e3f9a8bbad2eaf55ffd0efad6eb6c02f26 | [
"MIT"
] | null | null | null | testproject/testapp/tests/test_user_delete.py | ulgens/djoser | c62371e3f9a8bbad2eaf55ffd0efad6eb6c02f26 | [
"MIT"
] | null | null | null | import pytest
from django.conf import settings
from django.contrib.auth import get_user_model
from django.test import override_settings
from djet import assertions
from rest_framework import status
from rest_framework.reverse import reverse
from rest_framework.test import APITestCase
import djoser.views
from djoser.co... | 36.628931 | 87 | 0.645604 | 603 | 5,824 | 5.993367 | 0.144279 | 0.044272 | 0.049806 | 0.039845 | 0.86995 | 0.86995 | 0.86995 | 0.809629 | 0.809629 | 0.809629 | 0 | 0.002717 | 0.241758 | 5,824 | 158 | 88 | 36.860759 | 0.81567 | 0 | 0 | 0.824427 | 0 | 0 | 0.101648 | 0 | 0 | 0 | 0 | 0 | 0.175573 | 1 | 0.061069 | false | 0.091603 | 0.083969 | 0 | 0.167939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
fe24d801edfbf17e5cf00eb51347ae775e3c44bd | 68,387 | py | Python | dev/services/wms/thredds/wms_cfg.py | cbur24/dea-config | 735510227e7451366d89c0dc90dc834eb3e65b95 | [
"Apache-2.0"
] | null | null | null | dev/services/wms/thredds/wms_cfg.py | cbur24/dea-config | 735510227e7451366d89c0dc90dc834eb3e65b95 | [
"Apache-2.0"
] | null | null | null | dev/services/wms/thredds/wms_cfg.py | cbur24/dea-config | 735510227e7451366d89c0dc90dc834eb3e65b95 | [
"Apache-2.0"
] | null | null | null | # Static config for the wms metadata.
response_cfg = {
"Access-Control-Allow-Origin": "*", # CORS header
}
service_cfg = {
# Which web service(s) should be supported by this instance
"wcs": True,
"wms": True,
"wmts": True,
# Required config for WMS and/or WCS
# Service title - appears e.g... | 46.051852 | 370 | 0.32493 | 4,936 | 68,387 | 4.380267 | 0.112237 | 0.012488 | 0.032468 | 0.021646 | 0.903705 | 0.902456 | 0.896443 | 0.896443 | 0.892281 | 0.888719 | 0 | 0.060809 | 0.581587 | 68,387 | 1,484 | 371 | 46.082884 | 0.69466 | 0.085338 | 0 | 0.591219 | 0 | 0.011355 | 0.290345 | 0.007804 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fe2604afe1aa0bce8f8c9912532c655319cdfeed | 3,301 | py | Python | 17. deep_add/deep_add_solutions.py | jeury301/python-morsels | fdbe0b1c80120e2d1388808816538fea5dab8892 | [
"MIT"
] | 2 | 2018-08-21T10:29:57.000Z | 2019-04-17T07:05:17.000Z | 17. deep_add/deep_add_solutions.py | jeury301/python-morsels | fdbe0b1c80120e2d1388808816538fea5dab8892 | [
"MIT"
] | null | null | null | 17. deep_add/deep_add_solutions.py | jeury301/python-morsels | fdbe0b1c80120e2d1388808816538fea5dab8892 | [
"MIT"
] | null | null | null | def v0_deep_add(list_or_number):
"""Return sum of values in given list, iterating deeply."""
total = 0
if type(list_or_number) == list:
for x in list_or_number:
total += deep_add(x)
return total
else:
return list_or_number
def v1_deep_add(lists):
"""Return sum of... | 32.362745 | 68 | 0.677673 | 481 | 3,301 | 4.390852 | 0.112266 | 0.162879 | 0.234848 | 0.096591 | 0.861742 | 0.861742 | 0.795455 | 0.795455 | 0.765152 | 0.732955 | 0 | 0.008333 | 0.236595 | 3,301 | 101 | 69 | 32.683168 | 0.829762 | 0.205695 | 0 | 0.565789 | 0 | 0 | 0.003124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.026316 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fe4138a7b55ac09923e599ca658fe9660267463e | 10,686 | py | Python | tests/test_dual.py | The-Pyoneers/cs107-FinalProject | 76e9d7a0fd5418ece35458df3b379602e699388a | [
"MIT"
] | 1 | 2020-11-16T01:48:46.000Z | 2020-11-16T01:48:46.000Z | tests/test_dual.py | The-Pyoneers/cs107-FinalProject | 76e9d7a0fd5418ece35458df3b379602e699388a | [
"MIT"
] | 7 | 2020-11-16T02:48:00.000Z | 2020-12-12T03:25:41.000Z | tests/test_dual.py | The-Pyoneers/cs107-FinalProject | 76e9d7a0fd5418ece35458df3b379602e699388a | [
"MIT"
] | 2 | 2021-02-25T00:09:27.000Z | 2021-11-15T02:29:06.000Z | import pytest
from farad.dual import Dual
import numpy as np
def test_add():
"""Test of addition special method (__add__) of Dual class."""
# Test for addition with scalar Dual object and float value
x = Dual(2)
fx = x + 3.5
try:
assert fx.val == 5.5
assert fx.der == 1.0
except... | 26.715 | 94 | 0.576923 | 1,545 | 10,686 | 3.92233 | 0.06343 | 0.085809 | 0.116172 | 0.121452 | 0.836964 | 0.796205 | 0.762871 | 0.727888 | 0.727888 | 0.710726 | 0 | 0.032076 | 0.320232 | 10,686 | 399 | 95 | 26.781955 | 0.802175 | 0.319671 | 0 | 0.686007 | 0 | 0 | 0.019066 | 0 | 0 | 0 | 0 | 0 | 0.453925 | 1 | 0.071672 | false | 0 | 0.010239 | 0 | 0.081911 | 0.109215 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fe6d5fea2299ffad5f178e3eeb98604c63524b57 | 15,412 | py | Python | testcases/generated/vm_test.py | Tanc009/jdcloud-cli | 4e11de77c68501f44e7026c0ad1c24e5d043197e | [
"Apache-2.0"
] | null | null | null | testcases/generated/vm_test.py | Tanc009/jdcloud-cli | 4e11de77c68501f44e7026c0ad1c24e5d043197e | [
"Apache-2.0"
] | null | null | null | testcases/generated/vm_test.py | Tanc009/jdcloud-cli | 4e11de77c68501f44e7026c0ad1c24e5d043197e | [
"Apache-2.0"
] | null | null | null | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | 33.002141 | 194 | 0.590319 | 1,870 | 15,412 | 4.796791 | 0.084492 | 0.038239 | 0.071014 | 0.092865 | 0.869565 | 0.865998 | 0.863657 | 0.794314 | 0.702453 | 0.677703 | 0 | 0.000889 | 0.270114 | 15,412 | 466 | 195 | 33.072961 | 0.796515 | 0.041137 | 0 | 0.706052 | 0 | 0.037464 | 0.226491 | 0.048713 | 0 | 0 | 0 | 0 | 0.14121 | 1 | 0.14121 | false | 0.008646 | 0.020173 | 0 | 0.164265 | 0.14121 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fe8a0e2a9ddc0a0e9ede58870c874a446d086c1a | 143 | py | Python | fsetools/tests/test_libstd_ec_1991_1_2.py | fsepy/fsetools | 6b6c647912551680109a84d8640b9cfbe7970970 | [
"Apache-2.0"
] | 1 | 2020-02-25T21:47:56.000Z | 2020-02-25T21:47:56.000Z | fsetools/tests/test_libstd_ec_1991_1_2.py | fsepy/fsetools | 6b6c647912551680109a84d8640b9cfbe7970970 | [
"Apache-2.0"
] | 12 | 2020-02-24T10:10:57.000Z | 2020-09-18T11:18:08.000Z | fsetools/tests/test_libstd_ec_1991_1_2.py | fsepy/fsetools | 6b6c647912551680109a84d8640b9cfbe7970970 | [
"Apache-2.0"
] | null | null | null | from fsetools.libstd.ec_1991_1_2 import _test_appendix_a_parametric_fire as test_appendix_a_parametric_fire
test_appendix_a_parametric_fire()
| 35.75 | 107 | 0.916084 | 24 | 143 | 4.791667 | 0.583333 | 0.313043 | 0.33913 | 0.6 | 0.704348 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.055944 | 143 | 3 | 108 | 47.666667 | 0.807407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 | 7 |
fe9491846c8146dcfa480bb2e7bf9cb2cce89350 | 1,015 | py | Python | util/cfg_reader.py | shartoo/merlin-tf-slim | 4c7d48d5f634273dd51d2e29562d3ed1195d9151 | [
"Apache-2.0"
] | null | null | null | util/cfg_reader.py | shartoo/merlin-tf-slim | 4c7d48d5f634273dd51d2e29562d3ed1195d9151 | [
"Apache-2.0"
] | null | null | null | util/cfg_reader.py | shartoo/merlin-tf-slim | 4c7d48d5f634273dd51d2e29562d3ed1195d9151 | [
"Apache-2.0"
] | null | null | null | import configparser
'''
a configuration file reader
'''
cf = configparser.ConfigParser()
def get_section_string(section, name):
'''
read variable value from cfg file whose type is string
:param section: section in configuration file
:param name: the key of value you want to read
:r... | 27.432432 | 64 | 0.634483 | 129 | 1,015 | 4.945736 | 0.263566 | 0.103448 | 0.061129 | 0.10815 | 0.780564 | 0.705329 | 0.705329 | 0.705329 | 0.705329 | 0.705329 | 0 | 0 | 0.296552 | 1,015 | 36 | 65 | 28.194444 | 0.893557 | 0.578325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
fe992a28722880df3aa72c9e70c7117b3c4fb4a2 | 191 | py | Python | swagger_client/swagger_client/api/__init__.py | AleksandrVin/SpeedtestService | 9385513e656a4935de0b29212ee9d62037db6ccc | [
"BSD-3-Clause"
] | null | null | null | swagger_client/swagger_client/api/__init__.py | AleksandrVin/SpeedtestService | 9385513e656a4935de0b29212ee9d62037db6ccc | [
"BSD-3-Clause"
] | 18 | 2021-08-04T17:13:33.000Z | 2021-09-22T14:00:44.000Z | swagger_client/swagger_client/api/__init__.py | AleksandrVin/SpeedtestService | 9385513e656a4935de0b29212ee9d62037db6ccc | [
"BSD-3-Clause"
] | 3 | 2021-08-11T10:28:01.000Z | 2021-08-17T14:30:08.000Z | from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from swagger_client.api.client_api import ClientApi
from swagger_client.api.server_api import ServerApi
| 23.875 | 51 | 0.842932 | 28 | 191 | 5.428571 | 0.535714 | 0.177632 | 0.223684 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.120419 | 191 | 7 | 52 | 27.285714 | 0.89881 | 0.21466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
228afcfec0d117f466d20b7500e6487e3927dc13 | 124 | py | Python | src/Bond.py | jaweej/pms | c44f082ab926b0b8227235fcc4466738fd70d26b | [
"MIT"
] | null | null | null | src/Bond.py | jaweej/pms | c44f082ab926b0b8227235fcc4466738fd70d26b | [
"MIT"
] | 11 | 2018-02-13T13:11:45.000Z | 2022-03-01T23:11:21.000Z | src/Bond.py | jaweej/pms | c44f082ab926b0b8227235fcc4466738fd70d26b | [
"MIT"
] | null | null | null | from airflow import DAG
from airflow.operators.bash_operator import BashOperator
class Bond():
""" Bond """
pass
| 17.714286 | 56 | 0.709677 | 15 | 124 | 5.8 | 0.733333 | 0.252874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201613 | 124 | 6 | 57 | 20.666667 | 0.878788 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
22bb1af60aedaf083174c1031a60013b3cdd78cb | 17,575 | py | Python | test/test_md004.py | scop/pymarkdown | 562ba8f7857d99ba09e86e42de5a37ec6d9b2c30 | [
"MIT"
] | null | null | null | test/test_md004.py | scop/pymarkdown | 562ba8f7857d99ba09e86e42de5a37ec6d9b2c30 | [
"MIT"
] | null | null | null | test/test_md004.py | scop/pymarkdown | 562ba8f7857d99ba09e86e42de5a37ec6d9b2c30 | [
"MIT"
] | null | null | null | """
Module to provide tests related to the MD004 rule.
"""
from test.markdown_scanner import MarkdownScanner
import pytest
@pytest.mark.rules
def test_md004_bad_configuration_style():
"""
Test to make sure we get the expected behavior after scanning a good file from the
test/resources/rules/md004 directo... | 28.12 | 142 | 0.67926 | 2,077 | 17,575 | 5.509389 | 0.048628 | 0.057939 | 0.080224 | 0.102508 | 0.972909 | 0.97221 | 0.970288 | 0.967054 | 0.967054 | 0.963733 | 0 | 0.026405 | 0.230725 | 17,575 | 624 | 143 | 28.165064 | 0.81997 | 0.215135 | 0 | 0.752089 | 0 | 0.002786 | 0.294825 | 0.173665 | 0 | 0 | 0 | 0 | 0.052925 | 1 | 0.052925 | false | 0 | 0.005571 | 0 | 0.058496 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fe0c38400a3886e348c04d964796a23182a67c2f | 18,624 | py | Python | src/classification_aux/dataset.py | yellowdolphin/SIIM-COVID19-Detection | 31e8653b467ac35a8b1d92330ad5f15a12622676 | [
"MIT"
] | null | null | null | src/classification_aux/dataset.py | yellowdolphin/SIIM-COVID19-Detection | 31e8653b467ac35a8b1d92330ad5f15a12622676 | [
"MIT"
] | null | null | null | src/classification_aux/dataset.py | yellowdolphin/SIIM-COVID19-Detection | 31e8653b467ac35a8b1d92330ad5f15a12622676 | [
"MIT"
] | null | null | null | import os
import numpy as np
import cv2
import torch
from torch.utils.data import Dataset
import albumentations as albu
from albumentations.pytorch import ToTensorV2
from timm.data import IMAGENET_DEFAULT_MEAN, IMAGENET_DEFAULT_STD
cv2.setNumThreads(0)
cv2.ocl.setUseOpenCL(False)
chest14_classes = [
'Atelectasis... | 39.044025 | 163 | 0.565936 | 2,275 | 18,624 | 4.450549 | 0.094505 | 0.033778 | 0.037235 | 0.038716 | 0.808395 | 0.796346 | 0.789926 | 0.779062 | 0.772148 | 0.764642 | 0 | 0.036365 | 0.3016 | 18,624 | 476 | 164 | 39.12605 | 0.742062 | 0 | 0 | 0.756098 | 0 | 0 | 0.057023 | 0.003866 | 0 | 0 | 0 | 0 | 0.031707 | 1 | 0.05122 | false | 0 | 0.019512 | 0.017073 | 0.131707 | 0.004878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a3ca8cce4facf30d7b0b7158f737d50ea476a1b0 | 23,641 | py | Python | script/data_handler/HousePricesTransformer.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | script/data_handler/HousePricesTransformer.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | script/data_handler/HousePricesTransformer.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from script.data_handler.Base.Base_df_transformer import Base_df_transformer
from script.util.numpy_utils import np_frequency_equal_bins
DF = pd.DataFrame
Series = pd.Series
def df_frequency_equal_bins(df: DF, col_key: str, n_bins: int) -> list:
bins = np_frequenc... | 41.842478 | 118 | 0.617275 | 3,774 | 23,641 | 3.578166 | 0.074987 | 0.120409 | 0.12263 | 0.059242 | 0.864188 | 0.850785 | 0.844342 | 0.838566 | 0.821905 | 0.817165 | 0 | 0.026476 | 0.257096 | 23,641 | 564 | 119 | 41.916667 | 0.742413 | 0.206886 | 0 | 0.549488 | 0 | 0 | 0.012292 | 0 | 0 | 0 | 0 | 0.001773 | 0 | 1 | 0.266212 | false | 0 | 0.013652 | 0.09215 | 0.546075 | 0.020478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a3d66c1652cb668b80484e2fe1de572588c520d0 | 6,068 | py | Python | tests/common/constants.py | inancg/Transcriptor | 72782ddbefee1675060f6ec0c8303945f60aab8d | [
"MIT"
] | null | null | null | tests/common/constants.py | inancg/Transcriptor | 72782ddbefee1675060f6ec0c8303945f60aab8d | [
"MIT"
] | null | null | null | tests/common/constants.py | inancg/Transcriptor | 72782ddbefee1675060f6ec0c8303945f60aab8d | [
"MIT"
] | null | null | null | import os
from src.common.transcribe_item import TranscribeItem, TranscribeItemType
TEST_RESOURCES_LOCATION = os.path.join(os.path.dirname(__file__),
'../resources/')
AWS_TEST_RESOURCES_LOCATION = TEST_RESOURCES_LOCATION + 'aws/'
WATSON_TEST_RESOURCES_LOCATION = TEST_RESOURCES_L... | 60.079208 | 79 | 0.64354 | 715 | 6,068 | 5.244755 | 0.08951 | 0.2072 | 0.256533 | 0.24 | 0.872267 | 0.863467 | 0.8064 | 0.7472 | 0.691733 | 0.657333 | 0 | 0.047598 | 0.24176 | 6,068 | 100 | 80 | 60.68 | 0.767442 | 0.001483 | 0 | 0.5 | 0 | 0 | 0.027241 | 0 | 0 | 0 | 0 | 0.01 | 0 | 1 | 0 | false | 0.01087 | 0.021739 | 0 | 0.021739 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
431d7ceda38741cfcbe731075371efa22512e738 | 108 | py | Python | sample-viewer-api/src/static/data/exploratory_scripts/archive/acute_patients/__init__.py | cvisb/cvisb_data | 81ebf22782f2c44f8aa8ab9437cc4fb54248c3ed | [
"MIT"
] | 2 | 2020-02-18T08:16:45.000Z | 2021-04-11T18:58:02.000Z | sample-viewer-api/src/static/data/exploratory_scripts/archive/acute_patients/__init__.py | cvisb/cvisb_data | 81ebf22782f2c44f8aa8ab9437cc4fb54248c3ed | [
"MIT"
] | 47 | 2019-09-30T22:26:36.000Z | 2021-11-17T00:34:38.000Z | sample-viewer-api/src/static/data/exploratory_scripts/archive/acute_patients/__init__.py | cvisb/cvisb_data | 81ebf22782f2c44f8aa8ab9437cc4fb54248c3ed | [
"MIT"
] | 1 | 2020-07-01T21:15:18.000Z | 2020-07-01T21:15:18.000Z | from .clean_lassa_acute import clean_lassa_acute
# from .clean_lassa_acute_ids import clean_lassa_acute_ids
| 36 | 58 | 0.888889 | 18 | 108 | 4.777778 | 0.333333 | 0.465116 | 0.697674 | 0.44186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 108 | 2 | 59 | 54 | 0.868687 | 0.518519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
433dbe5a35b372d0da14c47eb010d5f8b68d2f90 | 20,951 | py | Python | akshare/stock_feature/stock_em_hsgt.py | szj2ys/akshare | d61ccbff50539bff1e07ffd15b841921b4846958 | [
"MIT"
] | 1 | 2021-11-30T06:33:53.000Z | 2021-11-30T06:33:53.000Z | akshare/stock_feature/stock_em_hsgt.py | szj2ys/akshare | d61ccbff50539bff1e07ffd15b841921b4846958 | [
"MIT"
] | null | null | null | akshare/stock_feature/stock_em_hsgt.py | szj2ys/akshare | d61ccbff50539bff1e07ffd15b841921b4846958 | [
"MIT"
] | 1 | 2021-01-21T06:04:15.000Z | 2021-01-21T06:04:15.000Z | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Date: 2020/7/15 19:12
Desc: 东方财富网-数据中心-沪深港通持股
http://data.eastmoney.com/hsgtcg/
沪深港通详情: http://finance.eastmoney.com/news/1622,20161118685370149.html
"""
import json
import demjson
import pandas as pd
import requests
from bs4 import BeautifulSoup
def stock_em_hsgt_nor... | 30.810294 | 139 | 0.543984 | 2,359 | 20,951 | 4.626537 | 0.130988 | 0.040132 | 0.044347 | 0.04004 | 0.814733 | 0.773777 | 0.761957 | 0.749496 | 0.72604 | 0.669141 | 0 | 0.071094 | 0.286335 | 20,951 | 679 | 140 | 30.85567 | 0.658842 | 0.137034 | 0 | 0.70709 | 0 | 0.001866 | 0.242481 | 0.071275 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020522 | false | 0 | 0.009328 | 0 | 0.072761 | 0.020522 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
43442cb287a6887f5be57c1f85d13f81dbeb320c | 108 | py | Python | platform/hwconf_data/mgm11/PythonSnippet/__init__.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | null | null | null | platform/hwconf_data/mgm11/PythonSnippet/__init__.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | 1 | 2020-08-25T02:36:22.000Z | 2020-08-25T02:36:22.000Z | platform/hwconf_data/mgm11/PythonSnippet/__init__.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | 1 | 2020-08-25T01:56:04.000Z | 2020-08-25T01:56:04.000Z | from mgm11.halconfig import halconfig_types as types
from mgm11.halconfig import halconfig_dependency as dep | 54 | 55 | 0.87963 | 16 | 108 | 5.8125 | 0.5 | 0.193548 | 0.387097 | 0.516129 | 0.709677 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041237 | 0.101852 | 108 | 2 | 55 | 54 | 0.917526 | 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 | 1 | 0 | 0 | 7 |
4a571d39ffa8c3b4c7f11b4dbbab9237a171c6d8 | 76 | py | Python | src/additional_package/inside_additional/methods.py | SharafutdinovRuslan/helloworld | 9c549685a3de0bf8a6e4594561d738c374762d9e | [
"MIT"
] | null | null | null | src/additional_package/inside_additional/methods.py | SharafutdinovRuslan/helloworld | 9c549685a3de0bf8a6e4594561d738c374762d9e | [
"MIT"
] | null | null | null | src/additional_package/inside_additional/methods.py | SharafutdinovRuslan/helloworld | 9c549685a3de0bf8a6e4594561d738c374762d9e | [
"MIT"
] | null | null | null | def get_inside_additional_package():
print('Inside additional package')
| 25.333333 | 38 | 0.789474 | 9 | 76 | 6.333333 | 0.666667 | 0.561404 | 0.807018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118421 | 76 | 2 | 39 | 38 | 0.850746 | 0 | 0 | 0 | 0 | 0 | 0.328947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
4364f5a2e6d0e3ae69695fbe72028c2357b72d97 | 24,764 | py | Python | abcTau/generative_models.py | roxana-zeraati/abcTau | ce4352062ee7821c80ac1c660641f41fef023e14 | [
"BSD-3-Clause"
] | 8 | 2021-06-29T14:36:56.000Z | 2022-03-27T18:18:10.000Z | abcTau/generative_models.py | roxana-zeraati/abcTau | ce4352062ee7821c80ac1c660641f41fef023e14 | [
"BSD-3-Clause"
] | null | null | null | abcTau/generative_models.py | roxana-zeraati/abcTau | ce4352062ee7821c80ac1c660641f41fef023e14 | [
"BSD-3-Clause"
] | 4 | 2021-06-03T13:53:21.000Z | 2022-03-27T18:18:01.000Z | """
Module containing different generative models
"""
import numpy as np
from scipy import stats
from basic_functions import *
def oneTauOU(theta, deltaT, binSize, T, numTrials, data_mean, data_var):
"""Generate an OU process with a single timescale.
Parameters
-----------
theta : 1d array
... | 31.228247 | 140 | 0.641294 | 3,397 | 24,764 | 4.569326 | 0.052988 | 0.024804 | 0.027058 | 0.018554 | 0.951939 | 0.945819 | 0.944788 | 0.943564 | 0.943564 | 0.939892 | 0 | 0.01721 | 0.265587 | 24,764 | 793 | 141 | 31.228247 | 0.836257 | 0.481425 | 0 | 0.859375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050781 | false | 0 | 0.011719 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
437de8194be125486716e14125b8fe13d8674e5c | 1,923 | py | Python | modules/complicated_wires/test_solver.py | Ao-Re/keep-typing-and-nobody-explodes | deff70c384b3271315acd49bcbfd62c05ed9a7ce | [
"MIT"
] | null | null | null | modules/complicated_wires/test_solver.py | Ao-Re/keep-typing-and-nobody-explodes | deff70c384b3271315acd49bcbfd62c05ed9a7ce | [
"MIT"
] | null | null | null | modules/complicated_wires/test_solver.py | Ao-Re/keep-typing-and-nobody-explodes | deff70c384b3271315acd49bcbfd62c05ed9a7ce | [
"MIT"
] | 2 | 2020-10-04T17:04:31.000Z | 2020-10-20T16:59:50.000Z | import unittest
from .solver import solve_complicated_wire_letter
from .solver import solve_complicated_wire
class TestComplicatedWires(unittest.TestCase):
def test_cut(self):
self.assertEqual(solve_complicated_wire(True, True, True, True, False, False, 0), "Do not cut the wire")
self.assertEqual(s... | 83.608696 | 115 | 0.716069 | 269 | 1,923 | 4.977695 | 0.085502 | 0.209111 | 0.268857 | 0.370426 | 0.943988 | 0.933532 | 0.879761 | 0.860344 | 0.822255 | 0.822255 | 0 | 0.009938 | 0.162767 | 1,923 | 22 | 116 | 87.409091 | 0.821739 | 0 | 0 | 0 | 0 | 0 | 0.110764 | 0 | 0 | 0 | 0 | 0 | 0.761905 | 1 | 0.047619 | false | 0 | 0.142857 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
438140f0fef4d4313612918e50759a21309e5269 | 3,889 | py | Python | locust-server/scripts/input_data.py | 0shimax/load-testing-of-api-server | 207db5ff9ce0c561eda8e1cf2a69f84baa2c1391 | [
"MIT"
] | null | null | null | locust-server/scripts/input_data.py | 0shimax/load-testing-of-api-server | 207db5ff9ce0c561eda8e1cf2a69f84baa2c1391 | [
"MIT"
] | null | null | null | locust-server/scripts/input_data.py | 0shimax/load-testing-of-api-server | 207db5ff9ce0c561eda8e1cf2a69f84baa2c1391 | [
"MIT"
] | null | null | null | test_data = [
{
"float_features":
{
"engines": 2,
"passenger_capacity": 4,
"crew": 3,
"company_rating": 1,
"review_scores_rating": 96
},
"categorical_features":
{
"d_check_complete": "False",
"moon_cl... | 24.006173 | 47 | 0.438159 | 292 | 3,889 | 5.455479 | 0.10274 | 0.122411 | 0.125549 | 0.125549 | 0.994978 | 0.994978 | 0.994978 | 0.994978 | 0.994978 | 0.994978 | 0 | 0.029465 | 0.432759 | 3,889 | 162 | 48 | 24.006173 | 0.692656 | 0 | 0 | 0.617284 | 0 | 0 | 0.419023 | 0.059126 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.061728 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
4382d457ad0260468ad6651ad1b7952edb0191c7 | 1,936 | py | Python | aerosandbox/performance/test_performance/test_operating_point_convert_axes_specific_rotations.py | raihaan123/AeroSandbox | 1e7c78f04b066415f671237a4833ba98901bb9ec | [
"MIT"
] | 1 | 2021-11-01T22:48:12.000Z | 2021-11-01T22:48:12.000Z | aerosandbox/performance/test_performance/test_operating_point_convert_axes_specific_rotations.py | raihaan123/AeroSandbox | 1e7c78f04b066415f671237a4833ba98901bb9ec | [
"MIT"
] | null | null | null | aerosandbox/performance/test_performance/test_operating_point_convert_axes_specific_rotations.py | raihaan123/AeroSandbox | 1e7c78f04b066415f671237a4833ba98901bb9ec | [
"MIT"
] | null | null | null | import aerosandbox as asb
import aerosandbox.numpy as np
from typing import List
import copy
import pytest
def test_alpha_wind():
op_point = asb.OperatingPoint(
alpha=90,
beta=0
)
x, y, z = op_point.convert_axes(
0, 0, 1,
"geometry",
"wind"
)
assert x == pyt... | 19.36 | 36 | 0.546488 | 260 | 1,936 | 3.907692 | 0.138462 | 0.212598 | 0.153543 | 0.141732 | 0.849409 | 0.849409 | 0.805118 | 0.75689 | 0.718504 | 0.718504 | 0 | 0.04221 | 0.326963 | 1,936 | 99 | 37 | 19.555556 | 0.737529 | 0 | 0 | 0.658824 | 0 | 0 | 0.038223 | 0 | 0 | 0 | 0 | 0 | 0.211765 | 1 | 0.070588 | false | 0 | 0.058824 | 0 | 0.129412 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
43b0cad1808544d06499007ea03c193d96d0c3dc | 159 | py | Python | src/ec2_spot_price/__init__.py | susumuota/ec2-spot-price | 398e628aa6dfc0d080837a5a52cc097a6c1b5918 | [
"Apache-2.0"
] | null | null | null | src/ec2_spot_price/__init__.py | susumuota/ec2-spot-price | 398e628aa6dfc0d080837a5a52cc097a6c1b5918 | [
"Apache-2.0"
] | null | null | null | src/ec2_spot_price/__init__.py | susumuota/ec2-spot-price | 398e628aa6dfc0d080837a5a52cc097a6c1b5918 | [
"Apache-2.0"
] | null | null | null | from .ec2_spot_price import __version__
from .ec2_spot_price import spot_prices, print_csv, print_table
__all__ = ['spot_prices', 'print_csv', 'print_table']
| 31.8 | 63 | 0.805031 | 24 | 159 | 4.583333 | 0.458333 | 0.127273 | 0.2 | 0.290909 | 0.909091 | 0.509091 | 0 | 0 | 0 | 0 | 0 | 0.013986 | 0.100629 | 159 | 4 | 64 | 39.75 | 0.755245 | 0 | 0 | 0 | 0 | 0 | 0.194969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 8 |
43b2bcf3d3f55029308b5381d41a5de250c3f8ce | 5,469 | py | Python | proxydownloader.py | DiabloAkar/proxydownloader | f1a12a78537368a5988a7d00f264ed6ddd96ae09 | [
"MIT"
] | 1 | 2021-08-16T23:18:22.000Z | 2021-08-16T23:18:22.000Z | proxydownloader.py | DiabloAkar/proxydownloader | f1a12a78537368a5988a7d00f264ed6ddd96ae09 | [
"MIT"
] | null | null | null | proxydownloader.py | DiabloAkar/proxydownloader | f1a12a78537368a5988a7d00f264ed6ddd96ae09 | [
"MIT"
] | null | null | null | import subprocess
from pip._vendor.colorama import Fore
import threading
import time
import os
#import layn
subprocess.call('start https://discord.gg/DDcXf472BF', shell=True)
subprocess.call('start https://github.com/DiabloAkar', shell=True)
#diabloakar
bammer = '''
████████▄ ▄█ ▄████████ ▀█████... | 52.085714 | 163 | 0.577802 | 730 | 5,469 | 4.724658 | 0.149315 | 0.177443 | 0.184691 | 0.177443 | 0.764859 | 0.752102 | 0.71499 | 0.71499 | 0.71499 | 0.706292 | 0 | 0.025353 | 0.170598 | 5,469 | 104 | 164 | 52.586538 | 0.671076 | 0.005668 | 0 | 0.397727 | 0 | 0.136364 | 0.483399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056818 | 0 | 0.056818 | 0.352273 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
78f0aae3eae31cc227a3c680c0f5bb1ebf194db1 | 115,967 | py | Python | tests/unit_test_external.py | lionel42/pysd | 5405b22f448ffff0945f1254a8a0a40ad3914402 | [
"MIT"
] | null | null | null | tests/unit_test_external.py | lionel42/pysd | 5405b22f448ffff0945f1254a8a0a40ad3914402 | [
"MIT"
] | null | null | null | tests/unit_test_external.py | lionel42/pysd | 5405b22f448ffff0945f1254a8a0a40ad3914402 | [
"MIT"
] | null | null | null | import sys
import unittest
import warnings
from pathlib import Path
from importlib.machinery import SourceFileLoader
import numpy as np
import xarray as xr
_root = Path(__file__).parent
_exp = SourceFileLoader(
'expected_data',
str(_root.joinpath('data/expected_data.py'))
).load_module()
class TestExcel... | 35.248328 | 79 | 0.454379 | 11,919 | 115,967 | 4.205722 | 0.037755 | 0.05458 | 0.036866 | 0.041653 | 0.903687 | 0.89076 | 0.863869 | 0.836339 | 0.813079 | 0.799394 | 0 | 0.021445 | 0.447507 | 115,967 | 3,289 | 80 | 35.259045 | 0.760937 | 0.072503 | 0 | 0.823504 | 0 | 0 | 0.083688 | 0.01408 | 0 | 0 | 0 | 0.000304 | 0.079915 | 1 | 0.042308 | false | 0 | 0.046581 | 0 | 0.092308 | 0.000427 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
60818a6a802685c76e40ef6e81c2fc498e468a70 | 23,991 | py | Python | models/BERT/bert.py | hansheng0512/LateTemporalModeling3DCNN | 71c1d3fae9781c55059f0518e0b39781a535e153 | [
"MIT"
] | 144 | 2020-08-06T02:18:49.000Z | 2022-03-16T23:03:56.000Z | models/BERT/bert.py | hansheng0512/LateTemporalModeling3DCNN | 71c1d3fae9781c55059f0518e0b39781a535e153 | [
"MIT"
] | 26 | 2020-08-12T01:07:48.000Z | 2022-01-11T16:28:08.000Z | models/BERT/bert.py | hansheng0512/LateTemporalModeling3DCNN | 71c1d3fae9781c55059f0518e0b39781a535e153 | [
"MIT"
] | 55 | 2020-08-13T03:00:17.000Z | 2022-03-28T06:38:08.000Z | import torch.nn as nn
import torch
from .transformer import TransformerBlock, TransformerBlock2
from .embedding import BERTEmbedding, BERTEmbedding2, BERTEmbedding3, BERTEmbedding4
class BERT(nn.Module):
"""
BERT model : Bidirectional Encoder Representations from Transformers.
"""
def __init__(sel... | 40.525338 | 181 | 0.639657 | 3,068 | 23,991 | 4.813885 | 0.04987 | 0.026813 | 0.022344 | 0.016115 | 0.940213 | 0.935676 | 0.930192 | 0.923285 | 0.91577 | 0.913535 | 0 | 0.021844 | 0.255804 | 23,991 | 591 | 182 | 40.593909 | 0.805366 | 0.223667 | 0 | 0.851133 | 0 | 0 | 0.000889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05178 | false | 0 | 0.012945 | 0 | 0.116505 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
60954006b59bdd74f41c9e7160d407652c134f87 | 10,046 | py | Python | asana/resources/gen/teams.py | tirkarthi/python-asana | 8b3f0677d8fcca81b5757d586a388ef9aeb428eb | [
"MIT"
] | 266 | 2015-02-13T18:14:08.000Z | 2022-03-29T22:03:33.000Z | asana/resources/gen/teams.py | tirkarthi/python-asana | 8b3f0677d8fcca81b5757d586a388ef9aeb428eb | [
"MIT"
] | 77 | 2015-02-13T00:22:11.000Z | 2022-02-20T07:56:14.000Z | asana/resources/gen/teams.py | tirkarthi/python-asana | 8b3f0677d8fcca81b5757d586a388ef9aeb428eb | [
"MIT"
] | 95 | 2015-03-18T23:28:57.000Z | 2022-02-20T23:28:58.000Z | # coding=utf-8
class _Teams:
def __init__(self, client=None):
self.client = client
def add_user_for_team(self, team_gid, params=None, **options):
"""Add a user to a team
:param str team_gid: (required) Globally unique identifier for the team.
:param Object params: Parameters fo... | 102.510204 | 517 | 0.715708 | 1,522 | 10,046 | 4.68594 | 0.105782 | 0.01346 | 0.010095 | 0.022715 | 0.929753 | 0.928491 | 0.920639 | 0.898906 | 0.887689 | 0.876753 | 0 | 0.002186 | 0.225762 | 10,046 | 97 | 518 | 103.56701 | 0.91476 | 0.795341 | 0 | 0.515152 | 0 | 0 | 0.117502 | 0.069264 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0 | 0 | 0.424242 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
60c5d0c141159b229b5e7b645fbcebcf23d73822 | 166 | py | Python | golr_schema_generator/__init__.py | deepakunni3/golr-schema-generator | a3a20e53b35471f02889caecefe0309af45f9361 | [
"BSD-3-Clause"
] | null | null | null | golr_schema_generator/__init__.py | deepakunni3/golr-schema-generator | a3a20e53b35471f02889caecefe0309af45f9361 | [
"BSD-3-Clause"
] | 5 | 2020-02-18T01:49:23.000Z | 2020-02-19T00:11:31.000Z | golr_schema_generator/__init__.py | deepakunni3/golr-schema-generator | a3a20e53b35471f02889caecefe0309af45f9361 | [
"BSD-3-Clause"
] | null | null | null | from golr_schema_generator.schema_generator import SchemaGenerator
from golr_schema_generator.golr_schema_generator import GolrSchemaGenerator
__version__ = '0.0.1'
| 33.2 | 75 | 0.885542 | 21 | 166 | 6.47619 | 0.47619 | 0.441176 | 0.419118 | 0.338235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019481 | 0.072289 | 166 | 4 | 76 | 41.5 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0.03012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
60d91e9dc358b591ace168a1dad57f6a3116d1da | 353 | py | Python | taller10/p.py | RobelisRuiz/Programacion-4 | 8c979ad862430801dd2608298a0369ec8457bde9 | [
"Apache-2.0"
] | null | null | null | taller10/p.py | RobelisRuiz/Programacion-4 | 8c979ad862430801dd2608298a0369ec8457bde9 | [
"Apache-2.0"
] | null | null | null | taller10/p.py | RobelisRuiz/Programacion-4 | 8c979ad862430801dd2608298a0369ec8457bde9 | [
"Apache-2.0"
] | null | null | null | p = [
{'nombre': 'portátil', 'significado': 800},
{'nombre': 'portátil', 'significado': 800},
{'nombre': 'portátil', 'significado': 800},
{'nombre': 'portátil', 'significado': 800},
{'nombre': 'portátil', 'significado': 800},
{'nombre': 'portátil', 'significado': 800},
{'nombre': 'por... | 35.3 | 48 | 0.558074 | 29 | 353 | 6.793103 | 0.172414 | 0.497462 | 0.888325 | 0.994924 | 0.994924 | 0.994924 | 0.994924 | 0.994924 | 0.994924 | 0.994924 | 0 | 0.073944 | 0.195467 | 353 | 10 | 49 | 35.3 | 0.619718 | 0 | 0 | 0.777778 | 0 | 0 | 0.507246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
60f6e94ca24272fcb0c9d4c12cdebb05e7d38a53 | 525 | py | Python | eval_covid20cases_timm-regnetx_002_Clahe.py | BrunoKrinski/segtool | cb604b5f38104c43a76450136e37c3d1c4b6d275 | [
"MIT"
] | null | null | null | eval_covid20cases_timm-regnetx_002_Clahe.py | BrunoKrinski/segtool | cb604b5f38104c43a76450136e37c3d1c4b6d275 | [
"MIT"
] | null | null | null | eval_covid20cases_timm-regnetx_002_Clahe.py | BrunoKrinski/segtool | cb604b5f38104c43a76450136e37c3d1c4b6d275 | [
"MIT"
] | null | null | null | import os
ls=["python main.py --configs configs/eval_covid20cases_unetplusplus_timm-regnetx_002_0_Clahe.yml",
"python main.py --configs configs/eval_covid20cases_unetplusplus_timm-regnetx_002_1_Clahe.yml",
"python main.py --configs configs/eval_covid20cases_unetplusplus_timm-regnetx_002_2_Clahe.yml",
"python main.py -... | 47.727273 | 99 | 0.841905 | 80 | 525 | 5.15 | 0.3 | 0.121359 | 0.145631 | 0.230583 | 0.902913 | 0.902913 | 0.902913 | 0.902913 | 0.902913 | 0.902913 | 0 | 0.060729 | 0.059048 | 525 | 11 | 100 | 47.727273 | 0.773279 | 0 | 0 | 0 | 0 | 0 | 0.874525 | 0.636882 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
716e249fd4eb2ebdb6619fdbc272903ce94d263c | 141 | py | Python | cellsino/__init__.py | RI-imaging/cellsino | 868466da8e9a4b4c5640764d0ace19e4b638f2e9 | [
"BSD-3-Clause"
] | 2 | 2019-03-28T01:27:51.000Z | 2019-06-06T00:09:25.000Z | cellsino/__init__.py | RI-imaging/cellsino | 868466da8e9a4b4c5640764d0ace19e4b638f2e9 | [
"BSD-3-Clause"
] | 4 | 2019-02-06T16:58:22.000Z | 2021-04-12T09:00:23.000Z | cellsino/__init__.py | RI-imaging/cellsino | 868466da8e9a4b4c5640764d0ace19e4b638f2e9 | [
"BSD-3-Clause"
] | null | null | null | from ._version import version as __version__ # noqa: F401
from . import phantoms # noqa: F401
from .sinogram import Sinogram # noqa: F401
| 35.25 | 58 | 0.751773 | 19 | 141 | 5.315789 | 0.421053 | 0.237624 | 0.237624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078261 | 0.184397 | 141 | 3 | 59 | 47 | 0.8 | 0.22695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
718703fe3a6463219ad76e3fad974cc986b1bff4 | 3,059 | py | Python | test/test_util.py | ncloudioj/hustle | 890793b996d5ba0660f4f16dd71c88abc86ae5b5 | [
"MIT"
] | 88 | 2015-01-07T16:57:29.000Z | 2021-05-31T15:11:45.000Z | test/test_util.py | ncloudioj/hustle | 890793b996d5ba0660f4f16dd71c88abc86ae5b5 | [
"MIT"
] | 3 | 2015-08-17T09:42:20.000Z | 2018-01-12T18:31:12.000Z | test/test_util.py | ncloudioj/hustle | 890793b996d5ba0660f4f16dd71c88abc86ae5b5 | [
"MIT"
] | 10 | 2015-04-05T14:41:32.000Z | 2018-12-02T20:46:57.000Z | import unittest
from hustle.core.util import SortedIterator
class TestSortedIterator(unittest.TestCase):
def test_merges_sorted_inputs(self):
data = [
[
((1, 1), 'some_value'),
((1, 2), 'some_value'),
((1, 3), 'some_value')
],
... | 30.59 | 64 | 0.396862 | 280 | 3,059 | 4.085714 | 0.153571 | 0.377622 | 0.297203 | 0.096154 | 0.829545 | 0.829545 | 0.807692 | 0.784965 | 0.749126 | 0.701049 | 0 | 0.068415 | 0.42661 | 3,059 | 99 | 65 | 30.89899 | 0.583808 | 0.005884 | 0 | 0.606383 | 0 | 0 | 0.157947 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 1 | 0.042553 | false | 0 | 0.021277 | 0 | 0.074468 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
7199fd6828f784f4d676e6f6c1ec5ad37078f292 | 65,043 | py | Python | src/oci/database_management/sql_tuning_client.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/database_management/sql_tuning_client.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/database_management/sql_tuning_client.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 51.417391 | 261 | 0.664299 | 8,146 | 65,043 | 5.094279 | 0.064817 | 0.047617 | 0.013157 | 0.016868 | 0.852957 | 0.834884 | 0.819268 | 0.798882 | 0.792857 | 0.783773 | 0 | 0.00265 | 0.257384 | 65,043 | 1,264 | 262 | 51.45807 | 0.856486 | 0.438249 | 0 | 0.751174 | 0 | 0 | 0.199133 | 0.065804 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015649 | false | 0.001565 | 0.014085 | 0 | 0.059468 | 0.001565 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
71c2a3c9124856703e674a6da41157fb794c8e04 | 2,834 | py | Python | cocluster/cocluster.py | ashish-code/co-clustering-visual-categorization | 0e6d97858793c6562d28b2cefd9f61bc2fa079d0 | [
"MIT"
] | null | null | null | cocluster/cocluster.py | ashish-code/co-clustering-visual-categorization | 0e6d97858793c6562d28b2cefd9f61bc2fa079d0 | [
"MIT"
] | null | null | null | cocluster/cocluster.py | ashish-code/co-clustering-visual-categorization | 0e6d97858793c6562d28b2cefd9f61bc2fa079d0 | [
"MIT"
] | null | null | null | '''
Created on 27 Jul 2011
@author: ag00087
'''
import os
import numpy as np
import time
rootDir = '/vol/vssp/diplecs/ash/Data/'
tempDir = 'Temp'
def Oldcoclust(data,dataset,nRowCluster=1,nColCluster=1,ccType='i'):
tempPath = rootDir+dataset+tempDir
tempdataPath = tempPath+'tempdata'
tempdataDimPat... | 33.738095 | 118 | 0.666902 | 344 | 2,834 | 5.462209 | 0.212209 | 0.051091 | 0.041511 | 0.036189 | 0.827568 | 0.827568 | 0.807877 | 0.786056 | 0.715806 | 0.715806 | 0 | 0.010278 | 0.176076 | 2,834 | 84 | 119 | 33.738095 | 0.794433 | 0.014114 | 0 | 0.714286 | 0 | 0.047619 | 0.15967 | 0.049516 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.015873 | 0.047619 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
71d1f10eff7b2569ae979a952797c4e28b9b4ed6 | 3,708 | py | Python | irrumatio_lab/migrations/0002_auto_20181122_1340.py | ycycorona/djangohelloworld | f3e8ca816f75ad2d9a8e0e14d485c144dfb818cf | [
"MIT"
] | null | null | null | irrumatio_lab/migrations/0002_auto_20181122_1340.py | ycycorona/djangohelloworld | f3e8ca816f75ad2d9a8e0e14d485c144dfb818cf | [
"MIT"
] | null | null | null | irrumatio_lab/migrations/0002_auto_20181122_1340.py | ycycorona/djangohelloworld | f3e8ca816f75ad2d9a8e0e14d485c144dfb818cf | [
"MIT"
] | null | null | null | # Generated by Django 2.1.2 on 2018-11-22 05:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('irrumatio_lab', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='productionevaluation',
name='actr... | 35.653846 | 77 | 0.587648 | 332 | 3,708 | 6.436747 | 0.210843 | 0.075807 | 0.143191 | 0.20964 | 0.877398 | 0.877398 | 0.834347 | 0.834347 | 0.776322 | 0.751521 | 0 | 0.014644 | 0.300162 | 3,708 | 103 | 78 | 36 | 0.808863 | 0.012136 | 0 | 0.731959 | 1 | 0 | 0.155149 | 0.013111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010309 | 0 | 0.041237 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
e0847ff47340311b2a15daa37d2da1880ab44b79 | 2,077 | py | Python | volttrontesting/testutils/test_single_instance.py | rmay-intwine/volttron | a449f70e32f73ff0136a838d0feddb928ede6298 | [
"Apache-2.0"
] | 1 | 2020-06-08T16:54:28.000Z | 2020-06-08T16:54:28.000Z | volttrontesting/testutils/test_single_instance.py | rmay-intwine/volttron | a449f70e32f73ff0136a838d0feddb928ede6298 | [
"Apache-2.0"
] | 8 | 2016-10-07T22:49:28.000Z | 2022-02-23T00:57:58.000Z | volttrontesting/testutils/test_single_instance.py | rmay-intwine/volttron | a449f70e32f73ff0136a838d0feddb928ede6298 | [
"Apache-2.0"
] | null | null | null | import pytest
import gevent
from volttron.platform import get_examples
@pytest.mark.wrapper
def test_can_install_listeners(volttron_instance):
assert volttron_instance.is_running()
uuids = []
num_listeners = 5
try:
for x in range(num_listeners):
identity = "listener_" + str(x)
... | 30.544118 | 75 | 0.578238 | 226 | 2,077 | 5.088496 | 0.274336 | 0.153043 | 0.02087 | 0.062609 | 0.895652 | 0.895652 | 0.895652 | 0.895652 | 0.82087 | 0.82087 | 0 | 0.005714 | 0.325951 | 2,077 | 67 | 76 | 31 | 0.815714 | 0 | 0 | 0.807018 | 0 | 0 | 0.094367 | 0 | 0 | 0 | 0 | 0 | 0.122807 | 1 | 0.035088 | false | 0 | 0.052632 | 0 | 0.087719 | 0.070175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e0be16e8bed9660dec1216a6c26aef027eed9ba2 | 280,620 | py | Python | experiments/variables.py | antoniojsp/RoadTurns | e535d1407676a40e68da709fb1c7bba5000be760 | [
"Unlicense"
] | null | null | null | experiments/variables.py | antoniojsp/RoadTurns | e535d1407676a40e68da709fb1c7bba5000be760 | [
"Unlicense"
] | 1 | 2020-10-28T17:13:54.000Z | 2020-10-29T00:00:27.000Z | experiments/variables.py | antoniojsp/RoadTurns | e535d1407676a40e68da709fb1c7bba5000be760 | [
"Unlicense"
] | null | null | null | calles = ["NW Spruce","NW Spruce","NW Spruce","NW Spruce","goa","goa","goa","NW Spruce","NW Spruce","NW Spruce","NW Spruce","NW Spruce","NW Spruce","NW Spruce","NW Spruce","NW Spruce","NW Spruce","NW Spruce","NW Spruce","NW Spruce","NW Spruce","NW Spruce","NW Spruce","NW Spruce","NW Spruce","NW Spruce","NW Spruce","NW ... | 140,310 | 280,619 | 0.656454 | 49,044 | 280,620 | 3.756097 | 0.000754 | 0.068659 | 0.203763 | 0.237724 | 0.999967 | 0.999967 | 0.999967 | 0.999967 | 0.999967 | 0.999967 | 0 | 0 | 0.163969 | 280,620 | 1 | 280,620 | 280,620 | 0.785202 | 0 | 0 | 0 | 0 | 0 | 0.771349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
e0f3f0352db3c34c691c270241d54736142fec35 | 39,405 | py | Python | snaps_k8s/ansible_p/ansible_utils/ansible_playbook_launcher.py | chiraggupta06/snaps-kubernetes | 037660aa7a91b681e57f13f1775d388d35586b9e | [
"Apache-2.0"
] | null | null | null | snaps_k8s/ansible_p/ansible_utils/ansible_playbook_launcher.py | chiraggupta06/snaps-kubernetes | 037660aa7a91b681e57f13f1775d388d35586b9e | [
"Apache-2.0"
] | null | null | null | snaps_k8s/ansible_p/ansible_utils/ansible_playbook_launcher.py | chiraggupta06/snaps-kubernetes | 037660aa7a91b681e57f13f1775d388d35586b9e | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 ARICENT HOLDINGS LUXEMBOURG SARL and Cable Television
# Laboratories, Inc.
# 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
#
#... | 31.150198 | 79 | 0.663799 | 5,095 | 39,405 | 4.717174 | 0.06104 | 0.100524 | 0.138221 | 0.062453 | 0.851377 | 0.830573 | 0.801198 | 0.786594 | 0.769452 | 0.747691 | 0 | 0.000633 | 0.238041 | 39,405 | 1,264 | 80 | 31.174842 | 0.799833 | 0.061084 | 0 | 0.816737 | 0 | 0 | 0.147492 | 0.001339 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083686 | false | 0.008475 | 0.003178 | 0 | 0.172669 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1ce0adad7c652c9d4cc100096a0beda4b590fda0 | 1,379 | py | Python | app/quinoas/migrations/0008_auto_20190926_0218.py | ZeroPaul/Agrain-US | afa4055eaae47d33d8bfeeee59647465a219cbd5 | [
"Apache-2.0"
] | null | null | null | app/quinoas/migrations/0008_auto_20190926_0218.py | ZeroPaul/Agrain-US | afa4055eaae47d33d8bfeeee59647465a219cbd5 | [
"Apache-2.0"
] | null | null | null | app/quinoas/migrations/0008_auto_20190926_0218.py | ZeroPaul/Agrain-US | afa4055eaae47d33d8bfeeee59647465a219cbd5 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.4 on 2019-09-26 02:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('quinoas', '0007_sample'),
]
operations = [
migrations.AlterField(
model_name='sample',
name='broken_grain',
... | 31.340909 | 83 | 0.585207 | 147 | 1,379 | 5.319728 | 0.285714 | 0.153453 | 0.191816 | 0.222506 | 0.767263 | 0.767263 | 0.717391 | 0.717391 | 0.717391 | 0.717391 | 0 | 0.044284 | 0.295867 | 1,379 | 43 | 84 | 32.069767 | 0.761071 | 0.032632 | 0 | 0.648649 | 1 | 0 | 0.099099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.108108 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
e8133842d217fc5be6a4717a7d86ebf492d27634 | 30,562 | py | Python | commissioning/wfc3_uvis2_spec_18_cases.py | dobos/pysynphot | 5d2e0b52ceda78890940ac9239c2d88e149e0bed | [
"BSD-3-Clause"
] | 24 | 2015-01-04T23:38:21.000Z | 2022-02-01T00:11:07.000Z | commissioning/wfc3_uvis2_spec_18_cases.py | dobos/pysynphot | 5d2e0b52ceda78890940ac9239c2d88e149e0bed | [
"BSD-3-Clause"
] | 126 | 2015-01-29T14:50:37.000Z | 2022-02-15T01:58:13.000Z | commissioning/wfc3_uvis2_spec_18_cases.py | dobos/pysynphot | 5d2e0b52ceda78890940ac9239c2d88e149e0bed | [
"BSD-3-Clause"
] | 25 | 2015-02-09T12:12:02.000Z | 2021-09-09T13:06:54.000Z | from pytools import testutil
import sys
import basecase
class calcspecCase1(basecase.calcspecCase):
def setUp(self):
self.obsmode="None"
self.spectrum="icat(k93models,9230,0.0,4.1)"
self.subset=False
self.etcid="None"
self.setglobal(__file__)
self.runpy()
class countr... | 60.518812 | 3,171 | 0.683529 | 4,065 | 30,562 | 5.063223 | 0.086101 | 0.249587 | 0.035565 | 0.04742 | 0.922699 | 0.918375 | 0.887572 | 0.882179 | 0.882179 | 0.874745 | 0 | 0.188869 | 0.139847 | 30,562 | 504 | 3,172 | 60.638889 | 0.594073 | 0.00409 | 0 | 0.733871 | 0 | 0.104839 | 0.536113 | 0.1898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122984 | false | 0 | 0.006048 | 0 | 0.252016 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
e814ecb99afd9bd86775f35c4341ec2f82877045 | 79 | py | Python | projections/hpd/__init__.py | ricardog/raster-project | 37d508ca329d31d4b1d21614371596f4c1bca526 | [
"Apache-2.0"
] | 1 | 2018-02-23T14:26:17.000Z | 2018-02-23T14:26:17.000Z | projections/hpd/__init__.py | NaturalHistoryMuseum/raster-project | 319a0f633de8cf2317eba5d82396036f01ce5262 | [
"Apache-2.0"
] | null | null | null | projections/hpd/__init__.py | NaturalHistoryMuseum/raster-project | 319a0f633de8cf2317eba5d82396036f01ce5262 | [
"Apache-2.0"
] | 1 | 2017-10-11T15:49:18.000Z | 2017-10-11T15:49:18.000Z |
from .wpp import WPP
from . import wpp
from . import sps
from . import hyde
| 13.166667 | 20 | 0.708861 | 13 | 79 | 4.307692 | 0.384615 | 0.535714 | 0.464286 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240506 | 79 | 5 | 21 | 15.8 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
e816253affce8cbd29efa21f26f26fc5579b460b | 6,139 | py | Python | tests/integration/test_log_events_it.py | corylevine/okta-sdk-python | c86b8fdc4525e84199143c27213c0aebc6b2af8f | [
"Apache-2.0"
] | 145 | 2017-06-13T21:54:04.000Z | 2022-02-25T05:44:34.000Z | tests/integration/test_log_events_it.py | corylevine/okta-sdk-python | c86b8fdc4525e84199143c27213c0aebc6b2af8f | [
"Apache-2.0"
] | 146 | 2017-06-02T17:46:12.000Z | 2022-03-29T15:52:15.000Z | tests/integration/test_log_events_it.py | corylevine/okta-sdk-python | c86b8fdc4525e84199143c27213c0aebc6b2af8f | [
"Apache-2.0"
] | 98 | 2017-06-27T03:44:51.000Z | 2022-03-23T04:58:18.000Z | import pytest
from tests.mocks import MockOktaClient
import okta.models as models
from okta.constants import DATETIME_FORMAT
import datetime as dt
class TestLogEventsResource:
"""
Integration Tests for the Log Events Resource
"""
SDK_PREFIX = "python_sdk"
@pytest.mark.asyncio
@pytest.mark.ski... | 33.917127 | 75 | 0.568659 | 610 | 6,139 | 5.565574 | 0.17377 | 0.038881 | 0.049485 | 0.053019 | 0.879234 | 0.879234 | 0.87187 | 0.87187 | 0.87187 | 0.87187 | 0 | 0.003286 | 0.355595 | 6,139 | 180 | 76 | 34.105556 | 0.854904 | 0.06304 | 0 | 0.868056 | 0 | 0 | 0.055206 | 0.01153 | 0 | 0 | 0 | 0 | 0.208333 | 1 | 0 | false | 0 | 0.034722 | 0 | 0.048611 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
98e0ade28f70fe684689fc3177164d2be029204d | 4,659 | py | Python | tests/api/v1/test_flags.py | xmsec/LanCTFD | 77659cca2aae4ab68cf25ddb5a7cbe63f597a9af | [
"Apache-2.0"
] | 3 | 2020-05-13T14:02:11.000Z | 2022-03-12T08:09:34.000Z | tests/api/v1/test_flags.py | xmsec/LanCTFD | 77659cca2aae4ab68cf25ddb5a7cbe63f597a9af | [
"Apache-2.0"
] | 6 | 2019-01-26T15:06:07.000Z | 2019-02-11T01:48:20.000Z | tests/api/v1/test_flags.py | xmsec/LanCTFD | 77659cca2aae4ab68cf25ddb5a7cbe63f597a9af | [
"Apache-2.0"
] | 4 | 2019-08-01T02:16:44.000Z | 2022-03-12T08:09:35.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from tests.helpers import *
def test_api_flags_get_non_admin():
"""Can a user get /api/v1/flags if not admin"""
app = create_ctfd()
with app.app_context():
with app.test_client() as client:
r = client.get('/api/v1/flags', json="")
... | 31.910959 | 71 | 0.578021 | 672 | 4,659 | 3.790179 | 0.08631 | 0.049077 | 0.098155 | 0.066353 | 0.931684 | 0.908127 | 0.906164 | 0.896349 | 0.854731 | 0.808795 | 0 | 0.02318 | 0.277742 | 4,659 | 145 | 72 | 32.131034 | 0.73373 | 0.135866 | 0 | 0.764151 | 0 | 0 | 0.081483 | 0.006559 | 0 | 0 | 0 | 0 | 0.141509 | 1 | 0.113208 | false | 0 | 0.009434 | 0 | 0.122642 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c7aec9d440e7eb04c80f684216487d067bb8d3a2 | 4,760 | py | Python | src/wavestate/iirrational/fitters_ZPK/codings_cmn/base.py | wavestate/wavestate-iirrational | 01d6dba8b2131fa2a099a74f17e6540f30cee606 | [
"Apache-2.0"
] | null | null | null | src/wavestate/iirrational/fitters_ZPK/codings_cmn/base.py | wavestate/wavestate-iirrational | 01d6dba8b2131fa2a099a74f17e6540f30cee606 | [
"Apache-2.0"
] | null | null | null | src/wavestate/iirrational/fitters_ZPK/codings_cmn/base.py | wavestate/wavestate-iirrational | 01d6dba8b2131fa2a099a74f17e6540f30cee606 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: © 2021 Massachusetts Institute of Technology.
# SPDX-FileCopyrightText: © 2021 Lee McCuller <mcculler@mit.edu>
# NOTICE: authors should document their contributions in concisely in NOTICE
# with details inline ... | 25.185185 | 81 | 0.562185 | 639 | 4,760 | 3.971831 | 0.195618 | 0.041371 | 0.028369 | 0.053191 | 0.777778 | 0.740741 | 0.724586 | 0.708826 | 0.671395 | 0.671395 | 0 | 0.00912 | 0.331933 | 4,760 | 188 | 82 | 25.319149 | 0.788365 | 0.115336 | 0 | 0.819549 | 0 | 0 | 0.001431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.015038 | 0.015038 | 0.120301 | 0.496241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 7 |
c7f2cd35d36cab9d3a0aca92b34aab1f128634a4 | 71,247 | py | Python | Util/metrics.py | LamannaLeonardo/OLAM | 7a6611912ebb40d39a934dd454efec4cbb7913d3 | [
"MIT"
] | null | null | null | Util/metrics.py | LamannaLeonardo/OLAM | 7a6611912ebb40d39a934dd454efec4cbb7913d3 | [
"MIT"
] | null | null | null | Util/metrics.py | LamannaLeonardo/OLAM | 7a6611912ebb40d39a934dd454efec4cbb7913d3 | [
"MIT"
] | null | null | null | # Copyright (c) 2022, Leonardo Lamanna
# All rights reserved.
# This source code is licensed under the MIT-style license found in the
# LICENSE file in the root directory of this source tree.
import os
import re
from collections import defaultdict
import Configuration
def action_model_statistics()... | 42.997586 | 145 | 0.520485 | 8,672 | 71,247 | 3.978321 | 0.015221 | 0.075565 | 0.046957 | 0.016696 | 0.979739 | 0.975507 | 0.964928 | 0.95713 | 0.955855 | 0.944464 | 0 | 0.009297 | 0.32668 | 71,247 | 1,656 | 146 | 43.023551 | 0.709872 | 0.191447 | 0 | 0.873223 | 0 | 0 | 0.05701 | 0.010264 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03436 | false | 0 | 0.004739 | 0 | 0.097156 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4093bf069a7d7278b399ef5eb4ec212bdf81555b | 45,705 | py | Python | tests/sentry/db/test_parse_query.py | AlexWayfer/sentry | ef935cda2b2e960bd602fda590540882d1b0712d | [
"BSD-3-Clause"
] | 4 | 2019-05-27T13:55:07.000Z | 2021-03-30T07:05:09.000Z | tests/sentry/db/test_parse_query.py | AlexWayfer/sentry | ef935cda2b2e960bd602fda590540882d1b0712d | [
"BSD-3-Clause"
] | 99 | 2019-05-20T14:16:33.000Z | 2021-01-19T09:25:15.000Z | tests/sentry/db/test_parse_query.py | AlexWayfer/sentry | ef935cda2b2e960bd602fda590540882d1b0712d | [
"BSD-3-Clause"
] | 1 | 2020-08-10T07:55:40.000Z | 2020-08-10T07:55:40.000Z | from __future__ import absolute_import
from sentry.testutils import TestCase
from sentry.testutils.helpers import parse_queries
class ParseQuery(TestCase):
def test_parse_query(self):
result = parse_queries(
[
{u'sql': u'QUERY = u\'INSERT INTO "sentry_useremail" ("user_id", "e... | 163.232143 | 1,026 | 0.679029 | 5,332 | 45,705 | 5.598837 | 0.055889 | 0.117308 | 0.021103 | 0.029545 | 0.913878 | 0.894014 | 0.891468 | 0.885305 | 0.879342 | 0.870666 | 0 | 0.09006 | 0.144601 | 45,705 | 279 | 1,027 | 163.817204 | 0.673522 | 0 | 0 | 0.464945 | 0 | 0.313653 | 0.742545 | 0.4766 | 0 | 0 | 0 | 0 | 0.01107 | 1 | 0.01107 | false | 0 | 0.01107 | 0 | 0.02583 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
40d2878d33026b03b359ba15ecb1df444b2388d3 | 147,377 | py | Python | src/single_use/test_velocity_definitions_sigma_observable.py | MehnaazAsad/RESOLVE_Statistics | a7bdcc896ca2c51ab3417c46f07efe8c16825597 | [
"MIT"
] | 1 | 2020-02-22T02:18:55.000Z | 2020-02-22T02:18:55.000Z | src/single_use/test_velocity_definitions_sigma_observable.py | MehnaazAsad/RESOLVE_Statistics | a7bdcc896ca2c51ab3417c46f07efe8c16825597 | [
"MIT"
] | null | null | null | src/single_use/test_velocity_definitions_sigma_observable.py | MehnaazAsad/RESOLVE_Statistics | a7bdcc896ca2c51ab3417c46f07efe8c16825597 | [
"MIT"
] | 1 | 2020-02-22T02:27:49.000Z | 2020-02-22T02:27:49.000Z | """
{This script tests different measurements of velocity for second observable.}
"""
from cosmo_utils.utils import work_paths as cwpaths
import matplotlib.pyplot as plt
from matplotlib import rc
import pandas as pd
import numpy as np
import scipy as sp
import random
import math
import os
rc('font', **{'family': 'san... | 34.873876 | 138 | 0.63592 | 22,037 | 147,377 | 3.988474 | 0.043926 | 0.035418 | 0.022937 | 0.020309 | 0.922498 | 0.901882 | 0.883894 | 0.866953 | 0.852766 | 0.846793 | 0 | 0.051982 | 0.237425 | 147,377 | 4,225 | 139 | 34.88213 | 0.730091 | 0.259125 | 0 | 0.803742 | 0 | 0.007833 | 0.080141 | 0.012941 | 0 | 0 | 0 | 0.001183 | 0 | 1 | 0.02698 | false | 0 | 0.013925 | 0.000435 | 0.067885 | 0.005657 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
40ff6e9eeb699752f1f079da84dcd4b6fdaa6594 | 11,439 | py | Python | pyswmm/lidunits.py | kmmacro/pyswmm | 028fc9a2c731bed4129ee100e295900d989867fd | [
"BSD-2-Clause"
] | 186 | 2015-06-12T13:24:02.000Z | 2022-03-24T10:19:43.000Z | pyswmm/lidunits.py | kmmacro/pyswmm | 028fc9a2c731bed4129ee100e295900d989867fd | [
"BSD-2-Clause"
] | 256 | 2015-02-16T02:47:20.000Z | 2022-03-18T16:08:09.000Z | pyswmm/lidunits.py | kmmacro/pyswmm | 028fc9a2c731bed4129ee100e295900d989867fd | [
"BSD-2-Clause"
] | 99 | 2015-01-11T17:06:44.000Z | 2022-03-15T09:26:44.000Z | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2018 Jennifer Wu
#
# Licensed under the terms of the BSD2 License
# See LICENSE.txt for details
# -----------------------------------------------------------------------------
from pyswmm.toolkitapi i... | 29.330769 | 79 | 0.498208 | 925 | 11,439 | 5.997838 | 0.127568 | 0.060022 | 0.13266 | 0.126172 | 0.805876 | 0.805876 | 0.777037 | 0.733958 | 0.733958 | 0.697188 | 0 | 0.000903 | 0.419267 | 11,439 | 389 | 80 | 29.40617 | 0.834262 | 0.236821 | 0 | 0.741379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189655 | false | 0 | 0.005747 | 0 | 0.385057 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
904c9295f90dc1cd296b7f50d5f4b920f786c384 | 5,440 | py | Python | great_international/migrations/0060_auto_20190730_1247.py | uktrade/directory-cms | 8c8d13ce29ea74ddce7a40f3dd29c8847145d549 | [
"MIT"
] | 6 | 2018-03-20T11:19:07.000Z | 2021-10-05T07:53:11.000Z | great_international/migrations/0060_auto_20190730_1247.py | uktrade/directory-cms | 8c8d13ce29ea74ddce7a40f3dd29c8847145d549 | [
"MIT"
] | 802 | 2018-02-05T14:16:13.000Z | 2022-02-10T10:59:21.000Z | great_international/migrations/0060_auto_20190730_1247.py | uktrade/directory-cms | 8c8d13ce29ea74ddce7a40f3dd29c8847145d549 | [
"MIT"
] | 6 | 2019-01-22T13:19:37.000Z | 2019-07-01T10:35:26.000Z | # Generated by Django 2.2.2 on 2019-07-30 12:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('great_international', '0059_merge_20190729_1601'),
]
operations = [
migrations.RemoveField(
model_name='capitalinvestopportunitypage',
... | 33.580247 | 60 | 0.604779 | 401 | 5,440 | 7.820449 | 0.119701 | 0.247768 | 0.30676 | 0.353954 | 0.941327 | 0.941327 | 0.921556 | 0.91773 | 0.914541 | 0.124043 | 0 | 0.008247 | 0.309007 | 5,440 | 161 | 61 | 33.78882 | 0.826018 | 0.008272 | 0 | 0.716129 | 1 | 0 | 0.348229 | 0.293158 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006452 | 0 | 0.025806 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
90d1eafc137dc90ae2d1b14c3e4a2132259fbad5 | 21,454 | py | Python | testArray.py | JHMeusener/detectron2-ResNeSt | 6abab6fb9496a528f6aa2d4e1e27f3e7ceb42685 | [
"Apache-2.0"
] | null | null | null | testArray.py | JHMeusener/detectron2-ResNeSt | 6abab6fb9496a528f6aa2d4e1e27f3e7ceb42685 | [
"Apache-2.0"
] | null | null | null | testArray.py | JHMeusener/detectron2-ResNeSt | 6abab6fb9496a528f6aa2d4e1e27f3e7ceb42685 | [
"Apache-2.0"
] | null | null | null | from detectron2.structures import BoxMode
# Some basic setup:
# Setup detectron2 logger
import detectron2
# import some common libraries
import numpy as np
import os, json, cv2, random
# import some common detectron2 utilities
from detectron2 import model_zoo
from detectron2.engine import DefaultPredictor
from detect... | 42.483168 | 166 | 0.729841 | 2,854 | 21,454 | 5.283812 | 0.124036 | 0.037135 | 0.015318 | 0.014854 | 0.85683 | 0.84118 | 0.830769 | 0.820358 | 0.808157 | 0.802321 | 0 | 0.037461 | 0.140207 | 21,454 | 504 | 167 | 42.56746 | 0.780061 | 0.152233 | 0 | 0.801508 | 0 | 0 | 0.132672 | 0.067819 | 0 | 0 | 0 | 0 | 0.005025 | 1 | 0.012563 | false | 0 | 0.158291 | 0 | 0.201005 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2915aacff529dd85964ce6c61b91e898358999e3 | 30,270 | py | Python | tests/system_tests_fallback_dest.py | franz1981/qpid-dispatch | 21ee691eb0066d8061bf612f2fffa4c226ae7abb | [
"Apache-2.0"
] | null | null | null | tests/system_tests_fallback_dest.py | franz1981/qpid-dispatch | 21ee691eb0066d8061bf612f2fffa4c226ae7abb | [
"Apache-2.0"
] | null | null | null | tests/system_tests_fallback_dest.py | franz1981/qpid-dispatch | 21ee691eb0066d8061bf612f2fffa4c226ae7abb | [
"Apache-2.0"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 38.70844 | 127 | 0.575685 | 3,490 | 30,270 | 4.795989 | 0.083095 | 0.074919 | 0.053531 | 0.080296 | 0.834568 | 0.819632 | 0.792986 | 0.7569 | 0.742263 | 0.694169 | 0 | 0.023677 | 0.313512 | 30,270 | 781 | 128 | 38.758003 | 0.781809 | 0.025372 | 0 | 0.715421 | 0 | 0 | 0.037586 | 0 | 0 | 0 | 0 | 0 | 0.079491 | 1 | 0.166932 | false | 0 | 0.031797 | 0 | 0.213037 | 0.00159 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2934c370560b41240f36b42eeda6d3868de2647e | 69 | py | Python | booleans.py | MafikengZ/wethinkcode_bootcamp020 | 523b6491165b90120d8ca0ab4e2b074da8a85512 | [
"MIT"
] | null | null | null | booleans.py | MafikengZ/wethinkcode_bootcamp020 | 523b6491165b90120d8ca0ab4e2b074da8a85512 | [
"MIT"
] | null | null | null | booleans.py | MafikengZ/wethinkcode_bootcamp020 | 523b6491165b90120d8ca0ab4e2b074da8a85512 | [
"MIT"
] | null | null | null | print(42 == 42)
print(3 != 3)
print(3 >= 4)
print(0 < 6)
print(6 < 0) | 13.8 | 15 | 0.536232 | 15 | 69 | 2.466667 | 0.4 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218182 | 0.202899 | 69 | 5 | 16 | 13.8 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 1 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
2940e9b6227ab34823bcb8b61b8df5947b657889 | 6,257 | py | Python | car_racing/network.py | shatayu/copg | 830b654c8db7ec74f84ee8584e2215200cf8a68d | [
"MIT"
] | 16 | 2020-06-22T17:13:36.000Z | 2022-01-29T10:46:20.000Z | car_racing/network.py | shatayu/copg | 830b654c8db7ec74f84ee8584e2215200cf8a68d | [
"MIT"
] | 2 | 2020-08-19T11:31:35.000Z | 2020-11-12T16:11:15.000Z | car_racing/network.py | shatayu/copg | 830b654c8db7ec74f84ee8584e2215200cf8a68d | [
"MIT"
] | 7 | 2020-06-24T21:54:17.000Z | 2021-08-30T03:58:32.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.distributions import Normal
def init_weights(m):
if isinstance(m, nn.Linear):
nn.init.normal_(m.weight, mean=0., std=0.1)
nn.init.constant_(m.bias, 0.1)
class ActorVar(nn.Module):
def __init__(self, state_dim, action... | 35.95977 | 82 | 0.486175 | 754 | 6,257 | 3.838196 | 0.082228 | 0.08293 | 0.076019 | 0.089841 | 0.908086 | 0.901175 | 0.901175 | 0.901175 | 0.899102 | 0.87284 | 0 | 0.065384 | 0.393799 | 6,257 | 174 | 83 | 35.95977 | 0.697601 | 0.059773 | 0 | 0.825758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0.030303 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
46584e45dbd6f9126857d53dfb2607fb7dbada5e | 167 | py | Python | code_icc/archs/__init__.py | ThmCuong/IIC-Python3 | 5a02b40ffa07b159fa7e89cf5b4ed781f4798ff1 | [
"MIT"
] | null | null | null | code_icc/archs/__init__.py | ThmCuong/IIC-Python3 | 5a02b40ffa07b159fa7e89cf5b4ed781f4798ff1 | [
"MIT"
] | null | null | null | code_icc/archs/__init__.py | ThmCuong/IIC-Python3 | 5a02b40ffa07b159fa7e89cf5b4ed781f4798ff1 | [
"MIT"
] | null | null | null | # from code_icc.archs.cluster import *
# from code_icc.archs.segmentation import *
# from code_icc.archs.semisup import *
from . import cluster, segmentation, semisup
| 33.4 | 44 | 0.784431 | 23 | 167 | 5.565217 | 0.347826 | 0.1875 | 0.257813 | 0.375 | 0.34375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125749 | 167 | 4 | 45 | 41.75 | 0.876712 | 0.688623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
466dc7de3e009cba0b24e356915fdf7df38eeaf0 | 2,612 | py | Python | segmenters/audio/AudioSlicer/tests/test_audioslicer.py | sidphbot/jina-hub | ab195030b72353c9b803874e2c99829fb75e1b17 | [
"Apache-2.0"
] | 106 | 2020-04-28T10:24:08.000Z | 2022-03-15T02:30:27.000Z | segmenters/audio/AudioSlicer/tests/test_audioslicer.py | sidphbot/jina-hub | ab195030b72353c9b803874e2c99829fb75e1b17 | [
"Apache-2.0"
] | 6,808 | 2020-05-01T04:13:43.000Z | 2021-06-23T08:04:02.000Z | segmenters/audio/AudioSlicer/tests/test_audioslicer.py | sidphbot/jina-hub | ab195030b72353c9b803874e2c99829fb75e1b17 | [
"Apache-2.0"
] | 86 | 2020-04-29T09:50:29.000Z | 2022-01-25T05:42:44.000Z | import numpy as np
from .. import AudioSlicer
def test_slice_mono():
n_frames = 100
frame_length = 2048
signal_orig = np.random.randn(frame_length * n_frames)
segmenter = AudioSlicer(frame_length, frame_length)
segmented_chunks_per_doc = segmenter.segment(np.stack([signal_orig, signal_orig]))
... | 34.826667 | 117 | 0.697933 | 364 | 2,612 | 4.68956 | 0.159341 | 0.167545 | 0.079672 | 0.077329 | 0.891623 | 0.878149 | 0.834798 | 0.834798 | 0.834798 | 0.821324 | 0 | 0.015896 | 0.205207 | 2,612 | 74 | 118 | 35.297297 | 0.806358 | 0 | 0 | 0.714286 | 0 | 0 | 0.019525 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.071429 | false | 0 | 0.035714 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4674a7628a51d24603356972bab35aa444bde7eb | 8,271 | py | Python | torpido/wavelet/wavelets/dmey.py | AP-Atul/Torpido | a646b4d6de7f2e2c96de4c64ce3113f53e3931c2 | [
"Unlicense"
] | 21 | 2020-12-23T07:13:10.000Z | 2022-01-12T10:32:22.000Z | wavelet/wavelets/dmey.py | AP-Atul/wavelets-ext | 00ced22462c369584ebd32f9b5f357f092de0142 | [
"MIT"
] | 2 | 2020-12-30T10:45:42.000Z | 2021-09-25T09:52:00.000Z | wavelet/wavelets/dmey.py | AP-Atul/wavelets-ext | 00ced22462c369584ebd32f9b5f357f092de0142 | [
"MIT"
] | 1 | 2021-02-06T21:39:41.000Z | 2021-02-06T21:39:41.000Z | """ Discrete Meyer (FIR Approximation) wavelet """
class Meyer:
"""
Properties
----------
near symmetric, orthogonal, biorthogonal
All values are from http://wavelets.pybytes.com/wavelet/dmey/
"""
__name__ = "Meyer Wavelet"
__motherWaveletLength__ = 62 # length of the mother wavele... | 29.434164 | 72 | 0.61226 | 671 | 8,271 | 7.529061 | 0.131148 | 0.014252 | 0.030087 | 0.031671 | 0.917656 | 0.917656 | 0.917656 | 0.917656 | 0.917656 | 0.917656 | 0 | 0.771029 | 0.29138 | 8,271 | 280 | 73 | 29.539286 | 0.09094 | 0.038448 | 0 | 0.953846 | 0 | 0 | 0.001643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.030769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 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 | 9 |
d3b9182e3ae81e3318899907e0087a5c6d297bfd | 71 | py | Python | poputils/boto/ec2.py | GaretJax/pop-utils | 2cdfaf24c2f8678edfab1f430c07611d488247d5 | [
"MIT"
] | null | null | null | poputils/boto/ec2.py | GaretJax/pop-utils | 2cdfaf24c2f8678edfab1f430c07611d488247d5 | [
"MIT"
] | 1 | 2021-03-22T17:12:51.000Z | 2021-03-22T17:12:51.000Z | poputils/boto/ec2.py | GaretJax/pop-utils | 2cdfaf24c2f8678edfab1f430c07611d488247d5 | [
"MIT"
] | null | null | null | import boto.ec2
class EC2Connection(boto.ec2.EC2Connection):
pass | 14.2 | 44 | 0.774648 | 9 | 71 | 6.111111 | 0.666667 | 0.254545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0.140845 | 71 | 5 | 45 | 14.2 | 0.836066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
d3d2670fc23a6fee1dad79d47791611c9fe707c5 | 25,860 | py | Python | tests/test_benchmark.py | ajayarora1235/Orion | 69e258ebcb2c19e63054453b3cb2cd74043ef433 | [
"MIT"
] | 1 | 2021-06-05T07:46:57.000Z | 2021-06-05T07:46:57.000Z | tests/test_benchmark.py | ajayarora1235/Orion | 69e258ebcb2c19e63054453b3cb2cd74043ef433 | [
"MIT"
] | 1 | 2020-12-13T12:45:57.000Z | 2020-12-13T12:45:57.000Z | tests/test_benchmark.py | ajayarora1235/Orion | 69e258ebcb2c19e63054453b3cb2cd74043ef433 | [
"MIT"
] | null | null | null | from unittest import TestCase
from unittest.mock import ANY, Mock, call, patch
import pandas as pd
from mlblocks import MLPipeline
from orion import benchmark
from orion.evaluation import CONTEXTUAL_METRICS as METRICS
from orion.evaluation import contextual_confusion_matrix
def test__sort_leaderboard_rank():
ra... | 34.206349 | 99 | 0.643426 | 2,869 | 25,860 | 5.523876 | 0.044615 | 0.036913 | 0.051552 | 0.03155 | 0.863327 | 0.850013 | 0.833922 | 0.814488 | 0.791646 | 0.766911 | 0 | 0.005533 | 0.252166 | 25,860 | 755 | 100 | 34.251656 | 0.813951 | 0 | 0 | 0.726804 | 0 | 0 | 0.09768 | 0.048299 | 0 | 0 | 0 | 0 | 0.12543 | 1 | 0.053265 | false | 0 | 0.012027 | 0.001718 | 0.068729 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d3e949e765461c77fd3e3ad1ea45c11d2a42ce98 | 56,129 | py | Python | etl_base/dags/sqlg_jobs_QAM.py | buckylee2019/sqlg-airflow | 37610a23b99bea8d9fdc8b066a01736ff2ff0c9d | [
"Apache-2.0"
] | null | null | null | etl_base/dags/sqlg_jobs_QAM.py | buckylee2019/sqlg-airflow | 37610a23b99bea8d9fdc8b066a01736ff2ff0c9d | [
"Apache-2.0"
] | null | null | null | etl_base/dags/sqlg_jobs_QAM.py | buckylee2019/sqlg-airflow | 37610a23b99bea8d9fdc8b066a01736ff2ff0c9d | [
"Apache-2.0"
] | 1 | 2022-03-10T03:47:35.000Z | 2022-03-10T03:47:35.000Z |
# -*- coding: utf-8 -*-
# Author : Jesse Wei
# LastUpdate : 2020/10/04
# Impact : Jobs generated by SQLG
# Message : Humanity towards others, we live by sharing. Fear can hold you prisoner, only hope can set you free.
# from __future__ import print_function
import logging
import airflow
from d... | 28.887802 | 118 | 0.644088 | 6,722 | 56,129 | 4.911782 | 0.043142 | 0.143199 | 0.093225 | 0.083533 | 0.906382 | 0.891813 | 0.885756 | 0.884363 | 0.884272 | 0.883303 | 0 | 0.001354 | 0.197385 | 56,129 | 1,942 | 119 | 28.902678 | 0.731521 | 0.068236 | 0 | 0.628665 | 1 | 0 | 0.302196 | 0.04803 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.007166 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
310680c39f7251ea7c01f44bc8b4c3e991f6d02b | 20,700 | py | Python | hydroserver/hydroserver_wof/wof_database_models/odm2_sqlite.py | kjlippold/his_hydroserver | aaf3939965d12dd5bc74f69d22b653ce548bec0a | [
"MIT"
] | 1 | 2021-01-27T19:19:05.000Z | 2021-01-27T19:19:05.000Z | hydroserver/hydroserver_wof/wof_database_models/odm2_sqlite.py | CUAHSI-APPS/his_hydroserver | aaf3939965d12dd5bc74f69d22b653ce548bec0a | [
"MIT"
] | 1 | 2019-09-27T16:20:49.000Z | 2019-09-27T16:20:49.000Z | hydroserver/hydroserver_wof/wof_database_models/odm2_sqlite.py | kjlippold/his_hydroserver | aaf3939965d12dd5bc74f69d22b653ce548bec0a | [
"MIT"
] | 1 | 2020-06-08T21:43:38.000Z | 2020-06-08T21:43:38.000Z | import pandas as pd
import sqlite3
import datetime
from hydroserver_wof.dao import WofModels
def get_sites(network, database, database_path, params):
try:
sql_connect = sqlite3.connect(database_path, isolation_level=None)
except:
return "400_Bad_Request"
cursor = sql_connect.cursor()
... | 41.153082 | 135 | 0.582947 | 1,723 | 20,700 | 6.793384 | 0.082995 | 0.037676 | 0.040666 | 0.033832 | 0.902606 | 0.898932 | 0.881845 | 0.821956 | 0.807689 | 0.799744 | 0 | 0.003058 | 0.352271 | 20,700 | 502 | 136 | 41.23506 | 0.869928 | 0 | 0 | 0.818182 | 0 | 0 | 0.619807 | 0.187488 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012285 | false | 0 | 0.009828 | 0 | 0.046683 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
31213a15852432ac7b791d4e83bd3ef8e8e8e63e | 1,510 | py | Python | tests/test_542.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_542.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_542.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pytest
"""
Test 542. 01 Matrix
"""
@pytest.fixture(scope="session")
def init_variables_542():
from src.leetcode_542_01_matrix import Solution
solution = Solution()
def _init_variables_542():
return solution
yield _init_variables_542
class TestClass542:
d... | 20.684932 | 88 | 0.545695 | 204 | 1,510 | 3.813725 | 0.147059 | 0.097686 | 0.107969 | 0.092545 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0.135849 | 0.298013 | 1,510 | 72 | 89 | 20.972222 | 0.598113 | 0.02649 | 0 | 0.904762 | 0 | 0 | 0.009901 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.190476 | false | 0 | 0.095238 | 0.047619 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3137b1f52c14d1677c4bb0de3f57ab45e17f33e3 | 14,878 | py | Python | Simulation/HaptotaxisTest2DSteppables.py | ashleefv/MetastaticCancerECMRemodelingCC3D | 614655bc9e682990096cf033e7dc35b198256b17 | [
"BSD-3-Clause"
] | 1 | 2020-08-25T13:00:44.000Z | 2020-08-25T13:00:44.000Z | Simulation/HaptotaxisTest2DSteppables.py | ashleefv/MetastaticCancerECMRemodelingCC3D | 614655bc9e682990096cf033e7dc35b198256b17 | [
"BSD-3-Clause"
] | null | null | null | Simulation/HaptotaxisTest2DSteppables.py | ashleefv/MetastaticCancerECMRemodelingCC3D | 614655bc9e682990096cf033e7dc35b198256b17 | [
"BSD-3-Clause"
] | 1 | 2019-06-26T17:32:47.000Z | 2019-06-26T17:32:47.000Z | from PySteppables import *
import CompuCell
import sys
import random
from PlayerPython import *
import CompuCellSetup
from math import *
import numpy as np
from random import uniform
class HaptotaxisTest2DSteppable(SteppableBasePy):
def __init__(self,_simulator,_frequency=1):
SteppableBasePy.__init__(s... | 36.465686 | 97 | 0.574069 | 1,602 | 14,878 | 5.119226 | 0.086142 | 0.09511 | 0.024875 | 0.012681 | 0.873308 | 0.863553 | 0.858188 | 0.858188 | 0.851725 | 0.851116 | 0 | 0.014345 | 0.334655 | 14,878 | 407 | 98 | 36.555283 | 0.814123 | 0.133486 | 0 | 0.813688 | 0 | 0 | 0.054492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011407 | 0.034221 | null | null | 0.068441 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
31bed4e3aa554d44bdf3c40a10db382e4ac6602d | 83,029 | py | Python | src/deep_image_to_image_models.py | furgerf/GAN-for-dermatologic-imaging | e90b06c46c7693e984a4c5b067e18460113cd23b | [
"Apache-2.0"
] | null | null | null | src/deep_image_to_image_models.py | furgerf/GAN-for-dermatologic-imaging | e90b06c46c7693e984a4c5b067e18460113cd23b | [
"Apache-2.0"
] | 9 | 2020-09-26T01:22:00.000Z | 2022-01-22T18:00:52.000Z | src/deep_image_to_image_models.py | furgerf/GAN-for-dermatologic-imaging | e90b06c46c7693e984a4c5b067e18460113cd23b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# pylint: disable=arguments-differ,unused-import
import tensorflow as tf
from tensorflow.keras.layers import (BatchNormalization, Dense, Dropout,
Flatten, SpatialDropout2D)
from tensorflow.nn import leaky_relu, tanh
from deep_model_blocks import (BottleneckR... | 35.912197 | 116 | 0.635019 | 10,192 | 83,029 | 5.014717 | 0.020506 | 0.149286 | 0.098259 | 0.038036 | 0.948738 | 0.943221 | 0.924927 | 0.920427 | 0.918822 | 0.899237 | 0 | 0.03723 | 0.24754 | 83,029 | 2,311 | 117 | 35.927737 | 0.780844 | 0.013321 | 0 | 0.849421 | 0 | 0 | 0.026606 | 0 | 0 | 0 | 0 | 0 | 0.006619 | 1 | 0.083839 | false | 0 | 0.002758 | 0.006619 | 0.179812 | 0.026475 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
31cea93ba87683ab75d446da6c69a74bf3982b37 | 175 | py | Python | tech_project/lib/python2.7/site-packages/formtools/wizard/storage/exceptions.py | priyamshah112/Project-Descripton-Blog | 8e01016c6be79776c4f5ca75563fa3daa839e39e | [
"MIT"
] | 331 | 2015-01-09T01:25:47.000Z | 2019-10-01T01:18:13.000Z | tech_project/lib/python2.7/site-packages/formtools/wizard/storage/exceptions.py | priyamshah112/Project-Descripton-Blog | 8e01016c6be79776c4f5ca75563fa3daa839e39e | [
"MIT"
] | 97 | 2015-01-07T11:33:19.000Z | 2019-09-29T16:41:56.000Z | tech_project/lib/python2.7/site-packages/formtools/wizard/storage/exceptions.py | priyamshah112/Project-Descripton-Blog | 8e01016c6be79776c4f5ca75563fa3daa839e39e | [
"MIT"
] | 99 | 2015-01-20T13:17:28.000Z | 2019-09-29T02:26:30.000Z | from django.core.exceptions import ImproperlyConfigured
class MissingStorage(ImproperlyConfigured):
pass
class NoFileStorageConfigured(ImproperlyConfigured):
pass
| 17.5 | 55 | 0.828571 | 14 | 175 | 10.357143 | 0.714286 | 0.331034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125714 | 175 | 9 | 56 | 19.444444 | 0.947712 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.4 | 0.2 | 0 | 0.6 | 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 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
9eca03ed403a1faa164427d5ffb0c6c284c59967 | 5,848 | py | Python | modoboa/admin/postfix_maps.py | vinaebizs/modoboa | fb1e7f4c023b7eb6be3aa77174bfa12fc653670e | [
"0BSD"
] | null | null | null | modoboa/admin/postfix_maps.py | vinaebizs/modoboa | fb1e7f4c023b7eb6be3aa77174bfa12fc653670e | [
"0BSD"
] | null | null | null | modoboa/admin/postfix_maps.py | vinaebizs/modoboa | fb1e7f4c023b7eb6be3aa77174bfa12fc653670e | [
"0BSD"
] | null | null | null | """Map file definitions for postfix."""
class DomainsMap(object):
"""Map to list all domains."""
filename = 'sql-domains.cf'
mysql = (
"SELECT name FROM admin_domain "
"WHERE name='%s' AND type='domain' AND enabled=1"
)
postgres = (
"SELECT name FROM admin_domain "
... | 35.017964 | 79 | 0.633379 | 823 | 5,848 | 4.387606 | 0.117861 | 0.067294 | 0.093049 | 0.053171 | 0.836887 | 0.804486 | 0.804486 | 0.804486 | 0.804486 | 0.777901 | 0 | 0.005508 | 0.254959 | 5,848 | 166 | 80 | 35.228916 | 0.823273 | 0.067202 | 0 | 0.6875 | 0 | 0.023438 | 0.693018 | 0.099926 | 0 | 0 | 0 | 0.006024 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.273438 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9ef6b457989b8796f95114adbc70c4ad849b972d | 18,369 | py | Python | staging/staging/views.py | lexis-project/ddi-service-apis | 9e96c4159154d70613b1977a8ea28374c038b463 | [
"Apache-2.0"
] | null | null | null | staging/staging/views.py | lexis-project/ddi-service-apis | 9e96c4159154d70613b1977a8ea28374c038b463 | [
"Apache-2.0"
] | null | null | null | staging/staging/views.py | lexis-project/ddi-service-apis | 9e96c4159154d70613b1977a8ea28374c038b463 | [
"Apache-2.0"
] | null | null | null | from . import errors
from . import trigger_task
from . import validate_input
from . import replication_api
from . import staging_api
from . import utils
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
import requests
import json
from celery.result import AsyncResult
from irods.... | 36.885542 | 82 | 0.575045 | 1,857 | 18,369 | 5.579429 | 0.092623 | 0.068333 | 0.048837 | 0.057716 | 0.817199 | 0.815172 | 0.803783 | 0.788534 | 0.780716 | 0.774829 | 0 | 0.01237 | 0.317873 | 18,369 | 497 | 83 | 36.959759 | 0.814525 | 0 | 0 | 0.781385 | 0 | 0 | 0.127552 | 0.00147 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036797 | false | 0 | 0.028139 | 0.002165 | 0.251082 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9efad63b81fab085d87ebaebbb60590d367401f4 | 189 | py | Python | iris_sdk/models/data/feature_lidb.py | NumberAI/python-bandwidth-iris | 0e05f79d68b244812afb97e00fd65b3f46d00aa3 | [
"MIT"
] | 2 | 2020-04-13T13:47:59.000Z | 2022-02-23T20:32:41.000Z | iris_sdk/models/data/feature_lidb.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2020-09-18T20:59:24.000Z | 2021-08-25T16:51:42.000Z | iris_sdk/models/data/feature_lidb.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2018-12-12T14:39:50.000Z | 2020-11-17T21:42:29.000Z | #!/usr/bin/env python
from iris_sdk.models.base_resource import BaseData
from iris_sdk.models.maps.feature_lidb import FeatureLidbMap
class FeatureLidb(FeatureLidbMap, BaseData):
pass | 27 | 60 | 0.825397 | 26 | 189 | 5.846154 | 0.730769 | 0.105263 | 0.144737 | 0.223684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100529 | 189 | 7 | 61 | 27 | 0.894118 | 0.10582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
73364968df69d9a3bb9a8adf530117abe3959f8c | 114 | py | Python | simuvex/simuvex/engines/vex/statements/store.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | 86 | 2015-08-06T23:25:07.000Z | 2022-02-17T14:58:22.000Z | simuvex/simuvex/engines/vex/statements/store.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | 132 | 2015-09-10T19:06:59.000Z | 2018-10-04T20:36:45.000Z | simuvex/simuvex/engines/vex/statements/store.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | 80 | 2015-08-07T10:30:20.000Z | 2020-03-21T14:45:28.000Z | print '... Importing simuvex/engines/vex/statements/store.py ...'
from angr.engines.vex.statements.store import *
| 38 | 65 | 0.763158 | 15 | 114 | 5.8 | 0.733333 | 0.229885 | 0.45977 | 0.574713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 114 | 2 | 66 | 57 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0.342105 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 1 | null | null | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 8 |
733aa879e3bf6ea9c896e5d126cf949ba797d82f | 5,196 | py | Python | Lib/site-packages/requests_unixsocket/tests/test_requests_unixsocket.py | mchrysl/spinal-abnormality-predictor | 90fc769d79a39d690a76aa6e7ce02df9cca8cf86 | [
"0BSD"
] | 172 | 2015-01-16T01:39:33.000Z | 2022-03-17T06:26:45.000Z | requests_unixsocket/tests/test_requests_unixsocket.py | openstack/deb-python-requests-unixsocket | 0dd4da72d78eea128e4a1c38ae4bd9bba8f535df | [
"Apache-2.0"
] | 38 | 2015-01-16T01:39:16.000Z | 2021-12-28T04:05:48.000Z | requests_unixsocket/tests/test_requests_unixsocket.py | openstack/deb-python-requests-unixsocket | 0dd4da72d78eea128e4a1c38ae4bd9bba8f535df | [
"Apache-2.0"
] | 25 | 2015-01-16T15:22:42.000Z | 2021-12-22T19:49:52.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for requests_unixsocket"""
import logging
import pytest
import requests
import requests_unixsocket
from requests_unixsocket.testutils import UnixSocketServerThread
logger = logging.getLogger(__name__)
def test_unix_domain_adapter_ok():
with UnixSocketSe... | 42.590164 | 79 | 0.574288 | 571 | 5,196 | 5.10683 | 0.182137 | 0.060014 | 0.062414 | 0.05144 | 0.818587 | 0.780521 | 0.765432 | 0.765432 | 0.765432 | 0.765432 | 0 | 0.005663 | 0.286374 | 5,196 | 121 | 80 | 42.942149 | 0.780744 | 0.013857 | 0 | 0.708333 | 0 | 0 | 0.216533 | 0.044753 | 0 | 0 | 0 | 0 | 0.302083 | 1 | 0.052083 | false | 0 | 0.052083 | 0 | 0.104167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7360603249f6640aa04229cf9c63ca83dca1c561 | 70 | py | Python | testa.py | igorifaresi/md-abstractions | adb6ad2c16785c8ed2a33d24b98484c8255b6ec7 | [
"MIT"
] | null | null | null | testa.py | igorifaresi/md-abstractions | adb6ad2c16785c8ed2a33d24b98484c8255b6ec7 | [
"MIT"
] | null | null | null | testa.py | igorifaresi/md-abstractions | adb6ad2c16785c8ed2a33d24b98484c8255b6ec7 | [
"MIT"
] | null | null | null | def par(i):
return i % 2 == 0
def impar(i):
return i % 2 == 1 | 14 | 21 | 0.485714 | 14 | 70 | 2.428571 | 0.571429 | 0.411765 | 0.470588 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.342857 | 70 | 5 | 22 | 14 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
b40e302b8903dd29f8a10575231826afab1fc3ad | 298 | py | Python | src/momento/_authorization_interceptor.py | kvcache/client-sdk-python | 433f69425ff8a6de2e56bf2689f4560a088d00dc | [
"Apache-2.0"
] | null | null | null | src/momento/_authorization_interceptor.py | kvcache/client-sdk-python | 433f69425ff8a6de2e56bf2689f4560a088d00dc | [
"Apache-2.0"
] | 10 | 2022-02-10T21:58:53.000Z | 2022-03-29T00:58:03.000Z | src/momento/_authorization_interceptor.py | kvcache/client-sdk-python | 433f69425ff8a6de2e56bf2689f4560a088d00dc | [
"Apache-2.0"
] | 1 | 2022-02-10T21:02:40.000Z | 2022-02-10T21:02:40.000Z | from ._generic_client_interceptor import _GenericClientInterceptor
from . import _header_client_interceptor
def get_authorization_interceptor(auth_token: str) -> _GenericClientInterceptor:
return _header_client_interceptor.header_adder_interceptor(
"authorization", auth_token
)
| 29.8 | 80 | 0.828859 | 29 | 298 | 7.931034 | 0.517241 | 0.221739 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124161 | 298 | 9 | 81 | 33.111111 | 0.881226 | 0 | 0 | 0 | 0 | 0 | 0.043624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
b43c8152d14a8bffc1a2f334eee6aa7d26fdb23d | 21,488 | py | Python | utils/spider_headers.py | DukeNan/Hotspot | 68e8313ff3abcbd23e74f21e2222af14e8de64b4 | [
"MIT"
] | 3 | 2021-01-26T20:21:18.000Z | 2021-01-27T02:10:20.000Z | utils/spider_headers.py | DukeNan/Hotspot | 68e8313ff3abcbd23e74f21e2222af14e8de64b4 | [
"MIT"
] | 1 | 2022-03-02T15:00:23.000Z | 2022-03-02T15:00:23.000Z | utils/spider_headers.py | DukeNan/Hotspot | 68e8313ff3abcbd23e74f21e2222af14e8de64b4 | [
"MIT"
] | null | null | null | USER_AGENT_LIST = [
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.90 Safari/537.36',
'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.29 Safari/525.13',
'Mozilla/5.0 (Windows; U; Windows NT 6.1; ... | 112.502618 | 221 | 0.674283 | 4,354 | 21,488 | 3.324529 | 0.065457 | 0.100587 | 0.100725 | 0.168014 | 0.868739 | 0.839171 | 0.784732 | 0.755302 | 0.738515 | 0.69361 | 0 | 0.198061 | 0.14073 | 21,488 | 191 | 222 | 112.502618 | 0.585897 | 0 | 0 | 0 | 0 | 0.984293 | 0.928661 | 0.004328 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.