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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e03bca4f387d46c70f2a66bef73bd50e8eb4990d | 3,999 | py | Python | tests/st/optimizer/test_rprop_ascend.py | PowerOlive/mindspore | bda20724a94113cedd12c3ed9083141012da1f15 | [
"Apache-2.0"
] | 1 | 2022-02-23T09:13:43.000Z | 2022-02-23T09:13:43.000Z | tests/st/optimizer/test_rprop_ascend.py | zimo-geek/mindspore | 665ec683d4af85c71b2a1f0d6829356f2bc0e1ff | [
"Apache-2.0"
] | null | null | null | tests/st/optimizer/test_rprop_ascend.py | zimo-geek/mindspore | 665ec683d4af85c71b2a1f0d6829356f2bc0e1ff | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 43.945055 | 112 | 0.68192 | 565 | 3,999 | 4.679646 | 0.217699 | 0.054463 | 0.036309 | 0.056732 | 0.776853 | 0.776853 | 0.776853 | 0.776853 | 0.776853 | 0.776853 | 0 | 0.031231 | 0.183296 | 3,999 | 90 | 113 | 44.433333 | 0.778322 | 0.4016 | 0 | 0.727273 | 0 | 0 | 0.119944 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.272727 | 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 |
e060a0a93de3b94d114e641783f54a61654bac33 | 43 | py | Python | pysiclib/__init__.py | ShameekConyers/sicnumerical | dc5035e5d922cb8e4341c5fbd88adba4f5d09bea | [
"MIT"
] | null | null | null | pysiclib/__init__.py | ShameekConyers/sicnumerical | dc5035e5d922cb8e4341c5fbd88adba4f5d09bea | [
"MIT"
] | null | null | null | pysiclib/__init__.py | ShameekConyers/sicnumerical | dc5035e5d922cb8e4341c5fbd88adba4f5d09bea | [
"MIT"
] | null | null | null | from . import _pysiclib
from .api import *
| 14.333333 | 23 | 0.744186 | 6 | 43 | 5.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 43 | 2 | 24 | 21.5 | 0.885714 | 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 |
0ee0d999cb9cbbb273ed9543254e2808b507927f | 3,239 | py | Python | tests/fields/test_render_as_checkbox.py | jpsca/pforms | 77c9da93e5224e79bb147aa873f28951e972bb21 | [
"MIT"
] | 2 | 2019-10-11T03:13:10.000Z | 2019-11-12T10:31:54.000Z | tests/fields/test_render_as_checkbox.py | jpsca/hyperform | d5c450ad8684a853fed26f8c2606877151125a9e | [
"MIT"
] | 2 | 2021-11-18T18:01:28.000Z | 2021-11-18T18:03:29.000Z | tests/fields/test_render_as_checkbox.py | jpsca/hyperform | d5c450ad8684a853fed26f8c2606877151125a9e | [
"MIT"
] | null | null | null | import proper_forms.fields as f
def test_text_as_checkbox():
field = f.Text(name="name")
assert field.as_checkbox() == '<input name="name" type="checkbox">'
def test_text_as_checkbox_with_label():
field = f.Text(name="name")
assert (
field.as_checkbox(label="I have read the TOS")
== ... | 29.18018 | 88 | 0.659154 | 405 | 3,239 | 5.02716 | 0.101235 | 0.137525 | 0.089391 | 0.144401 | 0.961198 | 0.905206 | 0.858055 | 0.822692 | 0.811886 | 0.750491 | 0 | 0.002285 | 0.189256 | 3,239 | 110 | 89 | 29.445455 | 0.773039 | 0 | 0 | 0.585366 | 0 | 0 | 0.285273 | 0.007101 | 0 | 0 | 0 | 0 | 0.170732 | 1 | 0.170732 | false | 0 | 0.012195 | 0 | 0.182927 | 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 |
0ee48e90b0364f5e2564cd6a8348cda4b1973597 | 218 | py | Python | PlanetSpice/Mars/__init__.py | mattkjames7/PlanetSpice | 5a5c2cb75b9832af42cb746a1a6a886b9cc4da88 | [
"MIT"
] | null | null | null | PlanetSpice/Mars/__init__.py | mattkjames7/PlanetSpice | 5a5c2cb75b9832af42cb746a1a6a886b9cc4da88 | [
"MIT"
] | null | null | null | PlanetSpice/Mars/__init__.py | mattkjames7/PlanetSpice | 5a5c2cb75b9832af42cb746a1a6a886b9cc4da88 | [
"MIT"
] | null | null | null | from .Pos import PosHCI,PosHAE,ReadCarringtonRotations,SaveCarringtonRotations,CarringtonLongitude,PosIAU_SUN,SavePos,ReadPos,ReadPosDate,CombinePos,ReadCombinedPos,CombinePosSmall
from .Orbit import OrbitHAE,OrbitHCI
| 72.666667 | 180 | 0.899083 | 21 | 218 | 9.285714 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036697 | 218 | 2 | 181 | 109 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
162f384f24bbff1e6da817a0ac88bab802e89e98 | 3,957 | py | Python | fffit/tests/test_pareto.py | helpscott/fffit | 22f83c3e804304398822bfdc335704cacab5efc5 | [
"MIT"
] | null | null | null | fffit/tests/test_pareto.py | helpscott/fffit | 22f83c3e804304398822bfdc335704cacab5efc5 | [
"MIT"
] | null | null | null | fffit/tests/test_pareto.py | helpscott/fffit | 22f83c3e804304398822bfdc335704cacab5efc5 | [
"MIT"
] | 4 | 2021-05-13T19:51:08.000Z | 2021-12-08T01:22:20.000Z | import pytest
import numpy as np
import matplotlib.pyplot as plt
from fffit.pareto import (
is_pareto_efficient_simple,
is_pareto_efficient,
find_pareto_set,
plt_pareto_2D
)
from fffit.tests.base_test import BaseTest
class TestPareto(BaseTest):
def test_pareto_simple_known(self):
costs =... | 36.638889 | 79 | 0.605257 | 542 | 3,957 | 4.197417 | 0.105166 | 0.031648 | 0.034286 | 0.035165 | 0.86989 | 0.868132 | 0.863297 | 0.863297 | 0.847912 | 0.847912 | 0 | 0.066321 | 0.268385 | 3,957 | 107 | 80 | 36.981308 | 0.719516 | 0 | 0 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252632 | 1 | 0.073684 | false | 0 | 0.052632 | 0 | 0.136842 | 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 |
166795bda36813ca0cc46cddf69055eb986b2d01 | 60 | py | Python | simu_project/cp.py | wyfcyx/PipelinedMIPS16e | ae4aaa69b765fc5d01d1c99fe6e4cc71cd4c7fa8 | [
"MIT"
] | 2 | 2018-12-10T11:17:31.000Z | 2020-08-26T09:45:51.000Z | simu_project/cp.py | wyfcyx/PipelinedMIPS16e | ae4aaa69b765fc5d01d1c99fe6e4cc71cd4c7fa8 | [
"MIT"
] | null | null | null | simu_project/cp.py | wyfcyx/PipelinedMIPS16e | ae4aaa69b765fc5d01d1c99fe6e4cc71cd4c7fa8 | [
"MIT"
] | null | null | null | import os
os.system('copy ../cpu_project/main.vhd main.vhd') | 30 | 50 | 0.75 | 11 | 60 | 4 | 0.727273 | 0.318182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 60 | 2 | 50 | 30 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.606557 | 0.377049 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
16926e66c2c4c348df0ec0c8d5de00a1e92c5ff9 | 90 | py | Python | python/optalg/examples/functions.py | gerritjvv/optimization_algorithms | eab2e8fff39eeab8d9be45af3dae3be1a62be3ba | [
"MIT"
] | null | null | null | python/optalg/examples/functions.py | gerritjvv/optimization_algorithms | eab2e8fff39eeab8d9be45af3dae3be1a62be3ba | [
"MIT"
] | null | null | null | python/optalg/examples/functions.py | gerritjvv/optimization_algorithms | eab2e8fff39eeab8d9be45af3dae3be1a62be3ba | [
"MIT"
] | null | null | null | def squared(x, gradient=1, y_intercept=0):
return (x * gradient) ** 2 + y_intercept
| 18 | 44 | 0.655556 | 14 | 90 | 4.071429 | 0.714286 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.2 | 90 | 4 | 45 | 22.5 | 0.75 | 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 |
16eab4bd4f4262915b5614fedb1e499fa65ae993 | 36 | py | Python | scormxblock/__init__.py | urfu-online/edx_xblock_scorm | 0958ab687a6fb70d90d611e5ac5df42696ac3bff | [
"Apache-2.0"
] | null | null | null | scormxblock/__init__.py | urfu-online/edx_xblock_scorm | 0958ab687a6fb70d90d611e5ac5df42696ac3bff | [
"Apache-2.0"
] | null | null | null | scormxblock/__init__.py | urfu-online/edx_xblock_scorm | 0958ab687a6fb70d90d611e5ac5df42696ac3bff | [
"Apache-2.0"
] | null | null | null | from .scormxblock import ScormXBlock | 36 | 36 | 0.888889 | 4 | 36 | 8 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 36 | 1 | 36 | 36 | 0.969697 | 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 |
bc9f8ca21ffbfecf0a5227106b08d380586dddf8 | 8,408 | py | Python | tests/test_pixellise.py | anicusan/KonigCell | 6f55d06c9457dd0e601910f0cd4a7f95742ac009 | [
"MIT"
] | 7 | 2021-12-16T10:15:57.000Z | 2022-02-22T13:58:29.000Z | tests/test_pixellise.py | anicusan/KonigCell | 6f55d06c9457dd0e601910f0cd4a7f95742ac009 | [
"MIT"
] | null | null | null | tests/test_pixellise.py | anicusan/KonigCell | 6f55d06c9457dd0e601910f0cd4a7f95742ac009 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File : test_pixellise.py
# License: GNU v3.0
# Author : Andrei Leonard Nicusan <a.l.nicusan@bham.ac.uk>
# Date : 31.08.2021
'''Integration tests to ensure the `konigcell` base classes behave correctly
and offer consistent interfaces.
'''
import pytest
from concu... | 35.931624 | 77 | 0.63285 | 935 | 8,408 | 5.633155 | 0.127273 | 0.056389 | 0.060756 | 0.078982 | 0.91722 | 0.909056 | 0.891589 | 0.850009 | 0.811278 | 0.734194 | 0 | 0.03595 | 0.26225 | 8,408 | 233 | 78 | 36.085837 | 0.813155 | 0.153425 | 0 | 0.558824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 1 | 0.036765 | false | 0 | 0.029412 | 0.007353 | 0.073529 | 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 |
bcb263c1c773952b76cef5d6a22c2678ef04b91b | 515,146 | py | Python | USB/python/usb_1208HS_rbf.py | wjasper/Linix_Drivers | 9c5443f3c9d249f341b6b8580929f8cdbdba4079 | [
"JasPer-2.0"
] | 100 | 2016-11-08T15:41:43.000Z | 2022-02-20T19:37:32.000Z | USB/python/usb_1208HS_rbf.py | wjasper/Linix_Drivers | 9c5443f3c9d249f341b6b8580929f8cdbdba4079 | [
"JasPer-2.0"
] | 37 | 2017-01-05T17:48:14.000Z | 2022-01-06T17:43:27.000Z | USB/python/usb_1208HS_rbf.py | wjasper/Linix_Drivers | 9c5443f3c9d249f341b6b8580929f8cdbdba4079 | [
"JasPer-2.0"
] | 65 | 2016-12-20T07:03:44.000Z | 2022-03-14T21:48:35.000Z | FPGA_data = (
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x6a, 0xd6, 0xff, 0x40, 0x00, 0x48, 0xd3, 0x08,
0x00, 0x6a, 0xd6, 0xff, 0x40, 0x00, 0x48, 0xd3,
0x08, 0x00, 0x6a, 0xd6, 0xff, 0x40, 0x00, 0x48,
0xd3, 0x08, 0x00,... | 56.978874 | 56 | 0.561404 | 72,301 | 515,146 | 4 | 0.003568 | 0.344504 | 0.442193 | 0.528789 | 0.321918 | 0.273551 | 0.247797 | 0.226166 | 0.213344 | 0.203248 | 0 | 0.546796 | 0.298246 | 515,146 | 9,040 | 57 | 56.985177 | 0.253202 | 0 | 0 | 0.154757 | 0 | 0 | 0 | 0 | 0 | 0 | 0.561386 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4c24558c3f5419ec633a0eb12c1e4bf425deb2be | 8,557 | py | Python | tests/test_api.py | thanos/couchfs | 69f51d929f8abeb7a9945206a34fe7b7cf050e96 | [
"MIT"
] | 1 | 2021-03-16T12:05:37.000Z | 2021-03-16T12:05:37.000Z | tests/test_api.py | thanos/couchfs | 69f51d929f8abeb7a9945206a34fe7b7cf050e96 | [
"MIT"
] | null | null | null | tests/test_api.py | thanos/couchfs | 69f51d929f8abeb7a9945206a34fe7b7cf050e96 | [
"MIT"
] | null | null | null | import os
import pytest
import requests_mock
from couchfs.api import CouchDBClient, BadConnectionURI, URLRequired
#
#
#
#
attachment_list = {"total_rows":3,"offset":0,"rows":[
{"id":"1","key":["1"],"value":0},
{"id":"doc-1","key":["doc-1","isis28.gif"],"value":10415},
{"id":"doc-2","key":["doc-2"],"value":0}
]}
... | 37.04329 | 311 | 0.622181 | 1,144 | 8,557 | 4.446678 | 0.134615 | 0.089444 | 0.049735 | 0.04482 | 0.784942 | 0.762532 | 0.762532 | 0.750147 | 0.732455 | 0.702182 | 0 | 0.0528 | 0.196564 | 8,557 | 231 | 312 | 37.04329 | 0.687127 | 0 | 0 | 0.704082 | 0 | 0 | 0.293079 | 0.150573 | 0 | 0 | 0 | 0 | 0.076531 | 1 | 0.076531 | false | 0.02551 | 0.030612 | 0 | 0.117347 | 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 |
4c6c977a376572e4d96c430b9a24bbe4a64017b6 | 54 | py | Python | emaileer/kancyemail.py | kancyframework/python-plugins | 430d0f781b5669d8e6ad83f7af0782b672c43db5 | [
"MIT"
] | 1 | 2021-12-11T12:44:12.000Z | 2021-12-11T12:44:12.000Z | emaileer/kancyemail.py | kancyframework/python-plugins | 430d0f781b5669d8e6ad83f7af0782b672c43db5 | [
"MIT"
] | null | null | null | emaileer/kancyemail.py | kancyframework/python-plugins | 430d0f781b5669d8e6ad83f7af0782b672c43db5 | [
"MIT"
] | null | null | null | """
组件emaileer的别名kancyemail
"""
from emaileer import * | 13.5 | 23 | 0.759259 | 4 | 54 | 10.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 54 | 4 | 24 | 13.5 | 0.854167 | 0.425926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 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 |
910c6fee6ffcff5a3002877bd33d370472bbdef2 | 4,003 | py | Python | app/src/search.py | LukeZSW/yelp_recommendation_system | 62ef9ee3f14417c0ab0f1c50b8bfce8b470a20b0 | [
"MIT"
] | null | null | null | app/src/search.py | LukeZSW/yelp_recommendation_system | 62ef9ee3f14417c0ab0f1c50b8bfce8b470a20b0 | [
"MIT"
] | null | null | null | app/src/search.py | LukeZSW/yelp_recommendation_system | 62ef9ee3f14417c0ab0f1c50b8bfce8b470a20b0 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
# retrieve information by whoosh library
# two methods: BM25F (default) and TF_IDF
# combine with CF
from whoosh import index
from whoosh.fields import *
from whoosh.qparser import MultifieldParser
from whoosh.qparser.dateparse import DateParserPlugin
from whoosh import scoring, query, sorting,... | 44.977528 | 125 | 0.584062 | 506 | 4,003 | 4.557312 | 0.22332 | 0.038161 | 0.020815 | 0.038161 | 0.780572 | 0.762793 | 0.762793 | 0.762793 | 0.762793 | 0.762793 | 0 | 0.019567 | 0.285036 | 4,003 | 88 | 126 | 45.488636 | 0.786164 | 0.087684 | 0 | 0.842105 | 0 | 0 | 0.033507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.092105 | 0 | 0.144737 | 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 |
9134b292537299996182b965d07df6ee3c8dfc97 | 550 | py | Python | pypact/analysis/__init__.py | zxkjack123/pypact | 8b37f42007e0accabc9fb31d4ab76935b559d817 | [
"Apache-2.0"
] | 18 | 2018-01-22T14:00:18.000Z | 2022-03-08T06:29:22.000Z | pypact/analysis/__init__.py | listato/pypact | a418ba218cdf4a25ae3e7d72e0919905d027d2ba | [
"Apache-2.0"
] | 28 | 2018-12-07T14:30:46.000Z | 2022-02-27T20:33:06.000Z | pypact/analysis/__init__.py | listato/pypact | a418ba218cdf4a25ae3e7d72e0919905d027d2ba | [
"Apache-2.0"
] | 8 | 2018-05-29T13:41:59.000Z | 2021-01-21T01:33:41.000Z | from pypact.analysis.plotadapter import LinePlotAdapter
from pypact.analysis.plotadapter import MatrixPlotAdapter
from pypact.analysis.plotadapter import AnimatedMatrixPlotAdapter
from pypact.analysis.propertyplotter import NuclideDataEntry
from pypact.analysis.propertyplotter import plotproperty
from pypact.analysis... | 39.285714 | 65 | 0.885455 | 65 | 550 | 7.415385 | 0.307692 | 0.207469 | 0.224066 | 0.224066 | 0.678423 | 0.23029 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078182 | 550 | 13 | 66 | 42.307692 | 0.95069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
91374a9ff9e878c694ad7a5ee7dccc40cf2e5a9e | 130,550 | py | Python | functional_tests/sample/test_questionnaire.py | SCiO-systems/qcat | 8c2b8e07650bc2049420fa6de758fba7e50c2f28 | [
"Apache-2.0"
] | null | null | null | functional_tests/sample/test_questionnaire.py | SCiO-systems/qcat | 8c2b8e07650bc2049420fa6de758fba7e50c2f28 | [
"Apache-2.0"
] | null | null | null | functional_tests/sample/test_questionnaire.py | SCiO-systems/qcat | 8c2b8e07650bc2049420fa6de758fba7e50c2f28 | [
"Apache-2.0"
] | null | null | null | import pytest
from django.urls import reverse
from django.http import JsonResponse
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from unittest.mock impor... | 41.963999 | 126 | 0.592279 | 16,825 | 130,550 | 4.42948 | 0.037444 | 0.069238 | 0.078094 | 0.021925 | 0.828879 | 0.796541 | 0.760929 | 0.716931 | 0.680702 | 0.642501 | 0 | 0.030082 | 0.255197 | 130,550 | 3,110 | 127 | 41.977492 | 0.736378 | 0.305255 | 0 | 0.74642 | 0 | 0.00716 | 0.291315 | 0.180116 | 0 | 0 | 0 | 0 | 0.145585 | 1 | 0.0179 | false | 0 | 0.010143 | 0 | 0.032816 | 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 |
913cdc9de8310596907d309bbbc38cac1d7277c6 | 280 | py | Python | operations.py | bv94/advanced-calculator | a41b7344b662acdf331fd744e97862a86d9a0e7d | [
"MIT"
] | null | null | null | operations.py | bv94/advanced-calculator | a41b7344b662acdf331fd744e97862a86d9a0e7d | [
"MIT"
] | null | null | null | operations.py | bv94/advanced-calculator | a41b7344b662acdf331fd744e97862a86d9a0e7d | [
"MIT"
] | null | null | null |
def sum(num1, num2):
return num1+num2
def subtract(num1, num2):
return num1-num2
def multiply(num1, num2):
return num1*num2
def divide(num1, num2):
return num1/num2
math_operations = {
"+": sum,
"-": subtract,
"*": multiply,
"/": divide
}
| 11.666667 | 25 | 0.589286 | 34 | 280 | 4.823529 | 0.294118 | 0.390244 | 0.341463 | 0.439024 | 0.591463 | 0.457317 | 0 | 0 | 0 | 0 | 0 | 0.077295 | 0.260714 | 280 | 23 | 26 | 12.173913 | 0.714976 | 0 | 0 | 0 | 0 | 0 | 0.014337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.285714 | 0.571429 | 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 |
e69cb960aa19c89398e7eeddc43f218483e8170d | 11,820 | py | Python | tests/tests_mot/serving/test_inference.py | amartya-dev/mot | 6706860b10b524c4f90dfd98ec9b1f2433e4e09e | [
"MIT"
] | 22 | 2019-10-04T06:42:04.000Z | 2022-03-25T02:32:50.000Z | tests/tests_mot/serving/test_inference.py | amartya-dev/mot | 6706860b10b524c4f90dfd98ec9b1f2433e4e09e | [
"MIT"
] | 43 | 2019-10-05T10:15:32.000Z | 2022-02-09T23:36:30.000Z | tests/tests_mot/serving/test_inference.py | amartya-dev/mot | 6706860b10b524c4f90dfd98ec9b1f2433e4e09e | [
"MIT"
] | 15 | 2019-09-26T14:58:38.000Z | 2022-03-29T20:22:31.000Z | import json
import os
from unittest import mock
import cv2
import numpy as np
import pytest
from werkzeug import FileStorage
from mot.serving.inference import handle_post_request, predict_and_format_image, process_image
HOME = os.path.expanduser("~")
PATH_TO_TEST_VIDEO = os.path.join(HOME, ".mot/tests/test_video.mp4... | 35.495495 | 97 | 0.613452 | 1,549 | 11,820 | 4.507424 | 0.111685 | 0.016328 | 0.017617 | 0.016041 | 0.845603 | 0.810083 | 0.782441 | 0.769837 | 0.749785 | 0.746061 | 0 | 0.029811 | 0.239425 | 11,820 | 332 | 98 | 35.60241 | 0.745161 | 0.039679 | 0 | 0.644928 | 0 | 0 | 0.145302 | 0.033172 | 0 | 0 | 0 | 0.003012 | 0.123188 | 1 | 0.072464 | false | 0 | 0.028986 | 0.021739 | 0.155797 | 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 |
e6a5e94f083a47a099d003d1153ef56a2329394e | 3,071 | py | Python | tests/components/nexia/test_scene.py | Fred-Ch/core | 4ac4a5ada957622d8a602f9b88d13596c79f305b | [
"Apache-2.0"
] | 1 | 2020-11-29T03:14:56.000Z | 2020-11-29T03:14:56.000Z | tests/components/nexia/test_scene.py | Fred-Ch/core | 4ac4a5ada957622d8a602f9b88d13596c79f305b | [
"Apache-2.0"
] | null | null | null | tests/components/nexia/test_scene.py | Fred-Ch/core | 4ac4a5ada957622d8a602f9b88d13596c79f305b | [
"Apache-2.0"
] | null | null | null | """The lock tests for the august platform."""
from .util import async_init_integration
async def test_automation_scenees(hass):
"""Test creation automation scenees."""
await async_init_integration(hass)
state = hass.states.get("scene.away_short")
expected_attributes = {
"attribution": "Data... | 42.068493 | 88 | 0.658092 | 423 | 3,071 | 4.728132 | 0.217494 | 0.032 | 0.054 | 0.088 | 0.849 | 0.8035 | 0.745 | 0.745 | 0.745 | 0.686 | 0 | 0.02123 | 0.263758 | 3,071 | 72 | 89 | 42.652778 | 0.863335 | 0.107782 | 0 | 0.315789 | 0 | 0 | 0.572119 | 0.025651 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0 | false | 0 | 0.017544 | 0 | 0.017544 | 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 |
e6d1e5e08a71720790416b729cada9206ecf0929 | 7,918 | py | Python | tarifa.py | anthuand/UNE_telegram_bot | d8bedbc2d30c27af641ee4b1a42bb0a8fb0f31d8 | [
"MIT"
] | null | null | null | tarifa.py | anthuand/UNE_telegram_bot | d8bedbc2d30c27af641ee4b1a42bb0a8fb0f31d8 | [
"MIT"
] | null | null | null | tarifa.py | anthuand/UNE_telegram_bot | d8bedbc2d30c27af641ee4b1a42bb0a8fb0f31d8 | [
"MIT"
] | null | null | null | # Rango en kWh Precio (Cup)
# 0-100 0.33
# 101-150 1.07
# 151-200 1.43
# 201-250 2.46
# 251-300 3.00
# 301-350 4.00
# 351-400 5.00
# 401-450 6.00
# 451-500 7.00
# 501-600 9.20
# 601-700 9.45
... | 45.505747 | 105 | 0.238318 | 560 | 7,918 | 3.146429 | 0.144643 | 0.15891 | 0.096481 | 0.102157 | 0.716799 | 0.700908 | 0.700908 | 0.700908 | 0.700908 | 0.700908 | 0 | 0.130017 | 0.710533 | 7,918 | 173 | 106 | 45.768786 | 0.638743 | 0.058474 | 0 | 0.674419 | 0 | 0 | 0.005115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007752 | false | 0 | 0.007752 | 0 | 0.023256 | 0.007752 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e6e4f839d795bc11a666bc08eb08a4a992a9209b | 814 | py | Python | models/locochatlog.py | jujinesy/Empier_PythonKakaoBot | 80d2951955002b1a0b5d77b5c2830bc8def63ea3 | [
"MIT"
] | 3 | 2017-03-30T15:20:18.000Z | 2018-01-04T12:46:05.000Z | models/locochatlog.py | skdltmxn/kakaobot | e738b4a8d994fc4125bbd471bd48378a11a8d371 | [
"MIT"
] | 1 | 2020-08-06T08:13:22.000Z | 2020-08-06T08:13:22.000Z | models/locochatlog.py | skdltmxn/kakaobot | e738b4a8d994fc4125bbd471bd48378a11a8d371 | [
"MIT"
] | 5 | 2020-08-06T08:18:02.000Z | 2021-02-28T03:59:45.000Z | # -*- coding: utf-8 -*-
class LocoChatLog(object):
def __init__(self, data):
self._data = data
def msg_id(self):
return self._data["msgId"]
def send_at(self):
return self._data["sendAt"]
def log_id(self):
return self._data["logId"]
de... | 22 | 55 | 0.535627 | 93 | 814 | 4.462366 | 0.354839 | 0.231325 | 0.337349 | 0.346988 | 0.240964 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003704 | 0.336609 | 814 | 36 | 56 | 22.611111 | 0.764815 | 0.025799 | 0 | 0 | 0 | 0 | 0.085967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0 | 0.333333 | 0.875 | 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 |
e6f86347bfe0cfe563bd3c385da3dd5d2a310847 | 33 | py | Python | _/0349_10_Code/36.py | paullewallencom/javascript-978-1-8495-1034-9 | 7e539d042c644931a9ef2418f66d260a1c6892eb | [
"Apache-2.0"
] | null | null | null | _/0349_10_Code/36.py | paullewallencom/javascript-978-1-8495-1034-9 | 7e539d042c644931a9ef2418f66d260a1c6892eb | [
"Apache-2.0"
] | null | null | null | _/0349_10_Code/36.py | paullewallencom/javascript-978-1-8495-1034-9 | 7e539d042c644931a9ef2418f66d260a1c6892eb | [
"Apache-2.0"
] | null | null | null | import django.contrib.auth.views
| 16.5 | 32 | 0.848485 | 5 | 33 | 5.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 33 | 1 | 33 | 33 | 0.903226 | 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 |
e6fbeb03b1eceb0210171bfd130d4870373da6b9 | 77 | py | Python | cytofpy/model/post_proc/__init__.py | luiarthur/CytoPy | 049360ec6ac9d8505d86498a67faddc866caebca | [
"MIT"
] | 1 | 2019-09-01T19:52:30.000Z | 2019-09-01T19:52:30.000Z | cytofpy/model/post_proc/__init__.py | luiarthur/CytofPy | 049360ec6ac9d8505d86498a67faddc866caebca | [
"MIT"
] | 8 | 2019-02-20T02:07:02.000Z | 2019-09-25T23:09:38.000Z | cytofpy/model/post_proc/__init__.py | luiarthur/CytoPy | 049360ec6ac9d8505d86498a67faddc866caebca | [
"MIT"
] | 1 | 2019-09-01T19:52:34.000Z | 2019-09-01T19:52:34.000Z | from .sample_params import *
from .lam_post import *
from .gam_post import *
| 19.25 | 28 | 0.766234 | 12 | 77 | 4.666667 | 0.583333 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155844 | 77 | 3 | 29 | 25.666667 | 0.861538 | 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 |
e6fd2d96a1c6236410d0fbb06538b3fdbb9ce35e | 128 | py | Python | BitTorrent-5.2.2/BTL/urlparse25.py | jpabb7/p2pScrapper | 0fd57049606864223eb45f956a58adda1231af88 | [
"MIT"
] | 4 | 2016-04-26T03:43:54.000Z | 2016-11-17T08:09:04.000Z | BitTorrent-5.2.2/BTL/urlparse25.py | jpabb7/p2pScrapper | 0fd57049606864223eb45f956a58adda1231af88 | [
"MIT"
] | 17 | 2015-01-05T21:06:22.000Z | 2015-12-07T20:45:44.000Z | BitTorrent-5.2.2/BTL/urlparse25.py | jpabb7/p2pScrapper | 0fd57049606864223eb45f956a58adda1231af88 | [
"MIT"
] | 7 | 2015-07-28T09:17:17.000Z | 2021-11-07T02:29:41.000Z | try:
from urlparse import ParseResult
except ImportError, e:
from _urlparse25 import *
else:
from urlparse import *
| 18.285714 | 36 | 0.726563 | 15 | 128 | 6.133333 | 0.666667 | 0.26087 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 0.226563 | 128 | 6 | 37 | 21.333333 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.666667 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
fc1646961a45eaa5e0d48931f5085efb0aa3d0be | 11,338 | py | Python | tests/test_ec2/test_vpc_peering.py | jonnangle/moto-1 | 40b4e299abb732aad7f56cc0f680c0a272a46594 | [
"Apache-2.0"
] | 1 | 2020-01-13T21:45:21.000Z | 2020-01-13T21:45:21.000Z | tests/test_ec2/test_vpc_peering.py | jonnangle/moto-1 | 40b4e299abb732aad7f56cc0f680c0a272a46594 | [
"Apache-2.0"
] | 17 | 2020-08-28T12:53:56.000Z | 2020-11-10T01:04:46.000Z | tests/test_ec2/test_vpc_peering.py | jonnangle/moto-1 | 40b4e299abb732aad7f56cc0f680c0a272a46594 | [
"Apache-2.0"
] | 2 | 2017-03-02T05:59:52.000Z | 2020-09-03T13:25:44.000Z | from __future__ import unicode_literals
# Ensure 'assert_raises' context manager support for Python 2.6
import tests.backport_assert_raises
from nose.tools import assert_raises
from moto.ec2.exceptions import EC2ClientError
from botocore.exceptions import ClientError
import boto3
import boto
from boto.exception impor... | 41.683824 | 87 | 0.738225 | 1,686 | 11,338 | 4.659549 | 0.084223 | 0.059827 | 0.045825 | 0.050917 | 0.883019 | 0.876146 | 0.868635 | 0.831339 | 0.790606 | 0.73918 | 0 | 0.050659 | 0.136444 | 11,338 | 271 | 88 | 41.837638 | 0.751711 | 0.067649 | 0 | 0.590476 | 0 | 0 | 0.152636 | 0.025692 | 0 | 0 | 0 | 0 | 0.038095 | 1 | 0.057143 | false | 0 | 0.052381 | 0 | 0.114286 | 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 |
fc336df80a0d3db3a172e923fa3a858badc29d61 | 124 | py | Python | backend/dakje/users/models.py | Anan1218/tibetan-spellchecker | fc45de55631ecf52a35cf4be5912c864e6f28b82 | [
"MIT"
] | null | null | null | backend/dakje/users/models.py | Anan1218/tibetan-spellchecker | fc45de55631ecf52a35cf4be5912c864e6f28b82 | [
"MIT"
] | null | null | null | backend/dakje/users/models.py | Anan1218/tibetan-spellchecker | fc45de55631ecf52a35cf4be5912c864e6f28b82 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import AbstractUser
class User(AbstractUser):
"""Default user for dakje."""
pass
| 15.5 | 51 | 0.717742 | 15 | 124 | 5.933333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177419 | 124 | 7 | 52 | 17.714286 | 0.872549 | 0.185484 | 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 |
fc85f0fa70dcbe6f33a06fe0e46a055598c48f33 | 11,341 | py | Python | tests/test_add_customer_to_registry.py | GermainPereira/YourAppointment | 09c212442be7719dac15184a7460c52cea2f6bce | [
"MIT"
] | 1 | 2020-04-06T02:32:31.000Z | 2020-04-06T02:32:31.000Z | tests/test_add_customer_to_registry.py | GermainPereira/ClassesManager | 09c212442be7719dac15184a7460c52cea2f6bce | [
"MIT"
] | 4 | 2020-04-22T14:47:32.000Z | 2020-04-24T18:30:21.000Z | tests/test_add_customer_to_registry.py | GermainPereira/YourAppointment | 09c212442be7719dac15184a7460c52cea2f6bce | [
"MIT"
] | null | null | null | import set_test_path
import unittest
from unittest import mock
from io import StringIO
from datetime import datetime
from data_manager import DataManager as Dm
from testing_resources import TestingShortcuts
class TestAddCustomerToRegistry(TestingShortcuts, unittest.TestCase):
def setUp(self):
self.dm_ins... | 46.101626 | 103 | 0.707962 | 1,432 | 11,341 | 5.051676 | 0.09148 | 0.041609 | 0.0517 | 0.05253 | 0.867155 | 0.831767 | 0.824855 | 0.797484 | 0.775505 | 0.726707 | 0 | 0.014106 | 0.243629 | 11,341 | 246 | 104 | 46.101626 | 0.829214 | 0 | 0 | 0.488152 | 0 | 0 | 0.114089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109005 | false | 0.023697 | 0.033175 | 0 | 0.146919 | 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 |
5d9cc1946478d5b804f964937a41a173267302a7 | 13,779 | py | Python | apps/plea/tests/test_income.py | uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas | 4c625b13fa2826bdde083a0270dcea1791f6dc18 | [
"MIT"
] | 3 | 2015-12-22T16:37:14.000Z | 2018-01-22T18:44:38.000Z | apps/plea/tests/test_income.py | uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas | 4c625b13fa2826bdde083a0270dcea1791f6dc18 | [
"MIT"
] | 145 | 2015-03-04T11:17:50.000Z | 2022-03-21T12:10:13.000Z | apps/plea/tests/test_income.py | uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas | 4c625b13fa2826bdde083a0270dcea1791f6dc18 | [
"MIT"
] | 3 | 2015-12-29T14:59:12.000Z | 2021-04-11T06:24:11.000Z | from collections import OrderedDict
from django.test import TestCase
from mock import Mock
from django.test.client import RequestFactory
from django.template.context import RequestContext
from ..views import PleaOnlineForms
from ..stages import calculate_weekly_amount, YourBenefitsStage
class TestCalculations(TestCa... | 53.200772 | 152 | 0.625735 | 1,477 | 13,779 | 5.532837 | 0.07109 | 0.099119 | 0.137665 | 0.146476 | 0.838228 | 0.828439 | 0.815467 | 0.780348 | 0.771047 | 0.755017 | 0 | 0.012882 | 0.228173 | 13,779 | 258 | 153 | 53.406977 | 0.755524 | 0 | 0 | 0.497462 | 0 | 0 | 0.275927 | 0.009072 | 0 | 0 | 0 | 0 | 0.319797 | 1 | 0.091371 | false | 0 | 0.035533 | 0 | 0.147208 | 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 |
5dade73dd4d13fe9de28e4bf2be55fdb9764fa65 | 21,919 | py | Python | dlcv/object_detection/tensorflow_detect/builders/box_predictor_builder_test.py | Loonride/deeplens-cv | 9e5b31c1a269d364e4912ba8266415fa04277e11 | [
"MIT"
] | 11 | 2019-10-07T22:06:30.000Z | 2020-08-26T22:10:53.000Z | dlcv/object_detection/tensorflow_detect/builders/box_predictor_builder_test.py | Loonride/deeplens-cv | 9e5b31c1a269d364e4912ba8266415fa04277e11 | [
"MIT"
] | 16 | 2019-11-02T00:32:00.000Z | 2022-02-10T00:23:32.000Z | dlcv/object_detection/tensorflow_detect/builders/box_predictor_builder_test.py | Loonride/deeplens-cv | 9e5b31c1a269d364e4912ba8266415fa04277e11 | [
"MIT"
] | 9 | 2019-10-07T13:33:13.000Z | 2020-09-27T09:50:58.000Z | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 38.79469 | 80 | 0.713217 | 2,469 | 21,919 | 5.846092 | 0.080599 | 0.192878 | 0.062422 | 0.061729 | 0.888943 | 0.850007 | 0.825759 | 0.797146 | 0.780449 | 0.76784 | 0 | 0.013445 | 0.21616 | 21,919 | 564 | 81 | 38.863475 | 0.826669 | 0.031662 | 0 | 0.697087 | 0 | 0 | 0.16981 | 0.037348 | 0 | 0 | 0 | 0 | 0.170874 | 1 | 0.042718 | false | 0 | 0.013592 | 0.015534 | 0.079612 | 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 |
b906714dd32fe985f8f73a4390736a67263146db | 52 | py | Python | harvester/core/tests/mocks/__init__.py | surfedushare/search-portal | 708a0d05eee13c696ca9abd7e84ab620d3900fbe | [
"MIT"
] | 2 | 2021-08-19T09:40:59.000Z | 2021-12-14T11:08:20.000Z | harvester/core/tests/mocks/__init__.py | surfedushare/search-portal | f5486d6b07b7b04a46ce707cee5174db4f8da222 | [
"MIT"
] | 159 | 2020-05-14T14:17:34.000Z | 2022-03-23T10:28:13.000Z | harvester/core/tests/mocks/__init__.py | nppo/search-portal | aedf21e334f178c049f9d6cf37cafd6efc07bc0d | [
"MIT"
] | 1 | 2021-11-11T13:37:22.000Z | 2021-11-11T13:37:22.000Z | from .elastic_client import get_elastic_client_mock
| 26 | 51 | 0.903846 | 8 | 52 | 5.375 | 0.75 | 0.604651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 52 | 1 | 52 | 52 | 0.895833 | 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 |
5d636104a8d0d3e6f41760e7f647e407f8c7545e | 2,669 | py | Python | CIFAR-100/load_settings.py | nuguziii/overhaul-distillation | f5b9929f5b29806540ecaf5b83435ad594071d17 | [
"MIT"
] | 365 | 2019-09-10T03:43:36.000Z | 2022-03-28T18:26:42.000Z | CIFAR-100/load_settings.py | shashank3959/overhaul-distillation | 9c571f6d4cbb8eb7a26a28cc3485a1314f37be77 | [
"MIT"
] | 35 | 2019-09-14T03:24:49.000Z | 2021-09-08T12:13:20.000Z | CIFAR-100/load_settings.py | shashank3959/overhaul-distillation | 9c571f6d4cbb8eb7a26a28cc3485a1314f37be77 | [
"MIT"
] | 72 | 2019-09-10T23:57:20.000Z | 2022-03-25T12:39:51.000Z |
import torch
import os
import models.WideResNet as WRN
import models.PyramidNet as PYN
import models.ResNet as RN
def load_paper_settings(args):
WRN_path = os.path.join(args.data_path, 'WRN28-4_21.09.pt')
Pyramid_path = os.path.join(args.data_path, 'pyramid200_mixup_15.6.tar')
if args.paper_setting == ... | 42.365079 | 88 | 0.661671 | 369 | 2,669 | 4.604336 | 0.233062 | 0.07063 | 0.091819 | 0.07063 | 0.81754 | 0.81754 | 0.81754 | 0.76751 | 0.766333 | 0.766333 | 0 | 0.047237 | 0.206819 | 2,669 | 63 | 89 | 42.365079 | 0.755314 | 0.024354 | 0 | 0.54902 | 0 | 0 | 0.064206 | 0.009612 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.137255 | 0 | 0.176471 | 0.019608 | 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 |
53ac0c1065466c7f0f8392ac3d6d5a338310acd0 | 11,787 | py | Python | deslib/tests/des/test_des_knn.py | luccaportes/DESlib | 7d2399e6772e485fccd11c11f3e1730826df11ee | [
"BSD-3-Clause"
] | 1 | 2018-10-19T19:48:31.000Z | 2018-10-19T19:48:31.000Z | deslib/tests/des/test_des_knn.py | luccaportes/DESlib | 7d2399e6772e485fccd11c11f3e1730826df11ee | [
"BSD-3-Clause"
] | null | null | null | deslib/tests/des/test_des_knn.py | luccaportes/DESlib | 7d2399e6772e485fccd11c11f3e1730826df11ee | [
"BSD-3-Clause"
] | null | null | null | from unittest.mock import MagicMock
import numpy as np
import pytest
from sklearn.linear_model import Perceptron
from deslib.des.des_knn import DESKNN
from sklearn.utils.estimator_checks import check_estimator
def test_check_estimator():
check_estimator(DESKNN)
def test_estimate_competence():
"""
Test... | 33.202817 | 79 | 0.611776 | 1,911 | 11,787 | 3.648875 | 0.083203 | 0.027248 | 0.017209 | 0.085186 | 0.843109 | 0.826187 | 0.826187 | 0.810698 | 0.810698 | 0.810698 | 0 | 0.103479 | 0.236701 | 11,787 | 354 | 80 | 33.29661 | 0.671557 | 0.166115 | 0 | 0.69697 | 0 | 0 | 0.001566 | 0 | 0 | 0 | 0 | 0 | 0.080808 | 1 | 0.090909 | false | 0 | 0.030303 | 0 | 0.126263 | 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 |
53af6664f61b551d24165230366d47bfb70f90e4 | 143 | py | Python | gym_mo/envs/gridworlds/__init__.py | FMalerba/gym-mo | 4637bfea8984ad821785150061f1da28a2f5a5b0 | [
"BSD-3-Clause"
] | null | null | null | gym_mo/envs/gridworlds/__init__.py | FMalerba/gym-mo | 4637bfea8984ad821785150061f1da28a2f5a5b0 | [
"BSD-3-Clause"
] | null | null | null | gym_mo/envs/gridworlds/__init__.py | FMalerba/gym-mo | 4637bfea8984ad821785150061f1da28a2f5a5b0 | [
"BSD-3-Clause"
] | null | null | null | from gym_mo.envs.gridworlds.mo_traffic_env import MOTrafficEnv
from gym_mo.envs.gridworlds.mo_deep_sea_treasure_env import MODeepSeaTresureEnv
| 47.666667 | 79 | 0.902098 | 22 | 143 | 5.5 | 0.590909 | 0.115702 | 0.14876 | 0.214876 | 0.413223 | 0.413223 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055944 | 143 | 2 | 80 | 71.5 | 0.896296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 6 |
53de0b41e2bc8dbd34d7bf9cf4e5f77643c1c7be | 62 | py | Python | calculate.py | cu-swe4s-fall-2020/version-control-mad232 | 6d40887deb637976bc68b2c085ba606aa6c44d8d | [
"MIT"
] | null | null | null | calculate.py | cu-swe4s-fall-2020/version-control-mad232 | 6d40887deb637976bc68b2c085ba606aa6c44d8d | [
"MIT"
] | null | null | null | calculate.py | cu-swe4s-fall-2020/version-control-mad232 | 6d40887deb637976bc68b2c085ba606aa6c44d8d | [
"MIT"
] | null | null | null | import math_lib as ml
print(ml.div(4,2))
print(ml.add(3,4))
| 10.333333 | 21 | 0.677419 | 15 | 62 | 2.733333 | 0.733333 | 0.341463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.129032 | 62 | 5 | 22 | 12.4 | 0.685185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.666667 | 1 | 0 | 0 | null | 1 | 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 |
53febf74240c1201d411fa0194622dbbe765d62f | 25 | py | Python | permute/__init__.py | tixxit/permute | 731f82916ad764fcc85e8fe887638db8541a1d0c | [
"0BSD"
] | 3 | 2015-01-27T13:37:55.000Z | 2018-05-18T14:36:11.000Z | permute/__init__.py | tixxit/permute | 731f82916ad764fcc85e8fe887638db8541a1d0c | [
"0BSD"
] | null | null | null | permute/__init__.py | tixxit/permute | 731f82916ad764fcc85e8fe887638db8541a1d0c | [
"0BSD"
] | null | null | null | from iterators import *
| 8.333333 | 23 | 0.76 | 3 | 25 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 25 | 2 | 24 | 12.5 | 0.95 | 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 |
070567f4cc77a8aec36671e6da53130689263081 | 1,675 | py | Python | tests/test_card_block.py | nickmoreton/wagtail-nhsuk-frontend | 7941787954c739e29ae6bbf35a62840b661372e0 | [
"MIT"
] | null | null | null | tests/test_card_block.py | nickmoreton/wagtail-nhsuk-frontend | 7941787954c739e29ae6bbf35a62840b661372e0 | [
"MIT"
] | null | null | null | tests/test_card_block.py | nickmoreton/wagtail-nhsuk-frontend | 7941787954c739e29ae6bbf35a62840b661372e0 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
from django.test import Client
import pytest
@pytest.mark.django_db
def test_card_clickable_block_external_url(db, django_db_setup, client: Client):
response = client.get('/promo-hub/')
soup = BeautifulSoup(response.content, 'html.parser')
a_tag = soup.select_one('.block-card... | 32.211538 | 87 | 0.713433 | 246 | 1,675 | 4.613821 | 0.199187 | 0.070485 | 0.070485 | 0.079295 | 0.918943 | 0.918943 | 0.901322 | 0.901322 | 0.901322 | 0.832599 | 0 | 0.005525 | 0.135522 | 1,675 | 51 | 88 | 32.843137 | 0.778315 | 0 | 0 | 0.611111 | 0 | 0 | 0.186269 | 0.042985 | 0 | 0 | 0 | 0 | 0.138889 | 1 | 0.138889 | false | 0 | 0.083333 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
071ffc3d40b7ce039336048e1235f8830bda6206 | 148 | py | Python | transcrypt/development/automated_tests/transcrypt/modules/mod4.py | JMCanning78/Transcrypt | 8a8dabe831240414fdf1d5027fa2b0d71ab45d05 | [
"Apache-2.0"
] | 1 | 2017-08-11T01:51:51.000Z | 2017-08-11T01:51:51.000Z | transcrypt/development/automated_tests/transcrypt/modules/mod4.py | JMCanning78/Transcrypt | 8a8dabe831240414fdf1d5027fa2b0d71ab45d05 | [
"Apache-2.0"
] | 2 | 2021-03-11T07:09:19.000Z | 2021-05-12T11:26:23.000Z | transcrypt/development/automated_tests/transcrypt/modules/mod4.py | JMCanning78/Transcrypt | 8a8dabe831240414fdf1d5027fa2b0d71ab45d05 | [
"Apache-2.0"
] | 1 | 2021-02-07T00:22:12.000Z | 2021-02-07T00:22:12.000Z | from modules.mod5 import mod5Add2
def mod4Add2FromMod5 (variable):
return mod5Add2 (variable)
def mod4Add1(variable):
return variable + 1
| 18.5 | 33 | 0.756757 | 17 | 148 | 6.588235 | 0.647059 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090164 | 0.175676 | 148 | 7 | 34 | 21.142857 | 0.827869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.4 | 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 |
072cf87f18645f4025bb861b710b53a90211bdbd | 31 | py | Python | djcolour/__init__.py | jansegre/djcolour | 532903f0edc20af2ecb6c06e6e7363b1ef9a03a2 | [
"MIT"
] | null | null | null | djcolour/__init__.py | jansegre/djcolour | 532903f0edc20af2ecb6c06e6e7363b1ef9a03a2 | [
"MIT"
] | null | null | null | djcolour/__init__.py | jansegre/djcolour | 532903f0edc20af2ecb6c06e6e7363b1ef9a03a2 | [
"MIT"
] | null | null | null | from .fields import ColorField
| 15.5 | 30 | 0.83871 | 4 | 31 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 1 | 31 | 31 | 0.962963 | 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 |
ab46072aac6fff5c6b5909a540c7b9401695825b | 15,883 | py | Python | custom_helper_op/python/ops/op_tests/sparse_conv_fast_op_test.py | zhuimeng999/custom_helper_op | 439c01a9112160ab0a1589454393139d213dcc63 | [
"Apache-2.0"
] | null | null | null | custom_helper_op/python/ops/op_tests/sparse_conv_fast_op_test.py | zhuimeng999/custom_helper_op | 439c01a9112160ab0a1589454393139d213dcc63 | [
"Apache-2.0"
] | null | null | null | custom_helper_op/python/ops/op_tests/sparse_conv_fast_op_test.py | zhuimeng999/custom_helper_op | 439c01a9112160ab0a1589454393139d213dcc63 | [
"Apache-2.0"
] | null | null | null | import os
# os.environ['TF_XLA_FLAGS'] = '--tf_xla_enable_xla_devices --tf_xla_auto_jit=2 --tf_xla_cpu_global_jit'
# os.environ['TF_GPU_THREAD_MODE'] = 'gpu_private'
# os.environ['OMP_NUM_THREADS'] = '1'
os.environ['TF_DISABLE_MKL'] = '1'
import tensorflow as tf
gpus = tf.config.experimental.get_visible_devices('GPU')... | 63.027778 | 241 | 0.657432 | 2,369 | 15,883 | 4.13339 | 0.080203 | 0.012868 | 0.012561 | 0.010212 | 0.872038 | 0.862132 | 0.850899 | 0.835886 | 0.816993 | 0.776859 | 0 | 0.042712 | 0.189259 | 15,883 | 252 | 242 | 63.027778 | 0.717714 | 0.251527 | 0 | 0.602564 | 0 | 0 | 0.003723 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 1 | 0.038462 | false | 0 | 0.051282 | 0 | 0.108974 | 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 |
ab6210646aeab375c008704e3fe6bf9aebed99a2 | 209 | py | Python | features/tests/conftest.py | City-of-Helsinki/ah | 1a00df3f68a59e067af1f030c381ec9b809074da | [
"MIT"
] | null | null | null | features/tests/conftest.py | City-of-Helsinki/ah | 1a00df3f68a59e067af1f030c381ec9b809074da | [
"MIT"
] | 50 | 2019-11-20T15:05:58.000Z | 2021-09-22T18:05:07.000Z | features/tests/conftest.py | City-of-Helsinki/ahti | 1a00df3f68a59e067af1f030c381ec9b809074da | [
"MIT"
] | null | null | null | import pytest
from graphene.test import Client
from ahti.schema import schema
@pytest.fixture
def api_client():
return Client(schema=schema)
@pytest.fixture(autouse=True)
def autouse_db(db):
pass
| 13.933333 | 32 | 0.760766 | 30 | 209 | 5.233333 | 0.533333 | 0.152866 | 0.242038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15311 | 209 | 14 | 33 | 14.928571 | 0.887006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.333333 | 0.111111 | 0.666667 | 0 | 0 | 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 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 6 |
dbaa00feeead8303cbb5f13af453f8ae1291ec1b | 95,942 | py | Python | tests/examples/minlplib/catmix200.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 2 | 2021-07-03T13:19:10.000Z | 2022-02-06T10:48:13.000Z | tests/examples/minlplib/catmix200.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 1 | 2021-07-04T14:52:14.000Z | 2021-07-15T10:17:11.000Z | tests/examples/minlplib/catmix200.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | null | null | null | # NLP written by GAMS Convert at 04/21/18 13:51:13
#
# Equation counts
# Total E G L N X C B
# 401 401 0 0 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | 58.860123 | 120 | 0.591868 | 18,130 | 95,942 | 3.132101 | 0.059294 | 0.028212 | 0.148666 | 0.21238 | 0.714044 | 0.713674 | 0.713357 | 0.713357 | 0.594418 | 0.192304 | 0 | 0.243963 | 0.161379 | 95,942 | 1,629 | 121 | 58.896255 | 0.4618 | 0.007067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000829 | 0 | 0.000829 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
dbac5d91f0e3d701f46b76233a8884d353a0a332 | 40,585 | py | Python | src/azure-cli/azure/cli/command_modules/servicebus/tests/latest/test_servicebus_commands.py | psignoret/azure-cli | 1a4a043750315f9a7f2894b4287126089978b615 | [
"MIT"
] | 2 | 2020-08-08T11:00:25.000Z | 2020-08-08T11:00:30.000Z | src/azure-cli/azure/cli/command_modules/servicebus/tests/latest/test_servicebus_commands.py | psignoret/azure-cli | 1a4a043750315f9a7f2894b4287126089978b615 | [
"MIT"
] | 2 | 2021-01-15T09:24:07.000Z | 2021-01-15T09:30:10.000Z | src/azure-cli/azure/cli/command_modules/servicebus/tests/latest/test_servicebus_commands.py | psignoret/azure-cli | 1a4a043750315f9a7f2894b4287126089978b615 | [
"MIT"
] | 1 | 2020-12-14T15:30:14.000Z | 2020-12-14T15:30:14.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 50.043157 | 234 | 0.628779 | 3,912 | 40,585 | 6.462935 | 0.074387 | 0.073013 | 0.090772 | 0.074991 | 0.879524 | 0.84009 | 0.800815 | 0.757821 | 0.722066 | 0.679785 | 0 | 0.007567 | 0.231539 | 40,585 | 810 | 235 | 50.104938 | 0.803097 | 0.090083 | 0 | 0.652427 | 0 | 0.178641 | 0.530619 | 0.053301 | 0 | 0 | 0 | 0 | 0.034951 | 1 | 0.015534 | false | 0 | 0.01165 | 0 | 0.029126 | 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 |
dbca39f7c730ca6ebd3a93437ad70b0e84d19335 | 15,826 | py | Python | api_tests/registrations/views/test_registration_list.py | sf2ne/Playground | 95b2d222d7ac43baca0249acbfc34e043d6a95b3 | [
"Apache-2.0"
] | null | null | null | api_tests/registrations/views/test_registration_list.py | sf2ne/Playground | 95b2d222d7ac43baca0249acbfc34e043d6a95b3 | [
"Apache-2.0"
] | 13 | 2020-03-24T15:29:41.000Z | 2022-03-11T23:15:28.000Z | api_tests/registrations/views/test_registration_list.py | sf2ne/Playground | 95b2d222d7ac43baca0249acbfc34e043d6a95b3 | [
"Apache-2.0"
] | null | null | null |
from urlparse import urlparse
from nose.tools import * # flake8: noqa
from website.models import Node
from framework.auth.core import Auth
from api.base.settings.defaults import API_BASE
from tests.base import ApiTestCase
from tests.factories import (
ProjectFactory,
RegistrationFactory,
AuthUserFactor... | 43.478022 | 143 | 0.68438 | 2,236 | 15,826 | 4.477639 | 0.06127 | 0.070116 | 0.098881 | 0.119856 | 0.81642 | 0.784459 | 0.746205 | 0.702058 | 0.655813 | 0.606872 | 0 | 0.00316 | 0.200051 | 15,826 | 363 | 144 | 43.597796 | 0.787678 | 0.011563 | 0 | 0.613139 | 0 | 0 | 0.080077 | 0.041829 | 0 | 0 | 0 | 0 | 0.452555 | 1 | 0.080292 | false | 0 | 0.025547 | 0 | 0.113139 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
917a50addb8fd850484fc0029563524dcfb9a0e9 | 1,904 | py | Python | tests/query_parser_test.py | Allread/ada | 4b42881a8e9b493d03098b6b392774fadcfeae17 | [
"MIT"
] | 14 | 2020-06-18T19:38:05.000Z | 2022-02-09T13:53:24.000Z | tests/query_parser_test.py | Allread/ada | 4b42881a8e9b493d03098b6b392774fadcfeae17 | [
"MIT"
] | 65 | 2020-03-12T19:13:38.000Z | 2020-03-25T06:25:14.000Z | tests/query_parser_test.py | Allread/ada | 4b42881a8e9b493d03098b6b392774fadcfeae17 | [
"MIT"
] | 4 | 2020-07-30T19:52:09.000Z | 2021-08-16T13:28:08.000Z | from query_parser import QueryParser
from db import DB
if __name__ == "__main__":
db = DB()
parser = QueryParser(db)
tests_queries = [
"produce 60 iron rods from ? iron ore",
"produce 60 iron plate",
"produce 60 iron plate from ? resources",
"produce ? power from 240 crude ... | 36.615385 | 70 | 0.614496 | 239 | 1,904 | 4.841004 | 0.205021 | 0.140017 | 0.179775 | 0.18669 | 0.748487 | 0.712187 | 0.712187 | 0.712187 | 0.712187 | 0.712187 | 0 | 0.042846 | 0.31355 | 1,904 | 51 | 71 | 37.333333 | 0.842387 | 0.341912 | 0 | 0 | 0 | 0 | 0.542441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
9182b92ef1e41acfbb779094794fc4882d6095fb | 100 | py | Python | dataweb/admin/__init__.py | rob-metalinkage/django-dataweb | ea5bfa1c532afe300053a7bfa603a502e558c07b | [
"Apache-2.0"
] | 1 | 2020-05-29T00:39:50.000Z | 2020-05-29T00:39:50.000Z | dataweb/admin/__init__.py | rob-metalinkage/django-dataweb | ea5bfa1c532afe300053a7bfa603a502e558c07b | [
"Apache-2.0"
] | null | null | null | dataweb/admin/__init__.py | rob-metalinkage/django-dataweb | ea5bfa1c532afe300053a7bfa603a502e558c07b | [
"Apache-2.0"
] | 2 | 2019-12-17T11:57:33.000Z | 2021-07-16T18:40:30.000Z | import dataweb.admin.void
import dataweb.admin.rdfqb
import dataweb.admin.profiles
#import profiles
| 20 | 29 | 0.85 | 14 | 100 | 6.071429 | 0.428571 | 0.458824 | 0.635294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 100 | 4 | 30 | 25 | 0.923913 | 0.15 | 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 |
918d0691bdfc1aa270ad5634195f7c1eeec09974 | 759 | py | Python | shiftschema/validators/__init__.py | projectshift/shift-validate | c598d1af5df40fae65cf3878b8f67accbcd059b7 | [
"MIT"
] | 1 | 2018-07-12T17:41:43.000Z | 2018-07-12T17:41:43.000Z | shiftschema/validators/__init__.py | projectshift/shift-validate | c598d1af5df40fae65cf3878b8f67accbcd059b7 | [
"MIT"
] | 22 | 2015-02-05T06:32:27.000Z | 2020-12-30T18:12:09.000Z | shiftschema/validators/__init__.py | projectshift/shift-validate | c598d1af5df40fae65cf3878b8f67accbcd059b7 | [
"MIT"
] | null | null | null | from shiftschema.validators.abstract_validator import AbstractValidator
from shiftschema.validators.choice import Choice
from shiftschema.validators.multichoice import MultiChoice
from shiftschema.validators.digits import Digits
from shiftschema.validators.length import Length
from shiftschema.validators.email import E... | 23.71875 | 71 | 0.823452 | 103 | 759 | 5.990291 | 0.368932 | 0.243112 | 0.405186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106719 | 759 | 31 | 72 | 24.483871 | 0.91003 | 0.270092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
91900683e5fa61026b563dabb4593f17bdf4d3f2 | 21 | py | Python | djmapnik/__init__.py | springmeyer/djmapnik | 8d736a73470b3b3c480503fe55f6f77340b6b7e5 | [
"BSD-3-Clause"
] | 3 | 2015-05-08T02:25:02.000Z | 2021-09-10T18:12:56.000Z | djmapnik/__init__.py | springmeyer/djmapnik | 8d736a73470b3b3c480503fe55f6f77340b6b7e5 | [
"BSD-3-Clause"
] | null | null | null | djmapnik/__init__.py | springmeyer/djmapnik | 8d736a73470b3b3c480503fe55f6f77340b6b7e5 | [
"BSD-3-Clause"
] | 1 | 2018-03-22T20:58:07.000Z | 2018-03-22T20:58:07.000Z | from adapter import * | 21 | 21 | 0.809524 | 3 | 21 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.944444 | 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 |
91a2bc2ebdbadb6637b89186388cfe04cdb63708 | 38 | py | Python | test.py | amoeba04/AutoML_tutorial | 7dc2162031e3d245b423074795af8464741c98cf | [
"MIT"
] | 1 | 2019-07-25T14:59:57.000Z | 2019-07-25T14:59:57.000Z | tmp.py | tinve/kaggle_salt | eba74e818cafbb2e50f9fa0ef7fb9f68a584e5c7 | [
"MIT"
] | 2 | 2019-07-22T09:18:22.000Z | 2019-07-24T15:54:04.000Z | examples/packages.py | deecamp-chuangxin/DeepInvest | 58f6235fa2f55b0a0ceacb13a8b3e30ab7e291f4 | [
"MIT"
] | null | null | null | import torch
print(torch.__version__) | 12.666667 | 24 | 0.842105 | 5 | 38 | 5.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 38 | 3 | 24 | 12.666667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
91a9c822ed3eb9a4cd4ec059c472a68f4ceb62f2 | 112 | py | Python | week16/classwork/snake_to_pascal.py | YAtOff/python0 | b5af5004131d64dd52d42746eddb72b6c43a13c7 | [
"Apache-2.0"
] | 6 | 2017-11-08T14:04:39.000Z | 2019-03-24T22:11:04.000Z | archive/2016/week16/homework/snake_to_pascal.py | YAtOff/python0 | b5af5004131d64dd52d42746eddb72b6c43a13c7 | [
"Apache-2.0"
] | null | null | null | archive/2016/week16/homework/snake_to_pascal.py | YAtOff/python0 | b5af5004131d64dd52d42746eddb72b6c43a13c7 | [
"Apache-2.0"
] | 7 | 2015-10-27T09:04:58.000Z | 2019-03-03T14:18:26.000Z | def snake_to_pascal(s):
"""
>>> snake_to_pascal('snake_to_pascal')
'SnakeToPascal'
"""
pass
| 16 | 42 | 0.589286 | 13 | 112 | 4.615385 | 0.538462 | 0.35 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 112 | 6 | 43 | 18.666667 | 0.714286 | 0.482143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
91c5152159f05d35a02c11e1e44232905e99e326 | 50 | py | Python | menu/__init__.py | psxzz/dls-nst-bot | 4886f3520e78cf657bb065647f8ae87d160523d5 | [
"MIT"
] | null | null | null | menu/__init__.py | psxzz/dls-nst-bot | 4886f3520e78cf657bb065647f8ae87d160523d5 | [
"MIT"
] | null | null | null | menu/__init__.py | psxzz/dls-nst-bot | 4886f3520e78cf657bb065647f8ae87d160523d5 | [
"MIT"
] | null | null | null | from menu import markups
from menu import replies | 25 | 25 | 0.84 | 8 | 50 | 5.25 | 0.625 | 0.380952 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 50 | 2 | 25 | 25 | 1 | 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 |
91d4de92358a281e7eb5c0fa8fc65a4879efb622 | 224 | py | Python | examples/ecomm_api/views/__init__.py | inkmonk/flask-sqlalchemy-plus | c60cba605630a0a2dc43e3b7b23bdda572b11561 | [
"MIT"
] | 5 | 2015-12-30T09:08:47.000Z | 2018-04-20T09:12:23.000Z | examples/ecomm_api/views/__init__.py | inkmonk/flask-sqlalchemy-plus | c60cba605630a0a2dc43e3b7b23bdda572b11561 | [
"MIT"
] | 12 | 2015-06-20T09:58:37.000Z | 2017-02-23T14:38:02.000Z | examples/ecomm_api/views/__init__.py | inkmonk/flask-sqlalchemy-plus | c60cba605630a0a2dc43e3b7b23bdda572b11561 | [
"MIT"
] | 2 | 2020-04-12T15:05:05.000Z | 2021-08-11T04:11:14.000Z | from .main_api import main_api_bp, main_api_entities
from .orders_manager_api import orders_manager_api_bp, orders_manager_api_entities
from .products_manager_api import products_manager_api_bp, products_manager_api_entities | 74.666667 | 88 | 0.910714 | 36 | 224 | 5.083333 | 0.25 | 0.327869 | 0.262295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 224 | 3 | 88 | 74.666667 | 0.871429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 |
91e6f084973025ea4158f456ca38b7076a4213dd | 4,224 | py | Python | skills/dff_bot_persona_skill/dialogflows/flows/shared.py | deepmipt/assistant-base | ab2dcbdc4c31cd52ca336022003bf69fa80c9189 | [
"Apache-2.0"
] | 7 | 2020-12-07T19:59:16.000Z | 2020-12-24T16:20:47.000Z | skills/dff_bot_persona_skill/dialogflows/flows/shared.py | deepmipt/assistant-base | ab2dcbdc4c31cd52ca336022003bf69fa80c9189 | [
"Apache-2.0"
] | null | null | null | skills/dff_bot_persona_skill/dialogflows/flows/shared.py | deepmipt/assistant-base | ab2dcbdc4c31cd52ca336022003bf69fa80c9189 | [
"Apache-2.0"
] | null | null | null | # %%
import os
import logging
import requests
import sentry_sdk
sentry_sdk.init(dsn=os.getenv("SENTRY_DSN"))
ENTITY_LINKING_URL = os.getenv("DP_ENTITY_LINKING_URL")
WIKIDATA_URL = os.getenv("DP_WIKIDATA_URL")
assert ENTITY_LINKING_URL, ENTITY_LINKING_URL
assert WIKIDATA_URL, WIKIDATA_URL
logger = logging.getLogg... | 33 | 105 | 0.551136 | 492 | 4,224 | 4.410569 | 0.162602 | 0.066359 | 0.04424 | 0.035945 | 0.788479 | 0.75576 | 0.732258 | 0.732258 | 0.719355 | 0.719355 | 0 | 0.013723 | 0.327178 | 4,224 | 127 | 106 | 33.259843 | 0.749824 | 0.000473 | 0 | 0.71028 | 0 | 0 | 0.161848 | 0.032701 | 0 | 0 | 0 | 0 | 0.018692 | 1 | 0.028037 | false | 0 | 0.037383 | 0 | 0.093458 | 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 |
91ea0108d9fb0930202e2dcd207df87692f37a37 | 44 | py | Python | src/data_augmentation.py | koriavinash1/Fetal-Brain-Segmentation | 01b89f769e445ad883a60e404aa6aeddc42fb592 | [
"MIT"
] | 10 | 2018-07-29T10:59:47.000Z | 2021-04-01T16:24:21.000Z | src/data_augmentation.py | koriavinash1/Fetal-Brain-Segmentation | 01b89f769e445ad883a60e404aa6aeddc42fb592 | [
"MIT"
] | 4 | 2019-04-24T06:38:18.000Z | 2020-07-19T16:22:25.000Z | src/data_augmentation.py | koriavinash1/Fetal-Brain-Segmentation | 01b89f769e445ad883a60e404aa6aeddc42fb592 | [
"MIT"
] | 4 | 2018-12-04T14:10:56.000Z | 2021-12-16T13:27:03.000Z | # TODO: add all augmentation functions.....
| 22 | 43 | 0.704545 | 5 | 44 | 6.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 44 | 1 | 44 | 44 | 0.815789 | 0.931818 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 1 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
91eb84492da917b6ef85ea14852a80b226886f76 | 6,427 | py | Python | tests/pytests/unit/beacons/test_diskusage.py | babs/salt | c536ea716d5308880b244e7980f4b659d86fc104 | [
"Apache-2.0"
] | 1 | 2021-02-11T16:55:00.000Z | 2021-02-11T16:55:00.000Z | tests/pytests/unit/beacons/test_diskusage.py | babs/salt | c536ea716d5308880b244e7980f4b659d86fc104 | [
"Apache-2.0"
] | 9 | 2021-03-31T20:25:25.000Z | 2021-07-04T05:33:46.000Z | tests/pytests/unit/beacons/test_diskusage.py | babs/salt | c536ea716d5308880b244e7980f4b659d86fc104 | [
"Apache-2.0"
] | 1 | 2020-06-02T14:15:24.000Z | 2020-06-02T14:15:24.000Z | """
tests.pytests.unit.beacons.test_diskusage
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Disk usage beacon test cases
"""
from collections import namedtuple
import pytest
import salt.beacons.diskusage as diskusage
from tests.support.mock import MagicMock, Mock, patch
@pytest.fixture
def configure_loader_... | 32.958974 | 87 | 0.634977 | 725 | 6,427 | 5.375172 | 0.153103 | 0.08776 | 0.069284 | 0.055427 | 0.84193 | 0.833718 | 0.789838 | 0.789838 | 0.763408 | 0.749551 | 0 | 0.014006 | 0.222343 | 6,427 | 194 | 88 | 33.128866 | 0.765706 | 0.033919 | 0 | 0.669118 | 0 | 0 | 0.214879 | 0.072277 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.102941 | false | 0 | 0.029412 | 0.036765 | 0.169118 | 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 |
53611ff98b169766ddb64be7976b8ca7f11b0fd0 | 1,238 | py | Python | networkx/algorithms/community/__init__.py | rakschahsa/networkx | 6cac55b1064c3c346665f9281680fa3b66442ad0 | [
"BSD-3-Clause"
] | 445 | 2019-01-26T13:50:26.000Z | 2022-03-18T05:17:38.000Z | SLpackage/private/thirdparty/pythonpkgs/networkx/networkx_2.2/lib/python2.7/site-packages/networkx/algorithms/community/__init__.py | fanglab/6mASCOPE | 3f1fdcb7693ff152f17623ce549526ec272698b1 | [
"BSD-3-Clause"
] | 242 | 2019-01-29T15:48:27.000Z | 2022-03-31T22:09:21.000Z | SLpackage/private/thirdparty/pythonpkgs/networkx/networkx_2.2/lib/python2.7/site-packages/networkx/algorithms/community/__init__.py | fanglab/6mASCOPE | 3f1fdcb7693ff152f17623ce549526ec272698b1 | [
"BSD-3-Clause"
] | 31 | 2019-03-10T09:51:27.000Z | 2022-02-14T23:11:12.000Z | """Functions for computing and measuring community structure.
The functions in this class are not imported into the top-level
:mod:`networkx` namespace. You can access these functions by importing
the :mod:`networkx.algorithms.community` module, then accessing the
functions as attributes of ``community``. For example:... | 45.851852 | 70 | 0.77706 | 155 | 1,238 | 6.096774 | 0.458065 | 0.209524 | 0.285714 | 0.295238 | 0.416931 | 0.097355 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.123586 | 1,238 | 26 | 71 | 47.615385 | 0.858065 | 0.574313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
536989836bdf817b4555fbcf482001f8bc0a9416 | 62,058 | py | Python | mdnc/modules/conv.py | cainmagi/MDNC | ce5e88b4c4880e8ecdbd82ee1da48335bad20b53 | [
"MIT"
] | null | null | null | mdnc/modules/conv.py | cainmagi/MDNC | ce5e88b4c4880e8ecdbd82ee1da48335bad20b53 | [
"MIT"
] | null | null | null | mdnc/modules/conv.py | cainmagi/MDNC | ce5e88b4c4880e8ecdbd82ee1da48335bad20b53 | [
"MIT"
] | null | null | null | #!python
# -*- coding: UTF-8 -*-
'''
################################################################
# Modules - convolutional network
# @ Modern Deep Network Toolkits for pyTorch
# Yuchen Jin @ cainmagi@gmail.com
# Requirements: (Pay attention to version)
# python 3.5+
# pyTorch 1.0.0+
# This module is the defini... | 45.29781 | 152 | 0.608834 | 8,027 | 62,058 | 4.569951 | 0.045596 | 0.0214 | 0.022681 | 0.025516 | 0.88676 | 0.870049 | 0.858299 | 0.84058 | 0.827222 | 0.819917 | 0 | 0.018122 | 0.307309 | 62,058 | 1,369 | 153 | 45.330898 | 0.835229 | 0.518644 | 0 | 0.556468 | 0 | 0.008214 | 0.049224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117043 | false | 0 | 0.008214 | 0 | 0.273101 | 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 |
727b92fadb33cf85096ba2b5ce08e93b3a6e5b08 | 11,005 | py | Python | test/test_multi_ofed.py | janciesko/hpc-container-maker | 95526f76e3c0ca70df275ffd8ad7070fb50adf0b | [
"Apache-2.0"
] | null | null | null | test/test_multi_ofed.py | janciesko/hpc-container-maker | 95526f76e3c0ca70df275ffd8ad7070fb50adf0b | [
"Apache-2.0"
] | null | null | null | test/test_multi_ofed.py | janciesko/hpc-container-maker | 95526f76e3c0ca70df275ffd8ad7070fb50adf0b | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 40.311355 | 344 | 0.643526 | 1,524 | 11,005 | 4.585958 | 0.158793 | 0.008585 | 0.060094 | 0.094434 | 0.854343 | 0.850622 | 0.839033 | 0.83474 | 0.828731 | 0.81614 | 0 | 0.036012 | 0.215266 | 11,005 | 272 | 345 | 40.459559 | 0.773275 | 0.082326 | 0 | 0.615385 | 0 | 0 | 0.039391 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 1 | 0.128205 | false | 0 | 0.153846 | 0 | 0.307692 | 0.025641 | 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 |
72a35c069e43e41bc2e79c8e6456ac4046aa88a7 | 6,371 | py | Python | tests/contracts/KT1LiGjQW3RZeurKpuuaMJyFG1P7Yje1BCb1/test_michelson_coding_KT1LiG.py | juztin/pytezos-1 | 7e608ff599d934bdcf129e47db43dbdb8fef9027 | [
"MIT"
] | 1 | 2021-05-20T16:52:08.000Z | 2021-05-20T16:52:08.000Z | tests/contracts/KT1LiGjQW3RZeurKpuuaMJyFG1P7Yje1BCb1/test_michelson_coding_KT1LiG.py | juztin/pytezos-1 | 7e608ff599d934bdcf129e47db43dbdb8fef9027 | [
"MIT"
] | 1 | 2020-12-30T16:44:56.000Z | 2020-12-30T16:44:56.000Z | tests/contracts/KT1LiGjQW3RZeurKpuuaMJyFG1P7Yje1BCb1/test_michelson_coding_KT1LiG.py | tqtezos/pytezos | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | [
"MIT"
] | 1 | 2022-03-20T19:01:00.000Z | 2022-03-20T19:01:00.000Z | from unittest import TestCase
from tests import get_data
from pytezos.michelson.micheline import michelson_to_micheline
from pytezos.michelson.formatter import micheline_to_michelson
class MichelsonCodingTestKT1LiG(TestCase):
def setUp(self):
self.maxDiff = None
def test_michelson_parse_code_KT... | 46.166667 | 90 | 0.734265 | 598 | 6,371 | 7.513378 | 0.068562 | 0.048297 | 0.073448 | 0.133541 | 0.945693 | 0.945693 | 0.945693 | 0.945693 | 0.930114 | 0.930114 | 0 | 0.042896 | 0.191336 | 6,371 | 137 | 91 | 46.50365 | 0.829193 | 0 | 0 | 0.626087 | 0 | 0 | 0.31094 | 0.31094 | 0 | 0 | 0 | 0 | 0.156522 | 1 | 0.165217 | false | 0 | 0.034783 | 0 | 0.208696 | 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 |
f423e3d5ee50ed0175537daef862a75d4483e404 | 12,579 | py | Python | sdk/python/pulumi_azure/network/nat_gateway_public_ip_prefix_association.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/network/nat_gateway_public_ip_prefix_association.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/network/nat_gateway_public_ip_prefix_association.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 49.329412 | 382 | 0.697194 | 1,476 | 12,579 | 5.651084 | 0.123984 | 0.069536 | 0.082244 | 0.069056 | 0.754466 | 0.733485 | 0.729409 | 0.714183 | 0.703273 | 0.69584 | 0 | 0.014652 | 0.224104 | 12,579 | 254 | 383 | 49.523622 | 0.839959 | 0.453613 | 0 | 0.495727 | 1 | 0 | 0.134326 | 0.035177 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145299 | false | 0.008547 | 0.042735 | 0 | 0.273504 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f444e0ba7dc7d139cec99ebb6183293cfb4604d3 | 39 | py | Python | apps/status/__init__.py | cr0mbly/TTGO-esp32-micropython-watch | 3378ea3b15e19f6bab405b6fc07759f17dd6213d | [
"MIT"
] | 6 | 2020-09-10T20:04:49.000Z | 2021-10-10T06:26:05.000Z | apps/status/__init__.py | cr0mbly/TTGO-esp32-micropython-watch | 3378ea3b15e19f6bab405b6fc07759f17dd6213d | [
"MIT"
] | null | null | null | apps/status/__init__.py | cr0mbly/TTGO-esp32-micropython-watch | 3378ea3b15e19f6bab405b6fc07759f17dd6213d | [
"MIT"
] | null | null | null | from apps.status.main import StatusApp
| 19.5 | 38 | 0.846154 | 6 | 39 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 39 | 1 | 39 | 39 | 0.942857 | 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 |
f44872f77cb979e051d54f43b7e75e904dfa83f0 | 47 | py | Python | m3o_plugin/stream.py | JustIceQAQ/play_m3o_in_python | 140b1f07cb574d1f0a2890503ae9e73ce3907f2b | [
"MIT"
] | null | null | null | m3o_plugin/stream.py | JustIceQAQ/play_m3o_in_python | 140b1f07cb574d1f0a2890503ae9e73ce3907f2b | [
"MIT"
] | null | null | null | m3o_plugin/stream.py | JustIceQAQ/play_m3o_in_python | 140b1f07cb574d1f0a2890503ae9e73ce3907f2b | [
"MIT"
] | null | null | null | # TODO Stream: https://m3o.com/stream/overview
| 23.5 | 46 | 0.744681 | 7 | 47 | 5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.085106 | 47 | 1 | 47 | 47 | 0.790698 | 0.93617 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 1 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f44e0a40aad75a39d64d6ee78ea7883326105dc0 | 1,841 | py | Python | tests/test_full.py | raifthenerd/bayesian-coresets | 6fc31ba4f2c46a3a1d4b04f035a38f9b852c50bb | [
"MIT"
] | 1 | 2019-03-30T15:56:34.000Z | 2019-03-30T15:56:34.000Z | tests/test_full.py | raifthenerd/bayesian-coresets | 6fc31ba4f2c46a3a1d4b04f035a38f9b852c50bb | [
"MIT"
] | null | null | null | tests/test_full.py | raifthenerd/bayesian-coresets | 6fc31ba4f2c46a3a1d4b04f035a38f9b852c50bb | [
"MIT"
] | null | null | null | import bayesiancoresets as bc
import numpy as np
import warnings
warnings.filterwarnings('ignore', category=UserWarning) #tests will generate warnings (due to pathological data design for testing), just ignore them
np.seterr(all='raise')
np.set_printoptions(linewidth=500)
np.random.seed(100)
tol = 1e-9
def test_empty... | 38.354167 | 206 | 0.663227 | 318 | 1,841 | 3.808176 | 0.235849 | 0.059455 | 0.06441 | 0.034682 | 0.744013 | 0.744013 | 0.744013 | 0.744013 | 0.744013 | 0.744013 | 0 | 0.03123 | 0.165128 | 1,841 | 47 | 207 | 39.170213 | 0.756669 | 0.067898 | 0 | 0.514286 | 1 | 0 | 0.202924 | 0 | 0 | 0 | 0 | 0 | 0.257143 | 1 | 0.085714 | false | 0 | 0.085714 | 0 | 0.171429 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f462746ebd2e6be5502850b1a2c26c1ef62014a3 | 29,803 | py | Python | tests/test_modules/test_ims.py | ardangelo/craycli | a943ff2d069aadd319ad4ea3ed344c791797fd53 | [
"MIT"
] | null | null | null | tests/test_modules/test_ims.py | ardangelo/craycli | a943ff2d069aadd319ad4ea3ed344c791797fd53 | [
"MIT"
] | null | null | null | tests/test_modules/test_ims.py | ardangelo/craycli | a943ff2d069aadd319ad4ea3ed344c791797fd53 | [
"MIT"
] | null | null | null | """
Tests for Image Management Service (IMS) CLI subcommand (`cray ims`)
and options.
MIT License
(C) Copyright [2020] Hewlett Packard Enterprise Development LP
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal i... | 34.374856 | 85 | 0.638761 | 3,770 | 29,803 | 4.854907 | 0.06366 | 0.038628 | 0.060099 | 0.073758 | 0.890619 | 0.886084 | 0.874283 | 0.870458 | 0.860132 | 0.823854 | 0 | 0.00506 | 0.210818 | 29,803 | 866 | 86 | 34.41455 | 0.773129 | 0.17364 | 0 | 0.659539 | 0 | 0 | 0.184145 | 0.043848 | 0 | 0 | 0 | 0 | 0.241776 | 1 | 0.083882 | false | 0 | 0.008224 | 0 | 0.092105 | 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 |
f462b92d61e15bbb6b97df708b1cdcda1069c314 | 11,969 | py | Python | landlab/utils/tests/test_flow__distance.py | joeljgeo/landlab | 1d2651c76a8a36a7a132f139638192df1823f8fb | [
"MIT"
] | null | null | null | landlab/utils/tests/test_flow__distance.py | joeljgeo/landlab | 1d2651c76a8a36a7a132f139638192df1823f8fb | [
"MIT"
] | null | null | null | landlab/utils/tests/test_flow__distance.py | joeljgeo/landlab | 1d2651c76a8a36a7a132f139638192df1823f8fb | [
"MIT"
] | null | null | null | import pytest
import numpy as np
import math
from numpy.testing import assert_array_equal, assert_almost_equal
from landlab import RasterModelGrid, FieldError, HexModelGrid
from landlab.components import FlowAccumulator, FlowDirectorSteepest
from landlab.utils.flow__distance import calculate_flow__distance
def test_n... | 34.895044 | 96 | 0.588604 | 1,436 | 11,969 | 4.622563 | 0.102368 | 0.031335 | 0.028924 | 0.024104 | 0.875716 | 0.866827 | 0.843628 | 0.836246 | 0.832932 | 0.821482 | 0 | 0.036719 | 0.328766 | 11,969 | 342 | 97 | 34.997076 | 0.78952 | 0.268443 | 0 | 0.687075 | 0 | 0 | 0.03783 | 0.025451 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.054422 | false | 0 | 0.047619 | 0 | 0.102041 | 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 |
f472996b6b7cfbb3ab8a0a0da08de8c5b2bc95d9 | 29 | py | Python | mpu6050/__init__.py | jtkDvlp/mpu6050 | c30432e61de60e6c227c33c0bcfe3bad92061076 | [
"MIT"
] | 134 | 2016-08-06T23:06:10.000Z | 2020-01-07T00:28:20.000Z | mpu6050/__init__.py | ynx0/mpu6050 | 536f214d86c7f6803e6ee71cc30d32370a831717 | [
"MIT"
] | 21 | 2016-08-02T09:25:38.000Z | 2019-11-26T01:25:13.000Z | mpu6050/__init__.py | ynx0/mpu6050 | 536f214d86c7f6803e6ee71cc30d32370a831717 | [
"MIT"
] | 86 | 2016-08-16T11:36:01.000Z | 2020-01-02T09:46:08.000Z | from .mpu6050 import mpu6050
| 14.5 | 28 | 0.827586 | 4 | 29 | 6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32 | 0.137931 | 29 | 1 | 29 | 29 | 0.64 | 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 | 1 | 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 |
be513833fb3d4f90f3494f0dd87c8ef1fac4de90 | 32 | py | Python | src/constants/__init__.py | ArneRustad/Master-thesis-cf | 23b993b2877ff1506896c4181c4151578091b602 | [
"MIT"
] | null | null | null | src/constants/__init__.py | ArneRustad/Master-thesis-cf | 23b993b2877ff1506896c4181c4151578091b602 | [
"MIT"
] | null | null | null | src/constants/__init__.py | ArneRustad/Master-thesis-cf | 23b993b2877ff1506896c4181c4151578091b602 | [
"MIT"
] | null | null | null | from . import directories as dir | 32 | 32 | 0.8125 | 5 | 32 | 5.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 32 | 1 | 32 | 32 | 0.962963 | 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 |
be860f75b9605e96fb1bef560759c16f213c5b59 | 133 | py | Python | fastats/utilities/arrays.py | AaronCritchley/fastats | 3c8e50fffc08ee0dd44c615f4ed93adc47c08ffe | [
"MIT"
] | 26 | 2017-07-17T09:19:53.000Z | 2021-11-30T01:36:56.000Z | fastats/utilities/arrays.py | AaronCritchley/fastats | 3c8e50fffc08ee0dd44c615f4ed93adc47c08ffe | [
"MIT"
] | 320 | 2017-09-02T16:26:25.000Z | 2021-07-28T05:19:49.000Z | fastats/utilities/arrays.py | AaronCritchley/fastats | 3c8e50fffc08ee0dd44c615f4ed93adc47c08ffe | [
"MIT"
] | 13 | 2017-07-06T19:02:29.000Z | 2020-01-22T11:36:34.000Z |
def is_2d(n):
return len(n.shape) == 2
def is_square(n):
square = n.shape[0] == n.shape[1]
return is_2d(n) and square
| 14.777778 | 37 | 0.593985 | 26 | 133 | 2.923077 | 0.461538 | 0.236842 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049505 | 0.240602 | 133 | 8 | 38 | 16.625 | 0.70297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 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 |
be883560814eca27196de3156057864d977c28fe | 38 | py | Python | demos/database/__init__.py | megahard25/tmux_class | 4514622d46762e53c52fa9263ef3a4c78c5b6a4e | [
"MIT"
] | null | null | null | demos/database/__init__.py | megahard25/tmux_class | 4514622d46762e53c52fa9263ef3a4c78c5b6a4e | [
"MIT"
] | null | null | null | demos/database/__init__.py | megahard25/tmux_class | 4514622d46762e53c52fa9263ef3a4c78c5b6a4e | [
"MIT"
] | null | null | null | from .jsondatabase import JSONDatabase | 38 | 38 | 0.894737 | 4 | 38 | 8.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 38 | 1 | 38 | 38 | 0.971429 | 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 |
be88809223a656a25dad6489e38089a97e2c2137 | 178 | py | Python | thefuck/exceptions.py | juzim/thefuck | a3b2e6872b9e75b8a259375b9440246fdd181565 | [
"MIT"
] | 5 | 2016-04-12T21:59:07.000Z | 2016-06-21T17:56:19.000Z | thefuck/exceptions.py | juzim/thefuck | a3b2e6872b9e75b8a259375b9440246fdd181565 | [
"MIT"
] | 4 | 2020-12-23T15:44:08.000Z | 2020-12-23T16:48:59.000Z | thefuck/exceptions.py | juzim/thefuck | a3b2e6872b9e75b8a259375b9440246fdd181565 | [
"MIT"
] | 2 | 2018-04-05T00:01:28.000Z | 2018-04-17T21:39:53.000Z | class EmptyCommand(Exception):
"""Raised when empty command passed to `thefuck`."""
class NoRuleMatched(Exception):
"""Raised when no rule matched for some command."""
| 25.428571 | 56 | 0.713483 | 21 | 178 | 6.047619 | 0.761905 | 0.23622 | 0.299213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162921 | 178 | 6 | 57 | 29.666667 | 0.852349 | 0.516854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 6 |
be95b706e7434aae1b55801b99a967189d3980f6 | 6,901 | py | Python | datadog/dogshell/comment.py | ahmed-mez/datadogpy | 12758de2331696a68860a59931d94fe8a2ecc99e | [
"BSD-3-Clause"
] | null | null | null | datadog/dogshell/comment.py | ahmed-mez/datadogpy | 12758de2331696a68860a59931d94fe8a2ecc99e | [
"BSD-3-Clause"
] | null | null | null | datadog/dogshell/comment.py | ahmed-mez/datadogpy | 12758de2331696a68860a59931d94fe8a2ecc99e | [
"BSD-3-Clause"
] | null | null | null | # stdlib
import json
import sys
# datadog
from datadog import api
from datadog.dogshell.common import report_errors, report_warnings
class CommentClient(object):
@classmethod
def setup_parser(cls, subparsers):
parser = subparsers.add_parser('comment', help="Post, update, and delete comments.")
... | 41.323353 | 92 | 0.556876 | 817 | 6,901 | 4.578947 | 0.105263 | 0.080192 | 0.061748 | 0.048115 | 0.804598 | 0.730553 | 0.721999 | 0.717723 | 0.676022 | 0.643144 | 0 | 0 | 0.280974 | 6,901 | 166 | 93 | 41.572289 | 0.75393 | 0.002029 | 0 | 0.711409 | 0 | 0 | 0.202499 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040268 | false | 0 | 0.026846 | 0 | 0.073826 | 0.281879 | 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 |
bec26003e65d72a830551722131d9c15df057500 | 4,929 | py | Python | models/UNet_Hollow_Kernels_A2_Congig1.py | cviaai/LORCK | 41a62c74b400d9e2cfbd088f25e76d00902c9160 | [
"Apache-2.0"
] | 2 | 2021-03-16T03:18:54.000Z | 2022-02-21T14:54:36.000Z | models/UNet_Hollow_Kernels_A2_Congig1.py | cviaai/LEARNABLE-HOLLOW-KERNELS | 41a62c74b400d9e2cfbd088f25e76d00902c9160 | [
"Apache-2.0"
] | null | null | null | models/UNet_Hollow_Kernels_A2_Congig1.py | cviaai/LEARNABLE-HOLLOW-KERNELS | 41a62c74b400d9e2cfbd088f25e76d00902c9160 | [
"Apache-2.0"
] | null | null | null | import sys
import torch
import torch.nn as nn
import torch.nn.functional as F
from UNet_PD import UNet_Dilated
def double_conv(in_channels, out_channels, bias=True, kernel=[3, 3], padding=[1, 1], dilation=[1, 1]):
return nn.Sequential(
nn.Conv2d(in_channels, out_channels, kernel[0], padding=padding[0], di... | 31.196203 | 109 | 0.528708 | 630 | 4,929 | 3.955556 | 0.131746 | 0.101124 | 0.051364 | 0.077047 | 0.778491 | 0.778491 | 0.769663 | 0.769663 | 0.769663 | 0.769663 | 0 | 0.082915 | 0.354027 | 4,929 | 158 | 110 | 31.196203 | 0.699749 | 0 | 0 | 0.740741 | 0 | 0 | 0.003245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064815 | false | 0 | 0.046296 | 0.009259 | 0.175926 | 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 |
bec447bf5bc29cb8171bdf8a7e360c90ed28643c | 11,196 | py | Python | src/app/test/db/mongo/util_test.py | hazmat345/beer-garden | a5fd3eee303d80b6a16d93c89fe8ff42fe39bfbd | [
"MIT"
] | null | null | null | src/app/test/db/mongo/util_test.py | hazmat345/beer-garden | a5fd3eee303d80b6a16d93c89fe8ff42fe39bfbd | [
"MIT"
] | null | null | null | src/app/test/db/mongo/util_test.py | hazmat345/beer-garden | a5fd3eee303d80b6a16d93c89fe8ff42fe39bfbd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
from mock import MagicMock, Mock, patch
from mongoengine import DoesNotExist, NotUniqueError
import beer_garden.db.mongo.models
import beer_garden.db.mongo.util
@pytest.fixture
def model_mocks(monkeypatch):
request_mock = Mock()
system_mock = Mock()
role_mock = Mock(... | 37.69697 | 86 | 0.666577 | 1,336 | 11,196 | 5.276946 | 0.108533 | 0.08227 | 0.049362 | 0.069929 | 0.806099 | 0.771631 | 0.759574 | 0.742837 | 0.711206 | 0.697021 | 0 | 0.004161 | 0.227224 | 11,196 | 296 | 87 | 37.824324 | 0.81068 | 0.025009 | 0 | 0.530973 | 0 | 0 | 0.082477 | 0.038807 | 0 | 0 | 0 | 0 | 0.10177 | 1 | 0.09292 | false | 0.022124 | 0.035398 | 0 | 0.150442 | 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 |
fe48ca477718c44e86b02a6d28bea1523d8cdea6 | 89 | py | Python | shopify/resources/application_credit.py | GhostApps/shopify_python_api | 70645a9d0c77a092437f8076036c5fa01108a406 | [
"MIT"
] | null | null | null | shopify/resources/application_credit.py | GhostApps/shopify_python_api | 70645a9d0c77a092437f8076036c5fa01108a406 | [
"MIT"
] | 3 | 2021-09-01T19:25:11.000Z | 2021-11-02T14:34:31.000Z | shopify/resources/application_credit.py | GhostApps/shopify_python_api | 70645a9d0c77a092437f8076036c5fa01108a406 | [
"MIT"
] | null | null | null | from ..base import ShopifyResource
class ApplicationCredit(ShopifyResource):
pass
| 14.833333 | 41 | 0.786517 | 8 | 89 | 8.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157303 | 89 | 5 | 42 | 17.8 | 0.933333 | 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 |
fe7b18f36a0325e8a65293b400c9687e076597bf | 46 | py | Python | cride/maps/serializers/__init__.py | albertoaldanar/serecsinAPI | ca0f72d42b2e23d4a28cafccef9892055f922bfc | [
"MIT"
] | null | null | null | cride/maps/serializers/__init__.py | albertoaldanar/serecsinAPI | ca0f72d42b2e23d4a28cafccef9892055f922bfc | [
"MIT"
] | 8 | 2020-06-05T21:51:05.000Z | 2022-01-13T01:25:00.000Z | cride/maps/views/__init__.py | albertoaldanar/serecsinAPI | ca0f72d42b2e23d4a28cafccef9892055f922bfc | [
"MIT"
] | null | null | null | from .busroutes import *
from .stops import *
| 15.333333 | 24 | 0.73913 | 6 | 46 | 5.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 46 | 2 | 25 | 23 | 0.894737 | 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 |
2289da198009fb87b8cd9eacce471042f1d7578a | 209 | py | Python | orders/urls.py | tahasama/books | 9400183077e8708a5f9365ce2b4622a2086427a0 | [
"MIT"
] | null | null | null | orders/urls.py | tahasama/books | 9400183077e8708a5f9365ce2b4622a2086427a0 | [
"MIT"
] | null | null | null | orders/urls.py | tahasama/books | 9400183077e8708a5f9365ce2b4622a2086427a0 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import OrdersPageView
urlpatterns = [
path('charge/', OrdersPageView.as_view(), name='charge'),
path('', OrdersPageView.as_view(), name='orders'),
]
| 23.222222 | 63 | 0.669856 | 23 | 209 | 6 | 0.565217 | 0.231884 | 0.289855 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177033 | 209 | 8 | 64 | 26.125 | 0.802326 | 0 | 0 | 0 | 0 | 0 | 0.094527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
22d153a42249bc2dcde9f6491717be9cacf7031a | 485 | py | Python | gestion_usuarios/utils.py | Infinityloopsistemas/SIVA | 92b6c82f018d39ef405989639974d1f2757476ed | [
"BSD-3-Clause"
] | null | null | null | gestion_usuarios/utils.py | Infinityloopsistemas/SIVA | 92b6c82f018d39ef405989639974d1f2757476ed | [
"BSD-3-Clause"
] | 1 | 2018-09-27T12:07:19.000Z | 2018-10-08T15:56:30.000Z | gestion_usuarios/utils.py | Infinityloopsistemas/SIVA | 92b6c82f018d39ef405989639974d1f2757476ed | [
"BSD-3-Clause"
] | 1 | 2018-10-12T13:41:20.000Z | 2018-10-12T13:41:20.000Z | def is_allowed_edit(user):
if user:
return (user.groups.filter(name='administradores').count() > 0) or (user.groups.filter(name='veterinarios').count() > 0)
return False
def is_allowed_see(user):
if user:
return (user.groups.filter(name='administradores').count() > 0) or (user.groups.filter(... | 60.625 | 243 | 0.684536 | 66 | 485 | 4.969697 | 0.287879 | 0.182927 | 0.292683 | 0.365854 | 0.743902 | 0.743902 | 0.743902 | 0.591463 | 0.591463 | 0.591463 | 0 | 0.014354 | 0.138144 | 485 | 8 | 244 | 60.625 | 0.770335 | 0 | 0 | 0.5 | 0 | 0 | 0.162551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 6 |
22dbdb854442d33141aeba2da039331424a6ab68 | 338,382 | py | Python | test/augmenters/test_meta.py | 18001178267/Image_augment | 563b000a3c5c14ac8f18030e975109d66577fe7d | [
"MIT"
] | null | null | null | test/augmenters/test_meta.py | 18001178267/Image_augment | 563b000a3c5c14ac8f18030e975109d66577fe7d | [
"MIT"
] | null | null | null | test/augmenters/test_meta.py | 18001178267/Image_augment | 563b000a3c5c14ac8f18030e975109d66577fe7d | [
"MIT"
] | null | null | null | from __future__ import print_function, division, absolute_import
import os
import warnings
import sys
import itertools
import copy
from abc import ABCMeta, abstractmethod
# unittest only added in 3.4 self.subTest()
if sys.version_info[0] < 3 or sys.version_info[1] < 4:
import unittest2 as unittest
else:
import... | 37.969255 | 84 | 0.586846 | 42,980 | 338,382 | 4.377548 | 0.02222 | 0.006846 | 0.003922 | 0.016455 | 0.864675 | 0.830282 | 0.794772 | 0.76394 | 0.724481 | 0.699124 | 0 | 0.044232 | 0.298411 | 338,382 | 8,911 | 85 | 37.973516 | 0.748282 | 0.020087 | 0 | 0.68112 | 0 | 0 | 0.016506 | 0.001298 | 0 | 0 | 0 | 0.000224 | 0.180267 | 1 | 0.121837 | false | 0.000142 | 0.004549 | 0.014643 | 0.167472 | 0.000142 | 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 |
434823ed3aa63066ddcf582e7d9343c3ccd7ebfc | 60 | py | Python | free_sms_otp/__init__.py | QwertyQwertovich/free-sms-otp | b8ffb2510c5a2a5167d61b86c7e09c2abed38366 | [
"MIT"
] | 2 | 2021-09-23T20:31:41.000Z | 2021-09-24T05:52:19.000Z | free_sms_otp/__init__.py | QwertyQwertovich/free-sms-otp | b8ffb2510c5a2a5167d61b86c7e09c2abed38366 | [
"MIT"
] | null | null | null | free_sms_otp/__init__.py | QwertyQwertovich/free-sms-otp | b8ffb2510c5a2a5167d61b86c7e09c2abed38366 | [
"MIT"
] | null | null | null | from free_sms_otp.main_func import generate_pass, check_pass | 60 | 60 | 0.9 | 11 | 60 | 4.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 60 | 1 | 60 | 60 | 0.875 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 1 | 1 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 6 |
4a2d5b5d7c9a743828eb11c74b00187fb6ea7478 | 3,421 | py | Python | TunAugmentor/transformations/translations.py | ahmedbelgacem/TunAugmentor | a18c3ee4be985ebf621b4caf59c0c8c2c52ef3cd | [
"MIT"
] | null | null | null | TunAugmentor/transformations/translations.py | ahmedbelgacem/TunAugmentor | a18c3ee4be985ebf621b4caf59c0c8c2c52ef3cd | [
"MIT"
] | null | null | null | TunAugmentor/transformations/translations.py | ahmedbelgacem/TunAugmentor | a18c3ee4be985ebf621b4caf59c0c8c2c52ef3cd | [
"MIT"
] | 1 | 2021-12-23T16:56:26.000Z | 2021-12-23T16:56:26.000Z | from .basic_transform import BasicTransform
from typing import List
import numpy as np
class Translation (BasicTransform):
"""
Translates the image along the y-axis and colors the remaining part of the image with the chosen color.
Parameters
----------
shift_along_x : int
Distance of... | 34.555556 | 125 | 0.621748 | 464 | 3,421 | 4.353448 | 0.146552 | 0.178218 | 0.131683 | 0.074257 | 0.893564 | 0.859901 | 0.793069 | 0.763861 | 0.763861 | 0.709901 | 0 | 0.002477 | 0.29202 | 3,421 | 98 | 126 | 34.908163 | 0.831544 | 0.242034 | 0 | 0.641509 | 0 | 0 | 0.083845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0.056604 | 0 | 0.283019 | 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 |
4a3f492e9c994df0a77d27b08f9b36f1ed04a8c3 | 472 | py | Python | bot/db/entities/File.py | WizzardHub/EcoleDirecteOrtBot | d64ea45acbae3ba4b10152a25bf25abf6ba9525d | [
"MIT"
] | null | null | null | bot/db/entities/File.py | WizzardHub/EcoleDirecteOrtBot | d64ea45acbae3ba4b10152a25bf25abf6ba9525d | [
"MIT"
] | null | null | null | bot/db/entities/File.py | WizzardHub/EcoleDirecteOrtBot | d64ea45acbae3ba4b10152a25bf25abf6ba9525d | [
"MIT"
] | null | null | null | class File:
def __init__(self, file):
self._libelle = None
self._date = None
if len(file) <= 0:
return
self._libelle = file['libelle']
self._date = file['date']
def getLibelle(self):
return self._libelle
def getDate(self):
return self.... | 20.521739 | 61 | 0.567797 | 56 | 472 | 4.482143 | 0.321429 | 0.219124 | 0.203187 | 0.167331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003135 | 0.324153 | 472 | 23 | 61 | 20.521739 | 0.783699 | 0 | 0 | 0 | 0 | 0 | 0.114165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0 | 0.25 | 0.6875 | 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 |
4a5adaf9df15c7bb1003c878eb9550d10606a716 | 46,951 | py | Python | poseconnect/overlay.py | WildflowerSchools/poseconnect | 5d0c188b7f8477f4b8020fa3f9d510a39581713b | [
"MIT"
] | null | null | null | poseconnect/overlay.py | WildflowerSchools/poseconnect | 5d0c188b7f8477f4b8020fa3f9d510a39581713b | [
"MIT"
] | null | null | null | poseconnect/overlay.py | WildflowerSchools/poseconnect | 5d0c188b7f8477f4b8020fa3f9d510a39581713b | [
"MIT"
] | null | null | null | import poseconnect.utils
import poseconnect.defaults
# import process_pose_data.local_io
# import poseconnect.visualize
# import honeycomb_io
# import video_io
import pandas as pd
import numpy as np
import cv_utils
# import cv2 as cv
# import ffmpeg
# import matplotlib.pyplot as plt
import matplotlib.colors
# import se... | 49.474183 | 241 | 0.73451 | 5,643 | 46,951 | 5.670565 | 0.053163 | 0.05372 | 0.139754 | 0.053439 | 0.844995 | 0.801525 | 0.77043 | 0.759586 | 0.751336 | 0.741742 | 0 | 0.009414 | 0.192264 | 46,951 | 948 | 242 | 49.526371 | 0.834353 | 0.005367 | 0 | 0.695887 | 0 | 0 | 0.06488 | 0.001478 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010823 | false | 0 | 0.010823 | 0 | 0.028139 | 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 |
4a6b71790745ef8289120d9a96c9c2caa3926637 | 42,020 | py | Python | src/sage/graphs/base/graph_backends.py | bopopescu/sage-5 | 9d85b34956ca2edd55af307f99c5d3859acd30bf | [
"BSL-1.0"
] | 5 | 2015-01-04T07:15:06.000Z | 2022-03-04T15:15:18.000Z | src/sage/graphs/base/graph_backends.py | bopopescu/sage-5 | 9d85b34956ca2edd55af307f99c5d3859acd30bf | [
"BSL-1.0"
] | null | null | null | src/sage/graphs/base/graph_backends.py | bopopescu/sage-5 | 9d85b34956ca2edd55af307f99c5d3859acd30bf | [
"BSL-1.0"
] | 10 | 2016-09-28T13:12:40.000Z | 2022-02-12T09:28:34.000Z | """
Implements various backends for Sage graphs.
"""
#*******************************************************************************
# Copyright (C) 2008 Robert L. Miller <rlmillster@gmail.com>
#
# Distributed under the terms of the GNU General Public License (GPL)
# http://ww... | 28.430311 | 99 | 0.542147 | 4,492 | 42,020 | 4.973286 | 0.065004 | 0.042927 | 0.038227 | 0.05188 | 0.890018 | 0.864816 | 0.85094 | 0.837511 | 0.815354 | 0.800134 | 0 | 0.007295 | 0.350785 | 42,020 | 1,477 | 100 | 28.44956 | 0.81162 | 0.478177 | 0 | 0.694301 | 0 | 0 | 0.031896 | 0.001357 | 0 | 0 | 0 | 0 | 0.134715 | 1 | 0.147668 | false | 0.002591 | 0.028497 | 0 | 0.272021 | 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 |
4a88a84572d950a9a1263d45d85ea7f28dbbfbd6 | 17,708 | py | Python | st/clitests/shutdown_spec.py | bhansaliakhil/cortx-s3server | d107adb521755da3564316778deff3a51c15170b | [
"Apache-2.0"
] | null | null | null | st/clitests/shutdown_spec.py | bhansaliakhil/cortx-s3server | d107adb521755da3564316778deff3a51c15170b | [
"Apache-2.0"
] | 1 | 2021-11-11T13:55:44.000Z | 2021-11-11T13:55:44.000Z | st/clitests/shutdown_spec.py | bhansaliakhil/cortx-s3server | d107adb521755da3564316778deff3a51c15170b | [
"Apache-2.0"
] | 1 | 2022-03-04T09:44:59.000Z | 2022-03-04T09:44:59.000Z | #
# Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | 53.660606 | 115 | 0.734131 | 2,057 | 17,708 | 5.904229 | 0.124453 | 0.061589 | 0.077069 | 0.085632 | 0.803294 | 0.789872 | 0.784603 | 0.758831 | 0.740634 | 0.714203 | 0 | 0.022714 | 0.149706 | 17,708 | 329 | 116 | 53.823708 | 0.783888 | 0.141066 | 0 | 0.561475 | 0 | 0 | 0.392596 | 0.175675 | 0 | 0 | 0 | 0.00304 | 0 | 1 | 0 | false | 0.012295 | 0.02459 | 0 | 0.02459 | 0.004098 | 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 |
437e47a0b7522cb6bfe1222d70682c71a0591d94 | 107 | py | Python | adler/siteconfig/context_processors.py | Yura-D/adler-congress | bbdedb7dbada4f6246f2a880204e7dd4bb8c8466 | [
"MIT"
] | null | null | null | adler/siteconfig/context_processors.py | Yura-D/adler-congress | bbdedb7dbada4f6246f2a880204e7dd4bb8c8466 | [
"MIT"
] | 10 | 2020-03-01T23:00:54.000Z | 2022-03-12T00:17:11.000Z | adler/siteconfig/context_processors.py | Yura-D/adler-congress | bbdedb7dbada4f6246f2a880204e7dd4bb8c8466 | [
"MIT"
] | null | null | null | from .models import SiteSettings
def settings(request):
return {'settings': SiteSettings.get_solo()}
| 17.833333 | 48 | 0.747664 | 12 | 107 | 6.583333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140187 | 107 | 5 | 49 | 21.4 | 0.858696 | 0 | 0 | 0 | 0 | 0 | 0.074766 | 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 |
43c0030852d0d8426a9f633801f2295b205d71e8 | 338 | py | Python | util.py | thesixonenine/daily-py | 6a4df4f671eebf8d72676f394081ca8a30124d87 | [
"MIT"
] | null | null | null | util.py | thesixonenine/daily-py | 6a4df4f671eebf8d72676f394081ca8a30124d87 | [
"MIT"
] | null | null | null | util.py | thesixonenine/daily-py | 6a4df4f671eebf8d72676f394081ca8a30124d87 | [
"MIT"
] | null | null | null | import time
def is_update(t: time.struct_time) -> bool:
return compare_struct_time(t, time.localtime(time.time()))
def compare_struct_time(t1: time.struct_time, t2: time.struct_time) -> bool:
year = t1.tm_year == t2.tm_year
mon = t1.tm_mon == t2.tm_mon
mday = t1.tm_mday == t2.tm_mday
return year... | 26 | 76 | 0.695266 | 59 | 338 | 3.745763 | 0.305085 | 0.226244 | 0.190045 | 0.162896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.183432 | 338 | 12 | 77 | 28.166667 | 0.771739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 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 |
78ee49df8951f277301cf8af5a97f98890091005 | 169 | py | Python | Shawn/sams_thread.py | merlin-neurotech/Backend | 7845a2ab087d184056aef1e5d43f6eccaef136eb | [
"MIT"
] | 2 | 2020-01-06T16:58:10.000Z | 2020-02-01T19:41:44.000Z | Shawn/sams_thread.py | merlin-neurotech/Backend | 7845a2ab087d184056aef1e5d43f6eccaef136eb | [
"MIT"
] | null | null | null | Shawn/sams_thread.py | merlin-neurotech/Backend | 7845a2ab087d184056aef1e5d43f6eccaef136eb | [
"MIT"
] | 2 | 2019-12-26T19:03:49.000Z | 2020-02-09T17:36:04.000Z | import threading
from testPylsl import running
thread1 = threading.Thread(target= running)
thread1.start()
thread2 = threading.Thread(target= running)
thread2.start()
| 18.777778 | 43 | 0.798817 | 20 | 169 | 6.75 | 0.5 | 0.207407 | 0.311111 | 0.414815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02649 | 0.106509 | 169 | 8 | 44 | 21.125 | 0.86755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
6042ad7ca0a3100e70def1ac476204e110da538c | 40 | py | Python | picpy/parsers/utils/__init__.py | begeistert/picpy | 62e238a0f71d60ecb2fa1434e25c65045b65bda7 | [
"MIT"
] | null | null | null | picpy/parsers/utils/__init__.py | begeistert/picpy | 62e238a0f71d60ecb2fa1434e25c65045b65bda7 | [
"MIT"
] | null | null | null | picpy/parsers/utils/__init__.py | begeistert/picpy | 62e238a0f71d60ecb2fa1434e25c65045b65bda7 | [
"MIT"
] | null | null | null | from .asm import *
from .tokens import * | 20 | 21 | 0.725 | 6 | 40 | 4.833333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 40 | 2 | 21 | 20 | 0.878788 | 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 |
604d448efc98a87b46bf60ef49a5debf1cad1c76 | 41,347 | py | Python | src/plotting/plot.py | suresh-guttikonda/deep-activate-localization | 081c4bd89846806c234d324ac3cf48ab36828063 | [
"Apache-2.0"
] | null | null | null | src/plotting/plot.py | suresh-guttikonda/deep-activate-localization | 081c4bd89846806c234d324ac3cf48ab36828063 | [
"Apache-2.0"
] | null | null | null | src/plotting/plot.py | suresh-guttikonda/deep-activate-localization | 081c4bd89846806c234d324ac3cf48ab36828063 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import matplotlib.pyplot as plt
import numpy as np
from tensorflow.python.summary.summary_iterator import summary_iterator
from tensorflow.python.framework import tensor_util
def getEventFileData(path):
data = {}
for event in summary_iterator(path):
for value in event.summary.va... | 50.857319 | 185 | 0.658669 | 6,197 | 41,347 | 4.118283 | 0.047926 | 0.014263 | 0.070295 | 0.05517 | 0.899808 | 0.878453 | 0.816308 | 0.777046 | 0.776224 | 0.749383 | 0 | 0.115762 | 0.213607 | 41,347 | 812 | 186 | 50.919951 | 0.669137 | 0.110189 | 0 | 0.578755 | 0 | 0.128205 | 0.403458 | 0.285917 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018315 | false | 0 | 0.007326 | 0 | 0.027473 | 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 |
60c5948b435621c10b46244e429ad6569eb151a6 | 467 | py | Python | SikuliScripts/Settings.sikuli/Settings.py | JabRef-628298/jabref-4.2 | ebf5ff3e1a22ec5881de001a1fbc9214d3c1348d | [
"MIT"
] | null | null | null | SikuliScripts/Settings.sikuli/Settings.py | JabRef-628298/jabref-4.2 | ebf5ff3e1a22ec5881de001a1fbc9214d3c1348d | [
"MIT"
] | null | null | null | SikuliScripts/Settings.sikuli/Settings.py | JabRef-628298/jabref-4.2 | ebf5ff3e1a22ec5881de001a1fbc9214d3c1348d | [
"MIT"
] | null | null | null | App.open("java -jar C:/JabRef-4.2-fat.jar")
wait(30)
click("1529632189350.png")
wait(2)
click("1529632296782.png")
wait(2)
click("1530899089323.png")
wait(2)
click("1530899105356.png")
wait(2)
click("1530899134798.png")
wait(2)
click("1530899120685.png")
wait(2)
click("1530899134798.png")
wait(2)
click("1530899165770.p... | 16.678571 | 43 | 0.732334 | 70 | 467 | 4.885714 | 0.314286 | 0.225146 | 0.25731 | 0.418129 | 0.45614 | 0.45614 | 0.45614 | 0.45614 | 0.45614 | 0 | 0 | 0.390411 | 0.062099 | 467 | 27 | 44 | 17.296296 | 0.390411 | 0 | 0 | 0.6 | 0 | 0 | 0.505376 | 0.045161 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
880d638fbae590804313a52a4c59495504f87571 | 28,070 | py | Python | tests/ope/test_meta.py | Tanvikapoor14/zr-obp | 51eba00f0dda5c26c1fa6826f544c60de485da52 | [
"Apache-2.0"
] | null | null | null | tests/ope/test_meta.py | Tanvikapoor14/zr-obp | 51eba00f0dda5c26c1fa6826f544c60de485da52 | [
"Apache-2.0"
] | null | null | null | tests/ope/test_meta.py | Tanvikapoor14/zr-obp | 51eba00f0dda5c26c1fa6826f544c60de485da52 | [
"Apache-2.0"
] | null | null | null | from copy import deepcopy
from dataclasses import dataclass
import itertools
from typing import Dict
from typing import Optional
import numpy as np
import pandas as pd
from pandas.testing import assert_frame_equal
import pytest
from obp.ope import BaseOffPolicyEstimator
from obp.ope import DirectMethod
from obp.ope i... | 34.912935 | 122 | 0.676487 | 3,356 | 28,070 | 5.281585 | 0.078665 | 0.047391 | 0.081241 | 0.094781 | 0.822341 | 0.802877 | 0.775458 | 0.755148 | 0.735176 | 0.709788 | 0 | 0.009934 | 0.232561 | 28,070 | 803 | 123 | 34.956413 | 0.812877 | 0.200285 | 0 | 0.590219 | 0 | 0 | 0.141285 | 0.044891 | 0 | 0 | 0 | 0 | 0.025295 | 1 | 0.026981 | false | 0 | 0.025295 | 0.003373 | 0.070826 | 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 |
714bf0bb4dfbf2692ae248237d5cc95dc180bec8 | 45 | py | Python | hello.py | client366932/runpy | b53b730b4674993de5c9f8173a78063f00629f5c | [
"MIT"
] | null | null | null | hello.py | client366932/runpy | b53b730b4674993de5c9f8173a78063f00629f5c | [
"MIT"
] | null | null | null | hello.py | client366932/runpy | b53b730b4674993de5c9f8173a78063f00629f5c | [
"MIT"
] | null | null | null |
def sumOf(a, b):
return int(a) + int(b)
| 11.25 | 26 | 0.533333 | 9 | 45 | 2.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 45 | 3 | 27 | 15 | 0.727273 | 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 |
71c95943f63c9c4ac03916878be2c50d73e6945f | 32 | py | Python | ddf_utils/chef/hy_mod/__init__.py | semio/ddf_utils | e10c4cb6dc7722415a5863579a552cc7b7e3668d | [
"MIT"
] | 2 | 2016-11-23T12:28:15.000Z | 2019-03-04T16:06:25.000Z | ddf_utils/chef/hy_mod/__init__.py | semio/ddf_utils | e10c4cb6dc7722415a5863579a552cc7b7e3668d | [
"MIT"
] | 124 | 2016-07-14T13:39:41.000Z | 2021-12-24T01:45:23.000Z | ddf_utils/chef/hy_mod/__init__.py | semio/ddf_utils | e10c4cb6dc7722415a5863579a552cc7b7e3668d | [
"MIT"
] | 1 | 2016-11-30T23:42:56.000Z | 2016-11-30T23:42:56.000Z | import hy
from .funcs import *
| 8 | 20 | 0.71875 | 5 | 32 | 4.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 32 | 3 | 21 | 10.666667 | 0.92 | 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 |
e0803e7d49f8bdc60463eb9d540500ec32dc14a3 | 27 | py | Python | timer/__init__.py | jlyons871/Tax-Calculator | 77f3f67ae77f12ea83e15e138e9fc0ab9fd5cd1d | [
"MIT"
] | null | null | null | timer/__init__.py | jlyons871/Tax-Calculator | 77f3f67ae77f12ea83e15e138e9fc0ab9fd5cd1d | [
"MIT"
] | null | null | null | timer/__init__.py | jlyons871/Tax-Calculator | 77f3f67ae77f12ea83e15e138e9fc0ab9fd5cd1d | [
"MIT"
] | null | null | null | from .timer_utils import *
| 13.5 | 26 | 0.777778 | 4 | 27 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 0.869565 | 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 |
e08c2b9c42442707ae8e4ad725c7884fa3399dca | 129 | py | Python | io_scene_vrm/misc/version.py | Raptor54/VRM_IMPORTER_for_Blender | 855081e503351a82fd466de48d6b9c0be95c41ee | [
"MIT"
] | null | null | null | io_scene_vrm/misc/version.py | Raptor54/VRM_IMPORTER_for_Blender | 855081e503351a82fd466de48d6b9c0be95c41ee | [
"MIT"
] | null | null | null | io_scene_vrm/misc/version.py | Raptor54/VRM_IMPORTER_for_Blender | 855081e503351a82fd466de48d6b9c0be95c41ee | [
"MIT"
] | null | null | null | # To avoid circular reference
def version() -> str:
return __import__(".".join(__name__.split(".")[:-3])).bl_info["version"]
| 32.25 | 76 | 0.658915 | 16 | 129 | 4.75 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.116279 | 129 | 3 | 77 | 43 | 0.657895 | 0.209302 | 0 | 0 | 0 | 0 | 0.09 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0.5 | 0.5 | 1.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 6 |
e0b8963ee3891df19281176c034ba648191335ed | 4,730 | py | Python | tests/test_decorators.py | mgurdal/aegis | c57d1b4c5cbd9acc9a8a0d321d108319d8e0ece4 | [
"Apache-2.0"
] | 8 | 2019-05-09T20:05:01.000Z | 2022-03-30T09:39:08.000Z | tests/test_decorators.py | mgurdal/aegis | c57d1b4c5cbd9acc9a8a0d321d108319d8e0ece4 | [
"Apache-2.0"
] | 154 | 2019-08-18T17:49:15.000Z | 2022-03-27T13:02:13.000Z | tests/test_decorators.py | mgurdal/aiohttp_auth | c57d1b4c5cbd9acc9a8a0d321d108319d8e0ece4 | [
"Apache-2.0"
] | 1 | 2021-12-30T21:35:30.000Z | 2021-12-30T21:35:30.000Z | from unittest.mock import patch
import pytest
from aiohttp import web
from aiohttp.test_utils import make_mocked_request
from aegis import decorators
from asynctest import CoroutineMock
async def test_login_required_raises_TypeError_on_invalid_request():
with pytest.raises(TypeError) as error:
@decorato... | 36.10687 | 88 | 0.721564 | 528 | 4,730 | 6.13447 | 0.164773 | 0.064526 | 0.055573 | 0.034579 | 0.817536 | 0.809818 | 0.790985 | 0.778944 | 0.778944 | 0.778944 | 0 | 0.006526 | 0.190063 | 4,730 | 130 | 89 | 36.384615 | 0.838945 | 0 | 0 | 0.67033 | 0 | 0 | 0.103171 | 0.053277 | 0 | 0 | 0 | 0 | 0.164835 | 1 | 0 | false | 0 | 0.065934 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e0bb50b4f4eb10ba219523e87886740d66bb2cc5 | 3,184 | py | Python | tests/test_profile.py | MarieEngel/message_board | f5dbc5cf592d3396a2f9358ad25e64a2d858569c | [
"MIT"
] | null | null | null | tests/test_profile.py | MarieEngel/message_board | f5dbc5cf592d3396a2f9358ad25e64a2d858569c | [
"MIT"
] | null | null | null | tests/test_profile.py | MarieEngel/message_board | f5dbc5cf592d3396a2f9358ad25e64a2d858569c | [
"MIT"
] | 1 | 2022-03-31T21:59:29.000Z | 2022-03-31T21:59:29.000Z | from django.test import TestCase
class ProfileTestCase(TestCase):
fixtures = [
"user_test.json",
"profile_test.json",
"category_test.json",
"post_test.json",
"comment_test.json",
]
def test_register(self):
response = self.client.get("/user/register/")
... | 37.904762 | 83 | 0.553078 | 302 | 3,184 | 5.708609 | 0.192053 | 0.104408 | 0.146172 | 0.12181 | 0.788863 | 0.758701 | 0.735499 | 0.735499 | 0.735499 | 0.735499 | 0 | 0.012081 | 0.298053 | 3,184 | 83 | 84 | 38.361446 | 0.759284 | 0 | 0 | 0.623377 | 0 | 0 | 0.269786 | 0.030151 | 0 | 0 | 0 | 0 | 0.168831 | 1 | 0.051948 | false | 0.12987 | 0.012987 | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
e0dd059c85b929458f5d10d8a403b7d755078cef | 42 | py | Python | biasedrandom/__init__.py | Berserkware/biasedrandom | 37b5d164df7f8f0cbff93d42b02d2d604452cca5 | [
"MIT"
] | 2 | 2022-03-06T05:16:33.000Z | 2022-03-06T22:37:18.000Z | biasedrandom/__init__.py | Berserkware/biasedrandom | 37b5d164df7f8f0cbff93d42b02d2d604452cca5 | [
"MIT"
] | null | null | null | biasedrandom/__init__.py | Berserkware/biasedrandom | 37b5d164df7f8f0cbff93d42b02d2d604452cca5 | [
"MIT"
] | null | null | null | from biasedrandom.main import biasedrandom | 42 | 42 | 0.904762 | 5 | 42 | 7.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 42 | 1 | 42 | 42 | 0.974359 | 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 |
e804ab36145a7e862e967c832715ed471f3b07e4 | 162,080 | py | Python | test/test_esapi.py | niooss-ledger/tpm2-pytss | f748de7993ff6b39900ba4a0332f893eba19194f | [
"BSD-2-Clause"
] | null | null | null | test/test_esapi.py | niooss-ledger/tpm2-pytss | f748de7993ff6b39900ba4a0332f893eba19194f | [
"BSD-2-Clause"
] | null | null | null | test/test_esapi.py | niooss-ledger/tpm2-pytss | f748de7993ff6b39900ba4a0332f893eba19194f | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python3 -u
"""
SPDX-License-Identifier: BSD-2
"""
import unittest
from tpm2_pytss import *
from .TSS2_BaseTest import TSS2_EsapiTest
class TestEsys(TSS2_EsapiTest):
def test_get_random(self):
r = self.ectx.get_random(5)
self.assertEqual(len(r), 5)
with self.assertRaises(TypeE... | 34.492445 | 113 | 0.616547 | 17,202 | 162,080 | 5.588362 | 0.03924 | 0.08064 | 0.114843 | 0.149026 | 0.892199 | 0.871602 | 0.852784 | 0.825759 | 0.780778 | 0.728131 | 0 | 0.041592 | 0.287229 | 162,080 | 4,698 | 114 | 34.499787 | 0.790523 | 0.007231 | 0 | 0.583521 | 0 | 0.000847 | 0.037366 | 0.014987 | 0 | 0 | 0.001094 | 0.000213 | 0.211061 | 1 | 0.033296 | false | 0.016366 | 0.00395 | 0 | 0.037528 | 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 |
e804d9bfcb6f86e98dddf5147f40cac59850100d | 89,391 | py | Python | firestore/tests/unit/v1/test__helpers.py | DaveCheez/google-cloud-python | fc03d4d41f13e9d13db7206438163b3a471fdabd | [
"Apache-2.0"
] | 2 | 2021-06-29T12:27:00.000Z | 2021-11-17T11:10:58.000Z | firestore/tests/unit/v1/test__helpers.py | DaveCheez/google-cloud-python | fc03d4d41f13e9d13db7206438163b3a471fdabd | [
"Apache-2.0"
] | 40 | 2019-07-16T10:04:48.000Z | 2020-01-20T09:04:59.000Z | firestore/tests/unit/v1/test__helpers.py | DaveCheez/google-cloud-python | fc03d4d41f13e9d13db7206438163b3a471fdabd | [
"Apache-2.0"
] | 2 | 2019-07-18T00:05:31.000Z | 2019-11-27T14:17:22.000Z | # -*- coding: utf-8 -*-
# Copyright 2017 Google LLC 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... | 37.308431 | 88 | 0.662841 | 10,651 | 89,391 | 5.22411 | 0.051638 | 0.092466 | 0.079904 | 0.062543 | 0.842134 | 0.813612 | 0.783545 | 0.751914 | 0.716509 | 0.691995 | 0 | 0.014107 | 0.232384 | 89,391 | 2,395 | 89 | 37.324008 | 0.796788 | 0.009509 | 0 | 0.624259 | 0 | 0 | 0.040059 | 0.009783 | 0 | 0 | 0 | 0 | 0.252291 | 1 | 0.10566 | false | 0 | 0.088949 | 0.001617 | 0.231267 | 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 |
e81daf99235737118a9e2d58e6fcc451aa1bcefd | 10,286 | py | Python | test/test_l2_flood.py | mjnitp/vpp | 537e85deab6fd916952ff4badeda4ec5d6f1a121 | [
"Apache-2.0"
] | 1 | 2019-03-23T21:06:14.000Z | 2019-03-23T21:06:14.000Z | test/test_l2_flood.py | mjnitp/vpp | 537e85deab6fd916952ff4badeda4ec5d6f1a121 | [
"Apache-2.0"
] | 1 | 2021-06-01T23:31:18.000Z | 2021-06-01T23:31:18.000Z | test/test_l2_flood.py | mjnitp/vpp | 537e85deab6fd916952ff4badeda4ec5d6f1a121 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import unittest
import socket
from framework import VppTestCase, VppTestRunner
from vpp_ip_route import VppIpRoute, VppRoutePath
from vpp_l2 import L2_PORT_TYPE, BRIDGE_FLAGS
from scapy.packet import Raw
from scapy.layers.l2 import Ether
from scapy.layers.inet import IP, UDP
class TestL2Flood... | 32.345912 | 78 | 0.548318 | 1,494 | 10,286 | 3.539491 | 0.119143 | 0.061271 | 0.102874 | 0.05295 | 0.787821 | 0.777988 | 0.776664 | 0.759077 | 0.732602 | 0.727685 | 0 | 0.059499 | 0.348046 | 10,286 | 317 | 79 | 32.44795 | 0.729049 | 0.121524 | 0 | 0.752874 | 0 | 0 | 0.037945 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.028736 | false | 0 | 0.045977 | 0 | 0.08046 | 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 |
1c09caff52a77d4565f8bb0df81803050b4e93a2 | 6,168 | py | Python | torch/nn/intrinsic/modules/fused.py | ljhOfGithub/pytorch | c568f7b16f2a98d72ff5b7c6c6161b67b2c27514 | [
"Intel"
] | 1 | 2022-03-02T00:28:04.000Z | 2022-03-02T00:28:04.000Z | torch/nn/intrinsic/modules/fused.py | ljhOfGithub/pytorch | c568f7b16f2a98d72ff5b7c6c6161b67b2c27514 | [
"Intel"
] | 1 | 2019-07-23T15:23:32.000Z | 2019-07-23T15:32:23.000Z | torch/nn/intrinsic/modules/fused.py | ljhOfGithub/pytorch | c568f7b16f2a98d72ff5b7c6c6161b67b2c27514 | [
"Intel"
] | 2 | 2019-07-23T14:37:31.000Z | 2019-07-23T14:47:13.000Z | import torch
from torch.nn import Conv1d, Conv2d, Conv3d, ReLU, Linear, BatchNorm1d, BatchNorm2d, BatchNorm3d
# Used for identifying intrinsic modules used in quantization
class _FusedModule(torch.nn.Sequential):
pass
class ConvReLU1d(_FusedModule):
r"""This is a sequential container which calls the Conv1d an... | 49.344 | 96 | 0.666342 | 787 | 6,168 | 5.062262 | 0.090216 | 0.036145 | 0.052209 | 0.058735 | 0.877259 | 0.877259 | 0.866215 | 0.861697 | 0.833082 | 0.828062 | 0 | 0.011543 | 0.227464 | 6,168 | 124 | 97 | 49.741935 | 0.824554 | 0.344196 | 0 | 0.468085 | 0 | 0 | 0.124013 | 0 | 0 | 0 | 0 | 0 | 0.138298 | 1 | 0.138298 | false | 0.010638 | 0.021277 | 0 | 0.308511 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.