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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
161594dae20c9c6147763ebb7fd917f6a1694444 | 10,198 | py | Python | tests/chainer_tests/functions_tests/math_tests/test_minmax.py | hikjik/chainer | 324a1bc1ea3edd63d225e4a87ed0a36af7fd712f | [
"MIT"
] | null | null | null | tests/chainer_tests/functions_tests/math_tests/test_minmax.py | hikjik/chainer | 324a1bc1ea3edd63d225e4a87ed0a36af7fd712f | [
"MIT"
] | null | null | null | tests/chainer_tests/functions_tests/math_tests/test_minmax.py | hikjik/chainer | 324a1bc1ea3edd63d225e4a87ed0a36af7fd712f | [
"MIT"
] | null | null | null | import unittest
import numpy
import chainer
from chainer.backends import cuda
from chainer import functions
from chainer import gradient_check
from chainer import testing
from chainer.testing import attr
import chainerx
@testing.parameterize(*testing.product({
'axis': [
None,
0, 1, 2, # axis
... | 30.532934 | 79 | 0.610512 | 1,362 | 10,198 | 4.378855 | 0.085169 | 0.040241 | 0.052314 | 0.030516 | 0.892857 | 0.888833 | 0.879779 | 0.877767 | 0.864353 | 0.857478 | 0 | 0.018437 | 0.260737 | 10,198 | 333 | 80 | 30.624625 | 0.772649 | 0.025397 | 0 | 0.747126 | 0 | 0 | 0.015719 | 0 | 0 | 0 | 0 | 0 | 0.08046 | 1 | 0.187739 | false | 0 | 0.034483 | 0.007663 | 0.249042 | 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 |
16164d93529f6a5a18e000ec5f2fceb28cef81dd | 775 | py | Python | GraphCodeBERT/clonedetection/dataset/scripts.py | soarsmu/attack-pretrain-models-of-code | 38fa2a6316859efde1507ef6186b4879e7b13748 | [
"MIT"
] | 3 | 2022-01-24T05:01:47.000Z | 2022-03-21T09:31:20.000Z | GraphCodeBERT/clonedetection/dataset/scripts.py | soarsmu/attack-pretrain-models-of-code | 38fa2a6316859efde1507ef6186b4879e7b13748 | [
"MIT"
] | null | null | null | GraphCodeBERT/clonedetection/dataset/scripts.py | soarsmu/attack-pretrain-models-of-code | 38fa2a6316859efde1507ef6186b4879e7b13748 | [
"MIT"
] | null | null | null | for index in range(46):
a = index * 2000
b = (index + 1) * 2000
if (index + 1) % 8 == 0:
print("""CUDA_VISIBLE_DEVICES={2} python get_substitutes.py \\
--store_path ./train_subs_{0}_{1}.jsonl \\
--base_model=microsoft/graphcodebert-base \\
--eval_data_file=./train_sampled.txt... | 40.789474 | 70 | 0.547097 | 102 | 775 | 3.921569 | 0.411765 | 0.02 | 0.08 | 0.115 | 0.87 | 0.87 | 0.87 | 0.87 | 0.87 | 0.87 | 0 | 0.059337 | 0.260645 | 775 | 19 | 71 | 40.789474 | 0.638743 | 0 | 0 | 0.631579 | 0 | 0 | 0.676546 | 0.32732 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
164694ff165c7d09ab80f5cf1e17e9affb135b7d | 123 | py | Python | opac/queries/book/__init__.py | rimphyd/Django-OPAC | d86f2e28fee7f2ec551aeeb98ec67caefc06a3fb | [
"MIT"
] | 1 | 2020-11-26T05:25:46.000Z | 2020-11-26T05:25:46.000Z | opac/queries/book/__init__.py | rimphyd/Django-OPAC | d86f2e28fee7f2ec551aeeb98ec67caefc06a3fb | [
"MIT"
] | null | null | null | opac/queries/book/__init__.py | rimphyd/Django-OPAC | d86f2e28fee7f2ec551aeeb98ec67caefc06a3fb | [
"MIT"
] | null | null | null | from .detail import * # noqa: F401 F403
from .search import * # noqa: F401 F403
from .stocks import * # noqa: F401 F403
| 30.75 | 40 | 0.682927 | 18 | 123 | 4.666667 | 0.444444 | 0.357143 | 0.5 | 0.642857 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 0.219512 | 123 | 3 | 41 | 41 | 0.6875 | 0.382114 | 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 |
1670875b74a6ebbdf40d51c148a54e2d676f2744 | 16,721 | py | Python | models/multiple_solution/physics_based/TWO.py | cyy111/metaheuristics | 9d885e4c9e9f39ad22baa9ea5d263d5daa276f88 | [
"Apache-2.0"
] | 104 | 2020-09-07T01:24:19.000Z | 2022-03-30T13:11:21.000Z | models/multiple_solution/physics_based/TWO.py | luanedge/metaheuristics | 9d885e4c9e9f39ad22baa9ea5d263d5daa276f88 | [
"Apache-2.0"
] | 3 | 2020-05-12T03:54:16.000Z | 2020-06-06T01:12:31.000Z | models/multiple_solution/physics_based/TWO.py | luanedge/metaheuristics | 9d885e4c9e9f39ad22baa9ea5d263d5daa276f88 | [
"Apache-2.0"
] | 40 | 2020-08-30T14:29:37.000Z | 2022-03-30T17:33:26.000Z | import numpy as np
from copy import deepcopy
from math import gamma
from models.multiple_solution.root_multiple import RootAlgo
class BaseTWO(RootAlgo):
"""
A novel meta-heuristic algorithm: tug of war optimization
"""
ID_POS = 0
ID_FIT = 1
ID_WEIGHT = 2
def __init__(self, root_algo_paras=... | 50.062874 | 159 | 0.571617 | 2,502 | 16,721 | 3.472022 | 0.053557 | 0.102222 | 0.052377 | 0.046852 | 0.856798 | 0.834926 | 0.829515 | 0.822954 | 0.816277 | 0.816277 | 0 | 0.015574 | 0.308773 | 16,721 | 333 | 160 | 50.213213 | 0.736027 | 0.019078 | 0 | 0.789091 | 0 | 0 | 0.013309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.014545 | 0 | 0.134545 | 0.036364 | 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 |
1673745cf12ccc3e72cb8660bdb8d235fe476966 | 1,424 | py | Python | pyfo/pyppl/ppl_base_model.py | bradleygramhansen/pyfo | 559678080f27e7d9f3f194a0c28e9e8bfe71a7f3 | [
"MIT"
] | 3 | 2018-06-11T09:16:13.000Z | 2019-03-08T05:22:43.000Z | pyfo/pyppl/ppl_base_model.py | bradleygramhansen/pyfo | 559678080f27e7d9f3f194a0c28e9e8bfe71a7f3 | [
"MIT"
] | null | null | null | pyfo/pyppl/ppl_base_model.py | bradleygramhansen/pyfo | 559678080f27e7d9f3f194a0c28e9e8bfe71a7f3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Author: Bradley Gram-Hansen
Time created: 18:51
Date created: 19/03/2018
License: MIT
'''
from abc import ABC, abstractmethod, ABCMeta
class base_model(ABC):
@abstractmethod
def get_vertices(self):
return NotImplementedError
@abstractmethod
... | 20.941176 | 44 | 0.699438 | 142 | 1,424 | 6.823944 | 0.34507 | 0.245614 | 0.418989 | 0.576883 | 0.733746 | 0.733746 | 0.577915 | 0.239422 | 0 | 0 | 0 | 0.012903 | 0.238062 | 1,424 | 68 | 45 | 20.941176 | 0.880184 | 0.092697 | 0 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0.022727 | 0.318182 | 0.681818 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
1691defab0c4a507c934d51aa0f95084d14c6f07 | 15,156 | py | Python | api/tests/test_routing.py | mmanchev23/Healthy-at-Home | bf3a081cc4102c7fa379b601391bb1e126c17d1e | [
"MIT"
] | null | null | null | api/tests/test_routing.py | mmanchev23/Healthy-at-Home | bf3a081cc4102c7fa379b601391bb1e126c17d1e | [
"MIT"
] | null | null | null | api/tests/test_routing.py | mmanchev23/Healthy-at-Home | bf3a081cc4102c7fa379b601391bb1e126c17d1e | [
"MIT"
] | null | null | null | from app.models import *
from rest_framework import status
from rest_framework.authtoken.models import Token
from rest_framework.test import APIClient, APITestCase
from django.test import Client
class TestHomePageRoute(APITestCase):
def setUp(self):
self.customer = Customer.objects.create_user(
... | 49.368078 | 88 | 0.707113 | 1,833 | 15,156 | 5.570104 | 0.039825 | 0.070519 | 0.084623 | 0.117532 | 0.967973 | 0.954946 | 0.954946 | 0.954946 | 0.954946 | 0.886876 | 0 | 0.029289 | 0.195764 | 15,156 | 306 | 89 | 49.529412 | 0.808352 | 0.043151 | 0 | 0.72103 | 0 | 0 | 0.037272 | 0 | 0 | 0 | 0 | 0 | 0.206009 | 1 | 0.23176 | false | 0.025751 | 0.021459 | 0 | 0.27897 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
16e7bd98909279e0c5fc6db3b3459d9020fab50d | 154 | py | Python | dl4ds/models/__init__.py | carlgogo/dl4ds | 2675fe772b7e165ab8726a51c75dd3d9d0a7a465 | [
"Apache-2.0"
] | null | null | null | dl4ds/models/__init__.py | carlgogo/dl4ds | 2675fe772b7e165ab8726a51c75dd3d9d0a7a465 | [
"Apache-2.0"
] | null | null | null | dl4ds/models/__init__.py | carlgogo/dl4ds | 2675fe772b7e165ab8726a51c75dd3d9d0a7a465 | [
"Apache-2.0"
] | null | null | null | from .sp_postups import *
from .spt_postups import *
from .sp_preups import *
from .spt_preups import *
from .discriminator import *
from .blocks import * | 25.666667 | 28 | 0.772727 | 22 | 154 | 5.227273 | 0.363636 | 0.434783 | 0.295652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149351 | 154 | 6 | 29 | 25.666667 | 0.877863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
bc9797b8c096244094d0b3b8ba47d964069ef5d1 | 14,731 | py | Python | sdk/python/pulumi_aws/elasticbeanstalk/application.py | aamir-locus/pulumi-aws | 3e234b050129bde35d8e072a88bd608562f02142 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/elasticbeanstalk/application.py | aamir-locus/pulumi-aws | 3e234b050129bde35d8e072a88bd608562f02142 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/elasticbeanstalk/application.py | aamir-locus/pulumi-aws | 3e234b050129bde35d8e072a88bd608562f02142 | [
"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... | 40.69337 | 134 | 0.646324 | 1,609 | 14,731 | 5.724052 | 0.116843 | 0.084799 | 0.071444 | 0.052552 | 0.810206 | 0.792508 | 0.769055 | 0.760478 | 0.743757 | 0.731488 | 0 | 0.000819 | 0.254294 | 14,731 | 361 | 135 | 40.806094 | 0.837597 | 0.316951 | 0 | 0.713542 | 1 | 0 | 0.109924 | 0.042312 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0.005208 | 0.036458 | 0.015625 | 0.286458 | 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 |
bca3b7603852350ed0cc54b82ddd9a7ff7408e85 | 330 | py | Python | Level1/Lessons70128/gamjapark.py | StudyForCoding/ProgrammersLevel | dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25 | [
"MIT"
] | null | null | null | Level1/Lessons70128/gamjapark.py | StudyForCoding/ProgrammersLevel | dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25 | [
"MIT"
] | null | null | null | Level1/Lessons70128/gamjapark.py | StudyForCoding/ProgrammersLevel | dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25 | [
"MIT"
] | 1 | 2021-04-05T07:35:59.000Z | 2021-04-05T07:35:59.000Z | # 내적
def solution(a, b):
return sum([x*y for x, y in zip(a, b)])
'''
테스트 1 〉 통과 (0.13ms, 10.3MB)
테스트 2 〉 통과 (0.02ms, 10.2MB)
테스트 3 〉 통과 (0.02ms, 10.2MB)
테스트 4 〉 통과 (0.02ms, 10.1MB)
테스트 5 〉 통과 (0.02ms, 10.2MB)
테스트 6 〉 통과 (0.07ms, 10.2MB)
테스트 7 〉 통과 (0.10ms, 10.3MB)
테스트 8 〉 통과 (0.13ms, 10.3MB)
테스트 9 〉 통과 (0.12ms, 1... | 20.625 | 43 | 0.551515 | 88 | 330 | 2.170455 | 0.386364 | 0.141361 | 0.188482 | 0.167539 | 0.471204 | 0.418848 | 0.418848 | 0 | 0 | 0 | 0 | 0.246094 | 0.224242 | 330 | 16 | 44 | 20.625 | 0.464844 | 0.006061 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
bcd540a8819798eafbcb19e5fe0c120348deab80 | 12,735 | py | Python | tf3d/object_detection/data_preparation_utils_test.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 23,901 | 2018-10-04T19:48:53.000Z | 2022-03-31T21:27:42.000Z | tf3d/object_detection/data_preparation_utils_test.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 891 | 2018-11-10T06:16:13.000Z | 2022-03-31T10:42:34.000Z | tf3d/object_detection/data_preparation_utils_test.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 6,047 | 2018-10-12T06:31:02.000Z | 2022-03-31T13:59:28.000Z | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 53.284519 | 80 | 0.502395 | 1,208 | 12,735 | 5.126656 | 0.146523 | 0.117552 | 0.238818 | 0.067819 | 0.795091 | 0.788309 | 0.78395 | 0.764573 | 0.751332 | 0.745842 | 0 | 0.057094 | 0.404476 | 12,735 | 238 | 81 | 53.508403 | 0.759494 | 0.049706 | 0 | 0.737624 | 0 | 0 | 0.041794 | 0.02218 | 0 | 0 | 0 | 0 | 0.024752 | 1 | 0.024752 | false | 0 | 0.019802 | 0 | 0.049505 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bcfd0095503b0dfc829eee0ac5072111f2119a40 | 12,138 | py | Python | tools/accuracy_checker/tests/test_segmentation_metrics.py | PinDanil/open_model_zoo | 8538b2769d65d7ca24dd36db0340a9c143583812 | [
"Apache-2.0"
] | 1 | 2021-07-12T07:43:59.000Z | 2021-07-12T07:43:59.000Z | tools/accuracy_checker/tests/test_segmentation_metrics.py | PinDanil/open_model_zoo | 8538b2769d65d7ca24dd36db0340a9c143583812 | [
"Apache-2.0"
] | 3 | 2020-07-20T10:01:14.000Z | 2021-06-07T10:35:52.000Z | tools/accuracy_checker/tests/test_segmentation_metrics.py | ygnn123/open_model_zoo | 9ca5dbeff80464bf5728e8be25daedfe9a9208d7 | [
"Apache-2.0"
] | 1 | 2019-11-14T12:51:15.000Z | 2019-11-14T12:51:15.000Z | """
Copyright (c) 2018-2021 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... | 58.637681 | 112 | 0.700362 | 1,547 | 12,138 | 5.27214 | 0.091144 | 0.041442 | 0.046346 | 0.04463 | 0.86795 | 0.866969 | 0.866846 | 0.863904 | 0.863904 | 0.857651 | 0 | 0.039151 | 0.177212 | 12,138 | 206 | 113 | 58.92233 | 0.777511 | 0.046795 | 0 | 0.78125 | 0 | 0 | 0.009254 | 0.004152 | 0 | 0 | 0 | 0 | 0.10625 | 1 | 0.11875 | false | 0 | 0.03125 | 0.00625 | 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 |
4c12ee9b348f69bf9f7ba7cee4fa5be0afbaa3d7 | 4,286 | gyp | Python | chrome/browser/resources/settings/controls/compiled_resources2.gyp | xzhan96/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-01-07T18:51:03.000Z | 2021-01-07T18:51:03.000Z | chrome/browser/resources/settings/controls/compiled_resources2.gyp | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/resources/settings/controls/compiled_resources2.gyp | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'controlled_button',
'dependencies': [
'<(DEPTH)/ui/webui/resources/cr_elements/policy/compiled_reso... | 41.61165 | 110 | 0.64349 | 444 | 4,286 | 5.880631 | 0.173423 | 0.165454 | 0.193029 | 0.144772 | 0.863654 | 0.863654 | 0.836078 | 0.836078 | 0.836078 | 0.836078 | 0 | 0.011357 | 0.178255 | 4,286 | 102 | 111 | 42.019608 | 0.729983 | 0.036164 | 0 | 0.646465 | 0 | 0 | 0.738309 | 0.645021 | 0 | 0 | 0 | 0 | 0.060606 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
4c17c15a998c788f9bf8b939bf20b94159f93c95 | 1,139 | py | Python | package/test/test_email_config.py | QualiSystemsLab/cloudshell-email | 04404995c6680e62568a8c0fa60041120325d1e5 | [
"Apache-2.0"
] | null | null | null | package/test/test_email_config.py | QualiSystemsLab/cloudshell-email | 04404995c6680e62568a8c0fa60041120325d1e5 | [
"Apache-2.0"
] | 3 | 2020-11-24T19:03:11.000Z | 2022-03-22T05:29:39.000Z | package/test/test_email_config.py | QualiSystemsLab/cloudshell-email | 04404995c6680e62568a8c0fa60041120325d1e5 | [
"Apache-2.0"
] | 2 | 2020-09-17T03:28:14.000Z | 2022-03-17T21:31:20.000Z | import unittest
from unittest.mock import patch, mock_open
from mock import Mock, ANY
from cloudshell.email.email_config import EmailConfig
class TestEmailConfig(unittest.TestCase):
def setUp(self) -> None:
pass
def test_initialize_default_port(self):
self.email_config = EmailConfig('SMTP ... | 37.966667 | 90 | 0.71993 | 144 | 1,139 | 5.506944 | 0.229167 | 0.180328 | 0.226986 | 0.302648 | 0.721311 | 0.721311 | 0.721311 | 0.721311 | 0.721311 | 0.721311 | 0 | 0.011616 | 0.168569 | 1,139 | 30 | 91 | 37.966667 | 0.825766 | 0 | 0 | 0.380952 | 0 | 0 | 0.101754 | 0 | 0 | 0 | 0 | 0 | 0.47619 | 1 | 0.142857 | false | 0.238095 | 0.190476 | 0 | 0.380952 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
4c394ded091800d84216413e6ac92f4aff1d312a | 14,154 | py | Python | test/test_md033.py | jackdewinter/pymarkdown | 7ae408ba0b24506fa07552ffe520750bbff38c53 | [
"MIT"
] | 20 | 2021-01-14T17:39:09.000Z | 2022-03-14T08:35:22.000Z | test/test_md033.py | jackdewinter/pymarkdown | 7ae408ba0b24506fa07552ffe520750bbff38c53 | [
"MIT"
] | 304 | 2020-08-15T23:24:00.000Z | 2022-03-31T23:34:03.000Z | test/test_md033.py | jackdewinter/pymarkdown | 7ae408ba0b24506fa07552ffe520750bbff38c53 | [
"MIT"
] | 3 | 2021-08-11T10:26:26.000Z | 2021-11-02T20:41:27.000Z | """
Module to provide tests related to the MD033 rule.
"""
from test.markdown_scanner import MarkdownScanner
import pytest
@pytest.mark.rules
def test_md033_bad_configuration_allowed_elements():
"""
Test to verify that a configuration error is thrown when supplying the
allowed_elements value with an inte... | 27.862205 | 100 | 0.66052 | 1,700 | 14,154 | 5.244118 | 0.079412 | 0.05945 | 0.080763 | 0.098037 | 0.95244 | 0.951318 | 0.944588 | 0.944139 | 0.918228 | 0.913517 | 0 | 0.032204 | 0.234351 | 14,154 | 507 | 101 | 27.91716 | 0.79044 | 0.139183 | 0 | 0.713355 | 0 | 0 | 0.351431 | 0.210757 | 0 | 0 | 0 | 0 | 0.04886 | 1 | 0.04886 | false | 0 | 0.006515 | 0 | 0.055375 | 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 |
4c4b17d01dc465affa51d5ee2f98f618c1edfb86 | 48,332 | py | Python | tests/testflows/ldap/external_user_directory/requirements/requirements.py | edani/ClickHouse | 17a8a4e9664fabed5b370b37e148139ba698acf5 | [
"Apache-2.0"
] | 2 | 2021-03-25T06:53:00.000Z | 2021-04-29T07:32:51.000Z | tests/testflows/ldap/external_user_directory/requirements/requirements.py | edani/ClickHouse | 17a8a4e9664fabed5b370b37e148139ba698acf5 | [
"Apache-2.0"
] | 1 | 2020-03-26T01:50:51.000Z | 2020-03-26T01:50:51.000Z | tests/testflows/ldap/external_user_directory/requirements/requirements.py | edani/ClickHouse | 17a8a4e9664fabed5b370b37e148139ba698acf5 | [
"Apache-2.0"
] | 1 | 2022-03-29T06:54:31.000Z | 2022-03-29T06:54:31.000Z | # These requirements were auto generated
# from software requirements specification (SRS)
# document by TestFlows v1.6.201009.1190249.
# Do not edit by hand but re-generate instead
# using 'tfs requirements generate' command.
from testflows.core import Requirement
RQ_SRS_009_LDAP_ExternalUserDirectory_Authentication =... | 38.328311 | 144 | 0.64988 | 5,460 | 48,332 | 5.613004 | 0.067033 | 0.027735 | 0.044376 | 0.066564 | 0.86152 | 0.846314 | 0.829412 | 0.820994 | 0.771038 | 0.695533 | 0 | 0.021204 | 0.252566 | 48,332 | 1,260 | 145 | 38.35873 | 0.827156 | 0.004448 | 0 | 0.698291 | 1 | 0.023077 | 0.468708 | 0.149966 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.015385 | 0.000855 | 0 | 0.000855 | 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 |
d5b619784914891ef89640a96e0b629d64c26fb5 | 40,721 | py | Python | shipmmg/ship_obj_3dof.py | martinlarsalbert/shipmmg | 954f868ccb9591dad83294766e54489ae8e8ca6b | [
"MIT"
] | 10 | 2021-01-10T12:05:40.000Z | 2022-03-21T12:51:52.000Z | shipmmg/ship_obj_3dof.py | martinlarsalbert/shipmmg | 954f868ccb9591dad83294766e54489ae8e8ca6b | [
"MIT"
] | 16 | 2021-01-11T03:51:13.000Z | 2022-01-13T04:37:59.000Z | shipmmg/ship_obj_3dof.py | martinlarsalbert/shipmmg | 954f868ccb9591dad83294766e54489ae8e8ca6b | [
"MIT"
] | 4 | 2021-03-15T08:42:55.000Z | 2021-09-13T09:08:16.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from typing import List
import dataclasses
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
from matplotlib.animation import FuncAnimation
from .draw_obj import DrawObj
@dataclasses.dataclass
class ShipObj3dof:
"""Ship 3DOF class just for drawing.... | 38.416038 | 119 | 0.507134 | 4,657 | 40,721 | 4.337771 | 0.074297 | 0.024751 | 0.013366 | 0.002178 | 0.883917 | 0.871145 | 0.857433 | 0.833573 | 0.810158 | 0.798178 | 0 | 0.009023 | 0.409396 | 40,721 | 1,059 | 120 | 38.452314 | 0.830936 | 0.478598 | 0 | 0.759386 | 0 | 0 | 0.044022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011945 | false | 0 | 0.011945 | 0 | 0.054608 | 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 |
d5b8fe93ac228d0e7dbb4428fe9bd12dc50ecfd2 | 50,473 | py | Python | src/the_tale/the_tale/game/actions/tests/test_action_inplace.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | null | null | null | src/the_tale/the_tale/game/actions/tests/test_action_inplace.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | null | null | null | src/the_tale/the_tale/game/actions/tests/test_action_inplace.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | null | null | null |
import smart_imports
smart_imports.all()
def get_companions_support_points(clan_id, place_id):
resource_id = emissaries_logic.resource_id(clan_id=clan_id,
place_id=place_id)
return emissaries_tt_services.events_currencies.cmd_balance(resource_id,
... | 46.094064 | 206 | 0.718027 | 6,434 | 50,473 | 5.359186 | 0.049736 | 0.11067 | 0.047939 | 0.054697 | 0.90734 | 0.897422 | 0.886633 | 0.863084 | 0.844291 | 0.824831 | 0 | 0.005596 | 0.182157 | 50,473 | 1,094 | 207 | 46.136197 | 0.82972 | 0.006221 | 0 | 0.718016 | 0 | 0 | 0.072903 | 0.071507 | 0 | 0 | 0 | 0 | 0.167102 | 1 | 0.100522 | false | 0 | 0.002611 | 0 | 0.112272 | 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 |
9135ae926c07434112200db71cf73aff268a911f | 98,202 | py | Python | theano/tensor/signal/pool.py | canyon289/Theano-PyMC | 1a9b04bfe480b758ddfa54ba49c88bee3bec419c | [
"BSD-3-Clause"
] | null | null | null | theano/tensor/signal/pool.py | canyon289/Theano-PyMC | 1a9b04bfe480b758ddfa54ba49c88bee3bec419c | [
"BSD-3-Clause"
] | null | null | null | theano/tensor/signal/pool.py | canyon289/Theano-PyMC | 1a9b04bfe480b758ddfa54ba49c88bee3bec419c | [
"BSD-3-Clause"
] | 1 | 2020-08-15T17:09:10.000Z | 2020-08-15T17:09:10.000Z | """
Ops for downsampling images.
Planned:
Pool, DownsampleAvg, DownsampleSoftmax.
"""
import itertools
import warnings
import numpy as np
import theano
from theano import Apply, OpenMPOp, Variable, gof, tensor
from theano.gof import EnumList, ParamsType
from theano.gradient import DisconnectedType
from theano.scalar ... | 38.300312 | 139 | 0.487241 | 12,758 | 98,202 | 3.621571 | 0.041307 | 0.00896 | 0.006363 | 0.015237 | 0.897022 | 0.887088 | 0.874708 | 0.861419 | 0.846896 | 0.83311 | 0 | 0.010088 | 0.387273 | 98,202 | 2,563 | 140 | 38.315256 | 0.75779 | 0.126372 | 0 | 0.723535 | 0 | 0.034499 | 0.534084 | 0.087383 | 0 | 0 | 0 | 0.00078 | 0.017958 | 1 | 0.023157 | false | 0 | 0.003781 | 0.005198 | 0.055293 | 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 |
e671e8ce1eb08784fe3ec20aa03049b4f94e80f5 | 13,734 | py | Python | tests/test_router_users.py | SelfhostedPro/fastapi-users | f77fbce985bf009944ca2a94280dbeea4779f8a8 | [
"MIT"
] | null | null | null | tests/test_router_users.py | SelfhostedPro/fastapi-users | f77fbce985bf009944ca2a94280dbeea4779f8a8 | [
"MIT"
] | null | null | null | tests/test_router_users.py | SelfhostedPro/fastapi-users | f77fbce985bf009944ca2a94280dbeea4779f8a8 | [
"MIT"
] | 1 | 2020-12-20T22:40:07.000Z | 2020-12-20T22:40:07.000Z | from typing import cast, Dict, Any
from unittest.mock import MagicMock
import asynctest
import httpx
import pytest
from fastapi import FastAPI, status, Request
from fastapi_users.authentication import Authenticator
from fastapi_users.router import get_users_router
from tests.conftest import MockAuthentication, User, ... | 35.396907 | 88 | 0.656473 | 1,677 | 13,734 | 5.131187 | 0.076327 | 0.043114 | 0.08007 | 0.054387 | 0.868913 | 0.861476 | 0.857757 | 0.835677 | 0.835328 | 0.828704 | 0 | 0.027611 | 0.237877 | 13,734 | 387 | 89 | 35.488372 | 0.794497 | 0 | 0 | 0.725857 | 0 | 0 | 0.104995 | 0.03262 | 0 | 0 | 0 | 0 | 0.208723 | 1 | 0.009346 | false | 0.031153 | 0.028037 | 0.009346 | 0.065421 | 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 |
e6d31e209f1dfd60aca4dff52928926b3ade6de0 | 8,002 | py | Python | docs/main.py | pbizopoulos/comprehensive-comparison-of-deep-learning-models-for-lung-and-covid-19-lesion-segmentation-in-ct | 16408539ed9ad7addcf7057b62c88750f6c7dbee | [
"MIT"
] | 11 | 2020-10-16T08:33:00.000Z | 2021-11-04T11:36:48.000Z | docs/main.py | pbizopoulos/comprehensive-comparison-of-deep-learning-models-for-lung-and-covid-19-lesion-segmentation-in-ct | 16408539ed9ad7addcf7057b62c88750f6c7dbee | [
"MIT"
] | 28 | 2020-11-05T06:20:10.000Z | 2022-03-11T18:38:01.000Z | docs/main.py | pbizopoulos/comprehensive-comparison-of-deep-learning-models-for-lung-and-covid-19-lesion-segmentation-in-ct | 16408539ed9ad7addcf7057b62c88750f6c7dbee | [
"MIT"
] | 3 | 2020-09-27T15:09:11.000Z | 2021-08-05T10:29:32.000Z | from pyclientsideml import generate_page_image_segmentation
def main():
model_dirs = [
'https://raw.githubusercontent.com/pbizopoulos/comprehensive-comparison-of-deep-learning-models-for-lung-and-covid-19-lesion-segmentation-inct-tfjs/master/lesion-segmentation-a.FPN.mobilenet_v2.imagenet/model.json',... | 112.704225 | 231 | 0.764809 | 993 | 8,002 | 6.116818 | 0.079557 | 0.139282 | 0.12002 | 0.164472 | 0.922127 | 0.918834 | 0.868291 | 0.853309 | 0.853309 | 0.853309 | 0 | 0.021601 | 0.097476 | 8,002 | 70 | 232 | 114.314286 | 0.819441 | 0 | 0 | 0.424242 | 1 | 0.424242 | 0.836166 | 0.132467 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015152 | false | 0 | 0.015152 | 0 | 0.030303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
e6e47c8716448550334d79af92413a06407888d0 | 330 | py | Python | bitmovin_api_sdk/encoding/encodings/streams/captions/cea/scc/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 11 | 2019-07-03T10:41:16.000Z | 2022-02-25T21:48:06.000Z | bitmovin_api_sdk/encoding/encodings/streams/captions/cea/scc/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 8 | 2019-11-23T00:01:25.000Z | 2021-04-29T12:30:31.000Z | bitmovin_api_sdk/encoding/encodings/streams/captions/cea/scc/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 13 | 2020-01-02T14:58:18.000Z | 2022-03-26T12:10:30.000Z | from bitmovin_api_sdk.encoding.encodings.streams.captions.cea.scc.scc_api import SccApi
from bitmovin_api_sdk.encoding.encodings.streams.captions.cea.scc.customdata.customdata_api import CustomdataApi
from bitmovin_api_sdk.encoding.encodings.streams.captions.cea.scc.scc_caption_list_query_params import SccCaptionListQu... | 82.5 | 128 | 0.89697 | 46 | 330 | 6.173913 | 0.413043 | 0.126761 | 0.158451 | 0.190141 | 0.612676 | 0.612676 | 0.612676 | 0.612676 | 0.612676 | 0.612676 | 0 | 0 | 0.036364 | 330 | 3 | 129 | 110 | 0.893082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
e6eff854c2bd4ac28ed344f023b055fc60d9f289 | 598,017 | py | Python | 1.8.9_to_1.5.2.py | Junhui0w0/Miecraft_TexturepackTransistor | a5531a05391408e33cdb2e27e01bf63abd244c2f | [
"MIT"
] | null | null | null | 1.8.9_to_1.5.2.py | Junhui0w0/Miecraft_TexturepackTransistor | a5531a05391408e33cdb2e27e01bf63abd244c2f | [
"MIT"
] | null | null | null | 1.8.9_to_1.5.2.py | Junhui0w0/Miecraft_TexturepackTransistor | a5531a05391408e33cdb2e27e01bf63abd244c2f | [
"MIT"
] | null | null | null | import os
import shutil
from tkinter import *
from tkinter import filedialog
import tkinter as tk
from tkinter import ttk
import time
from tkinter import messagebox # 들어가야함
a = ""
b = ""
path_b = ""
c = ""
d = ""
#ESC키 바로 나가기
def Quit(event):
root.quit()
# 현재 년도/월/일
def getCurrentStrDa... | 54.673341 | 121 | 0.439554 | 58,027 | 598,017 | 4.365795 | 0.012374 | 0.100989 | 0.092573 | 0.092573 | 0.993897 | 0.993345 | 0.993151 | 0.99297 | 0.992693 | 0.992034 | 0 | 0.001815 | 0.445303 | 598,017 | 10,938 | 122 | 54.673341 | 0.761852 | 0.002956 | 0 | 0.986923 | 0 | 0 | 0.255151 | 0.091772 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000515 | false | 0.110585 | 0.000824 | 0.000103 | 0.001442 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
e6f9ec18d4d2568226cbd2268390a7776b86bb35 | 11,306 | py | Python | sdk/python/pulumi_kong/consumer.py | pulumi/pulumi-kong | 775c17e4eac38934252410ed3dcdc6fc3bd40c5c | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2020-02-23T10:05:20.000Z | 2020-05-15T14:22:10.000Z | sdk/python/pulumi_kong/consumer.py | pulumi/pulumi-kong | 775c17e4eac38934252410ed3dcdc6fc3bd40c5c | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2020-04-21T22:04:23.000Z | 2022-03-31T15:29:53.000Z | sdk/python/pulumi_kong/consumer.py | pulumi/pulumi-kong | 775c17e4eac38934252410ed3dcdc6fc3bd40c5c | [
"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 ... | 39.531469 | 246 | 0.632938 | 1,366 | 11,306 | 5.040996 | 0.120791 | 0.089457 | 0.083358 | 0.057508 | 0.779698 | 0.753703 | 0.744119 | 0.732646 | 0.72524 | 0.718414 | 0 | 0.001568 | 0.266496 | 11,306 | 285 | 247 | 39.670175 | 0.828771 | 0.362993 | 0 | 0.701389 | 1 | 0 | 0.065863 | 0.004329 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152778 | false | 0.006944 | 0.034722 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fc13afbe11089e30dcb719fb9388dd8a313dc03e | 8,184 | py | Python | bookings/migrations/0001_initial.py | r34g4n/ADT_booking | 57c5bb103ac8bc1cf4d2c4f8b52744bd763560fb | [
"Apache-2.0"
] | null | null | null | bookings/migrations/0001_initial.py | r34g4n/ADT_booking | 57c5bb103ac8bc1cf4d2c4f8b52744bd763560fb | [
"Apache-2.0"
] | 10 | 2020-02-12T01:46:41.000Z | 2022-02-10T09:00:03.000Z | bookings/migrations/0001_initial.py | r34g4n/ADT_booking | 57c5bb103ac8bc1cf4d2c4f8b52744bd763560fb | [
"Apache-2.0"
] | 1 | 2021-11-04T22:07:37.000Z | 2021-11-04T22:07:37.000Z | # Generated by Django 2.2.2 on 2019-08-14 11:52
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import simple_history.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('users', '0001_initial'),
]
operations... | 51.15 | 129 | 0.572581 | 764 | 8,184 | 5.946335 | 0.149215 | 0.049527 | 0.060533 | 0.05569 | 0.865507 | 0.865507 | 0.865507 | 0.865507 | 0.865507 | 0.865507 | 0 | 0.013042 | 0.278592 | 8,184 | 159 | 130 | 51.471698 | 0.756436 | 0.005499 | 0 | 0.756579 | 1 | 0 | 0.175249 | 0.021507 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026316 | 0 | 0.052632 | 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 |
fc81afb623196f5c363e03e210de58c6fed2776b | 1,184 | py | Python | info/authentication/models.py | temi4000/Infoeducatie | a6b93c39291411a8dc4c33c60b946629412e7a81 | [
"Apache-2.0"
] | 2 | 2018-07-22T18:51:39.000Z | 2019-05-25T21:24:30.000Z | info/authentication/models.py | TemianMihai/Biosferra | a6b93c39291411a8dc4c33c60b946629412e7a81 | [
"Apache-2.0"
] | 79 | 2018-07-09T08:44:22.000Z | 2018-07-31T21:57:21.000Z | info/authentication/models.py | temi4000/Infoeducatie | a6b93c39291411a8dc4c33c60b946629412e7a81 | [
"Apache-2.0"
] | 1 | 2018-07-26T14:10:17.000Z | 2018-07-26T14:10:17.000Z | from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.db import models
import uuid
# Create your models here.
def upload_location(instance, filename):
return "%s/%s" % (instance.slug, filename)
class Account(models.Model):
user = models.OneToOneField(User, primary_ke... | 40.827586 | 60 | 0.704392 | 150 | 1,184 | 5.426667 | 0.34 | 0.14742 | 0.176904 | 0.235872 | 0.732187 | 0.732187 | 0.732187 | 0.732187 | 0.732187 | 0.732187 | 0 | 0.021967 | 0.192568 | 1,184 | 29 | 61 | 40.827586 | 0.829498 | 0.02027 | 0 | 0.583333 | 0 | 0 | 0.004314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.166667 | 0.041667 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
fc984cec28b76783c45a38c69c6ec65acf2712bf | 28,521 | py | Python | dataloader.py | AdityaKane2001/ACL_WASSA | 3912f61807cb08ff55fde36c433230720084b57a | [
"Apache-2.0"
] | 1 | 2022-03-24T06:19:51.000Z | 2022-03-24T06:19:51.000Z | dataloader.py | AdityaKane2001/ACL_WASSA | 3912f61807cb08ff55fde36c433230720084b57a | [
"Apache-2.0"
] | 2 | 2022-03-24T19:12:19.000Z | 2022-03-24T19:12:27.000Z | dataloader.py | AdityaKane2001/ACL_WASSA | 3912f61807cb08ff55fde36c433230720084b57a | [
"Apache-2.0"
] | 2 | 2022-03-24T04:34:52.000Z | 2022-03-24T18:12:10.000Z | from typing import Sequence
import nltk
import numpy as np
import re
import torch
import os
import spacy
from sklearn.preprocessing import StandardScaler
from utils import *
import nltk
from nltk.corpus import stopwords
nltk.download('stopwords')
nltk.download('punkt')
nltk.download('wordnet')
nltk.download('words... | 35.167694 | 130 | 0.543354 | 3,163 | 28,521 | 4.647803 | 0.074929 | 0.014965 | 0.030474 | 0.014965 | 0.847425 | 0.832596 | 0.821373 | 0.817087 | 0.790014 | 0.785049 | 0 | 0.019042 | 0.351881 | 28,521 | 810 | 131 | 35.211111 | 0.776251 | 0.054346 | 0 | 0.773585 | 0 | 0 | 0.082946 | 0.038308 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023585 | false | 0 | 0.017296 | 0.006289 | 0.086478 | 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 |
5d7b1eb5ad8ff025437cecd07d6c730b7398ebda | 45 | py | Python | tests/base_test.py | RandallBalestriero/numpy-datasets | 1f678afc9ef5e2356142342f947e6651c618c67f | [
"Apache-2.0"
] | 6 | 2020-10-11T23:47:31.000Z | 2021-11-17T21:04:14.000Z | tests/base_test.py | RandallBalestriero/numpy-datasets | 1f678afc9ef5e2356142342f947e6651c618c67f | [
"Apache-2.0"
] | null | null | null | tests/base_test.py | RandallBalestriero/numpy-datasets | 1f678afc9ef5e2356142342f947e6651c618c67f | [
"Apache-2.0"
] | null | null | null | def test_import():
import numpy_datasets
| 15 | 25 | 0.755556 | 6 | 45 | 5.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 45 | 2 | 26 | 22.5 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 1 | 0 | 1.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
5d95d23c376cd8c890b4a6f96301940dbfd5a8df | 12,068 | py | Python | bcml/Chemoinformatics/tests/chemofeatures_tests.py | sandialabs/BioCompoundDB | 8220e90544f43159843fa26758dc5a1333562fa7 | [
"BSD-3-Clause"
] | null | null | null | bcml/Chemoinformatics/tests/chemofeatures_tests.py | sandialabs/BioCompoundDB | 8220e90544f43159843fa26758dc5a1333562fa7 | [
"BSD-3-Clause"
] | null | null | null | bcml/Chemoinformatics/tests/chemofeatures_tests.py | sandialabs/BioCompoundDB | 8220e90544f43159843fa26758dc5a1333562fa7 | [
"BSD-3-Clause"
] | null | null | null | """
This contains the unit tests for the read_training module.
"""
from __future__ import print_function
import unittest
from Chemoinformatics import chemofeatures as cf
try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict
from copy import deepcopy
class Object(... | 208.068966 | 10,209 | 0.60532 | 2,617 | 12,068 | 2.682843 | 0.110814 | 0.228173 | 0.292266 | 0.32417 | 0.710298 | 0.655035 | 0.578123 | 0.541233 | 0.509614 | 0.476143 | 0 | 0.274462 | 0.287786 | 12,068 | 57 | 10,210 | 211.719298 | 0.542408 | 0.023119 | 0 | 0 | 0 | 0.081081 | 0.873502 | 0.38196 | 0 | 0 | 0 | 0 | 0.135135 | 1 | 0.081081 | false | 0.027027 | 0.189189 | 0 | 0.324324 | 0.108108 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5d9a7e9576f00a27d08b71dc308d24c6bb24af12 | 91 | py | Python | bolinette/data/functions.py | TheCaptainCat/flasque | d42deb57572084f513202a32c460186700ce8e0b | [
"MIT"
] | 4 | 2020-11-02T15:16:32.000Z | 2022-01-11T11:19:24.000Z | bolinette/data/functions.py | TheCaptainCat/bolinette | d42deb57572084f513202a32c460186700ce8e0b | [
"MIT"
] | 14 | 2021-01-04T11:06:59.000Z | 2022-03-23T17:01:49.000Z | bolinette/data/functions.py | TheCaptainCat/bolinette | d42deb57572084f513202a32c460186700ce8e0b | [
"MIT"
] | null | null | null | import sqlalchemy
def desc(*args, **kwargs):
return sqlalchemy.desc(*args, **kwargs)
| 15.166667 | 43 | 0.692308 | 11 | 91 | 5.727273 | 0.636364 | 0.253968 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 91 | 5 | 44 | 18.2 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 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 | 1 | 0 | 0 | 0 | 8 |
5de227c0d4e54b58f6a05262406fb0d74f84bd8d | 1,263 | py | Python | backend/benefit/applications/migrations/0010_application_missing_applicant_fields.py | iivoraitahila/yjdh | 4a9b46e0458529548af818534600eadd4f96a048 | [
"MIT"
] | 2 | 2021-05-10T09:28:35.000Z | 2021-05-17T12:15:34.000Z | backend/benefit/applications/migrations/0010_application_missing_applicant_fields.py | iivoraitahila/yjdh | 4a9b46e0458529548af818534600eadd4f96a048 | [
"MIT"
] | 931 | 2021-05-21T15:24:35.000Z | 2022-03-31T20:07:40.000Z | backend/benefit/applications/migrations/0010_application_missing_applicant_fields.py | iivoraitahila/yjdh | 4a9b46e0458529548af818534600eadd4f96a048 | [
"MIT"
] | 6 | 2021-07-06T11:07:02.000Z | 2022-02-07T12:42:21.000Z | # Generated by Django 3.2.4 on 2021-07-19 05:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("applications", "0009_attachments_api"),
]
operations = [
migrations.AddField(
model_name="application",
name="compan... | 30.071429 | 69 | 0.575614 | 120 | 1,263 | 5.808333 | 0.358333 | 0.1033 | 0.131994 | 0.15495 | 0.780488 | 0.780488 | 0.780488 | 0.780488 | 0.780488 | 0.710187 | 0 | 0.036514 | 0.327791 | 1,263 | 41 | 70 | 30.804878 | 0.784452 | 0.035629 | 0 | 0.8 | 1 | 0 | 0.217105 | 0.141447 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028571 | 0 | 0.114286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5d58a92ff9a4e23dd59633da5d567f86cc223f49 | 26,111 | py | Python | tests/tasks/kubernetes/test_service.py | skyline-ai/prefect | 92430f2f91215d6c27d92ad67df67ccd639e587c | [
"Apache-2.0"
] | null | null | null | tests/tasks/kubernetes/test_service.py | skyline-ai/prefect | 92430f2f91215d6c27d92ad67df67ccd639e587c | [
"Apache-2.0"
] | null | null | null | tests/tasks/kubernetes/test_service.py | skyline-ai/prefect | 92430f2f91215d6c27d92ad67df67ccd639e587c | [
"Apache-2.0"
] | null | null | null | from unittest.mock import MagicMock
import pytest
import prefect
from prefect.tasks.kubernetes import (
CreateNamespacedService,
DeleteNamespacedService,
ListNamespacedService,
PatchNamespacedService,
ReadNamespacedService,
ReplaceNamespacedService,
)
from prefect.utilities.configuration impor... | 36.064917 | 87 | 0.642028 | 2,662 | 26,111 | 6.079264 | 0.033434 | 0.049682 | 0.091083 | 0.122351 | 0.95038 | 0.943397 | 0.926033 | 0.916332 | 0.914787 | 0.913922 | 0 | 0.003005 | 0.235341 | 26,111 | 723 | 88 | 36.114799 | 0.807523 | 0 | 0 | 0.825704 | 0 | 0 | 0.147486 | 0.102677 | 0 | 0 | 0 | 0 | 0.15669 | 1 | 0.102113 | false | 0 | 0.008803 | 0 | 0.121479 | 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 |
53afefb6160adc7fae182f7ca327d6986301d209 | 22,518 | py | Python | release/stubs/Grasshopper/GUI/Widgets.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs/Grasshopper/GUI/Widgets.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs/Grasshopper/GUI/Widgets.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | # encoding: utf-8
# module Grasshopper.GUI.Widgets calls itself Widgets
# from Grasshopper, Version=1.0.0.20, Culture=neutral, PublicKeyToken=dda4f5ec2cd80803
# by generator 1.145
""" NamespaceTracker represent a CLS namespace. """
# no imports
# no functions
# classes
class GH_Widget(object, IGH_Widget, ... | 29.168394 | 221 | 0.6251 | 2,390 | 22,518 | 5.59749 | 0.073222 | 0.091942 | 0.055165 | 0.073554 | 0.831215 | 0.804306 | 0.789655 | 0.746748 | 0.731425 | 0.700105 | 0 | 0.00491 | 0.258282 | 22,518 | 771 | 222 | 29.206226 | 0.796072 | 0.339817 | 0 | 0.717325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212766 | false | 0.215805 | 0 | 0 | 0.492401 | 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 |
53c4d3552b22907ca1a8f8afc03036d6cdd65427 | 12,849 | py | Python | chroma-manager/tests/unit/lib/test_remote_firewall_control.py | GarimaVishvakarma/intel-chroma | fdf68ed00b13643c62eb7480754d3216d9295e0b | [
"MIT"
] | null | null | null | chroma-manager/tests/unit/lib/test_remote_firewall_control.py | GarimaVishvakarma/intel-chroma | fdf68ed00b13643c62eb7480754d3216d9295e0b | [
"MIT"
] | null | null | null | chroma-manager/tests/unit/lib/test_remote_firewall_control.py | GarimaVishvakarma/intel-chroma | fdf68ed00b13643c62eb7480754d3216d9295e0b | [
"MIT"
] | null | null | null | from django.utils import unittest
import mock
from tests.utils.remote_firewall_control import RemoteFirewallControl
from tests.utils.remote_firewall_control import RemoteFirewallControlIpTables
from tests.utils.remote_firewall_control import RemoteFirewallControlFirewallCmd
from tests.integration.core.remote_operation... | 44.003425 | 125 | 0.684723 | 1,594 | 12,849 | 5.353827 | 0.121706 | 0.02367 | 0.028123 | 0.031404 | 0.888212 | 0.87708 | 0.853293 | 0.83888 | 0.835364 | 0.83513 | 0 | 0.028126 | 0.216904 | 12,849 | 291 | 126 | 44.154639 | 0.820016 | 0.102031 | 0 | 0.707447 | 0 | 0.069149 | 0.213357 | 0.025659 | 0 | 0 | 0 | 0 | 0.202128 | 0 | null | null | 0.010638 | 0.037234 | 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 |
54e11b0bbec4c6b1274c3b8b0caa60a4f683f395 | 5,685 | py | Python | tests/test_tfinputshapes.py | santosh653/dtcwt | 01d9e87dc9abfa244a89c1f05aebf3dec6999f3a | [
"BSD-2-Clause"
] | 61 | 2015-01-04T09:21:29.000Z | 2022-03-07T16:25:02.000Z | tests/test_tfinputshapes.py | santosh653/dtcwt | 01d9e87dc9abfa244a89c1f05aebf3dec6999f3a | [
"BSD-2-Clause"
] | 17 | 2015-04-02T13:37:07.000Z | 2018-03-07T09:57:57.000Z | tests/test_tfinputshapes.py | santosh653/dtcwt | 01d9e87dc9abfa244a89c1f05aebf3dec6999f3a | [
"BSD-2-Clause"
] | 26 | 2015-04-16T06:22:16.000Z | 2021-12-07T09:17:44.000Z | import os
import pytest
from importlib import import_module
from .util import skip_if_no_tf
from dtcwt.utils import unpack
import dtcwt
import dtcwt.compat
PRECISION_DECIMAL = 5
@skip_if_no_tf
def setup():
global tf
tf = import_module('tensorflow')
dtcwt.push_backend('tf')
# Make sure we run tests... | 32.672414 | 77 | 0.616183 | 828 | 5,685 | 4.076087 | 0.124396 | 0.074667 | 0.084444 | 0.062222 | 0.875259 | 0.863704 | 0.853926 | 0.838222 | 0.803556 | 0.798222 | 0 | 0.041204 | 0.240106 | 5,685 | 173 | 78 | 32.861272 | 0.740046 | 0.11715 | 0 | 0.637037 | 0 | 0 | 0.036749 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.044444 | false | 0.059259 | 0.059259 | 0 | 0.103704 | 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 |
07088aa73c143becb2a185867f183e7f2af8fe02 | 17,758 | py | Python | test/test_kabr_inter.py | ryanstwrt/multi_agent_blackboard_system | b8f6ab71dfe0742a6f690de19b97d10504fc1768 | [
"MIT"
] | 1 | 2021-08-02T10:29:35.000Z | 2021-08-02T10:29:35.000Z | test/test_kabr_inter.py | ryanstwrt/multi_agent_blackboard_system | b8f6ab71dfe0742a6f690de19b97d10504fc1768 | [
"MIT"
] | 10 | 2020-03-14T07:39:34.000Z | 2021-11-03T22:55:28.000Z | test/test_kabr_inter.py | ryanstwrt/multi_agent_blackboard_system | b8f6ab71dfe0742a6f690de19b97d10504fc1768 | [
"MIT"
] | 1 | 2021-07-18T14:43:10.000Z | 2021-07-18T14:43:10.000Z | from osbrain import run_nameserver
from osbrain import run_agent
import mabs.bb.blackboard as blackboard
import mabs.bb.blackboard_optimization as bb_opt
from mabs.ka.ka_brs.inter_bb import InterBB
from mabs.utils.problem import BenchmarkProblem
import time
dvs = {'x{}'.format(x):{'ll':0.0, 'ul':1.0, 'variable type':... | 49.882022 | 171 | 0.577655 | 2,592 | 17,758 | 3.73341 | 0.049769 | 0.049189 | 0.013227 | 0.016017 | 0.92601 | 0.92229 | 0.912266 | 0.893872 | 0.888395 | 0.880852 | 0 | 0.058615 | 0.252562 | 17,758 | 356 | 172 | 49.882022 | 0.670459 | 0 | 0 | 0.794613 | 0 | 0 | 0.168816 | 0 | 0 | 0 | 0 | 0 | 0.084175 | 1 | 0.03367 | false | 0 | 0.023569 | 0 | 0.057239 | 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 |
072b0064d1af8b82787ee359fea179718ff37afd | 161,273 | py | Python | gherkin/python/gherkin/parser.py | OrhanTozan/cucumber | e73d9a1f3b2503e4d077269cc00ed4a2a5dec8c2 | [
"MIT"
] | null | null | null | gherkin/python/gherkin/parser.py | OrhanTozan/cucumber | e73d9a1f3b2503e4d077269cc00ed4a2a5dec8c2 | [
"MIT"
] | null | null | null | gherkin/python/gherkin/parser.py | OrhanTozan/cucumber | e73d9a1f3b2503e4d077269cc00ed4a2a5dec8c2 | [
"MIT"
] | null | null | null | # This file is generated. Do not edit! Edit gherkin-python.razor instead.
import sys
from collections import deque
from .ast_builder import AstBuilder
from .token_matcher import TokenMatcher
from .token_scanner import TokenScanner
from .errors import UnexpectedEOFException, UnexpectedTokenException, ParserException, Co... | 47.60124 | 179 | 0.581678 | 16,727 | 161,273 | 5.445089 | 0.010701 | 0.146739 | 0.087923 | 0.143874 | 0.944653 | 0.942303 | 0.941337 | 0.940964 | 0.936836 | 0.932137 | 0 | 0.018141 | 0.314671 | 161,273 | 3,387 | 180 | 47.615294 | 0.805926 | 0.035096 | 0 | 0.910031 | 1 | 0.01442 | 0.131144 | 0.029362 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024451 | false | 0 | 0.001881 | 0.000627 | 0.181505 | 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 |
073a5f6e30cd57bc05a2dd52ccffa1d05ebea5f7 | 9,179 | py | Python | app/backend/arm/migrations/0001_initial.py | karstenv/nmp-arm | 47e45f0391820000f461ab6e994e20eacfffb457 | [
"Apache-2.0"
] | 2 | 2019-08-12T22:06:23.000Z | 2019-10-22T20:50:32.000Z | app/backend/arm/migrations/0001_initial.py | karstenv/nmp-arm | 47e45f0391820000f461ab6e994e20eacfffb457 | [
"Apache-2.0"
] | 12 | 2019-07-10T18:11:31.000Z | 2022-02-10T08:47:57.000Z | app/backend/arm/migrations/0001_initial.py | karstenv/nmp-arm | 47e45f0391820000f461ab6e994e20eacfffb457 | [
"Apache-2.0"
] | 6 | 2019-07-03T21:24:11.000Z | 2021-04-29T17:31:34.000Z | # Generated by Django 2.2.5 on 2019-09-13 19:04
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ApplicationEquipmentOption',
fields=[
... | 52.752874 | 227 | 0.550714 | 842 | 9,179 | 5.842043 | 0.129454 | 0.065867 | 0.080504 | 0.107339 | 0.826591 | 0.804229 | 0.792031 | 0.792031 | 0.7778 | 0.767839 | 0 | 0.017552 | 0.292407 | 9,179 | 174 | 228 | 52.752874 | 0.7398 | 0.004902 | 0 | 0.748503 | 1 | 0 | 0.159487 | 0.024219 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.005988 | 0 | 0.02994 | 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 |
0741d122440c8fabc0310cbb1c291a4b36c5b418 | 33,320 | py | Python | tineyeservices/multicolorengine_request.py | TinEye/tineyeservices_python | d30098b734b703f4ff933dfbcf1f0f8321c8d0d7 | [
"MIT"
] | 13 | 2016-05-06T05:23:27.000Z | 2022-03-17T01:27:07.000Z | tineyeservices/multicolorengine_request.py | seanwallawalla-forks/tineyeservices_python | d30098b734b703f4ff933dfbcf1f0f8321c8d0d7 | [
"MIT"
] | 1 | 2016-05-27T11:45:54.000Z | 2018-11-08T21:58:38.000Z | tineyeservices/multicolorengine_request.py | seanwallawalla-forks/tineyeservices_python | d30098b734b703f4ff933dfbcf1f0f8321c8d0d7 | [
"MIT"
] | 8 | 2017-09-22T03:36:28.000Z | 2022-03-17T01:29:18.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2018 TinEye. All rights reserved worldwide.
from .image import Image
from .metadata_request import MetadataRequest
class MulticolorEngineRequest(MetadataRequest):
"""
Class to send requests to a MulticolorEngine API.
Adding an image using data:
>>> from t... | 38.298851 | 100 | 0.614526 | 4,030 | 33,320 | 4.979901 | 0.049132 | 0.017938 | 0.025113 | 0.026907 | 0.93637 | 0.919029 | 0.908565 | 0.893567 | 0.890029 | 0.874832 | 0 | 0.008835 | 0.30024 | 33,320 | 869 | 101 | 38.342923 | 0.851904 | 0.482293 | 0 | 0.834416 | 0 | 0 | 0.171011 | 0.030154 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.094156 | 0.006494 | 0.003247 | 0.152597 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
ab1f5116939e8052e38c5e5d8451a483c9fdf5fe | 30,713 | py | Python | lrs/tests/test_AgentProfile.py | dblacksmith/ADL_LRS | 4732f62a53fecf76844a8b5fb420db0f5aed4647 | [
"Apache-2.0"
] | null | null | null | lrs/tests/test_AgentProfile.py | dblacksmith/ADL_LRS | 4732f62a53fecf76844a8b5fb420db0f5aed4647 | [
"Apache-2.0"
] | null | null | null | lrs/tests/test_AgentProfile.py | dblacksmith/ADL_LRS | 4732f62a53fecf76844a8b5fb420db0f5aed4647 | [
"Apache-2.0"
] | null | null | null | import hashlib
import urllib
import base64
import json
import ast
from django.test import TestCase
from django.conf import settings
from django.core.urlresolvers import reverse
from adl_lrs.views import register
class AgentProfileTests(TestCase):
testagent = '{"mbox":"mailto:test@example.com"}'
otheragent =... | 53.788091 | 179 | 0.620096 | 3,488 | 30,713 | 5.292431 | 0.06508 | 0.094258 | 0.053846 | 0.080769 | 0.824919 | 0.797671 | 0.77454 | 0.761809 | 0.739599 | 0.73559 | 0 | 0.017337 | 0.241266 | 30,713 | 570 | 180 | 53.882456 | 0.774836 | 0.106991 | 0 | 0.54023 | 0 | 0.004598 | 0.150093 | 0.023956 | 0 | 0 | 0 | 0 | 0.234483 | 0 | null | null | 0.006897 | 0.022989 | null | null | 0.002299 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ab1fe3bef7ed9a30b3baac2214ee52316938c012 | 15,053 | py | Python | tests/api_tests/users/test_views.py | dplorimer/osf | 9f3f400f62dc7bde18532949ed35bf1d3f6ec3d6 | [
"Apache-2.0"
] | null | null | null | tests/api_tests/users/test_views.py | dplorimer/osf | 9f3f400f62dc7bde18532949ed35bf1d3f6ec3d6 | [
"Apache-2.0"
] | null | null | null | tests/api_tests/users/test_views.py | dplorimer/osf | 9f3f400f62dc7bde18532949ed35bf1d3f6ec3d6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from nose.tools import * # flake8: noqa
from website.models import Node
from tests.base import ApiTestCase
from api.base.settings.defaults import API_BASE
from tests.factories import UserFactory, ProjectFactory, FolderFactory, DashboardFactory
class TestUsers(ApiTestCase):
def setUp(sel... | 44.40413 | 144 | 0.649572 | 2,103 | 15,053 | 4.300523 | 0.052306 | 0.065789 | 0.064463 | 0.054732 | 0.913644 | 0.896285 | 0.880584 | 0.868089 | 0.844538 | 0.834365 | 0 | 0.00951 | 0.231582 | 15,053 | 338 | 145 | 44.535503 | 0.77237 | 0.002591 | 0 | 0.711191 | 0 | 0 | 0.074284 | 0.009127 | 0 | 0 | 0 | 0 | 0.259928 | 1 | 0.140794 | false | 0.021661 | 0.018051 | 0 | 0.173285 | 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 |
db438f6e9c3c2c9b3829a3794166d2319a85d34c | 20,437 | py | Python | sdk/python/pulumi_azure/eventhub/eventhub_namespace_disaster_recovery_config.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/eventhub/eventhub_namespace_disaster_recovery_config.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/eventhub/eventhub_namespace_disaster_recovery_config.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 52.002545 | 317 | 0.691344 | 2,416 | 20,437 | 5.637831 | 0.085265 | 0.052492 | 0.064753 | 0.058146 | 0.838778 | 0.824829 | 0.81345 | 0.79627 | 0.782248 | 0.755525 | 0 | 0.006875 | 0.22425 | 20,437 | 392 | 318 | 52.135204 | 0.852277 | 0.340167 | 0 | 0.663551 | 1 | 0.028037 | 0.232311 | 0.020604 | 0 | 0 | 0 | 0 | 0 | 1 | 0.149533 | false | 0.004673 | 0.023364 | 0.014019 | 0.261682 | 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 |
db5233998cf534197c5c1cfc7c98f7128073875c | 8,799 | py | Python | grl/rl_apps/scenarios/trainer_configs/poker_nfsp_configs.py | indylab/xdo | 1ddd92aa56ba10fa468396de8f8824c83ba9d0ba | [
"MIT"
] | 12 | 2021-03-12T07:18:52.000Z | 2022-03-15T22:30:44.000Z | grl/rl_apps/scenarios/trainer_configs/poker_nfsp_configs.py | indylab/xdo | 1ddd92aa56ba10fa468396de8f8824c83ba9d0ba | [
"MIT"
] | 1 | 2021-11-22T16:39:46.000Z | 2022-02-02T22:13:03.000Z | grl/rl_apps/scenarios/trainer_configs/poker_nfsp_configs.py | indylab/xdo | 1ddd92aa56ba10fa468396de8f8824c83ba9d0ba | [
"MIT"
] | 4 | 2021-06-21T03:54:45.000Z | 2022-01-13T10:28:26.000Z | import os
from typing import Dict, Any
from ray.rllib.env import MultiAgentEnv
from ray.rllib.models import MODEL_DEFAULTS
from ray.rllib.utils import merge_dicts
from grl.rl_apps.scenarios.trainer_configs.defaults import GRL_DEFAULT_OPENSPIEL_POKER_DQN_PARAMS
from grl.rllib_tools.models.valid_actions_fcnet import ge... | 37.283898 | 166 | 0.662007 | 1,143 | 8,799 | 4.748032 | 0.153106 | 0.019901 | 0.06265 | 0.072047 | 0.890547 | 0.885756 | 0.8548 | 0.845403 | 0.837848 | 0.837848 | 0 | 0.039422 | 0.221616 | 8,799 | 235 | 167 | 37.442553 | 0.752957 | 0.138766 | 0 | 0.769231 | 0 | 0 | 0.217104 | 0.023299 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100592 | false | 0 | 0.047337 | 0.053254 | 0.248521 | 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 |
db756ab087bbb3dac02caaa27fd5a5bab0fbaf8a | 76,560 | py | Python | jasmin/routing/test/test_routing_submit_sm_and_dlr.py | neowisard/jasmin | 1708a9469d327291606dc0896480590392c0b9c0 | [
"Apache-2.0"
] | 1 | 2019-01-13T18:45:49.000Z | 2019-01-13T18:45:49.000Z | jasmin/routing/test/test_routing_submit_sm_and_dlr.py | neowisard/jasmin | 1708a9469d327291606dc0896480590392c0b9c0 | [
"Apache-2.0"
] | null | null | null | jasmin/routing/test/test_routing_submit_sm_and_dlr.py | neowisard/jasmin | 1708a9469d327291606dc0896480590392c0b9c0 | [
"Apache-2.0"
] | 1 | 2019-09-09T17:41:53.000Z | 2019-09-09T17:41:53.000Z | # -*- coding: utf-8 -*-
import copy
import string
import urllib
import binascii
import mock
from twisted.internet import defer
from twisted.web import server
from twisted.web.client import getPage
from jasmin.protocols.smpp.test.smsc_simulator import *
from jasmin.redis.client import ConnectionWithConfiguration
from... | 40.723404 | 120 | 0.663427 | 9,452 | 76,560 | 5.24397 | 0.051312 | 0.036497 | 0.024856 | 0.038837 | 0.921398 | 0.916233 | 0.909615 | 0.898196 | 0.893859 | 0.889259 | 0 | 0.026037 | 0.241993 | 76,560 | 1,879 | 121 | 40.745077 | 0.828063 | 0.188388 | 0 | 0.861765 | 0 | 0 | 0.072286 | 0.00574 | 0 | 0 | 0 | 0 | 0.206863 | 1 | 0.051961 | false | 0.003922 | 0.021569 | 0 | 0.088235 | 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 |
dbbe6f02ce83aa677673a28019a365c220bc2d5f | 1,764 | py | Python | entity_extractor/entity_extractor.py | overfit-ir/parstwiner | 3ff969e1cb9fc040d4af8fe6fcc46be5b21e7ece | [
"MIT"
] | 42 | 2021-09-21T07:31:21.000Z | 2022-02-28T14:52:00.000Z | entity_extractor/entity_extractor.py | overfit-ir/parstwiner | 3ff969e1cb9fc040d4af8fe6fcc46be5b21e7ece | [
"MIT"
] | null | null | null | entity_extractor/entity_extractor.py | overfit-ir/parstwiner | 3ff969e1cb9fc040d4af8fe6fcc46be5b21e7ece | [
"MIT"
] | 1 | 2021-11-24T08:18:22.000Z | 2021-11-24T08:18:22.000Z | entities = []
tags = []
with open('ArmanPersoNERCorpus/test_fold1.txt') as file:
for line in file.readlines():
if line != '\n':
entity, tag = line.split(' ')
if tag != 'O\n':
entities.append(entity)
tags.append(tag)
with open('ArmanPersoNERCorpus/test_... | 32.666667 | 57 | 0.527778 | 208 | 1,764 | 4.432692 | 0.144231 | 0.060738 | 0.06833 | 0.078091 | 0.828633 | 0.828633 | 0.828633 | 0.828633 | 0.828633 | 0.828633 | 0 | 0.005093 | 0.3322 | 1,764 | 53 | 58 | 33.283019 | 0.777589 | 0 | 0 | 0.72 | 0 | 0 | 0.146259 | 0.117347 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.02 | 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 |
919e683f0f159e0460e3819139f4cad999a0540d | 33,734 | py | Python | tests/testflows/rbac/tests/privileges/create/create_table.py | mcspring/ClickHouse | 08f713f177f950c2f675c2c75d1261c91066888c | [
"Apache-2.0"
] | 18 | 2021-05-29T01:12:33.000Z | 2021-11-18T12:34:48.000Z | tests/testflows/rbac/tests/privileges/create/create_table.py | mcspring/ClickHouse | 08f713f177f950c2f675c2c75d1261c91066888c | [
"Apache-2.0"
] | null | null | null | tests/testflows/rbac/tests/privileges/create/create_table.py | mcspring/ClickHouse | 08f713f177f950c2f675c2c75d1261c91066888c | [
"Apache-2.0"
] | 2 | 2021-07-13T06:42:45.000Z | 2021-07-21T13:47:22.000Z | from testflows.core import *
from testflows.asserts import error
from rbac.requirements import *
from rbac.helper.common import *
import rbac.helper.errors as errors
@TestScenario
def create_without_create_table_privilege(self, node=None):
"""Check that user is unable to create a table without CREATE TABLE privil... | 45.280537 | 256 | 0.649819 | 4,686 | 33,734 | 4.474392 | 0.032437 | 0.052654 | 0.033386 | 0.026709 | 0.943626 | 0.930271 | 0.917585 | 0.906186 | 0.898507 | 0.892641 | 0 | 0.009866 | 0.245835 | 33,734 | 744 | 257 | 45.341398 | 0.814276 | 0.086856 | 0 | 0.780933 | 0 | 0.014199 | 0.327388 | 0.016364 | 0 | 0 | 0 | 0 | 0.002028 | 1 | 0.046653 | false | 0 | 0.010142 | 0 | 0.056795 | 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 |
37e7720d08f70b8df5e3cdbd28a4959867a5e9d5 | 156 | py | Python | console.py | wastevensv/postdrop | 32d68b4f37f0a041bd6ada100d5f329360e6e496 | [
"BSD-3-Clause"
] | 2 | 2016-06-15T04:00:04.000Z | 2016-11-26T18:30:00.000Z | console.py | wastevensv/postdrop | 32d68b4f37f0a041bd6ada100d5f329360e6e496 | [
"BSD-3-Clause"
] | null | null | null | console.py | wastevensv/postdrop | 32d68b4f37f0a041bd6ada100d5f329360e6e496 | [
"BSD-3-Clause"
] | null | null | null | from postdrop.database import session as db
from postdrop.database import init_db
from postdrop.models import *
import alembic.command
import alembic.config | 31.2 | 43 | 0.852564 | 23 | 156 | 5.73913 | 0.521739 | 0.272727 | 0.30303 | 0.393939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108974 | 156 | 5 | 44 | 31.2 | 0.94964 | 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 |
37faca31eedfbe31f9bbb90e353be03961b72650 | 1,437 | py | Python | goals/migrations/0013_auto_20200804_2346.py | abrookins/quest | 302e985ed4702d977990bc5438c1a6d0521d236e | [
"MIT"
] | 38 | 2020-08-12T12:15:51.000Z | 2022-03-29T20:19:34.000Z | goals/migrations/0013_auto_20200804_2346.py | abrookins/quest | 302e985ed4702d977990bc5438c1a6d0521d236e | [
"MIT"
] | 6 | 2021-03-19T10:51:50.000Z | 2021-09-22T19:34:49.000Z | goals/migrations/0013_auto_20200804_2346.py | abrookins/quest | 302e985ed4702d977990bc5438c1a6d0521d236e | [
"MIT"
] | 6 | 2021-05-24T09:58:24.000Z | 2022-02-25T20:57:47.000Z | # Generated by Django 3.0 on 2020-08-04 23:46
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('goals', '0012_auto_20190123_1341'),
]
operations = [
migrations.AddField(
model_name='goal',
... | 29.9375 | 93 | 0.585247 | 143 | 1,437 | 5.692308 | 0.307692 | 0.132678 | 0.169533 | 0.199017 | 0.788698 | 0.788698 | 0.711302 | 0.711302 | 0.711302 | 0.652334 | 0 | 0.03009 | 0.306193 | 1,437 | 47 | 94 | 30.574468 | 0.786359 | 0.029923 | 0 | 0.804878 | 1 | 0 | 0.08908 | 0.016523 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04878 | 0 | 0.121951 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
53362d9115cc9d0ef98bcfde2d27a1be25616f03 | 291 | py | Python | run_celery_devel.py | go-lab/appcomposer | c2468f11b8398edc9b16e1552ac8d609d8347677 | [
"BSD-2-Clause"
] | 1 | 2018-01-20T14:56:01.000Z | 2018-01-20T14:56:01.000Z | run_celery_devel.py | go-lab/appcomposer | c2468f11b8398edc9b16e1552ac8d609d8347677 | [
"BSD-2-Clause"
] | 25 | 2015-01-21T09:16:26.000Z | 2021-12-13T20:01:21.000Z | run_celery_devel.py | go-lab/appcomposer | c2468f11b8398edc9b16e1552ac8d609d8347677 | [
"BSD-2-Clause"
] | 3 | 2015-07-28T18:40:05.000Z | 2017-03-28T08:14:37.000Z | #!/usr/bin/python
from appcomposer.translator.tasks import cel
import sys
# Run all the queues in one
cel.worker_main(sys.argv + ['--beat', '--loglevel=INFO', '--concurrency=1', '--queues=single-sync-tasks,non-critical-independent-tasks,critical-independent-tasks,slow-independent-tasks'])
| 41.571429 | 187 | 0.75945 | 41 | 291 | 5.365854 | 0.731707 | 0.218182 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003704 | 0.072165 | 291 | 6 | 188 | 48.5 | 0.811111 | 0.14433 | 0 | 0 | 0 | 0.333333 | 0.578947 | 0.433198 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
726c38e6b48aff20f56421f89a786ce9ae4df9a0 | 8,135 | py | Python | src/apps/games/models/game_count_views.py | sanderland/katago-server | 6414fab080d007c05068a06ff4f25907b92848bd | [
"MIT"
] | null | null | null | src/apps/games/models/game_count_views.py | sanderland/katago-server | 6414fab080d007c05068a06ff4f25907b92848bd | [
"MIT"
] | null | null | null | src/apps/games/models/game_count_views.py | sanderland/katago-server | 6414fab080d007c05068a06ff4f25907b92848bd | [
"MIT"
] | null | null | null | from django.db.models import CharField, DateTimeField, IntegerField, ForeignKey, OneToOneField, DO_NOTHING
from django_pgviews import view as pg
from src.apps.trainings.models import Network
from src.apps.runs.models import Run
from src.apps.users.models import User
__ALL__ = ["GameCountByNetwork", "GameCountByUser"... | 36.155556 | 116 | 0.701291 | 1,044 | 8,135 | 5.171456 | 0.128352 | 0.053343 | 0.071124 | 0.046675 | 0.783849 | 0.771254 | 0.724764 | 0.701982 | 0.701056 | 0.701056 | 0 | 0.005763 | 0.232084 | 8,135 | 224 | 117 | 36.316964 | 0.858492 | 0.078304 | 0 | 0.710383 | 0 | 0.010929 | 0.631162 | 0.222968 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005464 | false | 0 | 0.027322 | 0.005464 | 0.251366 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
728577ccc8dbd553544a08207d03f691778780cf | 971 | py | Python | ddd_shop/decorators.py | Niceta-Nduku/ddd-shop-assesment | 448dd67f476537a33067b2323116075780ee8beb | [
"MIT"
] | null | null | null | ddd_shop/decorators.py | Niceta-Nduku/ddd-shop-assesment | 448dd67f476537a33067b2323116075780ee8beb | [
"MIT"
] | 1 | 2022-03-01T06:14:19.000Z | 2022-03-01T06:14:19.000Z | ddd_shop/decorators.py | Niceta-Nduku/ddd-shop-assesment | 448dd67f476537a33067b2323116075780ee8beb | [
"MIT"
] | null | null | null | from django.contrib.auth import REDIRECT_FIELD_NAME
from django.contrib.auth.decorators import user_passes_test
def attendant_only(function=None, redirect_field_name=REDIRECT_FIELD_NAME, login_url='login'):
"""
Decorator for view to check id user is an attendant
"""
actual_decorator = user_passes_t... | 27.742857 | 94 | 0.723996 | 132 | 971 | 5.007576 | 0.280303 | 0.177005 | 0.231467 | 0.151286 | 0.771558 | 0.771558 | 0.771558 | 0.771558 | 0.771558 | 0.771558 | 0 | 0 | 0.211123 | 971 | 34 | 95 | 28.558824 | 0.862924 | 0.107106 | 0 | 0.6 | 0 | 0 | 0.012019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.15 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
72978933fd7f5c297473801f38160abed602cf1e | 155 | py | Python | loldib/getratings/models/NA/na_camille/__init__.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_camille/__init__.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_camille/__init__.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | from .na_camille_top import *
from .na_camille_jng import *
from .na_camille_mid import *
from .na_camille_bot import *
from .na_camille_sup import *
| 25.833333 | 30 | 0.774194 | 25 | 155 | 4.4 | 0.36 | 0.272727 | 0.590909 | 0.690909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 155 | 5 | 31 | 31 | 0.846154 | 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 |
f4064fab6db910b61cabeb49737a3dbc8f7d3548 | 69,241 | py | Python | userbot/modules/admin.py | akborana/Devil | 30ef9c5ac910d6344e206921e343a0932ffd6460 | [
"MIT"
] | 1 | 2021-05-06T18:30:50.000Z | 2021-05-06T18:30:50.000Z | userbot/modules/admin.py | hellboi-atul/javes-3.0 | 8777d482bd1ee877a96332a2cd84d880c151fa43 | [
"MIT"
] | null | null | null | userbot/modules/admin.py | hellboi-atul/javes-3.0 | 8777d482bd1ee877a96332a2cd84d880c151fa43 | [
"MIT"
] | null | null | null | from userbot.events import javes05
from userbot import bot, BOTLOG_CHATID
import asyncio
from telethon import events
from telethon.tl.functions.channels import EditBannedRequest
from telethon.tl.types import (PeerChat, PeerChannel,ChannelParticipantsAdmins, ChatAdminRights,ChatBannedRights, MessageEntityMentionName,Mes... | 37.306573 | 296 | 0.5468 | 8,536 | 69,241 | 4.346767 | 0.047212 | 0.06091 | 0.03943 | 0.027086 | 0.882304 | 0.860743 | 0.848426 | 0.83487 | 0.829991 | 0.826784 | 0 | 0.005166 | 0.326281 | 69,241 | 1,856 | 297 | 37.306573 | 0.78962 | 0 | 0 | 0.843137 | 0 | 0.016724 | 0.180786 | 0.012507 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.00346 | 0.013264 | 0 | 0.086505 | 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 |
f458d15c40ca43fd6f6249831cebec6712d993ac | 15,467 | py | Python | tests/samlp_data.py | skanct/pysaml2 | 0c1e26a6dd8759962857a30ebd67f63fe9e881ee | [
"Apache-2.0"
] | 249 | 2018-03-01T09:47:04.000Z | 2022-03-26T04:51:26.000Z | tests/samlp_data.py | skanct/pysaml2 | 0c1e26a6dd8759962857a30ebd67f63fe9e881ee | [
"Apache-2.0"
] | 416 | 2018-02-21T15:18:35.000Z | 2022-03-04T16:59:36.000Z | tests/samlp_data.py | skanct/pysaml2 | 0c1e26a6dd8759962857a30ebd67f63fe9e881ee | [
"Apache-2.0"
] | 203 | 2018-02-21T13:53:12.000Z | 2022-03-08T22:22:17.000Z | #!/usr/bin/env python
#
"""Test data for saml2"""
__author__ = 'tmatsuo@example.com (Takashi MATSUO)'
TEST_STATUS_CODE = """<?xml version="1.0" encoding="utf-8"?>
<StatusCode xmlns="urn:oasis:names:tc:SAML:2.0:protocol"
Value="urn:oasis:names:tc:SAML:2.0:status:Responder">
<StatusCode Value="urn:oasis:names:tc:S... | 34.993213 | 87 | 0.643822 | 1,750 | 15,467 | 5.674857 | 0.121714 | 0.047226 | 0.057597 | 0.066459 | 0.893767 | 0.893767 | 0.893767 | 0.861947 | 0.855704 | 0.831437 | 0 | 0.053851 | 0.190793 | 15,467 | 441 | 88 | 35.072562 | 0.739613 | 0.002586 | 0 | 0.819249 | 0 | 0.089202 | 0.98048 | 0.279248 | 0 | 0 | 0 | 0 | 0.032864 | 1 | 0 | false | 0.002347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
f463426d278974841b52dff4b9d2907cba99bd5d | 172 | py | Python | render/utils.py | Crunchy-Bot/imagination | ea4fc7f4ee840bfe7c61ec494a30f20f46c568a9 | [
"MIT"
] | null | null | null | render/utils.py | Crunchy-Bot/imagination | ea4fc7f4ee840bfe7c61ec494a30f20f46c568a9 | [
"MIT"
] | null | null | null | render/utils.py | Crunchy-Bot/imagination | ea4fc7f4ee840bfe7c61ec494a30f20f46c568a9 | [
"MIT"
] | null | null | null | from textwrap import wrap
def wrap_and_join(text: str, characters: int, max_lines=2) -> str:
return "\n".join(wrap(text, max_lines=max_lines, width=characters))
| 28.666667 | 72 | 0.715116 | 27 | 172 | 4.37037 | 0.62963 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0.156977 | 172 | 5 | 73 | 34.4 | 0.806897 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 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 |
f4636f98352b017dd5ef1bda2b72e72e2a31f4a8 | 122 | py | Python | graphite_feeder/handler/event/enum/alarm/__init__.py | majamassarini/automate-graphite-feeder | 0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0 | [
"MIT"
] | null | null | null | graphite_feeder/handler/event/enum/alarm/__init__.py | majamassarini/automate-graphite-feeder | 0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0 | [
"MIT"
] | null | null | null | graphite_feeder/handler/event/enum/alarm/__init__.py | majamassarini/automate-graphite-feeder | 0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0 | [
"MIT"
] | null | null | null | from graphite_feeder.handler.event.enum.alarm import armed
from graphite_feeder.handler.event.enum.alarm import triggered
| 40.666667 | 62 | 0.868852 | 18 | 122 | 5.777778 | 0.555556 | 0.230769 | 0.346154 | 0.480769 | 0.865385 | 0.865385 | 0.865385 | 0.865385 | 0 | 0 | 0 | 0 | 0.065574 | 122 | 2 | 63 | 61 | 0.912281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 11 |
be4a206d20b3daa530062644c073abd27cc46c92 | 14,118 | py | Python | files/Operations.py | LavaPower/Sython | ec07a8d834b0f77e621a64ec4f72567db89c0a4c | [
"MIT"
] | 2 | 2018-09-30T14:30:02.000Z | 2018-10-01T07:04:21.000Z | files/Operations.py | LavaPower/Sython | ec07a8d834b0f77e621a64ec4f72567db89c0a4c | [
"MIT"
] | 1 | 2018-10-01T07:07:41.000Z | 2018-10-05T20:40:53.000Z | files/Operations.py | LavaPower/Sython | ec07a8d834b0f77e621a64ec4f72567db89c0a4c | [
"MIT"
] | null | null | null | from files.ListObject import variables, variableExist
def add(value1, value2, type_):
var1 = variableExist(value1)
var2 = variableExist(value2)
if not var1 and not var2:
if type_ == "int":
try:
value = int(value1) + int(value2)
value = int(value)
... | 42.652568 | 137 | 0.498796 | 1,492 | 14,118 | 4.644772 | 0.036863 | 0.08254 | 0.145455 | 0.159307 | 0.983838 | 0.98153 | 0.979076 | 0.973737 | 0.964646 | 0.923088 | 0 | 0.033422 | 0.385395 | 14,118 | 331 | 138 | 42.652568 | 0.765241 | 0 | 0 | 0.888545 | 0 | 0 | 0.17225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012384 | false | 0 | 0.003096 | 0 | 0.306502 | 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 |
beb4089cd435ee791623242ada50a4e037abaed2 | 2,057 | py | Python | variational_circuit/optimize.py | Canoming/VariationalQCircuit | 87e4e2e3f3ed2cc1bf73f7bde01bede99c538a14 | [
"MIT"
] | null | null | null | variational_circuit/optimize.py | Canoming/VariationalQCircuit | 87e4e2e3f3ed2cc1bf73f7bde01bede99c538a14 | [
"MIT"
] | 3 | 2020-03-12T11:56:44.000Z | 2020-04-19T20:51:44.000Z | variational_circuit/optimize.py | Canoming/VariationalQCircuit | 87e4e2e3f3ed2cc1bf73f7bde01bede99c538a14 | [
"MIT"
] | null | null | null | from scipy.optimize import minimize
from .measure.measure_sample import dst,hst,dst_source
from .measure.measure_sim import sep_purity, fid_ref, c_entropy
def vcirc_test(
x,
statein,
vcirc,
test_func=sep_purity,
ansatz_li=None,
update=False,
*args,
**kw... | 28.971831 | 98 | 0.613515 | 263 | 2,057 | 4.623574 | 0.258555 | 0.074013 | 0.078947 | 0.098684 | 0.827303 | 0.827303 | 0.827303 | 0.827303 | 0.827303 | 0.827303 | 0 | 0.005355 | 0.2737 | 2,057 | 71 | 99 | 28.971831 | 0.808568 | 0 | 0 | 0.806452 | 0 | 0 | 0.057337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.048387 | 0 | 0.177419 | 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 |
fe41b7a27170e87063cd25e0b769a46b26cb5f37 | 778 | py | Python | test.py | wilsonloo/my_traffic_tf2_yolo3 | 322104de934794870822e1ea2494ee8228de2540 | [
"MIT"
] | 1 | 2021-07-02T01:44:40.000Z | 2021-07-02T01:44:40.000Z | test.py | wilsonloo/my_traffic_tf2_yolo3 | 322104de934794870822e1ea2494ee8228de2540 | [
"MIT"
] | null | null | null | test.py | wilsonloo/my_traffic_tf2_yolo3 | 322104de934794870822e1ea2494ee8228de2540 | [
"MIT"
] | null | null | null | import os
d = [880, 988, 1046, 988, 1046, 1318, 988, 659, 659, 880, 784, 880, 1046, 784, 659, 698, 659, 698, 1046, 659, 1046, 1046, 1046, 988, 739, 739, 988, 988, 880, 988, 1046, 988, 1046, 1318, 988, 659, 659, 880, 784, 880, 1046, 784, 659, 698, 659, 698, 1046, 659, 1046, 1046, 1046, 988, 739, 739, 988, 988]
f = [0.... | 51.866667 | 300 | 0.534704 | 206 | 778 | 2.019417 | 0.184466 | 0.115385 | 0.129808 | 0.115385 | 0.75 | 0.75 | 0.75 | 0.75 | 0.75 | 0.75 | 0 | 0.5008 | 0.196658 | 778 | 14 | 301 | 55.571429 | 0.1648 | 0.03856 | 0 | 0 | 0 | 0 | 0.08445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fe7d24067684ae9cae7868bb9650199720500fef | 69,603 | py | Python | test/test_integration.py | mkst/pricefeed | 11814ca20da0949839cd2af55d7d31c87d25b2c7 | [
"MIT"
] | null | null | null | test/test_integration.py | mkst/pricefeed | 11814ca20da0949839cd2af55d7d31c87d25b2c7 | [
"MIT"
] | null | null | null | test/test_integration.py | mkst/pricefeed | 11814ca20da0949839cd2af55d7d31c87d25b2c7 | [
"MIT"
] | 1 | 2021-08-06T08:51:21.000Z | 2021-08-06T08:51:21.000Z | import unittest
from unittest.mock import Mock, patch, call
from multiprocessing import Queue
import numpy as np
import quickfix as fix
import quickfix44 as fix44
import app.bookbuilder as bb
import app.pricefeed as pf
import app.pxm44 as pxm44
class TestIntegrationClass(unittest.TestCase):
def setUp(self):
... | 54.8487 | 403 | 0.610132 | 9,506 | 69,603 | 4.36903 | 0.040816 | 0.229702 | 0.055475 | 0.069344 | 0.919893 | 0.864923 | 0.825147 | 0.782433 | 0.767649 | 0.762135 | 0 | 0.216979 | 0.207807 | 69,603 | 1,268 | 404 | 54.891956 | 0.536245 | 0.078574 | 0 | 0.685149 | 0 | 0.032673 | 0.228582 | 0.100971 | 0 | 0 | 0 | 0.000789 | 0.625743 | 1 | 0.030693 | false | 0 | 0.008911 | 0 | 0.040594 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
fe9ee861500d4b0fd81b0d0d9ed1a1b24367c5bb | 15,632 | py | Python | src/nifake/unit_tests/test_converters.py | phindman/nimi-python | 8428334e2b49645fa5d452349825e317c20f09c7 | [
"MIT"
] | null | null | null | src/nifake/unit_tests/test_converters.py | phindman/nimi-python | 8428334e2b49645fa5d452349825e317c20f09c7 | [
"MIT"
] | null | null | null | src/nifake/unit_tests/test_converters.py | phindman/nimi-python | 8428334e2b49645fa5d452349825e317c20f09c7 | [
"MIT"
] | null | null | null | import nifake._converters as _converters
import nifake._visatype as _visatype
import nifake.errors as errors
import hightime
import pytest
def test_convert_init_with_options_dictionary():
assert _converters.convert_init_with_options_dictionary('') == ''
assert _converters.convert_init_with_options_dictionary... | 55.042254 | 289 | 0.749424 | 1,822 | 15,632 | 6.041164 | 0.073546 | 0.125375 | 0.104297 | 0.194967 | 0.934678 | 0.893977 | 0.860634 | 0.841465 | 0.810212 | 0.80467 | 0 | 0.041111 | 0.122377 | 15,632 | 283 | 290 | 55.236749 | 0.761207 | 0.002687 | 0 | 0.403509 | 0 | 0.004386 | 0.177263 | 0.046321 | 0 | 0 | 0 | 0 | 0.421053 | 1 | 0.114035 | false | 0.030702 | 0.02193 | 0 | 0.135965 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
feac4301ccb2a2d530c43282b17ebfd2bd116c12 | 1,906 | py | Python | test_all.py | elliotnunn/macresources | cc7c6aacec7d241c945d925c3a2473c3917ef4e0 | [
"MIT"
] | 5 | 2019-09-25T01:09:07.000Z | 2021-11-03T02:39:42.000Z | test_all.py | elliotnunn/macresources | cc7c6aacec7d241c945d925c3a2473c3917ef4e0 | [
"MIT"
] | null | null | null | test_all.py | elliotnunn/macresources | cc7c6aacec7d241c945d925c3a2473c3917ef4e0 | [
"MIT"
] | null | null | null | from macresources import *
RF = b'\x00\x00\x01\x00\x00\x00\x01\x08\x00\x00\x00\x08\x00\x00\x00;\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00... | 52.944444 | 1,244 | 0.69937 | 417 | 1,906 | 3.153477 | 0.103118 | 1.304943 | 1.909506 | 2.491255 | 0.809125 | 0.778707 | 0.748289 | 0.748289 | 0.748289 | 0.748289 | 0 | 0.369528 | 0.077125 | 1,906 | 35 | 1,245 | 54.457143 | 0.378056 | 0 | 0 | 0.36 | 0 | 0.04 | 0.711962 | 0.648478 | 0 | 1 | 0 | 0 | 0.32 | 1 | 0.16 | false | 0 | 0.04 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 15 |
22f2a355d5a92a5204e79a3057c1e20cb43f962f | 640,976 | py | Python | art/text_dic3.py | Anilkutsa/milvik_art | 10e8d433b37223df703411ed12401c6b309c9d39 | [
"MIT"
] | 3 | 2020-12-20T03:09:20.000Z | 2021-11-15T12:25:01.000Z | art/text_dic3.py | Anilkutsa/milvik_art | 10e8d433b37223df703411ed12401c6b309c9d39 | [
"MIT"
] | 9 | 2021-04-12T13:44:34.000Z | 2021-04-13T16:50:08.000Z | art/text_dic3.py | Anilkutsa/milvik_art | 10e8d433b37223df703411ed12401c6b309c9d39 | [
"MIT"
] | 1 | 2021-05-19T10:14:38.000Z | 2021-05-19T10:14:38.000Z | # -*- coding: utf-8 -*-
"""Fonts data (part-3)."""
c_consen_dic = {
'j': '### \n### \n# \n# # \n# # \n## # \n## # \n## ## \n',
'A': ' \n \n #### \n ## ## \n ###### \n ## ## \n ## ## \n \n',
'@': '# # \n## # \n## # \n # # \n### # \n### # \n#... | 25.6493 | 123 | 0.094821 | 60,121 | 640,976 | 1.039404 | 0.025133 | 0.846439 | 1.158281 | 1.401824 | 0.634902 | 0.604849 | 0.597136 | 0.590318 | 0.589582 | 0.584141 | 0 | 0.016442 | 0.504409 | 640,976 | 24,989 | 124 | 25.650326 | 0.172419 | 0.000067 | 0 | 0.797642 | 0 | 0.111151 | 0.534231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a3b13a1ef1518896efc54668afa2c3288436fa76 | 5,596 | py | Python | OdriveCommands.py | MonkeyTitan/Rover-Software | 578fcfbc856b7e76f9499fd7791beb9bbf025fb7 | [
"MIT"
] | null | null | null | OdriveCommands.py | MonkeyTitan/Rover-Software | 578fcfbc856b7e76f9499fd7791beb9bbf025fb7 | [
"MIT"
] | null | null | null | OdriveCommands.py | MonkeyTitan/Rover-Software | 578fcfbc856b7e76f9499fd7791beb9bbf025fb7 | [
"MIT"
] | null | null | null | #imports
import odrive
import time
import math
# Class creation
class Odriver:
def __init__(self):
self.drive1 = odrive.find_any(serial_number='2069388F304E') # left
# self.drive2 = odrive.find_any(serial_number='20683882304E')
self.drive3 = odrive.find_any(serial_number='207F3890304E') #... | 42.075188 | 76 | 0.676376 | 722 | 5,596 | 5.135734 | 0.098338 | 0.226537 | 0.18123 | 0.081985 | 0.844391 | 0.811758 | 0.809331 | 0.734628 | 0.588188 | 0.576052 | 0 | 0.060559 | 0.200322 | 5,596 | 132 | 77 | 42.393939 | 0.768045 | 0.02609 | 0 | 0.45283 | 0 | 0 | 0.00441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207547 | false | 0 | 0.028302 | 0 | 0.245283 | 0.018868 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
430cc8664edd4cb2ec0f5a397d8507f7c9ba7837 | 111,087 | py | Python | skbot/ignition/sdformat/bindings/v15/sensor.py | FirefoxMetzger/ropy | c1bcebda223f3af0b6d35e3f4c26d8fd9d26577a | [
"Apache-2.0"
] | 6 | 2021-03-24T05:54:45.000Z | 2021-07-20T21:03:21.000Z | skbot/ignition/sdformat/bindings/v15/sensor.py | FirefoxMetzger/scikit-bot | ee6f1d3451a3c61a6fa122cc42efc4dd67afc9c9 | [
"Apache-2.0"
] | 31 | 2021-08-12T08:12:58.000Z | 2022-03-21T23:16:36.000Z | skbot/ignition/sdformat/bindings/v15/sensor.py | FirefoxMetzger/scikit-bot | ee6f1d3451a3c61a6fa122cc42efc4dd67afc9c9 | [
"Apache-2.0"
] | 1 | 2021-07-20T20:13:49.000Z | 2021-07-20T20:13:49.000Z | from dataclasses import dataclass, field
from typing import List, Optional
__NAMESPACE__ = "sdformat/v1.5/sensor.xsd"
@dataclass
class Sensor:
"""
The sensor tag describes the type and properties of a sensor.
Parameters
----------
always_on: If true the sensor will always be updated according to... | 34.834431 | 157 | 0.381764 | 7,781 | 111,087 | 5.422696 | 0.056677 | 0.070816 | 0.097715 | 0.144002 | 0.862848 | 0.85268 | 0.831777 | 0.801773 | 0.779684 | 0.743139 | 0 | 0.007194 | 0.529477 | 111,087 | 3,188 | 158 | 34.845358 | 0.800015 | 0.281077 | 0 | 0.674453 | 0 | 0.002433 | 0.132302 | 0.028441 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000973 | 0 | 0.045742 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
433ff59a20e19988d1cdd4fa2a49c9e0e5c5f695 | 126,219 | py | Python | tests/test_panel.py | obeezzy/lpminimk3 | 395264d30cb1813beb49aad107db0c3ab1210ae0 | [
"MIT"
] | 3 | 2021-10-12T17:06:57.000Z | 2022-02-25T21:58:47.000Z | tests/test_panel.py | obeezzy/lpminimk3 | 395264d30cb1813beb49aad107db0c3ab1210ae0 | [
"MIT"
] | 1 | 2021-10-12T21:05:15.000Z | 2021-10-12T21:05:15.000Z | tests/test_panel.py | obeezzy/lpminimk3 | 395264d30cb1813beb49aad107db0c3ab1210ae0 | [
"MIT"
] | null | null | null | import unittest
from lpminimk3.__init__ import ButtonFace, Panel, ButtonEvent
from lpminimk3.colors import ColorPalette,\
ColorShadeStore
from lpminimk3.region import Labeled
from tests._vlpminimk3 import VirtualMidiEvent,\
create_virtual_launchpad
class Test... | 65.670656 | 120 | 0.551597 | 15,448 | 126,219 | 4.468669 | 0.024728 | 0.099867 | 0.17544 | 0.162041 | 0.962467 | 0.959743 | 0.930844 | 0.926194 | 0.921558 | 0.915836 | 0 | 0.042967 | 0.289909 | 126,219 | 1,921 | 121 | 65.704841 | 0.727247 | 0.031643 | 0 | 0.381338 | 0 | 0 | 0.166259 | 0 | 0 | 0 | 0.009191 | 0 | 0.570119 | 1 | 0.019417 | false | 0 | 0.002697 | 0 | 0.023732 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
434266b6bd14cd36c15d5117303253ea501ef11a | 61,218 | py | Python | sdk/python/pulumi_alicloud/ecs/disk.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 42 | 2019-03-18T06:34:37.000Z | 2022-03-24T07:08:57.000Z | sdk/python/pulumi_alicloud/ecs/disk.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 152 | 2019-04-15T21:03:44.000Z | 2022-03-29T18:00:57.000Z | sdk/python/pulumi_alicloud/ecs/disk.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-08-26T17:30:07.000Z | 2021-07-05T01:37:45.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 50.219852 | 296 | 0.656098 | 7,716 | 61,218 | 4.987688 | 0.035511 | 0.083175 | 0.113057 | 0.089749 | 0.960634 | 0.952969 | 0.942731 | 0.938184 | 0.93426 | 0.90851 | 0 | 0.00615 | 0.237643 | 61,218 | 1,218 | 297 | 50.261084 | 0.81847 | 0.288249 | 0 | 0.906977 | 1 | 0.014688 | 0.128385 | 0.017901 | 0 | 0 | 0 | 0 | 0 | 1 | 0.165239 | false | 0.001224 | 0.00612 | 0.040392 | 0.270502 | 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 |
4a85ac09711f4c18b415ef7062a13e22b04d7ad2 | 183 | py | Python | test2.py | tim-aarons/pynetA | 8dca88d73ffd86c84f45ade9e00b3c2b9e048f87 | [
"Apache-2.0"
] | null | null | null | test2.py | tim-aarons/pynetA | 8dca88d73ffd86c84f45ade9e00b3c2b9e048f87 | [
"Apache-2.0"
] | null | null | null | test2.py | tim-aarons/pynetA | 8dca88d73ffd86c84f45ade9e00b3c2b9e048f87 | [
"Apache-2.0"
] | null | null | null | print("something a little different...")
print("totally new file pynetA - File test 1")
print("totally new file pynetA - File test 1")
print("totally new file pynetA - File test 1")
| 30.5 | 46 | 0.721311 | 29 | 183 | 4.551724 | 0.37931 | 0.272727 | 0.340909 | 0.431818 | 0.772727 | 0.772727 | 0.772727 | 0.772727 | 0.772727 | 0.772727 | 0 | 0.019481 | 0.15847 | 183 | 5 | 47 | 36.6 | 0.837662 | 0 | 0 | 0.75 | 0 | 0 | 0.775956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 14 |
4a8b986e3d226a11d45a3cf9c3fcc15045ff7b45 | 14,999 | py | Python | tests/test_event.py | loicpw/simpy-events | 70160bb433a192d267d5c5fb093129c4ffe938d5 | [
"MIT"
] | 1 | 2020-02-19T07:50:00.000Z | 2020-02-19T07:50:00.000Z | tests/test_event.py | loicpw/simpy-events | 70160bb433a192d267d5c5fb093129c4ffe938d5 | [
"MIT"
] | null | null | null | tests/test_event.py | loicpw/simpy-events | 70160bb433a192d267d5c5fb093129c4ffe938d5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pytest
from simpy_events.event import Event, EventDispatcher, Context
import simpy
@pytest.fixture
def env():
yield simpy.Environment()
def test_create_context():
c = Context(event='my event', hook='before', attr1='test')
assert c.event == 'my event'
assert c.hook == 'b... | 27.931099 | 69 | 0.632776 | 1,785 | 14,999 | 5.258824 | 0.061625 | 0.07031 | 0.051135 | 0.072441 | 0.873335 | 0.863641 | 0.845425 | 0.824971 | 0.803771 | 0.79184 | 0 | 0.008129 | 0.212614 | 14,999 | 536 | 70 | 27.983209 | 0.786706 | 0.024868 | 0 | 0.788321 | 0 | 0 | 0.229733 | 0 | 0 | 0 | 0 | 0.001866 | 0.077859 | 1 | 0.128954 | false | 0 | 0.007299 | 0 | 0.136253 | 0.068127 | 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 |
4aa2731c7baefad2dd5f7f877463fae9d9d5c472 | 148 | py | Python | src/chapter3/__init__.py | DuGuPeefy/CLRS_dugu_code-master | cc0b44f76c1306915e11c744f7f10aa20c98ac0d | [
"Apache-2.0"
] | 3 | 2018-01-31T03:08:50.000Z | 2018-04-25T12:57:01.000Z | src/chapter3/__init__.py | HideLakitu/IntroductionToAlgorithm.Python | 33662f46dc346203b220d7481d1a4439feda05d2 | [
"Apache-2.0"
] | null | null | null | src/chapter3/__init__.py | HideLakitu/IntroductionToAlgorithm.Python | 33662f46dc346203b220d7481d1a4439feda05d2 | [
"Apache-2.0"
] | 3 | 2019-03-03T04:49:53.000Z | 2020-07-13T10:18:58.000Z |
# python src/chapter3/chapter3_1.py
# python3 src/chapter3/chapter3_1.py
# python src/chapter3/chapter3_2.py
# python3 src/chapter3/chapter3_2.py
| 21.142857 | 36 | 0.797297 | 24 | 148 | 4.75 | 0.291667 | 0.385965 | 0.666667 | 0.438596 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 0.094595 | 148 | 6 | 37 | 24.666667 | 0.746269 | 0.925676 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 1 | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 8 |
4370fc3c1a93428629879a7aa964f5e6ebecc210 | 1,259 | py | Python | 8.py | prof-paradox/project-euler | 27b35d8f3aab7752a265a68bd8e4173eb34d0ce5 | [
"MIT"
] | null | null | null | 8.py | prof-paradox/project-euler | 27b35d8f3aab7752a265a68bd8e4173eb34d0ce5 | [
"MIT"
] | null | null | null | 8.py | prof-paradox/project-euler | 27b35d8f3aab7752a265a68bd8e4173eb34d0ce5 | [
"MIT"
] | null | null | null | from functools import reduce
max_prod = 1
N = "73167176531330624919225119674426574742355349194934969835203127745063262395783180169848018694788518438586156078911294949545950173795833195285320880551112540698747158523863050715693290963295227443043557668966489504452445231617318564030987111217223831136222989342338030813... | 83.933333 | 1,007 | 0.904686 | 44 | 1,259 | 25.795455 | 0.5 | 0.02467 | 0.019383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.855442 | 0.065925 | 1,259 | 15 | 1,008 | 83.933333 | 0.109694 | 0 | 0 | 0 | 0 | 0 | 0.802568 | 0.802568 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 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 |
43b61f980c16bbca6d7ca454fcf102d0310e4a8c | 4,813 | py | Python | test/torch/tensors/test_gc.py | alexis-thual/PySyft | f34aba95776d57b9bf30252061a84b64fc23018b | [
"Apache-2.0"
] | null | null | null | test/torch/tensors/test_gc.py | alexis-thual/PySyft | f34aba95776d57b9bf30252061a84b64fc23018b | [
"Apache-2.0"
] | null | null | null | test/torch/tensors/test_gc.py | alexis-thual/PySyft | f34aba95776d57b9bf30252061a84b64fc23018b | [
"Apache-2.0"
] | null | null | null | """All the tests relative to garbage collection of all kinds of remote or local tensors"""
import random
import torch
import syft
from syft.frameworks.torch.tensors.decorators import LoggingTensor
# TESTING POINTERS
def test_explicit_garbage_collect_pointer(workers):
"""Tests whether deleting a PointerTensor ... | 28.311765 | 90 | 0.681903 | 722 | 4,813 | 4.437673 | 0.113573 | 0.026217 | 0.05618 | 0.094881 | 0.923845 | 0.900749 | 0.872035 | 0.84769 | 0.807428 | 0.807428 | 0 | 0.004299 | 0.226678 | 4,813 | 169 | 91 | 28.47929 | 0.856529 | 0.479742 | 0 | 0.724138 | 0 | 0 | 0.048259 | 0 | 0 | 0 | 0 | 0.011834 | 0.275862 | 1 | 0.103448 | false | 0 | 0.068966 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
43bc162d18102c26dd1f1fcd284711963ce68bb5 | 3,124 | py | Python | tests/plugins/test_pluginbase.py | GhostofGoes/puresnmp | 878afc809014ea540aa2996a0a08bb4ef7044319 | [
"MIT"
] | null | null | null | tests/plugins/test_pluginbase.py | GhostofGoes/puresnmp | 878afc809014ea540aa2996a0a08bb4ef7044319 | [
"MIT"
] | null | null | null | tests/plugins/test_pluginbase.py | GhostofGoes/puresnmp | 878afc809014ea540aa2996a0a08bb4ef7044319 | [
"MIT"
] | null | null | null | """
Test the plugin architecture for modular components
"""
from unittest.mock import MagicMock, patch
import puresnmp.plugins.pluginbase as base
@patch("puresnmp.plugins.pluginbase.importlib")
@patch("puresnmp.plugins.pluginbase.iter_namespace")
def test_base_broken_namespace(iter_namespace, importlib):
"""
... | 36.325581 | 74 | 0.747439 | 369 | 3,124 | 6.070461 | 0.192412 | 0.100446 | 0.122768 | 0.133929 | 0.828125 | 0.814286 | 0.814286 | 0.814286 | 0.767857 | 0.767857 | 0 | 0.002229 | 0.138284 | 3,124 | 85 | 75 | 36.752941 | 0.829866 | 0.044814 | 0 | 0.746032 | 0 | 0 | 0.205068 | 0.136486 | 0 | 0 | 0 | 0.011765 | 0.126984 | 1 | 0.095238 | false | 0 | 0.222222 | 0 | 0.31746 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
43c7231f682fa3151ed212c3479736ec4ed9686d | 28 | py | Python | pygslib/version.py | opengeostat/pygslib | 7fb0c201eba6304b1914cf88a437aa9dc42e7021 | [
"MIT"
] | 94 | 2015-10-23T20:35:26.000Z | 2022-03-23T08:24:49.000Z | pygslib/version.py | kaufmanno/pygslib | 7fb0c201eba6304b1914cf88a437aa9dc42e7021 | [
"MIT"
] | 55 | 2016-09-19T17:20:46.000Z | 2022-03-20T03:44:01.000Z | pygslib/version.py | kaufmanno/pygslib | 7fb0c201eba6304b1914cf88a437aa9dc42e7021 | [
"MIT"
] | 47 | 2016-03-31T08:17:47.000Z | 2022-03-18T02:35:33.000Z | __version__ = '0.0.0.7.0.0'
| 14 | 27 | 0.607143 | 7 | 28 | 1.857143 | 0.428571 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24 | 0.107143 | 28 | 1 | 28 | 28 | 0.28 | 0 | 0 | 0 | 0 | 0 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
43e1fcbf9dc7fb0ea7ef07375877131edd4eacbd | 11,556 | py | Python | tests/test_pod.py | NithyaNatarajan/chaostoolkit-kubernetes | 3fed98243f954e94c4bb619a1c60a7a9e5225a82 | [
"Apache-2.0"
] | null | null | null | tests/test_pod.py | NithyaNatarajan/chaostoolkit-kubernetes | 3fed98243f954e94c4bb619a1c60a7a9e5225a82 | [
"Apache-2.0"
] | null | null | null | tests/test_pod.py | NithyaNatarajan/chaostoolkit-kubernetes | 3fed98243f954e94c4bb619a1c60a7a9e5225a82 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from unittest.mock import MagicMock, patch, ANY, call
import pytest
from chaoslib.exceptions import ActivityFailed
from chaosk8s.pod.actions import terminate_pods
from chaosk8s.pod.probes import pods_in_phase, pods_not_in_phase
@patch('chaosk8s.has_local_config_file', autospec=True)
@patch('... | 30.734043 | 78 | 0.691243 | 1,530 | 11,556 | 5.00719 | 0.076471 | 0.067354 | 0.075447 | 0.091372 | 0.940608 | 0.922725 | 0.922725 | 0.917765 | 0.917765 | 0.917243 | 0 | 0.027509 | 0.185272 | 11,556 | 375 | 79 | 30.816 | 0.786192 | 0.016615 | 0 | 0.803636 | 0 | 0 | 0.148517 | 0.069989 | 0 | 0 | 0 | 0 | 0.094545 | 1 | 0.050909 | false | 0 | 0.018182 | 0 | 0.069091 | 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 |
78efd2a9c45a07aa9ba35393c992dcf9d2807b47 | 242,254 | py | Python | instruction_docs/aarch64.py | ehennenfent/binja_explain_instruction | 8fbd8ab592f0dbcd532c30889e33c9da56d777a5 | [
"Apache-2.0"
] | 15 | 2017-07-03T16:27:32.000Z | 2022-03-24T21:17:41.000Z | instruction_docs/aarch64.py | ehennenfent/binja_explain_instruction | 8fbd8ab592f0dbcd532c30889e33c9da56d777a5 | [
"Apache-2.0"
] | 2 | 2019-07-04T20:14:02.000Z | 2021-11-10T16:05:38.000Z | instruction_docs/aarch64.py | ehennenfent/binja_explain_instruction | 8fbd8ab592f0dbcd532c30889e33c9da56d777a5 | [
"Apache-2.0"
] | 2 | 2018-06-19T22:20:51.000Z | 2020-05-22T22:14:27.000Z | instrs = {
"ABS": [
{
"instr": "ABS",
"link": "http://www.keil.com/support/man/docs/armclang_asm/armclang_asm_pge1427897440142.htm",
"short": "Absolute value (vector)",
},
{
"instr": "ABS",
"link": "http://www.keil.com/support/man/d... | 37.628767 | 137 | 0.543161 | 24,121 | 242,254 | 5.332532 | 0.072178 | 0.16967 | 0.08646 | 0.1179 | 0.802598 | 0.772153 | 0.748076 | 0.729674 | 0.715726 | 0.705075 | 0 | 0.079464 | 0.302406 | 242,254 | 6,437 | 138 | 37.634612 | 0.681659 | 0 | 0 | 0.339755 | 0 | 0 | 0.61542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
78fbdde2b7eaf76df2cb6bacb5558a0a3e6cfc9f | 112 | py | Python | datareaders/__init__.py | laddie132/LW-PT | 28b469ba68a5d4fba68b992cff5372e63ec2ed42 | [
"MIT"
] | 9 | 2020-08-20T18:15:43.000Z | 2022-02-10T02:54:30.000Z | datareaders/__init__.py | laddie132/LW-PT | 28b469ba68a5d4fba68b992cff5372e63ec2ed42 | [
"MIT"
] | 1 | 2021-11-19T01:29:47.000Z | 2021-11-19T09:58:38.000Z | datareaders/__init__.py | laddie132/LW-PT | 28b469ba68a5d4fba68b992cff5372e63ec2ed42 | [
"MIT"
] | 3 | 2021-05-29T02:11:34.000Z | 2021-12-14T15:43:22.000Z | from .pt_reader import PTReader
from .cls_reader import DocClsReader
from .pt_cls_reader import DocRepClsReader
| 28 | 42 | 0.866071 | 16 | 112 | 5.8125 | 0.5 | 0.387097 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 112 | 3 | 43 | 37.333333 | 0.93 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
60068a301b214f0d932e9505c2120ab093a03aef | 53,139 | py | Python | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/ocelot/calculators/calc_global.py | SiliconLabs/Gecko_SDK | 991121c706578c9a2135b6f75cc88856e8c64bdc | [
"Zlib"
] | 82 | 2016-06-29T17:24:43.000Z | 2021-04-16T06:49:17.000Z | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/ocelot/calculators/calc_global.py | SiliconLabs/Gecko_SDK | 991121c706578c9a2135b6f75cc88856e8c64bdc | [
"Zlib"
] | 2 | 2017-02-13T10:07:17.000Z | 2017-03-22T21:28:26.000Z | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/ocelot/calculators/calc_global.py | SiliconLabs/Gecko_SDK | 991121c706578c9a2135b6f75cc88856e8c64bdc | [
"Zlib"
] | 56 | 2016-08-02T10:50:50.000Z | 2021-07-19T08:57:34.000Z | from pyradioconfig.parts.lynx.calculators.calc_global import CALC_Global_lynx
from pycalcmodel.core.variable import ModelVariableFormat
from py_2_and_3_compatibility import *
class CALC_Global_ocelot(CALC_Global_lynx):
def buildVariables(self, model):
# Build variables from the Lynx calculations
... | 85.158654 | 159 | 0.759517 | 4,996 | 53,139 | 7.945156 | 0.158927 | 0.276566 | 0.302313 | 0.489898 | 0.801758 | 0.784829 | 0.757193 | 0.705648 | 0 | 0 | 0 | 0.011751 | 0.131993 | 53,139 | 623 | 160 | 85.295345 | 0.848824 | 0.044374 | 0 | 0 | 0 | 0 | 0.252458 | 0.234193 | 0 | 0 | 0 | 0.001605 | 0 | 1 | 0.033771 | false | 0.007505 | 0.005629 | 0 | 0.041276 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6043c699f6e9c2134edbe452b806e6408cbce9ae | 67,183 | py | Python | tests/test_writing.py | jvanasco/gaq_hub | bd3e476de82dc9c53d228265fd00c4cb488273b0 | [
"MIT"
] | 1 | 2017-12-06T16:13:03.000Z | 2017-12-06T16:13:03.000Z | tests/test_writing.py | jvanasco/gaq_hub | bd3e476de82dc9c53d228265fd00c4cb488273b0 | [
"MIT"
] | 1 | 2017-12-06T16:31:46.000Z | 2017-12-06T16:31:46.000Z | tests/test_writing.py | jvanasco/g_analytics_writer | bd3e476de82dc9c53d228265fd00c4cb488273b0 | [
"MIT"
] | 1 | 2017-12-06T16:17:04.000Z | 2017-12-06T16:17:04.000Z | # -*- coding: utf-8 -*-
from __future__ import print_function
"""
NOTE FOR TESTS
Instead of "Green" we use a unicode string "Greeñ".
This means the string in Python2 must be marked with a u, and for testing concerns
it stays with a u prefix for Python3
note that we strings are still prefixed with `u` for Python2
""... | 42.386751 | 317 | 0.662013 | 8,521 | 67,183 | 4.983335 | 0.042131 | 0.057933 | 0.022679 | 0.029013 | 0.91555 | 0.881049 | 0.857782 | 0.838189 | 0.818666 | 0.799496 | 0 | 0.033037 | 0.129988 | 67,183 | 1,584 | 318 | 42.41351 | 0.693447 | 0.033208 | 0 | 0.742879 | 0 | 0.132684 | 0.619151 | 0.397311 | 0 | 0 | 0 | 0 | 0.029235 | 1 | 0.013493 | false | 0.00075 | 0.006747 | 0 | 0.125937 | 0.01949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
60cf76886be7b13ab5f33dc25efa56d88cd0738e | 2,826 | py | Python | data/transcoder_evaluation_gfg/python/SORT_ARRAY_CONTAIN_1_N_VALUES.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 241 | 2021-07-20T08:35:20.000Z | 2022-03-31T02:39:08.000Z | data/transcoder_evaluation_gfg/python/SORT_ARRAY_CONTAIN_1_N_VALUES.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 49 | 2021-07-22T23:18:42.000Z | 2022-03-24T09:15:26.000Z | data/transcoder_evaluation_gfg/python/SORT_ARRAY_CONTAIN_1_N_VALUES.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 71 | 2021-07-21T05:17:52.000Z | 2022-03-29T23:49:28.000Z | # Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( arr , n ) :
for i in range ( n ) :
arr [ i ] = i + 1
#TOFILL
if __name__ == '__main__':
param = ... | 62.8 | 210 | 0.445506 | 624 | 2,826 | 1.980769 | 0.213141 | 0.110032 | 0.131068 | 0.148867 | 0.705502 | 0.705502 | 0.705502 | 0.705502 | 0.705502 | 0.705502 | 0 | 0.423283 | 0.273531 | 2,826 | 45 | 211 | 62.8 | 0.178763 | 0.065464 | 0 | 0.571429 | 0 | 0 | 0.009112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0 | 0 | 0.028571 | 0.028571 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
71606e587bf852e4ae0851f183854b227a65a6ab | 182 | py | Python | Day11/Snake_Case_to_Pascal_Case.py | tushartrip1010/100_days_code_py | ee74b429e98cdd8bdf8661cf987da67c9fee5a3e | [
"Apache-2.0"
] | null | null | null | Day11/Snake_Case_to_Pascal_Case.py | tushartrip1010/100_days_code_py | ee74b429e98cdd8bdf8661cf987da67c9fee5a3e | [
"Apache-2.0"
] | null | null | null | Day11/Snake_Case_to_Pascal_Case.py | tushartrip1010/100_days_code_py | ee74b429e98cdd8bdf8661cf987da67c9fee5a3e | [
"Apache-2.0"
] | null | null | null | def Snake_to_Pascal(Test_String):
return Test_String.replace("_", " ").title().replace(" ", "")
Test_String = input("Enter a String: ")
print(Snake_to_Pascal(Test_String)) | 30.333333 | 66 | 0.686813 | 24 | 182 | 4.833333 | 0.541667 | 0.344828 | 0.224138 | 0.293103 | 0.396552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137363 | 182 | 6 | 67 | 30.333333 | 0.738854 | 0 | 0 | 0 | 0 | 0 | 0.106742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0.25 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 7 |
71ba5a618ac1b42b4509c007fc158193b608c4a2 | 4,471 | py | Python | code/test_fri.py | elimsc/stark-anatomy | 5e316e685a1f87cef1d26590bf1584f6523dc603 | [
"Apache-2.0"
] | null | null | null | code/test_fri.py | elimsc/stark-anatomy | 5e316e685a1f87cef1d26590bf1584f6523dc603 | [
"Apache-2.0"
] | null | null | null | code/test_fri.py | elimsc/stark-anatomy | 5e316e685a1f87cef1d26590bf1584f6523dc603 | [
"Apache-2.0"
] | null | null | null | from pyspark import SparkConf, SparkContext
from base.algebra import *
from base.fri import *
from time import time
from rdd.rdd_fri import RddFri
def test_fri():
field = Field.main()
degree = 2**10 - 1 # 18
expansion_factor = 4
num_colinearity_tests = 17
initial_codeword_length = (degree + 1) ... | 27.09697 | 86 | 0.630731 | 533 | 4,471 | 5.114447 | 0.196998 | 0.154072 | 0.10785 | 0.039618 | 0.82942 | 0.809978 | 0.79237 | 0.79237 | 0.79237 | 0.79237 | 0 | 0.012335 | 0.256542 | 4,471 | 164 | 87 | 27.262195 | 0.807762 | 0.018564 | 0 | 0.785714 | 0 | 0 | 0.132588 | 0.004792 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.015873 | false | 0 | 0.039683 | 0 | 0.071429 | 0.126984 | 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 |
71d9c6580d9dbbf740f4cf1a0ab6cb6dae3b7e05 | 16,895 | py | Python | tests/test_search.py | mark-boer/aws-sat-api-py | 1dacc502a8e6da1149a24c2f1eff999cefe6adce | [
"BSD-3-Clause"
] | 45 | 2018-01-26T08:21:36.000Z | 2021-07-30T13:37:35.000Z | tests/test_search.py | mark-boer/aws-sat-api-py | 1dacc502a8e6da1149a24c2f1eff999cefe6adce | [
"BSD-3-Clause"
] | 10 | 2018-02-05T22:36:03.000Z | 2020-10-07T04:21:49.000Z | tests/test_search.py | mark-boer/aws-sat-api-py | 1dacc502a8e6da1149a24c2f1eff999cefe6adce | [
"BSD-3-Clause"
] | 11 | 2018-04-10T21:14:40.000Z | 2020-05-26T06:56:22.000Z | """tests aws_sat_api.search"""
import os
import json
from io import BytesIO
from datetime import date, datetime
import pytest
from mock import patch
from aws_sat_api import search
from botocore.exceptions import ClientError
@patch('aws_sat_api.aws.get_object')
def test_get_s2_info_valid(get_object):
"""Should ... | 33.257874 | 163 | 0.632258 | 2,176 | 16,895 | 4.626379 | 0.119485 | 0.03576 | 0.018774 | 0.043707 | 0.887951 | 0.862819 | 0.858647 | 0.837886 | 0.811165 | 0.793484 | 0 | 0.17709 | 0.21823 | 16,895 | 507 | 164 | 33.323471 | 0.5851 | 0.026931 | 0 | 0.761155 | 0 | 0.047244 | 0.391591 | 0.144219 | 0 | 0 | 0 | 0 | 0.081365 | 1 | 0.041995 | false | 0 | 0.020997 | 0 | 0.062992 | 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 |
e09b1ecb832e93a4a40b139f4b69ff42b2762491 | 10,758 | py | Python | monk/tf_keras_1/finetune/level_5_state_base.py | gstearmit/monk_v1 | 89184ae27dc6d134620034d5b12aa86473ea47ba | [
"Apache-2.0"
] | null | null | null | monk/tf_keras_1/finetune/level_5_state_base.py | gstearmit/monk_v1 | 89184ae27dc6d134620034d5b12aa86473ea47ba | [
"Apache-2.0"
] | null | null | null | monk/tf_keras_1/finetune/level_5_state_base.py | gstearmit/monk_v1 | 89184ae27dc6d134620034d5b12aa86473ea47ba | [
"Apache-2.0"
] | 1 | 2020-10-07T12:57:44.000Z | 2020-10-07T12:57:44.000Z | from tf_keras_1.finetune.imports import *
from system.imports import *
from tf_keras_1.finetune.level_4_evaluation_base import finetune_evaluation
class finetune_state(finetune_evaluation):
@accepts("self", verbose=int, post_trace=True)
@TraceFunction(trace_args=True, trace_rv=True)
def __init__(self, ver... | 48.459459 | 147 | 0.549916 | 1,121 | 10,758 | 4.983051 | 0.120428 | 0.19155 | 0.240602 | 0.066953 | 0.844253 | 0.818117 | 0.812388 | 0.796455 | 0.788937 | 0.788937 | 0 | 0.005189 | 0.211749 | 10,758 | 222 | 148 | 48.459459 | 0.653538 | 0 | 0 | 0.792135 | 0 | 0 | 0.245762 | 0.026833 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02809 | false | 0 | 0.016854 | 0 | 0.050562 | 0.044944 | 0 | 0 | 0 | null | 0 | 1 | 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 | 8 |
e0bbef0911147a8f2e49545c1e1789047eb9c19d | 59,968 | py | Python | code/python/StocksAPIforDigitalPortals/v3/fds/sdk/StocksAPIforDigitalPortals/model/stock_notation_screener_search_meta.py | factset/enterprise-sdk | 3fd4d1360756c515c9737a0c9a992c7451d7de7e | [
"Apache-2.0"
] | 6 | 2022-02-07T16:34:18.000Z | 2022-03-30T08:04:57.000Z | code/python/StocksAPIforDigitalPortals/v3/fds/sdk/StocksAPIforDigitalPortals/model/stock_notation_screener_search_meta.py | factset/enterprise-sdk | 3fd4d1360756c515c9737a0c9a992c7451d7de7e | [
"Apache-2.0"
] | 2 | 2022-02-07T05:25:57.000Z | 2022-03-07T14:18:04.000Z | code/python/StocksAPIforDigitalPortals/v3/fds/sdk/StocksAPIforDigitalPortals/model/stock_notation_screener_search_meta.py | factset/enterprise-sdk | 3fd4d1360756c515c9737a0c9a992c7451d7de7e | [
"Apache-2.0"
] | null | null | null | """
Stocks API For Digital Portals
The stocks API features a screener to search for equity instruments based on stock-specific parameters. Parameters for up to three fiscal years might now be used in one request; data is available for the ten most recent completed fiscal years. Estimates are available for the... | 94.437795 | 1,585 | 0.747132 | 4,512 | 59,968 | 9.861924 | 0.096188 | 0.062813 | 0.046925 | 0.030564 | 0.922242 | 0.917523 | 0.910219 | 0.892285 | 0.892285 | 0.888285 | 0 | 0.005016 | 0.16222 | 59,968 | 634 | 1,586 | 94.586751 | 0.880673 | 0.137056 | 0 | 0.125773 | 0 | 0 | 0.768713 | 0.740805 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012371 | false | 0.004124 | 0.020619 | 0.002062 | 0.057732 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
e0c8afd5e48abe7618fa36eb4fc3677697ffc7d0 | 5,952 | py | Python | hyperion/torch/narchs/fcnet.py | hyperion-ml/hyperion | c4c9eee0acab1ba572843373245da12d00dfffaa | [
"Apache-2.0"
] | 14 | 2021-12-19T04:24:15.000Z | 2022-03-18T03:24:04.000Z | hyperion/torch/narchs/fcnet.py | hyperion-ml/hyperion | c4c9eee0acab1ba572843373245da12d00dfffaa | [
"Apache-2.0"
] | null | null | null | hyperion/torch/narchs/fcnet.py | hyperion-ml/hyperion | c4c9eee0acab1ba572843373245da12d00dfffaa | [
"Apache-2.0"
] | 5 | 2021-12-14T20:41:27.000Z | 2022-02-24T14:18:11.000Z | """
Copyright 2019 Johns Hopkins University (Author: Jesus Villalba)
Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""
import torch.nn as nn
from torch.nn import Linear, BatchNorm1d, Dropout
from ..layers import ActivationFactory as AF
from ..layers import NormLayer1dFactory as NLF
from .net_arch import... | 26.810811 | 69 | 0.53377 | 725 | 5,952 | 4.073103 | 0.12 | 0.064003 | 0.048425 | 0.030477 | 0.81104 | 0.802574 | 0.802574 | 0.802574 | 0.802574 | 0.802574 | 0 | 0.007744 | 0.3708 | 5,952 | 221 | 70 | 26.932127 | 0.780774 | 0.020497 | 0 | 0.794286 | 0 | 0 | 0.039003 | 0 | 0 | 0 | 0 | 0 | 0.011429 | 1 | 0.034286 | false | 0 | 0.034286 | 0 | 0.108571 | 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 |
e0ee7a1584e96c64fd9c3457f3ddf9a0a2b555f0 | 20,775 | py | Python | get_pattern.py | ono7/security_and_bug_hunting | 972c79fbae00f1490a9e7fc597ddb8b1f624ecd4 | [
"Unlicense"
] | null | null | null | get_pattern.py | ono7/security_and_bug_hunting | 972c79fbae00f1490a9e7fc597ddb8b1f624ecd4 | [
"Unlicense"
] | null | null | null | get_pattern.py | ono7/security_and_bug_hunting | 972c79fbae00f1490a9e7fc597ddb8b1f624ecd4 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
"""help me find my buffer overflow offset!
Sat Sep 21 3:47:58 AM 2016
ono7
"""
import sys
if len(sys.argv) != 2:
print("feed me a number: pc 200")
sys.exit()
if int(sys.argv[1]) >= 20280:
print("only 20,280 supported :(")
# Pattern of 20280 bytes :
# ------------------------
# ... | 629.545455 | 20,292 | 0.990277 | 78 | 20,775 | 263.730769 | 0.666667 | 0.001021 | 0.000972 | 0.001069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.328482 | 0.004573 | 20,775 | 32 | 20,293 | 649.21875 | 0.666248 | 0.007268 | 0 | 0 | 0 | 0 | 0.987872 | 0.983845 | 0 | 1 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0.083333 | 0.25 | 0.333333 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
46033dd9cdd0b665d5ab5ab48fe7e15abe6790e0 | 4,148 | py | Python | hdvw/models/prevggnet.py | shaoshitong/hdvw | fbb39da9ad8a765f74225eec7e9614978c740dde | [
"Apache-2.0"
] | 2 | 2022-03-26T09:08:43.000Z | 2022-03-26T09:09:27.000Z | hdvw/models/prevggnet.py | shaoshitong/hdvw | fbb39da9ad8a765f74225eec7e9614978c740dde | [
"Apache-2.0"
] | null | null | null | hdvw/models/prevggnet.py | shaoshitong/hdvw | fbb39da9ad8a765f74225eec7e9614978c740dde | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import hdvw.models.vggnet as vgg
import hdvw.models.prevggnet_dnn_block as prevggnet_dnn
import hdvw.models.prevggnet_mcdo_block as prevggnet_mcdo
# Deterministic
def dnn_11(num_classes=10, name="prevgg_dnn_11", **block_kwargs):
return vgg.VGGNet(prevggnet_dnn.BasicBlock, [1, 1... | 40.666667 | 84 | 0.646818 | 607 | 4,148 | 4.133443 | 0.057661 | 0.191311 | 0.028697 | 0.102033 | 0.911917 | 0.911917 | 0.911917 | 0.731766 | 0.703069 | 0.703069 | 0 | 0.066998 | 0.222758 | 4,148 | 101 | 85 | 41.069307 | 0.711228 | 0.017599 | 0 | 0.655738 | 0 | 0 | 0.072727 | 0.046192 | 0 | 0 | 0 | 0 | 0 | 1 | 0.262295 | false | 0 | 0.081967 | 0.262295 | 0.606557 | 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 | 1 | 1 | 0 | 0 | 9 |
1cc4d6a5d08470ef40566200cd8516ba1938f9e0 | 204 | py | Python | main.py | Developerzakir/Square-code-with-python | b4bb70afee0afcfc963479a68bc515e211ec0995 | [
"Apache-2.0"
] | null | null | null | main.py | Developerzakir/Square-code-with-python | b4bb70afee0afcfc963479a68bc515e211ec0995 | [
"Apache-2.0"
] | null | null | null | main.py | Developerzakir/Square-code-with-python | b4bb70afee0afcfc963479a68bc515e211ec0995 | [
"Apache-2.0"
] | null | null | null | import turtle
turtle.shape("turtle")
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.exitonclick()
| 14.571429 | 22 | 0.77451 | 31 | 204 | 5.096774 | 0.258065 | 0.329114 | 0.405063 | 0.556962 | 0.746835 | 0.746835 | 0.746835 | 0.746835 | 0.746835 | 0.746835 | 0 | 0.105263 | 0.068627 | 204 | 13 | 23 | 15.692308 | 0.726316 | 0 | 0 | 0.727273 | 0 | 0 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
1ce8190ddb0f49eac30b0fca4171e88e9db69fc1 | 280 | py | Python | dronekit/test/unit/test_api.py | hiradg/dronekit-python | bff8294216ca180874cb30651f88ed9eb36eb7a5 | [
"Apache-2.0"
] | 1,066 | 2015-07-27T21:04:01.000Z | 2022-03-26T15:55:14.000Z | dronekit/test/unit/test_api.py | hiradg/dronekit-python | bff8294216ca180874cb30651f88ed9eb36eb7a5 | [
"Apache-2.0"
] | 849 | 2015-07-27T19:10:24.000Z | 2022-03-28T20:45:03.000Z | dronekit/test/unit/test_api.py | hiradg/dronekit-python | bff8294216ca180874cb30651f88ed9eb36eb7a5 | [
"Apache-2.0"
] | 1,240 | 2015-07-27T22:18:47.000Z | 2022-03-26T11:45:14.000Z | from dronekit import VehicleMode
from nose.tools import assert_equals, assert_not_equals
def test_vehicle_mode_eq():
assert_equals(VehicleMode('GUIDED'), VehicleMode('GUIDED'))
def test_vehicle_mode_neq():
assert_not_equals(VehicleMode('AUTO'), VehicleMode('GUIDED'))
| 25.454545 | 65 | 0.789286 | 36 | 280 | 5.805556 | 0.472222 | 0.244019 | 0.143541 | 0.172249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103571 | 280 | 10 | 66 | 28 | 0.832669 | 0 | 0 | 0 | 0 | 0 | 0.078571 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
e80e3d27432b76cec8a1bf0a0f7d55c762c72302 | 2,215 | py | Python | vscode/extensions/magicstack.magicpython-1.0.12/test/strings/format7.py | nlimpid/dotfiles | b78d08707992f742f984f556fa58349c2ccd095d | [
"MIT"
] | null | null | null | vscode/extensions/magicstack.magicpython-1.0.12/test/strings/format7.py | nlimpid/dotfiles | b78d08707992f742f984f556fa58349c2ccd095d | [
"MIT"
] | 4 | 2019-06-16T09:52:03.000Z | 2019-08-18T02:11:35.000Z | vscode/extensions/magicstack.magicpython-1.0.12/test/strings/format7.py | nlimpid/dotfiles | b78d08707992f742f984f556fa58349c2ccd095d | [
"MIT"
] | null | null | null | # XXX we have to highlight '% o' here, as it is a valid python
# format spec. Otherwise, it would be hard to spot an error in
# the code below.
a = '12% of %s' % ('name',)
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
: comment.line.number-sign.py... | 63.285714 | 110 | 0.680361 | 265 | 2,215 | 5.686792 | 0.211321 | 0.214997 | 0.274718 | 0.143331 | 0.895156 | 0.803583 | 0.720637 | 0.694758 | 0.661579 | 0.661579 | 0 | 0.00229 | 0.211287 | 2,215 | 34 | 111 | 65.147059 | 0.860332 | 0.197291 | 0 | 0.32 | 0 | 0.16 | 0.009034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 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 |
1c292c1ddbaa86af0ce56be66ff1bb89d5d2ab2d | 1,106 | py | Python | Snippets/Scripts/greek letters.py | martin-azpillaga/Matex | ed1d6ee40dbb7c15eb27e5296fbd61feeb13fc58 | [
"Apache-2.0"
] | null | null | null | Snippets/Scripts/greek letters.py | martin-azpillaga/Matex | ed1d6ee40dbb7c15eb27e5296fbd61feeb13fc58 | [
"Apache-2.0"
] | null | null | null | Snippets/Scripts/greek letters.py | martin-azpillaga/Matex | ed1d6ee40dbb7c15eb27e5296fbd61feeb13fc58 | [
"Apache-2.0"
] | null | null | null | import os
def main():
lowercase = ["alpha","beta","gamma","delta","epsilon","zeta","eta","theta",
"kappa","iota","lambda","mu","nu","xi","omicron","pi","rho","sigma","tau","upsilon",
"phi","chi","psi","omega"]
uppercase = ["Alpha","Beta","Gamma","Delta","Epsilon","Zeta","Eta"... | 48.086957 | 198 | 0.542495 | 140 | 1,106 | 4.285714 | 0.357143 | 0.026667 | 0.06 | 0.066667 | 0.846667 | 0.846667 | 0.846667 | 0.846667 | 0.846667 | 0.846667 | 0 | 0 | 0.177215 | 1,106 | 22 | 199 | 50.272727 | 0.659341 | 0 | 0 | 0.235294 | 0 | 0.235294 | 0.503617 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.117647 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1c5407f611892fac8d12586ad8cf8bdc6f2a3288 | 48 | py | Python | pytorch/scripts/libs/autox/utils/__init__.py | Lucklyric/DeepInSAR | 10e42af886bf1902d300127abbd07ef0cb54bf36 | [
"MIT"
] | 8 | 2020-10-17T22:05:54.000Z | 2022-02-24T08:27:59.000Z | pytorch/scripts/libs/autox/utils/__init__.py | akls332/DeepInSAR | 02e9b6073d3b3e1486c1f1bb46dcbe26d96525b4 | [
"MIT"
] | 16 | 2020-10-20T15:53:34.000Z | 2022-03-12T00:50:11.000Z | pytorch/scripts/libs/autox/utils/__init__.py | akls332/DeepInSAR | 02e9b6073d3b3e1486c1f1bb46dcbe26d96525b4 | [
"MIT"
] | 7 | 2020-10-17T22:06:49.000Z | 2022-02-22T10:50:58.000Z | from .utils import *
from .torch_utils import *
| 16 | 26 | 0.75 | 7 | 48 | 5 | 0.571429 | 0.628571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 48 | 2 | 27 | 24 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
98c359a16b441cc5499df53339b32ac6695426a4 | 587 | py | Python | dbas/tests/test_dbas.py | tbsschroeder/dbas | 9c86eccde65cd64bc5719573b3b8449d8f333e08 | [
"MIT"
] | 23 | 2017-05-18T13:33:51.000Z | 2021-12-26T18:04:09.000Z | dbas/tests/test_dbas.py | tbsschroeder/dbas | 9c86eccde65cd64bc5719573b3b8449d8f333e08 | [
"MIT"
] | 8 | 2019-12-26T17:19:44.000Z | 2020-05-28T15:38:31.000Z | dbas/tests/test_dbas.py | tbsschroeder/dbas | 9c86eccde65cd64bc5719573b3b8449d8f333e08 | [
"MIT"
] | 7 | 2017-09-27T11:15:42.000Z | 2021-12-26T18:12:38.000Z | from dbas import _environs_to_keys
from nose.tools import assert_equal
def test_parse_env_name():
assert_equal("test", _environs_to_keys("TEST", prefix=""))
assert_equal("test", _environs_to_keys("TEST", prefix=""))
assert_equal("foo.bar", _environs_to_keys("FOO_BAR", prefix=""))
assert_equal("foo.bar... | 45.153846 | 76 | 0.729131 | 85 | 587 | 4.423529 | 0.223529 | 0.159574 | 0.297872 | 0.265957 | 0.779255 | 0.726064 | 0.726064 | 0.726064 | 0.726064 | 0.726064 | 0 | 0 | 0.103918 | 587 | 12 | 77 | 48.916667 | 0.714829 | 0 | 0 | 0.2 | 0 | 0 | 0.173765 | 0 | 0 | 0 | 0 | 0 | 0.8 | 1 | 0.1 | true | 0 | 0.2 | 0 | 0.3 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
c709d3c98788955796fd230ff9fed3e80082a547 | 116 | py | Python | compiler/testdata/expected/python/actual_base/__init__.py | ariasheets-wk/frugal | 81d41af7fb573c1f97afea99a1b4dfa6ccae29e8 | [
"Apache-2.0"
] | 144 | 2017-08-17T15:51:58.000Z | 2022-01-14T21:36:55.000Z | compiler/testdata/expected/python/actual_base/__init__.py | ariasheets-wk/frugal | 81d41af7fb573c1f97afea99a1b4dfa6ccae29e8 | [
"Apache-2.0"
] | 930 | 2017-08-17T17:53:30.000Z | 2022-03-28T14:04:49.000Z | compiler/testdata/expected/python/actual_base/__init__.py | ariasheets-wk/frugal | 81d41af7fb573c1f97afea99a1b4dfa6ccae29e8 | [
"Apache-2.0"
] | 77 | 2017-08-17T15:54:31.000Z | 2021-12-25T15:18:34.000Z | from .f_BaseFoo import Client as FBaseFooClient
from .f_BaseFoo import Iface as FBaseFooIface
from .ttypes import *
| 29 | 47 | 0.827586 | 17 | 116 | 5.529412 | 0.588235 | 0.106383 | 0.255319 | 0.382979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 116 | 3 | 48 | 38.666667 | 0.94 | 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 |
c7254db1086be3265c05c37163bbf21458215534 | 94 | py | Python | ontology_learning/utils/sentence_tokenize.py | jromero132/bachelor_thesis_code | 1eea2876abdece9628d6fdec115e93bbf2722e99 | [
"MIT"
] | null | null | null | ontology_learning/utils/sentence_tokenize.py | jromero132/bachelor_thesis_code | 1eea2876abdece9628d6fdec115e93bbf2722e99 | [
"MIT"
] | null | null | null | ontology_learning/utils/sentence_tokenize.py | jromero132/bachelor_thesis_code | 1eea2876abdece9628d6fdec115e93bbf2722e99 | [
"MIT"
] | null | null | null | from nltk import tokenize
def sentence_tokenize(text):
return tokenize.sent_tokenize(text)
| 15.666667 | 36 | 0.819149 | 13 | 94 | 5.769231 | 0.692308 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117021 | 94 | 5 | 37 | 18.8 | 0.903614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 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 |
c7710d7a34bcddc4a51715300dd151aadd95dbb2 | 4,392 | py | Python | tests/test_base_templates.py | aHugues/projects-boilerplate | f3eb886e1b79c4b35fc252451d6e1c8c426db398 | [
"Apache-2.0"
] | null | null | null | tests/test_base_templates.py | aHugues/projects-boilerplate | f3eb886e1b79c4b35fc252451d6e1c8c426db398 | [
"Apache-2.0"
] | 13 | 2019-11-23T15:55:35.000Z | 2020-03-07T09:22:25.000Z | tests/test_base_templates.py | aHugues/projects-boilerplate | f3eb886e1b79c4b35fc252451d6e1c8c426db398 | [
"Apache-2.0"
] | null | null | null | # pylint: disable=missing-function-docstring,protected-access
"""
Test the base_template methods
"""
from pathlib import Path
from projects_boilerplate import base_template
from projects_boilerplate.structs import License
def test_base_file_template_1(tmp_path):
class MockBaseTemplate(base_template.BaseFileTem... | 32.533333 | 99 | 0.68898 | 544 | 4,392 | 5.338235 | 0.169118 | 0.067493 | 0.046488 | 0.052342 | 0.838499 | 0.777548 | 0.757231 | 0.734848 | 0.715909 | 0.715909 | 0 | 0.020699 | 0.18602 | 4,392 | 134 | 100 | 32.776119 | 0.78993 | 0.020719 | 0 | 0.72449 | 0 | 0.040816 | 0.095271 | 0.02935 | 0 | 0 | 0 | 0 | 0.153061 | 1 | 0.153061 | false | 0.020408 | 0.030612 | 0.030612 | 0.397959 | 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 |
c798bbebbe2d4de27ebe1d35459f01283ec4d3b9 | 1,709 | py | Python | tests/providers/figshare/fixtures.py | west1636/RDM-waterbutler | 6ed22cd52eda8a9665a29615f9b2e623dcae3b29 | [
"Apache-2.0"
] | 65 | 2015-01-23T03:22:04.000Z | 2022-01-11T22:33:19.000Z | tests/providers/figshare/fixtures.py | cslzchen/waterbutler | e4e07727e06885a752c9251e5731f5627f646da3 | [
"Apache-2.0"
] | 300 | 2015-02-16T16:45:02.000Z | 2022-01-31T14:49:07.000Z | tests/providers/figshare/fixtures.py | cslzchen/waterbutler | e4e07727e06885a752c9251e5731f5627f646da3 | [
"Apache-2.0"
] | 76 | 2015-01-20T20:45:17.000Z | 2021-07-30T13:18:10.000Z | import os
import json
import pytest
@pytest.fixture
def root_provider_fixtures():
with open(os.path.join(os.path.dirname(__file__), 'fixtures/root_provider.json'), 'r') as fp:
return json.load(fp)
@pytest.fixture
def crud_fixtures():
with open(os.path.join(os.path.dirname(__file__), 'fixtures/crud.... | 23.736111 | 97 | 0.653013 | 235 | 1,709 | 4.421277 | 0.131915 | 0.092397 | 0.123195 | 0.107796 | 0.891242 | 0.891242 | 0.891242 | 0.891242 | 0.891242 | 0.891242 | 0 | 0.006006 | 0.220597 | 1,709 | 71 | 98 | 24.070423 | 0.774024 | 0 | 0 | 0.648148 | 0 | 0 | 0.174371 | 0.147455 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | true | 0 | 0.055556 | 0 | 0.351852 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c7b46c176062d58512c8c1401edbe3e36cc008bf | 50,673 | py | Python | infoblox_netmri/api/broker/v2_5_0/report_job_run_broker.py | infobloxopen/infoblox_netmri | aa1c744df7e439dbe163bb9edd165e4e85a9771b | [
"Apache-2.0"
] | 12 | 2016-02-19T12:37:54.000Z | 2022-03-04T20:11:08.000Z | infoblox_netmri/api/broker/v2_5_0/report_job_run_broker.py | infobloxopen/infoblox_netmri | aa1c744df7e439dbe163bb9edd165e4e85a9771b | [
"Apache-2.0"
] | 18 | 2015-11-12T18:37:00.000Z | 2021-05-19T07:59:55.000Z | infoblox_netmri/api/broker/v2_5_0/report_job_run_broker.py | infobloxopen/infoblox_netmri | aa1c744df7e439dbe163bb9edd165e4e85a9771b | [
"Apache-2.0"
] | 18 | 2016-01-07T12:04:34.000Z | 2022-03-31T11:05:41.000Z | from ..broker import Broker
class ReportJobRunBroker(Broker):
controller = "report_job_runs"
def index(self, **kwargs):
"""Lists the available report job runs. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the various ways to query lists, using this meth... | 50.622378 | 601 | 0.60101 | 6,712 | 50,673 | 4.418355 | 0.042908 | 0.075533 | 0.049096 | 0.055031 | 0.936101 | 0.93347 | 0.930638 | 0.925277 | 0.901976 | 0.895434 | 0 | 0.005029 | 0.313303 | 50,673 | 1,000 | 602 | 50.673 | 0.847228 | 0.809188 | 0 | 0 | 0 | 0 | 0.064092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.047619 | 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 |
c7e533460c91c6e40f73e2fefe08f57fc18d0b2a | 5,199 | py | Python | migrations/versions/5fedecc880ff_.py | wanderindev/fyyur | acf3a44ce7fae6b24576a320afd447c0595d76e5 | [
"MIT"
] | null | null | null | migrations/versions/5fedecc880ff_.py | wanderindev/fyyur | acf3a44ce7fae6b24576a320afd447c0595d76e5 | [
"MIT"
] | null | null | null | migrations/versions/5fedecc880ff_.py | wanderindev/fyyur | acf3a44ce7fae6b24576a320afd447c0595d76e5 | [
"MIT"
] | 2 | 2020-07-16T22:02:13.000Z | 2020-11-22T21:16:28.000Z | """empty message
Revision ID: 5fedecc880ff
Revises: aaccfb67a897
Create Date: 2019-11-12 21:29:01.694678
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "5fedecc880ff"
down_revision = "aaccfb67a897"
branch_labels = None
depends_on = None
def upgrade():
# ... | 34.430464 | 79 | 0.575111 | 565 | 5,199 | 5.224779 | 0.153982 | 0.116531 | 0.165989 | 0.210027 | 0.796409 | 0.796409 | 0.780827 | 0.769986 | 0.769986 | 0.756436 | 0 | 0.03236 | 0.268898 | 5,199 | 150 | 80 | 34.66 | 0.744278 | 0.056742 | 0 | 0.719697 | 0 | 0 | 0.10376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015152 | false | 0 | 0.015152 | 0 | 0.030303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1bdc6cf14014afcae85557b2ec5a2b3bf1533604 | 11,908 | py | Python | apps/domain/src/main/core/model_centric/cycles/send_avgrequest.py | tpmmthomas/pygrid-parcel | 4b18407f7b6d88ddbc4e9c500e424e3f0b7bc017 | [
"Apache-2.0"
] | null | null | null | apps/domain/src/main/core/model_centric/cycles/send_avgrequest.py | tpmmthomas/pygrid-parcel | 4b18407f7b6d88ddbc4e9c500e424e3f0b7bc017 | [
"Apache-2.0"
] | null | null | null | apps/domain/src/main/core/model_centric/cycles/send_avgrequest.py | tpmmthomas/pygrid-parcel | 4b18407f7b6d88ddbc4e9c500e424e3f0b7bc017 | [
"Apache-2.0"
] | null | null | null | # %%
# stdlib
import random
from time import time,sleep
# third party
from jose import jws
from jose.constants import ALGORITHMS
from jwcrypto.jwk import JWK
import requests
from requests import Session
import json
from ..models import model_manager
import base64
PARCEL_CLIENT_ID = "REPLACE_ME"
PARCEL_APP_ID = "REPLA... | 28.420048 | 140 | 0.533423 | 1,208 | 11,908 | 5.114238 | 0.181291 | 0.016996 | 0.016834 | 0.018129 | 0.815312 | 0.796536 | 0.796536 | 0.796536 | 0.784234 | 0.774684 | 0 | 0.014756 | 0.328435 | 11,908 | 419 | 141 | 28.420048 | 0.757784 | 0.037958 | 0 | 0.725146 | 0 | 0 | 0.198217 | 0.05506 | 0 | 0 | 0 | 0 | 0.023392 | 1 | 0.017544 | false | 0.011696 | 0.02924 | 0 | 0.070175 | 0.020468 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.