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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13da1d4f70aaca3db046cf8ee091cdd0130ab8fb | 11,412 | py | Python | test.py | ShamansCoding/simple_database | a342496c545254f85ed97ed1bf79a07e8ecf7ebf | [
"MIT"
] | null | null | null | test.py | ShamansCoding/simple_database | a342496c545254f85ed97ed1bf79a07e8ecf7ebf | [
"MIT"
] | null | null | null | test.py | ShamansCoding/simple_database | a342496c545254f85ed97ed1bf79a07e8ecf7ebf | [
"MIT"
] | null | null | null | import sys
import unittest
try:
from StringIO import StringIO
except ModuleNotFoundError:
from io import StringIO
try:
from unittest.mock import patch
except ImportError:
from mock import patch
from data_base import DataBase, call_method, main, HELP
class MockForTest(object):
def some_method(se... | 30.513369 | 78 | 0.616018 | 1,253 | 11,412 | 5.357542 | 0.078212 | 0.216297 | 0.141516 | 0.201102 | 0.883361 | 0.864591 | 0.854164 | 0.847162 | 0.829584 | 0.796067 | 0 | 0.018714 | 0.246144 | 11,412 | 373 | 79 | 30.595174 | 0.761595 | 0 | 0 | 0.660232 | 0 | 0 | 0.056344 | 0.00368 | 0 | 0 | 0 | 0 | 0.250965 | 1 | 0.127413 | false | 0 | 0.030888 | 0.003861 | 0.177606 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
13db9c0d5b3894c08c7d618e08b4abc5b6674e99 | 26,760 | py | Python | egret/model_library/transmission/tests/test_tx_utils.py | barguel/Egret | 2df021d08ca4c1722a7b16eab3f512ba0e7c6a1d | [
"BSD-3-Clause"
] | null | null | null | egret/model_library/transmission/tests/test_tx_utils.py | barguel/Egret | 2df021d08ca4c1722a7b16eab3f512ba0e7c6a1d | [
"BSD-3-Clause"
] | null | null | null | egret/model_library/transmission/tests/test_tx_utils.py | barguel/Egret | 2df021d08ca4c1722a7b16eab3f512ba0e7c6a1d | [
"BSD-3-Clause"
] | 1 | 2021-08-18T16:44:20.000Z | 2021-08-18T16:44:20.000Z | import unittest
from egret.model_library.transmission import tx_utils
import logging
import copy
def _example_quadratic(p):
return 0.05 * p ** 2 + p + 3
def example_pw_curve():
curve = dict()
curve['data_type'] = 'cost_curve'
curve['cost_curve_type'] = 'piecewise'
curve['values'] = [(10, _exampl... | 58.173913 | 202 | 0.403251 | 2,165 | 26,760 | 4.617552 | 0.06836 | 0.118035 | 0.102031 | 0.082825 | 0.927078 | 0.913574 | 0.903971 | 0.884765 | 0.879964 | 0.86676 | 0 | 0.029279 | 0.529036 | 26,760 | 459 | 203 | 58.300654 | 0.763945 | 0.003774 | 0 | 0.8 | 0 | 0.009639 | 0.064195 | 0.014783 | 0 | 0 | 0 | 0 | 0.151807 | 1 | 0.077108 | false | 0 | 0.009639 | 0.00241 | 0.096386 | 0.028916 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
13ee560085ba5c852677a29b3babe39e4385de9c | 876 | py | Python | models/diffusion_fn.py | xuanqing94/NeuralSDE | f3511799cfc9c3d6b95ff9bcb07563df88715e0c | [
"MIT"
] | 5 | 2020-06-28T07:15:35.000Z | 2022-01-20T01:52:31.000Z | models/diffusion_fn.py | xuanqing94/NeuralSDE | f3511799cfc9c3d6b95ff9bcb07563df88715e0c | [
"MIT"
] | null | null | null | models/diffusion_fn.py | xuanqing94/NeuralSDE | f3511799cfc9c3d6b95ff9bcb07563df88715e0c | [
"MIT"
] | null | null | null | # Different noise types
# TODO implement jump-duffusion noises
import torch
import torch.nn as nn
class MultiplicativeNoise(nn.Module):
def __init__(self, sigma):
super().__init__()
self.register_buffer("sigma", torch.tensor(sigma, dtype=torch.float))
def diffusion(self, t, x):
retur... | 21.365854 | 77 | 0.633562 | 116 | 876 | 4.534483 | 0.284483 | 0.102662 | 0.159696 | 0.171103 | 0.745247 | 0.745247 | 0.739544 | 0.625475 | 0.456274 | 0.456274 | 0 | 0.007599 | 0.248858 | 876 | 40 | 78 | 21.9 | 0.791793 | 0.06621 | 0 | 0.72 | 0 | 0 | 0.01227 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.36 | false | 0 | 0.08 | 0.24 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
b91609c3c89af1548156f672b5b0285d5b8af918 | 110 | py | Python | bflib/characters/racialclass/__init__.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | 3 | 2017-10-28T11:28:38.000Z | 2018-09-12T09:47:00.000Z | bflib/characters/racialclass/__init__.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | bflib/characters/racialclass/__init__.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | from bflib.characters.racialclass.bugbear import Bugbear
from bflib.characters.racialclass.gnoll import Gnoll
| 36.666667 | 56 | 0.872727 | 14 | 110 | 6.857143 | 0.5 | 0.1875 | 0.395833 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 110 | 2 | 57 | 55 | 0.941176 | 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 |
b920ece0fcbad6e7aefdcfc4880354efdd0f5bae | 17,792 | py | Python | apicore/tests/test_api.py | bozicschucky/AndelaWeek2 | 520f758bb2edf134dc275965b61f2e6defe3252f | [
"MIT"
] | null | null | null | apicore/tests/test_api.py | bozicschucky/AndelaWeek2 | 520f758bb2edf134dc275965b61f2e6defe3252f | [
"MIT"
] | 1 | 2019-10-21T15:01:31.000Z | 2019-10-21T15:01:31.000Z | apicore/tests/test_api.py | bozicschucky/AndelaWeek2 | 520f758bb2edf134dc275965b61f2e6defe3252f | [
"MIT"
] | 2 | 2018-10-04T02:37:29.000Z | 2018-11-01T08:29:26.000Z | import unittest
import json
from apicore.app import app
from apicore.models.db import DBhandler
class APITestCase(unittest.TestCase):
"""Unit testing class for the API endpoints"""
def setUp(self):
self.app = app
self.app.config['TESTING'] = True
self.db_handler = DBhandler(host="loca... | 47.068783 | 76 | 0.494998 | 1,656 | 17,792 | 5.218599 | 0.095411 | 0.0729 | 0.099283 | 0.117334 | 0.866003 | 0.832909 | 0.820181 | 0.820181 | 0.808609 | 0.808609 | 0 | 0.015759 | 0.397257 | 17,792 | 377 | 77 | 47.193634 | 0.790097 | 0.026641 | 0 | 0.710692 | 0 | 0 | 0.172618 | 0.006318 | 0 | 0 | 0 | 0 | 0.207547 | 1 | 0.040881 | false | 0.006289 | 0.012579 | 0 | 0.056604 | 0.003145 | 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 |
b925f00ee06b14dc0c86f4ba1871c2bf3da3d491 | 16,970 | py | Python | src/pyrad_proc/pyrad/graph/plots_grid.py | jfigui/pyrad | 7811d593bb09a7f8a621c0e8ae3f32c2b85a0254 | [
"BSD-3-Clause"
] | 41 | 2016-12-01T08:46:06.000Z | 2021-06-24T21:14:33.000Z | src/pyrad_proc/pyrad/graph/plots_grid.py | jfigui/pyrad | 7811d593bb09a7f8a621c0e8ae3f32c2b85a0254 | [
"BSD-3-Clause"
] | 42 | 2017-02-23T14:52:49.000Z | 2021-02-01T10:43:52.000Z | src/pyrad_proc/pyrad/graph/plots_grid.py | jfigui/pyrad | 7811d593bb09a7f8a621c0e8ae3f32c2b85a0254 | [
"BSD-3-Clause"
] | 21 | 2016-08-25T15:02:12.000Z | 2021-05-27T04:09:40.000Z | """
pyrad.graph.plots_grid
======================
Functions to plot data in a Cartesian grid format
.. autosummary::
:toctree: generated/
plot_surface
plot_surface_contour
plot_latitude_slice
plot_longitude_slice
plot_latlon_slice
"""
from warnings import warn
import numpy as np
try:
i... | 34.77459 | 78 | 0.604243 | 2,080 | 16,970 | 4.808173 | 0.117308 | 0.025197 | 0.053995 | 0.014999 | 0.812419 | 0.79702 | 0.780422 | 0.762424 | 0.756024 | 0.746325 | 0 | 0.012911 | 0.287979 | 16,970 | 487 | 79 | 34.845996 | 0.814781 | 0.244196 | 0 | 0.736434 | 1 | 0 | 0.106802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01938 | false | 0 | 0.031008 | 0 | 0.065891 | 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 |
b9492109c95f7adf7b561b2bb0cc2e2ad1960312 | 6,953 | py | Python | nautobot_ddns/background_tasks.py | jakubjastrabik/nautobot_DDNS | 6067430001e7b325c8c85ac2fe207899bad141d2 | [
"Apache-2.0"
] | 3 | 2021-11-14T23:47:19.000Z | 2022-01-25T18:37:07.000Z | nautobot_ddns/background_tasks.py | jakubjastrabik/nautobot_DDNS | 6067430001e7b325c8c85ac2fe207899bad141d2 | [
"Apache-2.0"
] | null | null | null | nautobot_ddns/background_tasks.py | jakubjastrabik/nautobot_DDNS | 6067430001e7b325c8c85ac2fe207899bad141d2 | [
"Apache-2.0"
] | 1 | 2021-11-14T23:47:22.000Z | 2021-11-14T23:47:22.000Z | import logging
from typing import List, Optional
import dns.query
import dns.rdatatype
import dns.resolver
from django.db import IntegrityError
from django_rq import job
from dns import rcode
from netaddr import ip
from nautobot_ddns.models import ACTION_CREATE, ACTION_DELETE, DNSStatus, RCODE_NO_ZONE, ReverseZone, Z... | 34.765 | 107 | 0.605494 | 861 | 6,953 | 4.749129 | 0.119628 | 0.051357 | 0.054781 | 0.041086 | 0.833456 | 0.833456 | 0.827342 | 0.827342 | 0.806799 | 0.802397 | 0 | 0.000412 | 0.30174 | 6,953 | 200 | 108 | 34.765 | 0.841813 | 0.057385 | 0 | 0.726708 | 0 | 0 | 0.129811 | 0.003818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.068323 | 0 | 0.124224 | 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 |
b956c06f63b4e768d5d871a9524b57a459282b65 | 32,906 | py | Python | components/PyTorch/pytorch-kfp-components/tests/test_compile_yamls.py | nostro-im/pipelines | 39f5b6b74040abbf4b764cbd5b422d7548723d9e | [
"Apache-2.0"
] | 2,860 | 2018-05-24T04:55:01.000Z | 2022-03-31T13:49:56.000Z | components/PyTorch/pytorch-kfp-components/tests/test_compile_yamls.py | nostro-im/pipelines | 39f5b6b74040abbf4b764cbd5b422d7548723d9e | [
"Apache-2.0"
] | 7,331 | 2018-05-16T09:03:26.000Z | 2022-03-31T23:22:04.000Z | components/PyTorch/pytorch-kfp-components/tests/test_compile_yamls.py | nostro-im/pipelines | 39f5b6b74040abbf4b764cbd5b422d7548723d9e | [
"Apache-2.0"
] | 1,359 | 2018-05-15T11:05:41.000Z | 2022-03-31T09:42:09.000Z | #!/usr/bin/env/python3
#
# Copyright (c) Facebook, Inc. and its affiliates.
# 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... | 40.37546 | 93 | 0.451164 | 2,619 | 32,906 | 5.365025 | 0.108438 | 0.024198 | 0.033877 | 0.033307 | 0.879439 | 0.873247 | 0.873247 | 0.865988 | 0.8588 | 0.8588 | 0 | 0.008274 | 0.460068 | 32,906 | 814 | 94 | 40.425061 | 0.782574 | 0.055552 | 0 | 0.766938 | 0 | 0 | 0.281058 | 0.08251 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012195 | false | 0 | 0.01084 | 0 | 0.02439 | 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 |
b96398ce2b2484870e06a3cf742d351f47fa15cc | 4,543 | py | Python | test/mary_test.py | blowfeld/python-midi-io | 8dd5c7fabc29bc407a6fb8987538c7a9dce68d94 | [
"MIT"
] | 1 | 2020-10-19T08:12:35.000Z | 2020-10-19T08:12:35.000Z | test/mary_test.py | blowfeld/python-midi-io | 8dd5c7fabc29bc407a6fb8987538c7a9dce68d94 | [
"MIT"
] | 3 | 2017-11-18T16:46:01.000Z | 2021-11-20T22:55:38.000Z | test/mary_test.py | blowfeld/python-midi-io | 8dd5c7fabc29bc407a6fb8987538c7a9dce68d94 | [
"MIT"
] | null | null | null | from midiio.events import *
from midiio.containers import *
MARY_MIDI = Pattern(tracks=[[TimeSignatureMetaEvent(tick=0, nominator=4,
denominator=2, metronome=24, thirtyseconds_per_quarter=8),
KeySignatureMetaEvent(tick=0, alternatives=0, minor=0),
EndOfTrackMetaEvent(tick=1)],
[ControlChangeEvent(tick=0, chan... | 55.402439 | 72 | 0.727933 | 693 | 4,543 | 4.767677 | 0.096681 | 0.176755 | 0.267554 | 0.239709 | 0.889225 | 0.889225 | 0.837772 | 0.837772 | 0.767252 | 0.767252 | 0 | 0.120461 | 0.102796 | 4,543 | 81 | 73 | 56.08642 | 0.690137 | 0 | 0 | 0.475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025 | 0 | 0.025 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b99bd3b92b519f97dbae3f9de4f6bd514101848e | 1,194 | py | Python | simple_codes.py | takafumifujita/qcodes-driver-test-TF | 75cb0cb44a82dd62de8872698ced7dbd16c104dc | [
"MIT"
] | null | null | null | simple_codes.py | takafumifujita/qcodes-driver-test-TF | 75cb0cb44a82dd62de8872698ced7dbd16c104dc | [
"MIT"
] | null | null | null | simple_codes.py | takafumifujita/qcodes-driver-test-TF | 75cb0cb44a82dd62de8872698ced7dbd16c104dc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 14 11:31:28 2016
@author: tfujita
"""
#%% ILM
#%% First load
import qcodes
import qcodes.instrument_drivers.oxford.ILM200 as ILM200
server_name = None
helium = ILM200.OxfordInstruments_ILM200(name='helium', address='ASRL4::INSTR', server_name=server_name)
#%% Reloadin... | 20.586207 | 104 | 0.779732 | 160 | 1,194 | 5.64375 | 0.2875 | 0.13289 | 0.152824 | 0.192691 | 0.90144 | 0.888151 | 0.82835 | 0.801772 | 0.772979 | 0.772979 | 0 | 0.066231 | 0.102178 | 1,194 | 57 | 105 | 20.947368 | 0.776119 | 0.109715 | 0 | 0.75 | 0 | 0 | 0.068768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 9 |
b9bbd6f0b8648af296ef3bfda076899cccae66d7 | 9,419 | py | Python | cvat/apps/dataset_manager/tests/test_annotation.py | gitibharatibiswal/cvat-adas-team | a33c1ae38d79ed6e35a61a97b74cd2978853e4c2 | [
"Intel",
"MIT"
] | 2 | 2022-03-13T03:45:15.000Z | 2022-03-13T03:46:19.000Z | cvat/apps/dataset_manager/tests/test_annotation.py | gitibharatibiswal/cvat-adas-team | a33c1ae38d79ed6e35a61a97b74cd2978853e4c2 | [
"Intel",
"MIT"
] | 9 | 2021-07-15T13:42:33.000Z | 2021-09-22T12:43:07.000Z | cvat/apps/dataset_manager/tests/test_annotation.py | gitibharatibiswal/cvat-adas-team | a33c1ae38d79ed6e35a61a97b74cd2978853e4c2 | [
"Intel",
"MIT"
] | 41 | 2020-12-16T05:52:41.000Z | 2021-09-23T08:45:16.000Z | # Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT
from cvat.apps.dataset_manager.annotation import TrackManager
from unittest import TestCase
class TrackManagerTest(TestCase):
def _check_interpolation(self, track):
interpolated = TrackManager.get_interpolated_shapes(track, 0, 7)
... | 30.781046 | 79 | 0.331776 | 712 | 9,419 | 4.325843 | 0.091292 | 0.038961 | 0.155844 | 0.027273 | 0.833766 | 0.833766 | 0.790584 | 0.787338 | 0.780195 | 0.772403 | 0 | 0.06393 | 0.526701 | 9,419 | 305 | 80 | 30.881967 | 0.626963 | 0.006901 | 0 | 0.696113 | 0 | 0 | 0.163422 | 0 | 0 | 0 | 0 | 0 | 0.031802 | 1 | 0.024735 | false | 0 | 0.007067 | 0 | 0.035336 | 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 |
b9c93e6cd9d835b043e12de4a1ef06b0db855651 | 133,264 | py | Python | sdk/cognitiveservices/azure-cognitiveservices-vision-customvision/azure/cognitiveservices/vision/customvision/training/operations/_custom_vision_training_client_operations.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 1 | 2020-12-10T03:17:51.000Z | 2020-12-10T03:17:51.000Z | sdk/cognitiveservices/azure-cognitiveservices-vision-customvision/azure/cognitiveservices/vision/customvision/training/operations/_custom_vision_training_client_operations.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 226 | 2019-07-24T07:57:21.000Z | 2019-10-15T01:07:24.000Z | sdk/cognitiveservices/azure-cognitiveservices-vision-customvision/azure/cognitiveservices/vision/customvision/training/operations/_custom_vision_training_client_operations.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 44.719463 | 202 | 0.670256 | 14,326 | 133,264 | 6.057029 | 0.029387 | 0.026137 | 0.019545 | 0.024339 | 0.90693 | 0.891452 | 0.872737 | 0.860602 | 0.848962 | 0.838567 | 0 | 0.00406 | 0.240433 | 133,264 | 2,979 | 203 | 44.734475 | 0.853186 | 0.358274 | 0 | 0.764973 | 0 | 0 | 0.106029 | 0.02545 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036391 | false | 0 | 0.003791 | 0 | 0.107657 | 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 |
b9d4e0c96972757314d478f7d31952ce3953c042 | 81,450 | py | Python | alerter/test/alerter/managers/test_system.py | SimplyVC/panic | 2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d | [
"Apache-2.0"
] | 41 | 2019-08-23T12:40:42.000Z | 2022-03-28T11:06:02.000Z | alerter/test/alerter/managers/test_system.py | SimplyVC/panic | 2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d | [
"Apache-2.0"
] | 147 | 2019-08-30T22:09:48.000Z | 2022-03-30T08:46:26.000Z | alerter/test/alerter/managers/test_system.py | SimplyVC/panic | 2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d | [
"Apache-2.0"
] | 3 | 2019-09-03T21:12:28.000Z | 2021-08-18T14:27:56.000Z | import copy
import json
import logging
import multiprocessing
import time
import unittest
from datetime import timedelta, datetime
from multiprocessing import Process
from unittest import mock
from unittest.mock import call
import pika
import pika.exceptions
from freezegun import freeze_time
from src.alerter.alerter_... | 47.855464 | 85 | 0.631393 | 9,284 | 81,450 | 5.162753 | 0.042546 | 0.043229 | 0.068536 | 0.039828 | 0.877136 | 0.859548 | 0.837245 | 0.820325 | 0.800275 | 0.789051 | 0 | 0.007212 | 0.298588 | 81,450 | 1,701 | 86 | 47.883598 | 0.83177 | 0.084481 | 0 | 0.744322 | 0 | 0 | 0.046873 | 0.01714 | 0 | 0 | 0 | 0 | 0.071062 | 1 | 0.023443 | false | 0.009524 | 0.017582 | 0 | 0.041758 | 0.000733 | 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 |
6a4972f167a0a0247df433a711635da80c74b219 | 30,493 | py | Python | pingpong/operations/stepper/stepperoperationbase.py | navyzal/PointTracking_Gesture | 8210aa83dcbe35db62d2578f430d3397c8cfe10d | [
"Apache-2.0"
] | 13 | 2021-08-02T04:16:18.000Z | 2022-02-24T18:37:57.000Z | pingpong/operations/stepper/stepperoperationbase.py | navyzal/PointTracking_Gesture | 8210aa83dcbe35db62d2578f430d3397c8cfe10d | [
"Apache-2.0"
] | null | null | null | pingpong/operations/stepper/stepperoperationbase.py | navyzal/PointTracking_Gesture | 8210aa83dcbe35db62d2578f430d3397c8cfe10d | [
"Apache-2.0"
] | 16 | 2021-08-02T15:33:56.000Z | 2022-03-28T14:23:37.000Z | from protocols.generateprotocol import GenerateProtocol
from operations.stepper.stepperoperationutils import StepperOperationUtils
import time
class StepperOperationBase():
def __init__(self, number, group_id, robot_status, start_check, write):
self._GenerateProtocolInstance = GenerateProtocol(number, grou... | 67.611973 | 274 | 0.699898 | 3,958 | 30,493 | 4.994694 | 0.055836 | 0.032172 | 0.033386 | 0.028226 | 0.903485 | 0.868683 | 0.844049 | 0.812029 | 0.778643 | 0.742172 | 0 | 0.003187 | 0.197422 | 30,493 | 451 | 275 | 67.611973 | 0.804601 | 0.068311 | 0 | 0.569579 | 1 | 0 | 0.058217 | 0.001999 | 0 | 0 | 0.000143 | 0 | 0 | 1 | 0.038835 | false | 0 | 0.009709 | 0.003236 | 0.071197 | 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 |
dbe91c329e7cff43a099efe93c0b119b59404f70 | 54,227 | py | Python | datagen/img_generator/additional_funcs.py | MeRKeZ/DeepDrone_Airsim | 15043ebf71b5b15e550843856aecfc4cd4fe192a | [
"MIT"
] | 2 | 2021-04-21T11:33:01.000Z | 2021-08-06T07:17:06.000Z | datagen/img_generator/additional_funcs.py | MeRKeZ/DeepDrone_Airsim | 15043ebf71b5b15e550843856aecfc4cd4fe192a | [
"MIT"
] | null | null | null | datagen/img_generator/additional_funcs.py | MeRKeZ/DeepDrone_Airsim | 15043ebf71b5b15e550843856aecfc4cd4fe192a | [
"MIT"
] | 2 | 2021-09-26T07:51:31.000Z | 2021-09-26T08:54:55.000Z | def test_collision():
phi = - np.pi/9
theta = np.pi/8
psi = pi/2
print "\nDrone Pos x={0:.3}, y={1:.3}, z={2:.3}".format(self.track[0].position.x_val, self.track[0].position.y_val, self.track[0].position.z_val)
quad_pose = [self.track[0].position.x_val, self.track[0].position.y_val, self.track[0].p... | 56.54536 | 260 | 0.546075 | 7,202 | 54,227 | 3.900028 | 0.063177 | 0.038735 | 0.051837 | 0.013351 | 0.843421 | 0.811343 | 0.794717 | 0.780867 | 0.759292 | 0.747152 | 0 | 0.033493 | 0.325521 | 54,227 | 958 | 261 | 56.604384 | 0.734463 | 0.369447 | 0 | 0.636771 | 0 | 0.029148 | 0.071412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.071749 | 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 |
dbe93c747774c0062a1ad953e6a0fee126693c5d | 3,959 | py | Python | tests/format/grib/eccodes/field/test_field_name.py | perillaroc/nwpc-data | 44d75011609e5d2d8bd8a704c7b529e0aceb7ed4 | [
"Apache-2.0"
] | 3 | 2021-10-31T13:59:04.000Z | 2022-03-08T06:45:41.000Z | tests/format/grib/eccodes/field/test_field_name.py | perillaroc/nwpc-data | 44d75011609e5d2d8bd8a704c7b529e0aceb7ed4 | [
"Apache-2.0"
] | null | null | null | tests/format/grib/eccodes/field/test_field_name.py | perillaroc/nwpc-data | 44d75011609e5d2d8bd8a704c7b529e0aceb7ed4 | [
"Apache-2.0"
] | null | null | null | import pytest
from typing import Dict, Union, Optional
from dataclasses import dataclass, asdict
from reki.format.grib.eccodes import load_field_from_file
@dataclass
class QueryOption:
parameter: Union[str, Dict] = None
level_type: str = None
level: float = None
field_name: Optional[str] = None
@da... | 29.766917 | 106 | 0.572367 | 414 | 3,959 | 5.181159 | 0.149758 | 0.163636 | 0.126807 | 0.184615 | 0.820047 | 0.820047 | 0.792075 | 0.792075 | 0.751049 | 0.731469 | 0 | 0.020564 | 0.336701 | 3,959 | 132 | 107 | 29.992424 | 0.796268 | 0 | 0 | 0.669492 | 0 | 0 | 0.056833 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 1 | 0.025424 | false | 0 | 0.033898 | 0 | 0.127119 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
dbf21a10cee00fba8c52f28cc9b7e5343e98400b | 456 | py | Python | profanity_police/exceptions.py | vivekkumar2696/profanity-police | 18479e0ff4cc90bb226588c0e9962aea09570c52 | [
"MIT"
] | 3 | 2021-06-21T21:22:19.000Z | 2022-01-14T06:56:20.000Z | profanity_police/exceptions.py | vivekkumar2696/profanity-police | 18479e0ff4cc90bb226588c0e9962aea09570c52 | [
"MIT"
] | null | null | null | profanity_police/exceptions.py | vivekkumar2696/profanity-police | 18479e0ff4cc90bb226588c0e9962aea09570c52 | [
"MIT"
] | null | null | null | class InvalidYoutubeURLError(Exception):
def __init__(self, message, errors = None):
super().__init__(message)
self.errors = errors
class TranscriptNotFoundError(Exception):
def __init__(self, message, errors = None):
super().__init__(message)
self.errors = errors
class Invalid... | 32.571429 | 47 | 0.682018 | 45 | 456 | 6.377778 | 0.266667 | 0.125436 | 0.167247 | 0.209059 | 0.756098 | 0.756098 | 0.756098 | 0.756098 | 0.756098 | 0.756098 | 0 | 0 | 0.212719 | 456 | 14 | 48 | 32.571429 | 0.799443 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
e00435633525c33eb8bca2a05e93a197e4e0a743 | 990 | py | Python | tests/test_fixture_msg.py | ddk50/upfg_rina | c6808ffec6dd8c84ab1c02721ab2b57f29a5283b | [
"MIT"
] | null | null | null | tests/test_fixture_msg.py | ddk50/upfg_rina | c6808ffec6dd8c84ab1c02721ab2b57f29a5283b | [
"MIT"
] | null | null | null | tests/test_fixture_msg.py | ddk50/upfg_rina | c6808ffec6dd8c84ab1c02721ab2b57f29a5283b | [
"MIT"
] | null | null | null | import pytest
import datetime
from .context import Notifications
from .context import Msg
@pytest.fixture
def init():
return None
def test_one():
now = datetime.datetime.now()
event_time = now + datetime.timedelta(hours=23)
msg = Msg(event_time, "hello")
r = msg.broadcast_or_not(now)
as... | 20.625 | 53 | 0.614141 | 130 | 990 | 4.523077 | 0.238462 | 0.14966 | 0.129252 | 0.14966 | 0.755102 | 0.755102 | 0.755102 | 0.755102 | 0.755102 | 0.755102 | 0 | 0.008119 | 0.253535 | 990 | 47 | 54 | 21.06383 | 0.787551 | 0.581818 | 0 | 0 | 0 | 0 | 0.025381 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.153846 | false | 0 | 0.307692 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
e0517c6a70594814882908b23448e97ec139c388 | 2,512 | py | Python | benchmark/boolean.py | tushushu/uvec | ab57251136d375a5e47a61af9a3262394795c0db | [
"BSD-3-Clause"
] | 7 | 2021-11-29T02:43:15.000Z | 2022-01-03T13:59:11.000Z | benchmark/boolean.py | tushushu/uvec | ab57251136d375a5e47a61af9a3262394795c0db | [
"BSD-3-Clause"
] | 87 | 2022-01-10T13:15:23.000Z | 2022-03-31T12:10:15.000Z | benchmark/boolean.py | tushushu/ulist | 987d3a1bbcf2caab7ed2253d94921b1588e5175f | [
"BSD-3-Clause"
] | null | null | null | from random import choice, seed
from ulist.utils import Benchmarker
seed(100)
class AllIsTrue(Benchmarker):
def cases(self) -> list:
return [
([True for _ in range(100)],),
([True for _ in range(1000)],),
([True for _ in range(10000)],),
([True for _ in ra... | 27.604396 | 63 | 0.504777 | 299 | 2,512 | 4.123746 | 0.120401 | 0.101379 | 0.202758 | 0.227088 | 0.83455 | 0.774534 | 0.721006 | 0.711273 | 0.667478 | 0.667478 | 0 | 0.083187 | 0.320462 | 2,512 | 90 | 64 | 27.911111 | 0.639133 | 0 | 0 | 0.661765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.220588 | false | 0 | 0.029412 | 0.073529 | 0.397059 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
e065ba9590cb82972c71f3fb8a85de6fb174057e | 19,017 | py | Python | sdk/python/pulumi_azuredevops/service_endpoint_sonar_qube.py | pulumi/pulumi-azuredevops | e6d73d1501335037fb944ae627091a7afc7f0048 | [
"ECL-2.0",
"Apache-2.0"
] | 13 | 2020-06-28T11:39:32.000Z | 2022-03-05T13:34:16.000Z | sdk/python/pulumi_azuredevops/service_endpoint_sonar_qube.py | pulumi/pulumi-azuredevops | e6d73d1501335037fb944ae627091a7afc7f0048 | [
"ECL-2.0",
"Apache-2.0"
] | 58 | 2020-06-20T14:00:28.000Z | 2022-03-31T15:20:51.000Z | sdk/python/pulumi_azuredevops/service_endpoint_sonar_qube.py | pulumi/pulumi-azuredevops | e6d73d1501335037fb944ae627091a7afc7f0048 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-10-21T03:22:01.000Z | 2021-12-10T18:26:59.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 41.162338 | 182 | 0.644686 | 2,070 | 19,017 | 5.712077 | 0.095652 | 0.086519 | 0.097091 | 0.068843 | 0.821127 | 0.79567 | 0.774526 | 0.749662 | 0.725135 | 0.685132 | 0 | 0.014665 | 0.250565 | 19,017 | 461 | 183 | 41.251627 | 0.814973 | 0.308093 | 0 | 0.646825 | 1 | 0 | 0.098072 | 0.029505 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15873 | false | 0.003968 | 0.019841 | 0.011905 | 0.27381 | 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 |
0ed57cc508b8e612c06778efa32dc45fe8ff0cba | 192 | py | Python | src/server/ModelUploadAPI.py | nikzagarwal/twentyone | d7426fc863773af9acca00c63099f064ed25b0e7 | [
"MIT"
] | 9 | 2020-11-10T14:21:44.000Z | 2021-10-02T13:12:50.000Z | src/server/ModelUploadAPI.py | Shubham2443/twentyone | 5ac8a0e518a4249a84f8cb2f865437891b295c0d | [
"MIT"
] | null | null | null | src/server/ModelUploadAPI.py | Shubham2443/twentyone | 5ac8a0e518a4249a84f8cb2f865437891b295c0d | [
"MIT"
] | 7 | 2020-11-14T08:19:53.000Z | 2021-08-11T14:41:37.000Z | from flask import Blueprint
model_upload_api = Blueprint('model_upload_api', __name__)
# Later
@model_upload_api.route("/model_upload")
def model_upload():
return "Model Upload Response" | 24 | 58 | 0.786458 | 26 | 192 | 5.346154 | 0.5 | 0.47482 | 0.302158 | 0.330935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 192 | 8 | 59 | 24 | 0.817647 | 0.026042 | 0 | 0 | 0 | 0 | 0.268817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0.4 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
1609ab279af74e0741f5dc8b6d7dff8f8cef89a4 | 9,163 | py | Python | v2/tests/security/test_decorators.py | jonfairbanks/rtsp-nvr | c770c77e74a062c63fb5e2419bc00a17543da332 | [
"MIT"
] | 558 | 2017-10-04T14:33:18.000Z | 2022-03-24T21:25:08.000Z | v2/tests/security/test_decorators.py | jonfairbanks/rtsp-nvr | c770c77e74a062c63fb5e2419bc00a17543da332 | [
"MIT"
] | 22 | 2018-04-29T04:25:49.000Z | 2021-08-02T17:26:02.000Z | v2/tests/security/test_decorators.py | jonfairbanks/rtsp-nvr | c770c77e74a062c63fb5e2419bc00a17543da332 | [
"MIT"
] | 127 | 2017-11-14T19:47:27.000Z | 2022-03-24T21:25:12.000Z | import pytest
from werkzeug.exceptions import Forbidden, Unauthorized
from backend.security.decorators import (
anonymous_user_required,
auth_required,
auth_required_same_user,
# roles_accepted, # tested by tests for auth_required
# roles_required, # tested by tests for auth_required
)
class M... | 26.33046 | 96 | 0.607552 | 986 | 9,163 | 5.371197 | 0.083164 | 0.088369 | 0.095166 | 0.176737 | 0.911254 | 0.865937 | 0.853097 | 0.825529 | 0.8125 | 0.799282 | 0 | 0.001233 | 0.291826 | 9,163 | 347 | 97 | 26.40634 | 0.814918 | 0.011241 | 0 | 0.734694 | 0 | 0 | 0.080729 | 0.01016 | 0 | 0 | 0 | 0 | 0.008163 | 1 | 0.240816 | false | 0.012245 | 0.012245 | 0 | 0.269388 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
162303c4cea0a2c0c6ecd65143c28b1752cae49a | 329 | py | Python | datasets/torchvision_datasets/__init__.py | StephenStorm/DETReg | 25ebc7792c7da4cc9c50a846149773b2684a040f | [
"Apache-2.0"
] | 1,454 | 2020-11-30T13:00:05.000Z | 2022-03-31T13:06:38.000Z | datasets/torchvision_datasets/__init__.py | StephenStorm/DETReg | 25ebc7792c7da4cc9c50a846149773b2684a040f | [
"Apache-2.0"
] | 127 | 2020-12-01T03:35:53.000Z | 2022-03-24T08:59:17.000Z | datasets/torchvision_datasets/__init__.py | StephenStorm/DETReg | 25ebc7792c7da4cc9c50a846149773b2684a040f | [
"Apache-2.0"
] | 275 | 2020-11-30T13:00:53.000Z | 2022-03-29T14:49:46.000Z | # ------------------------------------------------------------------------
# Deformable DETR
# Copyright (c) 2020 SenseTime. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 [see LICENSE for details]
# ------------------------------------------------------------------------
from .coco import CocoD... | 41.125 | 74 | 0.422492 | 25 | 329 | 5.56 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 0.097264 | 329 | 7 | 75 | 47 | 0.447811 | 0.866261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
16df3fb475bd553e5b6ffbb83bddf37b9774375b | 25,844 | py | Python | Engine/classes.py | dfm/igrins_rv | 79aa31035bdc576c6c2ff05b6042146afaff49ac | [
"MIT"
] | null | null | null | Engine/classes.py | dfm/igrins_rv | 79aa31035bdc576c6c2ff05b6042146afaff49ac | [
"MIT"
] | null | null | null | Engine/classes.py | dfm/igrins_rv | 79aa31035bdc576c6c2ff05b6042146afaff49ac | [
"MIT"
] | null | null | null |
# These classes are all for convenient passing of variables between the main code, the telluric spectrum fitter, and the model function.
import numpy as np
class fitobjs:
def __init__(self,s, x, u,continuum,watm_in,satm_in,mflux_in,mwave_in,mask,masterbeam,CRmask):
self.s = s
self.x = x
... | 69.286863 | 142 | 0.363798 | 2,170 | 25,844 | 4.31106 | 0.221659 | 0.122715 | 0.140246 | 0.015393 | 0.810689 | 0.8 | 0.8 | 0.787173 | 0.787173 | 0.7752 | 0 | 0.522094 | 0.507004 | 25,844 | 372 | 143 | 69.473118 | 0.21215 | 0.028517 | 0 | 0.711712 | 0 | 0 | 0.001355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015015 | false | 0 | 0.003003 | 0 | 0.033033 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
16e053d1824c248dc6a2f044c5bf870a68dc933f | 2,615 | py | Python | src/genie/libs/parser/iosxe/tests/cli/equal/golden_output5_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/cli/equal/golden_output5_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/cli/equal/golden_output5_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | expected_output = {
'lisp_id': {
0: {
'site_name': {
'Shire': {
'instance_id': {
4100: {
'eid_prefix': {
'192.168.1.0/24': {
'last_registere... | 46.696429 | 79 | 0.216444 | 147 | 2,615 | 3.653061 | 0.258503 | 0.417132 | 0.253259 | 0.163873 | 0.789572 | 0.77095 | 0.77095 | 0.77095 | 0.77095 | 0.77095 | 0 | 0.211696 | 0.67304 | 2,615 | 56 | 80 | 46.696429 | 0.416374 | 0 | 0 | 0.428571 | 0 | 0 | 0.236239 | 0.01682 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 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 | 11 |
bcbfd65032df6b8fb40ce045b04448525639dd27 | 630 | py | Python | claripy/frontend_mixins/simplify_helper_mixin.py | embg/claripy | 1a5e0ca61d3f480e541226f103900e983f025e4a | [
"BSD-2-Clause"
] | 211 | 2015-08-06T23:25:01.000Z | 2022-03-26T19:34:49.000Z | claripy/frontend_mixins/simplify_helper_mixin.py | embg/claripy | 1a5e0ca61d3f480e541226f103900e983f025e4a | [
"BSD-2-Clause"
] | 175 | 2015-09-03T11:09:18.000Z | 2022-03-09T20:24:33.000Z | claripy/frontend_mixins/simplify_helper_mixin.py | embg/claripy | 1a5e0ca61d3f480e541226f103900e983f025e4a | [
"BSD-2-Clause"
] | 99 | 2015-08-07T10:30:08.000Z | 2022-03-26T10:32:09.000Z | class SimplifyHelperMixin:
def max(self, *args, **kwargs):
self.simplify()
return super(SimplifyHelperMixin, self).max(*args, **kwargs)
def min(self, *args, **kwargs):
self.simplify()
return super(SimplifyHelperMixin, self).min(*args, **kwargs)
def eval(self, e, n, *args, *... | 33.157895 | 81 | 0.590476 | 74 | 630 | 5 | 0.22973 | 0.216216 | 0.194595 | 0.248649 | 0.789189 | 0.702703 | 0.702703 | 0.702703 | 0.702703 | 0.378378 | 0 | 0.004264 | 0.255556 | 630 | 18 | 82 | 35 | 0.784648 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 9 |
4c5526805bc2825ad64bb6691eb1554b2dad103f | 12,582 | py | Python | python/coefs.py | mustafabar/RedSeaInterpolation | 5d40cbc6e54df7a867445e8fadd11f9f1cce8556 | [
"MIT"
] | null | null | null | python/coefs.py | mustafabar/RedSeaInterpolation | 5d40cbc6e54df7a867445e8fadd11f9f1cce8556 | [
"MIT"
] | null | null | null | python/coefs.py | mustafabar/RedSeaInterpolation | 5d40cbc6e54df7a867445e8fadd11f9f1cce8556 | [
"MIT"
] | null | null | null | import numpy as np
A = np.array([
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0... | 179.742857 | 207 | 0.335956 | 4,106 | 12,582 | 1.029469 | 0.004871 | 1.317246 | 1.842441 | 2.318429 | 0.985806 | 0.984623 | 0.969955 | 0.958599 | 0.927845 | 0.918855 | 0 | 0.468394 | 0.288348 | 12,582 | 69 | 208 | 182.347826 | 0.003686 | 0.001033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015152 | 0 | 0.015152 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 13 |
4c7929a4977b67918a633d7f8bdd7366644d4cdc | 8,295 | py | Python | dfirtrack_artifacts/tests/artifacttype/test_artifacttype_views.py | blackhatethicalhacking/dfirtrack | 9c2e13015291f2981d14d63c9683e7c447e91f3a | [
"MIT"
] | 4 | 2020-03-06T17:37:09.000Z | 2020-03-17T07:50:55.000Z | dfirtrack_artifacts/tests/artifacttype/test_artifacttype_views.py | blackhatethicalhacking/dfirtrack | 9c2e13015291f2981d14d63c9683e7c447e91f3a | [
"MIT"
] | null | null | null | dfirtrack_artifacts/tests/artifacttype/test_artifacttype_views.py | blackhatethicalhacking/dfirtrack | 9c2e13015291f2981d14d63c9683e7c447e91f3a | [
"MIT"
] | 1 | 2020-03-06T20:54:52.000Z | 2020-03-06T20:54:52.000Z | from django.contrib.auth.models import User
from django.test import TestCase
from dfirtrack_artifacts.models import Artifacttype
import urllib.parse
class ArtifacttypeViewTestCase(TestCase):
""" artifacttype view tests """
@classmethod
def setUpTestData(cls):
# create object
Artifacttype.... | 43.203125 | 146 | 0.683062 | 834 | 8,295 | 6.604317 | 0.077938 | 0.050835 | 0.081699 | 0.066812 | 0.909949 | 0.881082 | 0.870552 | 0.862564 | 0.835694 | 0.813907 | 0 | 0.017422 | 0.204219 | 8,295 | 191 | 147 | 43.429319 | 0.816997 | 0.118023 | 0 | 0.54321 | 0 | 0 | 0.227362 | 0.162521 | 0 | 0 | 0 | 0 | 0.197531 | 1 | 0.209877 | false | 0.160494 | 0.049383 | 0 | 0.271605 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
91274be755aa99e6f40c07675e6ec3bddee8779a | 69,350 | py | Python | infoblox_netmri/api/broker/v3_6_0/access_change_accounting_broker.py | IngmarVG-IB/infoblox-netmri | b0c725fd64aee1890d83917d911b89236207e564 | [
"Apache-2.0"
] | null | null | null | infoblox_netmri/api/broker/v3_6_0/access_change_accounting_broker.py | IngmarVG-IB/infoblox-netmri | b0c725fd64aee1890d83917d911b89236207e564 | [
"Apache-2.0"
] | null | null | null | infoblox_netmri/api/broker/v3_6_0/access_change_accounting_broker.py | IngmarVG-IB/infoblox-netmri | b0c725fd64aee1890d83917d911b89236207e564 | [
"Apache-2.0"
] | null | null | null | from ..broker import Broker
class AccessChangeAccountingBroker(Broker):
controller = "access_change_accountings"
def show(self, **kwargs):
"""Shows the details for the specified access change accounting.
**Inputs**
| ``api version min:`` None
| ``a... | 58.821035 | 782 | 0.632646 | 8,458 | 69,350 | 5.128163 | 0.037716 | 0.063633 | 0.041361 | 0.054088 | 0.942523 | 0.939941 | 0.906349 | 0.890672 | 0.885 | 0.884631 | 0 | 0.002659 | 0.28969 | 69,350 | 1,179 | 783 | 58.821035 | 0.877852 | 0.840865 | 0 | 0 | 0 | 0 | 0.057627 | 0.028249 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.076923 | 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 |
91380870376fc8358111f78bf34b05e774be162d | 11,105 | py | Python | benchmarks/benchmark_sn_blocker.py | dmvieira/py_entitymatching | 25b48cf3a60f0cd05f25ffd38b735a461686eff7 | [
"BSD-3-Clause"
] | 165 | 2016-08-28T14:30:01.000Z | 2022-03-29T17:24:03.000Z | benchmarks/benchmark_sn_blocker.py | mvahit/py_entitymatching | 6724081d7d95c547e5a51625b4a8207c6c1737f8 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 70 | 2016-11-22T00:35:22.000Z | 2022-03-11T22:26:26.000Z | benchmarks/benchmark_sn_blocker.py | mvahit/py_entitymatching | 6724081d7d95c547e5a51625b4a8207c6c1737f8 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 53 | 2016-09-22T02:07:34.000Z | 2022-03-19T18:57:06.000Z | # Write the benchmarking functions here.
# See "Writing benchmarks" in the asv docs for more information.
import os
import sys
import py_entitymatching as mg
p = mg.get_install_path()
datasets_path = os.sep.join([p, 'datasets', 'example_datasets'])
snb = mg.SortedNeighborhood... | 36.650165 | 80 | 0.571274 | 1,439 | 11,105 | 4.134816 | 0.076442 | 0.081681 | 0.045378 | 0.063529 | 0.861345 | 0.826218 | 0.795798 | 0.792941 | 0.775462 | 0.775462 | 0 | 0.002112 | 0.317785 | 11,105 | 302 | 81 | 36.771523 | 0.783263 | 0.012697 | 0 | 0.733333 | 0 | 0 | 0.159931 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 1 | 0.105882 | false | 0 | 0.011765 | 0 | 0.156863 | 0.035294 | 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 |
91476207a7c09f973c95be7dbe81a89a6b95a7fd | 19,505 | py | Python | tests/test_filter.py | polyswarm/polyswarm-client | 1ce057725d7db59c3582e4cd3cf148cde7ddddeb | [
"MIT"
] | 21 | 2018-09-15T00:12:42.000Z | 2020-10-28T00:42:59.000Z | tests/test_filter.py | polyswarm/polyswarm-client | 1ce057725d7db59c3582e4cd3cf148cde7ddddeb | [
"MIT"
] | 435 | 2018-09-05T18:53:21.000Z | 2021-11-30T17:32:10.000Z | tests/test_filter.py | polyswarm/polyswarm-client | 1ce057725d7db59c3582e4cd3cf148cde7ddddeb | [
"MIT"
] | 3 | 2019-07-26T00:14:47.000Z | 2021-04-26T10:57:56.000Z | from polyswarmclient.filters.bountyfilter import BountyFilter, split_filter
from polyswarmclient.filters.confidencefilter import ConfidenceModifier
from polyswarmclient.filters.filter import Filter, FilterComparison, parse_filters, MetadataFilter
def test_pad_fills_empty_to_length():
# arrange
metadata = []
... | 26.646175 | 101 | 0.658344 | 2,161 | 19,505 | 5.723276 | 0.060157 | 0.043014 | 0.059508 | 0.065168 | 0.882358 | 0.857536 | 0.786384 | 0.758085 | 0.724693 | 0.702054 | 0 | 0.009852 | 0.214201 | 19,505 | 731 | 102 | 26.682627 | 0.79709 | 0.075365 | 0 | 0.512894 | 0 | 0 | 0.10756 | 0 | 0 | 0 | 0 | 0 | 0.240688 | 1 | 0.217765 | false | 0 | 0.008596 | 0 | 0.226361 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e67864fc9166814c94bc88c30e2788f75e502620 | 22 | py | Python | migrations/645-collection-backfill-slugs.py | clouserw/zamboni | c4a568b69c1613f27da41d46328b2975cbdc1c07 | [
"BSD-3-Clause"
] | null | null | null | migrations/645-collection-backfill-slugs.py | clouserw/zamboni | c4a568b69c1613f27da41d46328b2975cbdc1c07 | [
"BSD-3-Clause"
] | null | null | null | migrations/645-collection-backfill-slugs.py | clouserw/zamboni | c4a568b69c1613f27da41d46328b2975cbdc1c07 | [
"BSD-3-Clause"
] | null | null | null | def run():
return
| 7.333333 | 10 | 0.545455 | 3 | 22 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.318182 | 22 | 2 | 11 | 11 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
e6a3585de497c5062a7e5e5353825fb9df202c27 | 14,802 | py | Python | keras_video_classifier/library/recurrent_networks.py | huynhtnhut97/keras-video-classifier | 3ea6a8d671f3bd3cc8eddef64ad75abc2a2d593a | [
"MIT"
] | null | null | null | keras_video_classifier/library/recurrent_networks.py | huynhtnhut97/keras-video-classifier | 3ea6a8d671f3bd3cc8eddef64ad75abc2a2d593a | [
"MIT"
] | null | null | null | keras_video_classifier/library/recurrent_networks.py | huynhtnhut97/keras-video-classifier | 3ea6a8d671f3bd3cc8eddef64ad75abc2a2d593a | [
"MIT"
] | null | null | null | from keras.layers import Dense, Activation, Dropout, Bidirectional
from keras.layers.recurrent import LSTM
from keras.models import Sequential
from keras.applications.vgg16 import VGG16
from keras.optimizers import SGD
from keras import backend as K
from keras.utils import np_utils
from sklearn.model_selection import t... | 36.548148 | 127 | 0.750642 | 2,118 | 14,802 | 4.928706 | 0.096789 | 0.066673 | 0.083341 | 0.036785 | 0.845292 | 0.838107 | 0.824025 | 0.810135 | 0.80228 | 0.790497 | 0 | 0.024795 | 0.141738 | 14,802 | 404 | 128 | 36.638614 | 0.796914 | 0 | 0 | 0.766272 | 0 | 0 | 0.076814 | 0.014728 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050296 | false | 0 | 0.035503 | 0 | 0.153846 | 0.035503 | 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 |
e6b1e7d98bd197fdf87ef1556e693db0fe27dd93 | 35,882 | py | Python | Mir.py | aghawahab8/aghapro | 9658b6bc286c6eca0ca813e9578ce89521ba6ff0 | [
"Apache-2.0"
] | null | null | null | Mir.py | aghawahab8/aghapro | 9658b6bc286c6eca0ca813e9578ce89521ba6ff0 | [
"Apache-2.0"
] | null | null | null | Mir.py | aghawahab8/aghapro | 9658b6bc286c6eca0ca813e9578ce89521ba6ff0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python2
# -*- coding: utf-8
#AUTHOR : MIR AGHA (MIR AGHA)
#OPEN SOURCE :)
#DON'T FORGET TO GIVE CREDIT TO MIR AGHa
from time import sleep
def xox(z):
for e in z + "\n":
sys.stdout.write(e)
sys.stdout.flush()
time.sleep(0.04)
user_agent = ["Mozilla/5.0 (W... | 26.42268 | 1,581 | 0.595089 | 5,119 | 35,882 | 4.124438 | 0.095526 | 0.012788 | 0.027708 | 0.026998 | 0.897741 | 0.890494 | 0.875006 | 0.86847 | 0.866007 | 0.860702 | 0 | 0.132733 | 0.202135 | 35,882 | 1,357 | 1,582 | 26.442152 | 0.604736 | 0 | 0 | 0.856467 | 0 | 0.053628 | 0.456279 | 0.16188 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.206625 | 0.003155 | null | null | 0.22082 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 10 |
e6be894e085ab9552de67a627a0d6f2950224567 | 7,104 | py | Python | atoman/lattice_gen/tests/test_lattice_gen_pu3ga.py | chrisdjscott/Atoman | e87ac31bbdcf53bb8f3efdfb109787d604890394 | [
"MIT"
] | 9 | 2015-11-23T12:13:34.000Z | 2021-11-18T05:23:35.000Z | atoman/lattice_gen/tests/test_lattice_gen_pu3ga.py | chrisdjscott/Atoman | e87ac31bbdcf53bb8f3efdfb109787d604890394 | [
"MIT"
] | 1 | 2017-07-17T20:27:50.000Z | 2017-07-23T05:27:15.000Z | atoman/lattice_gen/tests/test_lattice_gen_pu3ga.py | chrisdjscott/Atoman | e87ac31bbdcf53bb8f3efdfb109787d604890394 | [
"MIT"
] | 4 | 2015-11-23T12:13:37.000Z | 2017-05-03T08:24:19.000Z |
"""
Unit tests for the Pu-Ga (Pu3Ga method) lattice generator
"""
from __future__ import absolute_import
from __future__ import unicode_literals
import unittest
import numpy as np
from ...system.lattice import Lattice
from .. import lattice_gen_pu3ga
###############################################################... | 49.678322 | 110 | 0.496059 | 968 | 7,104 | 3.615702 | 0.082645 | 0.033143 | 0.031714 | 0.021714 | 0.858571 | 0.85 | 0.831429 | 0.808857 | 0.762 | 0.762 | 0 | 0.100295 | 0.331926 | 7,104 | 142 | 111 | 50.028169 | 0.637168 | 0.027872 | 0 | 0.647619 | 0 | 0 | 0.002377 | 0 | 0 | 0 | 0 | 0 | 0.495238 | 1 | 0.038095 | false | 0 | 0.057143 | 0 | 0.104762 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e6c38fefb5a1ed60cf56288129ededb117761170 | 22,392 | py | Python | tb_rest_client/api/api_ce/audit_log_controller_api.py | maksonlee/python_tb_rest_client | a6cd17ef4de31f68c3226b7a9835292fbac4b1fa | [
"Apache-2.0"
] | 1 | 2021-07-19T10:09:04.000Z | 2021-07-19T10:09:04.000Z | tb_rest_client/api/api_ce/audit_log_controller_api.py | moravcik94/python_tb_rest_client | 985361890cdf4ccce93d2b24905ad9003c8dfcaa | [
"Apache-2.0"
] | null | null | null | tb_rest_client/api/api_ce/audit_log_controller_api.py | moravcik94/python_tb_rest_client | 985361890cdf4ccce93d2b24905ad9003c8dfcaa | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# Copyright 2020. ThingsBoard
# #
# 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
# #
# Unl... | 43.061538 | 145 | 0.63085 | 2,686 | 22,392 | 4.98064 | 0.075949 | 0.050232 | 0.028704 | 0.026162 | 0.919719 | 0.9103 | 0.902676 | 0.902228 | 0.897518 | 0.876065 | 0 | 0.016322 | 0.272195 | 22,392 | 519 | 146 | 43.144509 | 0.804565 | 0.336593 | 0 | 0.784906 | 0 | 0.011321 | 0.227056 | 0.066359 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033962 | false | 0 | 0.015094 | 0 | 0.098113 | 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 |
fc0f404380d029e46caef93ca3d6c5dd3243d4ff | 60 | py | Python | modules/ckanext-ytp_tasks/ckanext/ytp_tasks/celery_import.py | eetumans/opendata | 061f58550bcb820016a764cca4763ed0a5f627fe | [
"MIT"
] | 16 | 2018-07-12T14:26:02.000Z | 2022-02-24T12:10:00.000Z | modules/ckanext-ytp_tasks/ckanext/ytp_tasks/celery_import.py | eetumans/opendata | 061f58550bcb820016a764cca4763ed0a5f627fe | [
"MIT"
] | 751 | 2017-09-28T07:47:50.000Z | 2022-03-31T12:08:25.000Z | modules/ckanext-ytp_tasks/ckanext/ytp_tasks/celery_import.py | vrk-kpa/opendata-ckan | 8936e2d9e700b9e5534fe2a51eedc2d1ede8c10b | [
"MIT"
] | 6 | 2017-10-31T07:47:07.000Z | 2021-10-06T07:09:07.000Z |
def task_imports():
return ['ckanext.ytp_tasks.tasks']
| 15 | 38 | 0.7 | 8 | 60 | 5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 60 | 3 | 39 | 20 | 0.784314 | 0 | 0 | 0 | 0 | 0 | 0.389831 | 0.389831 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0.5 | 0.5 | 1.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
fc2c19fd9f8467ba2be4e72010983c06d641aaa1 | 8,389 | py | Python | tests/unit/frames/header_frame_test.py | vitaly-krugl/haigha | e5320abfab91b89f4bad33644a7528e4517d96a7 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/frames/header_frame_test.py | vitaly-krugl/haigha | e5320abfab91b89f4bad33644a7528e4517d96a7 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/frames/header_frame_test.py | vitaly-krugl/haigha | e5320abfab91b89f4bad33644a7528e4517d96a7 | [
"BSD-3-Clause"
] | null | null | null | '''
Copyright (c) 2011-2015, Agora Games, LLC All rights reserved.
https://github.com/agoragames/haigha/blob/master/LICENSE.txt
'''
from chai import Chai
import struct
import time
from datetime import datetime
from haigha.frames import header_frame
from haigha.frames.header_frame import HeaderFrame
from haigha.reade... | 36.473913 | 101 | 0.594469 | 911 | 8,389 | 5.288694 | 0.125137 | 0.07721 | 0.029058 | 0.044832 | 0.844956 | 0.834579 | 0.818182 | 0.818182 | 0.818182 | 0.818182 | 0 | 0.021136 | 0.295029 | 8,389 | 229 | 102 | 36.633188 | 0.793541 | 0.02837 | 0 | 0.858696 | 0 | 0.005435 | 0.048029 | 0 | 0 | 0 | 0.000983 | 0 | 0.255435 | 1 | 0.038043 | false | 0 | 0.043478 | 0 | 0.086957 | 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 |
fc47d5b66a5a988791e125c97e184356a89579e2 | 105,224 | py | Python | example/src/order_stub/order_pb2.py | DDS-DS/pytest-grpc | a4df9263324fc584c1b4f4a796a2f8424dd56b2b | [
"MIT"
] | null | null | null | example/src/order_stub/order_pb2.py | DDS-DS/pytest-grpc | a4df9263324fc584c1b4f4a796a2f8424dd56b2b | [
"MIT"
] | null | null | null | example/src/order_stub/order_pb2.py | DDS-DS/pytest-grpc | a4df9263324fc584c1b4f4a796a2f8424dd56b2b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: order.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf ... | 50.857419 | 8,624 | 0.752518 | 13,659 | 105,224 | 5.482905 | 0.031261 | 0.057684 | 0.087527 | 0.071023 | 0.806879 | 0.765112 | 0.750317 | 0.739234 | 0.72452 | 0.7066 | 0 | 0.039696 | 0.122814 | 105,224 | 2,068 | 8,625 | 50.882012 | 0.771682 | 0.016707 | 0 | 0.744648 | 1 | 0.003058 | 0.145632 | 0.105712 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004077 | 0 | 0.004077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
fca26d622ffde8796ac42ef4ee97225b77d45f35 | 30,673 | py | Python | tx_test.py | benharold/hardforkhelp | 5300f68847a56451a7272dc345e3c9a3109170c7 | [
"MIT"
] | null | null | null | tx_test.py | benharold/hardforkhelp | 5300f68847a56451a7272dc345e3c9a3109170c7 | [
"MIT"
] | null | null | null | tx_test.py | benharold/hardforkhelp | 5300f68847a56451a7272dc345e3c9a3109170c7 | [
"MIT"
] | null | null | null | from binascii import hexlify, unhexlify
from io import BytesIO
from unittest import TestCase
from ecc import PrivateKey, S256Point, Signature
from helper import (
p2pkh_script,
SIGHASH_ALL,
)
from script import Script
from tx import Tx, TxIn, TxOut, BCDTx, BTGTx, SBTCTx, BCHTx, B2XTx
class TxTest(TestCase):
... | 96.153605 | 3,370 | 0.857334 | 1,363 | 30,673 | 19.082172 | 0.142333 | 0.009997 | 0.014764 | 0.01661 | 0.336345 | 0.322273 | 0.303433 | 0.294898 | 0.288631 | 0.287208 | 0 | 0.493355 | 0.099697 | 30,673 | 318 | 3,371 | 96.455975 | 0.448488 | 0.001239 | 0 | 0.327526 | 0 | 0 | 0.65955 | 0.657657 | 0 | 1 | 0.000979 | 0 | 0.167247 | 1 | 0.087108 | false | 0 | 0.02439 | 0 | 0.114983 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5d8c11439565c2bf602cfa6ed28961499a6f1eb8 | 5,381 | py | Python | Zebrafish spinal locomotor circuit/Version 2/Double_coiling_with_sigmas.py | Bui-lab/Code | 6ce5972a4bd0c059ab167522ab1d945f3b0f5707 | [
"MIT"
] | null | null | null | Zebrafish spinal locomotor circuit/Version 2/Double_coiling_with_sigmas.py | Bui-lab/Code | 6ce5972a4bd0c059ab167522ab1d945f3b0f5707 | [
"MIT"
] | null | null | null | Zebrafish spinal locomotor circuit/Version 2/Double_coiling_with_sigmas.py | Bui-lab/Code | 6ce5972a4bd0c059ab167522ab1d945f3b0f5707 | [
"MIT"
] | 2 | 2021-08-25T08:14:52.000Z | 2021-11-29T12:56:17.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 25 08:41:10 2017
@author: Yann Roussel and Tuan Bui
Edited by: Emine Topcu on Sep 2021
"""
from random import gauss
from Izhikevich_class import Izhikevich_9P, Leaky_Integrator
from Double_coiling_model import Double_coil_base
class Double_coil_wi... | 76.871429 | 365 | 0.64003 | 1,042 | 5,381 | 3.259117 | 0.113244 | 0.173145 | 0.288575 | 0.442874 | 0.776207 | 0.770318 | 0.770318 | 0.753239 | 0.736749 | 0.736749 | 0 | 0.097368 | 0.152574 | 5,381 | 69 | 366 | 77.985507 | 0.647368 | 0.031778 | 0 | 0.04878 | 0 | 0 | 0.007312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.073171 | 0.097561 | 0.463415 | 0.073171 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5dc99f31e008fba7d441858e4cdd266aeb18043a | 5,886 | py | Python | obsolete/fixtures/rybaodessa_forum.py | telegrambotdev/telegram.email.notify | d16880819b2f1887b0e0f0b9841de2a122d81dd6 | [
"MIT"
] | null | null | null | obsolete/fixtures/rybaodessa_forum.py | telegrambotdev/telegram.email.notify | d16880819b2f1887b0e0f0b9841de2a122d81dd6 | [
"MIT"
] | null | null | null | obsolete/fixtures/rybaodessa_forum.py | telegrambotdev/telegram.email.notify | d16880819b2f1887b0e0f0b9841de2a122d81dd6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
source1 = """
Тилигульский лиман
Одесский Клуб Рыболовов Здравствуйте, VinsT!
мирон 2 опубликовал комментарий в тему, Тилигульский лиман
мирон 2 опубликовал(а): 14 часа назад, Ігор сказал:
Можно связывать канатом использованые шины и притапливать в лимане. Их быстро освоят мидии и другие ... | 36.110429 | 192 | 0.766395 | 817 | 5,886 | 5.514076 | 0.237454 | 0.031964 | 0.055938 | 0.035516 | 0.91232 | 0.896115 | 0.896115 | 0.896115 | 0.88879 | 0.88879 | 0 | 0.028763 | 0.137615 | 5,886 | 162 | 193 | 36.333333 | 0.858747 | 0.003568 | 0 | 0.731481 | 0 | 0.111111 | 0.962988 | 0.020638 | 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 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
f8e59d2b8f414a2a0e880f95b984373c6e0bd6df | 171 | py | Python | tests/utils/test_helper_synonym.py | alphagov-mirror/govuk-entity-personalisation | a674bca4c15691fe2c4e32ea213dfccf3cb0e8ec | [
"MIT"
] | 1 | 2021-02-15T17:35:59.000Z | 2021-02-15T17:35:59.000Z | tests/utils/test_helper_synonym.py | alphagov-mirror/govuk-entity-personalisation | a674bca4c15691fe2c4e32ea213dfccf3cb0e8ec | [
"MIT"
] | 16 | 2020-11-30T14:41:31.000Z | 2021-09-09T15:33:46.000Z | tests/utils/test_helper_synonym.py | alphagov-mirror/govuk-entity-personalisation | a674bca4c15691fe2c4e32ea213dfccf3cb0e8ec | [
"MIT"
] | 4 | 2020-12-14T17:36:31.000Z | 2021-04-10T20:12:46.000Z | from src.utils.helper_synonym import get_synonym_all
def test_get_synonym_all(terms_synonyms):
assert get_synonym_all(terms=terms_synonyms.keys()) == terms_synonyms
| 28.5 | 73 | 0.830409 | 26 | 171 | 5.038462 | 0.538462 | 0.229008 | 0.29771 | 0.274809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093567 | 171 | 5 | 74 | 34.2 | 0.845161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
f8fac0b04fde68dfb9b4133f0f134bf699bd57ba | 63,245 | py | Python | sympy/assumptions/tests/test_query.py | josephmisiti/sympy | 683ccf471a826a75235694ae1ba3dd935d5c8e12 | [
"BSD-3-Clause"
] | 1 | 2020-12-27T18:43:22.000Z | 2020-12-27T18:43:22.000Z | sympy/assumptions/tests/test_query.py | josephmisiti/sympy | 683ccf471a826a75235694ae1ba3dd935d5c8e12 | [
"BSD-3-Clause"
] | null | null | null | sympy/assumptions/tests/test_query.py | josephmisiti/sympy | 683ccf471a826a75235694ae1ba3dd935d5c8e12 | [
"BSD-3-Clause"
] | null | null | null | from sympy.utilities.pytest import raises, XFAIL
from sympy.utilities.pytest import raises, XFAIL
from sympy.core import Symbol, symbols, S, Rational, Integer, I, pi, oo
from sympy.functions import exp, log, sin, cos, sign, re, im, sqrt, Abs
from sympy.assumptions import (global_assumptions, Q, ask,
register_handl... | 49.681854 | 132 | 0.580473 | 10,606 | 63,245 | 3.45182 | 0.016877 | 0.233051 | 0.257307 | 0.118929 | 0.934908 | 0.882737 | 0.842393 | 0.816799 | 0.760202 | 0.665447 | 0 | 0.004939 | 0.212412 | 63,245 | 1,272 | 133 | 49.720912 | 0.73004 | 0.004965 | 0 | 0.294384 | 0 | 0 | 0.003639 | 0 | 0 | 0 | 0 | 0.000786 | 0.860507 | 0 | null | null | 0.000906 | 0.009964 | null | null | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
5d19ef0a7015aa6d5a530b6b72f64787c15f7a25 | 7,457 | py | Python | tests/test_basic.py | TukamotoRyuzo/jpholiday | 1527533fd975513297d637198bdf468d0c7c65f1 | [
"MIT"
] | null | null | null | tests/test_basic.py | TukamotoRyuzo/jpholiday | 1527533fd975513297d637198bdf468d0c7c65f1 | [
"MIT"
] | null | null | null | tests/test_basic.py | TukamotoRyuzo/jpholiday | 1527533fd975513297d637198bdf468d0c7c65f1 | [
"MIT"
] | null | null | null | # coding: utf-8
import datetime
import unittest
import jpholiday
import jpholiday.holiday
class TestBasic(unittest.TestCase):
# Init
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def test_original_holiday(self):
"""
独自の休み
"""
class TestHo... | 63.194915 | 98 | 0.750034 | 833 | 7,457 | 6.446579 | 0.120048 | 0.198324 | 0.317318 | 0.357914 | 0.850093 | 0.845065 | 0.836499 | 0.836499 | 0.776536 | 0.050279 | 0 | 0.070577 | 0.144964 | 7,457 | 117 | 99 | 63.735043 | 0.77133 | 0.006169 | 0 | 0.021739 | 0 | 0 | 0.008449 | 0 | 0 | 0 | 0 | 0 | 0.771739 | 1 | 0.076087 | false | 0 | 0.043478 | 0.01087 | 0.184783 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
5d214d72b1c6a38180b59ebfa2843fd1ca9144bb | 5,957 | py | Python | tests/test_v1/test_orders.py | matthewacha/BookAMeal | 6af638a4cf71d72dd2a5fa80ba0e908b7ef70cf5 | [
"MIT"
] | null | null | null | tests/test_v1/test_orders.py | matthewacha/BookAMeal | 6af638a4cf71d72dd2a5fa80ba0e908b7ef70cf5 | [
"MIT"
] | null | null | null | tests/test_v1/test_orders.py | matthewacha/BookAMeal | 6af638a4cf71d72dd2a5fa80ba0e908b7ef70cf5 | [
"MIT"
] | 1 | 2018-08-20T11:57:23.000Z | 2018-08-20T11:57:23.000Z | import unittest
import json
from app import APP
def login(tester):
tester.post('api/v1/auth/signup',content_type='application/json',
data =json.dumps( dict(email='men@gmail.com',
password='lantern')))
login = tester.post... | 43.481752 | 80 | 0.512674 | 644 | 5,957 | 4.650621 | 0.141304 | 0.113523 | 0.147579 | 0.190985 | 0.832721 | 0.820033 | 0.8 | 0.777295 | 0.749249 | 0.703172 | 0 | 0.016406 | 0.35538 | 5,957 | 136 | 81 | 43.801471 | 0.763542 | 0.052711 | 0 | 0.639175 | 0 | 0 | 0.1426 | 0 | 0 | 0 | 0 | 0 | 0.051546 | 1 | 0.082474 | false | 0.020619 | 0.030928 | 0 | 0.14433 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5d281d9a6af3b46a5276e67f16465bbf555e1e75 | 10,452 | py | Python | RESSPyLab/vc_li_opt_constraints.py | ioannis-vm/RESSPyLab | 306fc24d5f8ece8f2f2de274b56b80ba2019f605 | [
"MIT"
] | 7 | 2019-10-15T09:16:41.000Z | 2021-09-24T11:28:45.000Z | RESSPyLab/vc_li_opt_constraints.py | ioannis-vm/RESSPyLab | 306fc24d5f8ece8f2f2de274b56b80ba2019f605 | [
"MIT"
] | 3 | 2020-10-22T14:27:22.000Z | 2021-11-15T17:46:49.000Z | RESSPyLab/vc_li_opt_constraints.py | ioannis-vm/RESSPyLab | 306fc24d5f8ece8f2f2de274b56b80ba2019f605 | [
"MIT"
] | 6 | 2019-07-22T05:47:10.000Z | 2021-10-24T02:06:26.000Z | """@package sqp_linsearch
Constraints on the original Voce-Chaboche model for limited information optimization.
"""
from numdifftools import nd_algopy as nda
import numpy as np
def g3_vco_upper(x, constants, variables):
""" Constraint on the maximum ratio of stress at saturation to initial yield stress for the or... | 34.045603 | 116 | 0.706946 | 1,614 | 10,452 | 4.343866 | 0.072491 | 0.12837 | 0.081301 | 0.062759 | 0.949365 | 0.926259 | 0.904293 | 0.895735 | 0.885751 | 0.885751 | 0 | 0.024299 | 0.20465 | 10,452 | 306 | 117 | 34.156863 | 0.819079 | 0.297742 | 0 | 0.707865 | 0 | 0 | 0.019718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.168539 | false | 0 | 0.011236 | 0 | 0.348315 | 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 |
5d3ff607d5b3958835bd47f3f3c2531f8a4e249f | 14,953 | py | Python | xd/xview3/vessel_class/augmentation.py | smly/xview3-kohei-solution | f6933ff437240c6c07fd61c3bd4290b639d17531 | [
"MIT"
] | 2 | 2022-01-14T08:00:34.000Z | 2022-01-17T12:42:44.000Z | xd/xview3/vessel_class/augmentation.py | smly/xview3-kohei-solution | f6933ff437240c6c07fd61c3bd4290b639d17531 | [
"MIT"
] | null | null | null | xd/xview3/vessel_class/augmentation.py | smly/xview3-kohei-solution | f6933ff437240c6c07fd61c3bd4290b639d17531 | [
"MIT"
] | 1 | 2022-01-31T21:25:21.000Z | 2022-01-31T21:25:21.000Z | import albumentations as albu
def get_xview3_augv3(**kwargs):
train_transform = albu.Compose(
[
albu.RandomRotate90(p=0.3),
albu.HorizontalFlip(p=0.3),
albu.OneOf(
[
albu.RandomBrightnessContrast(0.1, p=1),
albu.Ra... | 27.742115 | 60 | 0.397044 | 1,557 | 14,953 | 3.693642 | 0.044316 | 0.018084 | 0.024517 | 0.042601 | 0.978786 | 0.978786 | 0.978786 | 0.976178 | 0.971483 | 0.971483 | 0 | 0.156698 | 0.482311 | 14,953 | 538 | 61 | 27.79368 | 0.586229 | 0.011302 | 0 | 0.799607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023576 | false | 0 | 0.001965 | 0 | 0.049116 | 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 |
5398d6e53e0ac2553fdeccfb76cf9a3d4c4dbfcf | 136 | py | Python | models/__init__.py | ZeroMove/classification_Tensorflow_Proj | d89bf3a999415c18f6ee3a1248ce7497b955b47f | [
"MIT"
] | 9 | 2019-08-15T06:29:43.000Z | 2022-03-28T14:59:48.000Z | models/__init__.py | ZeroMove/classification_Tensorflow_Proj | d89bf3a999415c18f6ee3a1248ce7497b955b47f | [
"MIT"
] | null | null | null | models/__init__.py | ZeroMove/classification_Tensorflow_Proj | d89bf3a999415c18f6ee3a1248ce7497b955b47f | [
"MIT"
] | 1 | 2019-08-20T01:42:26.000Z | 2019-08-20T01:42:26.000Z | # -*-coding:utf-8-*-
from .simple_model import *
from .resnet_v1_50 import *
from .resnet_v1_101 import *
from .resnet_v1_152 import *
| 19.428571 | 28 | 0.735294 | 22 | 136 | 4.227273 | 0.545455 | 0.322581 | 0.516129 | 0.580645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 0.139706 | 136 | 6 | 29 | 22.666667 | 0.692308 | 0.132353 | 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 |
53c5608803cf8c236a6396203c395db13e97ccea | 42,948 | py | Python | build/PureCloudPlatformClientV2/apis/web_deployments_api.py | MyPureCloud/platform-client-sdk-python | 51249f4c655a1c8a67561c9eaa852ef95e25e57d | [
"MIT"
] | 10 | 2019-02-22T00:27:08.000Z | 2021-09-12T23:23:44.000Z | build/PureCloudPlatformClientV2/apis/web_deployments_api.py | MyPureCloud/platform-client-sdk-python | 51249f4c655a1c8a67561c9eaa852ef95e25e57d | [
"MIT"
] | 5 | 2018-06-07T08:32:00.000Z | 2021-07-28T17:37:26.000Z | build/PureCloudPlatformClientV2/apis/web_deployments_api.py | MyPureCloud/platform-client-sdk-python | 51249f4c655a1c8a67561c9eaa852ef95e25e57d | [
"MIT"
] | 6 | 2020-04-09T17:43:07.000Z | 2022-02-17T08:48:05.000Z | # coding: utf-8
"""
WebDeploymentsApi.py
Copyright 2016 SmartBear Software
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 req... | 40.10084 | 153 | 0.567128 | 3,957 | 42,948 | 5.949962 | 0.053323 | 0.039755 | 0.023191 | 0.020982 | 0.917771 | 0.908087 | 0.893858 | 0.884004 | 0.878228 | 0.87088 | 0 | 0.000939 | 0.35557 | 42,948 | 1,070 | 154 | 40.138318 | 0.849731 | 0.25929 | 0 | 0.845045 | 0 | 0 | 0.21368 | 0.076445 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025225 | false | 0 | 0.012613 | 0 | 0.063063 | 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 |
53d84e701658fdae265dfca874e495599929a238 | 115 | py | Python | app/routes/yesterday/__init__.py | ygorazambuja/covid-scrapper | 6c714a47c00773fe0391d040dcfed57258d98c07 | [
"MIT"
] | 7 | 2020-03-28T03:50:07.000Z | 2020-09-30T02:49:10.000Z | app/routes/yesterday/__init__.py | ygorazambuja/covid-scrapper | 6c714a47c00773fe0391d040dcfed57258d98c07 | [
"MIT"
] | 2 | 2020-03-28T03:27:18.000Z | 2020-11-03T01:37:39.000Z | app/routes/yesterday/__init__.py | ygorazambuja/covid-scrapper | 6c714a47c00773fe0391d040dcfed57258d98c07 | [
"MIT"
] | null | null | null | from flask import Blueprint
yesterday_blueprint = Blueprint('yesterday_blueprint', __name__)
from . import views
| 19.166667 | 64 | 0.817391 | 13 | 115 | 6.769231 | 0.538462 | 0.409091 | 0.613636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121739 | 115 | 5 | 65 | 23 | 0.871287 | 0 | 0 | 0 | 0 | 0 | 0.165217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 7 |
53f379e8d81f38631284718794ef655bee8b5d9e | 7,342 | py | Python | NiaPy/benchmarks/schaffer.py | lukapecnik/NiaPy | a40ac08a4c06a13019ec5e39cc137461884928b0 | [
"MIT"
] | 1 | 2020-03-16T11:15:43.000Z | 2020-03-16T11:15:43.000Z | NiaPy/benchmarks/schaffer.py | lukapecnik/NiaPy | a40ac08a4c06a13019ec5e39cc137461884928b0 | [
"MIT"
] | null | null | null | NiaPy/benchmarks/schaffer.py | lukapecnik/NiaPy | a40ac08a4c06a13019ec5e39cc137461884928b0 | [
"MIT"
] | 1 | 2020-03-25T16:20:36.000Z | 2020-03-25T16:20:36.000Z | # encoding=utf8
"""Implementations of Schaffer benchmarks."""
from math import sin, cos, sqrt
from NiaPy.benchmarks.benchmark import Benchmark
__all__ = ["SchafferN2", "SchafferN4", "ExpandedSchaffer"]
class SchafferN2(Benchmark):
r"""Implementations of Schaffer N. 2 functions.
Date: 2018
Author: Kle... | 30.213992 | 218 | 0.528466 | 1,090 | 7,342 | 3.458716 | 0.110092 | 0.015915 | 0.025464 | 0.029708 | 0.892042 | 0.886737 | 0.867639 | 0.864191 | 0.852255 | 0.837666 | 0 | 0.09512 | 0.288341 | 7,342 | 242 | 219 | 30.338843 | 0.625837 | 0.618769 | 0 | 0.48 | 0 | 0.06 | 0.241913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26 | false | 0 | 0.04 | 0.06 | 0.62 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
54fcf7b7e772c8ddb0c5489080d6c9e01977dafd | 220 | py | Python | src/recording_script_generator/core/selection/__init__.py | stefantaubert/recording-script-generator | 01cdcd4b85ed7f245f4bb8535d870c04472746c9 | [
"MIT"
] | null | null | null | src/recording_script_generator/core/selection/__init__.py | stefantaubert/recording-script-generator | 01cdcd4b85ed7f245f4bb8535d870c04472746c9 | [
"MIT"
] | null | null | null | src/recording_script_generator/core/selection/__init__.py | stefantaubert/recording-script-generator | 01cdcd4b85ed7f245f4bb8535d870c04472746c9 | [
"MIT"
] | null | null | null | from recording_script_generator.core.selection.detection import *
from recording_script_generator.core.selection.modify import (
add_to_selection_inplace, remove_from_selection_inplace,
select_selection_inplace)
| 44 | 65 | 0.863636 | 27 | 220 | 6.592593 | 0.518519 | 0.269663 | 0.213483 | 0.314607 | 0.460674 | 0.460674 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086364 | 220 | 4 | 66 | 55 | 0.885572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
074481682d519769c4063b41fd4b09a0f8dc104a | 219 | py | Python | tests/context.py | davidkwast/space_cube | 63e8c26245234e6151e73cceb55cbd701e501c3c | [
"MIT"
] | null | null | null | tests/context.py | davidkwast/space_cube | 63e8c26245234e6151e73cceb55cbd701e501c3c | [
"MIT"
] | null | null | null | tests/context.py | davidkwast/space_cube | 63e8c26245234e6151e73cceb55cbd701e501c3c | [
"MIT"
] | 1 | 2019-08-08T01:50:52.000Z | 2019-08-08T01:50:52.000Z | import os
import sys
print()
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__),'..')))
# sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__),'../game')))
print(sys.path)
| 21.9 | 88 | 0.703196 | 37 | 219 | 3.945946 | 0.324324 | 0.246575 | 0.164384 | 0.191781 | 0.739726 | 0.739726 | 0.739726 | 0.739726 | 0.739726 | 0.739726 | 0 | 0.009756 | 0.063927 | 219 | 9 | 89 | 24.333333 | 0.702439 | 0.392694 | 0 | 0 | 0 | 0 | 0.015267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0.4 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 10 |
0747e7ffdfee3af099a0ae9f61557a96426dd7d7 | 121,791 | py | Python | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_infra_objmgr_oper.py | CiscoDevNet/ydk-py | 073731fea50694d0bc6cd8ebf10fec308dcc0aa9 | [
"ECL-2.0",
"Apache-2.0"
] | 177 | 2016-03-15T17:03:51.000Z | 2022-03-18T16:48:44.000Z | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_infra_objmgr_oper.py | CiscoDevNet/ydk-py | 073731fea50694d0bc6cd8ebf10fec308dcc0aa9 | [
"ECL-2.0",
"Apache-2.0"
] | 18 | 2016-03-30T10:45:22.000Z | 2020-07-14T16:28:13.000Z | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_infra_objmgr_oper.py | CiscoDevNet/ydk-py | 073731fea50694d0bc6cd8ebf10fec308dcc0aa9 | [
"ECL-2.0",
"Apache-2.0"
] | 85 | 2016-03-16T20:38:57.000Z | 2022-02-22T04:26:02.000Z | """ Cisco_IOS_XR_infra_objmgr_oper
This module contains a collection of YANG definitions
for Cisco IOS\-XR infra\-objmgr package operational data.
This module contains definitions
for the following management objects\:
object\-group\: Object\-group operational data
Copyright (c) 2013\-2018 by Cisco Systems, Inc.
... | 40.301456 | 488 | 0.437668 | 10,650 | 121,791 | 4.723099 | 0.029296 | 0.030536 | 0.03817 | 0.030715 | 0.944415 | 0.932049 | 0.917954 | 0.904932 | 0.889525 | 0.884038 | 0 | 0.033118 | 0.453827 | 121,791 | 3,021 | 489 | 40.314796 | 0.723072 | 0.201329 | 0 | 0.790717 | 0 | 0.004072 | 0.112477 | 0.032497 | 0 | 0 | 0 | 0 | 0 | 1 | 0.099349 | false | 0 | 0.041531 | 0 | 0.299674 | 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 |
075cfb092c585adc98ff2da4ee61baf23289dea2 | 134 | py | Python | nami/datasets/__init__.py | namirinz/nami | b74b3d302aa241470ce6ae210c5a2f0e09dd8bf2 | [
"MIT"
] | 2 | 2020-08-03T10:37:45.000Z | 2020-10-11T14:55:05.000Z | nami/datasets/__init__.py | namirinz/nami | b74b3d302aa241470ce6ae210c5a2f0e09dd8bf2 | [
"MIT"
] | null | null | null | nami/datasets/__init__.py | namirinz/nami | b74b3d302aa241470ce6ae210c5a2f0e09dd8bf2 | [
"MIT"
] | null | null | null | from nami.datasets.ImageNet import get_nounids
from nami.datasets.ImageNet import get_dataset
from nami.datasets.kme import load_data
| 33.5 | 46 | 0.865672 | 21 | 134 | 5.380952 | 0.52381 | 0.212389 | 0.424779 | 0.424779 | 0.584071 | 0.584071 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089552 | 134 | 3 | 47 | 44.666667 | 0.92623 | 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 |
ab1f83113bd231ecbf2157f70e17c31981fa8fde | 40 | py | Python | base_session_store_psql/__init__.py | agenterpgmbh/misc-addons | 27e36d119b1e73089a2ebfcd8d4cfc706c8f1f41 | [
"MIT"
] | null | null | null | base_session_store_psql/__init__.py | agenterpgmbh/misc-addons | 27e36d119b1e73089a2ebfcd8d4cfc706c8f1f41 | [
"MIT"
] | 1 | 2020-05-03T04:27:29.000Z | 2020-05-03T04:27:29.000Z | base_session_store_psql/__init__.py | eneldoserrata/misc-addons | 6f3b94d8a71d603d9ad449f96edfc66385e78080 | [
"MIT"
] | 2 | 2020-05-09T02:08:59.000Z | 2022-03-21T06:37:15.000Z | def post_load():
from . import http
| 13.333333 | 22 | 0.65 | 6 | 40 | 4.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 40 | 2 | 23 | 20 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0.5 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
ab246271c210490a762ddc4ad1285a316ca2ba1f | 6,371 | py | Python | dbbackup/tests/functional/test_commands.py | amolinaalvarez/django-dbbackup | 9316ed14d3b4be18662fa5fd24f124a5d6014c8e | [
"BSD-3-Clause"
] | null | null | null | dbbackup/tests/functional/test_commands.py | amolinaalvarez/django-dbbackup | 9316ed14d3b4be18662fa5fd24f124a5d6014c8e | [
"BSD-3-Clause"
] | null | null | null | dbbackup/tests/functional/test_commands.py | amolinaalvarez/django-dbbackup | 9316ed14d3b4be18662fa5fd24f124a5d6014c8e | [
"BSD-3-Clause"
] | 1 | 2018-10-08T20:37:35.000Z | 2018-10-08T20:37:35.000Z | from mock import patch
from django.test import TransactionTestCase as TestCase
from django.core.management import execute_from_command_line
from dbbackup.tests.utils import (TEST_DATABASE, HANDLED_FILES,
clean_gpg_keys, add_public_gpg,
add_private_gp... | 39.08589 | 85 | 0.645895 | 689 | 6,371 | 5.738752 | 0.155298 | 0.05564 | 0.091047 | 0.11128 | 0.858118 | 0.844208 | 0.816388 | 0.806272 | 0.792109 | 0.638088 | 0 | 0.004785 | 0.212682 | 6,371 | 162 | 86 | 39.32716 | 0.783493 | 0.066081 | 0 | 0.717949 | 0 | 0 | 0.171925 | 0.04876 | 0 | 0 | 0 | 0 | 0.188034 | 1 | 0.153846 | false | 0.034188 | 0.042735 | 0 | 0.222222 | 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 |
ab2a26b03a2fe852eacb1d314e1bf98193fe68c3 | 513 | py | Python | python/testData/inspections/PyAugmentAssignmentInspection/differentOperations.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2018-12-29T09:53:39.000Z | 2018-12-29T09:53:42.000Z | python/testData/inspections/PyAugmentAssignmentInspection/differentOperations.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyAugmentAssignmentInspection/differentOperations.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | # PY-2488
<weak_warning descr="Assignment can be replaced with augmented assignment">a = a ** 1</weak_warning>
<weak_warning descr="Assignment can be replaced with augmented assignment">x = x % 3</weak_warning>
<weak_warning descr="Assignment can be replaced with augmented assignment">x = x | 3</weak_warning>
<weak_wa... | 57 | 100 | 0.77193 | 77 | 513 | 5.012987 | 0.194805 | 0.284974 | 0.207254 | 0.336788 | 0.976684 | 0.976684 | 0.976684 | 0.976684 | 0.976684 | 0.976684 | 0 | 0.020045 | 0.124756 | 513 | 8 | 101 | 64.125 | 0.839644 | 0.013645 | 0 | 0 | 0 | 0 | 0.516899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
ab41312a18a7bd0228e5db20d48130827db7562b | 200 | py | Python | facilyst/graphs/utils.py | ParthivNaresh/Facilyst | 786932b0afcf07cd300b2e6ce55ccf7f9e4c49d9 | [
"MIT"
] | null | null | null | facilyst/graphs/utils.py | ParthivNaresh/Facilyst | 786932b0afcf07cd300b2e6ce55ccf7f9e4c49d9 | [
"MIT"
] | 3 | 2022-02-26T17:19:28.000Z | 2022-03-01T09:34:19.000Z | facilyst/graphs/utils.py | ParthivNaresh/facilyst | 786932b0afcf07cd300b2e6ce55ccf7f9e4c49d9 | [
"MIT"
] | null | null | null | """Utility functions for all graphs."""
from facilyst.graphs import GraphBase
from facilyst.utils.gen_utils import _get_subclasses
def _all_graph_data_types():
return _get_subclasses(GraphBase)
| 25 | 52 | 0.81 | 27 | 200 | 5.666667 | 0.666667 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115 | 200 | 7 | 53 | 28.571429 | 0.864407 | 0.165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
ab4c45b0271d5f557bd0c778aa28b41392adc6e3 | 3,658 | py | Python | PacMan/setup.py | akshitgoyal/PacMan | bc68806169f59118ef9f62af3f14d8e82c692bfd | [
"MIT"
] | 1 | 2020-07-21T02:17:58.000Z | 2020-07-21T02:17:58.000Z | PacMan/setup.py | akshitgoyal/PacMan | bc68806169f59118ef9f62af3f14d8e82c692bfd | [
"MIT"
] | null | null | null | PacMan/setup.py | akshitgoyal/PacMan | bc68806169f59118ef9f62af3f14d8e82c692bfd | [
"MIT"
] | 1 | 2021-07-13T21:21:46.000Z | 2021-07-13T21:21:46.000Z | from setuptools import setup
setup(
name='Pacman',
version='1.1',
packages=['venv.Lib.site-packages.pip-19.0.3-py3.5.egg.pip',
'venv.Lib.site-packages.pip-19.0.3-py3.5.egg.pip._vendor',
'venv.Lib.site-packages.pip-19.0.3-py3.5.egg.pip._vendor.idna',
'venv.Lib.site-... | 69.018868 | 108 | 0.631219 | 608 | 3,658 | 3.720395 | 0.108553 | 0.126879 | 0.199381 | 0.344386 | 0.854553 | 0.854553 | 0.854553 | 0.854553 | 0.854553 | 0.854553 | 0 | 0.087679 | 0.176873 | 3,658 | 52 | 109 | 70.346154 | 0.663567 | 0 | 0 | 0 | 0 | 0.803922 | 0.756698 | 0.75205 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.019608 | 0 | 0.019608 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
ab57de8f68240788175d6f1b17be74b7baf0f3af | 4,518 | py | Python | src/quota/azext_quota/generated/custom.py | haroonf/azure-cli-extensions | 61c044d34c224372f186934fa7c9313f1cd3a525 | [
"MIT"
] | 1 | 2022-01-25T07:33:18.000Z | 2022-01-25T07:33:18.000Z | src/quota/azext_quota/generated/custom.py | haroonf/azure-cli-extensions | 61c044d34c224372f186934fa7c9313f1cd3a525 | [
"MIT"
] | 9 | 2022-03-25T19:35:49.000Z | 2022-03-31T06:09:47.000Z | src/quota/azext_quota/generated/custom.py | haroonf/azure-cli-extensions | 61c044d34c224372f186934fa7c9313f1cd3a525 | [
"MIT"
] | 1 | 2022-03-10T22:13:02.000Z | 2022-03-10T22:13:02.000Z | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incor... | 35.296875 | 76 | 0.573484 | 490 | 4,518 | 5.042857 | 0.197959 | 0.126265 | 0.174828 | 0.203966 | 0.788345 | 0.759207 | 0.759207 | 0.759207 | 0.759207 | 0.759207 | 0 | 0.002557 | 0.307437 | 4,518 | 127 | 77 | 35.574803 | 0.787152 | 0.104028 | 0 | 0.765306 | 0 | 0 | 0.095616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091837 | false | 0 | 0.020408 | 0.071429 | 0.204082 | 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 |
db912081fb1e33730a3938570edc207b8ad95702 | 20,889 | py | Python | senlin/tests/unit/db/test_lock_api.py | chenyb4/senlin | 8b9ec31566890dc9989fe08e221172d37c0451b4 | [
"Apache-2.0"
] | null | null | null | senlin/tests/unit/db/test_lock_api.py | chenyb4/senlin | 8b9ec31566890dc9989fe08e221172d37c0451b4 | [
"Apache-2.0"
] | null | null | null | senlin/tests/unit/db/test_lock_api.py | chenyb4/senlin | 8b9ec31566890dc9989fe08e221172d37c0451b4 | [
"Apache-2.0"
] | null | null | null | # 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 writing, software
# distributed under t... | 40.640078 | 76 | 0.624539 | 2,580 | 20,889 | 4.860853 | 0.07093 | 0.043059 | 0.074635 | 0.079101 | 0.895702 | 0.889881 | 0.861734 | 0.841719 | 0.835898 | 0.798262 | 0 | 0.01939 | 0.279094 | 20,889 | 513 | 77 | 40.719298 | 0.813401 | 0.158983 | 0 | 0.784566 | 0 | 0 | 0.011501 | 0 | 0 | 0 | 0 | 0 | 0.385852 | 1 | 0.054662 | false | 0 | 0.016077 | 0 | 0.080386 | 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 |
dba92be26c9de4f86b5981a6feb5526a87d0b0f4 | 4,789 | py | Python | sports_manager/tests/team/tests_team_delete_view.py | hbuyse/dj-sports-manager | 7e32cc41347b968b4ede9ea6846de14d9504c3f9 | [
"MIT"
] | null | null | null | sports_manager/tests/team/tests_team_delete_view.py | hbuyse/dj-sports-manager | 7e32cc41347b968b4ede9ea6846de14d9504c3f9 | [
"MIT"
] | null | null | null | sports_manager/tests/team/tests_team_delete_view.py | hbuyse/dj-sports-manager | 7e32cc41347b968b4ede9ea6846de14d9504c3f9 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# coding=utf-8
"""Tests the views."""
# Django
from django.test import TestCase
from django.urls import reverse
from ..helper import create_team, create_user
class TestTeamUpdateViewAsAnonymous(TestCase):
"""Tests UpdateView for Post."""
def setUp(self):
"""Set up the tests.... | 36.007519 | 116 | 0.644602 | 599 | 4,789 | 5.040067 | 0.106845 | 0.069559 | 0.083471 | 0.111295 | 0.903279 | 0.903279 | 0.903279 | 0.903279 | 0.889367 | 0.889367 | 0 | 0.010264 | 0.18626 | 4,789 | 132 | 117 | 36.280303 | 0.764434 | 0.060347 | 0 | 0.84058 | 0 | 0 | 0.132969 | 0.081967 | 0 | 0 | 0 | 0 | 0.362319 | 1 | 0.231884 | false | 0.130435 | 0.043478 | 0 | 0.333333 | 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 |
91a0b7b8e71f8fd8403361e9022d1e11cf8bf31e | 2,279 | py | Python | UserAuth/myapp/models.py | incomparable1992/django-user-authenications | 7e6063c86219e757cf8d4215b338f289df024ad1 | [
"Apache-2.0"
] | null | null | null | UserAuth/myapp/models.py | incomparable1992/django-user-authenications | 7e6063c86219e757cf8d4215b338f289df024ad1 | [
"Apache-2.0"
] | 2 | 2020-06-06T01:03:33.000Z | 2021-06-10T22:25:18.000Z | UserAuth/myapp/models.py | incomparable1992/django-user-authenications | 7e6063c86219e757cf8d4215b338f289df024ad1 | [
"Apache-2.0"
] | null | null | null | from django.db import models
# Create your models here.
class School(models.Model):
name = models.CharField(max_length=30, blank=True, null=True)
location = models.CharField(max_length=30, blank=True, null=True)
email = models.EmailField(max_length=30, blank=True, null=True)
phone = models.BigInteger... | 39.293103 | 137 | 0.694164 | 306 | 2,279 | 5.022876 | 0.176471 | 0.1054 | 0.101496 | 0.132726 | 0.898504 | 0.898504 | 0.898504 | 0.898504 | 0.875732 | 0.823683 | 0 | 0.01123 | 0.179465 | 2,279 | 57 | 138 | 39.982456 | 0.810695 | 0.010531 | 0 | 0.767442 | 0 | 0 | 0.137594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.023256 | 0.069767 | 0.790698 | 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 | 1 | 0 | 0 | 8 |
37e867d1e54d53cb6b81167b8f4eda624240c5d5 | 23,878 | py | Python | maml/datasets/simple_functions.py | vuoristo/MMAML-Regression | 1a8bea4d60461d8814e3c9f91427ed56378716ce | [
"MIT"
] | 13 | 2020-01-04T01:58:29.000Z | 2022-02-26T14:37:15.000Z | maml/datasets/simple_functions.py | vuoristo/MMAML-Regression | 1a8bea4d60461d8814e3c9f91427ed56378716ce | [
"MIT"
] | 1 | 2020-12-10T10:46:51.000Z | 2020-12-13T19:31:38.000Z | maml/datasets/simple_functions.py | vuoristo/MMAML-Regression | 1a8bea4d60461d8814e3c9f91427ed56378716ce | [
"MIT"
] | 3 | 2020-06-22T16:55:29.000Z | 2021-12-06T20:54:37.000Z | import torch
import numpy as np
from maml.datasets.metadataset import Task
def generate_sinusoid_batch(amp_range, phase_range, input_range, num_samples,
batch_size, oracle, bias=0):
amp = np.random.uniform(amp_range[0], amp_range[1], [batch_size])
phase = np.random.uniform(phase_r... | 43.572993 | 104 | 0.611065 | 3,068 | 23,878 | 4.40515 | 0.041721 | 0.059267 | 0.032186 | 0.03374 | 0.831225 | 0.79963 | 0.787051 | 0.773289 | 0.748428 | 0.732815 | 0 | 0.020567 | 0.279169 | 23,878 | 547 | 105 | 43.652651 | 0.764641 | 0.003476 | 0 | 0.736052 | 1 | 0 | 0.015345 | 0 | 0 | 0 | 0 | 0 | 0.004292 | 1 | 0.051502 | false | 0 | 0.006438 | 0 | 0.10515 | 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 |
5331b41acb4a9a98948891720c0859072423e0e6 | 2,696 | py | Python | zentral/contrib/inventory/migrations/0017_auto_20161212_2356.py | arubdesu/zentral | ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190 | [
"Apache-2.0"
] | 634 | 2015-10-30T00:55:40.000Z | 2022-03-31T02:59:00.000Z | zentral/contrib/inventory/migrations/0017_auto_20161212_2356.py | arubdesu/zentral | ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190 | [
"Apache-2.0"
] | 145 | 2015-11-06T00:17:33.000Z | 2022-03-16T13:30:31.000Z | zentral/contrib/inventory/migrations/0017_auto_20161212_2356.py | arubdesu/zentral | ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190 | [
"Apache-2.0"
] | 103 | 2015-11-07T07:08:49.000Z | 2022-03-18T17:34:36.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-12 23:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventory', '0016_auto_20161212_1457'),
]
operations = [
migrations.AlterFi... | 31.348837 | 63 | 0.558605 | 261 | 2,696 | 5.578544 | 0.218391 | 0.192308 | 0.240385 | 0.278846 | 0.749313 | 0.749313 | 0.749313 | 0.749313 | 0.749313 | 0.749313 | 0 | 0.033498 | 0.324555 | 2,696 | 85 | 64 | 31.717647 | 0.766063 | 0.025223 | 0 | 0.717949 | 1 | 0 | 0.103619 | 0.008762 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.064103 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 9 |
533aff3196a31302de588349daa54251c51b77ba | 27,931 | py | Python | chatbot_env/Lib/site-packages/scipy/optimize/_trustregion_constr/tests/test_qp_subproblem.py | rakmakan/Chatbot | d04bc1526b56961a16c25148d9ef18c4f157e9c4 | [
"MIT"
] | 15 | 2020-06-29T08:33:39.000Z | 2022-02-12T00:28:51.000Z | chatbot_env/Lib/site-packages/scipy/optimize/_trustregion_constr/tests/test_qp_subproblem.py | rakmakan/Chatbot | d04bc1526b56961a16c25148d9ef18c4f157e9c4 | [
"MIT"
] | 30 | 2020-04-15T19:37:40.000Z | 2020-04-22T21:19:35.000Z | chatbot_env/Lib/site-packages/scipy/optimize/_trustregion_constr/tests/test_qp_subproblem.py | rakmakan/Chatbot | d04bc1526b56961a16c25148d9ef18c4f157e9c4 | [
"MIT"
] | 11 | 2020-06-29T08:40:24.000Z | 2022-02-24T17:39:16.000Z | import numpy as np
from scipy.sparse import csc_matrix
from scipy.optimize._trustregion_constr.qp_subproblem \
import (eqp_kktfact,
projected_cg,
box_intersections,
sphere_intersections,
box_sphere_intersections,
modified_dogleg)
from scipy.optimize._trust... | 42.970769 | 79 | 0.450789 | 3,266 | 27,931 | 3.674525 | 0.060318 | 0.026998 | 0.08216 | 0.106324 | 0.888509 | 0.865845 | 0.852679 | 0.831014 | 0.813099 | 0.789601 | 0 | 0.06955 | 0.422935 | 27,931 | 649 | 80 | 43.03698 | 0.675022 | 0.085675 | 0 | 0.761341 | 0 | 0 | 0.008637 | 0 | 0 | 0 | 0 | 0 | 0.258383 | 1 | 0.045365 | false | 0 | 0.011834 | 0 | 0.069034 | 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 |
533d270e590d1aae1670c3ce49ad1e7f00286ca6 | 12,189 | py | Python | local_helpers/utils_endpoint.py | monavy/cisco-ise-api-python | c1299bf5256abe3a5acbf8c0c7db9c3f3ae7764c | [
"MIT"
] | 1 | 2020-05-05T15:39:01.000Z | 2020-05-05T15:39:01.000Z | local_helpers/utils_endpoint.py | monavy/cisco-ise-api-python | c1299bf5256abe3a5acbf8c0c7db9c3f3ae7764c | [
"MIT"
] | null | null | null | local_helpers/utils_endpoint.py | monavy/cisco-ise-api-python | c1299bf5256abe3a5acbf8c0c7db9c3f3ae7764c | [
"MIT"
] | 1 | 2020-06-28T09:41:46.000Z | 2020-06-28T09:41:46.000Z | import re
import requests
import json
import time
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
def json_pretty_print(json_dict):
"""pretty print json data"""
return json.dumps(json_dict,
indent... | 33.122283 | 149 | 0.521618 | 1,373 | 12,189 | 4.464676 | 0.108521 | 0.023654 | 0.028711 | 0.044535 | 0.842904 | 0.828874 | 0.796085 | 0.777814 | 0.770962 | 0.749266 | 0 | 0.008582 | 0.359504 | 12,189 | 367 | 150 | 33.212534 | 0.776611 | 0.035196 | 0 | 0.742754 | 0 | 0 | 0.153371 | 0.026713 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.083333 | 0.018116 | null | null | 0.032609 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
7258f9ffed1416cf999c4df96fe44fee81e9f7fb | 3,773 | py | Python | 2020/day17/day17.py | Cece78/advent-of-code | f6883ba2fe847dbaa5f8fea77962e0ef0c3dda1c | [
"MIT"
] | 1 | 2020-12-04T20:15:57.000Z | 2020-12-04T20:15:57.000Z | 2020/day17/day17.py | Cece78/advent-of-code | f6883ba2fe847dbaa5f8fea77962e0ef0c3dda1c | [
"MIT"
] | null | null | null | 2020/day17/day17.py | Cece78/advent-of-code | f6883ba2fe847dbaa5f8fea77962e0ef0c3dda1c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 21 10:20:55 2020
@author: celine.gross
"""
with open('input_day17.txt', 'r') as file:
puzzle = [[l for l in line.strip()] for line in file]
# Part 1
def create_positions(data):
active = set()
for x, row in enumerate(data):
for y, col in enumerate(r... | 29.023077 | 93 | 0.54996 | 605 | 3,773 | 3.322314 | 0.128926 | 0.062687 | 0.104478 | 0.111443 | 0.904975 | 0.899502 | 0.871144 | 0.852239 | 0.852239 | 0.852239 | 0 | 0.034655 | 0.311688 | 3,773 | 130 | 94 | 29.023077 | 0.739315 | 0.040021 | 0 | 0.831461 | 0 | 0 | 0.009421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11236 | false | 0 | 0 | 0 | 0.224719 | 0.022472 | 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 |
f405284bf1626dbadf7e827f5f33c9743650435e | 62 | py | Python | math.py | jonathanmusila/StackOverflowLite | 7e7ca0f5746247afe7d726bdc0326ce2b0e26958 | [
"MIT"
] | null | null | null | math.py | jonathanmusila/StackOverflowLite | 7e7ca0f5746247afe7d726bdc0326ce2b0e26958 | [
"MIT"
] | null | null | null | math.py | jonathanmusila/StackOverflowLite | 7e7ca0f5746247afe7d726bdc0326ce2b0e26958 | [
"MIT"
] | null | null | null | def add(x, y):
return x+y
def sub(x, y):
return x-y
| 8.857143 | 14 | 0.516129 | 14 | 62 | 2.285714 | 0.428571 | 0.25 | 0.5 | 0.5625 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.322581 | 62 | 6 | 15 | 10.333333 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
f426c3eff4c453f9490018934c5b311c447d70fb | 646 | py | Python | venv/Lib/site-packages/tensorflow_core/_api/v2/sysconfig/__init__.py | TEDxVienna/continuum | 85cefbc274fc59e2059c313bc0d3b9b93a34ba6d | [
"MIT"
] | 2 | 2020-09-30T00:11:09.000Z | 2021-10-04T13:00:38.000Z | venv/Lib/site-packages/tensorflow_core/_api/v2/sysconfig/__init__.py | TEDxVienna/continuum | 85cefbc274fc59e2059c313bc0d3b9b93a34ba6d | [
"MIT"
] | null | null | null | venv/Lib/site-packages/tensorflow_core/_api/v2/sysconfig/__init__.py | TEDxVienna/continuum | 85cefbc274fc59e2059c313bc0d3b9b93a34ba6d | [
"MIT"
] | 1 | 2020-06-28T11:47:47.000Z | 2020-06-28T11:47:47.000Z | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""System configuration library.
"""
from __future__ import print_function as _print_function
import sys as _sys
from tensorflow.python.framework.versions import CXX11_ABI_FLAG
from tenso... | 35.888889 | 82 | 0.852941 | 89 | 646 | 5.955056 | 0.483146 | 0.211321 | 0.226415 | 0.211321 | 0.509434 | 0.509434 | 0.34717 | 0 | 0 | 0 | 0 | 0.003401 | 0.089783 | 646 | 17 | 83 | 38 | 0.897959 | 0.241486 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.888889 | 0 | 0.888889 | 0.222222 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
f434e1a83d6c75da6e7829b38b97f0295ae935be | 11,610 | py | Python | saleor/plugins/webhook/tests/test_shippping_exclude_cache.py | siyoola/saleor | 4e52b8655a5570a8ce0a3b1484b4d8b46fbd0ad0 | [
"CC-BY-4.0"
] | 1,392 | 2021-10-06T15:54:28.000Z | 2022-03-31T20:50:55.000Z | saleor/plugins/webhook/tests/test_shippping_exclude_cache.py | siyoola/saleor | 4e52b8655a5570a8ce0a3b1484b4d8b46fbd0ad0 | [
"CC-BY-4.0"
] | 888 | 2021-10-06T10:48:54.000Z | 2022-03-31T11:00:30.000Z | saleor/plugins/webhook/tests/test_shippping_exclude_cache.py | siyoola/saleor | 4e52b8655a5570a8ce0a3b1484b4d8b46fbd0ad0 | [
"CC-BY-4.0"
] | 538 | 2021-10-07T16:21:27.000Z | 2022-03-31T22:58:57.000Z | import json
from unittest import mock
import graphene
from ...base_plugin import ExcludedShippingMethod
from ..const import CACHE_EXCLUDED_SHIPPING_KEY, CACHE_EXCLUDED_SHIPPING_TIME
@mock.patch("saleor.plugins.webhook.shipping.cache.get")
@mock.patch("saleor.plugins.webhook.shipping.cache.set")
@mock.patch("saleor.... | 31.634877 | 88 | 0.710336 | 1,311 | 11,610 | 5.877956 | 0.061022 | 0.093434 | 0.093434 | 0.068518 | 0.981573 | 0.979756 | 0.979756 | 0.979756 | 0.979756 | 0.979756 | 0 | 0.005332 | 0.192248 | 11,610 | 366 | 89 | 31.721311 | 0.816379 | 0.008183 | 0 | 0.793919 | 0 | 0 | 0.196677 | 0.114562 | 0 | 0 | 0 | 0 | 0.040541 | 1 | 0.02027 | false | 0 | 0.016892 | 0 | 0.037162 | 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 |
be745fbc41f8d46e5841c2ad060cd87d3cfbb80d | 9,545 | py | Python | test/send_dummy_vis_data.py | ashishnargundkar/Network-Visualizer | 5f320a889273f98dffa0b46b6ad35607a646065d | [
"MIT"
] | 1 | 2019-10-31T03:59:09.000Z | 2019-10-31T03:59:09.000Z | test/send_dummy_vis_data.py | ashishnargundkar/Network-Visualizer | 5f320a889273f98dffa0b46b6ad35607a646065d | [
"MIT"
] | null | null | null | test/send_dummy_vis_data.py | ashishnargundkar/Network-Visualizer | 5f320a889273f98dffa0b46b6ad35607a646065d | [
"MIT"
] | 9 | 2017-08-17T14:47:27.000Z | 2021-01-27T17:11:41.000Z | import time
import logging
import simplejson as json
import requests
logging.basicConfig(level=logging.INFO)
odd_tick_reqs = [
{
'Data': {
'O1': {
'LinkManager': {
'LN1N2': {
'Stats': {
'sent_bytes_second': '50000',
... | 28.577844 | 74 | 0.280775 | 667 | 9,545 | 3.868066 | 0.137931 | 0.049612 | 0.130233 | 0.186047 | 0.843411 | 0.843411 | 0.843411 | 0.843411 | 0.843411 | 0.843411 | 0 | 0.158202 | 0.568884 | 9,545 | 333 | 75 | 28.663664 | 0.468773 | 0.079832 | 0 | 0.58156 | 0 | 0 | 0.246196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014184 | 0 | 0.014184 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 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 | 9 |
be84875c296b27e763474c2405cae5a0ab2dfc8b | 53 | py | Python | testing/run.py | ChiragAswani/chigpy | c52effc52323e2645953c7415066bd282e693769 | [
"MIT"
] | null | null | null | testing/run.py | ChiragAswani/chigpy | c52effc52323e2645953c7415066bd282e693769 | [
"MIT"
] | null | null | null | testing/run.py | ChiragAswani/chigpy | c52effc52323e2645953c7415066bd282e693769 | [
"MIT"
] | null | null | null | import chigpy
print(chigpy)
print(chigpy.full_name)
| 10.6 | 23 | 0.811321 | 8 | 53 | 5.25 | 0.625 | 0.52381 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 53 | 4 | 24 | 13.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.666667 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 7 |
fe26392562e859041cc64f3f1d8c00dbbabc2345 | 23,700 | py | Python | versioned_hdf5/tests/test_backend.py | melissawm/versioned-hdf5 | 930f3ab842d22a5b99769239692867345a4c616e | [
"BSD-3-Clause"
] | null | null | null | versioned_hdf5/tests/test_backend.py | melissawm/versioned-hdf5 | 930f3ab842d22a5b99769239692867345a4c616e | [
"BSD-3-Clause"
] | null | null | null | versioned_hdf5/tests/test_backend.py | melissawm/versioned-hdf5 | 930f3ab842d22a5b99769239692867345a4c616e | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from numpy.testing import assert_equal
from ndindex import Slice, Tuple
from pytest import mark, raises
import itertools
from .helpers import setup
from ..backend import (create_base_dataset, write_dataset,
create_virtual_dataset, DEFAULT_CHUNK_SIZE,
... | 45.576923 | 102 | 0.647637 | 3,726 | 23,700 | 3.769726 | 0.025228 | 0.356899 | 0.254521 | 0.129005 | 0.937847 | 0.923252 | 0.912146 | 0.897053 | 0.879681 | 0.844297 | 0 | 0.068748 | 0.217468 | 23,700 | 519 | 103 | 45.66474 | 0.688612 | 0.001097 | 0 | 0.686099 | 0 | 0 | 0.034809 | 0.01525 | 0 | 0 | 0 | 0 | 0.174888 | 1 | 0.035874 | false | 0.002242 | 0.017937 | 0 | 0.053812 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
fe2b8880b31c0d29320b2db7b2950665ba48fa7c | 21,858 | py | Python | pyusps/test/test_address_information.py | frnsys/pyusps | a96a45ada5ae2af566983c047944f6219c7134e5 | [
"MIT"
] | 14 | 2015-02-02T21:02:40.000Z | 2021-11-03T14:13:19.000Z | pyusps/test/test_address_information.py | frnsys/pyusps | a96a45ada5ae2af566983c047944f6219c7134e5 | [
"MIT"
] | 6 | 2017-12-21T19:07:38.000Z | 2022-03-13T01:49:12.000Z | pyusps/test/test_address_information.py | frnsys/pyusps | a96a45ada5ae2af566983c047944f6219c7134e5 | [
"MIT"
] | 21 | 2015-08-28T23:25:33.000Z | 2021-04-19T22:11:37.000Z | import fudge
from collections import OrderedDict
from nose.tools import eq_ as eq
from io import StringIO
from pyusps.address_information import verify
from pyusps.test.util import assert_raises, assert_errors_equal
@fudge.patch('pyusps.urlutil.urlopen')
def test_verify_simple(fake_urlopen):
fake_urlopen = fake_... | 44.790984 | 542 | 0.628557 | 2,563 | 21,858 | 5.271947 | 0.077253 | 0.074082 | 0.049956 | 0.073268 | 0.919849 | 0.905269 | 0.905269 | 0.902605 | 0.897202 | 0.861456 | 0 | 0.095505 | 0.200979 | 21,858 | 487 | 543 | 44.882957 | 0.678156 | 0.002791 | 0 | 0.786697 | 0 | 0.06422 | 0.542739 | 0.157788 | 0 | 0 | 0 | 0 | 0.016055 | 1 | 0.036697 | false | 0.004587 | 0.013761 | 0 | 0.050459 | 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 |
fe30ddc02b454a893268e338d20304d6046b832c | 36 | py | Python | src/posts/type_hinting/examples/02.py | pauleveritt/pauleveritt.github.io | 3e4707dba1f3a57297f90c10cc2da4c3075c1a69 | [
"BSD-3-Clause"
] | 8 | 2016-07-15T19:58:29.000Z | 2021-03-11T09:57:11.000Z | src/posts/type_hinting/examples/02.py | pauleveritt/pauleveritt.github.io | 3e4707dba1f3a57297f90c10cc2da4c3075c1a69 | [
"BSD-3-Clause"
] | 2 | 2015-11-26T13:54:52.000Z | 2016-03-03T13:04:17.000Z | src/posts/type_hinting/examples/02.py | pauleveritt/pauleveritt.github.io | 3e4707dba1f3a57297f90c10cc2da4c3075c1a69 | [
"BSD-3-Clause"
] | 6 | 2016-03-01T13:05:00.000Z | 2016-10-11T16:37:18.000Z | def greeting() -> str:
return 1
| 12 | 22 | 0.583333 | 5 | 36 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.277778 | 36 | 2 | 23 | 18 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
fe9865e2534b8d05a76ed84f98874c21c1a83c81 | 43,149 | py | Python | finance/tests.py | dynamicguy/treeio | 4f674898cff2331711639a9b5f6812c874a2cb25 | [
"MIT"
] | 2 | 2019-02-22T16:02:19.000Z | 2019-02-23T19:27:34.000Z | finance/tests.py | dewmal/treeio | 6299fbe7826800d576f7ab68b4c1996b7194540f | [
"MIT"
] | null | null | null | finance/tests.py | dewmal/treeio | 6299fbe7826800d576f7ab68b4c1996b7194540f | [
"MIT"
] | 1 | 2019-02-03T03:54:06.000Z | 2019-02-03T03:54:06.000Z | # encoding: utf-8
# Copyright 2011 Tree.io Limited
# This file is part of Treeio.
# License www.tree.io/license
"""
Finance: test suites
"""
from django.test import TestCase
from django.test.client import Client
from django.core.urlresolvers import reverse
from django.contrib.auth.models import User as DjangoUser
fro... | 43.984709 | 105 | 0.611787 | 4,481 | 43,149 | 5.719482 | 0.03102 | 0.057747 | 0.103242 | 0.0803 | 0.918062 | 0.868586 | 0.82551 | 0.820087 | 0.788755 | 0.663116 | 0 | 0.005451 | 0.268766 | 43,149 | 980 | 106 | 44.029592 | 0.806827 | 0.127118 | 0 | 0.595474 | 0 | 0.001414 | 0.217095 | 0.090556 | 0 | 0 | 0 | 0 | 0.226308 | 1 | 0.149929 | false | 0.072136 | 0.009901 | 0 | 0.166902 | 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 |
2298ed5d9c7f6d328f8e685f0d2492ea174690b0 | 12,014 | py | Python | All-Operator/3.py | Alpha-Demon404/RE-14 | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 39 | 2020-02-26T09:44:36.000Z | 2022-03-23T00:18:25.000Z | All-Operator/3.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 15 | 2020-05-14T10:07:26.000Z | 2022-01-06T02:55:32.000Z | All-Operator/3.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 41 | 2020-03-16T22:36:38.000Z | 2022-03-17T14:47:19.000Z | import marshal,zlib,base64
exec(marshal.loads(zlib.decompress(base64.b32decode("PCOI3G2ZR5OVOWUGR7J6S5ASIJ3ZYNAN6QCSBRCFFZYLDZVBQUIGWRFZACSA4SERN5ICLJ62KRJB44EVKHKLP7CJ7YGTZ37WSACBUFB3WZH63M4HWW7OCHOW3L47F5HK2657Z6K373OP54W65F2D5HI63U5T3ZGDXXR4HPOT7GW6HQ23U7ZY6TXHW5HY7XR2HXSMHD2P453Y5T3PT7HD66L5TSB66HRHX6RZH5MBV7PDXHO7... | 4,004.666667 | 11,986 | 0.998169 | 12 | 12,014 | 999.333333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171926 | 0.00025 | 12,014 | 2 | 11,987 | 6,007 | 0.826492 | 0 | 0 | 0 | 0 | 0 | 0.992842 | 0.992842 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 10 |
22c4ac29812190aed8302089f1e5e7c9c504e426 | 2,610 | py | Python | async_util/timer.py | leeopop/async_util | c39b38d0a156d53db46612f7389011dd17f3dc17 | [
"MIT"
] | null | null | null | async_util/timer.py | leeopop/async_util | c39b38d0a156d53db46612f7389011dd17f3dc17 | [
"MIT"
] | 1 | 2022-01-25T18:03:10.000Z | 2022-01-25T18:03:10.000Z | async_util/timer.py | leeopop/async_util | c39b38d0a156d53db46612f7389011dd17f3dc17 | [
"MIT"
] | null | null | null | import asyncio
class Timer:
def __init__(self, loop):
self._loop = loop
def trigger(self, func, delta, canceled=lambda: None):
async def _trigger():
try:
await asyncio.sleep(delta.total_seconds(), loop=self._loop)
func()
except asyncio.C... | 35.27027 | 83 | 0.50613 | 241 | 2,610 | 5.282158 | 0.149378 | 0.087981 | 0.122545 | 0.103692 | 0.912019 | 0.901807 | 0.901807 | 0.901807 | 0.901807 | 0.901807 | 0 | 0.002594 | 0.409195 | 2,610 | 74 | 84 | 35.27027 | 0.822957 | 0 | 0 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080645 | false | 0 | 0.016129 | 0 | 0.209677 | 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 |
4333ce124e776f754fe985b3d9fdcd7b7e97d42b | 63,001 | py | Python | sdk/python/pulumi_aws/transfer/server.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/transfer/server.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/transfer/server.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 56.604672 | 772 | 0.67837 | 7,999 | 63,001 | 5.189649 | 0.04388 | 0.067571 | 0.065764 | 0.058826 | 0.954519 | 0.947509 | 0.935609 | 0.929779 | 0.927852 | 0.91641 | 0 | 0.005309 | 0.225679 | 63,001 | 1,112 | 773 | 56.655576 | 0.845643 | 0.513024 | 0 | 0.83452 | 1 | 0 | 0.096505 | 0.017401 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16726 | false | 0.001779 | 0.012456 | 0 | 0.281139 | 0.02669 | 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 |
4a32df01424bf6a52065b09ddeaffc87b09f9a20 | 8,671 | py | Python | project intro app/dist/project_you.py | shivansh4123/youtube | a5849cda67cfa9f28187f683442f8db25c42c1c5 | [
"Unlicense"
] | null | null | null | project intro app/dist/project_you.py | shivansh4123/youtube | a5849cda67cfa9f28187f683442f8db25c42c1c5 | [
"Unlicense"
] | null | null | null | project intro app/dist/project_you.py | shivansh4123/youtube | a5849cda67cfa9f28187f683442f8db25c42c1c5 | [
"Unlicense"
] | null | null | null | from pytransform import pyarmor_runtime
pyarmor_runtime()
__pyarmor__(__name__, __file__, b'\x50\x59\x41\x52\x4d\x4f\x52\x00\x00\x03\x0a\x00\x6f\x0d\x0d\x0a\x09\x2f\xa0\x01\x00\x00\x00\x00\x01\x00\x00\x00\x40\x00\x00\x00\x1f\x08\x00\x00\x00\x00\x00\x08\x6a\xbc\x04\xbc\xda\x41\xd3\xfe\x30\x7f\x70\x02\xb1\x58\xc8\x2b\x... | 2,890.333333 | 8,611 | 0.750663 | 2,155 | 8,671 | 3.013921 | 0.12297 | 0.017552 | 0.018014 | 0.014781 | 0.006005 | 0.003695 | 0.003695 | 0 | 0 | 0 | 0 | 0.31232 | 0.001153 | 8,671 | 3 | 8,611 | 2,890.333333 | 0.437594 | 0 | 0 | 0 | 0 | 0.333333 | 0.988697 | 0.988697 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 11 |
4a37f6160c415d285d773357d335f0c2b1071e5e | 56,621 | py | Python | generated-libraries/python/netapp/nfs/__init__.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | 2 | 2017-03-28T15:31:26.000Z | 2018-08-16T22:15:18.000Z | generated-libraries/python/netapp/nfs/__init__.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | generated-libraries/python/netapp/nfs/__init__.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | from netapp.connection import NaConnection
from nfsv3_client_stats_info import Nfsv3ClientStatsInfo # 22 properties
from security_rule_info import SecurityRuleInfo # 6 properties
from rpc_data_info import RpcDataInfo # 5 properties
from nfsv2_client_stats_info import Nfsv2ClientStatsInfo # 18 properties
from hostaddr i... | 56.451645 | 1,443 | 0.633281 | 6,866 | 56,621 | 5.034227 | 0.075881 | 0.030725 | 0.042124 | 0.032403 | 0.828844 | 0.804542 | 0.786287 | 0.776653 | 0.772573 | 0.757095 | 0 | 0.01889 | 0.278201 | 56,621 | 1,002 | 1,444 | 56.507984 | 0.826861 | 0.465163 | 0 | 0.613924 | 0 | 0 | 0.270324 | 0.158367 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10443 | false | 0 | 0.063291 | 0 | 0.275316 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4a4c491572df293e8ca4574594c16161ca4c82b2 | 265 | py | Python | devito/finite_differences/__init__.py | reguly/devito | 543b7be41ddbf1faa90224cca3824767756c9390 | [
"MIT"
] | 204 | 2020-01-09T11:27:58.000Z | 2022-03-20T22:53:37.000Z | devito/finite_differences/__init__.py | reguly/devito | 543b7be41ddbf1faa90224cca3824767756c9390 | [
"MIT"
] | 949 | 2016-04-25T11:41:34.000Z | 2019-12-27T10:43:40.000Z | devito/finite_differences/__init__.py | reguly/devito | 543b7be41ddbf1faa90224cca3824767756c9390 | [
"MIT"
] | 131 | 2020-01-08T17:43:13.000Z | 2022-03-27T11:36:47.000Z | from .differentiable import * # noqa
from .elementary import * # noqa
from .finite_difference import * # noqa
from .derivative import * # noqa
from .tools import generate_fd_shortcuts # noqa
from .coefficients import * # noqa
from .operators import * # noqa
| 33.125 | 48 | 0.739623 | 32 | 265 | 6.03125 | 0.4375 | 0.310881 | 0.362694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184906 | 265 | 7 | 49 | 37.857143 | 0.893519 | 0.128302 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
43550d00c86d9c4cb941c9a841dccbf3535e8e25 | 16,110 | py | Python | ridt/analysis/resultcontainers.py | riskaware-ltd/ridt | c0288a2f814b2749bdf73de7157f7477ca271aff | [
"MIT"
] | null | null | null | ridt/analysis/resultcontainers.py | riskaware-ltd/ridt | c0288a2f814b2749bdf73de7157f7477ca271aff | [
"MIT"
] | 9 | 2020-09-18T08:22:39.000Z | 2021-07-20T09:39:59.000Z | ridt/analysis/resultcontainers.py | riskaware-ltd/ridt | c0288a2f814b2749bdf73de7157f7477ca271aff | [
"MIT"
] | 1 | 2021-06-22T21:53:20.000Z | 2021-06-22T21:53:20.000Z | from typing import Tuple
from ridt.container import Domain
from ridt.config import RIDTConfig
from ridt.config import Units
class ResultContainer:
"""A base class for all results containers.
Attributes
----------
setting : :class:`~.RIDTConfig`
The settings for the run in question.
... | 27.871972 | 92 | 0.53023 | 1,856 | 16,110 | 4.563039 | 0.075431 | 0.025505 | 0.038257 | 0.026095 | 0.855355 | 0.838352 | 0.820522 | 0.806235 | 0.767269 | 0.767269 | 0 | 0.001333 | 0.347921 | 16,110 | 577 | 93 | 27.920277 | 0.804855 | 0.371633 | 0 | 0.713725 | 0 | 0.003922 | 0.194324 | 0.072387 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152941 | false | 0 | 0.015686 | 0 | 0.337255 | 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 |
4357fe88f905f13a8c5fedb3f6348b6bb51be65b | 1,625 | py | Python | llvm/utils/lit/tests/test-output-micro.py | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 4,812 | 2015-01-02T19:38:10.000Z | 2022-03-27T12:42:24.000Z | llvm/utils/lit/tests/test-output-micro.py | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 11,789 | 2015-01-05T04:50:15.000Z | 2022-03-31T23:39:19.000Z | llvm/utils/lit/tests/test-output-micro.py | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 2,543 | 2015-01-01T11:18:36.000Z | 2022-03-22T21:32:36.000Z | # RUN: %{lit} -j 1 -v %{inputs}/test-data-micro --output %t.results.out
# RUN: FileCheck < %t.results.out %s
# RUN: rm %t.results.out
# CHECK: {
# CHECK: "__version__"
# CHECK: "elapsed"
# CHECK-NEXT: "tests": [
# CHECK-NEXT: {
# CHECK-NEXT: "code": "PASS",
# CHECK-NEXT: "elapsed": null,
# CHECK-NEXT: "... | 31.25 | 77 | 0.543385 | 206 | 1,625 | 4.237864 | 0.174757 | 0.443299 | 0.208477 | 0.268041 | 0.791523 | 0.762887 | 0.731959 | 0.731959 | 0.731959 | 0.731959 | 0 | 0.025237 | 0.219692 | 1,625 | 51 | 78 | 31.862745 | 0.663249 | 0.937846 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
43a10915fae45a0c83b8e8c1f94f59417abb696a | 75 | py | Python | app/settings.py | Annihilator708/ORMit | 83602ac16322168cb81c072d228abd82cc27f1c2 | [
"MIT"
] | null | null | null | app/settings.py | Annihilator708/ORMit | 83602ac16322168cb81c072d228abd82cc27f1c2 | [
"MIT"
] | null | null | null | app/settings.py | Annihilator708/ORMit | 83602ac16322168cb81c072d228abd82cc27f1c2 | [
"MIT"
] | null | null | null | VAPI = b'7777772e636f6465776172732e6e6c2f76657273696f6e64617461l302e312e30' | 75 | 75 | 0.933333 | 3 | 75 | 23.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.739726 | 0.026667 | 75 | 1 | 75 | 75 | 0.219178 | 0 | 0 | 0 | 0 | 0 | 0.855263 | 0.855263 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
43d2a1f869e22dac7b3a9e88186f84a24471d47a | 14,005 | py | Python | src/python/torch/seq2seq_train.py | FAIR-UMN/fair_ecal_monitoring | bbbf55451111162c419d414c50367d153a544754 | [
"MIT"
] | null | null | null | src/python/torch/seq2seq_train.py | FAIR-UMN/fair_ecal_monitoring | bbbf55451111162c419d414c50367d153a544754 | [
"MIT"
] | null | null | null | src/python/torch/seq2seq_train.py | FAIR-UMN/fair_ecal_monitoring | bbbf55451111162c419d414c50367d153a544754 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from torch import optim
import numpy as np
import random
from util import *
class Seq2Seq_Train:
def __init__(self,
encoder,
decoder,
input_tensor,
target_tensor,
n_epochs,
target_len,... | 39.786932 | 100 | 0.558586 | 1,522 | 14,005 | 4.936925 | 0.103811 | 0.058557 | 0.028746 | 0.023955 | 0.867581 | 0.864653 | 0.864653 | 0.864653 | 0.864653 | 0.851078 | 0 | 0.003655 | 0.355302 | 14,005 | 352 | 101 | 39.786932 | 0.828552 | 0.191503 | 0 | 0.746269 | 0 | 0 | 0.029856 | 0 | 0 | 0 | 0 | 0 | 0.019901 | 1 | 0.024876 | false | 0 | 0.029851 | 0 | 0.059701 | 0.034826 | 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 |
605fcce62e2c61d1583551fb992c3db61567260f | 213 | py | Python | tests/parser/wellfounded.5.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/wellfounded.5.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/wellfounded.5.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | input = """
win( X ) :- move( X, Y ), not win( Y ).
move( a, d ).
move( b, c ).
move( c, b ).
"""
output = """
win( X ) :- move( X, Y ), not win( Y ).
move( a, d ).
move( b, c ).
move( c, b ).
"""
| 12.529412 | 40 | 0.380282 | 36 | 213 | 2.25 | 0.305556 | 0.098765 | 0.197531 | 0.222222 | 0.864198 | 0.864198 | 0.864198 | 0.864198 | 0.864198 | 0.864198 | 0 | 0 | 0.338028 | 213 | 16 | 41 | 13.3125 | 0.574468 | 0 | 0 | 0.833333 | 0 | 0 | 0.845771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 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 | 10 |
607628f8ea875bbe76185742f08de5fd781c848b | 1,315 | py | Python | clicksend.py | z1pti3/jimiPlugin-clicksend | f635aac09c2e12d6456fa1ceea1f4b88199c4e29 | [
"Apache-2.0"
] | 1 | 2021-07-26T15:02:38.000Z | 2021-07-26T15:02:38.000Z | clicksend.py | z1pti3/jimiPlugin-clicksend | f635aac09c2e12d6456fa1ceea1f4b88199c4e29 | [
"Apache-2.0"
] | null | null | null | clicksend.py | z1pti3/jimiPlugin-clicksend | f635aac09c2e12d6456fa1ceea1f4b88199c4e29 | [
"Apache-2.0"
] | null | null | null | import jimi
class _clicksend(jimi.plugin._plugin):
version = 0.1
def install(self):
# Register models
jimi.model.registerModel("clicksendSMS","_clicksendSMS","_action","plugins.clicksend.models.action")
jimi.model.registerModel("clicksendPullUnreadSMS","_clicksendPullUnreadSMS","_actio... | 52.6 | 134 | 0.744487 | 114 | 1,315 | 8.429825 | 0.27193 | 0.074922 | 0.183143 | 0.233091 | 0.790843 | 0.790843 | 0.790843 | 0.790843 | 0.703434 | 0.193548 | 0 | 0.003487 | 0.127757 | 1,315 | 24 | 135 | 54.791667 | 0.83435 | 0.041825 | 0 | 0.117647 | 0 | 0 | 0.506369 | 0.421975 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.058824 | 0.058824 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
608cc7c119405bc22f92b4a94114011c611d50ed | 13,886 | py | Python | sample_search_items_api.py | Peekaboo0/paapi5-python | a591a63b2e48bbdf50e569031a63ffd6e29da9bd | [
"Apache-2.0"
] | null | null | null | sample_search_items_api.py | Peekaboo0/paapi5-python | a591a63b2e48bbdf50e569031a63ffd6e29da9bd | [
"Apache-2.0"
] | null | null | null | sample_search_items_api.py | Peekaboo0/paapi5-python | a591a63b2e48bbdf50e569031a63ffd6e29da9bd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
You may not use this file except in compliance with the License.
A copy of the License is located at
http://www.apache.org/licenses/LICENSE-2.0
... | 37.227882 | 148 | 0.620913 | 1,611 | 13,886 | 5.21167 | 0.124146 | 0.026798 | 0.039662 | 0.031682 | 0.88697 | 0.882563 | 0.877323 | 0.84576 | 0.84576 | 0.84576 | 0 | 0.010448 | 0.283163 | 13,886 | 372 | 149 | 37.327957 | 0.833032 | 0.052067 | 0 | 0.844444 | 0 | 0 | 0.139168 | 0.006556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0 | 0.022222 | 0 | 0.048889 | 0.244444 | 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 |
609c7eaab2c4113d06e13fec1897cce725812b62 | 101 | py | Python | python/shekels/core/__init__.py | theNewFlesh/shekels | dbfe308df454390c07f54158abf32ce23561c145 | [
"MIT"
] | 1 | 2021-12-27T17:23:32.000Z | 2021-12-27T17:23:32.000Z | python/shekels/core/__init__.py | theNewFlesh/shekels | dbfe308df454390c07f54158abf32ce23561c145 | [
"MIT"
] | null | null | null | python/shekels/core/__init__.py | theNewFlesh/shekels | dbfe308df454390c07f54158abf32ce23561c145 | [
"MIT"
] | null | null | null | import shekels.core.config
import shekels.core.data_tools
import shekels.core.database # noqa: F401
| 25.25 | 42 | 0.821782 | 15 | 101 | 5.466667 | 0.6 | 0.47561 | 0.621951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032967 | 0.09901 | 101 | 3 | 43 | 33.666667 | 0.868132 | 0.09901 | 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 |
715b4082645c131d43d728ae8f65bcc2430aa8c9 | 6,037 | py | Python | tests/test_dataset.py | pcuenca/Real-ESRGAN | 9ff1944d06e9d7fe86c68bbf1a244cff403f064e | [
"BSD-3-Clause"
] | 8,944 | 2021-07-22T21:11:06.000Z | 2022-03-31T22:29:38.000Z | tests/test_dataset.py | pcuenca/Real-ESRGAN | 9ff1944d06e9d7fe86c68bbf1a244cff403f064e | [
"BSD-3-Clause"
] | 239 | 2021-07-23T16:21:32.000Z | 2022-03-31T12:44:19.000Z | tests/test_dataset.py | pcuenca/Real-ESRGAN | 9ff1944d06e9d7fe86c68bbf1a244cff403f064e | [
"BSD-3-Clause"
] | 1,040 | 2021-07-23T01:10:30.000Z | 2022-03-31T03:41:08.000Z | import pytest
import yaml
from realesrgan.data.realesrgan_dataset import RealESRGANDataset
from realesrgan.data.realesrgan_paired_dataset import RealESRGANPairedDataset
def test_realesrgan_dataset():
with open('tests/data/test_realesrgan_dataset.yml', mode='r') as f:
opt = yaml.load(f, Loader=yaml.FullL... | 39.717105 | 94 | 0.625642 | 756 | 6,037 | 4.80291 | 0.125661 | 0.089232 | 0.046268 | 0.03718 | 0.859267 | 0.856513 | 0.841641 | 0.800055 | 0.787111 | 0.75902 | 0 | 0.031493 | 0.189995 | 6,037 | 151 | 95 | 39.980132 | 0.711043 | 0.190492 | 0 | 0.764706 | 0 | 0 | 0.203015 | 0.032012 | 0 | 0 | 0 | 0 | 0.470588 | 1 | 0.019608 | false | 0 | 0.039216 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
7161e65dbae03899950e09cae96b95481cf8bd16 | 11,448 | py | Python | src/debug.py | ivclab/PackExpander | 81b8e832018f60fc678883f3025c39cb1d289e27 | [
"MIT"
] | 25 | 2019-03-28T09:02:44.000Z | 2022-02-11T15:30:50.000Z | src/debug.py | ivclab/PackExpander | 81b8e832018f60fc678883f3025c39cb1d289e27 | [
"MIT"
] | 2 | 2020-10-29T06:16:16.000Z | 2021-01-04T02:23:04.000Z | src/debug.py | ivclab/PackExpander | 81b8e832018f60fc678883f3025c39cb1d289e27 | [
"MIT"
] | 7 | 2020-03-26T05:39:30.000Z | 2021-07-30T09:12:42.000Z | # Preprocessing dataset
CUDA_VISIBLE_DEVICES=3 python src/align/align_dataset_mtcnn.py \
~/fevemania/datasets/age_gender/others/test_fold_is_4/train/age \
~/fevemania/datasets/age/test_fold_is_4/train \
--image_size 182 \
--margin 44
CUDA_VISIBLE_DEVICES=3 python src/align/align_dataset_mtcnn.py \
~/fevemania/datasets... | 29.353846 | 100 | 0.77376 | 1,735 | 11,448 | 4.727378 | 0.127954 | 0.058035 | 0.05267 | 0.07169 | 0.85662 | 0.843331 | 0.810778 | 0.788344 | 0.772616 | 0.768227 | 0 | 0.039938 | 0.098882 | 11,448 | 390 | 101 | 29.353846 | 0.755138 | 0.138539 | 0 | 0.815534 | 0 | 0 | 0.019352 | 0.019352 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.055016 | 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 |
71723dd614682a121a712c7f69103fd8789aecbb | 128 | py | Python | python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_1/_pkg1_1_1/_pkg1_1_1_1/_pkg1_1_1_1_0/_mod1_1_1_1_0_2.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2018-12-29T09:53:39.000Z | 2018-12-29T09:53:42.000Z | python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_1/_pkg1_1_1/_pkg1_1_1_1/_pkg1_1_1_1_0/_mod1_1_1_1_0_2.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_1/_pkg1_1_1/_pkg1_1_1_1/_pkg1_1_1_1_0/_mod1_1_1_1_0_2.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | name1_1_1_1_0_2_0 = None
name1_1_1_1_0_2_1 = None
name1_1_1_1_0_2_2 = None
name1_1_1_1_0_2_3 = None
name1_1_1_1_0_2_4 = None | 14.222222 | 24 | 0.820313 | 40 | 128 | 1.875 | 0.175 | 0.266667 | 0.466667 | 0.533333 | 0.88 | 0.88 | 0.746667 | 0 | 0 | 0 | 0 | 0.318182 | 0.140625 | 128 | 9 | 25 | 14.222222 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
e0807c613172e62bb48c624efcd006f15d3c2fa6 | 157 | py | Python | hmtl/__init__.py | dasguptar/hmtl | fa41074f2fb8e39023166ce25e54064ecb4f0179 | [
"MIT"
] | null | null | null | hmtl/__init__.py | dasguptar/hmtl | fa41074f2fb8e39023166ce25e54064ecb4f0179 | [
"MIT"
] | null | null | null | hmtl/__init__.py | dasguptar/hmtl | fa41074f2fb8e39023166ce25e54064ecb4f0179 | [
"MIT"
] | null | null | null | # coding: utf-8
from hmtl.dataset_readers import *
from hmtl.modules import *
from hmtl.models import *
from hmtl.tasks import *
from hmtl.training import * | 22.428571 | 34 | 0.770701 | 24 | 157 | 5 | 0.5 | 0.333333 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.146497 | 157 | 7 | 35 | 22.428571 | 0.88806 | 0.082803 | 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 |
e0a7c1a223cdbc8d81d9807dc0c32b046c5145b2 | 6,992 | py | Python | testing/router_test.py | Stuart-Wilcox/servepy | df315cfb265489785bb34183c7d69ca9aa21d74d | [
"MIT"
] | 3 | 2020-02-04T10:33:45.000Z | 2020-02-04T10:34:27.000Z | testing/router_test.py | Stuart-Wilcox/servepy | df315cfb265489785bb34183c7d69ca9aa21d74d | [
"MIT"
] | 9 | 2018-04-09T14:45:20.000Z | 2018-04-16T04:15:31.000Z | testing/router_test.py | Stuart-Wilcox/servepy | df315cfb265489785bb34183c7d69ca9aa21d74d | [
"MIT"
] | null | null | null | import unittest
from src.serve import Router
print('\n***ROUTER TEST***\n')
def middleware_1(req, res, next):
pass
def middleware_2(req, res, next):
next()
def endware_1(req, res):
pass
def endware_2(req, res):
pass
class TestRouter(unittest.TestCase):
def test_init(self):
router = Rou... | 42.634146 | 125 | 0.656608 | 857 | 6,992 | 5.058343 | 0.054842 | 0.143253 | 0.231373 | 0.299423 | 0.818685 | 0.818685 | 0.776932 | 0.736794 | 0.641292 | 0.60323 | 0 | 0.035751 | 0.163902 | 6,992 | 163 | 126 | 42.895706 | 0.705782 | 0.006293 | 0 | 0.347458 | 0 | 0 | 0.108984 | 0 | 0 | 0 | 0 | 0 | 0.59322 | 1 | 0.101695 | false | 0.025424 | 0.016949 | 0 | 0.127119 | 0.008475 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
e0cee71c71e40ad8df18ebe0fe574d810da392b4 | 4,579 | py | Python | tests/analysis/test_differential_selection.py | tbj128/gene-expression-analyzer | a6c69577266f38b8978dfee513a67b929ad88d18 | [
"MIT"
] | null | null | null | tests/analysis/test_differential_selection.py | tbj128/gene-expression-analyzer | a6c69577266f38b8978dfee513a67b929ad88d18 | [
"MIT"
] | null | null | null | tests/analysis/test_differential_selection.py | tbj128/gene-expression-analyzer | a6c69577266f38b8978dfee513a67b929ad88d18 | [
"MIT"
] | null | null | null | import json
from gene.core.constants import SAMPLE_METADATA_FILENAME
from gene.analysis.differential_selection import DifferentialSelection
from tests.analysis.analysis_test_utils import AnalysisTestUtils
from gene.model.metadata import Metadata
import unittest
class TestDifferentialSelection(unittest.TestCase):
... | 52.034091 | 133 | 0.733566 | 499 | 4,579 | 6.266533 | 0.168337 | 0.052766 | 0.120883 | 0.138791 | 0.893508 | 0.864087 | 0.864087 | 0.864087 | 0.864087 | 0.864087 | 0 | 0.003805 | 0.196549 | 4,579 | 88 | 134 | 52.034091 | 0.846154 | 0 | 0 | 0.783784 | 0 | 0 | 0.058515 | 0.021179 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.027027 | false | 0 | 0.081081 | 0 | 0.121622 | 0.135135 | 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 |
e0dd323410177a7748b63a33a52d02ac91453b73 | 3,452 | py | Python | flowd/metrics/wnf_collectors.py | henrykp/fs_collect | ee06e76e974ab9e1041b8c1cff81956c11a28a35 | [
"MIT"
] | null | null | null | flowd/metrics/wnf_collectors.py | henrykp/fs_collect | ee06e76e974ab9e1041b8c1cff81956c11a28a35 | [
"MIT"
] | null | null | null | flowd/metrics/wnf_collectors.py | henrykp/fs_collect | ee06e76e974ab9e1041b8c1cff81956c11a28a35 | [
"MIT"
] | null | null | null | import logging
import threading
import time
from flowd.utils import wnf
from flowd.metrics import BaseCollector
PRIORITY_MODE = 1
ALERT_MODE = 2
class PriorityModeCollector(BaseCollector):
metric_name = "Time in Priority Mode (seconds)"
def __init__(self) -> None:
self.time_in_mode = 0.0
se... | 30.821429 | 113 | 0.651506 | 453 | 3,452 | 4.739514 | 0.187638 | 0.074523 | 0.037261 | 0.052166 | 0.868188 | 0.825803 | 0.825803 | 0.82068 | 0.82068 | 0.82068 | 0 | 0.00679 | 0.232039 | 3,452 | 111 | 114 | 31.099099 | 0.803093 | 0.004635 | 0 | 0.767442 | 0 | 0 | 0.184624 | 0.024461 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.116279 | false | 0 | 0.05814 | 0 | 0.244186 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.