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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0ed58ffce904e4734dda4d0f871560b054d227fc | 14,892 | py | Python | test/test_feature_selection.py | gabrielmacedoanac/kgextension | 0551ca278bc3de5c39baf663467be3220ad20edd | [
"MIT"
] | 67 | 2021-01-17T20:12:44.000Z | 2022-03-07T06:57:01.000Z | test/test_feature_selection.py | gabrielmacedoanac/kgextension | 0551ca278bc3de5c39baf663467be3220ad20edd | [
"MIT"
] | null | null | null | test/test_feature_selection.py | gabrielmacedoanac/kgextension | 0551ca278bc3de5c39baf663467be3220ad20edd | [
"MIT"
] | 3 | 2021-04-17T09:19:31.000Z | 2021-10-03T21:29:56.000Z | import pandas as pd
import networkx as nx
import pytest
from kgextension.feature_selection import hill_climbing_filter, hierarchy_based_filter, tree_based_filter
from kgextension.generator import specific_relation_generator, direct_type_generator
class TestHillCLimbingFilter:
def test1_high_beta(self):
i... | 49.64 | 144 | 0.642291 | 1,815 | 14,892 | 4.972452 | 0.082094 | 0.031801 | 0.051191 | 0.080443 | 0.894183 | 0.88831 | 0.884986 | 0.884986 | 0.882438 | 0.863934 | 0 | 0.007379 | 0.199167 | 14,892 | 299 | 145 | 49.80602 | 0.749371 | 0 | 0 | 0.650273 | 0 | 0 | 0.366732 | 0.09133 | 0 | 0 | 0 | 0 | 0.087432 | 1 | 0.098361 | false | 0 | 0.027322 | 0.005464 | 0.153005 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0ee3780a288d778fc6c78f7ba0d4e6d864776663 | 8,170 | py | Python | tensorflow/python/ipu/tests/host_embedding_lookup_test.py | pierricklee/tensorflow | c6a61d7b19a9242b06f40120ab42f0fdb0b5c462 | [
"Apache-2.0"
] | null | null | null | tensorflow/python/ipu/tests/host_embedding_lookup_test.py | pierricklee/tensorflow | c6a61d7b19a9242b06f40120ab42f0fdb0b5c462 | [
"Apache-2.0"
] | null | null | null | tensorflow/python/ipu/tests/host_embedding_lookup_test.py | pierricklee/tensorflow | c6a61d7b19a9242b06f40120ab42f0fdb0b5c462 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 33.760331 | 83 | 0.673807 | 1,119 | 8,170 | 4.663986 | 0.205541 | 0.0548 | 0.042154 | 0.032765 | 0.764131 | 0.711056 | 0.711056 | 0.701667 | 0.701667 | 0.701667 | 0 | 0.021899 | 0.217503 | 8,170 | 241 | 84 | 33.900415 | 0.794463 | 0.126805 | 0 | 0.823529 | 0 | 0 | 0.031509 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.047059 | false | 0 | 0.088235 | 0.005882 | 0.164706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0ee9c1ce345d1dddc765ba8ed6cb360d04716726 | 215 | py | Python | gammapy/datasets/tests/test_core.py | grburgess/gammapy | 609e460698caca7223afeef5e71826c7b32728d1 | [
"BSD-3-Clause"
] | 3 | 2019-01-28T12:21:14.000Z | 2019-02-10T19:58:07.000Z | gammapy/datasets/tests/test_core.py | grburgess/gammapy | 609e460698caca7223afeef5e71826c7b32728d1 | [
"BSD-3-Clause"
] | null | null | null | gammapy/datasets/tests/test_core.py | grburgess/gammapy | 609e460698caca7223afeef5e71826c7b32728d1 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import absolute_import, division, print_function, unicode_literals
# from ..manage import Datasets
#
#
# def test_dataset_manager():
# | 26.875 | 82 | 0.786047 | 29 | 215 | 5.517241 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005376 | 0.134884 | 215 | 8 | 83 | 26.875 | 0.854839 | 0.553488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
0ef2a22cf0691c7c5ac05c3e94258850507f1f24 | 289 | py | Python | pythonforandroid/recipes/vk/tests/test_utils.py | alexben16/python-for-android | 1830886b6a7111eb898b5e9638b6d280c09bfa87 | [
"MIT"
] | 119 | 2018-07-30T07:59:59.000Z | 2022-03-02T00:28:02.000Z | tests/test_utils.py | gri201/vk | 746301172839c023895a90543607eeaed5c0bac3 | [
"MIT"
] | 11 | 2018-08-09T10:07:50.000Z | 2022-03-17T16:16:29.000Z | tests/test_utils.py | gri201/vk | 746301172839c023895a90543607eeaed5c0bac3 | [
"MIT"
] | 36 | 2018-08-23T10:17:44.000Z | 2022-03-16T00:00:25.000Z | # coding=utf8
from vk.utils import stringify_values
def test_stringify():
assert stringify_values({1: ['str', 'str2']}) == {1: 'str,str2'}
assert stringify_values({1: ['str', u'стр2']}) == {1: u'str,стр2'}
assert stringify_values({1: [u'стр', u'стр2']}) == {1: u'стр,стр2'}
| 28.9 | 71 | 0.619377 | 43 | 289 | 4.046512 | 0.395349 | 0.344828 | 0.362069 | 0.37931 | 0.287356 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053061 | 0.152249 | 289 | 9 | 72 | 32.111111 | 0.657143 | 0.038062 | 0 | 0 | 0 | 0 | 0.163043 | 0 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0ef64fc47d1478a2d855b5659f5092d307a6b434 | 212 | py | Python | examples/server/counter.py | Pennsieve/streaming-agent | 5e29fbdf318b9f4464029074768e4b717c9350fd | [
"Apache-2.0"
] | null | null | null | examples/server/counter.py | Pennsieve/streaming-agent | 5e29fbdf318b9f4464029074768e4b717c9350fd | [
"Apache-2.0"
] | null | null | null | examples/server/counter.py | Pennsieve/streaming-agent | 5e29fbdf318b9f4464029074768e4b717c9350fd | [
"Apache-2.0"
] | null | null | null | class Counter():
def __init__(self, start=0):
self.counter = start - 1
def __call__(self):
self.counter += 1
return self.counter
def value(self):
return self.counter
| 19.272727 | 32 | 0.580189 | 26 | 212 | 4.423077 | 0.423077 | 0.382609 | 0.295652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02069 | 0.316038 | 212 | 10 | 33 | 21.2 | 0.772414 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.125 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
1666d3a1f2b8ef0afb72b572fd3d60954711a413 | 19,214 | py | Python | tests/test_stream_xep_0030.py | calendar42/SleekXMPP--XEP-0080- | d7bd5fd29f26a5d7de872a49ff63a353b8043e49 | [
"BSD-3-Clause"
] | 1 | 2016-10-24T05:30:25.000Z | 2016-10-24T05:30:25.000Z | tests/test_stream_xep_0030.py | vijayp/SleekXMPP | b2e7f57334d27f140f079213c2016615b7168742 | [
"BSD-3-Clause"
] | null | null | null | tests/test_stream_xep_0030.py | vijayp/SleekXMPP | b2e7f57334d27f140f079213c2016615b7168742 | [
"BSD-3-Clause"
] | null | null | null | import sys
import time
import threading
from sleekxmpp.test import *
class TestStreamDisco(SleekTest):
"""
Test using the XEP-0030 plugin.
"""
def tearDown(self):
self.stream_close()
def testInfoEmptyDefaultNode(self):
"""
Info query result from an entity MUST have at l... | 33.299827 | 76 | 0.475747 | 1,841 | 19,214 | 4.883216 | 0.094514 | 0.086763 | 0.050612 | 0.081758 | 0.819132 | 0.774527 | 0.727697 | 0.701891 | 0.686207 | 0.676752 | 0 | 0.017937 | 0.384876 | 19,214 | 576 | 77 | 33.357639 | 0.742702 | 0.06209 | 0 | 0.79717 | 0 | 0 | 0.499915 | 0.045956 | 0 | 0 | 0 | 0 | 0.009434 | 1 | 0.063679 | false | 0 | 0.009434 | 0 | 0.09434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
16a34bc6be0bec40fcc9a51f4b18101589b5d489 | 49 | py | Python | SwitchTracer/cores/contrib/couriermiddlewares/__init__.py | IzayoiRin/VirtualVeyonST | d0c4035dba81d02135ad54f4c5a5d463e95f7925 | [
"MIT"
] | null | null | null | SwitchTracer/cores/contrib/couriermiddlewares/__init__.py | IzayoiRin/VirtualVeyonST | d0c4035dba81d02135ad54f4c5a5d463e95f7925 | [
"MIT"
] | null | null | null | SwitchTracer/cores/contrib/couriermiddlewares/__init__.py | IzayoiRin/VirtualVeyonST | d0c4035dba81d02135ad54f4c5a5d463e95f7925 | [
"MIT"
] | null | null | null | from .M.server import *
from .S.clients import *
| 16.333333 | 24 | 0.714286 | 8 | 49 | 4.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 49 | 2 | 25 | 24.5 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
16b575c7c29d3a4bc4de6a20b3307981943f8463 | 41 | py | Python | catcoin/__main__.py | val-labs/catcoinledger | e46f5f188a0d326ebf4d01f95c091d5ae26d01fa | [
"Apache-2.0"
] | 1 | 2018-07-29T21:12:52.000Z | 2018-07-29T21:12:52.000Z | catcoin/__main__.py | val-labs/catcoinledger | e46f5f188a0d326ebf4d01f95c091d5ae26d01fa | [
"Apache-2.0"
] | null | null | null | catcoin/__main__.py | val-labs/catcoinledger | e46f5f188a0d326ebf4d01f95c091d5ae26d01fa | [
"Apache-2.0"
] | null | null | null | import sys, cli; cli.main(*sys.argv[1:])
| 20.5 | 40 | 0.658537 | 8 | 41 | 3.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.097561 | 41 | 1 | 41 | 41 | 0.702703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
16ce36fd2be60a81f38845aa0e59ce9e8889df54 | 91 | py | Python | app/student/__init__.py | siwl/test_website | c19263c86174796214b039189cc3a65af2baec7d | [
"MIT"
] | null | null | null | app/student/__init__.py | siwl/test_website | c19263c86174796214b039189cc3a65af2baec7d | [
"MIT"
] | null | null | null | app/student/__init__.py | siwl/test_website | c19263c86174796214b039189cc3a65af2baec7d | [
"MIT"
] | null | null | null | from flask import Blueprint
student = Blueprint('student', __name__)
from . import views
| 15.166667 | 40 | 0.769231 | 11 | 91 | 6 | 0.636364 | 0.484848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 91 | 5 | 41 | 18.2 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
16db8efb56afa6e0887aec50feba69d23ef43ebb | 70 | py | Python | index_redirect.py | jcmack/turtle-tango | 9b6f3aecacfd16b4f2f677921cddd9da1e612d98 | [
"Apache-2.0"
] | 3 | 2021-01-30T16:32:35.000Z | 2021-01-30T16:33:14.000Z | index_redirect.py | jcmack/turtle-tango | 9b6f3aecacfd16b4f2f677921cddd9da1e612d98 | [
"Apache-2.0"
] | null | null | null | index_redirect.py | jcmack/turtle-tango | 9b6f3aecacfd16b4f2f677921cddd9da1e612d98 | [
"Apache-2.0"
] | null | null | null | print("Status: 302")
print("Location: /static/env/turtle_tango.html")
| 23.333333 | 48 | 0.742857 | 10 | 70 | 5.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.057143 | 70 | 2 | 49 | 35 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.714286 | 0.414286 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
bca732f39ddd2f22c42a5f5c0fcd545cfc7a22f6 | 102 | py | Python | pyobs/images/processors/astrometry/__init__.py | pyobs/pyobs-core | e3401e63eb31587c2bc535f7346b7e4ef69d64ab | [
"MIT"
] | 4 | 2020-02-14T10:50:03.000Z | 2022-03-25T04:15:06.000Z | pyobs/images/processors/astrometry/__init__.py | pyobs/pyobs-core | e3401e63eb31587c2bc535f7346b7e4ef69d64ab | [
"MIT"
] | 60 | 2020-09-14T09:10:20.000Z | 2022-03-25T17:51:42.000Z | pyobs/images/processors/astrometry/__init__.py | pyobs/pyobs-core | e3401e63eb31587c2bc535f7346b7e4ef69d64ab | [
"MIT"
] | 2 | 2020-10-14T09:34:57.000Z | 2021-04-27T09:35:57.000Z | """
Astrometry
----------
"""
from .astrometry import Astrometry
from .dotnet import AstrometryDotNet
| 14.571429 | 36 | 0.705882 | 9 | 102 | 8 | 0.555556 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 102 | 6 | 37 | 17 | 0.8 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
bcc249d051791a7b6c065b1c2c86fa4acce16d4b | 148 | py | Python | pkgs/filetransferutils-pkg/src/genie/libs/filetransferutils/plugins/ios/ftp/fileutils.py | rohit04saluja/genielibs | e3a89932b807075f45a611cb46ca41a4fa6fe240 | [
"Apache-2.0"
] | null | null | null | pkgs/filetransferutils-pkg/src/genie/libs/filetransferutils/plugins/ios/ftp/fileutils.py | rohit04saluja/genielibs | e3a89932b807075f45a611cb46ca41a4fa6fe240 | [
"Apache-2.0"
] | 1 | 2020-08-01T00:59:29.000Z | 2020-08-01T00:59:32.000Z | pkgs/filetransferutils-pkg/src/genie/libs/filetransferutils/plugins/ios/ftp/fileutils.py | rohit04saluja/genielibs | e3a89932b807075f45a611cb46ca41a4fa6fe240 | [
"Apache-2.0"
] | null | null | null | """ File utils base class for FTP on IOS devices. """
from ..fileutils import FileUtils as FileUtilsXEBase
class FileUtils(FileUtilsXEBase):
pass | 24.666667 | 53 | 0.77027 | 19 | 148 | 6 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148649 | 148 | 6 | 54 | 24.666667 | 0.904762 | 0.304054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
bcf0560ef4ee36e08be0933300bdfb8cf0a3a0fb | 21,461 | py | Python | testing/unit/tp/account/test_transfer.py | FerrySchuller/remme-core | ca58bfcc5ff0ce6d15c2871a4e03e39f1268d789 | [
"Apache-2.0"
] | 129 | 2018-02-13T21:37:13.000Z | 2020-11-01T23:33:52.000Z | testing/unit/tp/account/test_transfer.py | FerrySchuller/remme-core | ca58bfcc5ff0ce6d15c2871a4e03e39f1268d789 | [
"Apache-2.0"
] | 95 | 2018-03-27T15:57:36.000Z | 2019-08-26T07:35:23.000Z | testing/unit/tp/account/test_transfer.py | FerrySchuller/remme-core | ca58bfcc5ff0ce6d15c2871a4e03e39f1268d789 | [
"Apache-2.0"
] | 30 | 2018-02-24T15:17:37.000Z | 2020-11-14T11:35:25.000Z | """
Provide tests for account handler apply (genesis) method implementation.
"""
import time
import pytest
from sawtooth_sdk.processor.exceptions import InvalidTransaction
from sawtooth_sdk.protobuf.processor_pb2 import TpProcessRequest
from sawtooth_sdk.protobuf.transaction_pb2 import (
Transaction,
Transact... | 39.091075 | 117 | 0.769489 | 2,312 | 21,461 | 6.758218 | 0.077855 | 0.079488 | 0.029696 | 0.025536 | 0.84672 | 0.82016 | 0.787712 | 0.75776 | 0.751424 | 0.726208 | 0 | 0.01825 | 0.160011 | 21,461 | 548 | 118 | 39.162409 | 0.848505 | 0.092587 | 0 | 0.672043 | 0 | 0 | 0.05378 | 0.020889 | 0.002688 | 0 | 0 | 0 | 0.02957 | 1 | 0.02957 | false | 0 | 0.034946 | 0 | 0.067204 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4c3a7c9949a60f2b43eea8e39afc286322165f98 | 217 | py | Python | macauff/__init__.py | Onoddil/macauff | 6184b110811dfd8a3c0ccc39e660806b3b886eac | [
"BSD-3-Clause"
] | 5 | 2021-03-03T22:03:03.000Z | 2022-03-11T05:42:18.000Z | macauff/__init__.py | Onoddil/macauff | 6184b110811dfd8a3c0ccc39e660806b3b886eac | [
"BSD-3-Clause"
] | 8 | 2020-07-09T09:26:17.000Z | 2022-03-30T14:24:11.000Z | macauff/__init__.py | Onoddil/macauff | 6184b110811dfd8a3c0ccc39e660806b3b886eac | [
"BSD-3-Clause"
] | 1 | 2022-02-09T14:01:43.000Z | 2022-02-09T14:01:43.000Z | from .matching import *
from .perturbation_auf import *
from .group_sources import *
from .make_set_list import *
from .misc_functions import *
from .photometric_likelihood import *
from .counterpart_pairing import *
| 27.125 | 37 | 0.806452 | 28 | 217 | 6 | 0.571429 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 217 | 7 | 38 | 31 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4c541dffba0c2033e3bef66395b12570bdb8e854 | 210 | py | Python | iwpt2020/mk_token_num.py | attardi/iwpt-shared-task-2020 | 3a70c42d53716678776afcccf02d896655777353 | [
"Apache-2.0"
] | 3 | 2020-06-16T12:58:57.000Z | 2021-06-07T21:07:37.000Z | iwpt2020/mk_token_num.py | attardi/iwpt-shared-task-2020 | 3a70c42d53716678776afcccf02d896655777353 | [
"Apache-2.0"
] | 6 | 2020-06-22T07:46:49.000Z | 2022-02-10T02:22:14.000Z | iwpt2020/mk_token_num.py | attardi/iwpt-shared-task-2020 | 3a70c42d53716678776afcccf02d896655777353 | [
"Apache-2.0"
] | 2 | 2020-06-27T07:32:43.000Z | 2020-11-10T07:21:03.000Z | # -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2020-05-06 20:58
text = '30.8K 15.7K 220.5K 46.3K 58.7K 36.9K 35.3K 11.2K 10.8K 26.4K 22.6K 65.7K 117.4K 13.0K 39.3K 2.1K 17.1K'
print(' & '.join(text.split())) | 30 | 111 | 0.614286 | 50 | 210 | 2.58 | 0.82 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.369318 | 0.161905 | 210 | 7 | 112 | 30 | 0.363636 | 0.27619 | 0 | 0 | 0 | 0.5 | 0.704698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
d5e4dfa1a3d8abaa6957efa9da0eddffc6c06279 | 74 | py | Python | src/yypget/executor/__init__.py | ysouyno/yypget | c3a20be61546d3f59bf690f09857aec8204460c7 | [
"MIT"
] | null | null | null | src/yypget/executor/__init__.py | ysouyno/yypget | c3a20be61546d3f59bf690f09857aec8204460c7 | [
"MIT"
] | null | null | null | src/yypget/executor/__init__.py | ysouyno/yypget | c3a20be61546d3f59bf690f09857aec8204460c7 | [
"MIT"
] | null | null | null | from .sv_baidu import *
from .wenku_baidu import *
from .tv_sohu import *
| 18.5 | 26 | 0.756757 | 12 | 74 | 4.416667 | 0.583333 | 0.415094 | 0.566038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 74 | 3 | 27 | 24.666667 | 0.854839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
9103824415e9a5020d033ef27f58f38104b99308 | 4,907 | py | Python | lib/backbone/build_regnet_dropblock.py | yaopengUSTC/mbit-skin-cancer | a82a87b2abebaf724dbe2a7b7e833c434c1b56a0 | [
"MIT"
] | 3 | 2022-01-23T05:27:43.000Z | 2022-03-08T07:29:25.000Z | lib/backbone/build_regnet_dropblock.py | yaopengUSTC/mbit-skin-cancer | a82a87b2abebaf724dbe2a7b7e833c434c1b56a0 | [
"MIT"
] | null | null | null | lib/backbone/build_regnet_dropblock.py | yaopengUSTC/mbit-skin-cancer | a82a87b2abebaf724dbe2a7b7e833c434c1b56a0 | [
"MIT"
] | null | null | null | from .regnet_dropblock import RegNet_DropBlock
import torch
import os
import yaml
pretrained_settings = {
'regnet': {
'imagenet': {
'input_space': 'RGB',
'input_size': [3, 224, 224],
'input_range': [0, 1],
'mean': [0.485, 0.456, 0.406],
'std': [0... | 40.891667 | 96 | 0.713674 | 625 | 4,907 | 5.3312 | 0.1328 | 0.105042 | 0.060024 | 0.054022 | 0.87455 | 0.843938 | 0.843938 | 0.829532 | 0.829532 | 0.829532 | 0 | 0.025079 | 0.163032 | 4,907 | 119 | 97 | 41.235294 | 0.786219 | 0.013043 | 0 | 0.56701 | 0 | 0 | 0.228701 | 0.106079 | 0 | 0 | 0 | 0 | 0.061856 | 1 | 0.061856 | false | 0 | 0.041237 | 0 | 0.154639 | 0.061856 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
910a70e073c855717b451a7f15365abcdfaa26c7 | 192 | py | Python | old/lib/games_puzzles_algorithms/players/rule_based/first_action_agent.py | feiooo/games-puzzles-algorithms | 66d97135d163fb04e820338068d9bd9e12d907e9 | [
"MIT"
] | null | null | null | old/lib/games_puzzles_algorithms/players/rule_based/first_action_agent.py | feiooo/games-puzzles-algorithms | 66d97135d163fb04e820338068d9bd9e12d907e9 | [
"MIT"
] | null | null | null | old/lib/games_puzzles_algorithms/players/rule_based/first_action_agent.py | feiooo/games-puzzles-algorithms | 66d97135d163fb04e820338068d9bd9e12d907e9 | [
"MIT"
] | null | null | null | class FirstActionAgent(object):
"""docstring for FirstActionAgent"""
def select_action(self, state, **_):
return next(state.legal_actions())
def reset(self):
pass
| 24 | 42 | 0.651042 | 20 | 192 | 6.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223958 | 192 | 7 | 43 | 27.428571 | 0.818792 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.2 | 0 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 6 |
911f7457664067fd1a45870cbbe9a5ec20d0742b | 79 | py | Python | microscopes/hmm/model.py | datamicroscopes/hmm | 1dadc5456d33023c6c86eb29ad69200fd3b296da | [
"BSD-3-Clause"
] | 9 | 2015-04-21T07:08:14.000Z | 2020-11-07T17:45:08.000Z | microscopes/hmm/model.py | jamezhetianswang/hmm | 1dadc5456d33023c6c86eb29ad69200fd3b296da | [
"BSD-3-Clause"
] | 10 | 2015-04-08T20:42:49.000Z | 2015-04-17T21:10:22.000Z | microscopes/hmm/model.py | jamezhetianswang/hmm | 1dadc5456d33023c6c86eb29ad69200fd3b296da | [
"BSD-3-Clause"
] | 7 | 2015-04-10T18:53:26.000Z | 2021-09-24T06:58:40.000Z | from microscopes.hmm._model import state
from microscopes.common.rng import rng | 39.5 | 40 | 0.860759 | 12 | 79 | 5.583333 | 0.666667 | 0.447761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088608 | 79 | 2 | 41 | 39.5 | 0.930556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
9129713ad7aca0663a701ad5c98f5c81479ff829 | 57 | py | Python | redis_db/victims/__init__.py | mica-framework/server | 5ae35f0e2cfeefb94ab7b8aaf6f9ab36a2fb1862 | [
"MIT"
] | null | null | null | redis_db/victims/__init__.py | mica-framework/server | 5ae35f0e2cfeefb94ab7b8aaf6f9ab36a2fb1862 | [
"MIT"
] | null | null | null | redis_db/victims/__init__.py | mica-framework/server | 5ae35f0e2cfeefb94ab7b8aaf6f9ab36a2fb1862 | [
"MIT"
] | null | null | null | # get all components
from . import get
from . import set
| 14.25 | 20 | 0.736842 | 9 | 57 | 4.666667 | 0.666667 | 0.47619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 57 | 3 | 21 | 19 | 0.933333 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e6a6afecd0b30239b3a618f12f92782b6bc79f58 | 47 | py | Python | src/apps/distributed_efforts/models/__init__.py | sanderland/katago-server | 6414fab080d007c05068a06ff4f25907b92848bd | [
"MIT"
] | 27 | 2020-05-03T11:01:27.000Z | 2022-03-17T05:33:10.000Z | src/apps/distributed_efforts/models/__init__.py | sanderland/katago-server | 6414fab080d007c05068a06ff4f25907b92848bd | [
"MIT"
] | 54 | 2020-05-09T01:18:41.000Z | 2022-01-22T10:31:15.000Z | src/apps/distributed_efforts/models/__init__.py | sanderland/katago-server | 6414fab080d007c05068a06ff4f25907b92848bd | [
"MIT"
] | 9 | 2020-09-29T11:31:32.000Z | 2022-03-09T01:37:50.000Z | from .user_last_version import UserLastVersion
| 23.5 | 46 | 0.893617 | 6 | 47 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 47 | 1 | 47 | 47 | 0.930233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
fc0c4d28f857bc6cbaa6aab0a67633a16b9d2b9e | 25,337 | py | Python | tools/accuracy_checker/tests/test_metric_evaluator.py | apankratovantonp/open_model_zoo | e372d4173e50741a6828cda415d55c37320f89cd | [
"Apache-2.0"
] | 5 | 2020-03-09T07:39:04.000Z | 2021-08-16T07:17:28.000Z | tools/accuracy_checker/tests/test_metric_evaluator.py | ananda89/open_model_zoo | e372d4173e50741a6828cda415d55c37320f89cd | [
"Apache-2.0"
] | 6 | 2020-09-26T01:24:39.000Z | 2022-02-10T02:16:03.000Z | tools/accuracy_checker/tests/test_metric_evaluator.py | ananda89/open_model_zoo | e372d4173e50741a6828cda415d55c37320f89cd | [
"Apache-2.0"
] | 3 | 2020-07-06T08:45:26.000Z | 2020-11-12T10:14:45.000Z | """
Copyright (c) 2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | 52.457557 | 119 | 0.700399 | 2,804 | 25,337 | 6.025678 | 0.067404 | 0.081439 | 0.085938 | 0.062322 | 0.868549 | 0.84742 | 0.812737 | 0.798118 | 0.77687 | 0.750296 | 0 | 0.020326 | 0.190275 | 25,337 | 482 | 120 | 52.56639 | 0.803227 | 0.02222 | 0 | 0.532086 | 0 | 0 | 0.11435 | 0.009731 | 0 | 0 | 0 | 0 | 0.200535 | 1 | 0.147059 | false | 0 | 0.016043 | 0 | 0.168449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
fc80b91e694b9fc02b9d3be0e1d4388ffb0d4608 | 91 | py | Python | experiments/src/training/__init__.py | chrislybaer/huggingmolecules | 210239ac46b467e900a47e8f4520054636744ca6 | [
"Apache-2.0"
] | 60 | 2021-05-07T16:07:26.000Z | 2022-03-26T19:23:54.000Z | experiments/src/training/__init__.py | gabegomes/huggingmolecules | adc581c97fbc21d9967dd9334afa94b22fb77651 | [
"Apache-2.0"
] | 11 | 2021-05-07T16:01:35.000Z | 2022-03-09T13:06:05.000Z | experiments/src/training/__init__.py | gabegomes/huggingmolecules | adc581c97fbc21d9967dd9334afa94b22fb77651 | [
"Apache-2.0"
] | 12 | 2021-05-20T08:02:25.000Z | 2022-03-10T14:11:36.000Z | from .training_train_model import train_model
from .training_utils import get_data_loaders
| 30.333333 | 45 | 0.89011 | 14 | 91 | 5.357143 | 0.642857 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 91 | 2 | 46 | 45.5 | 0.903614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5dbc5b6800ffb09218d32abe853be06157bf5176 | 30 | py | Python | src/dataset/__init__.py | getnexar/squeezeDet | 7655afdcd938e0c81991b5bc1aa8ec625d72f26a | [
"BSD-2-Clause"
] | 1 | 2018-01-30T05:17:35.000Z | 2018-01-30T05:17:35.000Z | src/dataset/__init__.py | getnexar/squeezeDet | 7655afdcd938e0c81991b5bc1aa8ec625d72f26a | [
"BSD-2-Clause"
] | 1 | 2017-05-03T14:30:34.000Z | 2017-05-03T14:30:34.000Z | src/dataset/__init__.py | getnexar/squeezeDet | 7655afdcd938e0c81991b5bc1aa8ec625d72f26a | [
"BSD-2-Clause"
] | 1 | 2017-10-01T22:46:02.000Z | 2017-10-01T22:46:02.000Z | from nexarear import nexarear
| 15 | 29 | 0.866667 | 4 | 30 | 6.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 30 | 1 | 30 | 30 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5dfa8b4be042d693826aeffeec469139eab08a03 | 69 | py | Python | aksolve/client/aksolve/__init__.py | Bears-R-Us/arkouda-contrib | 6965d6f8a274dd633ebf718b56b93c40562627fc | [
"MIT"
] | 2 | 2022-02-09T20:20:47.000Z | 2022-02-10T01:00:14.000Z | aksolve/client/aksolve/__init__.py | Bears-R-Us/arkouda-contrib | 6965d6f8a274dd633ebf718b56b93c40562627fc | [
"MIT"
] | 8 | 2022-02-24T12:52:34.000Z | 2022-03-30T16:51:07.000Z | aksolve/client/aksolve/__init__.py | Bears-R-Us/arkouda-contrib | 6965d6f8a274dd633ebf718b56b93c40562627fc | [
"MIT"
] | 2 | 2022-02-14T23:32:19.000Z | 2022-03-25T14:59:39.000Z | from aksolve.util import *
from aksolve.conjugate_gradients import *
| 23 | 41 | 0.826087 | 9 | 69 | 6.222222 | 0.666667 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115942 | 69 | 2 | 42 | 34.5 | 0.918033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f8da88defbe5885cffcba3e31b666fd4b91d9131 | 11,806 | py | Python | tests/test_filtering.py | minitriga/netcfgbu | 5c5dbb1936740833f5f535d99e2d6c0a17d38fe6 | [
"Apache-2.0"
] | 83 | 2020-06-02T13:25:33.000Z | 2022-03-07T20:50:36.000Z | tests/test_filtering.py | minitriga/netcfgbu | 5c5dbb1936740833f5f535d99e2d6c0a17d38fe6 | [
"Apache-2.0"
] | 55 | 2020-06-03T17:51:31.000Z | 2021-08-14T14:13:56.000Z | tests/test_filtering.py | minitriga/netcfgbu | 5c5dbb1936740833f5f535d99e2d6c0a17d38fe6 | [
"Apache-2.0"
] | 16 | 2020-06-05T20:32:27.000Z | 2021-11-01T17:06:38.000Z | import pytest # noqa
from netcfgbu.filtering import create_filter
import csv
def test_filtering_pass_include():
"""
Test the use-case where the constraint is a valid set of "limits"
"""
key_values = [("os_name", "eos"), ("host", ".*nyc1")]
constraints = [f"{key}={val}" for key, val in key_values]... | 35.347305 | 87 | 0.669575 | 1,729 | 11,806 | 4.426836 | 0.094274 | 0.073164 | 0.095114 | 0.112882 | 0.837863 | 0.817089 | 0.796969 | 0.758688 | 0.745101 | 0.708518 | 0 | 0.05928 | 0.181264 | 11,806 | 333 | 88 | 35.453453 | 0.732568 | 0.117483 | 0 | 0.543147 | 0 | 0 | 0.198741 | 0.013767 | 0 | 0 | 0 | 0 | 0.294416 | 1 | 0.076142 | false | 0.020305 | 0.015228 | 0 | 0.091371 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5d01a4b069935915db4dc001108366c1448c653c | 24,078 | py | Python | mlni/adml_classification.py | anbai106/pyhydra | 1b1060c06b15c02ca417fee13dc7def77b95d4da | [
"MIT"
] | 1 | 2022-03-21T13:18:13.000Z | 2022-03-21T13:18:13.000Z | mlni/adml_classification.py | anbai106/pyhydra | 1b1060c06b15c02ca417fee13dc7def77b95d4da | [
"MIT"
] | 4 | 2021-04-20T13:37:32.000Z | 2021-05-07T01:54:22.000Z | mlni/adml_classification.py | anbai106/pyhydra | 1b1060c06b15c02ca417fee13dc7def77b95d4da | [
"MIT"
] | 2 | 2020-10-24T16:45:07.000Z | 2021-01-11T03:13:17.000Z | from mlni.classification import RB_RepeatedHoldOut_DualSVM_Classification, RB_KFold_DualSVM_Classification, \
VB_RepeatedHoldOut_DualSVM_Classification, VB_KFold_DualSVM_Classification, RB_RepeatedHoldOut_DualSVM_Classification_Nested_Feature_Selection, \
VB_RepeatedHoldOut_DualSVM_Classification_Nested_Feature... | 58.726829 | 163 | 0.666916 | 3,069 | 24,078 | 5.009449 | 0.104268 | 0.039222 | 0.016912 | 0.024977 | 0.823403 | 0.806166 | 0.787173 | 0.78327 | 0.775595 | 0.770001 | 0 | 0.002997 | 0.251557 | 24,078 | 409 | 164 | 58.870416 | 0.850119 | 0.383462 | 0 | 0.54 | 0 | 0 | 0.188758 | 0.018925 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035 | false | 0.005 | 0.03 | 0 | 0.07 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5d0c37c26cd0d11685c84090c0a3617c9d686204 | 41 | py | Python | operadores basicos/potencia1.py | gabys12/portafolio-fundamento-de-programacion | c9b47f32e885ed6ae80b14133a609798ea034e19 | [
"CNRI-Python"
] | null | null | null | operadores basicos/potencia1.py | gabys12/portafolio-fundamento-de-programacion | c9b47f32e885ed6ae80b14133a609798ea034e19 | [
"CNRI-Python"
] | null | null | null | operadores basicos/potencia1.py | gabys12/portafolio-fundamento-de-programacion | c9b47f32e885ed6ae80b14133a609798ea034e19 | [
"CNRI-Python"
] | null | null | null | a = 16
b = 4
print("a ** b =", a ** b)
| 8.2 | 26 | 0.341463 | 9 | 41 | 1.555556 | 0.555556 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0.365854 | 41 | 4 | 27 | 10.25 | 0.423077 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
5d40b476808a8b97e09351bcf0cec6155319ad9a | 1,358 | py | Python | miniproject/main/dataAPI.py | LokeshShelva/pythonproject | b2cb7e3323fc994473b7ffefc47cc72882e29dab | [
"MIT"
] | null | null | null | miniproject/main/dataAPI.py | LokeshShelva/pythonproject | b2cb7e3323fc994473b7ffefc47cc72882e29dab | [
"MIT"
] | null | null | null | miniproject/main/dataAPI.py | LokeshShelva/pythonproject | b2cb7e3323fc994473b7ffefc47cc72882e29dab | [
"MIT"
] | null | null | null | import ast
def data_API(data, user):
if user:
cleaned = {
"name": data['graphTitle'],
"user": user,
"description": data['graphDescription'],
"xAxis": {
"name": data["xAxisName"],
"unit": data["xAxisUnit"],
"min... | 30.863636 | 52 | 0.427835 | 92 | 1,358 | 6.282609 | 0.315217 | 0.083045 | 0.051903 | 0.086505 | 0.813149 | 0.813149 | 0.813149 | 0.813149 | 0.813149 | 0.813149 | 0 | 0 | 0.411635 | 1,358 | 43 | 53 | 31.581395 | 0.723404 | 0 | 0 | 0.7 | 0 | 0 | 0.290133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.025 | 0 | 0.075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5d52d3b0d437092d045deb335af8d9155f5789d6 | 20 | py | Python | 0x02-python-import_modules/0-import_add.py | C-distin/alx-higher_level_programming | ee018135b24ac07d40f2309a4febf21b8a25aee4 | [
"MIT"
] | null | null | null | 0x02-python-import_modules/0-import_add.py | C-distin/alx-higher_level_programming | ee018135b24ac07d40f2309a4febf21b8a25aee4 | [
"MIT"
] | null | null | null | 0x02-python-import_modules/0-import_add.py | C-distin/alx-higher_level_programming | ee018135b24ac07d40f2309a4febf21b8a25aee4 | [
"MIT"
] | null | null | null | __import__("0-add")
| 10 | 19 | 0.7 | 3 | 20 | 3.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.05 | 20 | 1 | 20 | 20 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
5d67882c3fb215a419558b10f4df40e6d30a6f3e | 23 | py | Python | src/ncon/__init__.py | brucelyu/ncon | 1dc412ed4f6f07c403614e5c09b9856ce0578b5b | [
"MIT"
] | 30 | 2017-07-14T21:56:50.000Z | 2022-01-26T06:02:56.000Z | src/ncon/__init__.py | brucelyu/ncon | 1dc412ed4f6f07c403614e5c09b9856ce0578b5b | [
"MIT"
] | 2 | 2021-03-30T17:00:20.000Z | 2022-03-05T14:07:22.000Z | src/ncon/__init__.py | brucelyu/ncon | 1dc412ed4f6f07c403614e5c09b9856ce0578b5b | [
"MIT"
] | 13 | 2018-06-29T15:57:48.000Z | 2022-02-15T16:40:00.000Z | from .ncon import ncon
| 11.5 | 22 | 0.782609 | 4 | 23 | 4.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 23 | 1 | 23 | 23 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5d7366af356f48e7aa6be76516dc335aeefbb24c | 117 | py | Python | tests/unit/test_package.py | Etiqa/bromine | cabf0931f5a06796c26fdc7fb9f7ecf147554fd5 | [
"BSD-2-Clause"
] | 2 | 2018-09-20T12:37:01.000Z | 2021-08-30T14:44:25.000Z | tests/unit/test_package.py | Etiqa/bromine | cabf0931f5a06796c26fdc7fb9f7ecf147554fd5 | [
"BSD-2-Clause"
] | null | null | null | tests/unit/test_package.py | Etiqa/bromine | cabf0931f5a06796c26fdc7fb9f7ecf147554fd5 | [
"BSD-2-Clause"
] | null | null | null | # pylint: disable=missing-docstring
import bromine
def test_version():
assert hasattr(bromine, '__version__')
| 14.625 | 42 | 0.752137 | 13 | 117 | 6.384615 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145299 | 117 | 7 | 43 | 16.714286 | 0.83 | 0.282051 | 0 | 0 | 0 | 0 | 0.134146 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
538e61cd05f03539a74b55556c3b9e0d634f2b50 | 9,847 | py | Python | tests/test_backport_pr.py | lysnikolaou/miss-islington | 5f462576e9b8a4d9910271a386033a1d764d5a66 | [
"Apache-2.0"
] | 13 | 2021-04-01T20:27:23.000Z | 2021-12-30T17:11:24.000Z | tests/test_backport_pr.py | lysnikolaou/miss-islington | 5f462576e9b8a4d9910271a386033a1d764d5a66 | [
"Apache-2.0"
] | 3 | 2021-02-26T03:06:57.000Z | 2022-01-06T22:52:30.000Z | tests/test_backport_pr.py | ConnectionMaster/miss-islington | ac121b7808929853a99ca22c26eb31f9dde56e8c | [
"Apache-2.0"
] | null | null | null | import os
from unittest import mock
from gidgethub import sansio
import redis
import kombu
os.environ["REDIS_URL"] = "someurl"
from miss_islington import backport_pr
class FakeGH:
def __init__(self, *, getitem=None, post=None):
self._getitem_return = getitem
self.getitem_url = None
sel... | 35.420863 | 94 | 0.598964 | 1,165 | 9,847 | 4.902146 | 0.103863 | 0.055857 | 0.091403 | 0.12187 | 0.893364 | 0.88776 | 0.874103 | 0.867974 | 0.862896 | 0.862896 | 0 | 0.029479 | 0.24901 | 9,847 | 277 | 95 | 35.548736 | 0.742799 | 0 | 0 | 0.687764 | 0 | 0.025316 | 0.390779 | 0.06865 | 0 | 0 | 0 | 0 | 0.088608 | 1 | 0.004219 | false | 0 | 0.025316 | 0 | 0.042194 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
53c6db9ce4b987f213971d2d0382ec5a24356506 | 3,678 | py | Python | src/airfly/_vendor/airflow/providers/google/cloud/operators/pubsub.py | ryanchao2012/airfly | 230ddd88885defc67485fa0c51f66c4a67ae98a9 | [
"MIT"
] | 7 | 2021-09-27T11:38:48.000Z | 2022-02-01T06:06:24.000Z | src/airfly/_vendor/airflow/providers/google/cloud/operators/pubsub.py | ryanchao2012/airfly | 230ddd88885defc67485fa0c51f66c4a67ae98a9 | [
"MIT"
] | null | null | null | src/airfly/_vendor/airflow/providers/google/cloud/operators/pubsub.py | ryanchao2012/airfly | 230ddd88885defc67485fa0c51f66c4a67ae98a9 | [
"MIT"
] | null | null | null | # Auto generated by 'inv collect-airflow'
from airfly._vendor.airflow.models.baseoperator import BaseOperator
class PubSubCreateSubscriptionOperator(BaseOperator):
topic: "str"
project_id: "typing.Union[str, NoneType]"
subscription: "typing.Union[str, NoneType]"
subscription_project_id: "typing.Union[... | 45.407407 | 108 | 0.736542 | 447 | 3,678 | 5.908277 | 0.185682 | 0.191594 | 0.132526 | 0.166604 | 0.763347 | 0.74593 | 0.696706 | 0.696706 | 0.696706 | 0.626278 | 0 | 0.00187 | 0.127787 | 3,678 | 80 | 109 | 45.975 | 0.821384 | 0.010604 | 0 | 0.666667 | 1 | 0 | 0.551553 | 0.253506 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.014493 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
53d0d6045eabd60a7f89abf358eef718589f4e31 | 25 | py | Python | continual_learning/methods/task_incremental/multi_task/gg/piggyback/__init__.py | jaryP/ContinualAI | 7d9b7614066d219ebd72049692da23ad6ec132b0 | [
"MIT"
] | null | null | null | continual_learning/methods/task_incremental/multi_task/gg/piggyback/__init__.py | jaryP/ContinualAI | 7d9b7614066d219ebd72049692da23ad6ec132b0 | [
"MIT"
] | null | null | null | continual_learning/methods/task_incremental/multi_task/gg/piggyback/__init__.py | jaryP/ContinualAI | 7d9b7614066d219ebd72049692da23ad6ec132b0 | [
"MIT"
] | null | null | null | from .PB import PiggyBack | 25 | 25 | 0.84 | 4 | 25 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
53dc518117820338344e4c8149cc7f61ce092ddd | 43 | py | Python | python/packages/isce3/cuda/geocode/__init__.py | isce3-testing/isce3-circleci-poc | ec1dfb6019bcdc7afb7beee7be0fa0ce3f3b87b3 | [
"Apache-2.0"
] | null | null | null | python/packages/isce3/cuda/geocode/__init__.py | isce3-testing/isce3-circleci-poc | ec1dfb6019bcdc7afb7beee7be0fa0ce3f3b87b3 | [
"Apache-2.0"
] | 1 | 2021-12-23T00:00:31.000Z | 2021-12-23T00:00:31.000Z | python/packages/isce3/cuda/geocode/__init__.py | isce3-testing/isce3-circleci-poc | ec1dfb6019bcdc7afb7beee7be0fa0ce3f3b87b3 | [
"Apache-2.0"
] | 1 | 2021-12-02T21:10:11.000Z | 2021-12-02T21:10:11.000Z | from isce3.ext.isce3.cuda.geocode import *
| 21.5 | 42 | 0.790698 | 7 | 43 | 4.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0.093023 | 43 | 1 | 43 | 43 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
07060848d2f1291cd59a021526d0664f56dfb94b | 176 | py | Python | Py3DViewer/utils/__init__.py | chiarasharp/py3DViewer | c1bcd32f15e648cb7262ae25ae834d47ed9fd00d | [
"MIT"
] | null | null | null | Py3DViewer/utils/__init__.py | chiarasharp/py3DViewer | c1bcd32f15e648cb7262ae25ae834d47ed9fd00d | [
"MIT"
] | null | null | null | Py3DViewer/utils/__init__.py | chiarasharp/py3DViewer | c1bcd32f15e648cb7262ae25ae834d47ed9fd00d | [
"MIT"
] | null | null | null | from .ColorMap import *
from .IO import *
from .metrics import *
from .Observable import *
from .ObservableArray import *
from .load_operations import *
from .matrices import * | 25.142857 | 30 | 0.767045 | 22 | 176 | 6.090909 | 0.454545 | 0.447761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153409 | 176 | 7 | 31 | 25.142857 | 0.899329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
074279a742c1ca6ba48653ebaadc8507f7df174a | 190 | py | Python | test/test_cli.py | GochoMugo/remindme | 6cf2f94ce07ead754f1ee5976a7e7d7cbfa1a2e4 | [
"MIT"
] | 17 | 2015-05-02T22:58:07.000Z | 2017-04-17T06:33:43.000Z | test/test_cli.py | GochoMugo/remindme | 6cf2f94ce07ead754f1ee5976a7e7d7cbfa1a2e4 | [
"MIT"
] | 8 | 2015-02-14T16:22:27.000Z | 2016-10-26T13:15:19.000Z | test/test_cli.py | GochoMugo/remindme | 6cf2f94ce07ead754f1ee5976a7e7d7cbfa1a2e4 | [
"MIT"
] | 2 | 2016-02-26T10:47:56.000Z | 2019-10-09T05:49:51.000Z | '''
Tests against remindme's command-line runner
'''
import unittest
from remindme import cli
class Test_Cli(unittest.TestCase):
'''Tests against the Command-line Runner.'''
pass
| 15.833333 | 48 | 0.726316 | 25 | 190 | 5.48 | 0.64 | 0.175182 | 0.248175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168421 | 190 | 11 | 49 | 17.272727 | 0.867089 | 0.436842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
074af095acfa5bceda50730b1b50492789beab75 | 119 | py | Python | tests/test_testing.py | guiferviz/python_module | 0d4494d6d93fa5e8b0d208e50eb0d3290b1107a9 | [
"MIT"
] | null | null | null | tests/test_testing.py | guiferviz/python_module | 0d4494d6d93fa5e8b0d208e50eb0d3290b1107a9 | [
"MIT"
] | null | null | null | tests/test_testing.py | guiferviz/python_module | 0d4494d6d93fa5e8b0d208e50eb0d3290b1107a9 | [
"MIT"
] | null | null | null |
from .context import mymodule
def test_testing_ok():
assert 2 == 2
def test_testing_fail():
assert 2 == 12
| 11.9 | 29 | 0.672269 | 18 | 119 | 4.222222 | 0.666667 | 0.184211 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054945 | 0.235294 | 119 | 9 | 30 | 13.222222 | 0.78022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.4 | true | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
ab06371096624015995a728fde4e976186c0671f | 37 | py | Python | sudoku/solver/__init__.py | tateishi/py-sudoku | 3af656b2ebe128543ed2bb9c613a6844eda868ca | [
"MIT"
] | null | null | null | sudoku/solver/__init__.py | tateishi/py-sudoku | 3af656b2ebe128543ed2bb9c613a6844eda868ca | [
"MIT"
] | null | null | null | sudoku/solver/__init__.py | tateishi/py-sudoku | 3af656b2ebe128543ed2bb9c613a6844eda868ca | [
"MIT"
] | null | null | null | from .base import BaseSolver, Solver
| 18.5 | 36 | 0.810811 | 5 | 37 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 37 | 1 | 37 | 37 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ab24f816cbb0b7895be8dff12a12c6008a79147b | 140 | py | Python | compile_ui.py | yamiyukiharu/trafficVehicleCounter | b563cff04d821975c74a4a37ddd784541e0ba44e | [
"MIT"
] | 1 | 2022-02-03T12:00:29.000Z | 2022-02-03T12:00:29.000Z | compile_ui.py | yamiyukiharu/trafficVehicleCounter | b563cff04d821975c74a4a37ddd784541e0ba44e | [
"MIT"
] | null | null | null | compile_ui.py | yamiyukiharu/trafficVehicleCounter | b563cff04d821975c74a4a37ddd784541e0ba44e | [
"MIT"
] | 1 | 2022-01-26T10:00:50.000Z | 2022-01-26T10:00:50.000Z | import os
# os.system('pyside2-rcc -o icons_rc.py ./qt/icons/icons.qrc')
os.system('pyside2-uic -g python -o ./qt/Ui_Form.py ./qt/form.ui') | 35 | 66 | 0.692857 | 28 | 140 | 3.392857 | 0.571429 | 0.168421 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.092857 | 140 | 4 | 66 | 35 | 0.732283 | 0.428571 | 0 | 0 | 0 | 0 | 0.670886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
dba73eb4547563a42ba13bba8d50327f63aa9356 | 2,237 | py | Python | auth0/v2/test/authentication/test_delegated.py | maronnax/auth0-python | 855e275da1f9fddc851f34df4a6b304eed8abb96 | [
"MIT"
] | null | null | null | auth0/v2/test/authentication/test_delegated.py | maronnax/auth0-python | 855e275da1f9fddc851f34df4a6b304eed8abb96 | [
"MIT"
] | null | null | null | auth0/v2/test/authentication/test_delegated.py | maronnax/auth0-python | 855e275da1f9fddc851f34df4a6b304eed8abb96 | [
"MIT"
] | null | null | null | import unittest
import mock
from ...authentication.delegated import Delegated
class TestDelegated(unittest.TestCase):
@mock.patch('auth0.v2.authentication.delegated.Delegated.post')
def test_get_token_id_token(self, mock_post):
d = Delegated('my.domain.com')
d.get_token(client_id='cid',
... | 30.643836 | 69 | 0.517658 | 227 | 2,237 | 4.911894 | 0.242291 | 0.043049 | 0.049327 | 0.043049 | 0.799103 | 0.799103 | 0.767713 | 0.767713 | 0.738117 | 0.738117 | 0 | 0.005442 | 0.34287 | 2,237 | 72 | 70 | 31.069444 | 0.753061 | 0 | 0 | 0.701754 | 0 | 0 | 0.236477 | 0.064372 | 0 | 0 | 0 | 0 | 0.122807 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.122807 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
dbbe028644c0b2696785941f8f888ec3fa90295f | 270 | py | Python | src/encrypt.py | ksaweryr/Database-Faker | f9322de9a241ee91ed6c13cfb8f08f32a79c5fb5 | [
"MIT"
] | 1 | 2022-02-14T12:06:11.000Z | 2022-02-14T12:06:11.000Z | src/encrypt.py | ksaweryr/Database-Faker | f9322de9a241ee91ed6c13cfb8f08f32a79c5fb5 | [
"MIT"
] | null | null | null | src/encrypt.py | ksaweryr/Database-Faker | f9322de9a241ee91ed6c13cfb8f08f32a79c5fb5 | [
"MIT"
] | null | null | null | import platform
if platform.system() in ('Linux', 'Darwin'):
from crypt import crypt, METHOD_SHA512
def encrypt(s):
return crypt(s, salt=METHOD_SHA512)
else:
from passlib.hash import sha512_crypt
def encrypt(s):
return sha512_crypt.encrypt(s, rounds=5000) | 16.875 | 45 | 0.740741 | 40 | 270 | 4.9 | 0.525 | 0.122449 | 0.112245 | 0.173469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069869 | 0.151852 | 270 | 16 | 45 | 16.875 | 0.786026 | 0 | 0 | 0.222222 | 0 | 0 | 0.04059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.333333 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 6 |
91952c33d576f6cf924a15bf15fe0f5ef09d4bb2 | 25,596 | py | Python | tests/test_normal.py | laike9m/ezcf | 09b236c0670709f7ab01b17c78c12cec2cdfc779 | [
"MIT"
] | 186 | 2015-03-31T10:49:35.000Z | 2021-11-28T00:46:13.000Z | tests/test_normal.py | laike9m/ezcf | 09b236c0670709f7ab01b17c78c12cec2cdfc779 | [
"MIT"
] | null | null | null | tests/test_normal.py | laike9m/ezcf | 09b236c0670709f7ab01b17c78c12cec2cdfc779 | [
"MIT"
] | 23 | 2015-04-01T01:56:12.000Z | 2018-02-24T09:41:35.000Z | # coding: utf-8
import sys
import unittest
import os
import datetime
from pprint import pprint
try:
import ezcf
except ImportError:
sys.path.append('../')
import ezcf
class TestProto(unittest.TestCase):
def test_import(self):
import sample_json
self.assertEqual(sample_json.hello, "w... | 40.757962 | 84 | 0.515471 | 2,624 | 25,596 | 4.945122 | 0.047256 | 0.190737 | 0.101726 | 0.12947 | 0.950216 | 0.935496 | 0.906982 | 0.861282 | 0.823443 | 0.77127 | 0 | 0.05722 | 0.349312 | 25,596 | 627 | 85 | 40.822967 | 0.721885 | 0.000508 | 0 | 0.59 | 0 | 0 | 0.166882 | 0.01118 | 0 | 0 | 0 | 0 | 0.296667 | 1 | 0.026667 | false | 0 | 0.188333 | 0 | 0.216667 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
91d76e35a31fab1d697ac6f0237121db38de9f1b | 116 | py | Python | freenom_dns_updater/exception/remove_error.py | anhdhbn/Freenom-dns-updater | ec928755d7e18efa00bcc9aed20ad0b3eb093239 | [
"MIT"
] | 160 | 2016-02-27T15:20:24.000Z | 2022-03-13T17:27:49.000Z | freenom_dns_updater/exception/remove_error.py | anhdhbn/Freenom-dns-updater | ec928755d7e18efa00bcc9aed20ad0b3eb093239 | [
"MIT"
] | 31 | 2016-02-12T21:25:35.000Z | 2022-03-03T19:24:59.000Z | freenom_dns_updater/exception/remove_error.py | anhdhbn/Freenom-dns-updater | ec928755d7e18efa00bcc9aed20ad0b3eb093239 | [
"MIT"
] | 56 | 2016-03-05T14:39:21.000Z | 2022-02-11T01:21:15.000Z | from .dns_record_base_exception import DnsRecordBaseException
class RemoveError(DnsRecordBaseException):
pass
| 19.333333 | 61 | 0.853448 | 11 | 116 | 8.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112069 | 116 | 5 | 62 | 23.2 | 0.932039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
37df6822636300e0157ff3ac6360e5eda7a37f68 | 35 | py | Python | python/covertable/sorters/__init__.py | walkframe/covertable | 0519c947c88319f51d26949f1b0e3113ae6a90e6 | [
"Apache-2.0"
] | 29 | 2019-06-17T13:33:42.000Z | 2022-03-08T01:16:54.000Z | python/covertable/sorters/__init__.py | walkframe/covertable | 0519c947c88319f51d26949f1b0e3113ae6a90e6 | [
"Apache-2.0"
] | 17 | 2019-10-01T18:09:29.000Z | 2021-10-14T16:45:42.000Z | python/covertable/sorters/__init__.py | walkframe/covertable | 0519c947c88319f51d26949f1b0e3113ae6a90e6 | [
"Apache-2.0"
] | 4 | 2019-06-22T16:59:39.000Z | 2021-11-04T14:50:59.000Z | from . import random, hash # NOQA
| 17.5 | 34 | 0.685714 | 5 | 35 | 4.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228571 | 35 | 1 | 35 | 35 | 0.888889 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
37e0b88c071014703212e1539bdf7cf49481a157 | 34,891 | py | Python | readthedocs/rtd_tests/tests/test_resolver.py | mforbes/readthedocs.org | 92f6224a67648a6d27e7a295973c2718d07cee11 | [
"MIT"
] | 2,092 | 2019-06-29T07:47:30.000Z | 2022-03-31T14:54:59.000Z | readthedocs/rtd_tests/tests/test_resolver.py | mforbes/readthedocs.org | 92f6224a67648a6d27e7a295973c2718d07cee11 | [
"MIT"
] | 2,389 | 2019-06-29T04:22:55.000Z | 2022-03-31T22:57:49.000Z | readthedocs/rtd_tests/tests/test_resolver.py | mforbes/readthedocs.org | 92f6224a67648a6d27e7a295973c2718d07cee11 | [
"MIT"
] | 1,185 | 2019-06-29T21:49:31.000Z | 2022-03-30T09:57:15.000Z | from unittest import mock
import django_dynamic_fixture as fixture
import pytest
from django.test import TestCase, override_settings
from readthedocs.builds.constants import EXTERNAL
from readthedocs.core.resolver import (
Resolver,
resolve,
resolve_domain,
resolve_path,
)
from readthedocs.projects.co... | 39.558957 | 113 | 0.626637 | 3,785 | 34,891 | 5.61638 | 0.051783 | 0.081146 | 0.088908 | 0.101421 | 0.874353 | 0.83672 | 0.813576 | 0.78728 | 0.769122 | 0.74292 | 0 | 0.002248 | 0.260583 | 34,891 | 881 | 114 | 39.603859 | 0.821737 | 0.031469 | 0 | 0.667112 | 0 | 0.001337 | 0.14273 | 0.034317 | 0 | 0 | 0 | 0 | 0.173797 | 1 | 0.066845 | false | 0.009358 | 0.012032 | 0 | 0.093583 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
53237476c747d7889ed6c3cbf249b82cac273a7f | 104 | py | Python | kstore/models/manufacturers.py | KeoH/django-keoh-kstore | 825d7984a06823a4e592265c4e791b455ddbb481 | [
"BSD-2-Clause"
] | null | null | null | kstore/models/manufacturers.py | KeoH/django-keoh-kstore | 825d7984a06823a4e592265c4e791b455ddbb481 | [
"BSD-2-Clause"
] | null | null | null | kstore/models/manufacturers.py | KeoH/django-keoh-kstore | 825d7984a06823a4e592265c4e791b455ddbb481 | [
"BSD-2-Clause"
] | null | null | null | #encoding:utf-8
from .abstracts import BaseCompanyModel
class Manufacturer(BaseCompanyModel):
pass
| 17.333333 | 39 | 0.807692 | 11 | 104 | 7.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.125 | 104 | 5 | 40 | 20.8 | 0.912088 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
725e50d75ac9696d94b02a38fd20e2b04c98dd4b | 157 | py | Python | pre_script_clean.py | tokejepsen/mgear_scripts | 10254ce9cced28fc5cd8b94b34a881ca7075b7d1 | [
"MIT"
] | null | null | null | pre_script_clean.py | tokejepsen/mgear_scripts | 10254ce9cced28fc5cd8b94b34a881ca7075b7d1 | [
"MIT"
] | null | null | null | pre_script_clean.py | tokejepsen/mgear_scripts | 10254ce9cced28fc5cd8b94b34a881ca7075b7d1 | [
"MIT"
] | null | null | null | import pymel.core as pm
# Delete all ngSkin nodes
pm.delete(pm.ls(type="ngSkinLayerData"))
# Delete all controller tags
pm.delete(pm.ls(type="controller"))
| 22.428571 | 40 | 0.757962 | 25 | 157 | 4.76 | 0.56 | 0.201681 | 0.168067 | 0.201681 | 0.268908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10828 | 157 | 6 | 41 | 26.166667 | 0.85 | 0.318471 | 0 | 0 | 0 | 0 | 0.240385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
7279bf6ed0c7d43cecfc73b94de1a15a42abdfd1 | 26 | py | Python | src/dalijums.py | GundegaDekena/startit-kursu-grupas-darbs | 515a09351fb6f2af7f9f40dfdf569df9db308488 | [
"MIT"
] | null | null | null | src/dalijums.py | GundegaDekena/startit-kursu-grupas-darbs | 515a09351fb6f2af7f9f40dfdf569df9db308488 | [
"MIT"
] | null | null | null | src/dalijums.py | GundegaDekena/startit-kursu-grupas-darbs | 515a09351fb6f2af7f9f40dfdf569df9db308488 | [
"MIT"
] | null | null | null | def dali(a, b):
return | 13 | 15 | 0.576923 | 5 | 26 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269231 | 26 | 2 | 16 | 13 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
728e0f0b6f1dbe0f68e5c2d1f333aac3fc84f535 | 144 | py | Python | dataset/__init__.py | trungtd-2436/LaTeX-OCR | 4689c0b5669697b675c3698e22ecbaaf458452f3 | [
"MIT"
] | null | null | null | dataset/__init__.py | trungtd-2436/LaTeX-OCR | 4689c0b5669697b675c3698e22ecbaaf458452f3 | [
"MIT"
] | null | null | null | dataset/__init__.py | trungtd-2436/LaTeX-OCR | 4689c0b5669697b675c3698e22ecbaaf458452f3 | [
"MIT"
] | null | null | null | import dataset.arxiv
import dataset.dataset
import dataset.extract_latex
import dataset.latex2png
import dataset.render
import dataset.scraping
| 20.571429 | 28 | 0.875 | 19 | 144 | 6.578947 | 0.421053 | 0.624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.083333 | 144 | 6 | 29 | 24 | 0.939394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f44a31795166c8450b3b33b7f016aacb10152cba | 49 | py | Python | loss_landscape/utils/__init__.py | zhfeing/loss-landscape | e59afcf68a8408276e7fa5fe2e8f12218485948c | [
"MIT"
] | null | null | null | loss_landscape/utils/__init__.py | zhfeing/loss-landscape | e59afcf68a8408276e7fa5fe2e8f12218485948c | [
"MIT"
] | null | null | null | loss_landscape/utils/__init__.py | zhfeing/loss-landscape | e59afcf68a8408276e7fa5fe2e8f12218485948c | [
"MIT"
] | null | null | null | from .dist_utils import DistLaunchArgs, LogArgs
| 16.333333 | 47 | 0.836735 | 6 | 49 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 49 | 2 | 48 | 24.5 | 0.930233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f44ea0c30c88da9148c4bc3676810066e062e84b | 159 | py | Python | discovery/exceptions.py | amenezes/discovery-client | 9c41456d1cc14f4aab34628ad4e13423e00bc4be | [
"Apache-2.0"
] | 2 | 2019-07-18T22:43:49.000Z | 2020-03-09T03:27:41.000Z | discovery/exceptions.py | amenezes/discovery-client | 9c41456d1cc14f4aab34628ad4e13423e00bc4be | [
"Apache-2.0"
] | 20 | 2019-02-27T19:08:03.000Z | 2021-06-22T16:47:32.000Z | discovery/exceptions.py | amenezes/discovery-client | 9c41456d1cc14f4aab34628ad4e13423e00bc4be | [
"Apache-2.0"
] | null | null | null | class ServiceNotFoundException(Exception):
pass
class ClientOperationException(Exception):
pass
class NoConsulLeaderException(Exception):
pass
| 14.454545 | 42 | 0.786164 | 12 | 159 | 10.416667 | 0.5 | 0.312 | 0.288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157233 | 159 | 10 | 43 | 15.9 | 0.932836 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
be478e5b6226490d146f1892dcd3ba2477ca06bc | 4,453 | py | Python | tests/commons.py | Commonjava/mrrc-uploader | d07fc6acb1490479718e14bdc9c1b18ded606866 | [
"Apache-2.0"
] | null | null | null | tests/commons.py | Commonjava/mrrc-uploader | d07fc6acb1490479718e14bdc9c1b18ded606866 | [
"Apache-2.0"
] | 27 | 2021-09-14T02:16:18.000Z | 2021-11-03T13:59:24.000Z | tests/commons.py | ligangty/mrrc-uploader | d07fc6acb1490479718e14bdc9c1b18ded606866 | [
"Apache-2.0"
] | 5 | 2021-08-19T01:39:46.000Z | 2021-09-15T15:40:06.000Z | # For maven
TEST_BUCKET = "test_bucket"
COMMONS_CLIENT_456_FILES = [
"org/apache/httpcomponents/httpclient/4.5.6/httpclient-4.5.6.pom.sha1",
"org/apache/httpcomponents/httpclient/4.5.6/httpclient-4.5.6.jar",
"org/apache/httpcomponents/httpclient/4.5.6/httpclient-4.5.6.jar.sha1",
"org/apache/httpcomponen... | 38.059829 | 82 | 0.735235 | 658 | 4,453 | 4.81003 | 0.088146 | 0.181359 | 0.14534 | 0.187678 | 0.82654 | 0.758926 | 0.707741 | 0.506161 | 0.442022 | 0.419905 | 0 | 0.052566 | 0.102852 | 4,453 | 116 | 83 | 38.387931 | 0.739675 | 0.011453 | 0 | 0.190909 | 0 | 0.127273 | 0.634751 | 0.61451 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
be83eaa7383ad08900194f5fb12b63a3090d60dc | 115 | py | Python | examples/calibration.py | indifferentalex/botticelli | 10895695649996899bb0ab31c2b9dca069e35dbf | [
"MIT"
] | 1 | 2018-06-10T16:34:44.000Z | 2018-06-10T16:34:44.000Z | examples/calibration.py | indifferentalex/botticelli | 10895695649996899bb0ab31c2b9dca069e35dbf | [
"MIT"
] | null | null | null | examples/calibration.py | indifferentalex/botticelli | 10895695649996899bb0ab31c2b9dca069e35dbf | [
"MIT"
] | null | null | null | from context import botticelli
from botticelli.utilities import detector_inspector
detector_inspector.inspect() | 28.75 | 52 | 0.86087 | 13 | 115 | 7.461538 | 0.615385 | 0.350515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104348 | 115 | 4 | 53 | 28.75 | 0.941748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
fe26f6abed55354b4e3063ca5e736917ab14012c | 4,890 | py | Python | backend/apps/heroes/migrations/0002_auto_20170912_1401.py | migcruz/dota2analytics | 2f2f2da271b025ae148e2a5628253c28e6298eea | [
"MIT"
] | null | null | null | backend/apps/heroes/migrations/0002_auto_20170912_1401.py | migcruz/dota2analytics | 2f2f2da271b025ae148e2a5628253c28e6298eea | [
"MIT"
] | null | null | null | backend/apps/heroes/migrations/0002_auto_20170912_1401.py | migcruz/dota2analytics | 2f2f2da271b025ae148e2a5628253c28e6298eea | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2017-09-12 18:01
from __future__ import unicode_literals
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('heroes', '0001_initial'),
]
operations = [
... | 30.185185 | 141 | 0.522904 | 448 | 4,890 | 5.549107 | 0.189732 | 0.096541 | 0.151649 | 0.198311 | 0.819791 | 0.819791 | 0.695897 | 0.680209 | 0.604586 | 0.604586 | 0 | 0.019602 | 0.35317 | 4,890 | 161 | 142 | 30.372671 | 0.766361 | 0.013701 | 0 | 0.720779 | 1 | 0 | 0.084647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019481 | 0 | 0.038961 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 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 | 6 |
fe4b0967e88a5e052662a91d7149d10f038d502e | 6,167 | py | Python | tests/unitary/LiquidityGaugeV3/test_set_rewards.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 217 | 2020-06-24T14:01:21.000Z | 2022-03-29T08:35:24.000Z | tests/unitary/LiquidityGaugeV3/test_set_rewards.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 25 | 2020-06-24T09:39:02.000Z | 2022-03-22T17:03:00.000Z | tests/unitary/LiquidityGaugeV3/test_set_rewards.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 110 | 2020-07-10T22:45:49.000Z | 2022-03-29T02:51:08.000Z | import brownie
import pytest
from brownie import ZERO_ADDRESS
REWARD = 10 ** 20
WEEK = 7 * 86400
LP_AMOUNT = 10 ** 18
@pytest.fixture(scope="module", autouse=True)
def initial_setup(gauge_v3, mock_lp_token, alice):
mock_lp_token.approve(gauge_v3, LP_AMOUNT, {"from": alice})
gauge_v3.deposit(LP_AMOUNT, {"from... | 38.067901 | 100 | 0.674558 | 860 | 6,167 | 4.543023 | 0.089535 | 0.186332 | 0.040952 | 0.069619 | 0.857947 | 0.831072 | 0.808037 | 0.805221 | 0.786793 | 0.756591 | 0 | 0.045859 | 0.179666 | 6,167 | 161 | 101 | 38.304348 | 0.726428 | 0 | 0 | 0.533898 | 0 | 0.042373 | 0.152749 | 0.052538 | 0 | 0 | 0.001297 | 0 | 0.084746 | 1 | 0.118644 | false | 0 | 0.025424 | 0 | 0.144068 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
fe4fb96d69deda278590d08c250c44f96c83e1fc | 100 | py | Python | useful_functions.py | sebball/etsy-shop-manager-api-v3 | a12bb652ff944d13c472afb468d3c5d4377c0369 | [
"MIT"
] | 1 | 2022-02-15T13:38:15.000Z | 2022-02-15T13:38:15.000Z | useful_functions.py | sebball/etsy-shop-manager-api-v3 | a12bb652ff944d13c472afb468d3c5d4377c0369 | [
"MIT"
] | null | null | null | useful_functions.py | sebball/etsy-shop-manager-api-v3 | a12bb652ff944d13c472afb468d3c5d4377c0369 | [
"MIT"
] | null | null | null |
def dict_fresh_id(dictionary):
return {key: value for (key, value) in dictionary.items()}
| 20 | 63 | 0.68 | 14 | 100 | 4.714286 | 0.785714 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 100 | 4 | 64 | 25 | 0.825 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
fe5c6a4aa77d2a69832227412f4253453c365b82 | 47 | py | Python | recipes/recipes_emscripten/pyyaml/test_import_pyyaml.py | emscripten-forge/recipes | 62cb3e146abc8945ac210f38e4e47c080698eae5 | [
"MIT"
] | 1 | 2022-03-10T16:50:56.000Z | 2022-03-10T16:50:56.000Z | recipes/recipes_emscripten/pyyaml/test_import_pyyaml.py | emscripten-forge/recipes | 62cb3e146abc8945ac210f38e4e47c080698eae5 | [
"MIT"
] | 9 | 2022-03-18T09:26:38.000Z | 2022-03-29T09:21:51.000Z | recipes/recipes_emscripten/pyyaml/test_import_pyyaml.py | emscripten-forge/recipes | 62cb3e146abc8945ac210f38e4e47c080698eae5 | [
"MIT"
] | null | null | null |
def test_import_pyyaml():
import yaml
| 11.75 | 25 | 0.659574 | 6 | 47 | 4.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276596 | 47 | 4 | 26 | 11.75 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 1 | 0 | 1.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
fe72b6a278c15426fa499e23d894445915d540e9 | 66 | py | Python | grammaticon/util.py | blurks/grammaticon | 686ce80c1d600130080074bea2d911a3c5b00bbe | [
"Apache-2.0"
] | null | null | null | grammaticon/util.py | blurks/grammaticon | 686ce80c1d600130080074bea2d911a3c5b00bbe | [
"Apache-2.0"
] | null | null | null | grammaticon/util.py | blurks/grammaticon | 686ce80c1d600130080074bea2d911a3c5b00bbe | [
"Apache-2.0"
] | 1 | 2021-12-07T01:35:42.000Z | 2021-12-07T01:35:42.000Z | from markdown import markdown
def md(s):
return markdown(s)
| 11 | 29 | 0.712121 | 10 | 66 | 4.7 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 66 | 5 | 30 | 13.2 | 0.903846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
feaca22e213d7f5b1830a35afb1aa274b58103e8 | 8,616 | py | Python | tests/test_swaps.py | dquigley-warwick/matador | 729e97efb0865c4fff50af87555730ff4b7b6d91 | [
"MIT"
] | 24 | 2020-01-21T21:40:44.000Z | 2022-03-23T13:37:18.000Z | tests/test_swaps.py | dquigley-warwick/matador | 729e97efb0865c4fff50af87555730ff4b7b6d91 | [
"MIT"
] | 234 | 2020-02-03T15:56:58.000Z | 2022-03-29T21:36:45.000Z | tests/test_swaps.py | dquigley-warwick/matador | 729e97efb0865c4fff50af87555730ff4b7b6d91 | [
"MIT"
] | 15 | 2019-11-29T11:33:32.000Z | 2021-11-02T09:14:08.000Z | #!/usr/bin/env python
import unittest
from matador.swaps import AtomicSwapper
from matador.utils.chem_utils import get_periodic_table
class SwapTest(unittest.TestCase):
""" Test atomic swap functions. """
def test_single_simple_swap(self):
# spoof AtomicSwapper __init__
swap_args = {"swap": [... | 42.44335 | 87 | 0.568825 | 1,106 | 8,616 | 4.140145 | 0.089512 | 0.101332 | 0.07862 | 0.042586 | 0.845599 | 0.820266 | 0.801922 | 0.79406 | 0.767416 | 0.741428 | 0 | 0.002553 | 0.272632 | 8,616 | 202 | 88 | 42.653465 | 0.7281 | 0.083682 | 0 | 0.4625 | 0 | 0 | 0.097049 | 0 | 0 | 0 | 0 | 0 | 0.2375 | 1 | 0.0625 | false | 0 | 0.01875 | 0 | 0.0875 | 0.00625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
2294cefeba18af26c9cc21bdeea6d4556e57b791 | 121 | py | Python | poll-activity-data/get_activities.py | pingidentity/pingone-sample-scripts | 49b96c317b2055311b426335a4a3729496a123c8 | [
"Apache-2.0"
] | 1 | 2021-08-24T17:40:38.000Z | 2021-08-24T17:40:38.000Z | poll-activity-data/get_activities.py | pingidentity/pingone-sample-scripts | 49b96c317b2055311b426335a4a3729496a123c8 | [
"Apache-2.0"
] | 1 | 2020-10-02T15:46:57.000Z | 2020-10-02T15:46:57.000Z | poll-activity-data/get_activities.py | pingidentity/pingone-sample-scripts | 49b96c317b2055311b426335a4a3729496a123c8 | [
"Apache-2.0"
] | 1 | 2020-10-20T20:14:59.000Z | 2020-10-20T20:14:59.000Z | from subprocess import call
import sys
call( ["node", "/Applications/Splunk/bin/scripts/poll_activities.js"] + sys.argv ) | 40.333333 | 82 | 0.768595 | 17 | 121 | 5.411765 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 121 | 3 | 82 | 40.333333 | 0.836364 | 0 | 0 | 0 | 0 | 0 | 0.45082 | 0.418033 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
22a9e1146f79d0ace7d1fc10dac9df03044d525e | 33,513 | py | Python | mpf/tests/test_OPP.py | hyphz/mpf | 978a25f62a0f43f481ecb44eaa9f316f52c76a78 | [
"MIT"
] | null | null | null | mpf/tests/test_OPP.py | hyphz/mpf | 978a25f62a0f43f481ecb44eaa9f316f52c76a78 | [
"MIT"
] | null | null | null | mpf/tests/test_OPP.py | hyphz/mpf | 978a25f62a0f43f481ecb44eaa9f316f52c76a78 | [
"MIT"
] | null | null | null | import copy
import logging
from mpf.platforms.opp.opp import OppHardwarePlatform
from unittest.mock import MagicMock
import time
from mpf.platforms.opp import opp
from mpf.platforms.opp.opp_rs232_intf import OppRs232Intf
from mpf.tests.MpfTestCase import MpfTestCase
from mpf.tests.loop import MockSerial
COMMAND_LEN... | 44.983893 | 143 | 0.647689 | 4,706 | 33,513 | 4.422864 | 0.098173 | 0.053618 | 0.085423 | 0.069905 | 0.83194 | 0.798069 | 0.783607 | 0.751321 | 0.732007 | 0.701883 | 0 | 0.108835 | 0.214782 | 33,513 | 744 | 144 | 45.044355 | 0.68212 | 0.073882 | 0 | 0.530035 | 0 | 0.047703 | 0.240556 | 0.106124 | 0 | 0 | 0.008208 | 0 | 0.139576 | 1 | 0.065371 | false | 0 | 0.021201 | 0.015901 | 0.123675 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
22ae30db54a17dc72aff8eed6f6176cf586c77ac | 14,131 | py | Python | torch_mimicry/datasets/data_utils.py | gengcong940126/mimicry | 30a001426a4685d5a83258f52faa9564cefa9158 | [
"MIT"
] | 1 | 2021-05-24T02:48:33.000Z | 2021-05-24T02:48:33.000Z | torch_mimicry/datasets/data_utils.py | gengcong940126/mimicry | 30a001426a4685d5a83258f52faa9564cefa9158 | [
"MIT"
] | null | null | null | torch_mimicry/datasets/data_utils.py | gengcong940126/mimicry | 30a001426a4685d5a83258f52faa9564cefa9158 | [
"MIT"
] | 1 | 2021-05-24T02:48:34.000Z | 2021-05-24T02:48:34.000Z | """
Script for loading datasets.
"""
import os
import torchvision
from torchvision import transforms
from torch_mimicry.datasets.imagenet import imagenet
def load_dataset(root, name, **kwargs):
"""
Loads different datasets specifically for GAN training.
By default, all images are normalized to values i... | 33.016355 | 80 | 0.49862 | 1,295 | 14,131 | 5.328185 | 0.100386 | 0.047826 | 0.027536 | 0.054203 | 0.826957 | 0.808406 | 0.782754 | 0.745797 | 0.718696 | 0.694203 | 0 | 0.019104 | 0.418442 | 14,131 | 427 | 81 | 33.093677 | 0.820516 | 0.225462 | 0 | 0.683333 | 0 | 0 | 0.042822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.016667 | 0 | 0.116667 | 0.004167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
22b63bcafc8f9a231900c2b3ea912e553928712b | 2,454 | py | Python | content/models.py | AbdullahJaswal/Examination | 27f65a2e9630567ec213a13951965bb5b8db375d | [
"MIT"
] | null | null | null | content/models.py | AbdullahJaswal/Examination | 27f65a2e9630567ec213a13951965bb5b8db375d | [
"MIT"
] | null | null | null | content/models.py | AbdullahJaswal/Examination | 27f65a2e9630567ec213a13951965bb5b8db375d | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Topic(models.Model):
name = models.CharField(max_length=255, blank=False, unique=True)
description = models.TextField(blank=True)
slug = models.SlugField(unique=True, max_length=255, blank=False)
sub_topics = models.ManyToManyField('SubTop... | 26.967033 | 69 | 0.696414 | 295 | 2,454 | 5.59661 | 0.19322 | 0.084797 | 0.101757 | 0.121139 | 0.78195 | 0.78195 | 0.757723 | 0.700182 | 0.700182 | 0.651726 | 0 | 0.006073 | 0.194784 | 2,454 | 90 | 70 | 27.266667 | 0.829453 | 0.00978 | 0 | 0.642857 | 0 | 0 | 0.039539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.017857 | 0.071429 | 0.785714 | 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 | 0 | 0 | 1 | 0 | 0 | 6 |
a3d0165a8d4f65e4bdf00e5a89fcdbc40a0f6a48 | 62 | py | Python | admin/tests/__init__.py | RichardHirtle/c4all | a09c4b098cf1a58ed5e3ab6116a749a17ec035e0 | [
"MIT"
] | 4 | 2016-09-03T12:43:13.000Z | 2020-04-22T14:49:28.000Z | admin/tests/__init__.py | RichardHirtle/c4all | a09c4b098cf1a58ed5e3ab6116a749a17ec035e0 | [
"MIT"
] | 1 | 2019-09-25T12:49:01.000Z | 2020-08-04T11:33:09.000Z | admin/tests/__init__.py | RichardHirtle/c4all | a09c4b098cf1a58ed5e3ab6116a749a17ec035e0 | [
"MIT"
] | 3 | 2015-03-17T13:38:42.000Z | 2016-05-06T15:06:31.000Z | from thread import *
from comment import *
from user import *
| 15.5 | 21 | 0.758065 | 9 | 62 | 5.222222 | 0.555556 | 0.425532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 62 | 3 | 22 | 20.666667 | 0.94 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a3ff4f3bce36a4b693268e47baacd7388965b88f | 222 | py | Python | test/conftest.py | angelo-v/docker-testinfra | a49c07f87d4afcdf37f5099d81da649ed1d118dd | [
"MIT"
] | 2 | 2019-03-02T16:31:10.000Z | 2019-03-20T18:15:40.000Z | test/conftest.py | angelo-v/docker-testinfra | a49c07f87d4afcdf37f5099d81da649ed1d118dd | [
"MIT"
] | 2 | 2018-04-06T10:41:43.000Z | 2018-06-01T07:34:59.000Z | test/conftest.py | angelo-v/docker-testinfra | a49c07f87d4afcdf37f5099d81da649ed1d118dd | [
"MIT"
] | 3 | 2018-03-20T15:53:29.000Z | 2019-04-17T19:28:51.000Z | import docker
import pytest
@pytest.fixture(scope="session")
def client():
return docker.from_env()
@pytest.fixture(scope="session")
def image(client):
img, _ = client.images.build(path='./src')
return img
| 18.5 | 47 | 0.693694 | 29 | 222 | 5.241379 | 0.586207 | 0.171053 | 0.236842 | 0.328947 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153153 | 222 | 11 | 48 | 20.181818 | 0.808511 | 0 | 0 | 0.222222 | 0 | 0 | 0.085586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
430c99c58df7067d4415877d5d4cd65db7d7ea6f | 34 | py | Python | py/ssd/models/box_head/__init__.py | zjZSTU/SSD | ae137301201b66df8566fd68a617c04a2a2f8576 | [
"Apache-2.0"
] | 9 | 2020-07-24T10:03:38.000Z | 2022-03-06T08:59:51.000Z | py/ssd/models/box_head/__init__.py | zjZSTU/SSD | ae137301201b66df8566fd68a617c04a2a2f8576 | [
"Apache-2.0"
] | 4 | 2021-06-08T21:34:12.000Z | 2022-03-12T00:30:20.000Z | py/ssd/models/box_head/__init__.py | zjZSTU/SSD | ae137301201b66df8566fd68a617c04a2a2f8576 | [
"Apache-2.0"
] | 3 | 2020-07-24T10:03:43.000Z | 2022-03-05T15:26:48.000Z | from .build import build_box_head
| 17 | 33 | 0.852941 | 6 | 34 | 4.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 34 | 1 | 34 | 34 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4316f9b6173530f3e1307dc8f2482fbbc7e606a5 | 130 | py | Python | twitter_stream/admin.py | vrtt/django-twitter-stream | 678c69b3a3d21ea8f1f197f7ee25f658852aa44a | [
"MIT"
] | 54 | 2015-01-28T23:13:20.000Z | 2021-04-26T09:28:16.000Z | twitter_stream/admin.py | vrtt/django-twitter-stream | 678c69b3a3d21ea8f1f197f7ee25f658852aa44a | [
"MIT"
] | 11 | 2015-08-29T09:42:42.000Z | 2020-04-19T19:28:16.000Z | twitter_stream/admin.py | vrtt/django-twitter-stream | 678c69b3a3d21ea8f1f197f7ee25f658852aa44a | [
"MIT"
] | 25 | 2015-01-26T19:05:20.000Z | 2020-05-09T10:26:50.000Z | from django.contrib import admin
from . import models
admin.site.register(models.FilterTerm)
admin.site.register(models.ApiKey)
| 18.571429 | 38 | 0.815385 | 18 | 130 | 5.888889 | 0.555556 | 0.169811 | 0.320755 | 0.433962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092308 | 130 | 6 | 39 | 21.666667 | 0.898305 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
4a2e092fe7525a424dfd5701109f18c64bd13652 | 167 | py | Python | coko/classes/exceptions.py | dante-signal31/coko | c803433f28602b0ecbbd86329d624557e4986a10 | [
"BSD-3-Clause"
] | null | null | null | coko/classes/exceptions.py | dante-signal31/coko | c803433f28602b0ecbbd86329d624557e4986a10 | [
"BSD-3-Clause"
] | null | null | null | coko/classes/exceptions.py | dante-signal31/coko | c803433f28602b0ecbbd86329d624557e4986a10 | [
"BSD-3-Clause"
] | null | null | null |
class CokoException(Exception):
pass
class FolderNotFound(CokoException):
def __init__(self, incorrect_path):
self.incorrect_path = incorrect_path
| 16.7 | 44 | 0.742515 | 17 | 167 | 6.882353 | 0.588235 | 0.333333 | 0.290598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185629 | 167 | 9 | 45 | 18.555556 | 0.860294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
4a3c5eee27473caddbae27946520c6792d571740 | 39 | py | Python | gap_minder_collab.py | damrajac/the_gapminder_project | 5f25fe78965fffa544b633dbd1f641575340dd7b | [
"MIT"
] | null | null | null | gap_minder_collab.py | damrajac/the_gapminder_project | 5f25fe78965fffa544b633dbd1f641575340dd7b | [
"MIT"
] | null | null | null | gap_minder_collab.py | damrajac/the_gapminder_project | 5f25fe78965fffa544b633dbd1f641575340dd7b | [
"MIT"
] | null | null | null | print ("i did it all for the nookie")
| 13 | 37 | 0.666667 | 8 | 39 | 3.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 39 | 2 | 38 | 19.5 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.710526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
4a6146b4401418f370438a574f1c66adbf629614 | 12,231 | py | Python | tabular_class.py | hmhyau/rl-intention | 29c84fd9abaa6149fc170531d0ae904fb23047a4 | [
"MIT"
] | 3 | 2020-11-13T19:07:55.000Z | 2021-03-06T10:33:15.000Z | tabular_class.py | hmhyau/rl-intention | 29c84fd9abaa6149fc170531d0ae904fb23047a4 | [
"MIT"
] | null | null | null | tabular_class.py | hmhyau/rl-intention | 29c84fd9abaa6149fc170531d0ae904fb23047a4 | [
"MIT"
] | null | null | null | import numpy as np
from base_class import TabularRLModel
from schedules import LinearSchedule, ExponentialSchedule
from gym.spaces import Tuple, Discrete
import cloudpickle as pickle
remove = ['hvalues', 'qvalues', 'policy']
class QTabularRLModel(TabularRLModel):
def __init__(
self,
policy,
... | 39.970588 | 151 | 0.547543 | 1,269 | 12,231 | 5.054374 | 0.120567 | 0.095884 | 0.024945 | 0.036171 | 0.805426 | 0.770034 | 0.740879 | 0.740879 | 0.699252 | 0.677736 | 0 | 0.011294 | 0.36293 | 12,231 | 306 | 152 | 39.970588 | 0.811858 | 0.109394 | 0 | 0.72807 | 0 | 0 | 0.036812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030702 | false | 0 | 0.02193 | 0 | 0.065789 | 0.013158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4a8d4acd05d1143219e6817dde7486231d642c60 | 198 | py | Python | 3rd_party/occa/scripts/docs/api_docgen/__init__.py | RonRahaman/nekRS | ffc02bca33ece6ba3330c4ee24565b1c6b5f7242 | [
"BSD-3-Clause"
] | 312 | 2015-07-02T09:02:09.000Z | 2022-03-30T16:13:23.000Z | 3rd_party/occa/scripts/docs/api_docgen/__init__.py | neams-th-coe/nekRS | 5d2c8ab3d14b3fb16db35682336a1f96000698bb | [
"BSD-3-Clause"
] | 520 | 2015-07-12T18:32:38.000Z | 2022-03-31T16:15:00.000Z | 3rd_party/occa/scripts/docs/api_docgen/__init__.py | neams-th-coe/nekRS | 5d2c8ab3d14b3fb16db35682336a1f96000698bb | [
"BSD-3-Clause"
] | 79 | 2015-07-22T22:10:56.000Z | 2022-03-17T09:07:01.000Z | from .api_docgen import *
from .constants import *
from .dev_utils import *
from .markdown import *
from .system_commands import *
from .types import *
from .utils import *
from .xml_utils import *
| 22 | 30 | 0.757576 | 28 | 198 | 5.214286 | 0.428571 | 0.479452 | 0.205479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161616 | 198 | 8 | 31 | 24.75 | 0.879518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
4abbe259886b39dee3f29987a8a41e77e5509580 | 191 | py | Python | streamlit_custom_slider/app.py | lukexyz/iris | 7290525d15f5283dfdfb6bb9c53c5de479bf30cb | [
"MIT"
] | 1 | 2021-01-04T18:13:28.000Z | 2021-01-04T18:13:28.000Z | streamlit_custom_slider/app.py | lukexyz/iris | 7290525d15f5283dfdfb6bb9c53c5de479bf30cb | [
"MIT"
] | null | null | null | streamlit_custom_slider/app.py | lukexyz/iris | 7290525d15f5283dfdfb6bb9c53c5de479bf30cb | [
"MIT"
] | 1 | 2021-11-08T14:39:57.000Z | 2021-11-08T14:39:57.000Z | # Import the wrapper function from your package
from streamlit_custom_slider import st_custom_slider
import streamlit as st
st.title("Testing Streamlit custom components")
st_custom_slider() | 31.833333 | 52 | 0.848168 | 28 | 191 | 5.571429 | 0.535714 | 0.230769 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109948 | 191 | 6 | 53 | 31.833333 | 0.917647 | 0.235602 | 0 | 0 | 0 | 0 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
43babda7f408f7d2f840cc5ab2dc130d42ae5845 | 1,924 | py | Python | changelog_generator/tests/test_entry_point.py | nghialt/gitlab-changelog-generator | d9af4baa1d76ab9436548e47842eb80935f9a8bd | [
"MIT"
] | 3 | 2019-11-01T15:13:31.000Z | 2020-02-03T06:27:16.000Z | changelog_generator/tests/test_entry_point.py | nghialt/gitlab-changelog-generator | d9af4baa1d76ab9436548e47842eb80935f9a8bd | [
"MIT"
] | 19 | 2018-06-17T21:07:32.000Z | 2020-06-04T07:07:41.000Z | changelog_generator/tests/test_entry_point.py | nghialt/gitlab-changelog-generator | d9af4baa1d76ab9436548e47842eb80935f9a8bd | [
"MIT"
] | 5 | 2018-11-24T08:04:39.000Z | 2020-10-28T19:54:29.000Z | import sys
import unittest
from changelog_generator.entry_point import process_arguments
class TestGenerator(unittest.TestCase):
def test_process_arguments(self):
sys.argv = [
"script",
"--ip",
"localhost",
"--group",
"test-group",
"... | 25.315789 | 61 | 0.422557 | 150 | 1,924 | 5.266667 | 0.286667 | 0.081013 | 0.070886 | 0.106329 | 0.806329 | 0.789873 | 0.789873 | 0.789873 | 0.64557 | 0.64557 | 0 | 0.012693 | 0.426715 | 1,924 | 75 | 62 | 25.653333 | 0.703536 | 0 | 0 | 0.794118 | 0 | 0 | 0.272349 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0.029412 | false | 0 | 0.044118 | 0 | 0.088235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
43d9b5675831adfd072fd306253a7bf37e40ac0c | 2,422 | py | Python | mysite/db_router.py | Duwo/my_registration | fff632d3a64255ef9f53fef4f4dc08b183226fb8 | [
"MIT"
] | null | null | null | mysite/db_router.py | Duwo/my_registration | fff632d3a64255ef9f53fef4f4dc08b183226fb8 | [
"MIT"
] | null | null | null | mysite/db_router.py | Duwo/my_registration | fff632d3a64255ef9f53fef4f4dc08b183226fb8 | [
"MIT"
] | null | null | null | class AuthRouter(object):
"""
A router to control all database operations on models in the
auth application.
"""
def db_for_read(self, model, **hints):
"""
Attempts to read auth models go to auth_db.
"""
if model._meta.app_label == 'auth':
return 'auth_db'... | 29.901235 | 70 | 0.563171 | 290 | 2,422 | 4.527586 | 0.172414 | 0.085301 | 0.082254 | 0.049505 | 0.837014 | 0.740289 | 0.728865 | 0.714395 | 0.667174 | 0.667174 | 0 | 0.004981 | 0.336912 | 2,422 | 81 | 71 | 29.901235 | 0.812578 | 0.253097 | 0 | 0.675 | 0 | 0 | 0.106302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
601b29e291ebaecbfea5e2a4d548c08ddddb7b39 | 2,929 | py | Python | examples/student.py | mojodojo101/TryHarder-InfoSecPrep | 3fd4f96590704ba086335ab847173751ad56f580 | [
"MIT"
] | 5 | 2020-10-28T04:05:10.000Z | 2021-11-30T09:42:16.000Z | examples/student.py | mojodojo101/TryHarder-InfoSecPrep | 3fd4f96590704ba086335ab847173751ad56f580 | [
"MIT"
] | 1 | 2020-10-28T03:45:52.000Z | 2020-10-28T03:45:52.000Z | examples/student.py | mojodojo101/TryHarder-InfoSecPrep | 3fd4f96590704ba086335ab847173751ad56f580 | [
"MIT"
] | 5 | 2020-04-22T08:02:39.000Z | 2021-06-30T06:30:31.000Z | import discord
from discord.ext import commands
from builtins import bot
@commands.command()
async def oscp(ctx):
user = ctx.author.id
server = ctx.guild
channel = discord.utils.get(server.channels, name="student-roles")
if ctx.channel == channel:
member = server.get_member(user)
userM... | 35.289157 | 98 | 0.657904 | 372 | 2,929 | 5.126344 | 0.123656 | 0.062926 | 0.078658 | 0.110121 | 0.824331 | 0.824331 | 0.824331 | 0.824331 | 0.824331 | 0.824331 | 0 | 0 | 0.22704 | 2,929 | 83 | 99 | 35.289157 | 0.842314 | 0 | 0 | 0.666667 | 0 | 0 | 0.093857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026667 | false | 0 | 0.04 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
60598a1d290ea74384028a4eaca8bf23827dbfb0 | 96 | py | Python | venv/lib/python3.8/site-packages/pyls/plugins/mccabe_lint.py | Retraces/UkraineBot | 3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71 | [
"MIT"
] | 2 | 2022-03-13T01:58:52.000Z | 2022-03-31T06:07:54.000Z | venv/lib/python3.8/site-packages/pyls/plugins/mccabe_lint.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/pyls/plugins/mccabe_lint.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/ae/2b/85/2cc22118d4ad12a20ce5952e5496f3ae4865be8059a4fcf41db5a31a46 | 96 | 96 | 0.895833 | 9 | 96 | 9.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.40625 | 0 | 96 | 1 | 96 | 96 | 0.489583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
60758b9e944f3da2bd4e6b8152561ddec86589a5 | 15,297 | py | Python | tests/test_ordinal_column.py | trungngv/CHAID | 794756560872e944cec6a6dcc780feeeeadc51ed | [
"Apache-2.0"
] | 141 | 2016-06-14T13:38:38.000Z | 2022-02-03T12:01:18.000Z | tests/test_ordinal_column.py | trungngv/CHAID | 794756560872e944cec6a6dcc780feeeeadc51ed | [
"Apache-2.0"
] | 110 | 2016-06-16T14:30:34.000Z | 2022-01-28T19:36:10.000Z | tests/test_ordinal_column.py | trungngv/CHAID | 794756560872e944cec6a6dcc780feeeeadc51ed | [
"Apache-2.0"
] | 47 | 2016-11-27T16:21:43.000Z | 2021-12-28T08:40:51.000Z | """
Testing module for the class OrdinalColumn
"""
from unittest import TestCase
import numpy as np
from numpy import nan
from setup_tests import list_ordered_equal, list_unordered_equal, CHAID
def test_all_ordinal_combinations():
arr = np.array([1.0, 2.0, 3.0, 4.0])
ordinal = CHAID.OrdinalColumn(arr)
asse... | 51.160535 | 161 | 0.627378 | 2,187 | 15,297 | 4.277549 | 0.058528 | 0.056868 | 0.013789 | 0.066702 | 0.881668 | 0.862961 | 0.854944 | 0.847034 | 0.839337 | 0.82822 | 0 | 0.047679 | 0.22122 | 15,297 | 298 | 162 | 51.332215 | 0.737598 | 0.098385 | 0 | 0.672811 | 0 | 0 | 0.202964 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 1 | 0.119816 | false | 0 | 0.018433 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
607dc82019a6232aa95e95e2d90bcc5b15a81ab3 | 31 | py | Python | pycrobit/examples/test.py | MrGallo/pycrob | 5d41ec54191bb31048dcb69374efd26c99e06844 | [
"MIT"
] | null | null | null | pycrobit/examples/test.py | MrGallo/pycrob | 5d41ec54191bb31048dcb69374efd26c99e06844 | [
"MIT"
] | 9 | 2019-12-23T15:43:36.000Z | 2022-03-12T00:16:32.000Z | pycrobit/examples/test.py | MrGallo/pycrob | 5d41ec54191bb31048dcb69374efd26c99e06844 | [
"MIT"
] | 1 | 2019-05-21T18:46:57.000Z | 2019-05-21T18:46:57.000Z | from pycrobit import Microbit
| 10.333333 | 29 | 0.83871 | 4 | 31 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 31 | 2 | 30 | 15.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6081f3bf1c72b479f3aecc271838fa5e9761d5ea | 183 | py | Python | Coloring/learning/utils/__init__.py | zarahz/MARL-and-Markets | 3591a160e098e7251b9e7c7b59c6d0ab08ba0779 | [
"MIT"
] | 1 | 2022-03-12T09:17:32.000Z | 2022-03-12T09:17:32.000Z | Coloring/learning/utils/__init__.py | zarahz/MARL-and-Markets | 3591a160e098e7251b9e7c7b59c6d0ab08ba0779 | [
"MIT"
] | null | null | null | Coloring/learning/utils/__init__.py | zarahz/MARL-and-Markets | 3591a160e098e7251b9e7c7b59c6d0ab08ba0779 | [
"MIT"
] | null | null | null |
from .other import *
from .storage import *
from .dictlist import DictList
from .format import *
from .penv import *
from .env import *
from .arguments import *
from .agent import *
| 18.3 | 30 | 0.737705 | 25 | 183 | 5.4 | 0.4 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180328 | 183 | 9 | 31 | 20.333333 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7156ad3357c083be84bc85aaf5af2b6d77ffa22e | 5,736 | py | Python | modules/employee_management/employee_info/code/employee_delete.py | xuhuiliang-maybe/ace_office | 07fae18676a193206802e8fb9aa32a805b1da24c | [
"Apache-2.0"
] | 1 | 2018-11-27T08:08:07.000Z | 2018-11-27T08:08:07.000Z | modules/employee_management/employee_info/code/employee_delete.py | xuhuiliang-maybe/ace_office | 07fae18676a193206802e8fb9aa32a805b1da24c | [
"Apache-2.0"
] | null | null | null | modules/employee_management/employee_info/code/employee_delete.py | xuhuiliang-maybe/ace_office | 07fae18676a193206802e8fb9aa32a805b1da24c | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
import json
import traceback
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.contrib.auth.decorators import permission_required
from django.contrib.messages.views import SuccessMessageMixin
from django.core.urlresolvers import reverse
from django... | 39.833333 | 98 | 0.631799 | 624 | 5,736 | 5.592949 | 0.192308 | 0.030946 | 0.061891 | 0.024069 | 0.797708 | 0.797708 | 0.776504 | 0.776504 | 0.776504 | 0.776504 | 0 | 0.002135 | 0.265167 | 5,736 | 143 | 99 | 40.111888 | 0.82586 | 0.017434 | 0 | 0.79661 | 0 | 0 | 0.084089 | 0.029511 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0 | 0.110169 | 0 | 0.313559 | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7178fbb50d7eada1885b03a72fda0aedc48d34d0 | 30 | py | Python | RubiksBlindfolded/__init__.py | mn-banjar/RubiksBlindfolded | 6e642a5f7b07605a6c33e60fdc5a36e509966f85 | [
"MIT"
] | null | null | null | RubiksBlindfolded/__init__.py | mn-banjar/RubiksBlindfolded | 6e642a5f7b07605a6c33e60fdc5a36e509966f85 | [
"MIT"
] | null | null | null | RubiksBlindfolded/__init__.py | mn-banjar/RubiksBlindfolded | 6e642a5f7b07605a6c33e60fdc5a36e509966f85 | [
"MIT"
] | null | null | null | from .algorithm import *
| 7.5 | 25 | 0.633333 | 3 | 30 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 30 | 3 | 26 | 10 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
71b3cfb7564e16721c999b09f6ff56cbf49bf021 | 1,227 | py | Python | utils.py | tkit1994/cat-vs-dog | 1f1d49b2114ec3e4ba9a5a26eeba8ebbec7be3bf | [
"MIT"
] | null | null | null | utils.py | tkit1994/cat-vs-dog | 1f1d49b2114ec3e4ba9a5a26eeba8ebbec7be3bf | [
"MIT"
] | null | null | null | utils.py | tkit1994/cat-vs-dog | 1f1d49b2114ec3e4ba9a5a26eeba8ebbec7be3bf | [
"MIT"
] | null | null | null | import tensorflow as tf
def preprocess(filename, label):
'''
处理图片,被dataset.map调用,此处的map和python中的map用法差不多,
一些数据增强的操作也可以在这里面写,也可以再写个函数继续map
'''
# 文件的全路径
fullpath = tf.string_join(["data/train/", filename])
# 读文件
img = tf.read_file(fullpath)
# decode文件,二进制-->Tensor,用到的函数取决于文件的格式
im... | 27.886364 | 56 | 0.665037 | 141 | 1,227 | 5.723404 | 0.390071 | 0.037175 | 0.049566 | 0.099133 | 0.894672 | 0.894672 | 0.894672 | 0.894672 | 0.894672 | 0.894672 | 0 | 0.038776 | 0.201304 | 1,227 | 44 | 57 | 27.886364 | 0.784694 | 0.443358 | 0 | 0.588235 | 0 | 0 | 0.017405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
71e545be68fc1de9080a658b78d9330e9cc2e533 | 75,033 | py | Python | likeyoubot_l2r_scene.py | dogfooter-master/dogfooter | e1e39375703fe3019af7976f97c44cf2cb7ca0fa | [
"MIT"
] | null | null | null | likeyoubot_l2r_scene.py | dogfooter-master/dogfooter | e1e39375703fe3019af7976f97c44cf2cb7ca0fa | [
"MIT"
] | null | null | null | likeyoubot_l2r_scene.py | dogfooter-master/dogfooter | e1e39375703fe3019af7976f97c44cf2cb7ca0fa | [
"MIT"
] | null | null | null | import likeyoubot_resource as lybrsc
import likeyoubot_message
import cv2
import sys
import numpy as np
from matplotlib import pyplot as plt
import pyautogui
import operator
import random
import likeyoubot_game as lybgame
import likeyoubot_l2r as lybgamel2r
from likeyoubot_configure import LYBConstant as lybconstant
im... | 40.146067 | 118 | 0.566551 | 9,202 | 75,033 | 4.302108 | 0.042599 | 0.107103 | 0.060473 | 0.051101 | 0.84801 | 0.809488 | 0.775134 | 0.738734 | 0.720142 | 0.694933 | 0 | 0.035223 | 0.332934 | 75,033 | 1,868 | 119 | 40.167559 | 0.755714 | 0.013567 | 0 | 0.682662 | 0 | 0 | 0.078746 | 0.029217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028151 | false | 0 | 0.008957 | 0.00128 | 0.111324 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e0eb9b9655759c5a4673366dfb90d35636b4a4bd | 48 | py | Python | api/startup.py | JohnLest/three-tiers_template_Python | ee655c28f9f2ee6d1143aaec0ed3c6bc942481d4 | [
"MIT"
] | null | null | null | api/startup.py | JohnLest/three-tiers_template_Python | ee655c28f9f2ee6d1143aaec0ed3c6bc942481d4 | [
"MIT"
] | null | null | null | api/startup.py | JohnLest/three-tiers_template_Python | ee655c28f9f2ee6d1143aaec0ed3c6bc942481d4 | [
"MIT"
] | null | null | null | import sys
print (f"Work with {sys.version}")
| 12 | 34 | 0.6875 | 8 | 48 | 4.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 48 | 3 | 35 | 16 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0.479167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
e0f81cecbca9ca5a9b8c3302d79c9300f49e4d9e | 4,152 | py | Python | opflexagent/test/test_rpc.py | elastx/python-opflex-agent | 955f5fa66ee52c1fc58aded06eef1fe735b86bc6 | [
"Apache-2.0"
] | 7 | 2015-09-04T06:18:11.000Z | 2017-07-12T07:35:35.000Z | opflexagent/test/test_rpc.py | elastx/python-opflex-agent | 955f5fa66ee52c1fc58aded06eef1fe735b86bc6 | [
"Apache-2.0"
] | 86 | 2015-04-10T15:53:47.000Z | 2021-08-18T10:31:09.000Z | opflexagent/test/test_rpc.py | elastx/python-opflex-agent | 955f5fa66ee52c1fc58aded06eef1fe735b86bc6 | [
"Apache-2.0"
] | 17 | 2015-04-10T15:41:45.000Z | 2021-08-30T10:23:34.000Z | # 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
# d... | 41.52 | 78 | 0.684489 | 516 | 4,152 | 5.27907 | 0.209302 | 0.127753 | 0.07489 | 0.110132 | 0.748164 | 0.732012 | 0.732012 | 0.732012 | 0.732012 | 0.732012 | 0 | 0.00678 | 0.218449 | 4,152 | 99 | 79 | 41.939394 | 0.832666 | 0.150289 | 0 | 0.8 | 0 | 0 | 0.025093 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 1 | 0.071429 | false | 0 | 0.057143 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1cb1a3630c7f289d55ac069e1f6b854c6181a944 | 402 | py | Python | venv/Lib/site-packages/observer/__main__.py | rexliu3/FileOrganizer | a7d8443c64b05eae237272c30e6de3bfc21012fb | [
"MIT"
] | null | null | null | venv/Lib/site-packages/observer/__main__.py | rexliu3/FileOrganizer | a7d8443c64b05eae237272c30e6de3bfc21012fb | [
"MIT"
] | 1 | 2020-06-16T03:05:44.000Z | 2020-06-16T03:06:04.000Z | venv/Lib/site-packages/observer/__main__.py | rexliu3/FileOrganizer | a7d8443c64b05eae237272c30e6de3bfc21012fb | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
# Created by Hans-Thomas on 2011-12-11.
#=============================================================================
# __main__.py ---
#=============================================================================
import sys
from observer.main import main
main(sys.argv[1:])
#............... | 26.8 | 78 | 0.263682 | 26 | 402 | 3.769231 | 0.730769 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027174 | 0.084577 | 402 | 14 | 79 | 28.714286 | 0.23913 | 0.800995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
1cb35aa5cbad7d7ab17d19229048f2c98d7f8388 | 7,676 | py | Python | _package/xms/mesher/meshing/mesh_utils.py | kwryankrattiger/xmsmesher | 66a25fd1164ae997242d2bf11f04c9b8e0e82f17 | [
"BSD-2-Clause"
] | null | null | null | _package/xms/mesher/meshing/mesh_utils.py | kwryankrattiger/xmsmesher | 66a25fd1164ae997242d2bf11f04c9b8e0e82f17 | [
"BSD-2-Clause"
] | 2 | 2021-04-20T23:11:40.000Z | 2021-11-29T20:27:41.000Z | _package/xms/mesher/meshing/mesh_utils.py | kwryankrattiger/xmsmesher | 66a25fd1164ae997242d2bf11f04c9b8e0e82f17 | [
"BSD-2-Clause"
] | 1 | 2021-04-14T21:24:46.000Z | 2021-04-14T21:24:46.000Z | """Meshing utility methods."""
from .._xmsmesher.meshing import mesh_utils
__all__ = ['size_function_from_depth', 'smooth_size_function', 'smooth_elev_by_slope', 'generate_mesh', 'generate_2dm',
'check_mesh_input_topology', 'redistribute_poly_line']
def size_function_from_depth(depths, min_size, max_size)... | 42.175824 | 119 | 0.689812 | 1,051 | 7,676 | 4.880114 | 0.166508 | 0.043673 | 0.029245 | 0.028076 | 0.742835 | 0.722558 | 0.71164 | 0.699162 | 0.692338 | 0.67947 | 0 | 0.002562 | 0.237363 | 7,676 | 181 | 120 | 42.40884 | 0.873591 | 0.601876 | 0 | 0.394737 | 1 | 0 | 0.131519 | 0.026833 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.026316 | 0 | 0.552632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
1cb84829e00c91918677c90bde004db15c9ae926 | 8,534 | py | Python | src/napari_lf/lfa/lflib/solvers/mrnsd.py | PolarizedLightFieldMicroscopy/napari-LF | b8b16e21424a1fc3a3fdd7f79099aa252480d75a | [
"BSD-3-Clause"
] | null | null | null | src/napari_lf/lfa/lflib/solvers/mrnsd.py | PolarizedLightFieldMicroscopy/napari-LF | b8b16e21424a1fc3a3fdd7f79099aa252480d75a | [
"BSD-3-Clause"
] | 1 | 2022-03-22T15:57:27.000Z | 2022-03-22T15:57:27.000Z | src/napari_lf/lfa/lflib/solvers/mrnsd.py | PolarizedLightFieldMicroscopy/napari-LF | b8b16e21424a1fc3a3fdd7f79099aa252480d75a | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import time
# ----------------------------------------------------------------------------------------
# Modified Residual Norm Steepest Descent SOLVER
# ----------------------------------------------------------------------------------------
def mrnsd_reconstruction(A, b, Rtol = ... | 32.082707 | 99 | 0.517577 | 1,111 | 8,534 | 3.916292 | 0.215122 | 0.025741 | 0.022983 | 0.032177 | 0.860722 | 0.845783 | 0.83498 | 0.802574 | 0.791542 | 0.783268 | 0 | 0.028735 | 0.323061 | 8,534 | 265 | 100 | 32.203774 | 0.724424 | 0.502344 | 0 | 0.640351 | 0 | 0 | 0.098965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0.008772 | 0.017544 | 0 | 0.052632 | 0.061404 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e81684984e6da00aec8da30c65a7a82541a23bfc | 113 | py | Python | src/chapter2/exercise2.py | ManuelA1000/BCS-2021 | 0bdf8a165b6e9e79c33257919a44b4be3cd49a57 | [
"MIT"
] | null | null | null | src/chapter2/exercise2.py | ManuelA1000/BCS-2021 | 0bdf8a165b6e9e79c33257919a44b4be3cd49a57 | [
"MIT"
] | null | null | null | src/chapter2/exercise2.py | ManuelA1000/BCS-2021 | 0bdf8a165b6e9e79c33257919a44b4be3cd49a57 | [
"MIT"
] | null | null | null | user_name = input("Type in your name:")
#print("You're welcome," + user_name)
print(f"You're welcome",user_name)
| 28.25 | 39 | 0.716814 | 20 | 113 | 3.9 | 0.55 | 0.307692 | 0.307692 | 0.410256 | 0.512821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106195 | 113 | 3 | 40 | 37.666667 | 0.772277 | 0.318584 | 0 | 0 | 0 | 0 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
e82f7e86518798b0b2d9d6cc3e767d6119bf4c84 | 21 | py | Python | ms_api_rest/vistas/__init__.py | leojim06/miso-cloud-api | 4ed507f65fb777edf8b4edb4a2e6e7807e62745c | [
"MIT"
] | null | null | null | ms_api_rest/vistas/__init__.py | leojim06/miso-cloud-api | 4ed507f65fb777edf8b4edb4a2e6e7807e62745c | [
"MIT"
] | null | null | null | ms_api_rest/vistas/__init__.py | leojim06/miso-cloud-api | 4ed507f65fb777edf8b4edb4a2e6e7807e62745c | [
"MIT"
] | null | null | null | from .vistas import * | 21 | 21 | 0.761905 | 3 | 21 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
1c07d3d48cc42fb656d45e1902c30e25679d93f8 | 119 | py | Python | HackerRank/Python/Built-Ins/ginortS.py | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-01-30T13:21:30.000Z | 2018-01-30T13:21:30.000Z | HackerRank/Python/Built-Ins/ginortS.py | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | null | null | null | HackerRank/Python/Built-Ins/ginortS.py | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-08-29T13:26:50.000Z | 2018-08-29T13:26:50.000Z | print(*sorted(input(),key = lambda x: (x.isdigit() and int(x)&1==0, x.isdigit(), x.isupper(), x.islower(), x)),sep="")
| 59.5 | 118 | 0.596639 | 21 | 119 | 3.380952 | 0.666667 | 0.225352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.092437 | 119 | 1 | 119 | 119 | 0.638889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
1c15bf736e55a2fa37df79643b4120a17e411204 | 130,513 | py | Python | test/pharma/supply_chain/pharma/pharmaplotlymanager.py | IBM/dse-do-dashboard | 30348da5414ef03890e6f3b92a36afc77757a021 | [
"Apache-2.0"
] | 1 | 2022-03-24T13:05:22.000Z | 2022-03-24T13:05:22.000Z | test/pharma/supply_chain/pharma/pharmaplotlymanager.py | IBM/dse-do-dashboard | 30348da5414ef03890e6f3b92a36afc77757a021 | [
"Apache-2.0"
] | 18 | 2022-01-13T15:14:52.000Z | 2022-03-09T22:58:36.000Z | test/pharma/supply_chain/pharma/pharmaplotlymanager.py | IBM/dse-do-dashboard | 30348da5414ef03890e6f3b92a36afc77757a021 | [
"Apache-2.0"
] | 2 | 2022-01-19T21:34:58.000Z | 2022-01-19T21:35:20.000Z | from typing import List, Dict, Tuple, Optional
import pandas as pd
from supply_chain.pharma.pharmadatamanager import PharmaDataManager
from supply_chain.scnfo.scnfoplotlymanager import ScnfoPlotlyManager
import plotly.express as px
import plotly.graph_objs as go
import numpy as np
from dse_do_dashboard.utils.dash_co... | 44.635089 | 204 | 0.550857 | 13,137 | 130,513 | 5.327929 | 0.064474 | 0.015002 | 0.010715 | 0.012858 | 0.808024 | 0.774277 | 0.746989 | 0.725415 | 0.703928 | 0.690969 | 0 | 0.015171 | 0.308069 | 130,513 | 2,923 | 205 | 44.650359 | 0.759894 | 0.213534 | 0 | 0.5961 | 0 | 0.000557 | 0.206708 | 0.016556 | 0 | 0 | 0 | 0.004447 | 0 | 1 | 0.026741 | false | 0.001114 | 0.007242 | 0 | 0.062396 | 0.001114 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1c220487a5ecd6a0ace19bd41e7559a91f6d226c | 279 | py | Python | social_network/management/commands/configuresocialnetwork.py | diana-gv/django-social-network | 48bafca81f28874ceead59e263ce5b7e3853dbfb | [
"BSD-3-Clause"
] | 3 | 2015-01-13T05:45:04.000Z | 2020-01-10T19:05:35.000Z | social_network/management/commands/configuresocialnetwork.py | diana-gv/django-social-network | 48bafca81f28874ceead59e263ce5b7e3853dbfb | [
"BSD-3-Clause"
] | null | null | null | social_network/management/commands/configuresocialnetwork.py | diana-gv/django-social-network | 48bafca81f28874ceead59e263ce5b7e3853dbfb | [
"BSD-3-Clause"
] | 6 | 2015-01-13T04:40:53.000Z | 2021-08-13T01:07:40.000Z | # coding=utf-8
from django.core.management.base import NoArgsCommand
class Command(NoArgsCommand):
def handle_noargs(self, **options):
from ...management import configure_notifications, create_edge_types
configure_notifications()
create_edge_types() | 31 | 76 | 0.749104 | 31 | 279 | 6.516129 | 0.709677 | 0.217822 | 0.277228 | 0.316832 | 0.366337 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00431 | 0.168459 | 279 | 9 | 77 | 31 | 0.866379 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
1c3a9e2d07809822b70de13a2212e36d403b00b3 | 149 | py | Python | Muta3DMaps/core/AsyncV/__init__.py | NatureGeorge/SIFTS_Plus_Muta_Maps | 60f84e6024508e65ee3791103762b95666d3c646 | [
"MIT"
] | null | null | null | Muta3DMaps/core/AsyncV/__init__.py | NatureGeorge/SIFTS_Plus_Muta_Maps | 60f84e6024508e65ee3791103762b95666d3c646 | [
"MIT"
] | null | null | null | Muta3DMaps/core/AsyncV/__init__.py | NatureGeorge/SIFTS_Plus_Muta_Maps | 60f84e6024508e65ee3791103762b95666d3c646 | [
"MIT"
] | null | null | null | # @Date: 2019-11-20T22:46:50+08:00
# @Email: 1730416009@stu.suda.edu.cn
# @Filename: __init__.py
# @Last modified time: 2019-11-24T23:13:42+08:00
| 29.8 | 48 | 0.691275 | 27 | 149 | 3.666667 | 0.851852 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.348485 | 0.114094 | 149 | 4 | 49 | 37.25 | 0.401515 | 0.939597 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
98e2e7d75d86b8ab47a6484e478dfaddff2953b4 | 329 | py | Python | pywidget/decode.py | jiajia15401/pywidget | ed4296aab0ce1a5ec01ef1dedaf3a1cec53ad0d3 | [
"MIT"
] | 1 | 2018-12-08T18:14:53.000Z | 2018-12-08T18:14:53.000Z | pywidget/decode.py | jiajia15401/pywidget | ed4296aab0ce1a5ec01ef1dedaf3a1cec53ad0d3 | [
"MIT"
] | null | null | null | pywidget/decode.py | jiajia15401/pywidget | ed4296aab0ce1a5ec01ef1dedaf3a1cec53ad0d3 | [
"MIT"
] | null | null | null | from pywidget.save import *
class decode(use_to_decode):
def __init__(self):
pass
###################
#. @ #
#@@@ #
#. @ #
#. @ @ . #
# @ #
###########... | 27.416667 | 40 | 0.197568 | 13 | 329 | 4.538462 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.595745 | 329 | 11 | 41 | 29.909091 | 0.443609 | 0.458967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
98f2c730707e8e81e60e918912cc23aa7d5329c0 | 683 | py | Python | workdays/views.py | anhtran304/workdays | c0d3d6dac80e3cac140c769f2c7e751bf26d054a | [
"MIT"
] | null | null | null | workdays/views.py | anhtran304/workdays | c0d3d6dac80e3cac140c769f2c7e751bf26d054a | [
"MIT"
] | null | null | null | workdays/views.py | anhtran304/workdays | c0d3d6dac80e3cac140c769f2c7e751bf26d054a | [
"MIT"
] | null | null | null | from django.shortcuts import render
def index(request):
return render(request, "index.html")
def farmerportal(request):
return render(request, "farmerportal.html")
def workerportal(request):
return render(request, "workerportal.html")
def workerindex(request):
return render(request, "workerindex.htm... | 24.392857 | 47 | 0.743777 | 77 | 683 | 6.597403 | 0.233766 | 0.230315 | 0.336614 | 0.46063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136164 | 683 | 28 | 48 | 24.392857 | 0.861017 | 0 | 0 | 0 | 0 | 0 | 0.197368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.473684 | false | 0 | 0.052632 | 0.473684 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
c72bcaac393039783c699d40e07f46b2e08c5218 | 2,617 | py | Python | smarthome_migration/ac_device.py | johnklee/learn_dp_from_bad_smell_design | 88506487ce64a1b9492ec28fe235ae596ddf1472 | [
"MIT"
] | null | null | null | smarthome_migration/ac_device.py | johnklee/learn_dp_from_bad_smell_design | 88506487ce64a1b9492ec28fe235ae596ddf1472 | [
"MIT"
] | 4 | 2022-01-02T06:49:43.000Z | 2022-02-15T12:36:41.000Z | smarthome_migration/ac_device.py | johnklee/learn_dp_from_bad_smell_design | 88506487ce64a1b9492ec28fe235ae596ddf1472 | [
"MIT"
] | null | null | null | """Air condition controller."""
import enum
import device_api
from log_utils import get_logger
class ACControllerV1(device_api.ACInterface):
def __init__(self):
self.on_state = False
self.log = get_logger(self)
self.degree = 20
def is_on(self):
return self.on_state
def get_degree(self):
r... | 22.560345 | 61 | 0.643485 | 385 | 2,617 | 4.21039 | 0.127273 | 0.135719 | 0.101789 | 0.059223 | 0.832202 | 0.832202 | 0.754473 | 0.682912 | 0.682912 | 0.658853 | 0 | 0.004534 | 0.241498 | 2,617 | 115 | 62 | 22.756522 | 0.812091 | 0.009553 | 0 | 0.8 | 0 | 0 | 0.096674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.033333 | 0.088889 | 0.377778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c747c95762064fa839b70121bc7b98e9140010d2 | 41 | py | Python | malcolm/modules/system/__init__.py | dinojugosloven/pymalcolm | 0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a | [
"Apache-2.0"
] | null | null | null | malcolm/modules/system/__init__.py | dinojugosloven/pymalcolm | 0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a | [
"Apache-2.0"
] | null | null | null | malcolm/modules/system/__init__.py | dinojugosloven/pymalcolm | 0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a | [
"Apache-2.0"
] | null | null | null | from . import defines, parts, controllers | 41 | 41 | 0.804878 | 5 | 41 | 6.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 41 | 1 | 41 | 41 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.