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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c15b634ddb263d20add136ebc95c1405585f3a8 | 14,133 | py | Python | stumpy/mpdist.py | mexxexx/stumpy | dcfa14b98aee375da4239363c1d2a6520fb54e80 | [
"BSD-3-Clause"
] | null | null | null | stumpy/mpdist.py | mexxexx/stumpy | dcfa14b98aee375da4239363c1d2a6520fb54e80 | [
"BSD-3-Clause"
] | null | null | null | stumpy/mpdist.py | mexxexx/stumpy | dcfa14b98aee375da4239363c1d2a6520fb54e80 | [
"BSD-3-Clause"
] | null | null | null | # STUMPY
# Copyright 2019 TD Ameritrade. Released under the terms of the 3-Clause BSD license.
# STUMPY is a trademark of TD Ameritrade IP Company, Inc. All rights reserved.
import numpy as np
import math
from . import stump, stumped, core
from .core import _mass_distance_matrix
from .aampdist import aampdist, aampdi... | 35.870558 | 88 | 0.675157 | 2,160 | 14,133 | 4.323611 | 0.124537 | 0.019274 | 0.015419 | 0.024628 | 0.82632 | 0.806403 | 0.797409 | 0.790556 | 0.784559 | 0.767855 | 0 | 0.01429 | 0.252317 | 14,133 | 393 | 89 | 35.961832 | 0.869499 | 0.725607 | 0 | 0.341463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.060976 | 0 | 0.195122 | 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 |
1c35aa1277ffe802f90bac0cd78c1c4a49041400 | 69,352 | py | Python | hack/test_errata.py | Davoska/cincinnati-graph-data | 3bc79fdcefa72f570e0757c0bfd46d4302543264 | [
"Apache-2.0"
] | null | null | null | hack/test_errata.py | Davoska/cincinnati-graph-data | 3bc79fdcefa72f570e0757c0bfd46d4302543264 | [
"Apache-2.0"
] | null | null | null | hack/test_errata.py | Davoska/cincinnati-graph-data | 3bc79fdcefa72f570e0757c0bfd46d4302543264 | [
"Apache-2.0"
] | null | null | null | import copy
import datetime
import os
import tempfile
import unittest
import urllib
from unittest.mock import MagicMock
from unittest.mock import patch
import errata
class GithubUserMock():
def __init__(self, login):
self.login = login
class GithubLabelMock():
def __init__(self, name):
self... | 40.509346 | 194 | 0.552818 | 7,360 | 69,352 | 4.961413 | 0.062092 | 0.034752 | 0.045596 | 0.020648 | 0.84122 | 0.799485 | 0.766048 | 0.746248 | 0.720068 | 0.696078 | 0 | 0.035599 | 0.345455 | 69,352 | 1,711 | 195 | 40.533022 | 0.768824 | 0.079277 | 0 | 0.606277 | 0 | 0 | 0.20617 | 0.025677 | 0 | 0 | 0 | 0 | 0.044223 | 1 | 0.042796 | false | 0 | 0.006419 | 0 | 0.059914 | 0.00214 | 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 |
1c46e8ebc705732b535b16f3a42154c4df52a3d9 | 82 | py | Python | tests/conftest.py | mishc9/flake_rba | eda1e80436f401871dba61a4c769204c2cbcfc65 | [
"MIT"
] | null | null | null | tests/conftest.py | mishc9/flake_rba | eda1e80436f401871dba61a4c769204c2cbcfc65 | [
"MIT"
] | null | null | null | tests/conftest.py | mishc9/flake_rba | eda1e80436f401871dba61a4c769204c2cbcfc65 | [
"MIT"
] | null | null | null | import pytest
@pytest.fixture
def fixture_template():
return "Hello World!"
| 11.714286 | 25 | 0.731707 | 10 | 82 | 5.9 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 82 | 6 | 26 | 13.666667 | 0.867647 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0.25 | 0.75 | 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 | 0 | 1 | 1 | 0 | 0 | 6 |
1c4c3e85639c74de8f576b822fda5f08b758c4fe | 31,832 | py | Python | Chatbot_DockerVersion/webapp/requirements/mindmeld/tests/test_markup.py | ptrckhmmr/ChatBotforCulturalInstitutions | c3da1a6d142e306c2e3183ba5609553e15a0e124 | [
"Apache-2.0"
] | 1 | 2020-12-24T13:28:35.000Z | 2020-12-24T13:28:35.000Z | Chatbot_DockerVersion/webapp/requirements/mindmeld/tests/test_markup.py | ptrckhmmr/ChatBotforCulturalInstitutions | c3da1a6d142e306c2e3183ba5609553e15a0e124 | [
"Apache-2.0"
] | null | null | null | Chatbot_DockerVersion/webapp/requirements/mindmeld/tests/test_markup.py | ptrckhmmr/ChatBotforCulturalInstitutions | c3da1a6d142e306c2e3183ba5609553e15a0e124 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_markup
----------------------------------
Tests for `markup` module.
"""
import pytest
from mindmeld import markup
from mindmeld.core import Entity, NestedEntity, ProcessedQuery, QueryEntity, Span
MARKED_UP_STRS = [
'show me houses under {[... | 38.819512 | 101 | 0.663986 | 4,242 | 31,832 | 4.824847 | 0.059406 | 0.069771 | 0.025993 | 0.031661 | 0.858993 | 0.795671 | 0.766258 | 0.742659 | 0.709386 | 0.677237 | 0 | 0.029522 | 0.206176 | 31,832 | 819 | 102 | 38.866911 | 0.780442 | 0.053908 | 0 | 0.528239 | 0 | 0.024917 | 0.209868 | 0.038252 | 0 | 0 | 0 | 0 | 0.347176 | 1 | 0.056478 | false | 0 | 0.004983 | 0 | 0.061462 | 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 |
1c5bf5712c64da44df655f05b3579218e605402a | 5,260 | py | Python | project/poisson1d.py | amit17133129/pyMG-2016 | b82a60811bb0a8b91d8793c47177a240221f9176 | [
"BSD-2-Clause"
] | 2 | 2016-04-04T15:20:50.000Z | 2020-08-01T19:28:55.000Z | project/poisson1d.py | amit17133129/pyMG-2016 | b82a60811bb0a8b91d8793c47177a240221f9176 | [
"BSD-2-Clause"
] | 1 | 2020-10-02T05:44:45.000Z | 2020-10-02T05:44:45.000Z | project/poisson1d.py | amit17133129/pyMG-2016 | b82a60811bb0a8b91d8793c47177a240221f9176 | [
"BSD-2-Clause"
] | 11 | 2016-03-26T18:37:06.000Z | 2020-10-01T19:44:55.000Z | # coding=utf-8
import numpy as np
import scipy.sparse as sp
from pymg.problem_base import ProblemBase
class Poisson1D(ProblemBase):
"""Implementation of the 1D Poission problem.
Here we define the 1D Poisson problem :math:`-\Delta u = 0` with
Dirichlet-Zero boundary conditions. This is the homogeneous p... | 32.469136 | 99 | 0.591825 | 696 | 5,260 | 4.376437 | 0.176724 | 0.055154 | 0.023638 | 0.035456 | 0.94025 | 0.927774 | 0.90151 | 0.885752 | 0.885752 | 0.885752 | 0 | 0.019386 | 0.293916 | 5,260 | 161 | 100 | 32.670807 | 0.800754 | 0.44924 | 0 | 0.590164 | 0 | 0 | 0.002435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.196721 | false | 0 | 0.04918 | 0.032787 | 0.409836 | 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 |
1c64216e4ead4a269fb6538ce07b3a5ba8b8f592 | 33 | py | Python | code/code_annotation/code_retrieval/__init__.py | sunlab-osu/CoaCor | e5df8fd38830590b9f132dd68bc26c630e41e509 | [
"Apache-2.0"
] | 30 | 2019-03-08T05:11:32.000Z | 2021-12-09T12:11:29.000Z | code/code_annotation/code_retrieval/__init__.py | sunlab-osu/CoaCor | e5df8fd38830590b9f132dd68bc26c630e41e509 | [
"Apache-2.0"
] | 1 | 2020-04-18T14:46:48.000Z | 2020-06-17T20:08:37.000Z | code/code_annotation/code_retrieval/__init__.py | sunlab-osu/CoaCor | e5df8fd38830590b9f132dd68bc26c630e41e509 | [
"Apache-2.0"
] | 4 | 2019-07-02T05:25:11.000Z | 2021-05-27T12:52:21.000Z | from CodeRetrievalCritic import * | 33 | 33 | 0.878788 | 3 | 33 | 9.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 33 | 1 | 33 | 33 | 0.966667 | 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 |
1c747a39b52b2737e693782c95394fc887e40d1f | 37 | py | Python | src/bookmarks_converter/__init__.py | radam9/bookmarks_parser | fc508908fe4b5551d517e7da7120bcc2480200f7 | [
"MIT"
] | 8 | 2021-02-19T09:28:31.000Z | 2022-02-16T02:33:26.000Z | src/bookmarks_converter/__init__.py | radam9/bookmarks_parser | fc508908fe4b5551d517e7da7120bcc2480200f7 | [
"MIT"
] | 50 | 2021-02-06T14:16:38.000Z | 2022-03-01T17:55:05.000Z | src/bookmarks_converter/__init__.py | radam9/bookmarks_parser | fc508908fe4b5551d517e7da7120bcc2480200f7 | [
"MIT"
] | 1 | 2021-09-15T16:45:08.000Z | 2021-09-15T16:45:08.000Z | from .core import BookmarksConverter
| 18.5 | 36 | 0.864865 | 4 | 37 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 37 | 1 | 37 | 37 | 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 |
98c0697b8141518e4ac7ec1fde16be14dd07dd8a | 163 | py | Python | {{cookiecutter.project_slug}}/tests/test_import.py | tobiasraabe/cookiecutter-pytask | 425bbb8480e5eaae560dbb5e0cb36685e8fb4e30 | [
"MIT"
] | null | null | null | {{cookiecutter.project_slug}}/tests/test_import.py | tobiasraabe/cookiecutter-pytask | 425bbb8480e5eaae560dbb5e0cb36685e8fb4e30 | [
"MIT"
] | 9 | 2022-01-24T08:04:54.000Z | 2022-03-21T20:28:30.000Z | {{cookiecutter.project_slug}}/tests/test_import.py | pytask-dev/cookiecutter-pytask | 425bbb8480e5eaae560dbb5e0cb36685e8fb4e30 | [
"MIT"
] | null | null | null | from __future__ import annotations
import {{ cookiecutter.project_slug }}
def test_import():
assert hasattr({{ cookiecutter.project_slug }}, "__version__")
| 20.375 | 66 | 0.754601 | 17 | 163 | 6.588235 | 0.705882 | 0.339286 | 0.410714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134969 | 163 | 7 | 67 | 23.285714 | 0.794326 | 0 | 0 | 0 | 0 | 0 | 0.067485 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | null | null | 0 | 0.75 | 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 |
98e79458318bbe0f9ee035eed54230f1e3ce48fc | 40 | py | Python | cpp/__init__.py | hwangyale/AlphaGomoku | 7c85a71c710fa8d114b3591e4fd27c8649caccbb | [
"MIT"
] | 3 | 2018-10-30T07:07:40.000Z | 2019-11-22T12:32:32.000Z | cpp/__init__.py | hwangyale/AlphaGomoku | 7c85a71c710fa8d114b3591e4fd27c8649caccbb | [
"MIT"
] | null | null | null | cpp/__init__.py | hwangyale/AlphaGomoku | 7c85a71c710fa8d114b3591e4fd27c8649caccbb | [
"MIT"
] | null | null | null | from .cpp_board_wrapper import CPPBoard
| 20 | 39 | 0.875 | 6 | 40 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 40 | 1 | 40 | 40 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
98f31f6e4b926fc88efb628054fde7c5ea8454a5 | 2,343 | py | Python | ad_api/sp_products/negative_product_targeting.py | 854350999/python-amazon-advertising-api | ec52f72dab85ad67e271bfd6248071f00e9c7292 | [
"MIT"
] | null | null | null | ad_api/sp_products/negative_product_targeting.py | 854350999/python-amazon-advertising-api | ec52f72dab85ad67e271bfd6248071f00e9c7292 | [
"MIT"
] | null | null | null | ad_api/sp_products/negative_product_targeting.py | 854350999/python-amazon-advertising-api | ec52f72dab85ad67e271bfd6248071f00e9c7292 | [
"MIT"
] | null | null | null | from ..client import Client
class NegativeProductTargeting(Client):
def create_negative_targets(self, data):
self.uri_path = "/v2/sp/negativeTargets"
self.method = "post"
self.data = data
return self.execute()
def update_negative_targets(self, data):
self.uri_path = "... | 37.790323 | 110 | 0.598378 | 259 | 2,343 | 5.138996 | 0.181467 | 0.072126 | 0.078137 | 0.06837 | 0.921863 | 0.921863 | 0.921863 | 0.818933 | 0.749812 | 0.701728 | 0 | 0.005471 | 0.297909 | 2,343 | 61 | 111 | 38.409836 | 0.803647 | 0 | 0 | 0.692308 | 0 | 0 | 0.148528 | 0.077251 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134615 | false | 0 | 0.019231 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c7ab45bfa2bcd34f9e8d66769433a3036296ad1e | 213 | py | Python | common.py | sujeevraja/utility-scripts | 464fedb2b2430567f1d9162834bf64bac14ddc3d | [
"MIT"
] | null | null | null | common.py | sujeevraja/utility-scripts | 464fedb2b2430567f1d9162834bf64bac14ddc3d | [
"MIT"
] | null | null | null | common.py | sujeevraja/utility-scripts | 464fedb2b2430567f1d9162834bf64bac14ddc3d | [
"MIT"
] | null | null | null | class ScriptException(Exception):
"""Custom exception class with message for this module."""
def __init__(self, value):
self.value = value
def __repr__(self):
return repr(self.value)
| 23.666667 | 62 | 0.661972 | 25 | 213 | 5.32 | 0.6 | 0.203008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234742 | 213 | 8 | 63 | 26.625 | 0.815951 | 0.244131 | 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 |
c7dfe2cc00ddc5c870039ca299d4ad3811035262 | 34 | py | Python | CLR-master/__init__.py | dr-yali/Bone-MRI | 54c50b2da26190575ad0913f715bc15a7dbd857f | [
"MIT"
] | 1,201 | 2017-03-23T07:19:33.000Z | 2022-03-29T08:59:07.000Z | CLR/__init__.py | prateekvyas1996/Facies-Prediction-From-well-log-using-deep-learning | 68645ce1b40f9263f3ac5c7758ba4923377cb3d0 | [
"MIT"
] | 18 | 2017-03-25T00:08:36.000Z | 2021-05-03T07:12:05.000Z | CLR/__init__.py | prateekvyas1996/Facies-Prediction-From-well-log-using-deep-learning | 68645ce1b40f9263f3ac5c7758ba4923377cb3d0 | [
"MIT"
] | 293 | 2017-03-24T04:37:06.000Z | 2022-02-16T18:33:54.000Z | from .clr_callback import CyclicLR | 34 | 34 | 0.882353 | 5 | 34 | 5.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 34 | 1 | 34 | 34 | 0.935484 | 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 |
c7e50d652b755eb3d65c592e97fcf494e22a2b51 | 15,566 | py | Python | tests/processors/graphic_matching_test.py | elifesciences/sciencebeam-parser | 66964f283612b8d6fa8a23ad8790292c1ec07651 | [
"MIT"
] | 13 | 2021-08-04T12:11:17.000Z | 2022-03-28T20:41:20.000Z | tests/processors/graphic_matching_test.py | elifesciences/sciencebeam-parser | 66964f283612b8d6fa8a23ad8790292c1ec07651 | [
"MIT"
] | 33 | 2021-08-05T08:37:59.000Z | 2022-03-29T18:42:09.000Z | tests/processors/graphic_matching_test.py | elifesciences/sciencebeam-parser | 66964f283612b8d6fa8a23ad8790292c1ec07651 | [
"MIT"
] | 1 | 2022-01-05T14:53:06.000Z | 2022-01-05T14:53:06.000Z | import logging
from pathlib import Path
from typing import Sequence, Tuple
from unittest.mock import MagicMock
import pytest
import PIL.Image
from sciencebeam_parser.document.layout_document import (
LayoutBlock,
LayoutGraphic,
LayoutPageCoordinates,
LayoutToken
)
from sciencebeam_parser.document.sem... | 36.454333 | 92 | 0.676539 | 1,642 | 15,566 | 5.950061 | 0.096224 | 0.052917 | 0.078608 | 0.061412 | 0.810031 | 0.793347 | 0.767861 | 0.759365 | 0.738485 | 0.72129 | 0 | 0.021554 | 0.25485 | 15,566 | 426 | 93 | 36.539906 | 0.82076 | 0 | 0 | 0.57732 | 0 | 0 | 0.028781 | 0.006232 | 0 | 0 | 0 | 0 | 0.128866 | 1 | 0.048969 | false | 0 | 0.023196 | 0.007732 | 0.090206 | 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 |
1bddb289ff53be3d31895fea85fc09af69ce8295 | 6,883 | py | Python | pay-api/tests/unit/api/test_account.py | nitheesh-aot/sbc-pay | dcb9c1bd3d2954f11c8d643aa6618d8470e3b0f7 | [
"Apache-2.0"
] | null | null | null | pay-api/tests/unit/api/test_account.py | nitheesh-aot/sbc-pay | dcb9c1bd3d2954f11c8d643aa6618d8470e3b0f7 | [
"Apache-2.0"
] | null | null | null | pay-api/tests/unit/api/test_account.py | nitheesh-aot/sbc-pay | dcb9c1bd3d2954f11c8d643aa6618d8470e3b0f7 | [
"Apache-2.0"
] | null | null | null | # Copyright © 2019 Province of British Columbia
#
# 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 agr... | 40.017442 | 113 | 0.703763 | 886 | 6,883 | 5.274266 | 0.176072 | 0.023111 | 0.030815 | 0.033383 | 0.794565 | 0.766103 | 0.766103 | 0.742778 | 0.742778 | 0.742778 | 0 | 0.01407 | 0.173907 | 6,883 | 171 | 114 | 40.251462 | 0.807598 | 0.13221 | 0 | 0.704762 | 0 | 0.019048 | 0.197164 | 0.09318 | 0 | 0 | 0 | 0 | 0.085714 | 1 | 0.057143 | false | 0 | 0.057143 | 0 | 0.114286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1bdef0e5df0c225eb2775cb6ea55f9021c9fb5fa | 576 | py | Python | sdk/python/pulumi_aws/s3/__init__.py | texdc/pulumi-aws | 93a7a28ab7db6b1cd7e6686c0b68aa4c89490d4f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/s3/__init__.py | texdc/pulumi-aws | 93a7a28ab7db6b1cd7e6686c0b68aa4c89490d4f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/s3/__init__.py | texdc/pulumi-aws | 93a7a28ab7db6b1cd7e6686c0b68aa4c89490d4f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
# Export this package's modules as members:
from .account_public_access_block import *
from .bucket import *
from .inventory import *
f... | 33.882353 | 87 | 0.767361 | 85 | 576 | 5.023529 | 0.552941 | 0.234192 | 0.224824 | 0.133489 | 0.126464 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002041 | 0.149306 | 576 | 16 | 88 | 36 | 0.869388 | 0.380208 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
402e44e902fa8cead89eae17a87c8aa8f9902299 | 21,328 | py | Python | src/genie/libs/parser/iosxe/tests/test_show_mld.py | nujo/genieparser | 083b01efc46afc32abe1a1858729578beab50cd3 | [
"Apache-2.0"
] | 2 | 2021-01-27T03:37:39.000Z | 2021-01-27T03:40:50.000Z | src/genie/libs/parser/iosxe/tests/test_show_mld.py | nujo/genieparser | 083b01efc46afc32abe1a1858729578beab50cd3 | [
"Apache-2.0"
] | 1 | 2020-08-01T00:23:31.000Z | 2020-08-01T00:40:05.000Z | src/genie/libs/parser/iosxe/tests/test_show_mld.py | nujo/genieparser | 083b01efc46afc32abe1a1858729578beab50cd3 | [
"Apache-2.0"
] | null | null | null | # Python
import unittest
from unittest.mock import Mock
# ATS
from pyats.topology import Device
# Metaparset
from genie.metaparser.util.exceptions import SchemaEmptyParserError, \
SchemaMissingKeyError
# Parser
from genie.libs.parser.iosxe.show_mld import ShowIpv6MldInterface, ... | 42.40159 | 88 | 0.386534 | 1,759 | 21,328 | 4.554861 | 0.105173 | 0.010734 | 0.029955 | 0.03994 | 0.866076 | 0.833375 | 0.757239 | 0.714678 | 0.662506 | 0.632302 | 0 | 0.09011 | 0.504126 | 21,328 | 503 | 89 | 42.40159 | 0.667455 | 0.030851 | 0 | 0.699779 | 0 | 0.00883 | 0.410187 | 0.037281 | 0 | 0 | 0 | 0 | 0.019868 | 1 | 0.019868 | false | 0 | 0.011038 | 0 | 0.077263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 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 |
4034928e25b018ee24acfa6ff967519b3bcf52ce | 3,045 | py | Python | test/test_conditionals.py | jackdavidweber/cjs_capstone | 8929e4939f5b7b172c595dbb49b1d2ccc7805b8a | [
"MIT"
] | 2 | 2020-07-13T18:58:57.000Z | 2020-07-20T23:30:21.000Z | test/test_conditionals.py | jackdavidweber/cjs_capstone | 8929e4939f5b7b172c595dbb49b1d2ccc7805b8a | [
"MIT"
] | 20 | 2020-06-18T20:49:20.000Z | 2020-08-04T16:15:46.000Z | test/test_conditionals.py | jackdavidweber/cjs_capstone | 8929e4939f5b7b172c595dbb49b1d2ccc7805b8a | [
"MIT"
] | null | null | null | import unittest2
import matrix
from Unittest import Unittest
class TestConditionals(unittest2.TestCase):
def test_if(self):
js_code = Unittest('if (1) {\n\tconsole.log("This is true")\n}', 'js')
py_code = Unittest('if (1):\n\tprint("This is true")', 'py')
bash_code = Unittest('if [[ 1 ]];... | 44.130435 | 167 | 0.533333 | 447 | 3,045 | 3.52349 | 0.098434 | 0.106667 | 0.142222 | 0.152381 | 0.834921 | 0.8 | 0.798095 | 0.780317 | 0.754921 | 0.733968 | 0 | 0.023309 | 0.281445 | 3,045 | 68 | 168 | 44.779412 | 0.696527 | 0 | 0 | 0.566667 | 0 | 0.2 | 0.480131 | 0.134319 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.05 | 0 | 0.133333 | 0.133333 | 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 |
404e5830e4578ca4f6e6632a4880c94c2c42ba62 | 85 | py | Python | spikeextractors/extractors/kilosortextractors/__init__.py | zekearneodo/spikeextractors | d30aa85e69d0331fffdb58a03a2bb628f93b405e | [
"MIT"
] | 145 | 2018-12-06T23:12:54.000Z | 2022-02-10T22:57:35.000Z | spikeextractors/extractors/kilosortextractors/__init__.py | zekearneodo/spikeextractors | d30aa85e69d0331fffdb58a03a2bb628f93b405e | [
"MIT"
] | 396 | 2018-11-26T11:46:30.000Z | 2022-01-04T07:27:47.000Z | spikeextractors/extractors/kilosortextractors/__init__.py | zekearneodo/spikeextractors | d30aa85e69d0331fffdb58a03a2bb628f93b405e | [
"MIT"
] | 67 | 2018-11-19T12:38:01.000Z | 2021-09-25T03:18:22.000Z | from .kilosortextractors import KiloSortSortingExtractor, KiloSortRecordingExtractor
| 42.5 | 84 | 0.917647 | 5 | 85 | 15.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 85 | 1 | 85 | 85 | 0.975 | 0 | 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 |
4087c7c36a8169662cbe27cfbc842c59b72bc32f | 50,379 | py | Python | spiketoolkit/validation/quality_metrics.py | Shawn-Guo-CN/spiketoolkit | 11e60f3cd80c135c62e27538a4e141115a7e27ad | [
"MIT"
] | null | null | null | spiketoolkit/validation/quality_metrics.py | Shawn-Guo-CN/spiketoolkit | 11e60f3cd80c135c62e27538a4e141115a7e27ad | [
"MIT"
] | null | null | null | spiketoolkit/validation/quality_metrics.py | Shawn-Guo-CN/spiketoolkit | 11e60f3cd80c135c62e27538a4e141115a7e27ad | [
"MIT"
] | null | null | null | import spiketoolkit as st
def compute_num_spikes(sorting, sampling_frequency=None, unit_ids=None, epoch_tuples=None, epoch_names=None,
save_as_property=True):
'''
Computes and returns the spike times in seconds and also returns the cluster_ids needed for quality metrics.
Parameters... | 48.302013 | 129 | 0.658905 | 6,537 | 50,379 | 4.804803 | 0.039774 | 0.032952 | 0.023687 | 0.018339 | 0.904518 | 0.89121 | 0.884937 | 0.875864 | 0.86367 | 0.856729 | 0 | 0.008437 | 0.287124 | 50,379 | 1,042 | 130 | 48.348369 | 0.866125 | 0.407829 | 0 | 0.661376 | 0 | 0 | 0.068146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034392 | false | 0 | 0.002646 | 0 | 0.074074 | 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 |
40a01a454c06c426f8e730660c8186f0008bbe29 | 27,389 | py | Python | events/ped_events.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | null | null | null | events/ped_events.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | 1 | 2021-02-24T21:50:18.000Z | 2021-02-24T21:50:18.000Z | events/ped_events.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | null | null | null | # Autogenerated file. ANY CHANGES WILL BE OVERWRITTEN
from to_python.core.types import FunctionType, \
FunctionArgument, \
FunctionArgumentValues, \
FunctionReturnTypes, \
FunctionSignature, \
FunctionDoc, \
EventData, \
CompoundEventData
DUMP_PARTIAL = [
CompoundEventData(
serv... | 39.071327 | 150 | 0.312461 | 1,339 | 27,389 | 6.294996 | 0.150112 | 0.090165 | 0.108198 | 0.130739 | 0.761656 | 0.735081 | 0.706134 | 0.698066 | 0.674813 | 0.674813 | 0 | 0.000096 | 0.618606 | 27,389 | 700 | 151 | 39.127143 | 0.806816 | 0.001862 | 0 | 0.708029 | 1 | 0.005839 | 0.145778 | 0.00417 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.00146 | 0.00146 | 0 | 0.00146 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
9054ff3253327eff6e4f7afe4df3cc12d5f1ddc5 | 533 | py | Python | imgaug/augmenters/__init__.py | hungrayho/yolo3 | f3759bf10ab8bed4a5133989cda8f8d59b20aa16 | [
"MIT"
] | null | null | null | imgaug/augmenters/__init__.py | hungrayho/yolo3 | f3759bf10ab8bed4a5133989cda8f8d59b20aa16 | [
"MIT"
] | null | null | null | imgaug/augmenters/__init__.py | hungrayho/yolo3 | f3759bf10ab8bed4a5133989cda8f8d59b20aa16 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from imgaug.augmenters.arithmetic import *
from imgaug.augmenters.blend import *
from imgaug.augmenters.blur import *
from imgaug.augmenters.color import *
from imgaug.augmenters.contrast import *
from imgaug.augmenters.convolutional import *
from imgaug.augmenters.flip imp... | 38.071429 | 46 | 0.810507 | 65 | 533 | 6.569231 | 0.276923 | 0.28103 | 0.449649 | 0.730679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 533 | 13 | 47 | 41 | 0.912393 | 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 |
9085c0a4366098004c978d03a3c382a4605bcbb3 | 5,160 | py | Python | TestHtmlWrapper.py | ytyaru/Python.pylangstudy.HtmlWrapper.201705220846 | e18a488577c4ed1af690fa629d988ef867c1834d | [
"CC0-1.0"
] | null | null | null | TestHtmlWrapper.py | ytyaru/Python.pylangstudy.HtmlWrapper.201705220846 | e18a488577c4ed1af690fa629d988ef867c1834d | [
"CC0-1.0"
] | null | null | null | TestHtmlWrapper.py | ytyaru/Python.pylangstudy.HtmlWrapper.201705220846 | e18a488577c4ed1af690fa629d988ef867c1834d | [
"CC0-1.0"
] | null | null | null | import unittest
import os.path
import HtmlWrapper
class TestHtmlWrapper(unittest.TestCase):
# def __init__(self):
# pass
def test_CreateElement_html(self):
w = HtmlWrapper.HtmlWrapper()
html = w.CreateElement('html')
self.assertEqual(html, '<html></html>')
def test_Wrap_html(s... | 43.728814 | 117 | 0.603682 | 604 | 5,160 | 5.019868 | 0.102649 | 0.063325 | 0.094327 | 0.16029 | 0.850264 | 0.835092 | 0.787929 | 0.735818 | 0.699538 | 0.687005 | 0 | 0.020515 | 0.225388 | 5,160 | 117 | 118 | 44.102564 | 0.738054 | 0.006008 | 0 | 0.453608 | 0 | 0.010309 | 0.232722 | 0.018938 | 0 | 0 | 0 | 0 | 0.216495 | 1 | 0.185567 | false | 0 | 0.030928 | 0 | 0.226804 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
908ac9bab86cd055cff258beb8bef1a4ea213786 | 250 | py | Python | decorator_2.py | jepster/python_advanced_techniques | f4b0e0dda7b66be55f650f9f902e735d3f5a9f64 | [
"MIT"
] | null | null | null | decorator_2.py | jepster/python_advanced_techniques | f4b0e0dda7b66be55f650f9f902e735d3f5a9f64 | [
"MIT"
] | null | null | null | decorator_2.py | jepster/python_advanced_techniques | f4b0e0dda7b66be55f650f9f902e735d3f5a9f64 | [
"MIT"
] | null | null | null | def make_divisibility_test(n):
def divisible_by_n(m):
return m % n == 0
return divisible_by_n
div_by_3 = make_divisibility_test(3)
tuple(filter(div_by_3, range(10))) # => (0, 3, 6, 9)
print(make_divisibility_test(5)(10)) # => True | 27.777778 | 53 | 0.672 | 43 | 250 | 3.581395 | 0.488372 | 0.311688 | 0.38961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063725 | 0.184 | 250 | 9 | 54 | 27.777778 | 0.691176 | 0.092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
90f9d1b8609fcd41593763343270ab9e8e8f2f86 | 150 | py | Python | capcom/__init__.py | rcthomas/capcom | e72c41da046e05d8450dfa7297cb5dee5a206daa | [
"BSD-3-Clause"
] | 1 | 2015-07-24T21:32:22.000Z | 2015-07-24T21:32:22.000Z | capcom/__init__.py | rcthomas/capcom | e72c41da046e05d8450dfa7297cb5dee5a206daa | [
"BSD-3-Clause"
] | null | null | null | capcom/__init__.py | rcthomas/capcom | e72c41da046e05d8450dfa7297cb5dee5a206daa | [
"BSD-3-Clause"
] | null | null | null | from census import *
from dbi import *
from parser import *
from scraper import *
from selector import *
| 25 | 29 | 0.533333 | 15 | 150 | 5.333333 | 0.466667 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.433333 | 150 | 5 | 30 | 30 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 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 |
290cd744c3bed450a7f51b9e08827eacc782b0b8 | 169 | py | Python | active_semi_clustering/exceptions.py | heriosousa/active-semi-supervised-clustering | 8ed97c7f3bdd76cf6c03e0ca6ef56bcf27b2d399 | [
"MIT"
] | 67 | 2018-11-09T06:59:31.000Z | 2021-11-04T06:54:36.000Z | active_semi_clustering/exceptions.py | heriosousa/active-semi-supervised-clustering | 8ed97c7f3bdd76cf6c03e0ca6ef56bcf27b2d399 | [
"MIT"
] | 5 | 2020-03-24T18:10:32.000Z | 2021-06-02T01:08:20.000Z | active_semi_clustering/exceptions.py | heriosousa/active-semi-supervised-clustering | 8ed97c7f3bdd76cf6c03e0ca6ef56bcf27b2d399 | [
"MIT"
] | 29 | 2018-10-16T15:36:28.000Z | 2021-11-20T10:09:41.000Z | class ClusteringNotFoundException(Exception):
pass
class EmptyClustersException(Exception):
pass
class InconsistentConstraintsException(Exception):
pass
| 15.363636 | 50 | 0.798817 | 12 | 169 | 11.25 | 0.5 | 0.288889 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147929 | 169 | 10 | 51 | 16.9 | 0.9375 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
291d7795a276f54915ea30b9e2a876b3400978a4 | 45 | py | Python | src/satextractor/tiler/__init__.py | oxfordeo/sat-extractor | 1d6841751e8b2ce65a02f5d3d608f181a31ab917 | [
"BSD-2-Clause"
] | 29 | 2021-11-02T16:07:04.000Z | 2022-03-14T00:16:27.000Z | src/satextractor/tiler/__init__.py | oxfordeo/sat-extractor | 1d6841751e8b2ce65a02f5d3d608f181a31ab917 | [
"BSD-2-Clause"
] | 16 | 2021-11-01T16:23:01.000Z | 2022-03-24T11:44:13.000Z | src/satextractor/tiler/__init__.py | oxfordeo/sat-extractor | 1d6841751e8b2ce65a02f5d3d608f181a31ab917 | [
"BSD-2-Clause"
] | 6 | 2021-11-09T01:10:30.000Z | 2022-03-14T18:04:32.000Z | from .tiler import split_region_in_utm_tiles
| 22.5 | 44 | 0.888889 | 8 | 45 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 45 | 1 | 45 | 45 | 0.878049 | 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 |
29385fc52e1ebe822e998c4e12734fb1b6d0a3d0 | 4,292 | py | Python | torchqf/stochastic/brownian.py | simaki/torchqf | e4dfd154c62ccd858847048f77d8c2f82924ae80 | [
"BSD-3-Clause"
] | 7 | 2021-05-18T17:03:10.000Z | 2021-12-01T07:58:41.000Z | torchqf/stochastic/brownian.py | vishalbelsare/torchqf | e4dfd154c62ccd858847048f77d8c2f82924ae80 | [
"BSD-3-Clause"
] | 27 | 2021-05-18T03:54:17.000Z | 2022-01-31T15:16:16.000Z | torchqf/stochastic/brownian.py | vishalbelsare/torchqf | e4dfd154c62ccd858847048f77d8c2f82924ae80 | [
"BSD-3-Clause"
] | 3 | 2021-07-13T12:56:12.000Z | 2021-12-26T23:00:06.000Z | import torch
from torch import Tensor
from ..tensor import steps
def generate_brownian(
size,
time,
drift: float = 0.0,
volatility: float = 0.2,
init_value: float = 0.0,
dtype=None,
device=None,
) -> Tensor:
"""Generates and returns time-series that follows Brownian motion.
Args:... | 33.015385 | 108 | 0.60438 | 572 | 4,292 | 4.466783 | 0.195804 | 0.007045 | 0.030528 | 0.025049 | 0.762427 | 0.762427 | 0.736595 | 0.719374 | 0.719374 | 0.719374 | 0 | 0.047743 | 0.282619 | 4,292 | 129 | 109 | 33.271318 | 0.782072 | 0.666356 | 0 | 0.44186 | 1 | 0 | 0.043808 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 1 | 0.046512 | false | 0 | 0.069767 | 0 | 0.162791 | 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 |
294c59832bba932ffc6997cadfe29c3060020bf2 | 71 | py | Python | problem3_6starter_origin.py | BjornChrisnach/Coursera_Python_concise_intro | 12c3c022b89dc8bba0fe02000728a69d7e4fd0ef | [
"MIT"
] | null | null | null | problem3_6starter_origin.py | BjornChrisnach/Coursera_Python_concise_intro | 12c3c022b89dc8bba0fe02000728a69d7e4fd0ef | [
"MIT"
] | null | null | null | problem3_6starter_origin.py | BjornChrisnach/Coursera_Python_concise_intro | 12c3c022b89dc8bba0fe02000728a69d7e4fd0ef | [
"MIT"
] | null | null | null | # -problem3_6.py *- coding: utf-8 -*-
import sys
# add your code here | 14.2 | 37 | 0.647887 | 12 | 71 | 3.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.197183 | 71 | 5 | 38 | 14.2 | 0.736842 | 0.760563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4621d7096646ebfc22985e637e3ed0aa96d4a8f8 | 39 | py | Python | sleepmind/models/__init__.py | IamGianluca/sleepmind | 7132feb08086e57219ff9859545eafa6842b5c96 | [
"MIT"
] | 1 | 2018-12-06T21:19:50.000Z | 2018-12-06T21:19:50.000Z | sleepmind/models/__init__.py | IamGianluca/sleepmind | 7132feb08086e57219ff9859545eafa6842b5c96 | [
"MIT"
] | 2 | 2018-11-24T17:20:33.000Z | 2021-06-01T22:28:31.000Z | sleepmind/models/__init__.py | IamGianluca/sleepmind | 7132feb08086e57219ff9859545eafa6842b5c96 | [
"MIT"
] | 1 | 2019-03-05T19:57:18.000Z | 2019-03-05T19:57:18.000Z | from .xgboost import XGBoostClassifier
| 19.5 | 38 | 0.871795 | 4 | 39 | 8.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 39 | 1 | 39 | 39 | 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 |
462ad89e5a98b2236f40eda1d78eb54c68ad2774 | 116 | py | Python | Lib/fontTools/ttLib/tables/T_S_I_J_.py | anntzer/fonttools | 726cd67549956b985bbbe83e26fb0af9da59ddf7 | [
"MIT",
"BSD-3-Clause"
] | 2 | 2021-04-07T16:47:04.000Z | 2022-01-15T04:01:01.000Z | Lib/fontTools/ttLib/tables/T_S_I_J_.py | anntzer/fonttools | 726cd67549956b985bbbe83e26fb0af9da59ddf7 | [
"MIT",
"BSD-3-Clause"
] | 74 | 2020-01-30T07:27:54.000Z | 2021-08-03T05:47:17.000Z | Lib/fontTools/ttLib/tables/T_S_I_J_.py | anntzer/fonttools | 726cd67549956b985bbbe83e26fb0af9da59ddf7 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2020-01-22T20:06:09.000Z | 2020-01-22T20:06:09.000Z | from fontTools.misc.py23 import *
from .T_S_I_V_ import table_T_S_I_V_
class table_T_S_I_J_(table_T_S_I_V_):
pass
| 19.333333 | 37 | 0.827586 | 28 | 116 | 2.75 | 0.464286 | 0.103896 | 0.155844 | 0.155844 | 0.233766 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019417 | 0.112069 | 116 | 5 | 38 | 23.2 | 0.728155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 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 |
465e79d220f84e2d98aaec826747b644e378b931 | 157 | py | Python | molecule/official_packages/tests/test_software.py | mesaguy/ansible-hashicorp | 1e2a0fb5fa11061968de2a574853b1a6b4cee80d | [
"MIT"
] | 2 | 2021-04-23T12:32:28.000Z | 2021-12-23T20:00:10.000Z | molecule/official_packages/tests/test_software.py | mesaguy/ansible-hashicorp | 1e2a0fb5fa11061968de2a574853b1a6b4cee80d | [
"MIT"
] | null | null | null | molecule/official_packages/tests/test_software.py | mesaguy/ansible-hashicorp | 1e2a0fb5fa11061968de2a574853b1a6b4cee80d | [
"MIT"
] | null | null | null | def test_installed(host, hashicorp_official_package_names):
for name in hashicorp_official_package_names:
assert host.package(name).is_installed
| 39.25 | 59 | 0.808917 | 21 | 157 | 5.666667 | 0.619048 | 0.285714 | 0.403361 | 0.487395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133758 | 157 | 3 | 60 | 52.333333 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
466b740ac6f5504a3e0bd592a76eb7ea9cb7f560 | 52 | py | Python | server/app.py | henri-hulski/morepath_cerebral_todomvc | 568ac277c1844c4cf28bbacf484940f779fc7407 | [
"BSD-3-Clause"
] | 314 | 2015-01-01T01:42:52.000Z | 2022-01-07T21:46:15.000Z | server/app.py | henri-hulski/morepath_cerebral_todomvc | 568ac277c1844c4cf28bbacf484940f779fc7407 | [
"BSD-3-Clause"
] | 369 | 2015-01-02T19:10:40.000Z | 2021-07-03T04:37:27.000Z | server/app.py | henri-hulski/morepath_cerebral_todomvc | 568ac277c1844c4cf28bbacf484940f779fc7407 | [
"BSD-3-Clause"
] | 37 | 2015-01-11T09:22:02.000Z | 2021-07-02T20:48:20.000Z | import morepath
class App(morepath.App):
pass
| 8.666667 | 24 | 0.711538 | 7 | 52 | 5.285714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211538 | 52 | 5 | 25 | 10.4 | 0.902439 | 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 |
46996a6bda526fcafacf4d33206d23606c9e01fa | 8,127 | py | Python | ExampleCases/OpFAST_FLORIS_WF3x1/plotyaw.py | tonino102008/openfast | cfb401af163f4e0b6bb8588c23374e1534ad8d87 | [
"Apache-2.0"
] | null | null | null | ExampleCases/OpFAST_FLORIS_WF3x1/plotyaw.py | tonino102008/openfast | cfb401af163f4e0b6bb8588c23374e1534ad8d87 | [
"Apache-2.0"
] | null | null | null | ExampleCases/OpFAST_FLORIS_WF3x1/plotyaw.py | tonino102008/openfast | cfb401af163f4e0b6bb8588c23374e1534ad8d87 | [
"Apache-2.0"
] | 1 | 2021-02-05T17:50:01.000Z | 2021-02-05T17:50:01.000Z | import matplotlib.pyplot as plt
import numpy
import pandas as pd
import control.matlab as cnt
import cp
import scipy.optimize as optim
dfdata = pd.read_csv('t1.T1.out', sep='\t', header=None, skiprows=10)
datadata = dfdata.values
dfdata2 = pd.read_csv('t2.T2.out', sep='\t', header=None, skiprows=10)
datadata2 = dfdata... | 39.26087 | 410 | 0.680325 | 1,373 | 8,127 | 3.996358 | 0.086672 | 0.174959 | 0.099508 | 0.124658 | 0.829962 | 0.807545 | 0.756151 | 0.716238 | 0.702387 | 0.696009 | 0 | 0.0727 | 0.0945 | 8,127 | 207 | 411 | 39.26087 | 0.672918 | 0 | 0 | 0.623656 | 0 | 0 | 0.14936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.032258 | 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 |
d3bc046401a00e84d30558571e42547a86086b34 | 43 | py | Python | hyde/__init__.py | MoonCrystalPower/Dr.Hyde | e324f60899fad0d96aa35a6e669c9aa7dff6ca58 | [
"MIT"
] | null | null | null | hyde/__init__.py | MoonCrystalPower/Dr.Hyde | e324f60899fad0d96aa35a6e669c9aa7dff6ca58 | [
"MIT"
] | null | null | null | hyde/__init__.py | MoonCrystalPower/Dr.Hyde | e324f60899fad0d96aa35a6e669c9aa7dff6ca58 | [
"MIT"
] | null | null | null | from .app import *
from .commands import *
| 14.333333 | 23 | 0.72093 | 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 |
d3e7b88a903e8f5daf0380d2a77023f1e7db7c58 | 4,287 | py | Python | savanamedapi/test/test_api.py | erego/savanamedapi | bcf79fd92c20a2a9abc3cc41d121844a67ec78d3 | [
"MIT"
] | null | null | null | savanamedapi/test/test_api.py | erego/savanamedapi | bcf79fd92c20a2a9abc3cc41d121844a67ec78d3 | [
"MIT"
] | null | null | null | savanamedapi/test/test_api.py | erego/savanamedapi | bcf79fd92c20a2a9abc3cc41d121844a67ec78d3 | [
"MIT"
] | null | null | null | from unittest import TestCase
import json
from savanamedapi import app
class TestApi(TestCase):
def setUp(self):
self.test_client = app.test_client(self)
def test_list_api_cancer(self):
param_to_sent = {"search": "cancer"}
resp = self.test_client.post("/savanamed/api/get_terms", ... | 36.02521 | 103 | 0.637975 | 575 | 4,287 | 4.577391 | 0.14087 | 0.153875 | 0.083587 | 0.082067 | 0.807371 | 0.776976 | 0.776976 | 0.75152 | 0.737842 | 0.737842 | 0 | 0.011037 | 0.196874 | 4,287 | 118 | 104 | 36.330508 | 0.753413 | 0 | 0 | 0.613333 | 0 | 0 | 0.196874 | 0.070679 | 0 | 0 | 0 | 0 | 0.36 | 1 | 0.12 | false | 0 | 0.04 | 0 | 0.173333 | 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 |
d3fdde1c55ff9d1a94ef0962125ea91849e5ec28 | 78 | py | Python | pyspecnest/tests/__init__.py | vlas-sokolov/pyspecnest | b8bd7044380da3cca7d2a5323c141d4b1ca93cd1 | [
"MIT"
] | 1 | 2019-01-16T16:19:12.000Z | 2019-01-16T16:19:12.000Z | pyspecnest/tests/__init__.py | vlas-sokolov/pyspecnest | b8bd7044380da3cca7d2a5323c141d4b1ca93cd1 | [
"MIT"
] | 4 | 2019-09-17T22:24:55.000Z | 2020-04-15T15:08:04.000Z | pyspecnest/tests/__init__.py | vlas-sokolov/pyspecnest | b8bd7044380da3cca7d2a5323c141d4b1ca93cd1 | [
"MIT"
] | 3 | 2019-09-18T08:17:59.000Z | 2021-02-28T19:50:36.000Z | from . import blackbox
from . import spec_model_tests
from . import run_tests
| 19.5 | 30 | 0.807692 | 12 | 78 | 5 | 0.583333 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 78 | 3 | 31 | 26 | 0.909091 | 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 |
312a8ed82b9f7859937aa3f9bd211b42ec91523e | 69 | py | Python | qunetsim/objects/packets/__init__.py | pritamsinha2304/QuNetSim | 65a7486d532816724b5c98cfdcc0910404bfe0e2 | [
"MIT"
] | 61 | 2020-02-15T00:59:20.000Z | 2022-03-08T10:29:23.000Z | qunetsim/objects/packets/__init__.py | pritamsinha2304/QuNetSim | 65a7486d532816724b5c98cfdcc0910404bfe0e2 | [
"MIT"
] | 50 | 2020-01-28T12:18:50.000Z | 2021-12-16T21:38:19.000Z | qunetsim/objects/packets/__init__.py | pritamsinha2304/QuNetSim | 65a7486d532816724b5c98cfdcc0910404bfe0e2 | [
"MIT"
] | 27 | 2020-01-21T12:59:28.000Z | 2022-02-21T14:23:00.000Z | from .packet import Packet
from .routing_packet import RoutingPacket
| 23 | 41 | 0.855072 | 9 | 69 | 6.444444 | 0.555556 | 0.413793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115942 | 69 | 2 | 42 | 34.5 | 0.95082 | 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 |
317a9aaa2a03b0da292b0b17543c96705af24412 | 42 | py | Python | services/music/test/__init__.py | Ovakefali13/buerro | 1476f6e708f95a09a2d73f67ae8aa2cb3bb836af | [
"MIT"
] | 2 | 2020-03-26T19:20:31.000Z | 2020-03-30T13:09:07.000Z | services/music/test/__init__.py | Ovakefali13/buerro | 1476f6e708f95a09a2d73f67ae8aa2cb3bb836af | [
"MIT"
] | 51 | 2020-03-05T09:04:21.000Z | 2021-12-13T20:34:22.000Z | services/music/test/__init__.py | Ovakefali13/buerro | 1476f6e708f95a09a2d73f67ae8aa2cb3bb836af | [
"MIT"
] | null | null | null | from .test_service import MusicMockRemote
| 21 | 41 | 0.880952 | 5 | 42 | 7.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 42 | 1 | 42 | 42 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
31938a4df6acf3ead90937873988916863b194fd | 37 | py | Python | src/parsers/__init__.py | iweans/translrt | e96d2cf0e7f0f378b8078a8e2942669ad924af8f | [
"MIT"
] | 1 | 2020-02-25T01:58:34.000Z | 2020-02-25T01:58:34.000Z | src/parsers/__init__.py | iweans/translrt | e96d2cf0e7f0f378b8078a8e2942669ad924af8f | [
"MIT"
] | null | null | null | src/parsers/__init__.py | iweans/translrt | e96d2cf0e7f0f378b8078a8e2942669ad924af8f | [
"MIT"
] | null | null | null | from .markdown import MarkdownParser
| 18.5 | 36 | 0.864865 | 4 | 37 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 37 | 1 | 37 | 37 | 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 |
31af52404eb6d6c3cdc11e912028134a7ca5f718 | 169 | py | Python | pyinstalive/__main__.py | pjw91/PyInstaLive | 433bf862e2d38f9131772905ceab17343053dc3b | [
"MIT"
] | 234 | 2020-04-08T09:47:42.000Z | 2022-03-29T19:12:52.000Z | pyinstalive/__main__.py | pjw91/PyInstaLive | 433bf862e2d38f9131772905ceab17343053dc3b | [
"MIT"
] | 80 | 2017-10-08T08:53:09.000Z | 2020-03-27T16:54:55.000Z | pyinstalive/__main__.py | pjw91/PyInstaLive | 433bf862e2d38f9131772905ceab17343053dc3b | [
"MIT"
] | 80 | 2020-04-08T10:42:25.000Z | 2022-03-23T03:54:14.000Z | try: # Python 2
from startup import run
except ImportError: # Python 3
from .startup import run
def main():
run()
if __name__ == '__main__':
run()
| 13 | 31 | 0.621302 | 22 | 169 | 4.409091 | 0.636364 | 0.226804 | 0.350515 | 0.412371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.278107 | 169 | 12 | 32 | 14.083333 | 0.778689 | 0.100592 | 0 | 0.25 | 0 | 0 | 0.053691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.375 | 0 | 0.5 | 0 | 1 | 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 | 0 | 0 | 0 | 6 |
31d8a53ae57d8ee48ceb57a8eb7d1d88b90cfc2e | 97 | py | Python | aegis/data/parser.py | Yijie-Wu/Aegis | f8082b66d55be135a5e2bec7ac15f860f99f7df7 | [
"MIT"
] | null | null | null | aegis/data/parser.py | Yijie-Wu/Aegis | f8082b66d55be135a5e2bec7ac15f860f99f7df7 | [
"MIT"
] | null | null | null | aegis/data/parser.py | Yijie-Wu/Aegis | f8082b66d55be135a5e2bec7ac15f860f99f7df7 | [
"MIT"
] | null | null | null | # -*- encoding:utf-8 -*-
"""
Author: Yijie.Wu
Email: 1694517106@qq.com
Date: 2020/5/14 13:43
"""
| 13.857143 | 24 | 0.618557 | 16 | 97 | 3.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261905 | 0.134021 | 97 | 6 | 25 | 16.166667 | 0.452381 | 0.896907 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
31df6fb33a5dd05fc0d6331443a27721848ec336 | 20 | py | Python | tiotools/__init__.py | twinleaf/tio-python | ce272d0bf3f60d7b97e41b3b7742a094a8db3f26 | [
"MIT"
] | 9 | 2017-12-21T16:21:49.000Z | 2021-12-02T20:48:03.000Z | tiotools/__init__.py | twinleaf/tio-python | ce272d0bf3f60d7b97e41b3b7742a094a8db3f26 | [
"MIT"
] | 5 | 2018-12-14T22:06:08.000Z | 2021-09-30T17:33:53.000Z | tiotools/__init__.py | twinleaf/tio-python | ce272d0bf3f60d7b97e41b3b7742a094a8db3f26 | [
"MIT"
] | 4 | 2017-12-27T12:46:34.000Z | 2020-06-05T17:14:34.000Z | from .itio import *
| 10 | 19 | 0.7 | 3 | 20 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 20 | 1 | 20 | 20 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 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 |
9ef267e9db214e8479d8d79aa0625132da08722e | 70 | py | Python | WeatherPy/api_keys.py | tkabdelaziz/python-api-challenge | f69b70bc59a17e49130a655738d7c675c63b29b4 | [
"ADSL"
] | null | null | null | WeatherPy/api_keys.py | tkabdelaziz/python-api-challenge | f69b70bc59a17e49130a655738d7c675c63b29b4 | [
"ADSL"
] | null | null | null | WeatherPy/api_keys.py | tkabdelaziz/python-api-challenge | f69b70bc59a17e49130a655738d7c675c63b29b4 | [
"ADSL"
] | null | null | null | # OpenWeatherMap API Key
api_key = "e6fdf32acc353fd819e7190e6f44d47d"
| 23.333333 | 44 | 0.842857 | 6 | 70 | 9.666667 | 0.666667 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0.1 | 70 | 2 | 45 | 35 | 0.634921 | 0.314286 | 0 | 0 | 0 | 0 | 0.695652 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
73333abc61baea0ed961b2ad582ade9139ffab4a | 45 | py | Python | image_classification/token_labeling/tlt/models/__init__.py | AK391/UniFormer | 22c6b3b98b68236dda6a8fa7152a32af1af62a20 | [
"MIT"
] | 367 | 2022-01-14T03:32:25.000Z | 2022-03-31T04:48:20.000Z | image_classification/token_labeling/tlt/models/__init__.py | hadlang/UniFormer | e8024703bffb89cb7c7d09e0d774a0d2a9f96c25 | [
"MIT"
] | 27 | 2022-01-27T07:12:49.000Z | 2022-03-31T04:31:13.000Z | image_classification/token_labeling/tlt/models/__init__.py | hadlang/UniFormer | e8024703bffb89cb7c7d09e0d774a0d2a9f96c25 | [
"MIT"
] | 53 | 2022-01-18T11:21:43.000Z | 2022-03-31T06:42:41.000Z | from .lvvit import *
from .uniformer import * | 22.5 | 24 | 0.755556 | 6 | 45 | 5.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 45 | 2 | 24 | 22.5 | 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 |
73505118824c9e00c59e8a0d453bcc5313ec713c | 38 | py | Python | examples/ehdemov3/living_room_rgb/user_boot.py | ulno/iot-devkit | 6e90c1c207f23c4b5bf374f58d3701550e6c70ca | [
"MIT"
] | null | null | null | examples/ehdemov3/living_room_rgb/user_boot.py | ulno/iot-devkit | 6e90c1c207f23c4b5bf374f58d3701550e6c70ca | [
"MIT"
] | null | null | null | examples/ehdemov3/living_room_rgb/user_boot.py | ulno/iot-devkit | 6e90c1c207f23c4b5bf374f58d3701550e6c70ca | [
"MIT"
] | 1 | 2020-07-23T03:03:38.000Z | 2020-07-23T03:03:38.000Z | import rgb_handler
rgb_handler.run()
| 9.5 | 18 | 0.815789 | 6 | 38 | 4.833333 | 0.666667 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 38 | 3 | 19 | 12.666667 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
b40131cc0f7760cd11fcf2ba0595a918a3c845c6 | 25 | py | Python | mercs/core/__init__.py | systemallica/mercs | 39e999620ab989abb29310488dcd30354d029490 | [
"MIT"
] | 11 | 2020-01-28T16:15:53.000Z | 2021-05-20T08:05:42.000Z | mercs/core/__init__.py | systemallica/mercs | 39e999620ab989abb29310488dcd30354d029490 | [
"MIT"
] | null | null | null | mercs/core/__init__.py | systemallica/mercs | 39e999620ab989abb29310488dcd30354d029490 | [
"MIT"
] | 4 | 2020-02-06T09:02:28.000Z | 2022-02-14T09:42:04.000Z | from .Mercs import Mercs
| 12.5 | 24 | 0.8 | 4 | 25 | 5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.952381 | 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 |
b40a09413f8b62366473c29f262ace0bbb8cfb88 | 31,345 | py | Python | tests/python_venv/test_env_pyenv.py | jmknoble/python-venv | 698aff4341c358b0e1469c845398f275a3df1cb8 | [
"MIT"
] | 1 | 2021-06-04T15:24:45.000Z | 2021-06-04T15:24:45.000Z | tests/python_venv/test_env_pyenv.py | jmknoble/python-venv | 698aff4341c358b0e1469c845398f275a3df1cb8 | [
"MIT"
] | 6 | 2021-06-04T15:06:31.000Z | 2021-09-24T06:04:45.000Z | tests/python_venv/test_env_pyenv.py | jmknoble/python-venv | 698aff4341c358b0e1469c845398f275a3df1cb8 | [
"MIT"
] | null | null | null | """Provide unit tests for `~python_venv.env`:py:mod:."""
import os
import os.path
import random
import subprocess
import unittest
import parameterized # https://pypi.org/project/parameterized/
from python_venv import const, env
from python_venv import exceptions as exc
from python_venv import reqs
from tests.python... | 40.289203 | 88 | 0.53077 | 3,253 | 31,345 | 4.838918 | 0.065785 | 0.071469 | 0.078458 | 0.030557 | 0.87504 | 0.84677 | 0.825233 | 0.767931 | 0.756115 | 0.728543 | 0 | 0.005346 | 0.3435 | 31,345 | 777 | 89 | 40.341055 | 0.759598 | 0.020131 | 0 | 0.7 | 0 | 0 | 0.145248 | 0.020272 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0.036111 | false | 0.004167 | 0.015278 | 0 | 0.056944 | 0.006944 | 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 |
b41a0470134fb1e8ea681d8bc3db3889104e143a | 12,319 | py | Python | tests/test_radials.py | rucool/HFRadarPy | 4b81d21da2f7c732e5377689df7bb328bfb37e37 | [
"MIT"
] | 1 | 2022-03-15T13:58:00.000Z | 2022-03-15T13:58:00.000Z | tests/test_radials.py | rucool/HFRadarPy | 4b81d21da2f7c732e5377689df7bb328bfb37e37 | [
"MIT"
] | 1 | 2021-12-03T00:36:41.000Z | 2021-12-03T00:36:41.000Z | tests/test_radials.py | rucool/HFRadarPy | 4b81d21da2f7c732e5377689df7bb328bfb37e37 | [
"MIT"
] | 2 | 2020-11-17T17:06:34.000Z | 2022-03-04T01:26:58.000Z | import unittest
from pathlib import Path
import numpy as np
import xarray as xr
from hfradarpy.radials import Radial
from hfradarpy.radials import concat as concatenate_radials
data_path = (Path(__file__).parent.with_name('examples') / 'data').resolve()
output_path = (Path(__file__).parent.with_name('examples') / 'o... | 38.984177 | 114 | 0.701924 | 1,689 | 12,319 | 4.89698 | 0.114861 | 0.01741 | 0.020312 | 0.023939 | 0.907871 | 0.898078 | 0.86894 | 0.858058 | 0.855277 | 0.842703 | 0 | 0.040383 | 0.21203 | 12,319 | 316 | 115 | 38.984177 | 0.811682 | 0.309847 | 0 | 0.631902 | 0 | 0 | 0.132295 | 0.077024 | 0 | 0 | 0 | 0 | 0.208589 | 1 | 0.092025 | false | 0 | 0.03681 | 0 | 0.134969 | 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 |
b41a6fb1230ffb4cb7b7dd42943c11f7da6ced76 | 141 | py | Python | scippycrm/organisations/__init__.py | realScipio/scippycrm | f267b82f07e2784e97089b0b9a35024d58fd4a60 | [
"MIT"
] | 14 | 2018-07-12T19:08:28.000Z | 2021-10-16T23:46:10.000Z | scippycrm/organisations/__init__.py | Zenahr/scippycrm | f267b82f07e2784e97089b0b9a35024d58fd4a60 | [
"MIT"
] | 1 | 2020-02-12T00:41:34.000Z | 2020-02-12T00:41:34.000Z | scippycrm/organisations/__init__.py | Zenahr/scippycrm | f267b82f07e2784e97089b0b9a35024d58fd4a60 | [
"MIT"
] | 5 | 2020-01-08T18:26:47.000Z | 2022-03-10T06:51:07.000Z | from flask import Blueprint
organisations_blueprint = Blueprint('organisations', __name__, template_folder='templates')
from . import routes | 35.25 | 91 | 0.829787 | 15 | 141 | 7.4 | 0.666667 | 0.396396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092199 | 141 | 4 | 92 | 35.25 | 0.867188 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
b42c1a79c337482386b3d089c413a5fc4a4a523e | 4,092 | py | Python | tests/safe/test_config_parser.py | ddiss/rtslib | 6fd0bbfc20947143eb2e4c3bfd34c65bf8551468 | [
"Apache-2.0"
] | 21 | 2015-04-02T21:44:26.000Z | 2020-03-30T12:43:02.000Z | tests/safe/test_config_parser.py | ddiss/rtslib | 6fd0bbfc20947143eb2e4c3bfd34c65bf8551468 | [
"Apache-2.0"
] | 17 | 2015-06-23T09:04:00.000Z | 2020-01-04T19:31:34.000Z | tests/safe/test_config_parser.py | ddiss/rtslib | 6fd0bbfc20947143eb2e4c3bfd34c65bf8551468 | [
"Apache-2.0"
] | 18 | 2015-06-18T14:29:43.000Z | 2021-03-25T19:51:18.000Z | import sys, pprint, logging, unittest, cPickle
from rtslib import config_parser
# TODO Add PolicyParser tests
logging.basicConfig()
log = logging.getLogger('TestConfigParser')
log.setLevel(logging.INFO)
class TestConfigParser(unittest.TestCase):
parser = config_parser.ConfigParser()
samples_dir = '../data'
... | 37.541284 | 67 | 0.603861 | 523 | 4,092 | 4.544933 | 0.126195 | 0.106016 | 0.053008 | 0.070677 | 0.833403 | 0.833403 | 0.833403 | 0.833403 | 0.833403 | 0.694994 | 0 | 0.004643 | 0.263196 | 4,092 | 108 | 68 | 37.888889 | 0.783748 | 0.138319 | 0 | 0.7 | 0 | 0 | 0.068946 | 0.040741 | 0 | 0 | 0 | 0.009259 | 0 | 1 | 0.0875 | false | 0 | 0.025 | 0 | 0.15 | 0.1875 | 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 |
b42e18509f9f253682f3bbecf10ca37a07186740 | 305 | py | Python | bdd/scenarios.py | tinytoon1/python | cc320fddea962fec97eb928e2c4ebbd5bad3ed43 | [
"Apache-2.0"
] | null | null | null | bdd/scenarios.py | tinytoon1/python | cc320fddea962fec97eb928e2c4ebbd5bad3ed43 | [
"Apache-2.0"
] | null | null | null | bdd/scenarios.py | tinytoon1/python | cc320fddea962fec97eb928e2c4ebbd5bad3ed43 | [
"Apache-2.0"
] | null | null | null | from pytest_bdd import scenario
from .steps import *
@scenario('contacts.feature', 'add contact')
def test_add_contact():
pass
@scenario('contacts.feature', 'delete contact')
def test_delete_contact():
pass
@scenario('contacts.feature', 'update contact')
def test_update_contact():
pass
| 16.944444 | 47 | 0.731148 | 38 | 305 | 5.684211 | 0.394737 | 0.222222 | 0.319444 | 0.25 | 0.314815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144262 | 305 | 17 | 48 | 17.941176 | 0.827586 | 0 | 0 | 0.272727 | 0 | 0 | 0.285246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | true | 0.272727 | 0.181818 | 0 | 0.454545 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
b43b67cd4b5c3ec1adf9c36f8678e32bf2e82120 | 1,527 | py | Python | DBmanagement_scripts/cleancsv2019.py | cemac/SWIFTDB | 5c6bc0ae4ff674c2eede44783ca1738630d97ebb | [
"MIT"
] | 2 | 2020-07-14T14:14:45.000Z | 2021-05-13T13:01:51.000Z | DBmanagement_scripts/cleancsv2019.py | cemac-tech/SWIFTDB | 5c6bc0ae4ff674c2eede44783ca1738630d97ebb | [
"MIT"
] | 18 | 2019-02-07T10:28:19.000Z | 2020-06-18T18:31:41.000Z | DBmanagement_scripts/cleancsv2019.py | cemac-tech/SWIFTDB | 5c6bc0ae4ff674c2eede44783ca1738630d97ebb | [
"MIT"
] | 1 | 2019-03-25T14:54:26.000Z | 2019-03-25T14:54:26.000Z | '''
A script to take tab deliminated dump Lorraines excel work sheets and
tidy them up for postgres storage.
**Inprogess**
Known issues
Encoding with excel, python defaults to utf-8
excel uses something else, current fix is to resave
the file in atom!
Generalise:
Pass in file name and extract header names rather th... | 31.163265 | 69 | 0.709889 | 251 | 1,527 | 4.278884 | 0.398406 | 0.100559 | 0.061453 | 0.100559 | 0.703911 | 0.703911 | 0.703911 | 0.703911 | 0.703911 | 0.703911 | 0 | 0.002297 | 0.144728 | 1,527 | 48 | 70 | 31.8125 | 0.820061 | 0.409299 | 0 | 0.818182 | 0 | 0 | 0.118644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b44749f0c586def93090ab449574879aea07b2ee | 229 | py | Python | src/python/WMCore/WMBS/Oracle/Workflow/InsertOutput.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 21 | 2015-11-19T16:18:45.000Z | 2021-12-02T18:20:39.000Z | src/python/WMCore/WMBS/Oracle/Workflow/InsertOutput.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 5,671 | 2015-01-06T14:38:52.000Z | 2022-03-31T22:11:14.000Z | src/python/WMCore/WMBS/Oracle/Workflow/InsertOutput.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 67 | 2015-01-21T15:55:38.000Z | 2022-02-03T19:53:13.000Z | #!/usr/bin/env python
"""
_InsertOutput_
Oracle implementation of Workflow.InsertOutput
"""
from WMCore.WMBS.MySQL.Workflow.InsertOutput import InsertOutput as InsertOutputMySQL
class InsertOutput(InsertOutputMySQL):
pass
| 19.083333 | 85 | 0.80786 | 24 | 229 | 7.625 | 0.75 | 0.218579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10917 | 229 | 11 | 86 | 20.818182 | 0.897059 | 0.362445 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
b461a899f59ec2b1b1ba6985f723c5422f0fe3af | 42,731 | py | Python | airflow/providers/google/cloud/operators/datafusion.py | npodewitz/airflow | 511ea702d5f732582d018dad79754b54d5e53f9d | [
"Apache-2.0"
] | 8,092 | 2016-04-27T20:32:29.000Z | 2019-01-05T07:39:33.000Z | airflow/providers/google/cloud/operators/datafusion.py | npodewitz/airflow | 511ea702d5f732582d018dad79754b54d5e53f9d | [
"Apache-2.0"
] | 2,961 | 2016-05-05T07:16:16.000Z | 2019-01-05T08:47:59.000Z | airflow/providers/google/cloud/operators/datafusion.py | npodewitz/airflow | 511ea702d5f732582d018dad79754b54d5e53f9d | [
"Apache-2.0"
] | 3,546 | 2016-05-04T20:33:16.000Z | 2019-01-05T05:14:26.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 42.816633 | 149 | 0.678383 | 5,166 | 42,731 | 5.453349 | 0.074913 | 0.037484 | 0.019168 | 0.017748 | 0.789543 | 0.77254 | 0.767855 | 0.757277 | 0.750958 | 0.732891 | 0 | 0.002569 | 0.253048 | 42,731 | 997 | 150 | 42.859579 | 0.880068 | 0.413821 | 0 | 0.705691 | 0 | 0 | 0.095264 | 0.018126 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039024 | false | 0 | 0.013008 | 0 | 0.126829 | 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 |
c35e120d31acd0d1ae05806ded43352553a41220 | 112 | py | Python | user/models.py | ashwin-bitsathy/django---ecommerce | 49ebb518ed5831639d560c27f2313f983fe27e86 | [
"BSD-3-Clause"
] | null | null | null | user/models.py | ashwin-bitsathy/django---ecommerce | 49ebb518ed5831639d560c27f2313f983fe27e86 | [
"BSD-3-Clause"
] | null | null | null | user/models.py | ashwin-bitsathy/django---ecommerce | 49ebb518ed5831639d560c27f2313f983fe27e86 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
| 22.4 | 44 | 0.803571 | 17 | 112 | 5.294118 | 0.588235 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151786 | 112 | 4 | 45 | 28 | 0.947368 | 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 |
c37098b3e27127a9c247f787f7b23e329f49b646 | 42 | py | Python | pello/__init__.py | encukou/Pello | bac192da6288cea103eab05fc2ca0b7f37b78abf | [
"CC0-1.0"
] | null | null | null | pello/__init__.py | encukou/Pello | bac192da6288cea103eab05fc2ca0b7f37b78abf | [
"CC0-1.0"
] | 3 | 2020-05-11T11:25:40.000Z | 2020-08-05T09:26:01.000Z | pello/__init__.py | hrnciar/pello | d93051c271a2c163f903d7c3676739a0a331549e | [
"MIT"
] | null | null | null | from pello.pello_greeting import greeting
| 21 | 41 | 0.880952 | 6 | 42 | 6 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 42 | 1 | 42 | 42 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c37d8a6b933810f9d544027015017376c08c6d6a | 97 | py | Python | editor/lib/juma/AssetEditor/converters/__init__.py | RazielSun/juma-editor | 125720f7386f9f0a4cd3466a45c883d6d6020e33 | [
"MIT"
] | null | null | null | editor/lib/juma/AssetEditor/converters/__init__.py | RazielSun/juma-editor | 125720f7386f9f0a4cd3466a45c883d6d6020e33 | [
"MIT"
] | null | null | null | editor/lib/juma/AssetEditor/converters/__init__.py | RazielSun/juma-editor | 125720f7386f9f0a4cd3466a45c883d6d6020e33 | [
"MIT"
] | 1 | 2022-03-31T00:50:23.000Z | 2022-03-31T00:50:23.000Z | from PyAssimpConverter import PyAssimpConverter
from AnimationConverter import AnimationConverter | 48.5 | 49 | 0.927835 | 8 | 97 | 11.25 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072165 | 97 | 2 | 49 | 48.5 | 1 | 0 | 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 |
6f044e619fc0b5359a90973e556edad7df74210a | 22 | py | Python | src/__init__.py | michalsta/mocos_helper | e33f29246c70ce1dbd477eeed2374ba902e46cfe | [
"MIT"
] | 89 | 2020-02-06T09:24:10.000Z | 2021-09-11T22:49:34.000Z | src/__init__.py | michalsta/mocos_helper | e33f29246c70ce1dbd477eeed2374ba902e46cfe | [
"MIT"
] | null | null | null | src/__init__.py | michalsta/mocos_helper | e33f29246c70ce1dbd477eeed2374ba902e46cfe | [
"MIT"
] | 8 | 2020-04-15T19:07:49.000Z | 2020-10-12T10:06:55.000Z | from .random import *
| 11 | 21 | 0.727273 | 3 | 22 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 22 | 1 | 22 | 22 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6f1e64a90a4fa6b96a01f729ac30110014ef1343 | 2,017 | py | Python | test/test_index.py | grijul/arch-security-tracker | 132d1088a982d406436a2d1a047e977d0b2f18ed | [
"MIT"
] | 80 | 2017-10-09T13:39:34.000Z | 2022-03-30T08:28:25.000Z | test/test_index.py | grijul/arch-security-tracker | 132d1088a982d406436a2d1a047e977d0b2f18ed | [
"MIT"
] | 103 | 2017-07-20T23:01:23.000Z | 2022-03-29T15:45:44.000Z | test/test_index.py | grijul/arch-security-tracker | 132d1088a982d406436a2d1a047e977d0b2f18ed | [
"MIT"
] | 28 | 2017-10-18T17:03:42.000Z | 2022-03-18T17:36:48.000Z | from flask import url_for
from werkzeug.exceptions import NotFound
from .conftest import DEFAULT_GROUP_ID
from .conftest import DEFAULT_GROUP_NAME
from .conftest import create_group
from .conftest import create_package
@create_package(name='foo', version='1.2.3-4')
@create_group(id=DEFAULT_GROUP_ID, packages=['foo']... | 38.788462 | 115 | 0.733267 | 321 | 2,017 | 4.389408 | 0.161994 | 0.1022 | 0.023421 | 0.017033 | 0.857346 | 0.814762 | 0.814762 | 0.814762 | 0.814762 | 0.759404 | 0 | 0.035255 | 0.114031 | 2,017 | 51 | 116 | 39.54902 | 0.753218 | 0 | 0 | 0.55 | 0 | 0 | 0.118493 | 0.026277 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.125 | false | 0 | 0.15 | 0 | 0.275 | 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 |
6f220c3cf0fed5d4ce8be1d1fdbb0ec07a827600 | 129 | py | Python | homebot/dash/__init__.py | bearylogical/homebot | 07e01df8de20764b3850a6181529a109c020f855 | [
"MIT"
] | null | null | null | homebot/dash/__init__.py | bearylogical/homebot | 07e01df8de20764b3850a6181529a109c020f855 | [
"MIT"
] | null | null | null | homebot/dash/__init__.py | bearylogical/homebot | 07e01df8de20764b3850a6181529a109c020f855 | [
"MIT"
] | null | null | null | from flask import Blueprint
dash = Blueprint('dash', __name__, static_folder='static', static_url_path='')
from . import views
| 21.5 | 78 | 0.75969 | 17 | 129 | 5.352941 | 0.647059 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124031 | 129 | 5 | 79 | 25.8 | 0.80531 | 0 | 0 | 0 | 0 | 0 | 0.077519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
6f24d41f765bfb7415f1e24bec70c028dc933391 | 2,338 | py | Python | tests/test_question_answering.py | easynlp/easynlp | 4b3b405a64ca166cc19ee9c43b79a475cf699996 | [
"MIT"
] | 6 | 2021-07-09T08:13:44.000Z | 2021-11-10T04:09:33.000Z | tests/test_question_answering.py | easynlp/easynlp | 4b3b405a64ca166cc19ee9c43b79a475cf699996 | [
"MIT"
] | 1 | 2021-07-09T17:18:16.000Z | 2021-07-09T17:18:16.000Z | tests/test_question_answering.py | easynlp/easynlp | 4b3b405a64ca166cc19ee9c43b79a475cf699996 | [
"MIT"
] | 1 | 2022-02-09T15:37:14.000Z | 2022-02-09T15:37:14.000Z | import easynlp
def test_single_question_answering():
data = {
"text": [
"What is extractive question answering?",
],
"context": [
"""Extractive Question Answering is the task of extracting an answer from a text given a question. An example of a
question a... | 42.509091 | 128 | 0.664243 | 306 | 2,338 | 4.977124 | 0.176471 | 0.178595 | 0.088641 | 0.062377 | 0.933027 | 0.933027 | 0.860801 | 0.860801 | 0.860801 | 0.784636 | 0 | 0.001164 | 0.265184 | 2,338 | 54 | 129 | 43.296296 | 0.885332 | 0 | 0 | 0.636364 | 0 | 0 | 0.255962 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.045455 | false | 0 | 0.022727 | 0 | 0.068182 | 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 |
6f2de558f0fb56b6b1140309e954d10f16785d66 | 97 | py | Python | recursion/reverse_string.py | JunzhongLin/leetcode_practice | 47b2f5cc3c87de004ae21a94024e751b40b8f559 | [
"MIT"
] | null | null | null | recursion/reverse_string.py | JunzhongLin/leetcode_practice | 47b2f5cc3c87de004ae21a94024e751b40b8f559 | [
"MIT"
] | null | null | null | recursion/reverse_string.py | JunzhongLin/leetcode_practice | 47b2f5cc3c87de004ae21a94024e751b40b8f559 | [
"MIT"
] | null | null | null | s = 'tomclancy'
def print_letter(strings):
print(strings[-1])
print_letter(strings[:-1]) | 19.4 | 30 | 0.670103 | 13 | 97 | 4.846154 | 0.538462 | 0.349206 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.154639 | 97 | 5 | 30 | 19.4 | 0.743902 | 0 | 0 | 0 | 0 | 0 | 0.091837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.75 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
6f3f84e67888ee647792baa9bd5d3d853847bb79 | 313 | py | Python | utils/__init__.py | edwardyehuang/iSeg | 256b0f7fdb6e854fe026fa8df41d9a4a55db34d5 | [
"MIT"
] | 4 | 2021-12-13T09:49:26.000Z | 2022-02-19T11:16:50.000Z | utils/__init__.py | edwardyehuang/iSeg | 256b0f7fdb6e854fe026fa8df41d9a4a55db34d5 | [
"MIT"
] | 1 | 2021-07-28T10:40:56.000Z | 2021-08-09T07:14:06.000Z | utils/__init__.py | edwardyehuang/iSeg | 256b0f7fdb6e854fe026fa8df41d9a4a55db34d5 | [
"MIT"
] | null | null | null | # ================================================================
# MIT License
# Copyright (c) 2021 edwardyehuang (https://github.com/edwardyehuang)
# ================================================================
from iseg.utils.sugars import *
from iseg.utils.common import resize_image, simple_load_image
| 39.125 | 69 | 0.456869 | 25 | 313 | 5.6 | 0.76 | 0.114286 | 0.185714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013793 | 0.073482 | 313 | 7 | 70 | 44.714286 | 0.468966 | 0.667732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
6f6143b3480544510ea0cd43ede8c061b44a5767 | 1,964 | py | Python | axitom/tests/test_rotate_coordinates.py | PolymerGuy/AXITOM | 7682be5b21fa933b9bea4082fe9a830076431feb | [
"MIT"
] | 4 | 2019-09-06T16:31:11.000Z | 2022-02-04T12:18:47.000Z | axitom/tests/test_rotate_coordinates.py | PolymerGuy/AXITOM | 7682be5b21fa933b9bea4082fe9a830076431feb | [
"MIT"
] | 1 | 2019-08-08T12:30:33.000Z | 2019-08-08T12:34:55.000Z | axitom/tests/test_rotate_coordinates.py | PolymerGuy/AXITOM | 7682be5b21fa933b9bea4082fe9a830076431feb | [
"MIT"
] | 7 | 2019-08-21T20:51:12.000Z | 2020-02-04T14:20:42.000Z | from unittest import TestCase
import numpy as np
from axitom.backprojection import rotate_coordinates
class Test_RotateCoordinates(TestCase):
def test_rotate_coordinates_90deg(self):
tol = 1e-9
n_coordinates = 10
rotation_angle = np.pi/2.
xs, ys = np.meshgrid(np.arange(n_coordinates... | 36.37037 | 81 | 0.639511 | 298 | 1,964 | 4.030201 | 0.177852 | 0.049958 | 0.099917 | 0.099917 | 0.841799 | 0.802664 | 0.774355 | 0.774355 | 0.774355 | 0.743547 | 0 | 0.012943 | 0.252546 | 1,964 | 53 | 82 | 37.056604 | 0.805177 | 0 | 0 | 0.658537 | 0 | 0 | 0.128375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.073171 | 0 | 0.170732 | 0.146341 | 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 |
48ad9da2050df47a06c5487872f04c3641ae6370 | 9,227 | py | Python | tests/test_karma_parser.py | leoriviera/apollo | acd10d0e238b34bb61aaefa5d29db181fd171b79 | [
"MIT"
] | null | null | null | tests/test_karma_parser.py | leoriviera/apollo | acd10d0e238b34bb61aaefa5d29db181fd171b79 | [
"MIT"
] | null | null | null | tests/test_karma_parser.py | leoriviera/apollo | acd10d0e238b34bb61aaefa5d29db181fd171b79 | [
"MIT"
] | null | null | null | import os
import pytest
from alembic import command
from alembic.config import Config
from sqlalchemy import create_engine
from sqlalchemy.orm import Session
from karma.parser import RawKarma, parse_message
from models import Base
@pytest.fixture(scope="module")
def database():
# Locate the testing config for A... | 29.573718 | 86 | 0.670641 | 1,132 | 9,227 | 5.219965 | 0.117491 | 0.099509 | 0.146218 | 0.206803 | 0.817566 | 0.790658 | 0.749704 | 0.664918 | 0.642918 | 0.612117 | 0 | 0.000264 | 0.17839 | 9,227 | 311 | 87 | 29.66881 | 0.779185 | 0.017991 | 0 | 0.182266 | 0 | 0 | 0.18222 | 0 | 0 | 0 | 0 | 0 | 0.236453 | 1 | 0.241379 | false | 0 | 0.039409 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
48c1563c45b1d57c5c559f77f493731d9c7a45e1 | 10,454 | py | Python | services/events/migrations/versions/5da14a4e4c7a_.py | conbon/my-dev-space | 604e0311bb006d8b5efe3322657ab631be3a3c02 | [
"MIT"
] | 24 | 2018-06-27T22:50:04.000Z | 2020-10-27T21:06:41.000Z | services/events/migrations/versions/5da14a4e4c7a_.py | conbon/my-dev-space | 604e0311bb006d8b5efe3322657ab631be3a3c02 | [
"MIT"
] | 398 | 2018-05-01T06:00:11.000Z | 2021-03-01T21:31:26.000Z | services/events/migrations/versions/5da14a4e4c7a_.py | conbon/my-dev-space | 604e0311bb006d8b5efe3322657ab631be3a3c02 | [
"MIT"
] | 22 | 2018-06-27T20:42:07.000Z | 2019-02-10T14:30:36.000Z | """empty message
Revision ID: 5da14a4e4c7a
Revises:
Create Date: 2018-07-26 18:58:46.019785
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = "5da14a4e4c7a"
down_revision = None
branch_labels = None
depends_on = None
d... | 41.320158 | 80 | 0.623876 | 1,212 | 10,454 | 5.230198 | 0.078383 | 0.100962 | 0.115949 | 0.145764 | 0.873482 | 0.814009 | 0.775517 | 0.767313 | 0.718725 | 0.718725 | 0 | 0.017937 | 0.210733 | 10,454 | 252 | 81 | 41.484127 | 0.750333 | 0.027071 | 0 | 0.651064 | 0 | 0 | 0.171107 | 0.053483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008511 | false | 0 | 0.012766 | 0 | 0.021277 | 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 |
48ea7a5c78b44d58ffa20048da1398281f5072a1 | 73,164 | py | Python | gen/PSLexer.py | Na2CuCl4/latex2sympy | 40f3b16ad13f8ab12d7704bb422cf8580b45b380 | [
"MIT"
] | 26 | 2021-05-12T09:48:28.000Z | 2022-03-31T08:33:57.000Z | gen/PSLexer.py | Na2CuCl4/latex2sympy | 40f3b16ad13f8ab12d7704bb422cf8580b45b380 | [
"MIT"
] | null | null | null | gen/PSLexer.py | Na2CuCl4/latex2sympy | 40f3b16ad13f8ab12d7704bb422cf8580b45b380 | [
"MIT"
] | 3 | 2021-10-09T03:16:53.000Z | 2022-02-18T13:23:40.000Z | # Generated from PS.g4 by ANTLR 4.7.2
# encoding: utf-8
from __future__ import print_function
from antlr4 import *
from io import StringIO
import sys
def serializedATN():
with StringIO() as buf:
buf.write(u"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2")
buf.write(u"\u0087\u06c3\b\1\4\2\t\... | 68.37757 | 103 | 0.600459 | 16,572 | 73,164 | 2.623763 | 0.13197 | 0.109197 | 0.168073 | 0.047285 | 0.327706 | 0.287666 | 0.241232 | 0.195465 | 0.170097 | 0.165107 | 0 | 0.359872 | 0.138196 | 73,164 | 1,069 | 104 | 68.441534 | 0.329723 | 0.000697 | 0 | 0.066667 | 1 | 0.547619 | 0.652924 | 0.60438 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001905 | false | 0 | 0.00381 | 0 | 0.141905 | 0.000952 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
48efad98a7d9f8242a7f7682c73ca7e052674cf8 | 31 | py | Python | crawler/39drug_crawler.py | wglassly/Hylobatidae | 8bb998609c510ab3f32c58f59fc3469ef330aebd | [
"Apache-2.0"
] | 1 | 2021-02-08T07:50:45.000Z | 2021-02-08T07:50:45.000Z | crawler/39drug_crawler.py | wglassly/Hylobatidae | 8bb998609c510ab3f32c58f59fc3469ef330aebd | [
"Apache-2.0"
] | null | null | null | crawler/39drug_crawler.py | wglassly/Hylobatidae | 8bb998609c510ab3f32c58f59fc3469ef330aebd | [
"Apache-2.0"
] | null | null | null | from selenium import webdriver
| 15.5 | 30 | 0.870968 | 4 | 31 | 6.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 1 | 31 | 31 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
48fd6b270ae36b6dc52b188cda52e30974c3c454 | 19,032 | py | Python | datadotworld/client/_swagger/apis/uploads_api.py | DanialBetres/data.world-py | 0e3acf2be9a07c5ab62ecac9289eb662088d54c7 | [
"Apache-2.0"
] | 99 | 2017-01-23T16:24:18.000Z | 2022-03-30T22:51:58.000Z | datadotworld/client/_swagger/apis/uploads_api.py | DanialBetres/data.world-py | 0e3acf2be9a07c5ab62ecac9289eb662088d54c7 | [
"Apache-2.0"
] | 77 | 2017-01-26T04:33:06.000Z | 2022-03-11T09:39:50.000Z | datadotworld/client/_swagger/apis/uploads_api.py | DanialBetres/data.world-py | 0e3acf2be9a07c5ab62ecac9289eb662088d54c7 | [
"Apache-2.0"
] | 29 | 2017-01-25T16:55:23.000Z | 2022-01-31T01:44:15.000Z | # coding: utf-8
"""
data.world API
data.world is designed for data and the people who work with data. From professional projects to open data, data.world helps you host and share your data, collaborate with your team, and capture context and conclusions as you work. Using this API users are able to easily ... | 63.019868 | 854 | 0.635771 | 2,420 | 19,032 | 4.902066 | 0.124793 | 0.02276 | 0.008092 | 0.030346 | 0.891343 | 0.872713 | 0.868583 | 0.856276 | 0.83537 | 0.83537 | 0 | 0.005614 | 0.260666 | 19,032 | 301 | 855 | 63.229236 | 0.837467 | 0.502995 | 0 | 0.625 | 0 | 0.039474 | 0.257595 | 0.059727 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032895 | false | 0 | 0.046053 | 0 | 0.125 | 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 |
5b1127a80b0cc97cf385c079bc30958c2c4a1653 | 220 | py | Python | corehq/apps/export/exceptions.py | dborowiecki/commcare-hq | f2f4fa67faec09040a98502f5657444075b63f2e | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/export/exceptions.py | dborowiecki/commcare-hq | f2f4fa67faec09040a98502f5657444075b63f2e | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/export/exceptions.py | dborowiecki/commcare-hq | f2f4fa67faec09040a98502f5657444075b63f2e | [
"BSD-3-Clause"
] | null | null | null |
class ExportAppException(Exception):
pass
class BadExportConfiguration(ExportAppException):
pass
class ExportFormValidationException(Exception):
pass
class ExportAsyncException(Exception):
pass
| 11.578947 | 49 | 0.772727 | 16 | 220 | 10.625 | 0.4375 | 0.229412 | 0.211765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172727 | 220 | 18 | 50 | 12.222222 | 0.934066 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
d2ac686e4cd80daee2a49f1281a2ec1d4a4a44ac | 44 | py | Python | files/DST du 05 02 2020/dsfzfdsfdsf.py | HenraL/NSI_1ereG6_Programme_Python | 9f46b848fa2331daca57e5e2e11cba41da45a67f | [
"Unlicense"
] | 1 | 2021-06-15T13:44:47.000Z | 2021-06-15T13:44:47.000Z | files/DST du 05 02 2020/dsfzfdsfdsf.py | HenraL/NSI_1ereG6_Programme_Python | 9f46b848fa2331daca57e5e2e11cba41da45a67f | [
"Unlicense"
] | null | null | null | files/DST du 05 02 2020/dsfzfdsfdsf.py | HenraL/NSI_1ereG6_Programme_Python | 9f46b848fa2331daca57e5e2e11cba41da45a67f | [
"Unlicense"
] | null | null | null | from math import*
def moyer(L):
average
| 11 | 17 | 0.681818 | 7 | 44 | 4.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 44 | 3 | 18 | 14.666667 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
d2b8d15490f0dac9ecc4e35e5758b4c6daf42318 | 92 | py | Python | test-registry/install/f.py | NathanTP/open-lambda | 63b2f51bbe1ac121d14af9a5562c547227c4d2ab | [
"Apache-2.0"
] | 826 | 2016-06-18T04:42:13.000Z | 2022-03-31T13:21:33.000Z | test-registry/install/f.py | NathanTP/open-lambda | 63b2f51bbe1ac121d14af9a5562c547227c4d2ab | [
"Apache-2.0"
] | 62 | 2016-07-14T11:10:02.000Z | 2022-02-12T18:33:55.000Z | test-registry/install/f.py | NathanTP/open-lambda | 63b2f51bbe1ac121d14af9a5562c547227c4d2ab | [
"Apache-2.0"
] | 105 | 2016-06-20T15:36:22.000Z | 2022-02-01T06:04:58.000Z | import requests
import urllib3
# ol-install: requests
def f(event):
return 'imported'
| 11.5 | 22 | 0.728261 | 12 | 92 | 5.583333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.184783 | 92 | 7 | 23 | 13.142857 | 0.88 | 0.217391 | 0 | 0 | 0 | 0 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.75 | 0.25 | 1.25 | 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 |
d2c590031ecc997be5e225a578049279cc6848d3 | 67 | py | Python | src/ketrics_dev_tools/command_line.py | ketrics/ketrics-dev-tools | e1231615456a6fec8f71a0134ada1ea507984bd1 | [
"MIT"
] | null | null | null | src/ketrics_dev_tools/command_line.py | ketrics/ketrics-dev-tools | e1231615456a6fec8f71a0134ada1ea507984bd1 | [
"MIT"
] | null | null | null | src/ketrics_dev_tools/command_line.py | ketrics/ketrics-dev-tools | e1231615456a6fec8f71a0134ada1ea507984bd1 | [
"MIT"
] | null | null | null | from . import KetricsDevTools
def main():
KetricsDevTools()
| 9.571429 | 29 | 0.701493 | 6 | 67 | 7.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208955 | 67 | 6 | 30 | 11.166667 | 0.886792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d2cda599af5afa1f5e55bab4d4b114afd37eab3e | 102 | py | Python | basicsr/metrics/__init__.py | yuangan/Simple-SR | 630d2f9441b116620af88ff882eca4673dedc047 | [
"MIT"
] | 10 | 2021-06-24T12:03:33.000Z | 2022-03-05T03:29:34.000Z | basicsr/metrics/__init__.py | yuangan/Simple-SR | 630d2f9441b116620af88ff882eca4673dedc047 | [
"MIT"
] | null | null | null | basicsr/metrics/__init__.py | yuangan/Simple-SR | 630d2f9441b116620af88ff882eca4673dedc047 | [
"MIT"
] | 2 | 2021-07-01T09:08:40.000Z | 2022-02-23T15:31:31.000Z | from .psnr_ssim import calculate_psnr, calculate_ssim
__all__ = ['calculate_psnr', 'calculate_ssim']
| 25.5 | 53 | 0.803922 | 13 | 102 | 5.615385 | 0.461538 | 0.356164 | 0.60274 | 0.712329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 102 | 3 | 54 | 34 | 0.793478 | 0 | 0 | 0 | 0 | 0 | 0.27451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
d2d06c18b99981c89ef1b5385e853aa6a731f149 | 3,601 | py | Python | homework/yaryna/game_hw_1.py | aodarc/LIST-010 | 4579a047ca1ae0266f368349ea4536c6eb367f97 | [
"MIT"
] | null | null | null | homework/yaryna/game_hw_1.py | aodarc/LIST-010 | 4579a047ca1ae0266f368349ea4536c6eb367f97 | [
"MIT"
] | 4 | 2018-12-19T13:41:12.000Z | 2019-01-14T15:11:11.000Z | homework/yaryna/game_hw_1.py | aodarc/LIST-010 | 4579a047ca1ae0266f368349ea4536c6eb367f97 | [
"MIT"
] | null | null | null | print("Hello! This game is about emotions. Try to put letters in the correct order and create words")
n=0
word = "happy"
print("ypahp")
for i in range(1,3):
word1= input("Enter your answer:")
if word1==word:
print("Great!")
n+=1
break
else:
print("Try again!")
i=i+1... | 18.186869 | 101 | 0.510691 | 507 | 3,601 | 3.627219 | 0.155819 | 0.078303 | 0.04894 | 0.089723 | 0.752583 | 0.73192 | 0.73192 | 0.73192 | 0.73192 | 0.73192 | 0 | 0.039801 | 0.330186 | 3,601 | 197 | 102 | 18.279188 | 0.722637 | 0 | 0 | 0.786127 | 0 | 0 | 0.253541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.283237 | 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 |
d2fd925e580d01dde531681d96e9167fe4c49ae0 | 98 | py | Python | src/footings_idi_model/outputs/__init__.py | dustindall/idi-model | 5d026f4756f03f9cb797de5a8f0c3c6d2b349ccb | [
"BSD-3-Clause"
] | 2 | 2020-10-06T15:52:12.000Z | 2020-11-30T19:07:35.000Z | src/footings_idi_model/outputs/__init__.py | dustindall/idi-model | 5d026f4756f03f9cb797de5a8f0c3c6d2b349ccb | [
"BSD-3-Clause"
] | 29 | 2020-06-28T12:22:59.000Z | 2021-04-21T11:03:07.000Z | src/footings_idi_model/outputs/__init__.py | footings/footings-idi-model | 5d026f4756f03f9cb797de5a8f0c3c6d2b349ccb | [
"BSD-3-Clause"
] | 1 | 2020-06-24T09:54:46.000Z | 2020-06-24T09:54:46.000Z | from .active_lives import ActiveLivesValOutput
from .disabled_lives import DisabledLivesValOutput
| 32.666667 | 50 | 0.897959 | 10 | 98 | 8.6 | 0.7 | 0.255814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 98 | 2 | 51 | 49 | 0.955556 | 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 |
d2ffa16a49ebd94da73b301b967d348825c96b17 | 1,029 | py | Python | tests/test_vocab_tsv.py | juhoinkinen/Annif | 6ac84312ce6f4fbdfbbb681a62fe218d90abde93 | [
"Apache-2.0"
] | null | null | null | tests/test_vocab_tsv.py | juhoinkinen/Annif | 6ac84312ce6f4fbdfbbb681a62fe218d90abde93 | [
"Apache-2.0"
] | null | null | null | tests/test_vocab_tsv.py | juhoinkinen/Annif | 6ac84312ce6f4fbdfbbb681a62fe218d90abde93 | [
"Apache-2.0"
] | null | null | null | """Unit tests for TSV vocabulary functionality in Annif"""
from annif.corpus import SubjectIndex
def test_load_tsv_uri_brackets(tmpdir):
tmpfile = tmpdir.join('subjects.tsv')
tmpfile.write("<http://www.yso.fi/onto/yso/p8993>\thylyt\n" +
"<http://www.yso.fi/onto/yso/p9285>\tneoliittinen kau... | 33.193548 | 75 | 0.637512 | 141 | 1,029 | 4.595745 | 0.304965 | 0.08642 | 0.123457 | 0.148148 | 0.851852 | 0.799383 | 0.799383 | 0.799383 | 0.799383 | 0.799383 | 0 | 0.0454 | 0.186589 | 1,029 | 30 | 76 | 34.3 | 0.728793 | 0.050535 | 0 | 0.666667 | 0 | 0 | 0.399588 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.095238 | false | 0 | 0.047619 | 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 |
825716fe09d94125ddd537a64cc888c9fa9ae569 | 188 | py | Python | pypy/module/itertools/test/test_ztranslation.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | pypy/module/itertools/test/test_ztranslation.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | pypy/module/itertools/test/test_ztranslation.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | 1 | 2022-03-30T11:42:37.000Z | 2022-03-30T11:42:37.000Z | from pypy.objspace.fake.checkmodule import checkmodule
def test_checkmodule():
# itertools.compress.__next__() crashes in backendopt
checkmodule('itertools', ignore=['compress'])
| 31.333333 | 57 | 0.771277 | 20 | 188 | 7 | 0.75 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117021 | 188 | 5 | 58 | 37.6 | 0.843373 | 0.271277 | 0 | 0 | 0 | 0 | 0.125926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
827fe775c62cfee94c84955030576b61939df637 | 16,769 | py | Python | tests/test_cookies.py | jsenecal/async-fastapi-jwt-auth | dd825f51a2e93192d4128c85b0d4a73df1a9c418 | [
"MIT"
] | 4 | 2022-02-04T08:06:32.000Z | 2022-03-25T23:22:07.000Z | tests/test_cookies.py | jsenecal/async-fastapi-jwt-auth | dd825f51a2e93192d4128c85b0d4a73df1a9c418 | [
"MIT"
] | null | null | null | tests/test_cookies.py | jsenecal/async-fastapi-jwt-auth | dd825f51a2e93192d4128c85b0d4a73df1a9c418 | [
"MIT"
] | 1 | 2022-02-16T16:26:27.000Z | 2022-02-16T16:26:27.000Z | import pytest
from async_fastapi_jwt_auth import AuthJWT
from async_fastapi_jwt_auth.exceptions import AuthJWTException
from fastapi import FastAPI, Request, Depends
from fastapi.responses import JSONResponse
from fastapi.testclient import TestClient
@pytest.fixture(scope='function')
def client():
app = FastAPI()... | 36.936123 | 114 | 0.671596 | 2,010 | 16,769 | 5.362687 | 0.058209 | 0.07663 | 0.050654 | 0.05789 | 0.856109 | 0.820484 | 0.783932 | 0.752296 | 0.739493 | 0.707023 | 0 | 0.005201 | 0.197388 | 16,769 | 453 | 115 | 37.01766 | 0.795676 | 0.028147 | 0 | 0.612903 | 0 | 0 | 0.225184 | 0.064312 | 0 | 0 | 0 | 0 | 0.173021 | 1 | 0.085044 | false | 0 | 0.017595 | 0.058651 | 0.199413 | 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 |
829b66a7d3322553c5ceacae30708193ffeee163 | 235 | py | Python | data/extractors/__init__.py | alanwang93/ATEC2018-NLP-PyTorch | 8e00c6af1d3e1db7ab4433a0587784e45f830347 | [
"MIT"
] | 1 | 2021-09-07T01:27:29.000Z | 2021-09-07T01:27:29.000Z | data/extractors/__init__.py | alanwang93/ATEC2018-NLP-PyTorch | 8e00c6af1d3e1db7ab4433a0587784e45f830347 | [
"MIT"
] | null | null | null | data/extractors/__init__.py | alanwang93/ATEC2018-NLP-PyTorch | 8e00c6af1d3e1db7ab4433a0587784e45f830347 | [
"MIT"
] | null | null | null | from .extractor import Extractor
from .word_embed_extractor import WordEmbedExtractor
from .similarity_extractor import SimilarityExtractor
from .word_bool_extractor import WordBoolExtractor
from .tfidf_extractor import TFIDFExtractor
| 39.166667 | 53 | 0.893617 | 26 | 235 | 7.846154 | 0.461538 | 0.367647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 235 | 5 | 54 | 47 | 0.948837 | 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 |
82e30e001972e51a758ae09445bf2d54ef50c419 | 39 | py | Python | cvstudio/view/widgets/switch_button/__init__.py | haruiz/PytorchCvStudio | ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef | [
"MIT"
] | 32 | 2019-10-31T03:10:52.000Z | 2020-12-23T11:50:53.000Z | cvstudio/view/widgets/switch_button/__init__.py | haruiz/CvStudio | ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef | [
"MIT"
] | 19 | 2019-10-31T15:06:05.000Z | 2020-06-15T02:21:55.000Z | cvstudio/view/widgets/switch_button/__init__.py | haruiz/PytorchCvStudio | ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef | [
"MIT"
] | 8 | 2019-10-31T03:32:50.000Z | 2020-07-17T20:47:37.000Z | from .switch_button import SwitchButton | 39 | 39 | 0.897436 | 5 | 39 | 6.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 39 | 1 | 39 | 39 | 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 |
7d63ca4be42ee1faf162b5fc99e66c4bf4979b6a | 15,093 | py | Python | tests/test_cbers.py | cogeotiff/rio-tiler-pds | 52482c80baf7fd26cf06cd2af2961cca396b20e0 | [
"BSD-3-Clause"
] | 30 | 2020-07-21T23:32:14.000Z | 2022-02-21T23:35:35.000Z | tests/test_cbers.py | cogeotiff/rio-tiler-pds | 52482c80baf7fd26cf06cd2af2961cca396b20e0 | [
"BSD-3-Clause"
] | 36 | 2020-07-21T20:48:51.000Z | 2021-10-06T08:15:00.000Z | tests/test_cbers.py | cogeotiff/rio-tiler-pds | 52482c80baf7fd26cf06cd2af2961cca396b20e0 | [
"BSD-3-Clause"
] | 4 | 2020-07-23T06:19:30.000Z | 2021-11-18T03:27:04.000Z | """tests rio_tiler.sentinel2"""
import os
from unittest.mock import patch
import pytest
import rasterio
from rio_tiler.errors import InvalidBandName, MissingBands, TileOutsideBounds
from rio_tiler_pds.cbers.aws import CBERSReader
from rio_tiler_pds.cbers.utils import sceneid_parser
from rio_tiler_pds.errors import I... | 31.841772 | 88 | 0.580932 | 1,782 | 15,093 | 4.69248 | 0.124579 | 0.037072 | 0.030615 | 0.01447 | 0.82552 | 0.804592 | 0.797656 | 0.792394 | 0.719445 | 0.712748 | 0 | 0.093716 | 0.26615 | 15,093 | 473 | 89 | 31.909091 | 0.66125 | 0.032068 | 0 | 0.673629 | 0 | 0 | 0.22184 | 0.086592 | 0 | 0 | 0 | 0 | 0.214099 | 1 | 0.02611 | false | 0.002611 | 0.020888 | 0 | 0.049608 | 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 |
7d64e6fe9fe84d9cb4e07635e3cfe69955e089b4 | 121 | py | Python | sphinx/python-intro/source/code/oneoffcoder/function/basicfunction.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 26 | 2020-05-05T08:07:43.000Z | 2022-02-12T03:28:15.000Z | sphinx/python-intro/source/code/oneoffcoder/function/basicfunction.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 19 | 2021-03-10T00:33:51.000Z | 2022-03-02T13:04:32.000Z | sphinx/python-intro/source/code/oneoffcoder/function/basicfunction.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 2 | 2022-01-09T16:48:21.000Z | 2022-02-19T17:06:50.000Z | def add_one(num):
return num + 1
def minus_one(num):
return num - 1;
x = 10
y = add_one(x)
z = minus_one(x)
| 9.307692 | 19 | 0.586777 | 24 | 121 | 2.791667 | 0.458333 | 0.179104 | 0.358209 | 0.447761 | 0.477612 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045977 | 0.280992 | 121 | 12 | 20 | 10.083333 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.285714 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
7d7603b7de6e89c930d304c79e53475b096865df | 279 | py | Python | Python3/Lists/nested_comprehension.py | norbertosanchezdichi/TIL | 2e9719ddd288022f53b094a42679e849bdbcc625 | [
"MIT"
] | null | null | null | Python3/Lists/nested_comprehension.py | norbertosanchezdichi/TIL | 2e9719ddd288022f53b094a42679e849bdbcc625 | [
"MIT"
] | null | null | null | Python3/Lists/nested_comprehension.py | norbertosanchezdichi/TIL | 2e9719ddd288022f53b094a42679e849bdbcc625 | [
"MIT"
] | null | null | null | nested_list = [list(range(1,4)), list(range(4,7)), list(range(8,10))]
print(f'{nested_list =}')
print(f'{[[single_list for single_list in nested_list] for single_list in nested_list] =}')
print(f'{[["X" if num % 2 == 0 else "O" for num in range(1,4)] for num in range(1,4)] =}') | 55.8 | 91 | 0.65233 | 55 | 279 | 3.181818 | 0.363636 | 0.228571 | 0.12 | 0.182857 | 0.48 | 0.48 | 0.308571 | 0 | 0 | 0 | 0 | 0.053279 | 0.125448 | 279 | 5 | 92 | 55.8 | 0.663934 | 0 | 0 | 0 | 0 | 0.25 | 0.628571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
7d9ba1a3c9d79d17f96a7fafcef817d6c876b020 | 152 | py | Python | Python_Birds/01_Programacao_Procedural/03_Modularizacao/debug.py | Miyake-Diogo/Python_Pro | 01366d34bd1d659c4f0b11356c8981c8353c63b6 | [
"Apache-2.0"
] | null | null | null | Python_Birds/01_Programacao_Procedural/03_Modularizacao/debug.py | Miyake-Diogo/Python_Pro | 01366d34bd1d659c4f0b11356c8981c8353c63b6 | [
"Apache-2.0"
] | null | null | null | Python_Birds/01_Programacao_Procedural/03_Modularizacao/debug.py | Miyake-Diogo/Python_Pro | 01366d34bd1d659c4f0b11356c8981c8353c63b6 | [
"Apache-2.0"
] | null | null | null | # Modularização
# Debug
# coloque os breakpoints onde se quer executar
def soma(parcela1, parcela2):
return parcela1 + parcela2
print(soma(1,2))
| 16.888889 | 46 | 0.736842 | 20 | 152 | 5.6 | 0.85 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048 | 0.177632 | 152 | 8 | 47 | 19 | 0.848 | 0.427632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0.333333 | 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 |
7dc81c12dd434f50f8359179dd61f78b4b3f3483 | 63 | py | Python | cgivar2gvcf/__main__.py | madprime/cgivar2gvcf | 13b4cd8da08669f7e4b0ceed77a7a17082f91037 | [
"MIT"
] | 4 | 2016-04-28T16:46:40.000Z | 2021-08-14T18:55:50.000Z | cgivar2gvcf/__main__.py | madprime/cgivar2gvcf | 13b4cd8da08669f7e4b0ceed77a7a17082f91037 | [
"MIT"
] | 5 | 2015-12-31T21:26:38.000Z | 2016-01-26T20:23:24.000Z | cgivar2gvcf/__main__.py | madprime/cgivar2vcf | 13b4cd8da08669f7e4b0ceed77a7a17082f91037 | [
"MIT"
] | 2 | 2016-05-25T16:52:30.000Z | 2017-09-12T19:35:33.000Z | from cgivar2gvcf import from_command_line
from_command_line()
| 15.75 | 41 | 0.873016 | 9 | 63 | 5.666667 | 0.555556 | 0.431373 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.095238 | 63 | 3 | 42 | 21 | 0.877193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 |
7df26880277fa213ec3c04e43eafe875e209a2a5 | 66 | py | Python | marge/tests/__init__.py | FirstDraftGIS/marge | eeee44f2c8f7956d8dc9d3c47b23a9497e9b75b3 | [
"Apache-2.0"
] | 2 | 2018-09-30T07:02:57.000Z | 2019-02-15T15:16:39.000Z | marge/tests/__init__.py | FirstDraftGIS/marge | eeee44f2c8f7956d8dc9d3c47b23a9497e9b75b3 | [
"Apache-2.0"
] | null | null | null | marge/tests/__init__.py | FirstDraftGIS/marge | eeee44f2c8f7956d8dc9d3c47b23a9497e9b75b3 | [
"Apache-2.0"
] | null | null | null | from .cleaner import *
from .models import *
from .utils import *
| 16.5 | 22 | 0.727273 | 9 | 66 | 5.333333 | 0.555556 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 66 | 3 | 23 | 22 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
81622fc4967dd019bbed90d40f1ed583089e21be | 241 | py | Python | urlrouter/models.py | mikespub-archive/wkornewald-allbuttonspressed | 57adb0de9a61b8abec80e678b6589f6a5a3131b5 | [
"BSD-3-Clause"
] | null | null | null | urlrouter/models.py | mikespub-archive/wkornewald-allbuttonspressed | 57adb0de9a61b8abec80e678b6589f6a5a3131b5 | [
"BSD-3-Clause"
] | null | null | null | urlrouter/models.py | mikespub-archive/wkornewald-allbuttonspressed | 57adb0de9a61b8abec80e678b6589f6a5a3131b5 | [
"BSD-3-Clause"
] | null | null | null | from . import api
from django.db import models
class URLRoute(models.Model):
url = models.CharField(primary_key=True, max_length=256)
handler = models.CharField(max_length=64)
target = models.CharField(max_length=64, null=True)
| 30.125 | 60 | 0.755187 | 35 | 241 | 5.085714 | 0.6 | 0.252809 | 0.202247 | 0.269663 | 0.292135 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033816 | 0.141079 | 241 | 7 | 61 | 34.428571 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
8191dcd3c1845015ada5c94394ee5bce70f505bc | 9,477 | py | Python | code/3_1_4.py | yuanyaaa/StimulateRandomProcess | 8a6d531e275068650835d3fcabf4204184bc1e4b | [
"Apache-2.0"
] | null | null | null | code/3_1_4.py | yuanyaaa/StimulateRandomProcess | 8a6d531e275068650835d3fcabf4204184bc1e4b | [
"Apache-2.0"
] | null | null | null | code/3_1_4.py | yuanyaaa/StimulateRandomProcess | 8a6d531e275068650835d3fcabf4204184bc1e4b | [
"Apache-2.0"
] | null | null | null | import numpy as np
import random
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1.inset_locator import mark_inset
from mpl_toolkits.axes_grid1.inset_locator import inset_axes
class MatchTurn:
def __init__(self):
self.epochs = [100, 1000, 10000]
self.nrange = 51
self.E_Rn_x = [[]... | 41.384279 | 108 | 0.526221 | 1,381 | 9,477 | 3.400434 | 0.115134 | 0.032581 | 0.073041 | 0.045997 | 0.866269 | 0.849872 | 0.836031 | 0.826022 | 0.767036 | 0.767036 | 0 | 0.04293 | 0.321621 | 9,477 | 228 | 109 | 41.565789 | 0.68751 | 0.081355 | 0 | 0.658228 | 0 | 0 | 0.077163 | 0.002426 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031646 | false | 0 | 0.031646 | 0 | 0.06962 | 0.031646 | 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 |
c4d54df565b046e7b2fdc20d348d5002bc59e5bb | 17,391 | py | Python | watertap/unit_models/zero_order/tests/test_uv_aop_zo.py | dangunter/watertap | 5fe94e4c27dc1ae9e2872960e4183dccadd42d8e | [
"BSD-3-Clause-LBNL"
] | null | null | null | watertap/unit_models/zero_order/tests/test_uv_aop_zo.py | dangunter/watertap | 5fe94e4c27dc1ae9e2872960e4183dccadd42d8e | [
"BSD-3-Clause-LBNL"
] | null | null | null | watertap/unit_models/zero_order/tests/test_uv_aop_zo.py | dangunter/watertap | 5fe94e4c27dc1ae9e2872960e4183dccadd42d8e | [
"BSD-3-Clause-LBNL"
] | null | null | null | ###############################################################################
# WaterTAP Copyright (c) 2021, The Regents of the University of California,
# through Lawrence Berkeley National Laboratory, Oak Ridge National
# Laboratory, National Renewable Energy Laboratory, and National Energy
# Technology Laboratory ... | 45.407311 | 100 | 0.600196 | 2,087 | 17,391 | 4.8184 | 0.134164 | 0.047733 | 0.071102 | 0.042263 | 0.812649 | 0.794749 | 0.776253 | 0.76601 | 0.743437 | 0.717184 | 0 | 0.040355 | 0.249094 | 17,391 | 382 | 101 | 45.526178 | 0.729688 | 0.035593 | 0 | 0.696667 | 0 | 0.006667 | 0.303405 | 0.074782 | 0 | 0 | 0 | 0 | 0.28 | 1 | 0.063333 | false | 0 | 0.043333 | 0 | 0.12 | 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 |
c4dcbd9e0164eaae599ac67bb5ac0e53caacccd6 | 941 | py | Python | api/auth/apikeys.py | Retrylife/apiv2 | a3c6cd4e556db9126a0e8aebbace7c3307b6a277 | [
"MIT"
] | null | null | null | api/auth/apikeys.py | Retrylife/apiv2 | a3c6cd4e556db9126a0e8aebbace7c3307b6a277 | [
"MIT"
] | null | null | null | api/auth/apikeys.py | Retrylife/apiv2 | a3c6cd4e556db9126a0e8aebbace7c3307b6a277 | [
"MIT"
] | null | null | null |
all_scopes = ["tba", "frc", "devrant", "github", "rss", "rtl", "rtl-access", "monitor"]
read = {
# debugging key
"070f42125103c1b1edd465a102c052c245d1eb455a35c370614c037c83e2c65c9646c699e8fa27184bc8dcf74f14e23c8a01cf9160b7718b82a8645261b6458d": ["tba", "rtl-access", "devrant", "monitor"],
# devrant statu... | 44.809524 | 180 | 0.807651 | 42 | 941 | 18.047619 | 0.666667 | 0.023747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.397406 | 0.098831 | 941 | 21 | 181 | 44.809524 | 0.496462 | 0.07864 | 0 | 0 | 0 | 0 | 0.774942 | 0.668213 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c4dd4802ca59c3df2a76ab98d481dc761a936ce9 | 26 | py | Python | test2.py | MPogoda/compilers_python | 48aed1cbe715d9121f3031e400d579d241754304 | [
"MIT"
] | 1 | 2022-03-27T06:47:36.000Z | 2022-03-27T06:47:36.000Z | test2.py | MPogoda/compilers_python | 48aed1cbe715d9121f3031e400d579d241754304 | [
"MIT"
] | null | null | null | test2.py | MPogoda/compilers_python | 48aed1cbe715d9121f3031e400d579d241754304 | [
"MIT"
] | null | null | null | class class class class:
| 8.666667 | 24 | 0.769231 | 4 | 26 | 5 | 0.25 | 1.5 | 1.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 26 | 2 | 25 | 13 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 6 |
f20f2c2658d8575c91afa0016cae29e6691a3018 | 115 | py | Python | src/flasktex/views.py | hosiet/flasktex | a1fe0dd84fdeed5e5d99125af0d789f33895e396 | [
"BSD-3-Clause"
] | 1 | 2020-03-22T10:58:24.000Z | 2020-03-22T10:58:24.000Z | src/flasktex/views.py | hosiet/flasktex | a1fe0dd84fdeed5e5d99125af0d789f33895e396 | [
"BSD-3-Clause"
] | null | null | null | src/flasktex/views.py | hosiet/flasktex | a1fe0dd84fdeed5e5d99125af0d789f33895e396 | [
"BSD-3-Clause"
] | null | null | null | from flasktex import app
import flasktex.api_1_0
@app.route("/")
def ft_route_root():
return 'this is root.'
| 14.375 | 26 | 0.713043 | 19 | 115 | 4.105263 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.165217 | 115 | 7 | 27 | 16.428571 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0.121739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
f21c573bfb74d312a7e25b3f0805322696a71a53 | 66 | py | Python | GEOAkaze/__init__.py | ahsouri/GEOAkaze | 63072998cb1a7e51fdd4a9c04102fd983ad6a2b6 | [
"MIT"
] | null | null | null | GEOAkaze/__init__.py | ahsouri/GEOAkaze | 63072998cb1a7e51fdd4a9c04102fd983ad6a2b6 | [
"MIT"
] | null | null | null | GEOAkaze/__init__.py | ahsouri/GEOAkaze | 63072998cb1a7e51fdd4a9c04102fd983ad6a2b6 | [
"MIT"
] | null | null | null | from .GEOAkaze_mod import GEOAkaze
from .make_kml import make_kml
| 22 | 34 | 0.848485 | 11 | 66 | 4.818182 | 0.545455 | 0.264151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 66 | 2 | 35 | 33 | 0.913793 | 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 |
f21d490fcdce47dd3ce94ca1890a9617d6bbec14 | 25 | py | Python | LociAnalysis/refdb/__init__.py | bnbowman/LociAnalysis | c0f11c2a2b80c7cde61b9991283a17f97062118e | [
"BSD-3-Clause"
] | 3 | 2017-09-22T15:17:42.000Z | 2020-05-12T04:59:07.000Z | LociAnalysis/refdb/__init__.py | bnbowman/LociAnalysis | c0f11c2a2b80c7cde61b9991283a17f97062118e | [
"BSD-3-Clause"
] | null | null | null | LociAnalysis/refdb/__init__.py | bnbowman/LociAnalysis | c0f11c2a2b80c7cde61b9991283a17f97062118e | [
"BSD-3-Clause"
] | null | null | null | from .refdb import RefDb
| 12.5 | 24 | 0.8 | 4 | 25 | 5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.952381 | 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 |
f2214abd577ec5293700ad33a303f96e92b0cb2c | 77 | py | Python | Python/Math/Power Mod Power.py | jaswal72/hacker-rank | 95aaa71b4636928664341dc9c6f75d69af5f26ac | [
"MIT"
] | 1 | 2017-03-27T18:21:38.000Z | 2017-03-27T18:21:38.000Z | Python/Math/Power Mod Power.py | jaswal72/hacker-rank | 95aaa71b4636928664341dc9c6f75d69af5f26ac | [
"MIT"
] | null | null | null | Python/Math/Power Mod Power.py | jaswal72/hacker-rank | 95aaa71b4636928664341dc9c6f75d69af5f26ac | [
"MIT"
] | null | null | null | a=int(input())
b=int(input())
c=int(input())
print pow(a,b)
print pow(a,b,c)
| 12.833333 | 16 | 0.623377 | 18 | 77 | 2.666667 | 0.388889 | 0.5 | 0.375 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 77 | 5 | 17 | 15.4 | 0.685714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.4 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
482d8de3b1f47ab2d0d7c2d39c36cf57fd806f9a | 70 | py | Python | bools/datetime/timedelta.py | lotcher/bools | bdd5c056d7bb6f8c304b56869c49966a9b6af1a1 | [
"MIT"
] | 11 | 2021-06-18T11:11:36.000Z | 2022-02-10T05:59:28.000Z | bools/datetime/timedelta.py | lotcher/bools | bdd5c056d7bb6f8c304b56869c49966a9b6af1a1 | [
"MIT"
] | null | null | null | bools/datetime/timedelta.py | lotcher/bools | bdd5c056d7bb6f8c304b56869c49966a9b6af1a1 | [
"MIT"
] | null | null | null | from datetime import timedelta
class Timedelta(timedelta):
pass
| 11.666667 | 30 | 0.771429 | 8 | 70 | 6.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185714 | 70 | 5 | 31 | 14 | 0.947368 | 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 |
48537630316dad32b2dcddf3786a98ab34c9bac3 | 38,936 | py | Python | tests/invalid_models_tests/test_relative_fields.py | fizista/django | 16f3a6a4c7bab11644d11c2be029374e5095cb56 | [
"BSD-3-Clause"
] | 1 | 2019-02-10T19:33:27.000Z | 2019-02-10T19:33:27.000Z | tests/invalid_models_tests/test_relative_fields.py | fizista/django | 16f3a6a4c7bab11644d11c2be029374e5095cb56 | [
"BSD-3-Clause"
] | null | null | null | tests/invalid_models_tests/test_relative_fields.py | fizista/django | 16f3a6a4c7bab11644d11c2be029374e5095cb56 | [
"BSD-3-Clause"
] | null | null | null | # -*- encoding: utf-8 -*-
from __future__ import unicode_literals
from django.core.checks import Error
from django.db import models
from django.test.utils import override_settings
from django.test.testcases import skipIfDBFeature
from .base import IsolatedModelsTestCase
class RelativeFieldTests(IsolatedModelsTestCa... | 37.510597 | 94 | 0.572683 | 4,109 | 38,936 | 5.235824 | 0.065223 | 0.036302 | 0.031235 | 0.037139 | 0.817514 | 0.781119 | 0.739379 | 0.702705 | 0.667333 | 0.644464 | 0 | 0.012444 | 0.335422 | 38,936 | 1,037 | 95 | 37.54677 | 0.818983 | 0.017259 | 0 | 0.709491 | 0 | 0 | 0.246189 | 0.012472 | 0 | 0 | 0 | 0 | 0.043981 | 1 | 0.068287 | false | 0.015046 | 0.006944 | 0 | 0.167824 | 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 |
6f997a6a6ce02b0840b0af18b4849233bc37f985 | 30 | py | Python | draalcore/models/__init__.py | jojanper/draalcore | 3d3f5a53efe32c721c34d7e48267328a4e9e8402 | [
"MIT"
] | 1 | 2017-04-25T10:54:55.000Z | 2017-04-25T10:54:55.000Z | draalcore/models/__init__.py | jojanper/draalcore | 3d3f5a53efe32c721c34d7e48267328a4e9e8402 | [
"MIT"
] | 1 | 2022-02-10T06:48:36.000Z | 2022-02-10T06:48:36.000Z | draalcore/models/__init__.py | jojanper/draalcore | 3d3f5a53efe32c721c34d7e48267328a4e9e8402 | [
"MIT"
] | null | null | null | from .fields import * # noqa
| 15 | 29 | 0.666667 | 4 | 30 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233333 | 30 | 1 | 30 | 30 | 0.869565 | 0.133333 | 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 |
b5005f5b90507ed2579315c816fdec7d94e88283 | 237 | py | Python | providers/base_provider.py | tophertimzen/sephiroth | 3c0e106197fba506da44b697796297c28f274955 | [
"WTFPL"
] | 1 | 2020-05-19T08:23:36.000Z | 2020-05-19T08:23:36.000Z | providers/base_provider.py | tophertimzen/sephiroth | 3c0e106197fba506da44b697796297c28f274955 | [
"WTFPL"
] | null | null | null | providers/base_provider.py | tophertimzen/sephiroth | 3c0e106197fba506da44b697796297c28f274955 | [
"WTFPL"
] | 1 | 2020-05-19T08:23:41.000Z | 2020-05-19T08:23:41.000Z |
class BaseProvider():
def _get_ranges(self):
raise NotImplementedError
def _process_ranges(self):
raise NotImplementedError
def get_processed_ranges(self):
return self.processed_ranges
| 19.75 | 36 | 0.666667 | 23 | 237 | 6.565217 | 0.478261 | 0.198676 | 0.198676 | 0.450331 | 0.490066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278481 | 237 | 12 | 37 | 19.75 | 0.883041 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.142857 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.