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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
135152c9dd9da9ede2d7290397493e2ab1259931 | 3,573 | bzl | Python | tensorflow/core/platform/build_config.bzl | hugosjoberg/tensorflow | c91c02353d9c6c1b0c851b10e29beb9be23a7597 | [
"Apache-2.0"
] | 1 | 2020-09-22T16:29:56.000Z | 2020-09-22T16:29:56.000Z | tensorflow/core/platform/build_config.bzl | ramoslin/tensorflow | c91c02353d9c6c1b0c851b10e29beb9be23a7597 | [
"Apache-2.0"
] | null | null | null | tensorflow/core/platform/build_config.bzl | ramoslin/tensorflow | c91c02353d9c6c1b0c851b10e29beb9be23a7597 | [
"Apache-2.0"
] | null | null | null | """Provides a redirection point for platform specific implementations of starlark utilities."""
load(
"//tensorflow/core/platform:default/build_config.bzl",
_pyx_library = "pyx_library",
_tf_additional_all_protos = "tf_additional_all_protos",
_tf_additional_binary_deps = "tf_additional_binary_deps",
... | 50.323944 | 95 | 0.854744 | 527 | 3,573 | 4.950664 | 0.108159 | 0.275968 | 0.171713 | 0.045995 | 0.952089 | 0.952089 | 0.952089 | 0.952089 | 0.952089 | 0.952089 | 0 | 0 | 0.095158 | 3,573 | 70 | 96 | 51.042857 | 0.80699 | 0.024909 | 0 | 0 | 0 | 0 | 0.220529 | 0.173951 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.029851 | 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 |
137f3a2d6b0365fb90492e1b344c4687772432d5 | 42,734 | py | Python | test/core_tests/test_parameters.py | webbjj/amuse | 83b2eac906a59f999516418192ff0b263420b27f | [
"Apache-2.0"
] | null | null | null | test/core_tests/test_parameters.py | webbjj/amuse | 83b2eac906a59f999516418192ff0b263420b27f | [
"Apache-2.0"
] | 1 | 2020-01-27T17:01:49.000Z | 2020-01-28T02:09:55.000Z | test/core_tests/test_parameters.py | webbjj/amuse | 83b2eac906a59f999516418192ff0b263420b27f | [
"Apache-2.0"
] | null | null | null | import warnings
from amuse.test import amusetest
from amuse.support.exceptions import AmuseException, AmuseWarning
from amuse.units import nbody_system, generic_unit_system, generic_unit_converter
from amuse.units import units
from amuse.datamodel import parameters
from amuse.support.interface import HandleParameters
... | 32.847041 | 128 | 0.557846 | 4,576 | 42,734 | 5.006774 | 0.049388 | 0.032735 | 0.025665 | 0.028414 | 0.872027 | 0.841997 | 0.801318 | 0.781852 | 0.737026 | 0.69399 | 0 | 0.029445 | 0.344363 | 42,734 | 1,300 | 129 | 32.872308 | 0.788279 | 0.002948 | 0 | 0.73209 | 0 | 0.001963 | 0.09248 | 0.002512 | 0 | 0 | 0 | 0 | 0.142296 | 1 | 0.140334 | false | 0.005888 | 0.008832 | 0.045142 | 0.250245 | 0.011776 | 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 |
b92cf98b271adcfb3b7dd6fe5fb5a26b6512720c | 47 | py | Python | src/evaluation/__init__.py | vineethcv/Kaggle-House_price | 970a7ecf05970bea970fe2d843af5e7c3c0d3e2b | [
"MIT"
] | 1 | 2021-06-04T08:43:28.000Z | 2021-06-04T08:43:28.000Z | src/evaluation/__init__.py | vineethcv/Kaggle-House_price | 970a7ecf05970bea970fe2d843af5e7c3c0d3e2b | [
"MIT"
] | null | null | null | src/evaluation/__init__.py | vineethcv/Kaggle-House_price | 970a7ecf05970bea970fe2d843af5e7c3c0d3e2b | [
"MIT"
] | 1 | 2021-02-04T04:51:48.000Z | 2021-02-04T04:51:48.000Z | from __future__ import print_function, division | 47 | 47 | 0.893617 | 6 | 47 | 6.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 47 | 1 | 47 | 47 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 7 |
b92e5730a0bf005bdc5ff42938439c38f0dcc281 | 124,606 | py | Python | octavia/tests/functional/amphorae/backend/agent/api_server/test_server.py | elastx/octavia | 6253560d22f255c499c91612ac4286dd0d8329e1 | [
"Apache-2.0"
] | 13 | 2015-01-15T21:18:42.000Z | 2015-05-22T18:15:54.000Z | octavia/tests/functional/amphorae/backend/agent/api_server/test_server.py | stackforge/octavia | a94b3101e8005ddd84a4333aa237dbbe3e0c2b43 | [
"Apache-2.0"
] | null | null | null | octavia/tests/functional/amphorae/backend/agent/api_server/test_server.py | stackforge/octavia | a94b3101e8005ddd84a4333aa237dbbe3e0c2b43 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Hewlett-Packard Development Company, L.P.
#
# 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... | 47.378707 | 79 | 0.525833 | 12,967 | 124,606 | 4.814606 | 0.047814 | 0.027679 | 0.037674 | 0.024027 | 0.894395 | 0.87314 | 0.852061 | 0.838157 | 0.818472 | 0.796656 | 0 | 0.029802 | 0.362599 | 124,606 | 2,629 | 80 | 47.396729 | 0.756245 | 0.01654 | 0 | 0.769803 | 0 | 0 | 0.140437 | 0.059114 | 0 | 0 | 0 | 0 | 0.124289 | 1 | 0.029322 | false | 0 | 0.008753 | 0 | 0.03895 | 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 |
b94c39e73f354ee0844306b6fdeda5242c9c0e88 | 110 | py | Python | venv/lib/python3.6/site-packages/murmurhash/__init__.py | lumierra/project-flask | 6e27148299a283c92f5d758d269f3b5fc6e2163e | [
"MIT"
] | 1 | 2018-10-30T07:19:27.000Z | 2018-10-30T07:19:27.000Z | venv/lib/python3.6/site-packages/murmurhash/__init__.py | lumierra/project-flask | 6e27148299a283c92f5d758d269f3b5fc6e2163e | [
"MIT"
] | 4 | 2020-07-26T02:10:42.000Z | 2021-03-31T18:48:58.000Z | venv/lib/python3.6/site-packages/murmurhash/__init__.py | lumierra/project-flask | 6e27148299a283c92f5d758d269f3b5fc6e2163e | [
"MIT"
] | 1 | 2020-07-25T23:57:23.000Z | 2020-07-25T23:57:23.000Z | import os
def get_include():
return os.path.join(os.path.dirname(os.path.abspath(__file__)), 'include')
| 18.333333 | 78 | 0.718182 | 17 | 110 | 4.352941 | 0.647059 | 0.243243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118182 | 110 | 5 | 79 | 22 | 0.762887 | 0 | 0 | 0 | 0 | 0 | 0.063636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
b96e4f1957e74e86d054c04b12fb3239033886b0 | 3,369 | py | Python | display_tools.py | sorix6/CarND-Vehicle-Detection | 49c51f0872f5f390feef2c13d04832f541ec76ec | [
"MIT"
] | null | null | null | display_tools.py | sorix6/CarND-Vehicle-Detection | 49c51f0872f5f390feef2c13d04832f541ec76ec | [
"MIT"
] | null | null | null | display_tools.py | sorix6/CarND-Vehicle-Detection | 49c51f0872f5f390feef2c13d04832f541ec76ec | [
"MIT"
] | null | null | null | import cv2
from tools import get_hog_features
from random import randint
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
def displayDifferentHOG(veh_images, nonveh_images):
rand_indexes = []
for i in range(10):
rand_indexes.append(randint(0, len(veh_images)))
for i in range(len(rand_indexes))... | 35.09375 | 81 | 0.711487 | 549 | 3,369 | 4.092896 | 0.15847 | 0.056965 | 0.056075 | 0.064085 | 0.894971 | 0.894971 | 0.871829 | 0.864263 | 0.836671 | 0.836671 | 0 | 0.068141 | 0.168002 | 3,369 | 96 | 82 | 35.09375 | 0.7335 | 0.077768 | 0 | 0.75 | 0 | 0 | 0.084462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015625 | false | 0 | 0.078125 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b9b5f2d41170db5042e4a14deaf25cc4173a5782 | 128 | py | Python | python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_1/_pkg0_1_1/_pkg0_1_1_0/_pkg0_1_1_0_1/_mod0_1_1_0_1_0.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_1/_pkg0_1_1/_pkg0_1_1_0/_pkg0_1_1_0_1/_mod0_1_1_0_1_0.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_1/_pkg0_1_1/_pkg0_1_1_0/_pkg0_1_1_0_1/_mod0_1_1_0_1_0.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | name0_1_1_0_1_0_0 = None
name0_1_1_0_1_0_1 = None
name0_1_1_0_1_0_2 = None
name0_1_1_0_1_0_3 = None
name0_1_1_0_1_0_4 = None | 14.222222 | 24 | 0.820313 | 40 | 128 | 1.875 | 0.175 | 0.266667 | 0.24 | 0.533333 | 0.88 | 0.88 | 0.746667 | 0 | 0 | 0 | 0 | 0.318182 | 0.140625 | 128 | 9 | 25 | 14.222222 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
b9c73da6c9f356e413d59c1b058ebe757d89a012 | 6,900 | py | Python | cs3/auth/registry/v1beta1/registry_api_pb2_grpc.py | cs3org/python-cs3apis | 33f84befa7c6009ce87fb7594128d26ff6e49bbd | [
"Apache-2.0"
] | 1 | 2020-12-17T14:39:57.000Z | 2020-12-17T14:39:57.000Z | cs3/auth/registry/v1beta1/registry_api_pb2_grpc.py | cs3org/python-cs3apis | 33f84befa7c6009ce87fb7594128d26ff6e49bbd | [
"Apache-2.0"
] | 1 | 2020-05-06T10:23:07.000Z | 2020-05-12T09:07:08.000Z | cs3/auth/registry/v1beta1/registry_api_pb2_grpc.py | cs3org/python-cs3apis | 33f84befa7c6009ce87fb7594128d26ff6e49bbd | [
"Apache-2.0"
] | 1 | 2020-05-05T09:24:54.000Z | 2020-05-05T09:24:54.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from cs3.auth.registry.v1beta1 import registry_api_pb2 as cs3_dot_auth_dot_registry_dot_v1beta1_dot_registry__api__pb2
class RegistryAPIStub(object):
"""Au... | 44.516129 | 145 | 0.715217 | 785 | 6,900 | 6 | 0.187261 | 0.060722 | 0.041614 | 0.035881 | 0.804459 | 0.797452 | 0.783864 | 0.767728 | 0.746497 | 0.746497 | 0 | 0.015453 | 0.221594 | 6,900 | 154 | 146 | 44.805195 | 0.861478 | 0.34029 | 0 | 0.444444 | 1 | 0 | 0.088728 | 0.059851 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.027778 | 0.027778 | 0.180556 | 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 |
b9d78207d0ee6d322eb93e1e85d5af64e30fce1c | 10,505 | py | Python | tests/unit_tests/logic/dome/test_domeIndi.py | mworion/MountWizzard4 | 4e06b29ec2ef70be40e114b911b7bdf2f858a4b1 | [
"Apache-2.0"
] | 16 | 2020-01-11T22:32:26.000Z | 2022-03-31T15:18:14.000Z | tests/unit_tests/logic/dome/test_domeIndi.py | mworion/MountWizzard4 | 4e06b29ec2ef70be40e114b911b7bdf2f858a4b1 | [
"Apache-2.0"
] | 196 | 2020-01-16T13:56:01.000Z | 2022-03-29T02:06:51.000Z | tests/unit_tests/logic/dome/test_domeIndi.py | mworion/MountWizzard4 | 4e06b29ec2ef70be40e114b911b7bdf2f858a4b1 | [
"Apache-2.0"
] | 6 | 2019-12-01T19:39:33.000Z | 2021-05-27T13:14:20.000Z | ############################################################
# -*- coding: utf-8 -*-
#
# # # # # # #
# ## ## # ## # #
# # # # # # # # # # #
# # ## # ## ## ######
# # # # # # #
#
# Python-based Tool for interaction with the 10micron mounts
# GUI with PyQT5 fo... | 26.197007 | 71 | 0.52337 | 1,043 | 10,505 | 5.143816 | 0.106424 | 0.08891 | 0.065238 | 0.102703 | 0.830382 | 0.800373 | 0.778006 | 0.771109 | 0.756943 | 0.605965 | 0 | 0.011515 | 0.355164 | 10,505 | 400 | 72 | 26.2625 | 0.780484 | 0.0297 | 0 | 0.785467 | 0 | 0 | 0.08022 | 0.008791 | 0 | 0 | 0 | 0 | 0.124567 | 1 | 0.128028 | false | 0 | 0.020761 | 0 | 0.16263 | 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 |
6a47feca1ae31d3cb7dc4846ebdd5fc24b2a7ee1 | 7,934 | py | Python | tests/test_turning_t_maze.py | GPittia/PyTorch-NEAT | 7eb04af0e1e854a5e268358a6d4f4dccb576b635 | [
"Apache-2.0"
] | 486 | 2018-09-21T17:44:36.000Z | 2022-03-30T23:41:49.000Z | tests/test_turning_t_maze.py | GPittia/PyTorch-NEAT | 7eb04af0e1e854a5e268358a6d4f4dccb576b635 | [
"Apache-2.0"
] | 16 | 2018-09-21T20:38:54.000Z | 2022-03-25T11:47:19.000Z | tests/test_turning_t_maze.py | ykeuter/PyTorch-NEAT | f78587d3a83df189b01be5a5daea3996b8fd9866 | [
"Apache-2.0"
] | 103 | 2018-09-15T06:08:24.000Z | 2022-03-24T17:02:11.000Z | # Copyright (c) 2018 Uber Technologies, 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
#
# Unless required by applicable law or ag... | 31.113725 | 79 | 0.51336 | 1,103 | 7,934 | 3.6165 | 0.108794 | 0.027576 | 0.032339 | 0.033091 | 0.755578 | 0.729255 | 0.722487 | 0.705691 | 0.705691 | 0.684633 | 0 | 0.064441 | 0.350643 | 7,934 | 254 | 80 | 31.23622 | 0.709821 | 0.073607 | 0 | 0.826484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.625571 | 1 | 0.041096 | false | 0 | 0.009132 | 0 | 0.050228 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6a49ee832d81f804133f4f79e63589c6f7bd84c9 | 53,080 | py | Python | rom_generator/scenes/imported/Forest.py | ikarth/game-boy-rom-generator | 29576a4bbe87a0032f80967d4b740059a65ea5c9 | [
"MIT"
] | 3 | 2021-08-07T03:38:02.000Z | 2021-09-17T14:33:27.000Z | rom_generator/scenes/imported/Forest.py | ikarth/game-boy-rom-generator | 29576a4bbe87a0032f80967d4b740059a65ea5c9 | [
"MIT"
] | null | null | null | rom_generator/scenes/imported/Forest.py | ikarth/game-boy-rom-generator | 29576a4bbe87a0032f80967d4b740059a65ea5c9 | [
"MIT"
] | null | null | null | # Generated Scene Functions
# Forest.py
from rom_generator import generator
from rom_generator import script_functions as script
import random
test_generation_destination_path = "../gbprojects/generated_export_test_Forest/"
def scene_generation():
sprite_sheet_data = [
generator.makeSpriteShee... | 71.826793 | 252 | 0.654616 | 6,378 | 53,080 | 5.151929 | 0.057855 | 0.034572 | 0.040537 | 0.027025 | 0.867951 | 0.863021 | 0.853678 | 0.821236 | 0.805685 | 0.792781 | 0 | 0.082083 | 0.207479 | 53,080 | 738 | 253 | 71.924119 | 0.698695 | 0.011492 | 0 | 0.599002 | 1 | 0 | 0.156302 | 0.019024 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096506 | false | 0 | 0.004992 | 0 | 0.202995 | 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 |
dbf02f0f67669a30b6ccc86941848d2fa1ccb8c5 | 38,751 | py | Python | simpleml/tests/unit/test_hashing.py | aolopez/SimpleML | 9e3237c243863400372a493164a107b74f770ef0 | [
"BSD-3-Clause"
] | 15 | 2018-08-19T19:36:23.000Z | 2021-11-09T17:47:18.000Z | simpleml/tests/unit/test_hashing.py | aolopez/SimpleML | 9e3237c243863400372a493164a107b74f770ef0 | [
"BSD-3-Clause"
] | 75 | 2020-10-11T17:58:59.000Z | 2022-03-29T22:34:54.000Z | simpleml/tests/unit/test_hashing.py | aolopez/SimpleML | 9e3237c243863400372a493164a107b74f770ef0 | [
"BSD-3-Clause"
] | 4 | 2018-04-30T23:09:42.000Z | 2022-01-19T08:03:18.000Z | '''
Hashing related tests
'''
__author__ = 'Elisha Yadgaran'
import unittest
import pandas as pd
from simpleml.persistables.hashing import CustomHasherMixin
from simpleml._external.joblib import hash as deterministic_hash
class _Test123(object):
random_attribute = 'abc'
def __init__(self):
pass
... | 59.071646 | 259 | 0.627623 | 3,562 | 38,751 | 6.726558 | 0.062886 | 0.24374 | 0.329048 | 0.360601 | 0.894783 | 0.889649 | 0.875417 | 0.864691 | 0.840442 | 0.82116 | 0 | 0.07003 | 0.267064 | 38,751 | 655 | 260 | 59.161832 | 0.773572 | 0.047121 | 0 | 0.692308 | 0 | 0.037422 | 0.571067 | 0.434978 | 0 | 0 | 0 | 0 | 0.114345 | 1 | 0.051975 | false | 0.006237 | 0.016632 | 0.004158 | 0.081081 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
dbf3aa5b60213513cf87db10114901ab4541db0c | 162 | py | Python | example/consumption_tax.py | hi1280/pytest-example | 1fa03b5d118d47d52beb707b5d8ce2ffffc786a1 | [
"MIT"
] | null | null | null | example/consumption_tax.py | hi1280/pytest-example | 1fa03b5d118d47d52beb707b5d8ce2ffffc786a1 | [
"MIT"
] | null | null | null | example/consumption_tax.py | hi1280/pytest-example | 1fa03b5d118d47d52beb707b5d8ce2ffffc786a1 | [
"MIT"
] | null | null | null | class ConsumptionTax:
def __init__(self, tax_rate):
self.tax_rate = tax_rate
def apply(self, price):
return int((price * self.tax_rate) / 100) + price | 32.4 | 53 | 0.697531 | 24 | 162 | 4.375 | 0.5 | 0.266667 | 0.314286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.185185 | 162 | 5 | 53 | 32.4 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
e012570b4b058323830d992df1b1b1b3e61f6722 | 13,744 | py | Python | sdk/python/pulumi_azure/servicebus/subscription.py | apollo2030/pulumi-azure | 034665c61665f4dc7e291b8813747012d34fa044 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/servicebus/subscription.py | apollo2030/pulumi-azure | 034665c61665f4dc7e291b8813747012d34fa044 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/servicebus/subscription.py | apollo2030/pulumi-azure | 034665c61665f4dc7e291b8813747012d34fa044 | [
"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 json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from .. import utilities, tables
class Subscr... | 57.991561 | 494 | 0.711365 | 1,750 | 13,744 | 5.306857 | 0.118286 | 0.035534 | 0.048239 | 0.040917 | 0.825024 | 0.79832 | 0.777323 | 0.764294 | 0.738021 | 0.733929 | 0 | 0.000941 | 0.22679 | 13,744 | 236 | 495 | 58.237288 | 0.872965 | 0.395227 | 0 | 0.021505 | 1 | 0 | 0.182704 | 0.064316 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043011 | false | 0.010753 | 0.064516 | 0.021505 | 0.311828 | 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 |
e01f94eef06abb85142e8818a2105d10358b6b59 | 6,563 | py | Python | static/dataset/cook_data.py | chikobvore/Examinations | e01f62d82ad591e82696db0189c6a66f72ba6a96 | [
"MIT"
] | null | null | null | static/dataset/cook_data.py | chikobvore/Examinations | e01f62d82ad591e82696db0189c6a66f72ba6a96 | [
"MIT"
] | null | null | null | static/dataset/cook_data.py | chikobvore/Examinations | e01f62d82ad591e82696db0189c6a66f72ba6a96 | [
"MIT"
] | null | null | null | import pandas as pd
from numpy.random import randint
data = pd.read_csv('mubeena1.csv')
TCW = []
EM = []
TM = []
Grade = []
Comment = []
for i in range(len(data)):
CW = 0.4 * data.iloc[i][0]
TEM = 0.6 * data.iloc[i][1]
if CW > 35:
CW = 40
print("New Cw is " + str(CW))
if TEM > 55:
... | 29.696833 | 86 | 0.413683 | 616 | 6,563 | 4.404221 | 0.137987 | 0.143752 | 0.221157 | 0.247696 | 0.910063 | 0.910063 | 0.899742 | 0.899742 | 0.899742 | 0.899742 | 0 | 0.043784 | 0.502362 | 6,563 | 220 | 87 | 29.831818 | 0.786895 | 0 | 0 | 0.896907 | 0 | 0 | 0.120219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010309 | 0 | 0.010309 | 0.010309 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
e04e6c97aa1da1da14c129930289c03dc3ac13da | 21,304 | py | Python | server.py | hadiMh/tornado | 53e8504cb26c99aa1f72664d48d18a874bbccd0f | [
"MIT"
] | null | null | null | server.py | hadiMh/tornado | 53e8504cb26c99aa1f72664d48d18a874bbccd0f | [
"MIT"
] | null | null | null | server.py | hadiMh/tornado | 53e8504cb26c99aa1f72664d48d18a874bbccd0f | [
"MIT"
] | null | null | null | import re
import os
from tornado.web import Application, RequestHandler
from tornado.ioloop import IOLoop
from tornado.options import define, options
import string
import random
# from torndb import Connection
from binascii import hexlify
from time import gmtime, strftime
import mydb
import json
import collections
d... | 31.283407 | 126 | 0.5207 | 1,929 | 21,304 | 5.748056 | 0.104199 | 0.05763 | 0.096681 | 0.037879 | 0.834325 | 0.819084 | 0.809885 | 0.770563 | 0.754239 | 0.744859 | 0 | 0.008227 | 0.372371 | 21,304 | 681 | 127 | 31.283407 | 0.821031 | 0.057407 | 0 | 0.771993 | 0 | 0 | 0.181913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046679 | false | 0.057451 | 0.021544 | 0.001795 | 0.18851 | 0.014363 | 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 |
e055f1819f9394e32580df442ba7e1d0b5cf3217 | 13,318 | py | Python | test/test_server.py | clach04/PyWebScrapBook | 310e8f20cc5337336875679246b9269265b4476a | [
"MIT"
] | null | null | null | test/test_server.py | clach04/PyWebScrapBook | 310e8f20cc5337336875679246b9269265b4476a | [
"MIT"
] | null | null | null | test/test_server.py | clach04/PyWebScrapBook | 310e8f20cc5337336875679246b9269265b4476a | [
"MIT"
] | null | null | null | from unittest import mock
import unittest
import sys
import os
import webscrapbook
from webscrapbook import WSB_DIR, WSB_CONFIG
from webscrapbook import server
root_dir = os.path.abspath(os.path.dirname(__file__))
server_root = os.path.join(root_dir, 'test_server')
server_config = os.path.join(server_root, WSB_DIR, WS... | 27.069106 | 123 | 0.645893 | 1,892 | 13,318 | 4.365222 | 0.082452 | 0.094442 | 0.089841 | 0.071922 | 0.890423 | 0.860516 | 0.829883 | 0.815837 | 0.756508 | 0.727691 | 0 | 0.043801 | 0.201156 | 13,318 | 491 | 124 | 27.124236 | 0.732494 | 0.041072 | 0 | 0.784777 | 0 | 0 | 0.337205 | 0.064977 | 0 | 0 | 0 | 0 | 0.081365 | 1 | 0.070866 | false | 0.002625 | 0.018373 | 0 | 0.094488 | 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 |
0ec4086a9d5d048e4ac944af5ce5f5568281a84e | 7,748 | py | Python | tests/test_forwarded.py | rgacote/aiohttp-remotes | 8b28757bc10ed7878e1bbc0539dcfb3b37cb5e96 | [
"MIT"
] | 1 | 2019-08-20T17:18:39.000Z | 2019-08-20T17:18:39.000Z | tests/test_forwarded.py | rgacote/aiohttp-remotes | 8b28757bc10ed7878e1bbc0539dcfb3b37cb5e96 | [
"MIT"
] | null | null | null | tests/test_forwarded.py | rgacote/aiohttp-remotes | 8b28757bc10ed7878e1bbc0539dcfb3b37cb5e96 | [
"MIT"
] | null | null | null | from aiohttp import web
from aiohttp_remotes import ForwardedRelaxed, ForwardedStrict
from aiohttp_remotes import setup as _setup
async def test_forwarded_relaxed_ok(aiohttp_client):
async def handler(request):
assert request.host == 'example.com'
assert request.scheme == 'https'
assert re... | 32.970213 | 76 | 0.598993 | 965 | 7,748 | 4.668394 | 0.076684 | 0.053274 | 0.053274 | 0.035516 | 0.926304 | 0.920089 | 0.914761 | 0.911654 | 0.883019 | 0.842397 | 0 | 0.051879 | 0.251162 | 7,748 | 234 | 77 | 33.111111 | 0.724578 | 0 | 0 | 0.802139 | 0 | 0 | 0.118353 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0 | false | 0 | 0.016043 | 0 | 0.085562 | 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 |
16198803cc216e270ca1bf56ab77df7b23cc51b1 | 71 | py | Python | cw01/zad11_12.py | BartoszHolubowicz/projekt-psi | e1d753e543ed2676a21ba1d99191e36dbe484ae5 | [
"bzip2-1.0.6"
] | null | null | null | cw01/zad11_12.py | BartoszHolubowicz/projekt-psi | e1d753e543ed2676a21ba1d99191e36dbe484ae5 | [
"bzip2-1.0.6"
] | null | null | null | cw01/zad11_12.py | BartoszHolubowicz/projekt-psi | e1d753e543ed2676a21ba1d99191e36dbe484ae5 | [
"bzip2-1.0.6"
] | null | null | null | # 11.
print(list(range(1, 10)))
# 12.
print(list(range(100, 20, -5)))
| 11.833333 | 31 | 0.577465 | 13 | 71 | 3.153846 | 0.769231 | 0.439024 | 0.682927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213115 | 0.140845 | 71 | 5 | 32 | 14.2 | 0.459016 | 0.098592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
162d388e7eb0b780d2a8e59c687022c4f9eef662 | 3,632 | py | Python | pyaz/policy/state/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/policy/state/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/policy/state/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | 1 | 2022-02-03T09:12:01.000Z | 2022-02-03T09:12:01.000Z | '''
Manage policy compliance states.
'''
from ... pyaz_utils import _call_az
def list(all=None, apply=None, expand=None, filter=None, from_=None, management_group=None, namespace=None, order_by=None, parent=None, policy_assignment=None, policy_definition=None, policy_set_definition=None, resource=None, resource_group=... | 55.876923 | 300 | 0.732379 | 475 | 3,632 | 5.498947 | 0.218947 | 0.054747 | 0.043645 | 0.053599 | 0.783308 | 0.741194 | 0.731623 | 0.731623 | 0.731623 | 0.69487 | 0 | 0.005382 | 0.181443 | 3,632 | 64 | 301 | 56.75 | 0.873192 | 0.717236 | 0 | 0 | 0 | 0 | 0.088058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.142857 | 0 | 1 | 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 |
16473c72befcd57e3a03e200d7ffbdf952a3f147 | 69,867 | py | Python | tests/test_cli.py | Echofi-co/ecs-deploy | fdedebe81f5563e96524860b3515d70de92b77be | [
"BSD-3-Clause"
] | null | null | null | tests/test_cli.py | Echofi-co/ecs-deploy | fdedebe81f5563e96524860b3515d70de92b77be | [
"BSD-3-Clause"
] | null | null | null | tests/test_cli.py | Echofi-co/ecs-deploy | fdedebe81f5563e96524860b3515d70de92b77be | [
"BSD-3-Clause"
] | null | null | null | from datetime import datetime
import pytest
from click.testing import CliRunner
from mock.mock import patch
from ecs_deploy import cli
from ecs_deploy.cli import get_client, record_deployment
from ecs_deploy.ecs import EcsClient
from ecs_deploy.newrelic import Deployment, NewRelicDeploymentException
from tests.test_e... | 47.560926 | 304 | 0.730316 | 9,689 | 69,867 | 5.110435 | 0.028899 | 0.114147 | 0.130627 | 0.151873 | 0.948904 | 0.940624 | 0.935575 | 0.923861 | 0.917237 | 0.911057 | 0 | 0.008602 | 0.163053 | 69,867 | 1,468 | 305 | 47.593324 | 0.83817 | 0.000587 | 0 | 0.750218 | 0 | 0.013974 | 0.362254 | 0.047047 | 0 | 0 | 0 | 0 | 0.569432 | 1 | 0.087336 | false | 0 | 0.00786 | 0.000873 | 0.09607 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
1670045b61ce2ddad9292b2508c14d8ec7c3de5d | 19,987 | py | Python | robin_stocks/options.py | nkaliape/robin_stocks | 36a100610b55ab9fad1a57f92a57bad6d9c1b835 | [
"MIT"
] | null | null | null | robin_stocks/options.py | nkaliape/robin_stocks | 36a100610b55ab9fad1a57f92a57bad6d9c1b835 | [
"MIT"
] | null | null | null | robin_stocks/options.py | nkaliape/robin_stocks | 36a100610b55ab9fad1a57f92a57bad6d9c1b835 | [
"MIT"
] | null | null | null | """Contains functions for getting information about options."""
import robin_stocks.helper as helper
import robin_stocks.urls as urls
@helper.login_required
def get_aggregate_positions(info=None):
"""Collapses all option orders for a stock into a single dictionary.
:param info: Will filter the results to get ... | 40.296371 | 157 | 0.67749 | 2,645 | 19,987 | 5.04121 | 0.072968 | 0.013874 | 0.017849 | 0.019949 | 0.873931 | 0.854282 | 0.843483 | 0.834558 | 0.825484 | 0.812509 | 0 | 0.000915 | 0.234653 | 19,987 | 495 | 158 | 40.377778 | 0.870759 | 0.465953 | 0 | 0.730435 | 0 | 0 | 0.103431 | 0.013482 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073913 | false | 0.004348 | 0.008696 | 0 | 0.121739 | 0.047826 | 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 |
16e24d97ddee0751e0b808b89080074c1b4baba7 | 37,023 | py | Python | tensorflow/contrib/boosted_trees/python/training/functions/gbdt_batch_test.py | ryorda/tensorflow-viennacl | 054b515feec0a3fca4cfb1f29adbf423c9027c3a | [
"Apache-2.0"
] | 522 | 2016-06-08T02:15:50.000Z | 2022-03-02T05:30:36.000Z | tensorflow/contrib/boosted_trees/python/training/functions/gbdt_batch_test.py | ryorda/tensorflow-viennacl | 054b515feec0a3fca4cfb1f29adbf423c9027c3a | [
"Apache-2.0"
] | 48 | 2016-07-26T00:11:55.000Z | 2022-02-23T13:36:33.000Z | tensorflow/contrib/boosted_trees/python/training/functions/gbdt_batch_test.py | ryorda/tensorflow-viennacl | 054b515feec0a3fca4cfb1f29adbf423c9027c3a | [
"Apache-2.0"
] | 108 | 2016-06-16T15:34:05.000Z | 2022-03-12T13:23:11.000Z | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 40.198697 | 88 | 0.650434 | 4,309 | 37,023 | 5.346716 | 0.084706 | 0.049091 | 0.004167 | 0.019098 | 0.874213 | 0.863319 | 0.849039 | 0.832805 | 0.821043 | 0.805243 | 0 | 0.030509 | 0.246603 | 37,023 | 920 | 89 | 40.242391 | 0.795468 | 0.09251 | 0 | 0.820717 | 0 | 0 | 0.080709 | 0.007411 | 0 | 0 | 0 | 0 | 0.119522 | 1 | 0.017264 | false | 0 | 0.02656 | 0 | 0.046481 | 0.001328 | 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 |
bc48eefc4f53768b5f08abd5a68be6409cfff066 | 103,893 | py | Python | telethon/tl/types/secret.py | yande-eghosa/Telegram-Click-Bot | d2905373b93475ea3b4562128f84a66aee0eb7a0 | [
"MIT"
] | 1 | 2020-11-22T20:30:27.000Z | 2020-11-22T20:30:27.000Z | telethon/tl/types/secret.py | yande-eghosa/Telegram-Click-Bot | d2905373b93475ea3b4562128f84a66aee0eb7a0 | [
"MIT"
] | null | null | null | telethon/tl/types/secret.py | yande-eghosa/Telegram-Click-Bot | d2905373b93475ea3b4562128f84a66aee0eb7a0 | [
"MIT"
] | null | null | null | """File generated by TLObjects' generator. All changes will be ERASED"""
from ...tl.tlobject import TLObject
from typing import Optional, List, Union, TYPE_CHECKING
import os
import struct
from datetime import datetime
if TYPE_CHECKING:
from ...tl.types import TypeDecryptedMessage, TypeDecryptedMessageAction, TypeD... | 36.711307 | 524 | 0.651295 | 10,085 | 103,893 | 6.44819 | 0.049479 | 0.023389 | 0.024589 | 0.02422 | 0.828725 | 0.806643 | 0.784392 | 0.762141 | 0.752483 | 0.71527 | 0 | 0.020166 | 0.250152 | 103,893 | 2,829 | 525 | 36.724284 | 0.814579 | 0.236965 | 0 | 0.702414 | 1 | 0 | 0.065489 | 0.023582 | 0 | 0 | 0.020742 | 0 | 0 | 1 | 0.142061 | false | 0 | 0.002786 | 0.083565 | 0.370474 | 0.005571 | 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 |
bc688874f99f4edde0c266aff62239ceeb104df7 | 123 | py | Python | app/aicos_rca/__init__.py | muhiza/digital.cooperative | f57a749e10796b6e00920b21809ab56b9274d944 | [
"Unlicense"
] | null | null | null | app/aicos_rca/__init__.py | muhiza/digital.cooperative | f57a749e10796b6e00920b21809ab56b9274d944 | [
"Unlicense"
] | null | null | null | app/aicos_rca/__init__.py | muhiza/digital.cooperative | f57a749e10796b6e00920b21809ab56b9274d944 | [
"Unlicense"
] | null | null | null | from flask import Blueprint
aicos_rca = Blueprint('aicos_rca', __name__, template_folder='templates')
from . import views | 24.6 | 73 | 0.796748 | 16 | 123 | 5.6875 | 0.6875 | 0.307692 | 0.373626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113821 | 123 | 5 | 74 | 24.6 | 0.834862 | 0 | 0 | 0 | 0 | 0 | 0.145161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 7 |
bcbc0bf92903522ece56bc587a945e41c23613ac | 11,683 | py | Python | Web/fluid_properties/Validation/HAValidation.py | BENGAL-TIGER/CoolPropMDA | 5a384c2863363b415c13f444bb183cc22232afe1 | [
"MIT"
] | null | null | null | Web/fluid_properties/Validation/HAValidation.py | BENGAL-TIGER/CoolPropMDA | 5a384c2863363b415c13f444bb183cc22232afe1 | [
"MIT"
] | null | null | null | Web/fluid_properties/Validation/HAValidation.py | BENGAL-TIGER/CoolPropMDA | 5a384c2863363b415c13f444bb183cc22232afe1 | [
"MIT"
] | null | null | null | from CoolProp.HumidAirProp import HAPropsSI
import numpy as np
print ' Replicating the tables from ASHRAE RP-1485'
print ' '
print 'A.6.1 Psychrometric Properties of Moist Air at 0C and Below'
print 'Saturated air at 101.325 kPa'
s5=' '*5
print '===================================================='
print "{T:8s}{W:10... | 43.431227 | 148 | 0.47659 | 1,951 | 11,683 | 2.837519 | 0.093798 | 0.01409 | 0.013548 | 0.018064 | 0.824241 | 0.805275 | 0.743316 | 0.694545 | 0.658598 | 0.618497 | 0 | 0.129742 | 0.140375 | 11,683 | 269 | 149 | 43.431227 | 0.421488 | 0.022169 | 0 | 0.626667 | 0 | 0.093333 | 0.381123 | 0.20987 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.426667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
bce2d3cc793ecef6a164d63394bbfc3b98ec2d4f | 100 | py | Python | SDWLE/cards_copy/__init__.py | jomyhuang/sdwle | 9b6e916567e09c7cba4a171fe0adf0f47009a8c3 | [
"MIT"
] | null | null | null | SDWLE/cards_copy/__init__.py | jomyhuang/sdwle | 9b6e916567e09c7cba4a171fe0adf0f47009a8c3 | [
"MIT"
] | null | null | null | SDWLE/cards_copy/__init__.py | jomyhuang/sdwle | 9b6e916567e09c7cba4a171fe0adf0f47009a8c3 | [
"MIT"
] | null | null | null | from SDWLE.cards.minions import *
from SDWLE.cards.spells import *
from SDWLE.cards.weapons import * | 33.333333 | 33 | 0.8 | 15 | 100 | 5.333333 | 0.466667 | 0.3375 | 0.525 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 100 | 3 | 34 | 33.333333 | 0.898876 | 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 |
bce459cb395f7349527639e3ea73252af3601729 | 33,671 | py | Python | rest_api/tests/unit/test_batch_requests.py | mealchain/beta | 7dc1a1aea175bfb3f1008939f098a1d58bb455a6 | [
"Apache-2.0"
] | null | null | null | rest_api/tests/unit/test_batch_requests.py | mealchain/beta | 7dc1a1aea175bfb3f1008939f098a1d58bb455a6 | [
"Apache-2.0"
] | null | null | null | rest_api/tests/unit/test_batch_requests.py | mealchain/beta | 7dc1a1aea175bfb3f1008939f098a1d58bb455a6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 42.947704 | 88 | 0.63378 | 4,625 | 33,671 | 4.441297 | 0.048649 | 0.023611 | 0.0462 | 0.06397 | 0.920062 | 0.897717 | 0.870308 | 0.828246 | 0.787401 | 0.755319 | 0 | 0.021798 | 0.279261 | 33,671 | 783 | 89 | 43.002554 | 0.824625 | 0.0188 | 0 | 0.509677 | 0 | 0 | 0.087896 | 0.056018 | 0 | 0 | 0 | 0 | 0.425806 | 1 | 0 | false | 0 | 0.012903 | 0 | 0.025806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4c0552ff9a7e2dd3772ef8d801d301edb2c274a5 | 9,292 | py | Python | tests/integrations/test_events_views.py | satyaakam/fossevents.in | b5f1dcae56d3af35beea9e25fbcdaf4735ce0192 | [
"MIT"
] | 17 | 2015-07-08T10:41:59.000Z | 2020-04-01T00:25:50.000Z | tests/integrations/test_events_views.py | OmairK/fossevents.in | db73b08d2f058a94054184150198bfbaeb1f21a9 | [
"MIT"
] | 58 | 2015-04-06T12:32:54.000Z | 2021-06-10T20:38:18.000Z | tests/integrations/test_events_views.py | OmairK/fossevents.in | db73b08d2f058a94054184150198bfbaeb1f21a9 | [
"MIT"
] | 34 | 2015-04-28T09:40:12.000Z | 2021-03-29T04:25:55.000Z | import pytest
from django.core.urlresolvers import reverse
from django.utils import timezone
from fossevents.events.services import get_event_review_url
from .. import factories as f
pytestmark = pytest.mark.django_db
def test_homepage(client):
event = f.EventFactory(is_published=False)
event2 = f.EventFac... | 32.152249 | 101 | 0.634417 | 1,126 | 9,292 | 5.089698 | 0.110124 | 0.099459 | 0.065259 | 0.092131 | 0.842436 | 0.815215 | 0.802478 | 0.781888 | 0.766533 | 0.734078 | 0 | 0.039099 | 0.22105 | 9,292 | 288 | 102 | 32.263889 | 0.752694 | 0.0565 | 0 | 0.719298 | 0 | 0 | 0.229257 | 0.0024 | 0 | 0 | 0 | 0 | 0.219298 | 1 | 0.052632 | false | 0 | 0.02193 | 0 | 0.074561 | 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 |
4c10cbba72a486eb062b5c6c1fa15e4c132fef27 | 101 | py | Python | 04_pytest/test_hello.py | covrebo/python100 | 758233f9a52b2ffae8cd5c44e6794aceb1fd1614 | [
"MIT"
] | null | null | null | 04_pytest/test_hello.py | covrebo/python100 | 758233f9a52b2ffae8cd5c44e6794aceb1fd1614 | [
"MIT"
] | 1 | 2021-05-11T02:03:56.000Z | 2021-05-11T02:03:56.000Z | 04_pytest/test_hello.py | covrebo/python100 | 758233f9a52b2ffae8cd5c44e6794aceb1fd1614 | [
"MIT"
] | null | null | null | from hello import hello_name
def test_hello_name():
assert hello_name('clark') == 'hello, clark' | 25.25 | 48 | 0.732673 | 15 | 101 | 4.666667 | 0.533333 | 0.385714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 101 | 4 | 48 | 25.25 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 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 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
4c22152568c51a356b5f4a4a4e0df344f06f43f5 | 26,722 | py | Python | tests/st/ops/cpu/test_resize_bilinear_op.py | PowerOlive/mindspore | bda20724a94113cedd12c3ed9083141012da1f15 | [
"Apache-2.0"
] | 3,200 | 2020-02-17T12:45:41.000Z | 2022-03-31T20:21:16.000Z | tests/st/ops/cpu/test_resize_bilinear_op.py | zimo-geek/mindspore | 665ec683d4af85c71b2a1f0d6829356f2bc0e1ff | [
"Apache-2.0"
] | 176 | 2020-02-12T02:52:11.000Z | 2022-03-28T22:15:55.000Z | tests/st/ops/cpu/test_resize_bilinear_op.py | zimo-geek/mindspore | 665ec683d4af85c71b2a1f0d6829356f2bc0e1ff | [
"Apache-2.0"
] | 621 | 2020-03-09T01:31:41.000Z | 2022-03-30T03:43:19.000Z | # Copyright 2020-2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | 48.762774 | 119 | 0.49652 | 3,855 | 26,722 | 3.361868 | 0.083009 | 0.05679 | 0.014352 | 0.054012 | 0.854012 | 0.821373 | 0.821373 | 0.801775 | 0.792747 | 0.77554 | 0 | 0.208147 | 0.331188 | 26,722 | 547 | 120 | 48.85192 | 0.51701 | 0.049061 | 0 | 0.693208 | 0 | 0 | 0.000118 | 0 | 0 | 0 | 0 | 0 | 0.098361 | 1 | 0.023419 | false | 0 | 0.009368 | 0.002342 | 0.037471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 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 |
4c3fa75233a258cb20bd25b72828f0cf7bf8051c | 22,230 | py | Python | sdk/python/pulumi_aws/mq/broker.py | JakeGinnivan/pulumi-aws | c91ef78932964ac74eda7f5da81f65b0f1798c93 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/mq/broker.py | JakeGinnivan/pulumi-aws | c91ef78932964ac74eda7f5da81f65b0f1798c93 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/mq/broker.py | JakeGinnivan/pulumi-aws | c91ef78932964ac74eda7f5da81f65b0f1798c93 | [
"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 json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from .. import utilities, tables
class Broker... | 61.922006 | 440 | 0.68511 | 2,919 | 22,230 | 5.050017 | 0.126756 | 0.047012 | 0.036904 | 0.024693 | 0.80137 | 0.773014 | 0.759989 | 0.744997 | 0.718337 | 0.705719 | 0 | 0.006878 | 0.215205 | 22,230 | 358 | 441 | 62.094972 | 0.838072 | 0.504274 | 0 | 0.019231 | 1 | 0 | 0.169789 | 0.018733 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.009615 | 0.057692 | 0.019231 | 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 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4c428e809ddd02a7490ed7149859b2faba0dbe6a | 78,449 | py | Python | src/openprocurement/tender/openua/tests/lot_blanks.py | ProzorroUKR/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 10 | 2020-02-18T01:56:21.000Z | 2022-03-28T00:32:57.000Z | src/openprocurement/tender/openua/tests/lot_blanks.py | quintagroup/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 26 | 2018-07-16T09:30:44.000Z | 2021-02-02T17:51:30.000Z | src/openprocurement/tender/openua/tests/lot_blanks.py | ProzorroUKR/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 15 | 2019-08-08T10:50:47.000Z | 2022-02-05T14:13:36.000Z | # -*- coding: utf-8 -*-
from datetime import timedelta
from copy import deepcopy
from openprocurement.api.models import get_now
from openprocurement.api.constants import RELEASE_2020_04_19, TWO_PHASE_COMMIT_FROM
from openprocurement.api.utils import parse_date
from openprocurement.tender.core.tests.cancellation import ... | 40.47936 | 130 | 0.598797 | 8,805 | 78,449 | 5.185236 | 0.032822 | 0.03695 | 0.109318 | 0.057802 | 0.944454 | 0.936087 | 0.922705 | 0.908818 | 0.895173 | 0.88617 | 0 | 0.012996 | 0.223151 | 78,449 | 1,937 | 131 | 40.500258 | 0.736163 | 0.04473 | 0 | 0.730069 | 0 | 0 | 0.232985 | 0.0492 | 0 | 0 | 0 | 0 | 0.166981 | 1 | 0.015066 | false | 0 | 0.005022 | 0 | 0.020716 | 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 |
9122864a19a16d1576b1dad9a56a3810032a7845 | 2,763 | py | Python | test-import-vulnerable-api-master/test-import-vulnerable-api-master/test/test_vapi.py | rmit-cyber-ready-cic/Security99 | 2d32865aef91f09b0edac2dd926ce603769052d7 | [
"MIT"
] | null | null | null | test-import-vulnerable-api-master/test-import-vulnerable-api-master/test/test_vapi.py | rmit-cyber-ready-cic/Security99 | 2d32865aef91f09b0edac2dd926ce603769052d7 | [
"MIT"
] | null | null | null | test-import-vulnerable-api-master/test-import-vulnerable-api-master/test/test_vapi.py | rmit-cyber-ready-cic/Security99 | 2d32865aef91f09b0edac2dd926ce603769052d7 | [
"MIT"
] | null | null | null | import json
import unittest
from test import BaseTestCase
class TestvAPI(BaseTestCase):
def test_tokens_1(self):
headers = { "Content-type": "application/json"}
r = self.client.open(
"/tokens",
method='POST',
data=json.dumps({'username': "blah1'", 'password': '... | 33.695122 | 107 | 0.566051 | 300 | 2,763 | 5.09 | 0.16 | 0.059594 | 0.093648 | 0.115259 | 0.874918 | 0.874918 | 0.874918 | 0.843484 | 0.843484 | 0.736084 | 0 | 0.040602 | 0.277959 | 2,763 | 81 | 108 | 34.111111 | 0.724812 | 0.010134 | 0 | 0.681159 | 0 | 0.043478 | 0.213685 | 0.031101 | 0 | 0 | 0 | 0 | 0.115942 | 1 | 0.115942 | false | 0.057971 | 0.043478 | 0 | 0.173913 | 0.057971 | 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 |
9151a267e4959e56ce6115bcf21955ec8757e9a1 | 110 | py | Python | testcgi.py | MrSquigy/web-server | 09918321ff5124e5731517a97cdae1b41b6ee0e7 | [
"Unlicense"
] | 1 | 2022-03-26T18:08:37.000Z | 2022-03-26T18:08:37.000Z | testcgi.py | MrSquigy/web-server | 09918321ff5124e5731517a97cdae1b41b6ee0e7 | [
"Unlicense"
] | null | null | null | testcgi.py | MrSquigy/web-server | 09918321ff5124e5731517a97cdae1b41b6ee0e7 | [
"Unlicense"
] | null | null | null | from datetime import datetime
print('<html>\n<body>\n<p>Generated %s</p>\n</body>\n</html>' % datetime.now()) | 36.666667 | 79 | 0.672727 | 19 | 110 | 3.894737 | 0.578947 | 0.135135 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 110 | 3 | 79 | 36.666667 | 0.72549 | 0 | 0 | 0 | 1 | 0.5 | 0.477477 | 0.468468 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 8 |
e6a868ada37ab9fb27f973b4bfe648387bb4279f | 30,946 | py | Python | python/paddle/fluid/contrib/layers/rnn_impl.py | liym27/Paddle | 50582071dce846a973a054c40fe194069657960a | [
"Apache-2.0"
] | 3 | 2019-07-17T09:30:31.000Z | 2021-12-27T03:16:55.000Z | python/paddle/fluid/contrib/layers/rnn_impl.py | liym27/Paddle | 50582071dce846a973a054c40fe194069657960a | [
"Apache-2.0"
] | 1 | 2019-07-30T05:22:32.000Z | 2019-07-30T05:22:32.000Z | python/paddle/fluid/contrib/layers/rnn_impl.py | liym27/Paddle | 50582071dce846a973a054c40fe194069657960a | [
"Apache-2.0"
] | 4 | 2019-09-30T02:15:34.000Z | 2019-09-30T02:41:30.000Z | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 41.594086 | 118 | 0.592484 | 4,075 | 30,946 | 4.245644 | 0.079755 | 0.041038 | 0.013872 | 0.013988 | 0.835154 | 0.82082 | 0.809433 | 0.793307 | 0.786602 | 0.776545 | 0 | 0.011766 | 0.327118 | 30,946 | 743 | 119 | 41.650067 | 0.819094 | 0.478091 | 0 | 0.73487 | 0 | 0 | 0.011131 | 0 | 0 | 0 | 0 | 0 | 0.005764 | 1 | 0.028818 | false | 0 | 0.008646 | 0 | 0.066282 | 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 |
e6ac135aa95150550e46ff4b34af6df72ba00991 | 208 | py | Python | rdc/__init__.py | garydoranjr/rdc | f9f61d2425d17a1530452ffcd720bf9419dd296d | [
"BSD-3-Clause"
] | 7 | 2019-10-20T02:41:34.000Z | 2022-03-15T08:27:44.000Z | rdc/__init__.py | garydoranjr/rdc | f9f61d2425d17a1530452ffcd720bf9419dd296d | [
"BSD-3-Clause"
] | 1 | 2019-04-30T13:15:59.000Z | 2019-05-13T20:11:36.000Z | rdc/__init__.py | garydoranjr/rdc | f9f61d2425d17a1530452ffcd720bf9419dd296d | [
"BSD-3-Clause"
] | 3 | 2019-11-05T19:13:52.000Z | 2020-11-19T11:01:25.000Z | """
Implements the Randomized Dependence Coefficient
David Lopez-Paz, Philipp Hennig, Bernhard Schoelkopf
http://papers.nips.cc/paper/5138-the-randomized-dependence-coefficient.pdf
"""
from .rdc import rdc
| 23.111111 | 74 | 0.798077 | 27 | 208 | 6.148148 | 0.814815 | 0.156627 | 0.277108 | 0.409639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.096154 | 208 | 8 | 75 | 26 | 0.861702 | 0.850962 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
e6f6fe410a3c51e99f7ebc16719e8ead960defb0 | 33,558 | py | Python | sdk/python/pulumi_aws/imagebuilder/component.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/imagebuilder/component.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/imagebuilder/component.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... | 42.640407 | 268 | 0.636033 | 4,046 | 33,558 | 5.098616 | 0.054128 | 0.107712 | 0.109942 | 0.08745 | 0.888313 | 0.863832 | 0.829415 | 0.816375 | 0.811673 | 0.787581 | 0 | 0.002156 | 0.253591 | 33,558 | 786 | 269 | 42.694656 | 0.821423 | 0.333155 | 0 | 0.72949 | 1 | 0 | 0.073921 | 0.010949 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166297 | false | 0.002217 | 0.011086 | 0 | 0.279379 | 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 |
fc300ce9b3c8141fcce2a7271c60d5a21e1feff8 | 101 | py | Python | test_package/tests/test_something.py | humnaawan/dsfp-testrepo | 8efd116c8b860a3e2bce4ac2dfdbab05c557a90c | [
"MIT"
] | null | null | null | test_package/tests/test_something.py | humnaawan/dsfp-testrepo | 8efd116c8b860a3e2bce4ac2dfdbab05c557a90c | [
"MIT"
] | null | null | null | test_package/tests/test_something.py | humnaawan/dsfp-testrepo | 8efd116c8b860a3e2bce4ac2dfdbab05c557a90c | [
"MIT"
] | 1 | 2018-11-06T20:48:50.000Z | 2018-11-06T20:48:50.000Z |
import test_package
def test_something_func():
assert test_package.do_something(a=2, b=5) == 7
| 16.833333 | 51 | 0.742574 | 17 | 101 | 4.117647 | 0.764706 | 0.314286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0.148515 | 101 | 5 | 52 | 20.2 | 0.77907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
fc40f8cb36efce4b11b6cca62c4fd2cd064cc4b7 | 229 | py | Python | demo_files/chuck_rider/ignore/array_multifier.py | zeffii/ChucKScripts | 7de8207284bb7c7b7b40c4ae7ac3e3878cafbfa4 | [
"MIT"
] | 7 | 2015-01-13T21:49:58.000Z | 2022-01-31T02:31:27.000Z | demo_files/chuck_rider/ignore/array_multifier.py | zeffii/ChucKScripts | 7de8207284bb7c7b7b40c4ae7ac3e3878cafbfa4 | [
"MIT"
] | null | null | null | demo_files/chuck_rider/ignore/array_multifier.py | zeffii/ChucKScripts | 7de8207284bb7c7b7b40c4ae7ac3e3878cafbfa4 | [
"MIT"
] | null | null | null | tb = [54, 0,55,54,61,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
66, 0,64,66,61, 0, 0, 0, 0, 0, 0 ,0, 0, 0, 0, 0,
54, 0,55,54,61, 0,66, 0,64]
expander = lambda i: [i, 300] if i > 0 else [0,0]
tkm = [expander(i) for i in tb]
print(tkm) | 25.444444 | 49 | 0.497817 | 62 | 229 | 1.83871 | 0.274194 | 0.368421 | 0.473684 | 0.561404 | 0.377193 | 0.377193 | 0.22807 | 0.22807 | 0.22807 | 0.22807 | 0 | 0.352601 | 0.244541 | 229 | 9 | 50 | 25.444444 | 0.306358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fc87393ccc76e95e454a083aa23cbd4ef2e837dd | 4,091 | py | Python | common/misc.py | yasinyazici/EMA_GAN | fd296d600d9404a99feaece8611ca6ad4eb4ee46 | [
"MIT"
] | 28 | 2018-10-10T03:07:03.000Z | 2022-03-29T02:41:55.000Z | common/misc.py | yasinyazici/EMA_GAN | fd296d600d9404a99feaece8611ca6ad4eb4ee46 | [
"MIT"
] | 1 | 2019-10-28T03:22:29.000Z | 2020-04-03T23:51:08.000Z | common/misc.py | yasinyazici/EMA_GAN | fd296d600d9404a99feaece8611ca6ad4eb4ee46 | [
"MIT"
] | 2 | 2019-12-22T03:07:06.000Z | 2020-06-13T04:00:17.000Z | # from https://github.com/chainer/chainerrl/blob/f119a1fe210dd31ea123d244258d9b5edc21fba4/chainerrl/misc/copy_param.py
from chainer import links as L
import chainer
def copy_param(target_link, source_link):
"""Copy parameters of a link to another link."""
target_params = dict(target_link.namedparams())
f... | 45.455556 | 118 | 0.634075 | 547 | 4,091 | 4.47532 | 0.144424 | 0.081699 | 0.089869 | 0.061275 | 0.829248 | 0.818627 | 0.806781 | 0.791258 | 0.762663 | 0.746324 | 0 | 0.017617 | 0.236861 | 4,091 | 90 | 119 | 45.455556 | 0.766496 | 0.161085 | 0 | 0.703125 | 0 | 0 | 0.01087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.03125 | 0 | 0.140625 | 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 |
5d83eaae4610f9cf2b2ed22875a23883b86fc100 | 114,571 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_firewall_sslsshprofile.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_firewall_sslsshprofile.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_firewall_sslsshprofile.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | #!/usr/bin/python
from __future__ import absolute_import, division, print_function
# Copyright 2019-2021 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the ... | 40.356111 | 153 | 0.261899 | 6,388 | 114,571 | 4.674233 | 0.063557 | 0.057905 | 0.030343 | 0.028367 | 0.805419 | 0.788406 | 0.771359 | 0.765598 | 0.745002 | 0.732945 | 0 | 0.036351 | 0.653045 | 114,571 | 2,838 | 154 | 40.370331 | 0.7148 | 0.005778 | 0 | 0.78574 | 0 | 0.004278 | 0.454212 | 0.034787 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000357 | false | 0.016043 | 0.002139 | 0 | 0.002496 | 0.000357 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
5d9a53df4da0faf25ca2ce9e7527cbc531c5d5c4 | 251 | py | Python | src/spaceone/inventory/error/__init__.py | xellos00/inventory | e2831f2f09b5b72623f735a186264987d41954ab | [
"Apache-2.0"
] | 9 | 2020-06-04T23:01:38.000Z | 2021-06-03T03:38:59.000Z | src/spaceone/inventory/error/__init__.py | xellos00/inventory | e2831f2f09b5b72623f735a186264987d41954ab | [
"Apache-2.0"
] | 10 | 2020-08-20T01:34:30.000Z | 2022-03-14T04:59:48.000Z | src/spaceone/inventory/error/__init__.py | xellos00/inventory | e2831f2f09b5b72623f735a186264987d41954ab | [
"Apache-2.0"
] | 9 | 2020-06-08T22:03:02.000Z | 2021-12-06T06:12:30.000Z | from spaceone.inventory.error.region import *
from spaceone.inventory.error.server import *
from spaceone.inventory.error.collector import *
from spaceone.inventory.error.collect_data import *
from spaceone.inventory.error.cloud_service_type import *
| 41.833333 | 57 | 0.840637 | 33 | 251 | 6.30303 | 0.393939 | 0.288462 | 0.504808 | 0.625 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079681 | 251 | 5 | 58 | 50.2 | 0.900433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
5dd3c50abe6cff53e198eba616472682d838aa99 | 8,166 | py | Python | NiaPy/benchmarks/schwefel.py | tuahk/NiaPy | c863d801fda8e1949a3ca716a4de7c7ca3d0ea16 | [
"MIT"
] | null | null | null | NiaPy/benchmarks/schwefel.py | tuahk/NiaPy | c863d801fda8e1949a3ca716a4de7c7ca3d0ea16 | [
"MIT"
] | null | null | null | NiaPy/benchmarks/schwefel.py | tuahk/NiaPy | c863d801fda8e1949a3ca716a4de7c7ca3d0ea16 | [
"MIT"
] | null | null | null | # encoding=utf8
# pylint: disable=anomalous-backslash-in-string, mixed-indentation, multiple-statements, line-too-long, no-else-return, old-style-class
"""Implementations of Schwefels functions."""
from math import sin, fmod, fabs, sqrt
__all__ = ['Schwefel', 'Schwefel221', 'Schwefel222', 'ModifiedSchwefel', 'Expande... | 32.795181 | 535 | 0.598335 | 1,372 | 8,166 | 3.499271 | 0.134111 | 0.014997 | 0.009373 | 0.009998 | 0.784836 | 0.771714 | 0.747969 | 0.722766 | 0.722766 | 0.696313 | 0 | 0.109415 | 0.189689 | 8,166 | 248 | 536 | 32.927419 | 0.615385 | 0.812638 | 0 | 0.514286 | 0 | 0 | 0.030123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257143 | false | 0 | 0.014286 | 0.028571 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5de78581e3046f064980ec8ff42c6377d35d5a42 | 36,783 | py | Python | opensilexClientToolsPython/api/vue_js___ontology_extension_api.py | OpenSILEX/opensilexClientToolsPython | 41b1e7e707670ecf1b2c06d79bdd9749945788cb | [
"RSA-MD"
] | null | null | null | opensilexClientToolsPython/api/vue_js___ontology_extension_api.py | OpenSILEX/opensilexClientToolsPython | 41b1e7e707670ecf1b2c06d79bdd9749945788cb | [
"RSA-MD"
] | 7 | 2021-05-25T14:06:04.000Z | 2021-11-05T15:42:14.000Z | opensilexClientToolsPython/api/vue_js___ontology_extension_api.py | OpenSILEX/opensilexClientToolsPython | 41b1e7e707670ecf1b2c06d79bdd9749945788cb | [
"RSA-MD"
] | null | null | null | # coding: utf-8
"""
OpenSilex API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: INSTANCE-SNAPSHOT
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_imp... | 38.556604 | 132 | 0.610391 | 4,155 | 36,783 | 5.133574 | 0.043803 | 0.055884 | 0.023629 | 0.03038 | 0.963854 | 0.958462 | 0.953165 | 0.945898 | 0.942897 | 0.932443 | 0 | 0.018161 | 0.299432 | 36,783 | 953 | 133 | 38.597062 | 0.809577 | 0.359432 | 0 | 0.820833 | 1 | 0 | 0.173135 | 0.051204 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039583 | false | 0 | 0.008333 | 0 | 0.10625 | 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 |
5de90129fec425fdf5a6f6a4cfe9bc56c69683d8 | 21,611 | py | Python | sdk/python/pulumi_azure/network/virtual_network_gateway_connection.py | davidobrien1985/pulumi-azure | 811beeea473bd798d77354521266a87a2fac5888 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/network/virtual_network_gateway_connection.py | davidobrien1985/pulumi-azure | 811beeea473bd798d77354521266a87a2fac5888 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/network/virtual_network_gateway_connection.py | davidobrien1985/pulumi-azure | 811beeea473bd798d77354521266a87a2fac5888 | [
"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 json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from .. import utilities, tables
class Virtua... | 62.279539 | 506 | 0.67734 | 2,748 | 21,611 | 5.141921 | 0.102256 | 0.038924 | 0.0385 | 0.029582 | 0.880113 | 0.863411 | 0.856476 | 0.847346 | 0.838641 | 0.828946 | 0 | 0.021242 | 0.233215 | 21,611 | 346 | 507 | 62.459538 | 0.831453 | 0.48119 | 0 | 0.021053 | 1 | 0 | 0.174828 | 0.077402 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042105 | false | 0.063158 | 0.063158 | 0.021053 | 0.326316 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
f8f1495780d18c4bd5e500d835fed9783768bc9e | 13,063 | py | Python | tests/test_dsl_basic.py | zzzDavid/heterocl | 977aae575d54a30c5bf6d869e8f71bdc815cf7e9 | [
"Apache-2.0"
] | 236 | 2019-05-19T01:48:11.000Z | 2022-03-31T09:03:54.000Z | tests/test_dsl_basic.py | zzzDavid/heterocl | 977aae575d54a30c5bf6d869e8f71bdc815cf7e9 | [
"Apache-2.0"
] | 248 | 2019-05-17T19:18:36.000Z | 2022-03-30T21:25:47.000Z | tests/test_dsl_basic.py | AlgaPeng/heterocl-2 | b5197907d1fe07485466a63671a2a906a861c939 | [
"Apache-2.0"
] | 85 | 2019-05-17T20:09:27.000Z | 2022-02-28T20:19:00.000Z | import heterocl as hcl
import numpy as np
def _test_logic_op(op):
def kernel(A, B):
return hcl.compute(A.shape,
lambda x: hcl.select(op(A[x]>5, B[x]>5), 0, 1))
A = hcl.placeholder((10,))
B = hcl.placeholder((10,))
s = hcl.create_schedule([A, B], kernel)
f = hcl.build(s)
... | 21.069355 | 74 | 0.554314 | 2,288 | 13,063 | 2.972902 | 0.044143 | 0.052926 | 0.067039 | 0.068803 | 0.928403 | 0.913849 | 0.899882 | 0.892238 | 0.878859 | 0.878859 | 0 | 0.04453 | 0.28485 | 13,063 | 619 | 75 | 21.103393 | 0.68358 | 0 | 0 | 0.776224 | 0 | 0 | 0.001914 | 0 | 0 | 0 | 0.000919 | 0 | 0.058275 | 1 | 0.125874 | false | 0.004662 | 0.004662 | 0.016317 | 0.149184 | 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 |
5d02d0b81bc9cc025760810c1dc686e1f45769fd | 4,516 | py | Python | test/queryservice_tests/cache_cases1.py | kmiku7/vitess-annotated | ca10b6aa42e57ac78ef8b315b93525263ecafc12 | [
"BSD-3-Clause"
] | 1 | 2015-09-16T04:46:41.000Z | 2015-09-16T04:46:41.000Z | test/queryservice_tests/cache_cases1.py | kmiku7/vitess-annotated | ca10b6aa42e57ac78ef8b315b93525263ecafc12 | [
"BSD-3-Clause"
] | null | null | null | test/queryservice_tests/cache_cases1.py | kmiku7/vitess-annotated | ca10b6aa42e57ac78ef8b315b93525263ecafc12 | [
"BSD-3-Clause"
] | 1 | 2021-03-24T12:37:12.000Z | 2021-03-24T12:37:12.000Z | from cases_framework import Case, MultiCase
# Covers cases for vtocc_cached1
class Case1(Case):
def __init__(self, **kwargs):
Case.__init__(self, cache_table='vtocc_cached1', **kwargs)
cases = [
"alter table vtocc_cached1 comment 'new'",
Case1(doc="PK_IN (empty cache)",
query_plan="PK_IN",
s... | 32.963504 | 103 | 0.56488 | 634 | 4,516 | 3.875394 | 0.108833 | 0.166056 | 0.201872 | 0.239316 | 0.848596 | 0.80871 | 0.763126 | 0.691901 | 0.669109 | 0.606431 | 0 | 0.062653 | 0.275465 | 4,516 | 136 | 104 | 33.205882 | 0.688264 | 0.031001 | 0 | 0.563636 | 0 | 0.009091 | 0.462755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027273 | 0.009091 | null | null | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5d127e88b2002f37c9695b338f4182e1fda8e597 | 15,664 | py | Python | test_pytest/test_unit/test_client.py | hat-open/hat-monitor | e0f02bd575d8d4cd51bd386b9445ae8c730b17c4 | [
"Apache-2.0"
] | 1 | 2022-02-01T13:43:00.000Z | 2022-02-01T13:43:00.000Z | test_pytest/test_unit/test_client.py | hat-open/hat-monitor | e0f02bd575d8d4cd51bd386b9445ae8c730b17c4 | [
"Apache-2.0"
] | null | null | null | test_pytest/test_unit/test_client.py | hat-open/hat-monitor | e0f02bd575d8d4cd51bd386b9445ae8c730b17c4 | [
"Apache-2.0"
] | null | null | null | import asyncio
import pytest
from hat import aio
from hat import chatter
from hat import util
from hat.monitor import common
import hat.monitor.client
pytestmark = pytest.mark.asyncio
@pytest.fixture
def server_port():
return util.get_unused_tcp_port()
@pytest.fixture
def server_address(server_port):
re... | 30.834646 | 75 | 0.56001 | 1,669 | 15,664 | 5.109646 | 0.06411 | 0.042683 | 0.018879 | 0.021576 | 0.831379 | 0.818363 | 0.814611 | 0.793269 | 0.789048 | 0.765244 | 0 | 0.017755 | 0.338419 | 15,664 | 507 | 76 | 30.895464 | 0.805172 | 0 | 0 | 0.80916 | 0 | 0 | 0.049157 | 0.002107 | 0 | 0 | 0 | 0 | 0.127226 | 1 | 0.015267 | false | 0 | 0.017812 | 0.010178 | 0.058524 | 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 |
5d1f89ce08f32261d7e5b8134ce8c2b63d268d0f | 201 | py | Python | src/algo/gbd/__init__.py | ari-bou/symro | b49a5578b4e1d95ab5ab92b06bfea2bc6ead2246 | [
"MIT"
] | null | null | null | src/algo/gbd/__init__.py | ari-bou/symro | b49a5578b4e1d95ab5ab92b06bfea2bc6ead2246 | [
"MIT"
] | null | null | null | src/algo/gbd/__init__.py | ari-bou/symro | b49a5578b4e1d95ab5ab92b06bfea2bc6ead2246 | [
"MIT"
] | null | null | null | from symro.src.algo.gbd.gbdproblem import GBDProblem, GBDSubproblemContainer
from symro.src.algo.gbd.gbdproblembuilder import GBDProblemBuilder
from symro.src.algo.gbd.gbdalgorithm import GBDAlgorithm
| 50.25 | 76 | 0.870647 | 25 | 201 | 7 | 0.4 | 0.154286 | 0.205714 | 0.274286 | 0.325714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064677 | 201 | 3 | 77 | 67 | 0.930851 | 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 |
5d21cc8f34da992190d62e7542d9c530aeade0e9 | 5,524 | py | Python | personality_analysis/test_models/SVM.py | Moz125/illumina-personality-based-book-recommendation | 79515f4b16291e89df0e687879ddb5f6dce1274c | [
"MIT"
] | null | null | null | personality_analysis/test_models/SVM.py | Moz125/illumina-personality-based-book-recommendation | 79515f4b16291e89df0e687879ddb5f6dce1274c | [
"MIT"
] | 1 | 2020-06-16T01:28:32.000Z | 2020-06-16T01:28:32.000Z | personality_analysis/test_models/SVM.py | Moz125/illumina-personality-based-book-recommendation | 79515f4b16291e89df0e687879ddb5f6dce1274c | [
"MIT"
] | 4 | 2020-06-16T11:24:19.000Z | 2020-08-30T12:31:13.000Z | import pandas as pd
import numpy as np
import time
from sklearn.model_selection import train_test_split
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.svm import SVR
from sklearn.pipeline import Pipeline
from sklearn.metrics import mean_squared_log_error
from sklearn.metrics import mean_square... | 32.304094 | 89 | 0.740224 | 902 | 5,524 | 4.329268 | 0.111973 | 0.03201 | 0.023047 | 0.038412 | 0.876312 | 0.868886 | 0.841229 | 0.841229 | 0.804097 | 0.804097 | 0 | 0.014806 | 0.11966 | 5,524 | 171 | 90 | 32.304094 | 0.788197 | 0.009776 | 0 | 0.820313 | 0 | 0 | 0.258602 | 0.005674 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085938 | 0 | 0.085938 | 0.273438 | 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 |
5d5b5ab520059214da7ae56ffa0d79165d947225 | 9,603 | py | Python | init.py | shadowmicron/fbmail | 30c4d3de9badcf65034a8b7e3a225595c6e69d47 | [
"Apache-2.0"
] | 3 | 2021-06-06T06:59:37.000Z | 2022-03-04T17:16:17.000Z | init.py | shadowmicron/fbmail | 30c4d3de9badcf65034a8b7e3a225595c6e69d47 | [
"Apache-2.0"
] | null | null | null | init.py | shadowmicron/fbmail | 30c4d3de9badcf65034a8b7e3a225595c6e69d47 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python2
#coding=utf-8
import os,sys,time,random,threading,json
os.system("rm -rf .txt")
for n in range(1,1000):
sys.stdout = open(".txt", "a")
print(n)
sys.stdout.flush()
try:
import requests
except ImportError:
os.system('pip2 install requests')
try:
import mechanize
e... | 29.638889 | 215 | 0.56701 | 1,264 | 9,603 | 4.232595 | 0.174051 | 0.008972 | 0.023925 | 0.032897 | 0.806168 | 0.777944 | 0.753271 | 0.753271 | 0.753271 | 0.753271 | 0 | 0.058422 | 0.237113 | 9,603 | 323 | 216 | 29.73065 | 0.669124 | 0.003541 | 0 | 0.719858 | 0 | 0.035461 | 0.392214 | 0.114274 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.205674 | 0.028369 | null | null | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
5d6b7a9d1ee808c8bf28fe2275ae5201f405b494 | 6,647 | py | Python | mmedit/models/losses/composition_loss.py | Jian137/mmediting-1 | e1ac6c93441ec96696d0b530f040b91b809015b6 | [
"Apache-2.0"
] | 1,884 | 2020-07-09T18:53:43.000Z | 2022-03-31T12:06:18.000Z | mmedit/models/losses/composition_loss.py | Jian137/mmediting-1 | e1ac6c93441ec96696d0b530f040b91b809015b6 | [
"Apache-2.0"
] | 622 | 2020-07-09T18:52:27.000Z | 2022-03-31T14:41:09.000Z | mmedit/models/losses/composition_loss.py | Jian137/mmediting-1 | e1ac6c93441ec96696d0b530f040b91b809015b6 | [
"Apache-2.0"
] | 361 | 2020-07-09T19:21:47.000Z | 2022-03-31T09:58:27.000Z | # Copyright (c) OpenMMLab. All rights reserved.
import torch.nn as nn
from ..registry import LOSSES
from .pixelwise_loss import charbonnier_loss, l1_loss, mse_loss
_reduction_modes = ['none', 'mean', 'sum']
@LOSSES.register_module()
class L1CompositionLoss(nn.Module):
"""L1 composition loss.
Args:
... | 42.33758 | 79 | 0.585828 | 840 | 6,647 | 4.514286 | 0.153571 | 0.05538 | 0.031646 | 0.044304 | 0.900316 | 0.900316 | 0.892669 | 0.892669 | 0.880538 | 0.868143 | 0 | 0.014578 | 0.30856 | 6,647 | 156 | 80 | 42.608974 | 0.810487 | 0.485031 | 0 | 0.757143 | 0 | 0 | 0.096413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.042857 | 0 | 0.214286 | 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 |
53a3bbb3e176e08eb842288a03f9886b73566c8c | 245 | py | Python | metabadger/command/__init__.py | salesforce/metabadger | 97c49054fed1a20a7b0f33fadb002fe6082e04a7 | [
"BSD-3-Clause"
] | 88 | 2021-07-27T00:33:35.000Z | 2022-03-29T20:50:16.000Z | metabadger/command/__init__.py | salesforce/metabadger | 97c49054fed1a20a7b0f33fadb002fe6082e04a7 | [
"BSD-3-Clause"
] | 2 | 2021-10-12T01:02:05.000Z | 2021-10-12T01:04:19.000Z | metabadger/command/__init__.py | salesforce/metabadger | 97c49054fed1a20a7b0f33fadb002fe6082e04a7 | [
"BSD-3-Clause"
] | 7 | 2021-07-27T21:26:51.000Z | 2022-03-02T12:39:19.000Z | from metabadger.command import disable_metadata
from metabadger.command import discover_metadata
from metabadger.command import discover_role_usage
from metabadger.command import harden_metadata
from metabadger.command import cloudwatch_metrics
| 40.833333 | 50 | 0.897959 | 31 | 245 | 6.903226 | 0.387097 | 0.327103 | 0.490654 | 0.630841 | 0.565421 | 0.401869 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 245 | 5 | 51 | 49 | 0.951111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
53b4e2e0fe33eec75239aaa5baec3f3f1879a907 | 1,619 | py | Python | hacktheback/account/tests.py | hackthevalley/hack-the-back | a418f2d2751656fed76d0b8c95c8e2a060525e78 | [
"MIT"
] | null | null | null | hacktheback/account/tests.py | hackthevalley/hack-the-back | a418f2d2751656fed76d0b8c95c8e2a060525e78 | [
"MIT"
] | null | null | null | hacktheback/account/tests.py | hackthevalley/hack-the-back | a418f2d2751656fed76d0b8c95c8e2a060525e78 | [
"MIT"
] | null | null | null | import pytest
from faker import Faker
from hacktheback.account.models import User
fake = Faker()
@pytest.mark.django_db
def test_create_user():
email = fake.email()
password = fake.password()
user = User.objects.create_user(email=email, password=password)
assert not user.is_staff
assert not use... | 27.440678 | 76 | 0.746757 | 212 | 1,619 | 5.438679 | 0.146226 | 0.111015 | 0.083261 | 0.093669 | 0.863833 | 0.793582 | 0.793582 | 0.793582 | 0.759757 | 0.759757 | 0 | 0 | 0.157505 | 1,619 | 58 | 77 | 27.913793 | 0.845308 | 0 | 0 | 0.47619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.142857 | false | 0.238095 | 0.071429 | 0 | 0.214286 | 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 |
53bc6fdff74c8bfd4ea6619b9ed0f46602022cc9 | 147,525 | py | Python | gpMgmt/bin/gppylib/operations/test/unit/test_unit_restore.py | pengzhout/gpdb | 3946a76e31c388400f52403e7938367e8725dd32 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | gpMgmt/bin/gppylib/operations/test/unit/test_unit_restore.py | pengzhout/gpdb | 3946a76e31c388400f52403e7938367e8725dd32 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | gpMgmt/bin/gppylib/operations/test/unit/test_unit_restore.py | pengzhout/gpdb | 3946a76e31c388400f52403e7938367e8725dd32 | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2020-11-17T09:03:53.000Z | 2020-11-17T09:03:53.000Z | #!/usr/bin/env python
# coding: utf-8
#
# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
#
import sys
import unittest2 as unittest
import tempfile, os, shutil
from gppylib.commands.base import CommandResult
from gppylib.operations.restore import RestoreDatabase, create_restore_plan, get_plan_file_contents, \
... | 56.093156 | 255 | 0.71192 | 17,854 | 147,525 | 5.524756 | 0.023692 | 0.046716 | 0.084977 | 0.103488 | 0.961587 | 0.951682 | 0.943714 | 0.936516 | 0.928466 | 0.920751 | 0 | 0.05729 | 0.188571 | 147,525 | 2,629 | 256 | 56.114492 | 0.76672 | 0.001064 | 0 | 0.80053 | 0 | 0.019417 | 0.252079 | 0.147044 | 0 | 0 | 0 | 0 | 0.068844 | 0 | null | null | 0.019417 | 0.00353 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
53bcc93e2d4c1fa03e90edfc45d8d107653ae99b | 37,671 | py | Python | python/alibabacloud_tea_roa/client.py | yndu13/tea-roa | e335b768ff65cc645fbbfa34c05ff7a843495bca | [
"Apache-2.0"
] | 4 | 2020-03-26T08:10:55.000Z | 2021-05-24T14:20:01.000Z | python/alibabacloud_tea_roa/client.py | yndu13/tea-roa | e335b768ff65cc645fbbfa34c05ff7a843495bca | [
"Apache-2.0"
] | 33 | 2020-05-26T09:33:44.000Z | 2022-02-07T06:34:09.000Z | python/alibabacloud_tea_roa/client.py | yndu13/tea-roa | e335b768ff65cc645fbbfa34c05ff7a843495bca | [
"Apache-2.0"
] | 4 | 2020-05-15T08:15:39.000Z | 2021-02-22T14:03:12.000Z | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
import time
from Tea.exceptions import TeaException, UnretryableException
from Tea.request import TeaRequest
from Tea.core import TeaCore
from typing import Dict, Any
from alibabacloud_credentials.client import Client as CredentialClient
fr... | 48.986996 | 211 | 0.576013 | 3,827 | 37,671 | 5.379671 | 0.057486 | 0.049543 | 0.033515 | 0.043715 | 0.912036 | 0.898825 | 0.890762 | 0.890762 | 0.890762 | 0.890762 | 0 | 0.00353 | 0.330679 | 37,671 | 768 | 212 | 49.050781 | 0.813001 | 0.056436 | 0 | 0.841538 | 1 | 0 | 0.095388 | 0.013845 | 0 | 0 | 0 | 0 | 0.009231 | 1 | 0.009231 | false | 0 | 0.016923 | 0 | 0.073846 | 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 |
53f34ec1ed045c89cb7eec29878330fc5ebd2f28 | 86 | py | Python | tests/client/old_client.py | Fahadsaadullahkhan/KubernetesJobOperator | d96f9498667f937503d1e45142060904674f823f | [
"MIT"
] | 35 | 2020-02-10T16:55:41.000Z | 2022-03-18T01:25:00.000Z | tests/client/old_client.py | Fahadsaadullahkhan/KubernetesJobOperator | d96f9498667f937503d1e45142060904674f823f | [
"MIT"
] | 26 | 2020-02-10T05:36:44.000Z | 2022-03-02T18:44:47.000Z | tests/client/old_client.py | Fahadsaadullahkhan/KubernetesJobOperator | d96f9498667f937503d1e45142060904674f823f | [
"MIT"
] | 8 | 2020-02-28T23:24:07.000Z | 2021-11-29T21:35:46.000Z | from kubernetes.client import CoreV1Api
from kubernetes.client import CustomObjectsApi | 43 | 46 | 0.895349 | 10 | 86 | 7.7 | 0.6 | 0.363636 | 0.519481 | 0.675325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.081395 | 86 | 2 | 46 | 43 | 0.962025 | 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 |
54d554116afd7aa5ae3d30202ccad27cb53c1833 | 1,499 | py | Python | quadpy/wedge/__init__.py | dariusarnold/quadpy | 9dc7c1ebff99d15ae57ed9195cde94d97a599be8 | [
"MIT"
] | null | null | null | quadpy/wedge/__init__.py | dariusarnold/quadpy | 9dc7c1ebff99d15ae57ed9195cde94d97a599be8 | [
"MIT"
] | null | null | null | quadpy/wedge/__init__.py | dariusarnold/quadpy | 9dc7c1ebff99d15ae57ed9195cde94d97a599be8 | [
"MIT"
] | null | null | null | from ._felippa import felippa_1, felippa_2, felippa_3, felippa_4, felippa_5, felippa_6
from ._kubatko_yeager_maggi import (
kubatko_yeager_maggi_1,
kubatko_yeager_maggi_2a,
kubatko_yeager_maggi_2b,
kubatko_yeager_maggi_3a,
kubatko_yeager_maggi_3b,
kubatko_yeager_maggi_3c,
kubatko_yeager_magg... | 27.254545 | 86 | 0.751167 | 201 | 1,499 | 4.875622 | 0.164179 | 0.570408 | 0.789796 | 0.032653 | 0.95102 | 0.95102 | 0.95102 | 0.95102 | 0.95102 | 0.95102 | 0 | 0.043548 | 0.172782 | 1,499 | 54 | 87 | 27.759259 | 0.746774 | 0 | 0 | 0 | 0 | 0 | 0.356905 | 0.320881 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037736 | 0 | 0.037736 | 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 |
073ee1057536dc8e2dd53fe06fe40c2c3848413c | 1,080 | py | Python | gsd-bot/GSD/GSDGithub.py | raphaelahrens/gsd-tools | 7dfdae18c3b5c547793d10e7d609a9483aa9b704 | [
"Apache-2.0"
] | 6 | 2022-01-22T16:21:29.000Z | 2022-03-18T02:55:52.000Z | gsd-bot/GSD/GSDGithub.py | raphaelahrens/gsd-tools | 7dfdae18c3b5c547793d10e7d609a9483aa9b704 | [
"Apache-2.0"
] | 12 | 2021-12-23T10:42:06.000Z | 2022-03-17T06:54:54.000Z | gsd-bot/GSD/GSDGithub.py | raphaelahrens/gsd-tools | 7dfdae18c3b5c547793d10e7d609a9483aa9b704 | [
"Apache-2.0"
] | 6 | 2022-01-17T23:53:32.000Z | 2022-03-03T17:45:19.000Z |
import requests
import os
from .GSDIssue import Issue
def get_new_issues(issues_url):
auth = (os.environ['GH_USERNAME'], os.environ['GH_TOKEN'])
params = {
'accept': "application/vnd.github.v3+json",
'labels': 'new,check',
'state': 'open'
}
# XXX Get the repo from ... | 23.478261 | 62 | 0.618519 | 140 | 1,080 | 4.607143 | 0.314286 | 0.074419 | 0.08062 | 0.058915 | 0.865116 | 0.865116 | 0.865116 | 0.865116 | 0.865116 | 0.865116 | 0 | 0.002494 | 0.257407 | 1,080 | 45 | 63 | 24 | 0.801746 | 0.093519 | 0 | 0.709677 | 0 | 0 | 0.161191 | 0.061602 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.096774 | 0 | 0.225806 | 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 |
ab0990e6c742fbc17639d8f0baede8ea6adba4a9 | 2,311 | py | Python | 40. two_out_of_three.py | chandravenky/puzzles | 17ec86bbad43862830ba7059a448a33b232b4088 | [
"MIT"
] | null | null | null | 40. two_out_of_three.py | chandravenky/puzzles | 17ec86bbad43862830ba7059a448a33b232b4088 | [
"MIT"
] | null | null | null | 40. two_out_of_three.py | chandravenky/puzzles | 17ec86bbad43862830ba7059a448a33b232b4088 | [
"MIT"
] | 1 | 2022-03-13T02:04:46.000Z | 2022-03-13T02:04:46.000Z | #Solution
def two_out_of_three(nums1, nums2, nums3):
stored_master = {}
stored_1 = {}
stored_2 = {}
stored_3 = {}
for i in range(0, len(nums1)):
if nums1[i] not in stored_1:
stored_1[nums1[i]] = 1
stored_master[nums1[i]] = 1
else:
pass
for i in range(0, len(nums2)):
... | 22.881188 | 86 | 0.521852 | 339 | 2,311 | 3.380531 | 0.129794 | 0.188482 | 0.052356 | 0.104712 | 0.848168 | 0.765271 | 0.757417 | 0.757417 | 0.757417 | 0.757417 | 0 | 0.071193 | 0.343574 | 2,311 | 100 | 87 | 23.11 | 0.684245 | 0.046733 | 0 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.033333 | 0 | 0.016667 | 0.116667 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ab361dd117c3a3c3e285f2c34bb61b17c04fb603 | 5,679 | py | Python | joint/dev/Old/Jere_ML_ISTA_original/Models_MNIST.py | mm5110/sparse-structures-for-classification | ac4d765754f92f22afeb1ed0473e6d8332aa8f73 | [
"MIT"
] | 1 | 2021-11-10T01:56:32.000Z | 2021-11-10T01:56:32.000Z | joint/dev/Old/dev_old/Jere/MNIST_ML_ISTA_share/Models_MNIST.py | mm5110/sparse-structures-for-classification | ac4d765754f92f22afeb1ed0473e6d8332aa8f73 | [
"MIT"
] | null | null | null | joint/dev/Old/dev_old/Jere/MNIST_ML_ISTA_share/Models_MNIST.py | mm5110/sparse-structures-for-classification | ac4d765754f92f22afeb1ed0473e6d8332aa8f73 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.utils.data as Data
import torch.nn.functional as F
import torchvision
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
##################################################
#### MultiLayer ISTA NET... | 38.89726 | 157 | 0.546399 | 763 | 5,679 | 3.97903 | 0.12713 | 0.072464 | 0.063241 | 0.065876 | 0.857708 | 0.847826 | 0.847826 | 0.847826 | 0.847826 | 0.822134 | 0 | 0.071004 | 0.288255 | 5,679 | 146 | 158 | 38.89726 | 0.680109 | 0.061102 | 0 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1125 | 0 | 0.2125 | 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 |
db7d6a26a7f84ea1d0727f0ef24049e83f41d3ea | 1,094 | py | Python | amongus/config.py | Esfahan/discord-bot | 48ed6aca7e983106d409cc0705dde6ed7c1b3798 | [
"MIT"
] | null | null | null | amongus/config.py | Esfahan/discord-bot | 48ed6aca7e983106d409cc0705dde6ed7c1b3798 | [
"MIT"
] | null | null | null | amongus/config.py | Esfahan/discord-bot | 48ed6aca7e983106d409cc0705dde6ed7c1b3798 | [
"MIT"
] | null | null | null | import os
class DevelopmentConfig:
# Flask
DEBUG = True
# SQLAlchemy
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://{user}:{password}@{host}:{port}/{dbname}'.format(**{
'user': os.environ.get('DB_USER'),
'password': os.environ.get('DB_PASSWORD'),
'host': os.environ.get('DB_... | 26.682927 | 105 | 0.628885 | 122 | 1,094 | 5.467213 | 0.270492 | 0.148426 | 0.197901 | 0.209895 | 0.758621 | 0.758621 | 0.758621 | 0.758621 | 0.758621 | 0.758621 | 0 | 0.002299 | 0.204753 | 1,094 | 40 | 106 | 27.35 | 0.764368 | 0.030165 | 0 | 0.666667 | 0 | 0 | 0.258523 | 0.117424 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.148148 | 0.037037 | 0 | 0.407407 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
db88bf2f728fc1525ff0bc0d788a83490026dbec | 563,875 | py | Python | tests/test.py | cicobalico/imgaug | d2534903dea27f6e8836a2e627b3a0f075d959cf | [
"MIT"
] | 3 | 2018-08-23T13:27:32.000Z | 2021-02-16T14:30:10.000Z | tests/test.py | cicobalico/imgaug | d2534903dea27f6e8836a2e627b3a0f075d959cf | [
"MIT"
] | null | null | null | tests/test.py | cicobalico/imgaug | d2534903dea27f6e8836a2e627b3a0f075d959cf | [
"MIT"
] | 1 | 2021-03-30T09:57:35.000Z | 2021-03-30T09:57:35.000Z | """
Automatically run tests for this library.
Simply execute
python test.py
or execute
nosetests --verbose
from within tests/
or add @attr("now") in front of a test and then execute
nosetests --verbose -a now
to only execute a specific test.
"""
from __future__ import print_function, division
# fix executi... | 37.803366 | 189 | 0.621744 | 81,829 | 563,875 | 4.132985 | 0.015813 | 0.009557 | 0.008436 | 0.00757 | 0.882589 | 0.853352 | 0.825862 | 0.803083 | 0.781421 | 0.758094 | 0 | 0.067731 | 0.239599 | 563,875 | 14,915 | 190 | 37.8059 | 0.721031 | 0.04966 | 0 | 0.701744 | 0 | 0.001117 | 0.018699 | 0.003572 | 0 | 0 | 0 | 0.000335 | 0.306675 | 1 | 0.017181 | false | 0.001031 | 0.00146 | 0.002577 | 0.025513 | 0.000258 | 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 |
dbc7b94b2b22071f0b5fb6ebb229878cd409ec2e | 118 | py | Python | tests/test_case.py | dpoehls/textual | f47b3e089c681275c48c0debc7a320b66a772a50 | [
"MIT"
] | 6,706 | 2021-06-08T17:14:36.000Z | 2022-01-05T09:53:23.000Z | tests/test_case.py | dpoehls/textual | f47b3e089c681275c48c0debc7a320b66a772a50 | [
"MIT"
] | 97 | 2022-01-05T11:35:14.000Z | 2022-03-30T19:58:48.000Z | tests/test_case.py | dpoehls/textual | f47b3e089c681275c48c0debc7a320b66a772a50 | [
"MIT"
] | 166 | 2021-06-12T11:11:19.000Z | 2022-01-04T05:32:32.000Z | from textual.case import camel_to_snake
def test_camel_to_snake():
assert camel_to_snake("FooBar") == "foo_bar"
| 19.666667 | 48 | 0.762712 | 19 | 118 | 4.315789 | 0.684211 | 0.256098 | 0.439024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 118 | 5 | 49 | 23.6 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0.110169 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 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 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
dbdb4ab7cf41f0b474d7de7f1c06a177d6fbe314 | 640 | py | Python | numeric-data.py | N-S-Young/aws_restart | 83cdba5a1c475a3af2cef7e9c7d11309b2a042d6 | [
"MIT"
] | null | null | null | numeric-data.py | N-S-Young/aws_restart | 83cdba5a1c475a3af2cef7e9c7d11309b2a042d6 | [
"MIT"
] | null | null | null | numeric-data.py | N-S-Young/aws_restart | 83cdba5a1c475a3af2cef7e9c7d11309b2a042d6 | [
"MIT"
] | null | null | null | print("Python has three numeric types: int, float, and complex")
myValue=1
print(myValue)
print(type(myValue))
print(str(myValue) + " is of the data type " + str(type(myValue)))
myValue=3.14
print(myValue)
print(type(myValue))
print(str(myValue) + " is of the data type " + str(type(myValue)))
myValue=5j
print(myValue)
... | 30.47619 | 66 | 0.717188 | 101 | 640 | 4.544554 | 0.227723 | 0.261438 | 0.185185 | 0.228758 | 0.845316 | 0.845316 | 0.845316 | 0.845316 | 0.845316 | 0.845316 | 0 | 0.008897 | 0.121875 | 640 | 21 | 67 | 30.47619 | 0.807829 | 0 | 0 | 0.714286 | 0 | 0 | 0.24961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.761905 | 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 | 1 | 0 | 11 |
917b95d5c9bc1dabf703b7021026ef61d2a7b037 | 138,196 | py | Python | sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/_models_py3.py | mohamedshabanofficial/azure-sdk-for-python | 81c585f310cd2ec23d2ad145173958914a075a58 | [
"MIT"
] | 2 | 2019-08-23T21:14:00.000Z | 2021-09-07T18:32:34.000Z | sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/_models_py3.py | mohamedshabanofficial/azure-sdk-for-python | 81c585f310cd2ec23d2ad145173958914a075a58 | [
"MIT"
] | 2 | 2021-11-03T06:10:36.000Z | 2021-12-01T06:29:39.000Z | sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/_models_py3.py | mohamedshabanofficial/azure-sdk-for-python | 81c585f310cd2ec23d2ad145173958914a075a58 | [
"MIT"
] | 1 | 2021-05-19T02:55:10.000Z | 2021-05-19T02:55:10.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 44.208573 | 313 | 0.684325 | 15,908 | 138,196 | 5.783254 | 0.032499 | 0.018793 | 0.023283 | 0.03587 | 0.865989 | 0.857152 | 0.843076 | 0.825315 | 0.807891 | 0.796359 | 0 | 0.002281 | 0.210158 | 138,196 | 3,125 | 314 | 44.22272 | 0.840572 | 0.481931 | 0 | 0.778626 | 0 | 0 | 0.268031 | 0.094091 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041985 | false | 0 | 0.002545 | 0 | 0.159033 | 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 |
5341750d15eaffc0f2887cfec034383a4e40f9c1 | 14,192 | py | Python | code/architecture/architectures_utils.py | EMBEDDIA/NER_BERT_Multitask | 9f8dc7530875bbba5c6ac43063d3998aff5b0773 | [
"MIT"
] | 1 | 2021-11-17T02:58:09.000Z | 2021-11-17T02:58:09.000Z | code/architecture/architectures_utils.py | EMBEDDIA/NER_BERT_Multitask | 9f8dc7530875bbba5c6ac43063d3998aff5b0773 | [
"MIT"
] | null | null | null | code/architecture/architectures_utils.py | EMBEDDIA/NER_BERT_Multitask | 9f8dc7530875bbba5c6ac43063d3998aff5b0773 | [
"MIT"
] | null | null | null | import torch
from tqdm import tqdm
from torch.utils import data
import os
from utils.EarlyStopper import EarlyStopper
def train_bert_model_multitask(model, experiment_name, epochs, optimizer, scheduler, train_batcher,
train_batching_params, dev_dataloader,
evaluation_function, saving_path, early_... | 40.664756 | 130 | 0.734428 | 1,978 | 14,192 | 4.9909 | 0.094034 | 0.048217 | 0.026742 | 0.051053 | 0.844712 | 0.831442 | 0.798926 | 0.776033 | 0.772387 | 0.768233 | 0 | 0.007068 | 0.152621 | 14,192 | 348 | 131 | 40.781609 | 0.81382 | 0.004157 | 0 | 0.748408 | 0 | 0 | 0.119533 | 0.076999 | 0 | 0 | 0 | 0 | 0.006369 | 1 | 0.012739 | false | 0 | 0.015924 | 0 | 0.041401 | 0.06051 | 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 |
5365d6e6f52dcd4bf82e9cb162d3762ee140ce75 | 3,602 | py | Python | biskivy/behaviors.py | manahter/biskivy | 8fe87c94b42d9563a8d8939a517401c8221542aa | [
"MIT"
] | null | null | null | biskivy/behaviors.py | manahter/biskivy | 8fe87c94b42d9563a8d8939a517401c8221542aa | [
"MIT"
] | null | null | null | biskivy/behaviors.py | manahter/biskivy | 8fe87c94b42d9563a8d8939a517401c8221542aa | [
"MIT"
] | null | null | null | """
.. versionchanged:: 18.05.2020
Verisyon takip tarihi eklendi
"""
from kivy.properties import BooleanProperty, ObjectProperty
from kivy.core.window import Window
class HoverBehaviorS1(object):
"""
on_enter -> Fare, ata'ın üstüne geldiğinde 1 kere..
on_leave -> Fare, ata'ın üstünden a... | 29.768595 | 90 | 0.630483 | 445 | 3,602 | 4.903371 | 0.231461 | 0.036664 | 0.032997 | 0.038497 | 0.791476 | 0.771311 | 0.771311 | 0.771311 | 0.749313 | 0.749313 | 0 | 0.015285 | 0.273459 | 3,602 | 120 | 91 | 30.016667 | 0.818494 | 0.248473 | 0 | 0.75 | 0 | 0 | 0.035755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152778 | false | 0.055556 | 0.055556 | 0.013889 | 0.402778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
727fac96e7f8afad729fc8c8d294b2db64b25490 | 1,191 | py | Python | typing-server/api/utilities/filter.py | aditya02acharya/TypingUI-lite | 9246d45779d87820d056fdfe4d58782ef6737b24 | [
"MIT"
] | null | null | null | typing-server/api/utilities/filter.py | aditya02acharya/TypingUI-lite | 9246d45779d87820d056fdfe4d58782ef6737b24 | [
"MIT"
] | null | null | null | typing-server/api/utilities/filter.py | aditya02acharya/TypingUI-lite | 9246d45779d87820d056fdfe4d58782ef6737b24 | [
"MIT"
] | null | null | null | import logging
class InfoFilter(logging.Filter):
"""
Simple Filter class
"""
def __init__(self):
"""
Constructor
"""
super().__init__(name='filter_info_logs')
def filter(self, record):
"""
Return Log Record Object based on condition - Return only i... | 20.534483 | 76 | 0.528128 | 110 | 1,191 | 5.536364 | 0.272727 | 0.08867 | 0.147783 | 0.137931 | 0.844007 | 0.844007 | 0.844007 | 0.844007 | 0.844007 | 0.844007 | 0 | 0 | 0.366079 | 1,191 | 57 | 77 | 20.894737 | 0.806623 | 0.31906 | 0 | 0.533333 | 0 | 0 | 0.055743 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.266667 | false | 0 | 0.066667 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
f44d8e5b9871dd2bc0ba1c7388bd0db1847b0c7a | 4,325 | py | Python | tests/dashboard/test_shipping.py | jslegend/python3-django-saleor | 4b93add64e6f612ee9ce4ea3108effab65c2ad31 | [
"BSD-3-Clause"
] | 1 | 2021-01-29T13:28:29.000Z | 2021-01-29T13:28:29.000Z | tests/dashboard/test_shipping.py | jslegend/python3-django-saleor | 4b93add64e6f612ee9ce4ea3108effab65c2ad31 | [
"BSD-3-Clause"
] | null | null | null | tests/dashboard/test_shipping.py | jslegend/python3-django-saleor | 4b93add64e6f612ee9ce4ea3108effab65c2ad31 | [
"BSD-3-Clause"
] | null | null | null | import pytest
from django.urls import reverse
from saleor.shipping.models import ShippingMethod, ShippingMethodCountry
def test_shipping_method_list(admin_client, shipping_method):
url = reverse('dashboard:shipping-methods')
response = admin_client.get(url)
assert response.status_code == 200
def test_s... | 41.586538 | 78 | 0.703353 | 523 | 4,325 | 5.609943 | 0.112811 | 0.214724 | 0.070893 | 0.071575 | 0.850375 | 0.821404 | 0.791411 | 0.747785 | 0.747785 | 0.724267 | 0 | 0.016504 | 0.17341 | 4,325 | 103 | 79 | 41.990291 | 0.804196 | 0 | 0 | 0.646341 | 0 | 0 | 0.131098 | 0.076763 | 0 | 0 | 0 | 0 | 0.365854 | 1 | 0.121951 | false | 0 | 0.036585 | 0 | 0.158537 | 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 |
be4cb70b4b4eb2082f452c79c38b8355fcad5357 | 269 | py | Python | config-example.py | rciam/rciam-sync-client-names | ab4a11618704380ea79d9e02e7b824d6c4f93274 | [
"Apache-2.0"
] | null | null | null | config-example.py | rciam/rciam-sync-client-names | ab4a11618704380ea79d9e02e7b824d6c4f93274 | [
"Apache-2.0"
] | null | null | null | config-example.py | rciam/rciam-sync-client-names | ab4a11618704380ea79d9e02e7b824d6c4f93274 | [
"Apache-2.0"
] | 1 | 2021-07-12T12:36:25.000Z | 2021-07-12T12:36:25.000Z | mitreid_config = {
"dbname": "example_db",
"user": "example_user",
"host": "example_address",
"password": "secret"
}
proxystats_config = {
"dbname": "example_db",
"user": "example_user",
"host": "example_address",
"password": "secret"
} | 20.692308 | 30 | 0.598513 | 26 | 269 | 5.884615 | 0.423077 | 0.156863 | 0.248366 | 0.27451 | 0.888889 | 0.888889 | 0.888889 | 0.888889 | 0.888889 | 0.888889 | 0 | 0 | 0.208178 | 269 | 13 | 31 | 20.692308 | 0.71831 | 0 | 0 | 0.666667 | 0 | 0 | 0.481481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 10 |
be781ca96cdef4e0c19ab246b401ea64df43364f | 17,401 | py | Python | fhirclient/models/organization_tests.py | NematiLab/Streaming-Sepsis-Prediction-System-for-Intensive-Care-Units | fb5ad260fb8d264d85aea9e6c895d1700eea4d11 | [
"Apache-2.0"
] | 2 | 2019-05-16T16:41:22.000Z | 2021-04-22T22:06:49.000Z | fhirclient/models/organization_tests.py | NematiLab/Streaming-Sepsis-Prediction-System-for-Intensive-Care-Units | fb5ad260fb8d264d85aea9e6c895d1700eea4d11 | [
"Apache-2.0"
] | null | null | null | fhirclient/models/organization_tests.py | NematiLab/Streaming-Sepsis-Prediction-System-for-Intensive-Care-Units | fb5ad260fb8d264d85aea9e6c895d1700eea4d11 | [
"Apache-2.0"
] | 3 | 2019-03-26T01:39:18.000Z | 2020-02-02T19:06:33.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 1.0.2.7202 on 2016-06-23.
# 2016, SMART Health IT.
import os
import io
import unittest
import json
from . import organization
from .fhirdate import FHIRDate
class OrganizationTests(unittest.TestCase):
def instantiate_from(self, filename):
... | 53.377301 | 109 | 0.669329 | 2,108 | 17,401 | 5.514232 | 0.132827 | 0.243892 | 0.29095 | 0.091707 | 0.809532 | 0.775637 | 0.716449 | 0.622075 | 0.585685 | 0.558156 | 0 | 0.050031 | 0.178725 | 17,401 | 325 | 110 | 53.541538 | 0.763348 | 0.006494 | 0 | 0.396491 | 1 | 0.014035 | 0.200613 | 0.035702 | 0 | 0 | 0 | 0 | 0.712281 | 1 | 0.073684 | false | 0 | 0.021053 | 0 | 0.101754 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fe422ca8de52b95188cf6912d231c14d0e5b24aa | 4,567 | py | Python | tests/test_decorators.py | markkorput/pyevento | 909955dc9219a5d47c0fddc3ddc7d29ddecc6482 | [
"MIT"
] | 5 | 2016-11-08T05:27:22.000Z | 2021-01-19T10:02:39.000Z | tests/test_decorators.py | markkorput/pyevento | 909955dc9219a5d47c0fddc3ddc7d29ddecc6482 | [
"MIT"
] | 3 | 2016-11-08T05:28:44.000Z | 2018-08-21T08:58:22.000Z | tests/test_decorators.py | markkorput/pyevento | 909955dc9219a5d47c0fddc3ddc7d29ddecc6482 | [
"MIT"
] | 1 | 2021-01-20T15:44:12.000Z | 2021-01-20T15:44:12.000Z | #!/usr/bin/env python
import unittest
from evento import triggers_before_event, triggers_after_event, triggers_beforeafter_events
class TestDecorators(unittest.TestCase):
def test_triggers_before_event(self):
# add before events to a method with this decorator
@triggers_before_event
def som... | 33.094203 | 91 | 0.649004 | 494 | 4,567 | 5.763158 | 0.12753 | 0.182648 | 0.120126 | 0.158061 | 0.83386 | 0.83386 | 0.83386 | 0.795574 | 0.787847 | 0.765367 | 0 | 0 | 0.261879 | 4,567 | 137 | 92 | 33.335766 | 0.844557 | 0.102036 | 0 | 0.757895 | 0 | 0 | 0.011742 | 0 | 0 | 0 | 0 | 0 | 0.242105 | 1 | 0.242105 | false | 0.063158 | 0.021053 | 0 | 0.273684 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
fe8c65e579c4b6eea466fd9954f2b1ffd2d68fce | 8,729 | py | Python | tests/components/directv/test_config_flow.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 1 | 2021-07-08T20:09:55.000Z | 2021-07-08T20:09:55.000Z | tests/components/directv/test_config_flow.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 47 | 2021-02-21T23:43:07.000Z | 2022-03-31T06:07:10.000Z | tests/components/directv/test_config_flow.py | OpenPeerPower/core | f673dfac9f2d0c48fa30af37b0a99df9dd6640ee | [
"Apache-2.0"
] | null | null | null | """Test the DirecTV config flow."""
from unittest.mock import patch
from aiohttp import ClientError as HTTPClientError
from openpeerpower.components.directv.const import CONF_RECEIVER_ID, DOMAIN
from openpeerpower.components.ssdp import ATTR_UPNP_SERIAL
from openpeerpower.config_entries import SOURCE_SSDP, SOURCE_USE... | 32.210332 | 88 | 0.706381 | 1,065 | 8,729 | 5.50892 | 0.100469 | 0.079768 | 0.035793 | 0.051133 | 0.843702 | 0.841316 | 0.835691 | 0.817283 | 0.817283 | 0.805522 | 0 | 0.004252 | 0.191775 | 8,729 | 270 | 89 | 32.32963 | 0.827356 | 0.003322 | 0 | 0.718593 | 0 | 0 | 0.092627 | 0.034422 | 0 | 0 | 0 | 0 | 0.19598 | 1 | 0 | false | 0 | 0.050251 | 0 | 0.050251 | 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 |
fe96f4ba148696c7027e73e5f035a565d387cddf | 2,882 | py | Python | dependencies/PyMesh/python/pymesh/tests/test_minkowski_sum.py | aprieels/3D-watermarking-spectral-decomposition | dcab78857d0bb201563014e58900917545ed4673 | [
"MIT"
] | 5 | 2018-06-04T19:52:02.000Z | 2022-01-22T09:04:00.000Z | dependencies/PyMesh/python/pymesh/tests/test_minkowski_sum.py | aprieels/3D-watermarking-spectral-decomposition | dcab78857d0bb201563014e58900917545ed4673 | [
"MIT"
] | null | null | null | dependencies/PyMesh/python/pymesh/tests/test_minkowski_sum.py | aprieels/3D-watermarking-spectral-decomposition | dcab78857d0bb201563014e58900917545ed4673 | [
"MIT"
] | null | null | null | from pymesh.TestCase import TestCase
from pymesh.meshutils import generate_box_mesh
from pymesh import minkowski_sum, detect_self_intersection
import numpy as np
class MinkowskiSumTest(TestCase):
def test_simple(self):
input_mesh = generate_box_mesh(
np.array([0, 0, 0]), np.array([1, 1, 1]... | 37.921053 | 77 | 0.632894 | 407 | 2,882 | 4.152334 | 0.125307 | 0.036686 | 0.031953 | 0.156213 | 0.811243 | 0.798817 | 0.798817 | 0.798817 | 0.779882 | 0.729586 | 0 | 0.041058 | 0.239417 | 2,882 | 75 | 78 | 38.426667 | 0.729927 | 0 | 0 | 0.586207 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.327586 | 1 | 0.068966 | false | 0 | 0.068966 | 0 | 0.155172 | 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 |
fe9745d22e8022cff18cbab7c0aa8cbfd69ac4f0 | 32,841 | py | Python | html_parts/Narrator/Content/content_list_quotes.py | Tibblue/Darkest-Dungeon-Wiki-Scrapper | 0901f375c26d332b38c181c2988470dd3a4815eb | [
"MIT"
] | 2 | 2020-07-21T20:43:22.000Z | 2020-08-02T14:44:00.000Z | html_parts/Narrator/Content/content_list_quotes.py | Tibblue/Darkest-Dungeon-Wiki-Scrapper | 0901f375c26d332b38c181c2988470dd3a4815eb | [
"MIT"
] | null | null | null | html_parts/Narrator/Content/content_list_quotes.py | Tibblue/Darkest-Dungeon-Wiki-Scrapper | 0901f375c26d332b38c181c2988470dd3a4815eb | [
"MIT"
] | null | null | null | ['There is a place, beneath those ancient ruins, in the moor, that calls out to the boldest among them... "We are the Flame!" they cry, "And Darkness fears us!" They descend, spurred on by fantasies of riches and redemption, to lay bare whatever blasphemous abnormality may slumber restlessly in that unholy abyss... But... | 16,420.5 | 32,840 | 0.766024 | 5,396 | 32,841 | 4.666049 | 0.366753 | 0.007348 | 0.001589 | 0.00143 | 0.009532 | 0.009532 | 0.009532 | 0.00564 | 0 | 0 | 0 | 0 | 0.164672 | 32,841 | 1 | 32,841 | 32,841 | 0.917034 | 0 | 0 | 0 | 0 | 43 | 0.952833 | 0.000639 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | true | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 10 |
22d0993dd2f3e10c2da761ab53833eede5a2990e | 335 | py | Python | genesis/xcoin-hash-master/test.py | thepinkcoins2018/thepinkcoins | 16446746386feeba80253371689bf314dbab2d86 | [
"MIT"
] | 25 | 2018-09-17T04:11:51.000Z | 2018-11-02T10:49:24.000Z | genesis/xcoin-hash-master/test.py | thepinkcoins2018/thepinkcoins | 16446746386feeba80253371689bf314dbab2d86 | [
"MIT"
] | 1 | 2017-12-06T01:22:46.000Z | 2018-05-11T08:10:55.000Z | genesis/xcoin-hash-master/test.py | thepinkcoins2018/thepinkcoins | 16446746386feeba80253371689bf314dbab2d86 | [
"MIT"
] | 6 | 2018-01-03T06:07:17.000Z | 2021-05-31T01:43:38.000Z | import xcoin_hash
from binascii import unhexlify
teststart = '700000005d385ba114d079970b29a9418fd0549e7d68a95c7f168621a314201000000000578586d149fd07b22f3a8a347c516de7052f034d2b76ff68e0d6ecff9b77a45489e3fd511732011df0731000';
testbin = unhexlify(teststart)
hash_bin = xcoin_hash.getPoWHash(testbin)
print str(hash_bin.... | 33.5 | 175 | 0.886567 | 24 | 335 | 12.208333 | 0.625 | 0.061433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.374603 | 0.059701 | 335 | 9 | 176 | 37.222222 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0.486567 | 0.477612 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
fe0771147f64a705960ea428671be8d8b9fdca55 | 1,141 | py | Python | data/train/python/fe0771147f64a705960ea428671be8d8b9fdca55admin.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/fe0771147f64a705960ea428671be8d8b9fdca55admin.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/fe0771147f64a705960ea428671be8d8b9fdca55admin.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | from django.contrib import admin
#
#
#
class CreatedByBaseAdmin(admin.ModelAdmin):
"""
Base class for handling created by stuff
"""
readonly_fields = ('created_by', 'created_date')
def save_formset(self, request, form, formset, change):
instances = formset.save(commit=False)
for instance in instances:
i... | 21.528302 | 111 | 0.709904 | 149 | 1,141 | 5.315436 | 0.268456 | 0.090909 | 0.055556 | 0.10101 | 0.858586 | 0.858586 | 0.858586 | 0.858586 | 0.858586 | 0.858586 | 0 | 0 | 0.176161 | 1,141 | 52 | 112 | 21.942308 | 0.842553 | 0.07099 | 0 | 0.83871 | 0 | 0 | 0.086873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.032258 | 0 | 0.354839 | 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 |
fe1a1cd8f6cf0201645f65dad3280a8df3e7d039 | 30,187 | py | Python | sdk/python/pulumi_google_native/monitoring/v3/alert_policy.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 44 | 2021-04-18T23:00:48.000Z | 2022-02-14T17:43:15.000Z | sdk/python/pulumi_google_native/monitoring/v3/alert_policy.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 354 | 2021-04-16T16:48:39.000Z | 2022-03-31T17:16:39.000Z | sdk/python/pulumi_google_native/monitoring/v3/alert_policy.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 8 | 2021-04-24T17:46:51.000Z | 2022-01-05T10:40:21.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 65.766885 | 521 | 0.707225 | 3,794 | 30,187 | 5.475488 | 0.081708 | 0.059834 | 0.059449 | 0.022865 | 0.841822 | 0.801771 | 0.765572 | 0.748917 | 0.726774 | 0.692885 | 0 | 0.001761 | 0.209958 | 30,187 | 458 | 522 | 65.91048 | 0.869303 | 0.483685 | 0 | 0.426573 | 1 | 0 | 0.134796 | 0.022489 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.003497 | 0.027972 | 0.003497 | 0.27972 | 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 |
a3ae60858b64ba2ea8d594674120067c89db2313 | 1,115 | py | Python | eqb/scripts/change-endian.py | cryptotechguru/tesseract | 9b64c61483710c94390404c3d920c1059cbfcda7 | [
"MIT"
] | null | null | null | eqb/scripts/change-endian.py | cryptotechguru/tesseract | 9b64c61483710c94390404c3d920c1059cbfcda7 | [
"MIT"
] | 45 | 2019-02-05T17:17:18.000Z | 2019-07-20T17:21:02.000Z | eqb/scripts/change-endian.py | cryptotechguru/tesseract | 9b64c61483710c94390404c3d920c1059cbfcda7 | [
"MIT"
] | 6 | 2019-02-01T12:30:48.000Z | 2019-03-01T20:33:14.000Z | # This is a handy reverses the endianess of a given binary string in HEX
input = "020000000001017c037e163f8dfee4632a8cf6c87187d3cb61224e6dae8f4b0ed0fae3a38008570000000017160014c5729e3aaacb6a160fa79949a8d7f1e5cd1fbc51feffffff0288102c040000000017a914ed649576ad657747835d116611981c90113c074387005a62020000000017a914e62a29... | 48.478261 | 507 | 0.833184 | 71 | 1,115 | 12.971831 | 0.605634 | 0.098806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.412281 | 0.079821 | 1,115 | 23 | 508 | 48.478261 | 0.48538 | 0.06278 | 0 | 0 | 0 | 0 | 0.641762 | 0.597701 | 0 | 1 | 0 | 0 | 0.466667 | 1 | 0.133333 | false | 0 | 0 | 0 | 0.2 | 0.066667 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a3e62cbd20285e2288a6d50a123c377745e43d52 | 125 | py | Python | tests/test_utils/helpers.py | innoviz-sw-infra/rapid-env | acc5e1e461af42b5fbb7024c0b79d4315c206fe2 | [
"MIT"
] | 1 | 2021-02-15T20:55:49.000Z | 2021-02-15T20:55:49.000Z | tests/test_utils/helpers.py | innoviz-sw-infra/rapid-env | acc5e1e461af42b5fbb7024c0b79d4315c206fe2 | [
"MIT"
] | null | null | null | tests/test_utils/helpers.py | innoviz-sw-infra/rapid-env | acc5e1e461af42b5fbb7024c0b79d4315c206fe2 | [
"MIT"
] | null | null | null | from pathlib import Path
def tmp_folder(test_filename):
return Path(__file__).parent / 'tmp' / Path(test_filename).stem | 25 | 67 | 0.76 | 18 | 125 | 4.888889 | 0.722222 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136 | 125 | 5 | 67 | 25 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
43427e1561417d0bb0264993654a5f5a6e63d618 | 5,830 | py | Python | tests/core/contracts/test_contract_example.py | iamdefinitelyahuman/web3.py | 7cc996723841895b9cc4feac354bc06d711dee05 | [
"MIT"
] | 2 | 2019-09-27T09:33:10.000Z | 2019-10-09T10:34:04.000Z | tests/core/contracts/test_contract_example.py | iamdefinitelyahuman/web3.py | 7cc996723841895b9cc4feac354bc06d711dee05 | [
"MIT"
] | null | null | null | tests/core/contracts/test_contract_example.py | iamdefinitelyahuman/web3.py | 7cc996723841895b9cc4feac354bc06d711dee05 | [
"MIT"
] | 2 | 2019-02-26T23:01:31.000Z | 2019-03-03T02:10:57.000Z | # This file is used by the documentation as an example of how to write unit tests with web3.py
import pytest
from web3 import (
EthereumTesterProvider,
Web3,
)
@pytest.fixture
def tester_provider():
return EthereumTesterProvider()
@pytest.fixture
def eth_tester(tester_provider):
return tester_provi... | 56.057692 | 2,501 | 0.808062 | 415 | 5,830 | 11.243373 | 0.363855 | 0.021217 | 0.013716 | 0.01886 | 0.123232 | 0.096657 | 0.088298 | 0.055722 | 0.055722 | 0.055722 | 0 | 0.450466 | 0.116981 | 5,830 | 103 | 2,502 | 56.601942 | 0.455905 | 0.178731 | 0 | 0.346939 | 0 | 0.020408 | 0.648148 | 0.622264 | 0 | 1 | 0 | 0 | 0.102041 | 1 | 0.142857 | false | 0 | 0.040816 | 0.061224 | 0.265306 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4a2b286dc1ee965b45c86a9e18ce924fd29316f2 | 24,269 | py | Python | tests/test_checkpoint_syslog_rfc5424.py | ccDev-Labs/splunk-connect-for-syslog | 2b30c711b4e53135444b485623bfc610ac2f19e2 | [
"BSD-2-Clause",
"CC0-1.0"
] | null | null | null | tests/test_checkpoint_syslog_rfc5424.py | ccDev-Labs/splunk-connect-for-syslog | 2b30c711b4e53135444b485623bfc610ac2f19e2 | [
"BSD-2-Clause",
"CC0-1.0"
] | null | null | null | tests/test_checkpoint_syslog_rfc5424.py | ccDev-Labs/splunk-connect-for-syslog | 2b30c711b4e53135444b485623bfc610ac2f19e2 | [
"BSD-2-Clause",
"CC0-1.0"
] | null | null | null | # Copyright 2019 Splunk, Inc.
#
# Use of this source code is governed by a BSD-2-clause-style
# license that can be found in the LICENSE-BSD2 file or at
# https://opensource.org/licenses/BSD-2-Clause
import random
from jinja2 import Environment
from .sendmessage import *
from .splunkutils import *
from .timeutils imp... | 81.989865 | 1,755 | 0.729202 | 3,290 | 24,269 | 5.213678 | 0.149848 | 0.026118 | 0.006529 | 0.02332 | 0.955168 | 0.952486 | 0.952486 | 0.952486 | 0.94724 | 0.94724 | 0 | 0.144271 | 0.100622 | 24,269 | 296 | 1,756 | 81.989865 | 0.641591 | 0.332193 | 0 | 0.731579 | 0 | 0.042105 | 0.292388 | 0.041955 | 0 | 0 | 0.022306 | 0 | 0.042105 | 1 | 0.042105 | false | 0.005263 | 0.026316 | 0 | 0.068421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
4a8cd0392044598c8790c300ef0c6685d1117089 | 197 | py | Python | cryptoxlib/clients/binance/functions.py | Belugary/cryptoxlib-aio | 5eb9a997d1be24bfdb92164086894b657c22ea2a | [
"MIT"
] | null | null | null | cryptoxlib/clients/binance/functions.py | Belugary/cryptoxlib-aio | 5eb9a997d1be24bfdb92164086894b657c22ea2a | [
"MIT"
] | null | null | null | cryptoxlib/clients/binance/functions.py | Belugary/cryptoxlib-aio | 5eb9a997d1be24bfdb92164086894b657c22ea2a | [
"MIT"
] | null | null | null | from cryptoxlib.Pair import Pair
def map_pair(pair: Pair) -> str:
return f"{pair.base}{pair.quote}"
def map_ws_pair(pair: Pair) -> str:
return f"{pair.base.lower()}{pair.quote.lower()}" | 21.888889 | 53 | 0.675127 | 32 | 197 | 4.0625 | 0.40625 | 0.246154 | 0.184615 | 0.230769 | 0.461538 | 0.461538 | 0.461538 | 0.461538 | 0 | 0 | 0 | 0 | 0.147208 | 197 | 9 | 53 | 21.888889 | 0.77381 | 0 | 0 | 0 | 0 | 0 | 0.313131 | 0.313131 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.4 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
4abcf6e4522570d12b4b67cef7289071769aba82 | 1,155 | py | Python | tests/test_site_parser/test_is_month_year_in_future.py | PavliukKonstantin/wallpaper-downloader | 104b5ca1bfdb26b9132f7619406d4e756eb3654c | [
"MIT"
] | null | null | null | tests/test_site_parser/test_is_month_year_in_future.py | PavliukKonstantin/wallpaper-downloader | 104b5ca1bfdb26b9132f7619406d4e756eb3654c | [
"MIT"
] | null | null | null | tests/test_site_parser/test_is_month_year_in_future.py | PavliukKonstantin/wallpaper-downloader | 104b5ca1bfdb26b9132f7619406d4e756eb3654c | [
"MIT"
] | null | null | null | from wallpaper_downloader import site_parser
def test_with_month_year_in_future(get_page_html_from_file):
"""
Test '_is_month_year_in_future' function of site_parser module.
Function is tested with the month and year more than the newest
month and year in the HTML.
Args:
get_page_html_fr... | 28.875 | 68 | 0.719481 | 176 | 1,155 | 4.278409 | 0.232955 | 0.095618 | 0.146082 | 0.203187 | 0.895086 | 0.895086 | 0.836653 | 0.759628 | 0.759628 | 0.759628 | 0 | 0.008879 | 0.219913 | 1,155 | 39 | 69 | 29.615385 | 0.826859 | 0.395671 | 0 | 0.470588 | 0 | 0 | 0.096063 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.176471 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
434b572f8482f2442f2ba37325f0bc94b3faf01d | 131 | py | Python | test/test_config.py | cnut1648/torcherist | 2e1f7a878814126d6faff81e7214ea35ae1d0902 | [
"MIT"
] | null | null | null | test/test_config.py | cnut1648/torcherist | 2e1f7a878814126d6faff81e7214ea35ae1d0902 | [
"MIT"
] | null | null | null | test/test_config.py | cnut1648/torcherist | 2e1f7a878814126d6faff81e7214ea35ae1d0902 | [
"MIT"
] | null | null | null | from torcherist.config import dataset_dir
from pathlib import Path
def test_dataset_dir():
assert Path(dataset_dir).exists()
| 18.714286 | 41 | 0.793893 | 19 | 131 | 5.263158 | 0.631579 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137405 | 131 | 6 | 42 | 21.833333 | 0.884956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | true | 0 | 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 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
436446a3b6cb24406ea7fd04ec72be98be8b2502 | 6,503 | py | Python | DemoTestUnit/tests/__init__.py | appukuttan-shailesh/DemoTestUnit | bd0430fdb730ad18492f3cd32b1af039fa9fe093 | [
"BSD-3-Clause"
] | 1 | 2021-05-05T15:44:13.000Z | 2021-05-05T15:44:13.000Z | DemoTestUnit/tests/__init__.py | appukuttan-shailesh/DemoTestUnit | bd0430fdb730ad18492f3cd32b1af039fa9fe093 | [
"BSD-3-Clause"
] | null | null | null | DemoTestUnit/tests/__init__.py | appukuttan-shailesh/DemoTestUnit | bd0430fdb730ad18492f3cd32b1af039fa9fe093 | [
"BSD-3-Clause"
] | null | null | null | import sciunit
import efel
import numpy
import os
import json
import matplotlib
# To avoid figures being plotted on screen (we wish to save to file directly)
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import DemoTestUnit.capabilities as cap
# ===============================================================... | 41.158228 | 132 | 0.578964 | 736 | 6,503 | 4.995924 | 0.21875 | 0.048953 | 0.063639 | 0.045689 | 0.855861 | 0.839815 | 0.807724 | 0.770737 | 0.770737 | 0.748436 | 0 | 0.008639 | 0.270183 | 6,503 | 157 | 133 | 41.420382 | 0.766119 | 0.103029 | 0 | 0.745763 | 0 | 0 | 0.136293 | 0.010325 | 0 | 0 | 0 | 0 | 0.050847 | 1 | 0.084746 | false | 0 | 0.067797 | 0 | 0.254237 | 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 |
43719e6fa7f86469e2b1b30bad9d6c30894edf10 | 242 | py | Python | locale/pot/api/plotting/_autosummary/pyvista-Renderer-view_isometric-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 4 | 2020-08-07T08:19:19.000Z | 2020-12-04T09:51:11.000Z | locale/pot/api/plotting/_autosummary/pyvista-Plotter-view_isometric-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 19 | 2020-08-06T00:24:30.000Z | 2022-03-30T19:22:24.000Z | locale/pot/api/plotting/_autosummary/pyvista-Renderer-view_isometric-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 1 | 2021-03-09T07:50:40.000Z | 2021-03-09T07:50:40.000Z | # Isometric view.
#
from pyvista import demos
pl = demos.orientation_plotter()
pl.view_isometric()
pl.show()
#
# Negative isometric view.
#
from pyvista import demos
pl = demos.orientation_plotter()
pl.view_isometric(negative=True)
pl.show()
| 17.285714 | 32 | 0.768595 | 33 | 242 | 5.515152 | 0.363636 | 0.142857 | 0.186813 | 0.263736 | 0.824176 | 0.824176 | 0.824176 | 0.824176 | 0.824176 | 0.824176 | 0 | 0 | 0.115702 | 242 | 13 | 33 | 18.615385 | 0.850467 | 0.165289 | 0 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 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 | 9 |
43d76fe6d9fe09270d06f396178f20835aa7311a | 3,084 | py | Python | test/test_wierd_molecule.py | UnixJunkie/frowns | 427e4c11a8a4dbe865828d18221899478497795e | [
"BSD-3-Clause"
] | null | null | null | test/test_wierd_molecule.py | UnixJunkie/frowns | 427e4c11a8a4dbe865828d18221899478497795e | [
"BSD-3-Clause"
] | null | null | null | test/test_wierd_molecule.py | UnixJunkie/frowns | 427e4c11a8a4dbe865828d18221899478497795e | [
"BSD-3-Clause"
] | null | null | null | text = """
-- StrEd --
26 28 0 0 0 0 0 0 0 0999 V2000
-3.7710 3.0165 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
6.0165 0.1960 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
3.5750 -4.1335 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
8.4665 -12.6040 0.0000 C 0 0 0 ... | 31.469388 | 69 | 0.446822 | 770 | 3,084 | 1.78961 | 0.127273 | 0.545718 | 0.698839 | 0.772134 | 0.604499 | 0.554427 | 0.466618 | 0.461538 | 0.461538 | 0.461538 | 0 | 0.654393 | 0.498054 | 3,084 | 97 | 70 | 31.793814 | 0.235788 | 0 | 0 | 0.02381 | 0 | 0.309524 | 0.877432 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
78f6592fd4a9e26bf4935ccf2f2944421dc07281 | 21,090 | py | Python | polyaxon_schemas/ml/layers/pooling.py | granularai/polyaxon-schemas | 017ae74701f21f12f0b25e75379681ea5d8baa9e | [
"MIT"
] | null | null | null | polyaxon_schemas/ml/layers/pooling.py | granularai/polyaxon-schemas | 017ae74701f21f12f0b25e75379681ea5d8baa9e | [
"MIT"
] | null | null | null | polyaxon_schemas/ml/layers/pooling.py | granularai/polyaxon-schemas | 017ae74701f21f12f0b25e75379681ea5d8baa9e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from marshmallow import fields, validate
from polyaxon_schemas.fields import ObjectOrListObject
from polyaxon_schemas.ml.layers.base import BaseLayerConfig, BaseLayerSchema
class MaxPooling1DSchema(BaseLayerSchema):
pool_si... | 34.57377 | 100 | 0.640161 | 2,300 | 21,090 | 5.699565 | 0.074348 | 0.048821 | 0.055534 | 0.054924 | 0.830498 | 0.821726 | 0.797849 | 0.796323 | 0.78244 | 0.772599 | 0 | 0.017703 | 0.263442 | 21,090 | 609 | 101 | 34.630542 | 0.826188 | 0.531721 | 0 | 0.579545 | 0 | 0 | 0.065316 | 0.007643 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.022727 | 0.068182 | 0.636364 | 0.005682 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
6017149597a57bba43fa126d9072ae42e915475a | 113 | py | Python | stests/generators/wg_110/__main__.py | goral09/stests | 4de26485535cadf1b708188a7133a976536ccba3 | [
"Apache-2.0"
] | 4 | 2020-03-10T15:28:17.000Z | 2021-10-02T11:41:17.000Z | stests/generators/wg_110/__main__.py | goral09/stests | 4de26485535cadf1b708188a7133a976536ccba3 | [
"Apache-2.0"
] | 1 | 2020-03-25T11:31:44.000Z | 2020-03-25T11:31:44.000Z | stests/generators/wg_110/__main__.py | goral09/stests | 4de26485535cadf1b708188a7133a976536ccba3 | [
"Apache-2.0"
] | 9 | 2020-02-25T18:43:42.000Z | 2021-08-10T17:08:42.000Z | from stests.generators import launcher
from stests.generators.wg_110 import meta
launcher.start_generator(meta)
| 22.6 | 41 | 0.858407 | 16 | 113 | 5.9375 | 0.625 | 0.210526 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.088496 | 113 | 4 | 42 | 28.25 | 0.893204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
601d388c16db649508774b8e5773da3981815e8b | 812 | py | Python | NoiseGenerator/INoise.py | johnsbuck/MapGeneration | 0022442995772bc2ec56210a3d6465f7d766ad4d | [
"MIT"
] | 5 | 2019-06-02T22:52:26.000Z | 2019-07-18T22:51:19.000Z | NoiseGenerator/INoise.py | johnsbuck/MapGeneration | 0022442995772bc2ec56210a3d6465f7d766ad4d | [
"MIT"
] | 1 | 2022-02-22T17:48:41.000Z | 2022-02-22T17:48:41.000Z | NoiseGenerator/INoise.py | johnsbuck/MapGeneration | 0022442995772bc2ec56210a3d6465f7d766ad4d | [
"MIT"
] | 1 | 2019-06-03T07:55:10.000Z | 2019-06-03T07:55:10.000Z | from abc import ABCMeta, abstractmethod
class INoise(metaclass=ABCMeta):
def __init__(self):
raise NotImplementedError("This object is an interface that has no implementation.")
@property
@abstractmethod
def NOISE_LIST(self):
raise NotImplementedError("This object is an interface tha... | 32.48 | 92 | 0.727833 | 91 | 812 | 6.43956 | 0.32967 | 0.204778 | 0.238908 | 0.290102 | 0.790102 | 0.790102 | 0.790102 | 0.790102 | 0.790102 | 0.790102 | 0 | 0.004637 | 0.203202 | 812 | 24 | 93 | 33.833333 | 0.901082 | 0 | 0 | 0.529412 | 0 | 0 | 0.33867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
602a107a4a64b9f18529140899aa6fbbf3740561 | 26,315 | py | Python | test/test_blackboard.py | ryanstwrt/multi_agent_blackboard_system | b8f6ab71dfe0742a6f690de19b97d10504fc1768 | [
"MIT"
] | 1 | 2021-08-02T10:29:35.000Z | 2021-08-02T10:29:35.000Z | test/test_blackboard.py | ryanstwrt/multi_agent_blackboard_system | b8f6ab71dfe0742a6f690de19b97d10504fc1768 | [
"MIT"
] | 10 | 2020-03-14T07:39:34.000Z | 2021-11-03T22:55:28.000Z | test/test_blackboard.py | ryanstwrt/multi_agent_blackboard_system | b8f6ab71dfe0742a6f690de19b97d10504fc1768 | [
"MIT"
] | 1 | 2021-07-18T14:43:10.000Z | 2021-07-18T14:43:10.000Z | import osbrain
from osbrain import run_nameserver
from osbrain import run_agent
import numpy as np
import mabs.bb.blackboard as blackboard
import mabs.ka.base as ka
import time
import os
import h5py
from collections.abc import Iterable
def test_blackboard_init_agent():
try:
ns = run_nameserver()
ex... | 38.248547 | 218 | 0.595554 | 3,880 | 26,315 | 3.80232 | 0.04201 | 0.037823 | 0.042703 | 0.04982 | 0.869721 | 0.840236 | 0.821663 | 0.784654 | 0.74961 | 0.722633 | 0 | 0.041791 | 0.224359 | 26,315 | 687 | 219 | 38.304221 | 0.681005 | 0.023789 | 0 | 0.706093 | 0 | 0 | 0.18597 | 0.007482 | 0 | 0 | 0 | 0 | 0.137993 | 1 | 0.053763 | false | 0.003584 | 0.017921 | 0 | 0.071685 | 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 |
60454ec6a6a94119f4e986c8195f34e072d0686c | 304 | py | Python | apps/manager/purpleserver/manager/views/__init__.py | rcknr/purplship-server | f8ec35af3da870fada0e989c20a8349c958c637c | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2020-02-03T08:11:21.000Z | 2021-04-13T02:00:38.000Z | apps/manager/purpleserver/manager/views/__init__.py | rcknr/purplship-server | f8ec35af3da870fada0e989c20a8349c958c637c | [
"ECL-2.0",
"Apache-2.0"
] | 9 | 2020-02-12T00:25:08.000Z | 2021-04-20T10:31:59.000Z | apps/manager/purpleserver/manager/views/__init__.py | rcknr/purplship-server | f8ec35af3da870fada0e989c20a8349c958c637c | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2020-02-03T08:10:50.000Z | 2021-04-13T15:17:12.000Z | import purpleserver.manager.views.addresses
import purpleserver.manager.views.parcels
import purpleserver.manager.views.shipments
import purpleserver.manager.views.trackers
import purpleserver.manager.views.customs
import purpleserver.manager.views.pickups
from purpleserver.manager.router import router
| 38 | 46 | 0.881579 | 36 | 304 | 7.444444 | 0.333333 | 0.496269 | 0.559701 | 0.671642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 304 | 7 | 47 | 43.428571 | 0.930556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
607d7ac14e09a241229bd8a04619b937123594c1 | 337 | py | Python | stock/admin.py | flakesrc/wpensar-test | 3b70a0a4d510554260090d1d0a64d1c2b1848e65 | [
"MIT"
] | null | null | null | stock/admin.py | flakesrc/wpensar-test | 3b70a0a4d510554260090d1d0a64d1c2b1848e65 | [
"MIT"
] | null | null | null | stock/admin.py | flakesrc/wpensar-test | 3b70a0a4d510554260090d1d0a64d1c2b1848e65 | [
"MIT"
] | null | null | null | from django.contrib import admin
# from .models import StockModel
# @admin.register(StockModel)
# class StockModelAdmin(admin.ModelAdmin):
# fields = ('name', 'quantity', 'price', 'avg_price')
# list_display = ('name', 'quantity', 'price', 'avg_price', 'created')
# list_filter = ('name', 'quantity', 'pric... | 33.7 | 74 | 0.670623 | 37 | 337 | 5.972973 | 0.540541 | 0.162896 | 0.230769 | 0.271493 | 0.339367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148368 | 337 | 9 | 75 | 37.444444 | 0.770035 | 0.857567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
6095f89b4131153ba0555e8031d9a98b02cbee63 | 226 | py | Python | tests/__init__.py | akram256/authors_heaven | 23bc769fc1f03da391426eaf00ec14c15fdeff04 | [
"BSD-3-Clause"
] | null | null | null | tests/__init__.py | akram256/authors_heaven | 23bc769fc1f03da391426eaf00ec14c15fdeff04 | [
"BSD-3-Clause"
] | null | null | null | tests/__init__.py | akram256/authors_heaven | 23bc769fc1f03da391426eaf00ec14c15fdeff04 | [
"BSD-3-Clause"
] | null | null | null |
user1 = {
"user": {
"username": "akram",
"email": "akram.mukasa@andela.com",
"password": "Akram@100555"
}
}
login1 = {"user": {"email": "akram.mukasa@andela.com", "password": "Akram@100555"}}
| 20.545455 | 83 | 0.530973 | 22 | 226 | 5.454545 | 0.5 | 0.166667 | 0.266667 | 0.366667 | 0.733333 | 0.733333 | 0.733333 | 0.733333 | 0 | 0 | 0 | 0.081395 | 0.238938 | 226 | 10 | 84 | 22.6 | 0.616279 | 0 | 0 | 0 | 0 | 0 | 0.52 | 0.204444 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
60c8b4dc01bcdc2425e024246b46f0e4e334acd8 | 73,135 | py | Python | infoblox_netmri/api/broker/v3_6_0/vrrp_router_stat_broker.py | IngmarVG-IB/infoblox-netmri | b0c725fd64aee1890d83917d911b89236207e564 | [
"Apache-2.0"
] | null | null | null | infoblox_netmri/api/broker/v3_6_0/vrrp_router_stat_broker.py | IngmarVG-IB/infoblox-netmri | b0c725fd64aee1890d83917d911b89236207e564 | [
"Apache-2.0"
] | null | null | null | infoblox_netmri/api/broker/v3_6_0/vrrp_router_stat_broker.py | IngmarVG-IB/infoblox-netmri | b0c725fd64aee1890d83917d911b89236207e564 | [
"Apache-2.0"
] | null | null | null | from ..broker import Broker
class VrrpRouterStatBroker(Broker):
controller = "vrrp_router_stats"
def show(self, **kwargs):
"""Shows the details for the specified vrrp router stat.
**Inputs**
| ``api version min:`` None
| ``api version max:`` None
... | 54.700823 | 779 | 0.622657 | 8,525 | 73,135 | 5.291965 | 0.037302 | 0.069158 | 0.044953 | 0.071818 | 0.955424 | 0.95354 | 0.921177 | 0.905905 | 0.900718 | 0.898812 | 0 | 0.004226 | 0.297915 | 73,135 | 1,337 | 780 | 54.700823 | 0.874384 | 0.828837 | 0 | 0 | 0 | 0 | 0.051556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.066667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 9 |
60e56c48b77c6786ea743f159a03dfe65fcc11eb | 78 | py | Python | goje_scrapper/__init__.py | alifzl/goje_scrapper | c831809f0696375d509869db347a79d86d939a86 | [
"MIT"
] | 6 | 2021-04-05T08:35:06.000Z | 2021-07-03T22:32:58.000Z | goje_scrapper/__init__.py | alifzl/goje_scrapper | c831809f0696375d509869db347a79d86d939a86 | [
"MIT"
] | null | null | null | goje_scrapper/__init__.py | alifzl/goje_scrapper | c831809f0696375d509869db347a79d86d939a86 | [
"MIT"
] | null | null | null | from goje_scrapper.goje import Goje
from goje_scrapper.goje import GojeScraper | 39 | 42 | 0.884615 | 12 | 78 | 5.583333 | 0.416667 | 0.238806 | 0.477612 | 0.597015 | 0.776119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089744 | 78 | 2 | 42 | 39 | 0.943662 | 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 |
880dce770c08abfb66574f326206c6b4a3919be7 | 1,039 | py | Python | units/volume/gallons.py | putridparrot/PyUnits | 4f1095c6fc0bee6ba936921c391913dbefd9307c | [
"MIT"
] | null | null | null | units/volume/gallons.py | putridparrot/PyUnits | 4f1095c6fc0bee6ba936921c391913dbefd9307c | [
"MIT"
] | null | null | null | units/volume/gallons.py | putridparrot/PyUnits | 4f1095c6fc0bee6ba936921c391913dbefd9307c | [
"MIT"
] | null | null | null | # <auto-generated>
# This code was generated by the UnitCodeGenerator tool
#
# Changes to this file will be lost if the code is regenerated
# </auto-generated>
def to_millilitres(value):
return value * 4546.091879
def to_litres(value):
return value * 4.546091879
def to_kilolitres(value):
return value * 0.0045460... | 27.342105 | 62 | 0.772859 | 160 | 1,039 | 4.825 | 0.31875 | 0.09715 | 0.310881 | 0.176166 | 0.069948 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224719 | 0.143407 | 1,039 | 37 | 63 | 28.081081 | 0.642697 | 0.143407 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.