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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
64193ff79c04af71d979ce5a5fceac0954ce5460 | 12,595 | py | Python | tests/test_api.py | bcyran/philipstv | 6037724d5fab0b72265c2de2c0441a64f6e00c00 | [
"MIT"
] | null | null | null | tests/test_api.py | bcyran/philipstv | 6037724d5fab0b72265c2de2c0441a64f6e00c00 | [
"MIT"
] | null | null | null | tests/test_api.py | bcyran/philipstv | 6037724d5fab0b72265c2de2c0441a64f6e00c00 | [
"MIT"
] | null | null | null | from typing import Any, Type
import pytest
from philipstv import (
PhilipsTVAPI,
PhilipsTVAPIMalformedResponseError,
PhilipsTVAPIUnauthorizedError,
PhilipsTVError,
)
from philipstv.model import (
AllChannels,
AmbilightColor,
AmbilightLayer,
AmbilightMode,
AmbilightModeValue,
Am... | 28.560091 | 98 | 0.553394 | 1,194 | 12,595 | 5.651591 | 0.170854 | 0.049793 | 0.061944 | 0.068168 | 0.52623 | 0.442353 | 0.351215 | 0.248814 | 0.161529 | 0.161529 | 0 | 0.024446 | 0.308218 | 12,595 | 440 | 99 | 28.625 | 0.750029 | 0 | 0 | 0.197143 | 0 | 0 | 0.163954 | 0.027709 | 0 | 0 | 0 | 0 | 0.068571 | 1 | 0.062857 | false | 0 | 0.014286 | 0 | 0.077143 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
641bc418f4c4dc36c2dc0b6d80a85e1d6643d581 | 1,651 | py | Python | mvmm/single_view/opt_diagnostics.py | idc9/mvmm | 64fce755a7cd53be9b08278484c7a4c77daf38d1 | [
"MIT"
] | 1 | 2021-08-17T13:22:54.000Z | 2021-08-17T13:22:54.000Z | mvmm/single_view/opt_diagnostics.py | idc9/mvmm | 64fce755a7cd53be9b08278484c7a4c77daf38d1 | [
"MIT"
] | null | null | null | mvmm/single_view/opt_diagnostics.py | idc9/mvmm | 64fce755a7cd53be9b08278484c7a4c77daf38d1 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
# from copy import deepcopy
import numpy as np
from mvmm.viz_utils import set_xaxis_int_ticks
def plot_opt_hist(loss_vals, init_loss_vals=None,
loss_name='loss value',
title='', step_vals=None, inches=10):
loss_val_diffs = np.diff(loss_vals)
... | 27.065574 | 79 | 0.616596 | 255 | 1,651 | 3.764706 | 0.317647 | 0.072917 | 0.1 | 0.066667 | 0.361458 | 0.358333 | 0.3 | 0.252083 | 0.252083 | 0.252083 | 0 | 0.023927 | 0.265899 | 1,651 | 60 | 80 | 27.516667 | 0.768152 | 0.132041 | 0 | 0.305556 | 0 | 0 | 0.042164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.083333 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
641d5526aa245c11c77b4b77e01bc0c1c4e9e4c4 | 2,696 | py | Python | shinyutils/matwrap.py | toddrme2178/shinyutils | c9459f93f76d0486da65a457ce1c2671c52bdc5b | [
"MIT"
] | null | null | null | shinyutils/matwrap.py | toddrme2178/shinyutils | c9459f93f76d0486da65a457ce1c2671c52bdc5b | [
"MIT"
] | null | null | null | shinyutils/matwrap.py | toddrme2178/shinyutils | c9459f93f76d0486da65a457ce1c2671c52bdc5b | [
"MIT"
] | null | null | null | """matwrap.py: wrapper around matplotlib."""
import json
import warnings
from pkg_resources import resource_filename
class MatWrap:
_rc_defaults_path = resource_filename("shinyutils", "data/mplcfg.json")
with open(_rc_defaults_path, "r") as f:
_rc_defaults = json.load(f)
_mpl = None
_plt = N... | 25.923077 | 79 | 0.556751 | 294 | 2,696 | 4.918367 | 0.411565 | 0.058091 | 0.035961 | 0.033195 | 0.130705 | 0.051867 | 0 | 0 | 0 | 0 | 0 | 0.019488 | 0.333828 | 2,696 | 103 | 80 | 26.174757 | 0.785635 | 0.120549 | 0 | 0.166667 | 0 | 0 | 0.158992 | 0.028236 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.076923 | 0.012821 | 0.294872 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
641dd088351667ee7ce3a62e35c4c5f3b6771754 | 3,078 | py | Python | autotest/get_exes.py | MODFLOW-USGS/modflow6 | 6cc0f91b93e0615b68c9239c32cd5bff7f0696b9 | [
"CC0-1.0"
] | 102 | 2017-12-19T09:56:38.000Z | 2022-03-30T01:47:28.000Z | autotest/get_exes.py | MODFLOW-USGS/modflow6 | 6cc0f91b93e0615b68c9239c32cd5bff7f0696b9 | [
"CC0-1.0"
] | 331 | 2018-01-10T21:22:48.000Z | 2022-03-29T05:57:00.000Z | autotest/get_exes.py | MODFLOW-USGS/modflow6 | 6cc0f91b93e0615b68c9239c32cd5bff7f0696b9 | [
"CC0-1.0"
] | 87 | 2017-12-13T21:40:39.000Z | 2022-03-30T05:31:40.000Z | # Get executables
import os
import shutil
import pymake
from framework import running_on_CI
if running_on_CI():
print("running on CI environment")
os.environ["PYMAKE_DOUBLE"] = "1"
# paths to executables for previous versions of MODFLOW
ebindir = os.path.abspath(
os.path.join(os.path.expanduser("~"), ".... | 25.65 | 75 | 0.653996 | 428 | 3,078 | 4.577103 | 0.357477 | 0.045942 | 0.040837 | 0.016335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007077 | 0.219623 | 3,078 | 119 | 76 | 25.865546 | 0.808493 | 0.166667 | 0 | 0 | 0 | 0 | 0.146552 | 0.017241 | 0 | 0 | 0 | 0 | 0.040541 | 1 | 0.081081 | false | 0 | 0.054054 | 0 | 0.148649 | 0.040541 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
641ffda3aaa9896187418b645908b4cbd191a8de | 949 | py | Python | workflow/Strategy.py | YOCKOW/PythonGitHubActionsWorkflowRepresentation | 1e8cb9fd4ade42b01f0c521f659c16b12d7957de | [
"MIT"
] | null | null | null | workflow/Strategy.py | YOCKOW/PythonGitHubActionsWorkflowRepresentation | 1e8cb9fd4ade42b01f0c521f659c16b12d7957de | [
"MIT"
] | null | null | null | workflow/Strategy.py | YOCKOW/PythonGitHubActionsWorkflowRepresentation | 1e8cb9fd4ade42b01f0c521f659c16b12d7957de | [
"MIT"
] | null | null | null | from .Node import Node
from .BooleanNode import BooleanNode
from .MappingNode import MappingNode
from .Matrix import Matrix
from .NumberNode import IntegerNode
from typing import Any, Dict, List
class Strategy(MappingNode):
def __init__(self, info: Dict[str, Any]):
assert isinstance(info, dict)
converted: Di... | 27.911765 | 69 | 0.646997 | 111 | 949 | 5.45045 | 0.405405 | 0.105785 | 0.104132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239199 | 949 | 33 | 70 | 28.757576 | 0.83795 | 0 | 0 | 0 | 0 | 0 | 0.099156 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.066667 | false | 0 | 0.2 | 0.033333 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
642147f2d7a649b4cd903efa6b1d905ea393c7ca | 4,216 | py | Python | dbcron/validators.py | cloudspectatordevelopment/django-dbcron | 53182ca803d1f5d8fd022a1cae79e0c0256bd25f | [
"BSD-3-Clause"
] | null | null | null | dbcron/validators.py | cloudspectatordevelopment/django-dbcron | 53182ca803d1f5d8fd022a1cae79e0c0256bd25f | [
"BSD-3-Clause"
] | null | null | null | dbcron/validators.py | cloudspectatordevelopment/django-dbcron | 53182ca803d1f5d8fd022a1cae79e0c0256bd25f | [
"BSD-3-Clause"
] | null | null | null | from django.core import validators
from django.utils.translation import ugettext_lazy as _
from django.utils.deconstruct import deconstructible
MONTH_MAP = {
'JAN': 1,
'FEB': 2,
'MAR': 3,
'APR': 4,
'MAY': 5,
'JUN': 6,
'JUL': 7,
'AUG': 8,
'SEP': 9,
'OCT': 10,
'NOV': 11,
'... | 27.376623 | 78 | 0.548387 | 441 | 4,216 | 5.047619 | 0.281179 | 0.037736 | 0.121294 | 0.149596 | 0.352201 | 0.331536 | 0.269542 | 0.256065 | 0.220126 | 0.220126 | 0 | 0.017812 | 0.347486 | 4,216 | 153 | 79 | 27.555556 | 0.791349 | 0 | 0 | 0.305344 | 0 | 0 | 0.062144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038168 | false | 0 | 0.022901 | 0.007634 | 0.312977 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6421978a16090177ad88ec238394d851bbfb27bc | 1,103 | py | Python | micromagneticmodel/tests/test_rkky.py | ubermag/micromagneticmodel | 91ad92d26cdbec369a5a41f7b90a17ca5328cd07 | [
"BSD-3-Clause"
] | 5 | 2019-10-21T01:12:16.000Z | 2021-09-24T03:52:30.000Z | micromagneticmodel/tests/test_rkky.py | ubermag/micromagneticmodel | 91ad92d26cdbec369a5a41f7b90a17ca5328cd07 | [
"BSD-3-Clause"
] | 11 | 2019-08-12T22:38:17.000Z | 2022-03-15T00:08:47.000Z | micromagneticmodel/tests/test_rkky.py | ubermag/micromagneticmodel | 91ad92d26cdbec369a5a41f7b90a17ca5328cd07 | [
"BSD-3-Clause"
] | 4 | 2020-06-27T15:36:28.000Z | 2021-12-06T15:08:04.000Z | import re
import pytest
import numpy as np
import discretisedfield as df
import micromagneticmodel as mm
from .checks import check_term
class TestRKKY:
def setup(self):
self.valid_args = [(1, ['a', 'b']),
(-1, ['a', 'bc']),
(0, ['r1', 'r2'])]
s... | 32.441176 | 66 | 0.533998 | 125 | 1,103 | 4.616 | 0.384 | 0.103986 | 0.051993 | 0.013865 | 0.249567 | 0.249567 | 0.249567 | 0 | 0 | 0 | 0 | 0.012262 | 0.334542 | 1,103 | 33 | 67 | 33.424242 | 0.773842 | 0 | 0 | 0.071429 | 0 | 0 | 0.045331 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.107143 | false | 0 | 0.214286 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6421c29517fd50762f06843cef09f1ed5fb8d24e | 1,048 | py | Python | tests/test_commands_status.py | ar90n/kkt | e772860b20231e067973478350a4f0edb8bf5db1 | [
"Apache-2.0"
] | 1 | 2020-09-03T08:19:46.000Z | 2020-09-03T08:19:46.000Z | tests/test_commands_status.py | ar90n/kkt | e772860b20231e067973478350a4f0edb8bf5db1 | [
"Apache-2.0"
] | null | null | null | tests/test_commands_status.py | ar90n/kkt | e772860b20231e067973478350a4f0edb8bf5db1 | [
"Apache-2.0"
] | null | null | null | import pytest
import kkt
from kkt.exception import MetaDataNotFound
from kkt.commands.status import status, status_impl
@pytest.mark.parametrize(
"given, expected",
[
(
{"status": "complete", "failureMessage": None, "user": "user"},
"status: complete",
),
(
... | 28.324324 | 80 | 0.607824 | 108 | 1,048 | 5.75 | 0.37037 | 0.112721 | 0.067633 | 0.083736 | 0.10306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242366 | 1,048 | 36 | 81 | 29.111111 | 0.782116 | 0 | 0 | 0.1 | 0 | 0 | 0.255725 | 0.037214 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6425be78a648f6351f256ea328387bb3f4129437 | 1,460 | py | Python | examples/example_ros_anymal.py | TLasguignes/signal_scope | ad2690df9c7a5f1502c5e7807568b7f4050fcc10 | [
"BSD-3-Clause"
] | 2 | 2021-04-03T15:49:13.000Z | 2021-06-01T08:07:11.000Z | examples/example_ros_anymal.py | TLasguignes/signal_scope | ad2690df9c7a5f1502c5e7807568b7f4050fcc10 | [
"BSD-3-Clause"
] | 1 | 2021-03-18T14:41:09.000Z | 2021-03-18T21:10:05.000Z | examples/example_ros_anymal.py | TLasguignes/signal_scope | ad2690df9c7a5f1502c5e7807568b7f4050fcc10 | [
"BSD-3-Clause"
] | 1 | 2020-12-09T10:20:17.000Z | 2020-12-09T10:20:17.000Z | '''
A working example for signals from Anymal
Plots x,y,z in position and the yaw angle
'''
import numpy
import sys
sys.argv = ['test']
import tf
def getYawDegrees(msg):
'''yaw degrees'''
quaternion = (
msg.pose.pose.orientation.x,
msg.pose.pose.orientation.y,
msg.pose.pose.orienta... | 29.2 | 88 | 0.729452 | 204 | 1,460 | 5.151961 | 0.294118 | 0.066603 | 0.104662 | 0.108468 | 0.439581 | 0.259753 | 0.259753 | 0.259753 | 0.191246 | 0.191246 | 0 | 0.017955 | 0.122603 | 1,460 | 49 | 89 | 29.795918 | 0.802498 | 0.091096 | 0 | 0 | 0 | 0 | 0.136818 | 0.133743 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
642625ac3b2c3acf82bc4a6e8e24c9530afa8666 | 1,366 | py | Python | src/face_detect.py | train255/Silent-Face-Anti-Spoofing | e2137cde55ba4c7b43c2a7d6340d827a106b7404 | [
"Apache-2.0"
] | null | null | null | src/face_detect.py | train255/Silent-Face-Anti-Spoofing | e2137cde55ba4c7b43c2a7d6340d827a106b7404 | [
"Apache-2.0"
] | null | null | null | src/face_detect.py | train255/Silent-Face-Anti-Spoofing | e2137cde55ba4c7b43c2a7d6340d827a106b7404 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 20-6-9 上午10:20
# @Author : zhuying
# @Company : Minivision
# @File : anti_spoof_predict.py
# @Software : PyCharm
import cv2
import math
import numpy as np
class FaceModel:
def __init__(self):
caffemodel = "./resources/detection_model/Widerface-RetinaFace.caffemodel"
... | 40.176471 | 98 | 0.607613 | 176 | 1,366 | 4.573864 | 0.477273 | 0.043478 | 0.074534 | 0.074534 | 0.111801 | 0.062112 | 0 | 0 | 0 | 0 | 0 | 0.048181 | 0.25549 | 1,366 | 34 | 99 | 40.176471 | 0.743363 | 0.098097 | 0 | 0 | 0 | 0 | 0.097064 | 0.083197 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.125 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
642774b4963705c8dd1baff49ac53f72d342febc | 21,645 | py | Python | ipvs.py | akamac/gnlpy | 61abb4b6fda0b7c5e1e7810b3786b75d77cbaff8 | [
"BSD-3-Clause"
] | 176 | 2015-05-20T20:11:27.000Z | 2020-08-24T11:39:49.000Z | ipvs.py | akamac/gnlpy | 61abb4b6fda0b7c5e1e7810b3786b75d77cbaff8 | [
"BSD-3-Clause"
] | 22 | 2015-10-10T06:48:28.000Z | 2020-07-24T13:12:05.000Z | ipvs.py | akamac/gnlpy | 61abb4b6fda0b7c5e1e7810b3786b75d77cbaff8 | [
"BSD-3-Clause"
] | 46 | 2015-05-20T22:22:31.000Z | 2020-07-24T17:29:31.000Z | # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
"""IPVS module
This mod... | 32.30597 | 79 | 0.55611 | 2,439 | 21,645 | 4.714227 | 0.119721 | 0.020351 | 0.019134 | 0.024352 | 0.379283 | 0.313881 | 0.244564 | 0.222908 | 0.17116 | 0.159158 | 0 | 0.012247 | 0.320998 | 21,645 | 669 | 80 | 32.35426 | 0.770089 | 0.046662 | 0 | 0.327172 | 0 | 0.001848 | 0.082398 | 0.002479 | 0 | 0 | 0.000292 | 0 | 0.038817 | 1 | 0.118299 | false | 0 | 0.014787 | 0.044362 | 0.238447 | 0.003697 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
642d621c0f5b8d6ce8cc22ca5eadd03e790a2df1 | 1,814 | py | Python | src/architectures/gqn.py | ae-foster/cresp | 0215842370d3d665133a496d6d971a537400c674 | [
"MIT"
] | 5 | 2021-11-15T22:49:47.000Z | 2022-02-05T01:39:54.000Z | src/architectures/gqn.py | ae-foster/cresp | 0215842370d3d665133a496d6d971a537400c674 | [
"MIT"
] | null | null | null | src/architectures/gqn.py | ae-foster/cresp | 0215842370d3d665133a496d6d971a537400c674 | [
"MIT"
] | null | null | null | import torch
from torch import nn
from torch.nn import functional as F
class GQN_Pool(nn.Module):
def __init__(self, representation_dim, covariate_dim, net=None, **kwargs):
assert representation_dim == 256
assert (isinstance(net, nn.Identity) or (net is None))
super(GQN_Pool, self).__init_... | 36.28 | 92 | 0.597574 | 274 | 1,814 | 3.828467 | 0.273723 | 0.06101 | 0.068637 | 0.047664 | 0.387035 | 0.312679 | 0.197331 | 0.125834 | 0.125834 | 0 | 0 | 0.081694 | 0.271224 | 1,814 | 49 | 93 | 37.020408 | 0.7118 | 0.072767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.058824 | false | 0 | 0.088235 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
642d803688df88f4bfdeaaef4cc078fe36396c9e | 622 | py | Python | test/example/weather.py | lawsn/crawlingpy | d8737fb4964bf2492fbd91557cd6a152dd80889a | [
"Apache-2.0"
] | null | null | null | test/example/weather.py | lawsn/crawlingpy | d8737fb4964bf2492fbd91557cd6a152dd80889a | [
"Apache-2.0"
] | null | null | null | test/example/weather.py | lawsn/crawlingpy | d8737fb4964bf2492fbd91557cd6a152dd80889a | [
"Apache-2.0"
] | null | null | null | import requests
from bs4 import BeautifulSoup
url = 'https://weather.com/weather/tenday/l/'
param = 'b757e0078b0b135DetailsSummary--tempValue--RcZzi0973ea8930d24ef111c7b8457939f4e2046fc8bbe48119f17'
response = requests.get(url + param)
print(response.text)
soup = BeautifulSoup(response.text, 'html.parser')
dateTime... | 25.916667 | 106 | 0.766881 | 68 | 622 | 7.014706 | 0.573529 | 0.050314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089286 | 0.099678 | 622 | 24 | 107 | 25.916667 | 0.7625 | 0.131833 | 0 | 0 | 0 | 0 | 0.412313 | 0.322761 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.230769 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
642dcacaee4a8f97f5492f6645961bdd1c1df4eb | 2,857 | py | Python | CreateImages.py | AlJ95/VanPixel-CNN-approach | ce49af871d31211263ea0a14840ed3456b024e23 | [
"CC0-1.0"
] | null | null | null | CreateImages.py | AlJ95/VanPixel-CNN-approach | ce49af871d31211263ea0a14840ed3456b024e23 | [
"CC0-1.0"
] | null | null | null | CreateImages.py | AlJ95/VanPixel-CNN-approach | ce49af871d31211263ea0a14840ed3456b024e23 | [
"CC0-1.0"
] | null | null | null | import random as r
import cv2
import numpy as np
from skimage.util import random_noise
def create_figs(image, image_pre_result, no_of_objects=1):
for i in range(no_of_objects):
width = r.randint(0, image.shape[0] / 2)
height = r.randint(0, image.shape[1] / 2)
xpos = r.randint(0, ... | 40.239437 | 74 | 0.500525 | 375 | 2,857 | 3.701333 | 0.221333 | 0.032421 | 0.070605 | 0.090778 | 0.51585 | 0.442363 | 0.345821 | 0.311239 | 0.263689 | 0.239193 | 0 | 0.069617 | 0.351418 | 2,857 | 70 | 75 | 40.814286 | 0.679439 | 0 | 0 | 0.068966 | 0 | 0 | 0.024758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
642dd59683d2234e13b5d5f7591dbab7c437923f | 3,697 | py | Python | development/testing/_modules/auxiliary_scalability.py | boryana-ilieva/respy | c3f600eefbb54d4f34ae2cc1e52d4d32c03ba0dc | [
"MIT"
] | null | null | null | development/testing/_modules/auxiliary_scalability.py | boryana-ilieva/respy | c3f600eefbb54d4f34ae2cc1e52d4d32c03ba0dc | [
"MIT"
] | null | null | null | development/testing/_modules/auxiliary_scalability.py | boryana-ilieva/respy | c3f600eefbb54d4f34ae2cc1e52d4d32c03ba0dc | [
"MIT"
] | 1 | 2020-10-31T19:40:22.000Z | 2020-10-31T19:40:22.000Z | from datetime import datetime
import datetime as dt
import shlex
import os
from auxiliary_shared import strfdelta
from config import SPEC_DIR
import respy
def get_actual_evaluations():
with open('est.respy.info', 'r') as infile:
for line in infile.readlines():
list_ = shlex.split(line)
... | 30.056911 | 80 | 0.614823 | 478 | 3,697 | 4.508368 | 0.290795 | 0.059397 | 0.030626 | 0.041763 | 0.260789 | 0.217169 | 0.185615 | 0.162413 | 0.112297 | 0.07703 | 0 | 0.011038 | 0.264809 | 3,697 | 122 | 81 | 30.303279 | 0.781825 | 0.083311 | 0 | 0.2 | 0 | 0 | 0.116279 | 0.019678 | 0 | 0 | 0 | 0 | 0.0125 | 1 | 0.0375 | false | 0 | 0.0875 | 0 | 0.1375 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6430502b11619ea1bdfdd8e1744178dab3548462 | 2,006 | py | Python | src/app/database/model/Revisions.py | william920429/repair_system | 27b5f4612a48a326943d23c2acce326070134228 | [
"MIT"
] | 1 | 2021-05-18T17:28:09.000Z | 2021-05-18T17:28:09.000Z | src/app/database/model/Revisions.py | SiriusKoan/repair_system | 6524e7a8d5954b6e16b34b9d88db9d455ef3dd1d | [
"MIT"
] | 3 | 2021-05-02T06:00:47.000Z | 2021-05-05T11:42:58.000Z | src/app/database/model/Revisions.py | SiriusKoan/repair_system | 6524e7a8d5954b6e16b34b9d88db9d455ef3dd1d | [
"MIT"
] | 3 | 2021-04-15T13:03:36.000Z | 2021-05-06T03:13:59.000Z | import datetime
from .common import db, timeformat
class Revisions(db.Model):
"""
After the admin views the reports, they will make a revision record.
The table is connected to `Records`, `Users` and `Statuses`.
id: PK.
record_id: `id` in `Records` table.
user_id: `id` in `Users` table.
s... | 37.849057 | 145 | 0.664008 | 264 | 2,006 | 4.82197 | 0.295455 | 0.094266 | 0.043991 | 0.037706 | 0.180676 | 0.119403 | 0.084839 | 0.084839 | 0.084839 | 0.084839 | 0 | 0.003859 | 0.224826 | 2,006 | 52 | 146 | 38.576923 | 0.814791 | 0.1999 | 0 | 0 | 0 | 0.029412 | 0.108264 | 0.083921 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.058824 | 0.029412 | 0.441176 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6432e2af24456be3ab041cf5afca3a2790d37a5b | 3,093 | py | Python | libs/senseAll.py | WyattSP/Remote-Air-Quality-Station | 908555591f6f9f183c68df01c6569171019e2246 | [
"MIT"
] | null | null | null | libs/senseAll.py | WyattSP/Remote-Air-Quality-Station | 908555591f6f9f183c68df01c6569171019e2246 | [
"MIT"
] | null | null | null | libs/senseAll.py | WyattSP/Remote-Air-Quality-Station | 908555591f6f9f183c68df01c6569171019e2246 | [
"MIT"
] | null | null | null | from sds011sensor import *
import aqi
import time
from datetime import datetime
import argparse
import os
import csv
import timeit
from sense_hat import SenseHat
#Initate arg parser
my_parser = argparse.ArgumentParser(description='Input Parameters')
#Create args
my_parser.add_argument('-a',
t... | 24.164063 | 84 | 0.558358 | 451 | 3,093 | 3.649667 | 0.312639 | 0.069259 | 0.09842 | 0.123937 | 0.138518 | 0.113001 | 0.081409 | 0.038882 | 0.038882 | 0.038882 | 0 | 0.033412 | 0.312965 | 3,093 | 127 | 85 | 24.354331 | 0.741176 | 0.041707 | 0 | 0.263158 | 0 | 0 | 0.093063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.010526 | 0.094737 | 0 | 0.178947 | 0.052632 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
643504529c3cf23bc6fd859398bf2d84dc5211e8 | 4,373 | py | Python | validation/cta-1dc/make.py | QRemy/gammapy-benchmarks | 7f6170e88284958056fbdf468fb890787a13f153 | [
"BSD-3-Clause"
] | null | null | null | validation/cta-1dc/make.py | QRemy/gammapy-benchmarks | 7f6170e88284958056fbdf468fb890787a13f153 | [
"BSD-3-Clause"
] | null | null | null | validation/cta-1dc/make.py | QRemy/gammapy-benchmarks | 7f6170e88284958056fbdf468fb890787a13f153 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
"""Run Gammapy validation: CTA 1DC"""
import logging
import yaml
import matplotlib.pyplot as plt
from gammapy.analysis import Analysis, AnalysisConfig
def target_config3d(config_file, target_config_file, tag):
"""Create analyis configuration for out source."""
targets_config_ = yaml.safe_... | 37.376068 | 87 | 0.661788 | 572 | 4,373 | 4.835664 | 0.246504 | 0.108098 | 0.109906 | 0.041215 | 0.488431 | 0.404555 | 0.322849 | 0.281634 | 0.245119 | 0.245119 | 0 | 0.00912 | 0.147496 | 4,373 | 116 | 88 | 37.698276 | 0.732833 | 0.034759 | 0 | 0.174419 | 0 | 0 | 0.232691 | 0.055675 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034884 | false | 0 | 0.046512 | 0 | 0.093023 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
643ebb9e00e5a46b9e13bfbe41b37466798f580a | 2,994 | py | Python | layers/dilated_convolution.py | giovgiac/neptune | a3cc256d3f3d833be2b8654131726ab48482f5e1 | [
"MIT"
] | 4 | 2021-03-06T10:00:43.000Z | 2022-02-21T16:09:48.000Z | layers/dilated_convolution.py | giovgiac/neptune | a3cc256d3f3d833be2b8654131726ab48482f5e1 | [
"MIT"
] | null | null | null | layers/dilated_convolution.py | giovgiac/neptune | a3cc256d3f3d833be2b8654131726ab48482f5e1 | [
"MIT"
] | 1 | 2020-12-21T14:50:26.000Z | 2020-12-21T14:50:26.000Z | # dilated_convolution.py
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from layers.normalization import InstanceNormalization
from typing import Tuple, Union
import tensorflow as tf
class DilatedConv2D(tf.keras.layers.Layer):
def __init__(self, fil... | 38.384615 | 120 | 0.618236 | 374 | 2,994 | 4.719251 | 0.224599 | 0.101983 | 0.066289 | 0.081586 | 0.372238 | 0.372238 | 0.372238 | 0.295184 | 0.295184 | 0.177337 | 0 | 0.030942 | 0.287575 | 2,994 | 77 | 121 | 38.883117 | 0.796531 | 0.046426 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0 | 0.105263 | 0 | 0.175439 | 0.017544 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
643f3606fb03079a2aebe0691fe7ccf424370f28 | 1,605 | py | Python | controller/models/models.py | zhouzhibo-byte/odoo14 | 8b9df536e09d56d036421cd12fe141116a545dd8 | [
"Unlicense"
] | null | null | null | controller/models/models.py | zhouzhibo-byte/odoo14 | 8b9df536e09d56d036421cd12fe141116a545dd8 | [
"Unlicense"
] | null | null | null | controller/models/models.py | zhouzhibo-byte/odoo14 | 8b9df536e09d56d036421cd12fe141116a545dd8 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
from odoo import models, fields,api
class LibraryBook(models.Model):
_name = 'library.book1'
_description = 'Library Book'
_order = 'date_release desc, name'
name = fields.Char('Title', required=True)
short_name = fields.Char('Short Title', required=True)
date_release ... | 31.470588 | 95 | 0.530841 | 173 | 1,605 | 4.751445 | 0.491329 | 0.043796 | 0.058394 | 0.069343 | 0.1618 | 0.1618 | 0.131387 | 0.131387 | 0.131387 | 0.131387 | 0 | 0.012635 | 0.309657 | 1,605 | 51 | 96 | 31.470588 | 0.729242 | 0.07352 | 0 | 0.216216 | 0 | 0 | 0.212838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.027027 | 0.027027 | 0.486486 | 0.054054 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
643f658432e2b5800e1eef8b53a2ef7b6a24acc9 | 472 | py | Python | 1.py | aayushgupta97/advent_of_code_2020 | dbf5291f1cf4bd5855bbc54cb560ac3c7a7ac26c | [
"MIT"
] | null | null | null | 1.py | aayushgupta97/advent_of_code_2020 | dbf5291f1cf4bd5855bbc54cb560ac3c7a7ac26c | [
"MIT"
] | null | null | null | 1.py | aayushgupta97/advent_of_code_2020 | dbf5291f1cf4bd5855bbc54cb560ac3c7a7ac26c | [
"MIT"
] | null | null | null | with open("data/input_1.txt", 'r') as f:
input_data = f.readlines()
data = [int(i.replace("\n", "")) for i in input_data]
print(len(data))
def part_1():
for i in data:
for j in data:
if i + j == 2020:
print(i * j)
def part_2():
for i in data:
... | 19.666667 | 53 | 0.423729 | 71 | 472 | 2.732394 | 0.366197 | 0.154639 | 0.092784 | 0.103093 | 0.278351 | 0.206186 | 0.206186 | 0.206186 | 0 | 0 | 0 | 0.045627 | 0.442797 | 472 | 24 | 54 | 19.666667 | 0.692015 | 0 | 0 | 0.235294 | 0 | 0 | 0.040169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0 | 0.117647 | 0.176471 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
643f6db20affdc124c5bd15106d9960bdbf837f9 | 661 | py | Python | Pdf to Audio Book Maker.py | farhan1503001/Beginners-Python-Projects | 67c2cfc426cad6dcbb148252b9845aeaef78cb57 | [
"MIT"
] | null | null | null | Pdf to Audio Book Maker.py | farhan1503001/Beginners-Python-Projects | 67c2cfc426cad6dcbb148252b9845aeaef78cb57 | [
"MIT"
] | null | null | null | Pdf to Audio Book Maker.py | farhan1503001/Beginners-Python-Projects | 67c2cfc426cad6dcbb148252b9845aeaef78cb57 | [
"MIT"
] | null | null | null | import pyttsx3
import PyPDF2
from tkinter.filedialog import *
#Ask for book file
book_file=askopenfilename()
pdfreader=PyPDF2.PdfFileReader(book_file)#Initialize Reading the pdf file
num_pages=pdfreader.numPages#Finds the number of pages in that book
#Now iterate through each and every page and convert that to ... | 38.882353 | 74 | 0.765507 | 99 | 661 | 4.989899 | 0.484848 | 0.048583 | 0.097166 | 0.072874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007326 | 0.173979 | 661 | 17 | 75 | 38.882353 | 0.897436 | 0.400908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
643fa9180d34b45a3bfb22d963256b7d5985659e | 2,857 | py | Python | cose/messages/macmessage.py | mpzaborski/pycose | 1c63b272f551a69e411063937a070c1c0479f8e0 | [
"BSD-3-Clause"
] | null | null | null | cose/messages/macmessage.py | mpzaborski/pycose | 1c63b272f551a69e411063937a070c1c0479f8e0 | [
"BSD-3-Clause"
] | null | null | null | cose/messages/macmessage.py | mpzaborski/pycose | 1c63b272f551a69e411063937a070c1c0479f8e0 | [
"BSD-3-Clause"
] | null | null | null | """
MACed Message with Recipients
COSE_Mac = [
Headers,
payload : bstr / nil,
tag : bstr,
recipients :[+COSE_recipient]
]
"""
from typing import Optional, List
import cbor2
from cose import CoseMessage
from cose.messages import cosemessage, maccommon
from cose.attributes.algorithms import Co... | 31.054348 | 117 | 0.60413 | 318 | 2,857 | 5.248428 | 0.31761 | 0.033553 | 0.019173 | 0.013182 | 0.098262 | 0.098262 | 0.055123 | 0.055123 | 0.055123 | 0 | 0 | 0.005958 | 0.295065 | 2,857 | 91 | 118 | 31.395604 | 0.822741 | 0.076304 | 0 | 0.065574 | 0 | 0.016393 | 0.090667 | 0.029714 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065574 | false | 0 | 0.114754 | 0.016393 | 0.278689 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff218524b954b48397bd6cee491e5e897272d086 | 8,083 | py | Python | V1/oer_glidervsCTD_plot.py | NOAA-PMEL/EcoFOCI_OculusGlider | 5655c0e173432768706416932c94a089a3e7993f | [
"Unlicense"
] | 2 | 2018-04-12T19:49:05.000Z | 2020-10-01T11:46:48.000Z | V1/oer_glidervsCTD_plot.py | NOAA-PMEL/EcoFOCI_OculusGlider | 5655c0e173432768706416932c94a089a3e7993f | [
"Unlicense"
] | null | null | null | V1/oer_glidervsCTD_plot.py | NOAA-PMEL/EcoFOCI_OculusGlider | 5655c0e173432768706416932c94a089a3e7993f | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
"""
Background:
--------
oer_glidervsCTD_plot.py
Purpose:
--------
History:
--------
"""
import argparse, os
import numpy as np
import calc.aanderaa_corrO2_sal as optode_O2_corr
from plots.profile_plot import CTDProfilePlot
import io_utils.EcoFOCI_netCDF_read as eFOCI_ncread
# V... | 32.857724 | 107 | 0.601633 | 1,022 | 8,083 | 4.536204 | 0.199609 | 0.022002 | 0.035591 | 0.037964 | 0.591242 | 0.553926 | 0.531924 | 0.483822 | 0.44931 | 0.44931 | 0 | 0.038498 | 0.222318 | 8,083 | 245 | 108 | 32.991837 | 0.699014 | 0.047755 | 0 | 0.538462 | 0 | 0 | 0.105023 | 0.010047 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00641 | false | 0 | 0.044872 | 0 | 0.057692 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff2233bb02f187b2c1f54b2c72ddfd6822179595 | 1,551 | py | Python | scripts/operator/delete_operators_from_quay.py | snyk-schmidtty/kubernetes-monitor | 58811f1fea6673561806811abfa70292ca6a4f07 | [
"Apache-2.0"
] | null | null | null | scripts/operator/delete_operators_from_quay.py | snyk-schmidtty/kubernetes-monitor | 58811f1fea6673561806811abfa70292ca6a4f07 | [
"Apache-2.0"
] | 5 | 2021-02-27T03:16:34.000Z | 2021-02-27T03:17:58.000Z | scripts/operator/delete_operators_from_quay.py | snyk-schmidtty/kubernetes-monitor | 58811f1fea6673561806811abfa70292ca6a4f07 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python3
"""Delete all Operators from the Quay Snyk Operator repository
Args:
username (str): Quay username
password (str): Quay password
"""
from requests import get, delete
from json import loads
from get_quay_token import getQuayToken
from typing import List, Dict
from sys import argv
Package ... | 24.234375 | 81 | 0.63314 | 177 | 1,551 | 5.451977 | 0.418079 | 0.046632 | 0.034197 | 0.043523 | 0.117098 | 0.117098 | 0.097409 | 0.097409 | 0.097409 | 0.097409 | 0 | 0.004237 | 0.239201 | 1,551 | 63 | 82 | 24.619048 | 0.813559 | 0.098646 | 0 | 0 | 0 | 0 | 0.200575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0.04878 | 0.121951 | 0.02439 | 0.292683 | 0.073171 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff266552067c871f264f181ad65f6b4259ee89bd | 11,031 | py | Python | pull_requests_and_issues.py | andreasscherbaum/github_issue_exporter | 95e01b7dd90250393b4550502445ab6c0f821e7a | [
"Apache-2.0"
] | null | null | null | pull_requests_and_issues.py | andreasscherbaum/github_issue_exporter | 95e01b7dd90250393b4550502445ab6c0f821e7a | [
"Apache-2.0"
] | null | null | null | pull_requests_and_issues.py | andreasscherbaum/github_issue_exporter | 95e01b7dd90250393b4550502445ab6c0f821e7a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Download GitHub Issued and PR as CSV
#
# written by Andreas 'ads' Scherbaum <andreas@scherbaum.la>
#
# version: 0.5 2016-08-27
# initial version
# 1.0 2016-09-04
# update help
# add options
# remov... | 31.161017 | 182 | 0.581996 | 1,336 | 11,031 | 4.723054 | 0.247006 | 0.062758 | 0.073217 | 0.045642 | 0.19683 | 0.128526 | 0.080032 | 0.052932 | 0.041838 | 0.041838 | 0 | 0.024762 | 0.275134 | 11,031 | 353 | 183 | 31.249292 | 0.764382 | 0.142598 | 0 | 0.210046 | 0 | 0 | 0.192002 | 0.00344 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018265 | false | 0 | 0.105023 | 0 | 0.136986 | 0.050228 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff2e375a8f50378a13a348c074037b0b1fd28807 | 1,035 | py | Python | util/security/test/test_secret.py | sferich888/quay | 4672db1df76874238baf134d04e74112ac9f630d | [
"Apache-2.0"
] | null | null | null | util/security/test/test_secret.py | sferich888/quay | 4672db1df76874238baf134d04e74112ac9f630d | [
"Apache-2.0"
] | null | null | null | util/security/test/test_secret.py | sferich888/quay | 4672db1df76874238baf134d04e74112ac9f630d | [
"Apache-2.0"
] | null | null | null | import uuid
import pytest
from util.security.secret import convert_secret_key
@pytest.mark.parametrize(
"config_secret_key, expected_secret_key",
[
pytest.param("somesecretkey", b"somesecretkeysomesecretkeysomese", id="Some string"),
pytest.param("255", b"\xff" * 32, id="Some int that can be ... | 34.5 | 102 | 0.675362 | 128 | 1,035 | 5.25 | 0.429688 | 0.174107 | 0.107143 | 0.102679 | 0.40625 | 0.165179 | 0 | 0 | 0 | 0 | 0 | 0.133085 | 0.223188 | 1,035 | 29 | 103 | 35.689655 | 0.702736 | 0 | 0 | 0.16 | 0 | 0.04 | 0.337198 | 0.131401 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0.04 | false | 0 | 0.12 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff31cc51ee4cb699318f8c7e3d04f5809d3e62ad | 3,395 | py | Python | socket/app.py | cheeseywhiz/cheeseywhiz | 51f6651ddbaeebd14d9ce77776bc4cf3a95511c4 | [
"MIT"
] | null | null | null | socket/app.py | cheeseywhiz/cheeseywhiz | 51f6651ddbaeebd14d9ce77776bc4cf3a95511c4 | [
"MIT"
] | null | null | null | socket/app.py | cheeseywhiz/cheeseywhiz | 51f6651ddbaeebd14d9ce77776bc4cf3a95511c4 | [
"MIT"
] | null | null | null | """A sample custom HTTP server."""
import functools
import html
import traceback
import collect
import server
server.Logger.name = __file__
HTML_TMPL = '''\
<html>
<head>
<link rel="stylesheet" type="text/css" href="/myStyle.css"/>
</head>
<body id="consolas">
%s</body>
</html>
'''
LINK_HOME = '<a href="/">Home<... | 21.762821 | 73 | 0.613844 | 442 | 3,395 | 4.533937 | 0.300905 | 0.049401 | 0.033932 | 0.023952 | 0.01996 | 0.01996 | 0 | 0 | 0 | 0 | 0 | 0.01027 | 0.225626 | 3,395 | 155 | 74 | 21.903226 | 0.751997 | 0.008247 | 0 | 0.172414 | 0 | 0.008621 | 0.255876 | 0.04701 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112069 | false | 0 | 0.043103 | 0.034483 | 0.258621 | 0.008621 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff32f68fb44dc05b704c9e1bf005ac75b155b258 | 1,512 | py | Python | services/web/server/src/simcore_service_webserver/projects/projects_tags_handlers.py | colinRawlings/osparc-simcore | bf2f18d5bc1e574d5f4c238d08ad15156184c310 | [
"MIT"
] | 25 | 2018-04-13T12:44:12.000Z | 2022-03-12T15:01:17.000Z | services/web/server/src/simcore_service_webserver/projects/projects_tags_handlers.py | colinRawlings/osparc-simcore | bf2f18d5bc1e574d5f4c238d08ad15156184c310 | [
"MIT"
] | 2,553 | 2018-01-18T17:11:55.000Z | 2022-03-31T16:26:40.000Z | services/web/server/src/simcore_service_webserver/projects/projects_tags_handlers.py | mrnicegyu11/osparc-simcore | b6fa6c245dbfbc18cc74a387111a52de9b05d1f4 | [
"MIT"
] | 20 | 2018-01-18T19:45:33.000Z | 2022-03-29T07:08:47.000Z | """ Handlers for CRUD operations on /projects/{*}/tags/{*}
"""
import logging
from aiohttp import web
from .._meta import api_version_prefix as VTAG
from ..login.decorators import RQT_USERID_KEY, login_required
from ..security_decorators import permission_required
from .projects_db import APP_PROJECT_DBAPI, Project... | 28 | 84 | 0.71164 | 207 | 1,512 | 4.89372 | 0.31401 | 0.049358 | 0.063179 | 0.039487 | 0.560711 | 0.560711 | 0.560711 | 0.560711 | 0.560711 | 0.560711 | 0 | 0 | 0.166667 | 1,512 | 53 | 85 | 28.528302 | 0.803968 | 0.035714 | 0 | 0.432432 | 0 | 0 | 0.129055 | 0.067633 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.162162 | 0 | 0.216216 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff331d0933475a031554907cd3c4b819e0f29798 | 1,362 | py | Python | audioToJummbox/main.py | KeeyanGhoreshi/AudioToJummbox | aaf9a64e47367ff1e375916ffeab92355322bd99 | [
"MIT"
] | null | null | null | audioToJummbox/main.py | KeeyanGhoreshi/AudioToJummbox | aaf9a64e47367ff1e375916ffeab92355322bd99 | [
"MIT"
] | null | null | null | audioToJummbox/main.py | KeeyanGhoreshi/AudioToJummbox | aaf9a64e47367ff1e375916ffeab92355322bd99 | [
"MIT"
] | null | null | null | import argparse
import os
import sys
import logging
from audioToJummbox import converter
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument("infile", help="The audio file to convert")
parser.add_argument("--base", "-b", default="./resources/template.json", help="The file used as the b... | 33.219512 | 148 | 0.637298 | 183 | 1,362 | 4.655738 | 0.448087 | 0.052817 | 0.099765 | 0.030516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017127 | 0.228341 | 1,362 | 41 | 149 | 33.219512 | 0.79353 | 0 | 0 | 0.054054 | 0 | 0 | 0.25752 | 0.033749 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.135135 | 0 | 0.216216 | 0.027027 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff34e2899bffacd28b1fe087f784f173acd09a05 | 18,680 | py | Python | src/menu_screen.py | dcripplinger/rotj | 4de46b0e39e3971dd23650a28010bd90b3f637d2 | [
"MIT"
] | 5 | 2019-11-03T21:27:17.000Z | 2021-12-08T04:38:50.000Z | src/menu_screen.py | dcripplinger/rotj | 4de46b0e39e3971dd23650a28010bd90b3f637d2 | [
"MIT"
] | 10 | 2018-01-06T03:56:17.000Z | 2022-02-17T22:04:39.000Z | src/menu_screen.py | dcripplinger/rotj | 4de46b0e39e3971dd23650a28010bd90b3f637d2 | [
"MIT"
] | 1 | 2018-01-06T03:21:51.000Z | 2018-01-06T03:21:51.000Z | # -*- coding: UTF-8 -*-
import time
import pygame
from pygame.locals import *
from constants import BLACK, GAME_WIDTH, HQ_LOCATIONS
from helpers import create_save_state, erase_save_state, is_half_second, load_save_states, copy_save_state
from text import create_prompt, MenuBox, MenuGrid, TextBox
MAIN_MENU = [
... | 45.672372 | 147 | 0.59652 | 2,401 | 18,680 | 4.36818 | 0.086214 | 0.078185 | 0.080092 | 0.052536 | 0.718154 | 0.599066 | 0.508009 | 0.455378 | 0.3914 | 0.31331 | 0 | 0.006773 | 0.280782 | 18,680 | 408 | 148 | 45.784314 | 0.7738 | 0.00803 | 0 | 0.494709 | 0 | 0.002646 | 0.066775 | 0.002483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063492 | false | 0 | 0.015873 | 0.005291 | 0.087302 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff37239f95e4e3ea9734c1a1abe1ff10c0e7a235 | 1,033 | py | Python | apps/groups/urls.py | sgazda94/dj_schulx | c6d2086201b80bb007df34be6b623e3001bf7446 | [
"MIT"
] | null | null | null | apps/groups/urls.py | sgazda94/dj_schulx | c6d2086201b80bb007df34be6b623e3001bf7446 | [
"MIT"
] | 1 | 2022-03-28T22:19:01.000Z | 2022-03-28T22:19:01.000Z | apps/groups/urls.py | sgazda94/dj_schulx | c6d2086201b80bb007df34be6b623e3001bf7446 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = "groups"
urlpatterns = [
path("", views.GroupListView.as_view(), name="group-list"),
# group
path("<int:pk>", views.GroupDetailView.as_view(), name="group-detail"),
path("create/", views.GroupCreateView.as_view(), name="group-create"),
p... | 28.694444 | 83 | 0.604066 | 120 | 1,033 | 5.083333 | 0.266667 | 0.088525 | 0.147541 | 0.122951 | 0.155738 | 0.122951 | 0.122951 | 0 | 0 | 0 | 0 | 0 | 0.206196 | 1,033 | 35 | 84 | 29.514286 | 0.743902 | 0.011617 | 0 | 0.266667 | 0 | 0 | 0.289784 | 0.130648 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff380efa06c35f4afffb0d74a5bad4060b622804 | 5,792 | py | Python | baseline2D.py | lruthotto/NeuralOC | 3f37c7349527fb1f5890077ebe987f2f77486a54 | [
"MIT"
] | 13 | 2021-05-12T11:52:53.000Z | 2022-03-30T14:50:28.000Z | baseline2D.py | lruthotto/NeuralOC | 3f37c7349527fb1f5890077ebe987f2f77486a54 | [
"MIT"
] | null | null | null | baseline2D.py | lruthotto/NeuralOC | 3f37c7349527fb1f5890077ebe987f2f77486a54 | [
"MIT"
] | 3 | 2021-04-20T08:07:50.000Z | 2022-02-15T22:37:12.000Z | # baseline2D.py
# baseline method for problems using the Cross2D object
import math
import torch
import argparse
from src.utils import normpdf
from src.initProb import *
from src.OCflow import ocG
from src.plotter import *
parser = argparse.ArgumentParser('Baseline')
parser.add_argument(
'--data', choices=['soft... | 34.891566 | 141 | 0.577866 | 825 | 5,792 | 4.002424 | 0.294545 | 0.019079 | 0.036039 | 0.009691 | 0.162932 | 0.137795 | 0.12871 | 0.112962 | 0.106905 | 0.068141 | 0 | 0.039271 | 0.261395 | 5,792 | 165 | 142 | 35.10303 | 0.732585 | 0.200276 | 0 | 0.038835 | 0 | 0.009709 | 0.128064 | 0.005078 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019417 | false | 0 | 0.067961 | 0 | 0.106796 | 0.048544 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff38bd994fdfd83262984d03a2c5fd5b0d4567e2 | 1,419 | py | Python | mbus_ref/mbus_controlframe.py | gideoncaringal/pyMeterBus | f2489425f156ec43dc408e343f69ece074cb1fba | [
"BSD-3-Clause"
] | null | null | null | mbus_ref/mbus_controlframe.py | gideoncaringal/pyMeterBus | f2489425f156ec43dc408e343f69ece074cb1fba | [
"BSD-3-Clause"
] | null | null | null | mbus_ref/mbus_controlframe.py | gideoncaringal/pyMeterBus | f2489425f156ec43dc408e343f69ece074cb1fba | [
"BSD-3-Clause"
] | 1 | 2019-12-05T13:49:04.000Z | 2019-12-05T13:49:04.000Z | from mbus_h import *
from mbus_telegram import *
from exceptions import *
class MBusControlFrame(MBusTelegram):
def __init__(self, dbuf=None):
self.base_size = MBUS_FRAME_BASE_SIZE_CONTROL
return
def compute_crc(self):
return (self.control + self.address + self.control_information) % 256
def check_crc(sel... | 30.847826 | 73 | 0.693446 | 185 | 1,419 | 5.037838 | 0.324324 | 0.183476 | 0.055794 | 0.054721 | 0.171674 | 0.06867 | 0.06867 | 0 | 0 | 0 | 0 | 0.01991 | 0.221283 | 1,419 | 45 | 74 | 31.533333 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.044397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.088235 | 0.058824 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff3de2b458b0ec727bd41816ccf0ff6f78bbd977 | 33,996 | py | Python | pytorch_library/utils_training.py | MarioProjects/pytorchlib | 81ea32304d899fbd10ae1efe1d124c0d7bc96f5c | [
"MIT"
] | 1 | 2018-12-05T17:11:47.000Z | 2018-12-05T17:11:47.000Z | pytorch_library/utils_training.py | MarioProjects/pytorchlib | 81ea32304d899fbd10ae1efe1d124c0d7bc96f5c | [
"MIT"
] | null | null | null | pytorch_library/utils_training.py | MarioProjects/pytorchlib | 81ea32304d899fbd10ae1efe1d124c0d7bc96f5c | [
"MIT"
] | null | null | null | import types
import numpy as np
import torch
import math
from torch import nn, optim
import torch.nn.functional as F
from torch.autograd.variable import Variable
CROSS_ENTROPY_ONE_HOT_WARNING = False
def to_categorical(y, num_classes=None, dtype='float32'):
"""Converts a class vector (integers) to bina... | 42.978508 | 185 | 0.6011 | 4,490 | 33,996 | 4.412249 | 0.139866 | 0.036343 | 0.01802 | 0.01802 | 0.583161 | 0.551966 | 0.540912 | 0.529655 | 0.524002 | 0.515875 | 0 | 0.016981 | 0.27765 | 33,996 | 791 | 186 | 42.978508 | 0.789754 | 0.329862 | 0 | 0.546667 | 0 | 0 | 0.034294 | 0 | 0 | 0 | 0 | 0.002528 | 0.016 | 1 | 0.069333 | false | 0 | 0.018667 | 0.008 | 0.157333 | 0.010667 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff3e34a66b19db98dc46a9bddfa39058221a3e0e | 1,178 | py | Python | augly/utils/base_paths.py | Ierezell/AugLy | a7dca8c36bc05dbd7694373fe9b883d6ff720f56 | [
"MIT"
] | 1 | 2021-09-29T21:27:50.000Z | 2021-09-29T21:27:50.000Z | augly/utils/base_paths.py | Ierezell/AugLy | a7dca8c36bc05dbd7694373fe9b883d6ff720f56 | [
"MIT"
] | null | null | null | augly/utils/base_paths.py | Ierezell/AugLy | a7dca8c36bc05dbd7694373fe9b883d6ff720f56 | [
"MIT"
] | 1 | 2021-07-02T13:08:55.000Z | 2021-07-02T13:08:55.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
import os
MODULE_BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# asset paths
ASSETS_BASE_DIR = os.path.join(MODULE_BASE_DIR, "assets")
AUDIO_ASSETS_DIR = os.path.join(ASSETS_BASE_DIR, "audio")
TEXT_DIR = os.path.join(ASSETS_BASE_DIR, ... | 40.62069 | 88 | 0.797963 | 183 | 1,178 | 4.759563 | 0.256831 | 0.110218 | 0.160735 | 0.104478 | 0.432836 | 0.432836 | 0.353617 | 0.174512 | 0 | 0 | 0 | 0.000921 | 0.078098 | 1,178 | 28 | 89 | 42.071429 | 0.801105 | 0.078947 | 0 | 0 | 0 | 0 | 0.13876 | 0.020352 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff3f61dcc346db3af4cf5a36041b057887e5a981 | 1,639 | py | Python | venv/Lib/site-packages/transliterate/tests/data/default.py | jedeland/jedel_name_generator | 8d220c7e6a13e013d9664402cb0262f323a4056d | [
"MIT"
] | null | null | null | venv/Lib/site-packages/transliterate/tests/data/default.py | jedeland/jedel_name_generator | 8d220c7e6a13e013d9664402cb0262f323a4056d | [
"MIT"
] | null | null | null | venv/Lib/site-packages/transliterate/tests/data/default.py | jedeland/jedel_name_generator | 8d220c7e6a13e013d9664402cb0262f323a4056d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__title__ = 'transliterate.tests.data.default'
__author__ = 'Artur Barseghyan'
__copyright__ = '2013-2018 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
latin_text = u"Lorem ipsum dolor sit amet"
armenian_text = u'Լօրեմ իպսում դօլօր սիտ ամետ'
cyrillic_text = u'Лорем ипсум долор сит амет'
... | 35.630435 | 78 | 0.721171 | 215 | 1,639 | 5.186047 | 0.525581 | 0.058296 | 0.069955 | 0.064574 | 0.374888 | 0.346188 | 0.286996 | 0.286996 | 0.13991 | 0.13991 | 0 | 0.048462 | 0.206833 | 1,639 | 45 | 79 | 36.422222 | 0.809231 | 0.012813 | 0 | 0.171429 | 0 | 0 | 0.47401 | 0.141089 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff3fa6bdc655e5c340cc8b1b61dfaa6a7d978fda | 5,510 | py | Python | PLOT/plot_orbits2.py | itpplasma/SIMPLE | 6981791e0a7889647ac5c006325ac951811c2f36 | [
"MIT"
] | 1 | 2020-11-18T14:58:27.000Z | 2020-11-18T14:58:27.000Z | PLOT/plot_orbits2.py | landreman/SIMPLE | 77722c2479b4a064b99d0e2a58ef7749ce157c07 | [
"MIT"
] | 6 | 2019-10-25T07:52:00.000Z | 2021-11-16T13:19:04.000Z | PLOT/plot_orbits2.py | landreman/SIMPLE | 77722c2479b4a064b99d0e2a58ef7749ce157c07 | [
"MIT"
] | 2 | 2021-11-05T18:55:09.000Z | 2022-03-23T06:27:04.000Z | #%%
import time
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from neo_orb_fffi import *
from os import path
import exportfig
#basedir = '/home/calbert/net/cobra/ipp/ishw19/scripts'
basedir = '.'
zs = np.load(path.join(basedir, 'z.npy'))
var_tips = np.load(path.join(base... | 28.549223 | 83 | 0.634846 | 1,078 | 5,510 | 3.061224 | 0.14564 | 0.018788 | 0.101818 | 0.127273 | 0.662424 | 0.636061 | 0.603333 | 0.554545 | 0.332727 | 0.31697 | 0 | 0.05453 | 0.154628 | 5,510 | 192 | 84 | 28.697917 | 0.653929 | 0.035027 | 0 | 0.28 | 0 | 0 | 0.071631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046667 | 0 | 0.046667 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff42053acc3e1c654965608c70b04513a16eaec2 | 2,177 | py | Python | helpers/extract_edges.py | aliborji/ShapeDefence | 92da19bb195b5161d997f6ee1cc777b07a714f6f | [
"MIT"
] | null | null | null | helpers/extract_edges.py | aliborji/ShapeDefence | 92da19bb195b5161d997f6ee1cc777b07a714f6f | [
"MIT"
] | 1 | 2022-03-12T00:40:21.000Z | 2022-03-12T00:40:21.000Z | helpers/extract_edges.py | aliborji/ShapeDefense | 92da19bb195b5161d997f6ee1cc777b07a714f6f | [
"MIT"
] | null | null | null | # clac edge
import os
from edge_detector import *
from PIL import Image
# import torch
from image_transform import ImageTransform
from config import *
# from matplotlib import pyplot as plt
# import glob
# import numpy as np
import argparse
'''
python extract_edges.py --img_dir --dest_dir
img_dir = './dog-breed-... | 27.910256 | 82 | 0.644465 | 310 | 2,177 | 4.341935 | 0.341935 | 0.057207 | 0.029718 | 0.028975 | 0.488856 | 0.488856 | 0.488856 | 0.488856 | 0.488856 | 0.488856 | 0 | 0.007134 | 0.227377 | 2,177 | 78 | 83 | 27.910256 | 0.793103 | 0.143316 | 0 | 0.585366 | 0 | 0 | 0.066432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.146341 | 0 | 0.195122 | 0.073171 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff43880d7c55f155ec148a756cf0c994cb3a1a8c | 838 | py | Python | bootstrap_scoped/util/_test.py | achillesrasquinha/bootstrap-scoped | e8e3eab2648e6d0acb33161fab196d6c82ff607a | [
"MIT"
] | 1 | 2018-09-14T16:04:21.000Z | 2018-09-14T16:04:21.000Z | bootstrap_scoped/util/_test.py | achillesrasquinha/bootstrap-scoped | e8e3eab2648e6d0acb33161fab196d6c82ff607a | [
"MIT"
] | null | null | null | bootstrap_scoped/util/_test.py | achillesrasquinha/bootstrap-scoped | e8e3eab2648e6d0acb33161fab196d6c82ff607a | [
"MIT"
] | null | null | null | # imports - compatibility imports
from bootstrap_scoped._compat import StringIO, input
# imports - standard imports
import sys
from contextlib import contextmanager
# imports - module imports
from bootstrap_scoped.util import get_if_empty
__STDIN__ = sys.stdin
@contextmanager
def mock_input(args):
# https://s... | 26.1875 | 85 | 0.718377 | 103 | 838 | 5.582524 | 0.359223 | 0.026087 | 0.052174 | 0.090435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011869 | 0.195704 | 838 | 32 | 86 | 26.1875 | 0.841246 | 0.143198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 1 | 0.142857 | false | 0 | 0.190476 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff46c1924c55c89c1952f77ec63a4d0bb246a216 | 853 | py | Python | Application/Script/script/pyexpect/arp/Cisco.py | onlysheep5200/gperf | f04b1e96fc86aa379fa1cdaedff59224b6904179 | [
"Apache-2.0"
] | 1 | 2016-12-08T23:27:42.000Z | 2016-12-08T23:27:42.000Z | Application/Script/script/pyexpect/arp/Cisco.py | onlysheep5200/gperf | f04b1e96fc86aa379fa1cdaedff59224b6904179 | [
"Apache-2.0"
] | null | null | null | Application/Script/script/pyexpect/arp/Cisco.py | onlysheep5200/gperf | f04b1e96fc86aa379fa1cdaedff59224b6904179 | [
"Apache-2.0"
] | null | null | null | #py
proc.sendline('show arp')
proc.expect('Type Interface')
result = []
while True:
index = proc.expect(['--More--', '#'])
lines = proc.before.strip().replace('\x08', '').splitlines()
for line in lines:
cols = line.strip().split()
length = len(cols)
if length == 6 or length == 5:
... | 29.413793 | 78 | 0.458382 | 102 | 853 | 3.823529 | 0.5 | 0.076923 | 0.030769 | 0.035897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033989 | 0.344666 | 853 | 28 | 79 | 30.464286 | 0.663685 | 0.002345 | 0 | 0 | 0 | 0 | 0.083529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff482cff2e58cffc22549bec344549101d45cd35 | 682 | py | Python | ch9/crx_gates.py | PacktPublishing/Learn-Quantum-Computing-with-Python | e74caf12609ce848de2636019dd15f90d1f3189f | [
"MIT"
] | 1 | 2020-07-09T15:38:59.000Z | 2020-07-09T15:38:59.000Z | ch9/crx_gates.py | PacktPublishing/Learn-Quantum-Computing-with-Python | e74caf12609ce848de2636019dd15f90d1f3189f | [
"MIT"
] | null | null | null | ch9/crx_gates.py | PacktPublishing/Learn-Quantum-Computing-with-Python | e74caf12609ce848de2636019dd15f90d1f3189f | [
"MIT"
] | 2 | 2019-04-05T14:42:23.000Z | 2019-04-19T16:09:27.000Z | from pyquil import Program
from pyquil.parameters import Parameter, quil_sin, quil_cos
from pyquil.quilbase import DefGate
from pyquil.gates import *
import numpy as np
thetaParameter = Parameter('theta')
controlledRx = np.array([
[1, 0, 0, 0],
[0, 1, 0, 0],
[0, 0, quil_cos(thetaParameter / 2), -1j * quil... | 27.28 | 77 | 0.714076 | 93 | 682 | 5.129032 | 0.344086 | 0.02935 | 0.025157 | 0.016771 | 0.121593 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038194 | 0.155425 | 682 | 25 | 78 | 27.28 | 0.789931 | 0 | 0 | 0 | 0 | 0 | 0.011713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.263158 | 0 | 0.263158 | 0.052632 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff4b74c3171ca37a261f7014a1e21bacf39c2b04 | 24,200 | py | Python | LexNormNew.py | AnneDirkson/lex_normalization | 6a5072002b31606cfd668b8ac303d5deaa95d092 | [
"BSD-3-Clause"
] | 4 | 2019-07-15T17:56:59.000Z | 2020-04-01T19:18:24.000Z | LexNormNew.py | AnneDirkson/lex_normalization | 6a5072002b31606cfd668b8ac303d5deaa95d092 | [
"BSD-3-Clause"
] | null | null | null | LexNormNew.py | AnneDirkson/lex_normalization | 6a5072002b31606cfd668b8ac303d5deaa95d092 | [
"BSD-3-Clause"
] | 1 | 2019-08-01T10:58:37.000Z | 2019-08-01T10:58:37.000Z | #!/usr/bin/env python
# coding: utf-8
# # Lexical normalization pipeline
#
# author - AR Dirkson
# date - 15-7-2019
#
# Python 3 script
#
# This pipeline takes raw text data and performs:
# - Removes URLs, email addresses
# - Tokenization with NLTK
# - Removes non_English posts (conservatively) usin... | 36.890244 | 288 | 0.516198 | 2,703 | 24,200 | 4.461339 | 0.18128 | 0.020897 | 0.00539 | 0.007546 | 0.187661 | 0.15731 | 0.147027 | 0.130525 | 0.120823 | 0.111369 | 0 | 0.024187 | 0.366157 | 24,200 | 655 | 289 | 36.946565 | 0.761979 | 0.143802 | 0 | 0.256579 | 0 | 0.006579 | 0.050259 | 0.028849 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098684 | false | 0.002193 | 0.032895 | 0.002193 | 0.223684 | 0.024123 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff4d18734c956fbb0cec7f798227420aa80822c7 | 4,392 | py | Python | examples/households/VisualizeOccupancy.py | a-buntjer/tsib | 9d6ddcdca55c9b8afb5324c0da8d0910cb1a326e | [
"MIT"
] | 14 | 2019-12-16T16:54:43.000Z | 2021-11-08T11:46:51.000Z | examples/households/VisualizeOccupancy.py | a-buntjer/tsib | 9d6ddcdca55c9b8afb5324c0da8d0910cb1a326e | [
"MIT"
] | null | null | null | examples/households/VisualizeOccupancy.py | a-buntjer/tsib | 9d6ddcdca55c9b8afb5324c0da8d0910cb1a326e | [
"MIT"
] | 7 | 2020-05-27T19:49:58.000Z | 2022-02-02T12:45:33.000Z | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.3'
# jupytext_version: 1.4.2
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# %%
import os
import matplotlib.pyplot as plt
# %mat... | 22.994764 | 113 | 0.602004 | 588 | 4,392 | 4.386054 | 0.338435 | 0.029857 | 0.024428 | 0.015122 | 0.183792 | 0.162078 | 0.064366 | 0.044203 | 0.025591 | 0.025591 | 0 | 0.04675 | 0.201275 | 4,392 | 190 | 114 | 23.115789 | 0.688426 | 0.172131 | 0 | 0.075 | 0 | 0 | 0.094138 | 0.00761 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0125 | false | 0 | 0.0875 | 0 | 0.1125 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff4dbf32ba6d1faa9492a197d71f8f0f2884bd27 | 314 | py | Python | exsLer Arquivo/ex2 alunos/_main.py | SpaceTheArcher/LP2_2s2017 | 6616b3ecfe5838d1cfac1dac1c8e66b1b661486e | [
"Apache-2.0"
] | 1 | 2017-08-27T03:45:37.000Z | 2017-08-27T03:45:37.000Z | exsLer Arquivo/ex2 alunos/_main.py | SpaceTheArcher/LP2_2s2017 | 6616b3ecfe5838d1cfac1dac1c8e66b1b661486e | [
"Apache-2.0"
] | null | null | null | exsLer Arquivo/ex2 alunos/_main.py | SpaceTheArcher/LP2_2s2017 | 6616b3ecfe5838d1cfac1dac1c8e66b1b661486e | [
"Apache-2.0"
] | null | null | null |
# coding=utf-8
with open('Alunos.txt') as arquivo:
for linha in arquivo:
lista = linha.split(";")
media = float(lista[1]) + float(lista[2])
with open('saida.txt', 'w') as arquivo2:
varLinha = str("{};{}".format(linha,media))
arquivo2.write(varLinha) | 28.545455 | 56 | 0.541401 | 38 | 314 | 4.473684 | 0.657895 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022422 | 0.289809 | 314 | 11 | 57 | 28.545455 | 0.73991 | 0.038217 | 0 | 0 | 0 | 0 | 0.089965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff4f54b1c8c94866bf7755682cc73296b3e13229 | 2,382 | py | Python | Leetcode/Python Solutions/Common Algorithm Templates/DisjointSet.py | Mostofa-Najmus-Sakib/Applied-Algorithm | bc656fd655617407856e0ce45b68585fa81c5035 | [
"MIT"
] | 1 | 2020-01-06T02:21:56.000Z | 2020-01-06T02:21:56.000Z | Leetcode/Python Solutions/Common Algorithm Templates/DisjointSet.py | Mostofa-Najmus-Sakib/Applied-Algorithm | bc656fd655617407856e0ce45b68585fa81c5035 | [
"MIT"
] | null | null | null | Leetcode/Python Solutions/Common Algorithm Templates/DisjointSet.py | Mostofa-Najmus-Sakib/Applied-Algorithm | bc656fd655617407856e0ce45b68585fa81c5035 | [
"MIT"
] | 3 | 2021-02-22T17:41:01.000Z | 2022-01-13T05:03:19.000Z | """
Language: Python
Written by: Mostofa Adib Shakib
Optimization Techniques:
1) Union by Rank: We always attach the smaller tree to the root of the larger tree. Since it is the depth of the tree that affects
the running time, the tree with the smaller depth gets added under the root of the deeper tree. The depth of ... | 27.068182 | 132 | 0.685978 | 384 | 2,382 | 4.223958 | 0.335938 | 0.055487 | 0.05857 | 0.038841 | 0.147349 | 0.110358 | 0.110358 | 0.091245 | 0.046856 | 0 | 0 | 0.01261 | 0.234257 | 2,382 | 88 | 133 | 27.068182 | 0.876645 | 0.548279 | 0 | 0.162162 | 0 | 0 | 0.007605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0 | 0 | 0.216216 | 0.162162 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff52620b1cd6c61d10575db074cd0d1ccf5ea327 | 19,761 | py | Python | tests/test_abstract.py | fish2000/CLU | 80bc2df5f001b5639d79ba979e19ec77a9931425 | [
"BSD-3-Clause"
] | 1 | 2019-07-02T08:17:59.000Z | 2019-07-02T08:17:59.000Z | tests/test_abstract.py | fish2000/CLU | 80bc2df5f001b5639d79ba979e19ec77a9931425 | [
"BSD-3-Clause"
] | 13 | 2019-12-17T02:28:30.000Z | 2021-11-17T03:46:10.000Z | tests/test_abstract.py | fish2000/CLU | 80bc2df5f001b5639d79ba979e19ec77a9931425 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function
import abc
import clu.abstract
import copy
import os
import pytest
abstract = abc.abstractmethod
@pytest.fixture(scope='module')
def strings():
yield ('yo', 'dogg', 'iheard', 'youlike')
@pytest.fixture(scope='module')
def capstrings():
yield ('Y... | 40.577002 | 101 | 0.556095 | 1,947 | 19,761 | 5.491525 | 0.134052 | 0.026375 | 0.035915 | 0.025814 | 0.491957 | 0.438085 | 0.415918 | 0.393191 | 0.374486 | 0.324355 | 0 | 0.003303 | 0.325793 | 19,761 | 486 | 102 | 40.660494 | 0.798994 | 0.098882 | 0 | 0.291411 | 0 | 0 | 0.080036 | 0.015951 | 0 | 0 | 0 | 0.002058 | 0.340491 | 1 | 0.119632 | false | 0.033742 | 0.058282 | 0.030675 | 0.315951 | 0.006135 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff56f2ff008767215761ca02c50006457d3c8cc8 | 8,395 | py | Python | text_run.py | cjymz886/text_bert_cnn | 0b7fc34ee4ee3d1486b934737ebe574a054df9ce | [
"MIT"
] | 72 | 2019-03-29T12:13:54.000Z | 2022-03-13T15:42:56.000Z | text_run.py | lvcheer/text_bert_cnn | 2a781881eea45d888ba3b2f32e20a6b706b07b9e | [
"MIT"
] | 3 | 2019-09-25T03:04:18.000Z | 2021-06-15T08:27:14.000Z | text_run.py | lvcheer/text_bert_cnn | 2a781881eea45d888ba3b2f32e20a6b706b07b9e | [
"MIT"
] | 19 | 2019-04-03T07:56:38.000Z | 2022-03-21T13:37:12.000Z | import sys
import os
import time
from sklearn import metrics
from text_model import *
from loader import *
def evaluate(sess,dev_data):
'''批量的形式计算验证集或测试集上数据的平均loss,平均accuracy'''
data_len = 0
total_loss = 0.0
total_acc = 0.0
for batch_ids,batch_mask,batch_segment,batch_label in batch_ite... | 40.752427 | 169 | 0.629065 | 1,088 | 8,395 | 4.57261 | 0.201287 | 0.032563 | 0.044422 | 0.017085 | 0.254271 | 0.196181 | 0.156784 | 0.12201 | 0.108744 | 0.093065 | 0 | 0.007093 | 0.244312 | 8,395 | 205 | 170 | 40.95122 | 0.777112 | 0.026206 | 0 | 0.141975 | 0 | 0.006173 | 0.100604 | 0.016998 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030864 | false | 0 | 0.037037 | 0 | 0.080247 | 0.018519 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff57d1d8442a73a3ba2a1260389c32c6a812ced5 | 2,633 | py | Python | src/azure_run_train.py | yohskua/support-ticket-classification | ba26373583c8dc56902b8e9e4ba716f400a730b9 | [
"MIT"
] | 2 | 2020-10-27T19:49:07.000Z | 2020-11-04T12:35:15.000Z | src/azure_run_train.py | yohskua/support-ticket-classification | ba26373583c8dc56902b8e9e4ba716f400a730b9 | [
"MIT"
] | 3 | 2020-11-13T18:57:14.000Z | 2022-02-10T01:54:56.000Z | src/azure_run_train.py | yohskua/support-ticket-classification | ba26373583c8dc56902b8e9e4ba716f400a730b9 | [
"MIT"
] | null | null | null | """
Endpoint to launch an experiment on AzureML.
"""
import os
from os.path import dirname
from typing import Optional
from azureml.train.estimator import Estimator
from azureml.core import Workspace, Datastore, Experiment, Run
from src.utils import pip_packages
from src.azure_utils import load_azure_conf
def run_... | 35.581081 | 83 | 0.720091 | 322 | 2,633 | 5.490683 | 0.254658 | 0.061086 | 0.044118 | 0.024887 | 0.074661 | 0.074661 | 0.074661 | 0.026018 | 0 | 0 | 0 | 0.001861 | 0.183821 | 2,633 | 73 | 84 | 36.068493 | 0.820847 | 0.032283 | 0 | 0.032258 | 0 | 0 | 0.092913 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 1 | 0.016129 | false | 0 | 0.112903 | 0 | 0.145161 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff57f5081cf328886c5e3633e7f6b890aa504bf4 | 2,386 | py | Python | utils.py | X-Gamer-Guide/twitch-mod-activity-tracker | b2f59c06732ae5e84e2407540cb63a6842ba27e4 | [
"MIT"
] | 2 | 2022-03-09T17:54:53.000Z | 2022-03-11T13:49:55.000Z | utils.py | X-Gamer-Guide/twitch-mod-activity-tracker | b2f59c06732ae5e84e2407540cb63a6842ba27e4 | [
"MIT"
] | null | null | null | utils.py | X-Gamer-Guide/twitch-mod-activity-tracker | b2f59c06732ae5e84e2407540cb63a6842ba27e4 | [
"MIT"
] | null | null | null | ##################################################################
# #
# twitch mod activity tracker #
# #
# Copyright (C) 2022 X Gamer Guide ... | 37.28125 | 109 | 0.523889 | 243 | 2,386 | 5.045267 | 0.288066 | 0.071778 | 0.131321 | 0.104405 | 0.350734 | 0.252855 | 0.252855 | 0.252855 | 0.252855 | 0.150082 | 0 | 0.002483 | 0.324811 | 2,386 | 63 | 110 | 37.873016 | 0.758535 | 0.209975 | 0 | 0.095238 | 0 | 0 | 0.214209 | 0.092573 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0 | 0.071429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff59619cfc20a7cda244fc4d89652be6e3d0a62b | 644 | py | Python | setup.py | Newky/when_can_i_run | e7f5a97acb32db3601ea0e22cd382c270802c6e1 | [
"MIT"
] | null | null | null | setup.py | Newky/when_can_i_run | e7f5a97acb32db3601ea0e22cd382c270802c6e1 | [
"MIT"
] | null | null | null | setup.py | Newky/when_can_i_run | e7f5a97acb32db3601ea0e22cd382c270802c6e1 | [
"MIT"
] | null | null | null | from setuptools import setup
def parse_requirements(requirements_path):
requirements = []
try:
for line in open(requirements_path):
if '#' not in line:
requirements.append(line)
except IOError:
print("Could not open requirements file {}".format(requirements_path... | 25.76 | 78 | 0.675466 | 78 | 644 | 5.410256 | 0.653846 | 0.113744 | 0.137441 | 0.052133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013944 | 0.220497 | 644 | 24 | 79 | 26.833333 | 0.826693 | 0 | 0 | 0 | 0 | 0 | 0.270186 | 0.032609 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 0.052632 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff5c22e528b0317b09aca3288a9e47cff9255e98 | 1,864 | py | Python | notebook/numpy/frac_dimension.py | pipepipexiaji/matplotlib | f7a25f22afeceb11f37354ff8249790090ab3df6 | [
"MIT"
] | null | null | null | notebook/numpy/frac_dimension.py | pipepipexiaji/matplotlib | f7a25f22afeceb11f37354ff8249790090ab3df6 | [
"MIT"
] | null | null | null | notebook/numpy/frac_dimension.py | pipepipexiaji/matplotlib | f7a25f22afeceb11f37354ff8249790090ab3df6 | [
"MIT"
] | null | null | null | import sys, os
import numpy as np
def frac_dimension(z, threshold=0.9):
def pointcount(z,k):
s=np.add.reduceat(np.add.reduceat(
z, np.arange(0, z.shape[0], k), axis=0 ),
np.arange(0, z.shape[1], k), axis=1)
return len(np.where( ( s>0 ) & (s<k*k) )[0])
z=(z<t... | 34.518519 | 76 | 0.526288 | 285 | 1,864 | 3.392982 | 0.385965 | 0.049638 | 0.028956 | 0.04757 | 0.080662 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050652 | 0.300966 | 1,864 | 54 | 77 | 34.518519 | 0.691481 | 0 | 0 | 0 | 0 | 0 | 0.036461 | 0.01126 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.106383 | 0 | 0.191489 | 0.021277 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff5d5019c2e1556f979ae8023b4f76dfde167be2 | 705 | py | Python | tests/test_quotient.py | ICB-DCM/fiddy | c6300f60e7b67ca3b5255cc27a22293aa2690a96 | [
"BSD-3-Clause"
] | 3 | 2022-03-04T13:37:10.000Z | 2022-03-04T13:37:16.000Z | tests/test_quotient.py | ICB-DCM/fiddy | c6300f60e7b67ca3b5255cc27a22293aa2690a96 | [
"BSD-3-Clause"
] | 9 | 2022-02-04T14:03:15.000Z | 2022-02-24T15:41:15.000Z | tests/test_quotient.py | ICB-DCM/fiddy | c6300f60e7b67ca3b5255cc27a22293aa2690a96 | [
"BSD-3-Clause"
] | null | null | null | import pytest
import fiddy
import numpy as np
@pytest.fixture
def line():
def function(x):
return (3 * x + 2)[0]
def derivative(x):
return 3
return {
"function": function,
"derivative": derivative,
"point": np.array([3]),
"dimension": np.array([0]),
... | 19.054054 | 48 | 0.547518 | 80 | 705 | 4.8125 | 0.3875 | 0.07013 | 0.041558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018145 | 0.296454 | 705 | 36 | 49 | 19.583333 | 0.758065 | 0 | 0 | 0.068966 | 0 | 0 | 0.116312 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.137931 | false | 0 | 0.103448 | 0.068966 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff5d8d4b13202abe6fea868590e72915ddb862ae | 2,388 | py | Python | library/dbscripts_mkdirs.py | Acidburn0zzz/upstream-infra | 82b91b4de88782d924ce01ae2b4b1b6b34eed6f7 | [
"MIT"
] | 73 | 2019-09-25T05:11:53.000Z | 2022-03-21T13:18:57.000Z | library/dbscripts_mkdirs.py | Acidburn0zzz/upstream-infra | 82b91b4de88782d924ce01ae2b4b1b6b34eed6f7 | [
"MIT"
] | 5 | 2019-12-14T23:36:38.000Z | 2021-03-19T06:14:23.000Z | library/dbscripts_mkdirs.py | Acidburn0zzz/upstream-infra | 82b91b4de88782d924ce01ae2b4b1b6b34eed6f7 | [
"MIT"
] | 20 | 2019-12-14T23:24:09.000Z | 2022-01-13T04:25:03.000Z | #!/usr/bin/python
import errno
import grp
import os
import pwd
from stat import *
# simple module that creates many directories for users
# initially created for dbscripts to create staging directories in the user homes
def main():
module = AnsibleModule(
argument_spec = dict(
permiss... | 33.166667 | 123 | 0.55402 | 260 | 2,388 | 4.984615 | 0.396154 | 0.046296 | 0.061728 | 0.030864 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005161 | 0.350921 | 2,388 | 71 | 124 | 33.633803 | 0.830968 | 0.062814 | 0 | 0.037037 | 0 | 0 | 0.060877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.111111 | 0 | 0.12963 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff5dab03c7e7990a7a73aa7873bb629886472ec5 | 8,264 | py | Python | setup.py | jessa/PySDD | 57ccc22c4720ece54f11a593900e0a885023c6cc | [
"Apache-2.0"
] | 34 | 2018-03-21T01:26:57.000Z | 2022-03-10T08:53:18.000Z | setup.py | jessa/PySDD | 57ccc22c4720ece54f11a593900e0a885023c6cc | [
"Apache-2.0"
] | 12 | 2019-01-22T16:25:02.000Z | 2022-02-01T10:21:29.000Z | setup.py | jessa/PySDD | 57ccc22c4720ece54f11a593900e0a885023c6cc | [
"Apache-2.0"
] | 14 | 2018-12-17T17:40:48.000Z | 2022-03-22T02:53:01.000Z | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
"""
setup.py
~~~~~~~~
Usage: python3 setup.py build_ext --inplace
:author: Wannes Meert
:copyright: Copyright 2017-2019 KU Leuven and Regents of the University of California.
:license: Apache License, Version 2.0, see LICENSE for details.
"""
from setuptools import setup... | 32.924303 | 116 | 0.60818 | 998 | 8,264 | 4.803607 | 0.274549 | 0.021902 | 0.016688 | 0.005841 | 0.162286 | 0.096996 | 0.078849 | 0.078849 | 0.045265 | 0.018356 | 0 | 0.008197 | 0.232333 | 8,264 | 250 | 117 | 33.056 | 0.747478 | 0.106123 | 0 | 0.091371 | 0 | 0 | 0.238076 | 0.036962 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015228 | false | 0 | 0.071066 | 0 | 0.101523 | 0.071066 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff66fc191e5cd060a3a30c03c46d05cc46439ecb | 2,578 | py | Python | benchmark/d3pe/scripts/eval_ope.py | ssimonc/NeoRL | 098c58c8e4c3e43e67803f6384619d3bfe7fce5d | [
"Apache-2.0"
] | 50 | 2021-02-07T08:10:28.000Z | 2022-03-25T09:10:26.000Z | benchmark/d3pe/scripts/eval_ope.py | ssimonc/NeoRL | 098c58c8e4c3e43e67803f6384619d3bfe7fce5d | [
"Apache-2.0"
] | 7 | 2021-07-29T14:58:31.000Z | 2022-02-01T08:02:54.000Z | benchmark/d3pe/scripts/eval_ope.py | ssimonc/NeoRL | 098c58c8e4c3e43e67803f6384619d3bfe7fce5d | [
"Apache-2.0"
] | 4 | 2021-04-01T16:30:15.000Z | 2022-03-31T17:38:05.000Z | import os
import json
import argparse
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import pearsonr
from d3pe.metric.score import RC_score, TopK_score, get_policy_mean
BenchmarkFolder = 'benchmarks'
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-... | 40.920635 | 92 | 0.655935 | 384 | 2,578 | 4.1875 | 0.273438 | 0.078358 | 0.084577 | 0.109453 | 0.307214 | 0.244403 | 0.185945 | 0.053483 | 0.053483 | 0.053483 | 0 | 0.017908 | 0.176881 | 2,578 | 63 | 93 | 40.920635 | 0.739868 | 0 | 0 | 0 | 0 | 0 | 0.131401 | 0.032156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137255 | 0 | 0.137255 | 0.156863 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff685253b9c0863707f35b85f1ef58190321a525 | 1,185 | py | Python | python-deprecated/asset.py | unfixed/Dell-Warranty-Lookup | 8775636d4b0a8aa30945b7bd8cedbf1b85d885c6 | [
"WTFPL"
] | 3 | 2015-02-13T16:14:14.000Z | 2017-04-03T15:40:36.000Z | python-deprecated/asset.py | unfixed/Dell-Warranty-Lookup | 8775636d4b0a8aa30945b7bd8cedbf1b85d885c6 | [
"WTFPL"
] | null | null | null | python-deprecated/asset.py | unfixed/Dell-Warranty-Lookup | 8775636d4b0a8aa30945b7bd8cedbf1b85d885c6 | [
"WTFPL"
] | null | null | null | #Seperate File - Filename - asset.py
class Asset():
def __init__(self,service_tag,name,user,dept):
def GetAssetInformation(service_tag):
from suds.client import Client
import uuid
client = Client("http://xserv.dell.com/services/assetservice.asmx?WSDL")
r... | 40.862069 | 146 | 0.624473 | 166 | 1,185 | 4.271084 | 0.325301 | 0.101551 | 0.021157 | 0.022567 | 0.25952 | 0.126939 | 0 | 0 | 0 | 0 | 0 | 0.020811 | 0.229536 | 1,185 | 28 | 147 | 42.321429 | 0.75575 | 0.029536 | 0 | 0 | 0 | 0 | 0.08007 | 0.019147 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.045455 | 0.454545 | 0.045455 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff69eebfb5fd5176bd938dc3c3b14c86aedd74b9 | 3,366 | py | Python | src/app.py | dyylaan/corona | 73e834ecdbcc167542bd169a9b19eae759218ab9 | [
"MIT"
] | null | null | null | src/app.py | dyylaan/corona | 73e834ecdbcc167542bd169a9b19eae759218ab9 | [
"MIT"
] | null | null | null | src/app.py | dyylaan/corona | 73e834ecdbcc167542bd169a9b19eae759218ab9 | [
"MIT"
] | null | null | null |
import datetime
import os
import yaml
import pandas as pd
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
# Répertoire du fichier des données
PROCESSED_DIR = '../data/processed/'
# Table principale
ALL_DATA_FILE= 'all_data.csv'
ENV_... | 29.526316 | 117 | 0.541295 | 368 | 3,366 | 4.820652 | 0.396739 | 0.039459 | 0.033822 | 0.038895 | 0.228298 | 0.132469 | 0.092446 | 0.052988 | 0.052988 | 0 | 0 | 0.008666 | 0.31432 | 3,366 | 114 | 118 | 29.526316 | 0.759965 | 0.067439 | 0 | 0.226804 | 0 | 0 | 0.159962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010309 | false | 0 | 0.082474 | 0 | 0.103093 | 0.010309 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff6cda50a149363e3fbb320406dd695af6260253 | 2,629 | py | Python | templating/core/src/main/python/jsonteng/tags/for_each_tag.py | vmware/json-template-engine | afa606aef47599f8ff7cf7d1f927877a9ce786e7 | [
"Apache-2.0"
] | 21 | 2019-09-30T08:41:01.000Z | 2022-03-15T08:23:28.000Z | templating/core/src/main/python/jsonteng/tags/for_each_tag.py | vmware/json-template-engine | afa606aef47599f8ff7cf7d1f927877a9ce786e7 | [
"Apache-2.0"
] | 1 | 2020-03-17T03:14:00.000Z | 2020-05-01T18:02:23.000Z | templating/core/src/main/python/jsonteng/tags/for_each_tag.py | vmware/json-template-engine | afa606aef47599f8ff7cf7d1f927877a9ce786e7 | [
"Apache-2.0"
] | 7 | 2019-06-18T14:35:57.000Z | 2021-12-06T23:01:30.000Z | # Copyright 2019 VMware, Inc.
# SPDX-License-Indentifier: Apache-2.0
from ..exception import TemplateEngineException
from .tag_base import TagBase
class ForEachTag(TagBase):
"""
Apply a list of binding data to a template repeatedly and return the
resolved templates in a list.
"""
name = "for-each... | 38.101449 | 74 | 0.617345 | 299 | 2,629 | 5.12709 | 0.311037 | 0.088715 | 0.127202 | 0.067841 | 0.196999 | 0.095238 | 0.049576 | 0.049576 | 0.049576 | 0.049576 | 0 | 0.011463 | 0.303157 | 2,629 | 68 | 75 | 38.661765 | 0.825328 | 0.219855 | 0 | 0.097561 | 0 | 0 | 0.035454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.04878 | 0 | 0.170732 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff6d5561a4aef51c3287d4dc9af0364e55380487 | 2,882 | py | Python | src/the_tale/the_tale/game/cards/tests/test_give_stability.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | null | null | null | src/the_tale/the_tale/game/cards/tests/test_give_stability.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | null | null | null | src/the_tale/the_tale/game/cards/tests/test_give_stability.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | null | null | null |
import smart_imports
smart_imports.all()
class GiveStabilityMixin(helpers.CardsTestMixin):
CARD = None
def setUp(self):
super(GiveStabilityMixin, self).setUp()
places_tt_services.effects.cmd_debug_clear_service()
self.place_1, self.place_2, self.place_3 = game_logic.create_test_ma... | 41.171429 | 140 | 0.670715 | 324 | 2,882 | 5.709877 | 0.308642 | 0.048649 | 0.043243 | 0.032432 | 0.571892 | 0.450811 | 0.450811 | 0.374054 | 0.374054 | 0.233514 | 0 | 0.012733 | 0.236988 | 2,882 | 69 | 141 | 41.768116 | 0.828558 | 0 | 0 | 0.142857 | 0 | 0 | 0.036099 | 0.036099 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.071429 | false | 0 | 0.047619 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff70ad31a7318cd530102a309a6d7b1760414492 | 1,831 | py | Python | 16.3-sum-closest.py | leonhx/leetcode-practice | 35fabe5a1b98c05a5dd5d6a62201e9cb54be69ec | [
"MIT"
] | null | null | null | 16.3-sum-closest.py | leonhx/leetcode-practice | 35fabe5a1b98c05a5dd5d6a62201e9cb54be69ec | [
"MIT"
] | null | null | null | 16.3-sum-closest.py | leonhx/leetcode-practice | 35fabe5a1b98c05a5dd5d6a62201e9cb54be69ec | [
"MIT"
] | null | null | null | #
# @lc app=leetcode id=16 lang=python3
#
# [16] 3Sum Closest
#
class Solution:
def __init__(self, *, debug=False):
super().__init__()
self.debug = debug
def binarySearchClosest(self, nums: List[int], target: int) -> int:
if len(nums) == 0:
return None
if target <= n... | 34.54717 | 77 | 0.464227 | 214 | 1,831 | 3.892523 | 0.261682 | 0.054022 | 0.028812 | 0.10084 | 0.182473 | 0.141657 | 0.064826 | 0 | 0 | 0 | 0 | 0.016744 | 0.412889 | 1,831 | 52 | 78 | 35.211538 | 0.75814 | 0.028946 | 0 | 0.111111 | 0 | 0 | 0.041761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.244444 | 0.066667 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff72d32718ca52261b3ee6803ac5fbc46065c1fa | 4,262 | py | Python | projects/mmdet3d_plugin/models/utils/detr.py | XiangTodayEatsWhat/detr3d | 34a47673011fe13593a3e594a376668acca8bddb | [
"MIT"
] | 237 | 2021-10-13T05:29:29.000Z | 2022-03-31T13:04:13.000Z | projects/mmdet3d_plugin/models/utils/detr.py | XiangTodayEatsWhat/detr3d | 34a47673011fe13593a3e594a376668acca8bddb | [
"MIT"
] | 23 | 2021-10-20T13:57:27.000Z | 2022-03-30T08:03:19.000Z | projects/mmdet3d_plugin/models/utils/detr.py | XiangTodayEatsWhat/detr3d | 34a47673011fe13593a3e594a376668acca8bddb | [
"MIT"
] | 47 | 2021-10-14T05:38:30.000Z | 2022-03-31T09:15:59.000Z | import torch
from mmcv.cnn.bricks.registry import TRANSFORMER_LAYER_SEQUENCE
from mmcv.cnn.bricks.transformer import TransformerLayerSequence
def inverse_sigmoid(x, eps=1e-5):
"""Inverse function of sigmoid.
Args:
x (Tensor): The tensor to do the
inverse.
eps (float): EPS avoid num... | 39.831776 | 81 | 0.572032 | 443 | 4,262 | 5.300226 | 0.309255 | 0.185264 | 0.061329 | 0.057496 | 0.237223 | 0.197615 | 0.109029 | 0.061329 | 0.061329 | 0.061329 | 0 | 0.012567 | 0.346551 | 4,262 | 106 | 82 | 40.207547 | 0.830521 | 0.320272 | 0 | 0.280702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.175439 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff74ecb0d326e0eac765860b694710655beda7d9 | 1,594 | py | Python | mikaponics/production/serializers/production_list_serializer.py | mikaponics/mikaponics-back | 98e1ff8bab7dda3492e5ff637bf5aafd111c840c | [
"BSD-3-Clause"
] | 2 | 2019-04-30T23:51:41.000Z | 2019-05-04T00:35:52.000Z | mikaponics/production/serializers/production_list_serializer.py | mikaponics/mikaponics-back | 98e1ff8bab7dda3492e5ff637bf5aafd111c840c | [
"BSD-3-Clause"
] | 27 | 2019-04-30T20:22:28.000Z | 2022-02-10T08:10:32.000Z | mikaponics/production/serializers/production_list_serializer.py | mikaponics/mikaponics-back | 98e1ff8bab7dda3492e5ff637bf5aafd111c840c | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.contrib.auth.models import Group
from django.contrib.auth import authenticate
from django.db.models import Q
from django.shortcuts import get_object_or_404
from django.template.loader import render_to_string # HTML / TXT
from django.utils import timezone
from django.utils.translatio... | 37.952381 | 113 | 0.693852 | 178 | 1,594 | 5.949438 | 0.38764 | 0.0661 | 0.1322 | 0.151086 | 0.287063 | 0.287063 | 0.287063 | 0.287063 | 0.287063 | 0.234183 | 0 | 0.003213 | 0.218946 | 1,594 | 41 | 114 | 38.878049 | 0.84739 | 0.020075 | 0 | 0 | 0 | 0 | 0.174471 | 0.028223 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.277778 | 0 | 0.472222 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff75e873bc50af3add423f1f76edc56efdae6ca7 | 2,135 | py | Python | 2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/05-Lists-Advanced/02_Exercises/04-Office-Chairs.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | 2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/05-Lists-Advanced/02_Exercises/04-Office-Chairs.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | 2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/05-Lists-Advanced/02_Exercises/04-Office-Chairs.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | # 4. Office Chairs
# So you've found a meeting room - phew! ' \
# 'You arrive there ready to present, and find that someone has taken one or more of the chairs!! ' \
# 'You need to find some quick.... check all the other meeting rooms to see if all of the chairs are in use.
# You will be given a number n re... | 47.444444 | 120 | 0.719906 | 367 | 2,135 | 3.942779 | 0.26158 | 0.121631 | 0.116102 | 0.143746 | 0.542502 | 0.542502 | 0.523842 | 0.523842 | 0.500346 | 0.446441 | 0 | 0.006957 | 0.192037 | 2,135 | 45 | 121 | 47.444444 | 0.831884 | 0.709602 | 0 | 0 | 0 | 0 | 0.197302 | 0.096121 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff769261d192cb236045382aced01d930dd67c3c | 1,378 | py | Python | src/SamplePreprocessor.py | msfasha/Arabic-Deep-Learning-OCR | 10cd02937eb4aa7f3e40265ec6a4d50f4ef5ef29 | [
"MIT"
] | 7 | 2021-12-16T08:23:20.000Z | 2022-03-14T19:10:25.000Z | src/SamplePreprocessor.py | msfasha/ArabicDLOCR | 10cd02937eb4aa7f3e40265ec6a4d50f4ef5ef29 | [
"MIT"
] | 3 | 2021-09-17T14:31:34.000Z | 2021-12-09T05:32:12.000Z | src/SamplePreprocessor.py | msfasha/ArabicDLOCR | 10cd02937eb4aa7f3e40265ec6a4d50f4ef5ef29 | [
"MIT"
] | 1 | 2021-02-21T20:11:30.000Z | 2021-02-21T20:11:30.000Z | from __future__ import division
from __future__ import print_function
import random
import numpy as np
import cv2
import Config as config
def preprocess(img):
"scale image into the desired imgSize, transpose it for TF and normalize gray-values"
# increase dataset size by applying random stretche... | 31.318182 | 90 | 0.609579 | 209 | 1,378 | 3.942584 | 0.37799 | 0.080097 | 0.058252 | 0.009709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035282 | 0.280116 | 1,378 | 43 | 91 | 32.046512 | 0.795363 | 0.269956 | 0 | 0 | 0 | 0 | 0.079885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.214286 | 0 | 0.285714 | 0.035714 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff769c71c4daf7a143069fafb6b927bdd86beb99 | 11,249 | py | Python | feature_examples/tensorflow/inspecting_tensors/pipelined_model.py | Paperspace/tutorials | 8e20ffb687080c44e75dabea594d2b57acc53713 | [
"MIT"
] | null | null | null | feature_examples/tensorflow/inspecting_tensors/pipelined_model.py | Paperspace/tutorials | 8e20ffb687080c44e75dabea594d2b57acc53713 | [
"MIT"
] | 78 | 2021-09-20T11:48:08.000Z | 2021-10-21T07:10:39.000Z | feature_examples/tensorflow/inspecting_tensors/pipelined_model.py | Paperspace/tutorials | 8e20ffb687080c44e75dabea594d2b57acc53713 | [
"MIT"
] | 1 | 2022-02-25T12:07:16.000Z | 2022-02-25T12:07:16.000Z | # Copyright (c) 2020 Graphcore Ltd. All rights reserved.
import argparse
from functools import partial
import numpy as np
import tensorflow.compat.v1 as tf
from tensorflow.keras.datasets import mnist
from tensorflow.keras import layers
from tensorflow.python import ipu
from outfeed_optimizer import OutfeedOptimizer,... | 42.289474 | 131 | 0.649391 | 1,388 | 11,249 | 5.074207 | 0.25072 | 0.063041 | 0.030669 | 0.012779 | 0.242936 | 0.197217 | 0.158597 | 0.13659 | 0.1116 | 0.075536 | 0 | 0.016191 | 0.242333 | 11,249 | 265 | 132 | 42.449057 | 0.810161 | 0.224553 | 0 | 0.059172 | 0 | 0.011834 | 0.122334 | 0.021676 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053254 | false | 0 | 0.053254 | 0.011834 | 0.153846 | 0.065089 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff77cf7a8eea7809ab411aa9b0c87d02e9b83629 | 5,837 | py | Python | tests/rbac/test_policies.py | giangbui/fence | 5a28b77c30ce7fb11fd05b09a023d0aec1e57e16 | [
"Apache-2.0"
] | 2 | 2019-06-10T15:30:51.000Z | 2020-01-18T23:24:13.000Z | tests/rbac/test_policies.py | giangbui/fence | 5a28b77c30ce7fb11fd05b09a023d0aec1e57e16 | [
"Apache-2.0"
] | null | null | null | tests/rbac/test_policies.py | giangbui/fence | 5a28b77c30ce7fb11fd05b09a023d0aec1e57e16 | [
"Apache-2.0"
] | 1 | 2022-03-31T09:52:46.000Z | 2022-03-31T09:52:46.000Z | # pylint: disable=unused-argument
"""
Run tests for the policy endpoints in the RBAC blueprint.
Note that any test which will cause a call to
``fence.blueprints.rbac.lookup_policies`` must add the test policies to the
database, otherwise fence will raise an error from not finding a policy. Use
something like this:
... | 36.710692 | 82 | 0.716464 | 807 | 5,837 | 4.988848 | 0.173482 | 0.074516 | 0.034774 | 0.039742 | 0.475658 | 0.429459 | 0.409836 | 0.382514 | 0.338053 | 0.32762 | 0 | 0.004437 | 0.189138 | 5,837 | 158 | 83 | 36.943038 | 0.846186 | 0.31129 | 0 | 0.341463 | 0 | 0 | 0.081039 | 0.023669 | 0 | 0 | 0 | 0 | 0.207317 | 1 | 0.073171 | false | 0 | 0.085366 | 0 | 0.158537 | 0.012195 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff7ba6f9e8860cad59ba673c821554190e51c56e | 4,773 | py | Python | source/evaluate.py | dovietchinh/multi-task-classification | 23a70300a7a800bc982f87902b6aa1faaf91b489 | [
"RSA-MD"
] | null | null | null | source/evaluate.py | dovietchinh/multi-task-classification | 23a70300a7a800bc982f87902b6aa1faaf91b489 | [
"RSA-MD"
] | null | null | null | source/evaluate.py | dovietchinh/multi-task-classification | 23a70300a7a800bc982f87902b6aa1faaf91b489 | [
"RSA-MD"
] | null | null | null | import torch
from models.mobilenetv2 import MobileNetV2
import sklearn.metrics
from tqdm import tqdm
import argparse
import logging
from utils.dataset import LoadImagesAndLabels, preprocess
from utils.torch_utils import select_device
import yaml
import pandas as pd
import os
import numpy as np
LOGGER = logging.getL... | 40.449153 | 147 | 0.600251 | 648 | 4,773 | 4.256173 | 0.259259 | 0.019942 | 0.043147 | 0.018854 | 0.160261 | 0.102973 | 0.093546 | 0.075417 | 0.075417 | 0.056563 | 0 | 0.007832 | 0.250995 | 4,773 | 117 | 148 | 40.794872 | 0.763636 | 0.092185 | 0 | 0 | 0 | 0.010309 | 0.133503 | 0.034706 | 0 | 0 | 0 | 0 | 0.010309 | 1 | 0.030928 | false | 0 | 0.123711 | 0 | 0.164948 | 0.020619 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff7c13128a462bb3be23d19e422d7d63b0a4d08d | 1,070 | py | Python | exec_command.py | Stefantb/CMakeTools | 3fd909e0d45034180e8cf97d73779468c555368f | [
"MIT"
] | null | null | null | exec_command.py | Stefantb/CMakeTools | 3fd909e0d45034180e8cf97d73779468c555368f | [
"MIT"
] | null | null | null | exec_command.py | Stefantb/CMakeTools | 3fd909e0d45034180e8cf97d73779468c555368f | [
"MIT"
] | null | null | null | import imp
import Default.exec
from . import build_tools
from . import logging
imp.reload(build_tools)
imp.reload(logging)
# *****************************************************************************
#
# *****************************************************************************
logger = logging.get_logger(__... | 28.157895 | 79 | 0.483178 | 98 | 1,070 | 5.081633 | 0.530612 | 0.100402 | 0.080321 | 0.096386 | 0.092369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156075 | 1,070 | 37 | 80 | 28.918919 | 0.551495 | 0.350467 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.210526 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff7d34e02261e5588658057813346b3480351089 | 700 | py | Python | test/test_wire2.py | aravindhk/Vides | 65d9ea9764ddf5f6ef40e869bd31387d0e3e378f | [
"BSD-4-Clause"
] | 2 | 2021-11-03T17:24:24.000Z | 2021-12-02T06:06:50.000Z | test/test_wire2.py | aravindhk/Vides | 65d9ea9764ddf5f6ef40e869bd31387d0e3e378f | [
"BSD-4-Clause"
] | null | null | null | test/test_wire2.py | aravindhk/Vides | 65d9ea9764ddf5f6ef40e869bd31387d0e3e378f | [
"BSD-4-Clause"
] | null | null | null | from NanoTCAD_ViDES import *
#a=array([5.4,0,0,10,6])
#rank = MPI.COMM_WORLD.Get_rank()
rank=0;
a=array([5.43,0,1,3.85,10.5])
[x,y,z]=atoms_coordinates_nanowire(a);
save_format_xyz("Z2.xyz",x/10.0,y/10.0,z/10.0,"Si");
[HH,n,Nc]=create_H_from_xyz(x,y,z,10,thop_Si,3,4);
ind=argsort(HH[:,1]);
savetxt("H",(real(HH[:,0:10])... | 21.212121 | 52 | 0.631429 | 159 | 700 | 2.698113 | 0.433962 | 0.020979 | 0.032634 | 0.037296 | 0.04662 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088415 | 0.062857 | 700 | 32 | 53 | 21.875 | 0.565549 | 0.127143 | 0 | 0 | 0 | 0 | 0.094059 | 0.039604 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff81e93f9d63ba522af9720a31163a75f3b71887 | 2,127 | py | Python | setup.py | spacemeat/humon-py | f67119be656c169fda5624ef1d33d639e0e84809 | [
"MIT"
] | null | null | null | setup.py | spacemeat/humon-py | f67119be656c169fda5624ef1d33d639e0e84809 | [
"MIT"
] | null | null | null | setup.py | spacemeat/humon-py | f67119be656c169fda5624ef1d33d639e0e84809 | [
"MIT"
] | null | null | null | # We're linking against '../build/bin/libhumon-d.a' which is built by `../build.py`.
from setuptools import setup, Extension
with open ('README.md', 'r') as f:
long_desc = f.read()
setup(name="humon",
version='0.0.3',
description='A Python wrapper over humon\'s C API, for reading Humon token stream... | 41.705882 | 91 | 0.416549 | 189 | 2,127 | 4.613757 | 0.566138 | 0.080275 | 0.073395 | 0.041284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00674 | 0.441937 | 2,127 | 50 | 92 | 42.54 | 0.727885 | 0.038552 | 0 | 0.046512 | 0 | 0 | 0.324841 | 0.100441 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 0 | 0.023256 | 0.023256 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff8380265f376dd391d1a11edf2a540c53f53a18 | 3,755 | py | Python | indra/lib/python/indra/base/metrics.py | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | indra/lib/python/indra/base/metrics.py | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | indra/lib/python/indra/base/metrics.py | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | """\
@file metrics.py
@author Phoenix
@date 2007-11-27
@brief simple interface for logging metrics
$LicenseInfo:firstyear=2007&license=mit$
Copyright (c) 2007-2009, Linden Research, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (... | 30.778689 | 77 | 0.69241 | 506 | 3,755 | 5.05336 | 0.416996 | 0.034415 | 0.010168 | 0.014079 | 0.035198 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008045 | 0.238615 | 3,755 | 121 | 78 | 31.033058 | 0.886324 | 0.499867 | 0 | 0.171875 | 0 | 0 | 0.093443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171875 | false | 0.03125 | 0.09375 | 0 | 0.40625 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff83eb9a77537e2ab8fa2e7059f2473c401773ef | 955 | py | Python | CodeChef/KAVGMAT.py | PROxZIMA/Competitive-Coding | ba6b365ea130b6fcaa15c5537b530ed363bab793 | [
"MIT"
] | 1 | 2021-01-10T13:29:21.000Z | 2021-01-10T13:29:21.000Z | CodeChef/KAVGMAT.py | PROxZIMA/Competitive-Coding | ba6b365ea130b6fcaa15c5537b530ed363bab793 | [
"MIT"
] | null | null | null | CodeChef/KAVGMAT.py | PROxZIMA/Competitive-Coding | ba6b365ea130b6fcaa15c5537b530ed363bab793 | [
"MIT"
] | null | null | null | # https://www.codechef.com/viewsolution/44674409
from itertools import accumulate
def binSearch(arr: tuple, r: int, lens: int, k: int, siz: int) -> int:
s, l, siz2, total = 1, lens, siz ** 2, lens + 1
while (s <= l):
m = int((s + l) / 2)
avg = (arr[r][m] - arr[r][m - siz] - arr[r - siz][m] + ... | 28.939394 | 92 | 0.489005 | 157 | 955 | 2.961783 | 0.33758 | 0.034409 | 0.021505 | 0.034409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037209 | 0.324607 | 955 | 33 | 93 | 28.939394 | 0.683721 | 0.048168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.2 | 0.04 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff84bc8bc1a66d6322c20e43d9ff178f6a164a04 | 3,074 | py | Python | solver.py | koffes/professorspillet | 735b460c4757fe9dbc5f12e25dd3c808a8fe3d1f | [
"MIT"
] | null | null | null | solver.py | koffes/professorspillet | 735b460c4757fe9dbc5f12e25dd3c808a8fe3d1f | [
"MIT"
] | null | null | null | solver.py | koffes/professorspillet | 735b460c4757fe9dbc5f12e25dd3c808a8fe3d1f | [
"MIT"
] | null | null | null | """Professor game solver."""
from deck import Deck
import tiles
from display import Display
from board import Board
import argparse
class Solver:
"""Solver for the professor game."""
def __init__(self):
"""Create the deck and start the solver."""
self.deck = Deck(tiles.DECK)
self.disp... | 34.155556 | 79 | 0.559857 | 390 | 3,074 | 4.133333 | 0.233333 | 0.073821 | 0.055831 | 0.072581 | 0.233251 | 0.185484 | 0.137097 | 0.093672 | 0.076923 | 0.076923 | 0 | 0.015557 | 0.330839 | 3,074 | 89 | 80 | 34.539326 | 0.768109 | 0.058556 | 0 | 0.242857 | 0 | 0 | 0.059378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.071429 | 0 | 0.228571 | 0.057143 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff8661954cbb2044fab53dc99ce42a19a19a7154 | 720 | py | Python | main.py | henry2ee/danmu | 997c8a89caf24fb8735516208b79bd7353577818 | [
"MIT"
] | null | null | null | main.py | henry2ee/danmu | 997c8a89caf24fb8735516208b79bd7353577818 | [
"MIT"
] | null | null | null | main.py | henry2ee/danmu | 997c8a89caf24fb8735516208b79bd7353577818 | [
"MIT"
] | null | null | null | import time
import asyncio
from examples.test_bili_danmu import test_tcp_v2_danmu_client as bi_danmu
from examples.test_huya_danmu import test_ws_danmu_client as hy_danmu
from examples.test_douyu_danmu import test_ws_danmu_client as dy_danmu
# loop.run_until_complete(test_tcp_v2_danmu_client())
print('请选择直播平台 1.B站... | 24.827586 | 73 | 0.791667 | 123 | 720 | 4.292683 | 0.373984 | 0.056818 | 0.090909 | 0.151515 | 0.276515 | 0.113636 | 0.113636 | 0 | 0 | 0 | 0 | 0.021638 | 0.101389 | 720 | 29 | 74 | 24.827586 | 0.794436 | 0.070833 | 0 | 0 | 0 | 0 | 0.082335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.15 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff89c28a62c2b3ce0f84616a879b1b818bbc1672 | 653 | py | Python | dynamic_rest/renderers.py | reinert/dynamic-rest | aaf3973f69b53ed317b9c8468942523715814fa8 | [
"MIT"
] | 690 | 2016-02-05T22:46:03.000Z | 2022-03-28T18:59:49.000Z | dynamic_rest/renderers.py | reinert/dynamic-rest | aaf3973f69b53ed317b9c8468942523715814fa8 | [
"MIT"
] | 190 | 2015-03-06T16:57:21.000Z | 2022-02-02T21:56:07.000Z | dynamic_rest/renderers.py | reinert/dynamic-rest | aaf3973f69b53ed317b9c8468942523715814fa8 | [
"MIT"
] | 117 | 2016-05-05T13:51:07.000Z | 2022-02-28T18:25:56.000Z | """This module contains custom renderer classes."""
from rest_framework.renderers import BrowsableAPIRenderer
class DynamicBrowsableAPIRenderer(BrowsableAPIRenderer):
"""Renderer class that adds directory support to the Browsable API."""
template = 'dynamic_rest/api.html'
def get_context(self, data, med... | 31.095238 | 74 | 0.690658 | 65 | 653 | 6.8 | 0.553846 | 0.049774 | 0.058824 | 0.090498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23124 | 653 | 20 | 75 | 32.65 | 0.880478 | 0.168453 | 0 | 0 | 0 | 0 | 0.069549 | 0.039474 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff8bd9285a91afad46966a1aacbf71a2f7a0647a | 4,839 | py | Python | pdffitx/tests/modeling/test_running.py | st3107/pdffitx | c746f6dfaf5656e9bb62508a9847c00567b34bbe | [
"BSD-3-Clause"
] | null | null | null | pdffitx/tests/modeling/test_running.py | st3107/pdffitx | c746f6dfaf5656e9bb62508a9847c00567b34bbe | [
"BSD-3-Clause"
] | null | null | null | pdffitx/tests/modeling/test_running.py | st3107/pdffitx | c746f6dfaf5656e9bb62508a9847c00567b34bbe | [
"BSD-3-Clause"
] | null | null | null | import pytest
from matplotlib import pyplot as plt
from pdffitx.modeling import F, multi_phase, optimize, fit_calib, MyParser
@pytest.mark.parametrize(
"data_key,kwargs,free_params,use_cf,expected",
[
(
"Ni_stru",
{
'values': {'scale_G0': 0.1, 'a_G0': 3.42, 'Bi... | 32.695946 | 107 | 0.468899 | 634 | 4,839 | 3.242902 | 0.194006 | 0.047665 | 0.038911 | 0.024319 | 0.496109 | 0.428988 | 0.428988 | 0.422179 | 0.349222 | 0.314202 | 0 | 0.080064 | 0.357305 | 4,839 | 147 | 108 | 32.918367 | 0.581029 | 0.023352 | 0 | 0.382353 | 0 | 0 | 0.230883 | 0.009108 | 0 | 0 | 0 | 0 | 0.022059 | 1 | 0.022059 | false | 0 | 0.022059 | 0 | 0.044118 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff8cf0a690ddb21019a081d81240d10700344897 | 1,032 | py | Python | geo.py | biliarski/Geo | 3eb8f3073f734ed13d8fa508a2fa29828e13cd11 | [
"MIT"
] | null | null | null | geo.py | biliarski/Geo | 3eb8f3073f734ed13d8fa508a2fa29828e13cd11 | [
"MIT"
] | null | null | null | geo.py | biliarski/Geo | 3eb8f3073f734ed13d8fa508a2fa29828e13cd11 | [
"MIT"
] | null | null | null | from segpy.reader import create_reader
from segpy.writer import write_segy
import numpy as np
"""
Docs:
Segpy https://segpy.readthedocs.io/en/latest/
NumPy https://docs.scipy.org/doc/numpy-1.13.0/reference/index.html
"""
if __name__ == '__main__':
with open('data/CUTE.sgy', 'rb') as segy_in_file:... | 31.272727 | 95 | 0.655039 | 157 | 1,032 | 4.050955 | 0.464968 | 0.044025 | 0.121069 | 0.044025 | 0.062893 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011407 | 0.235465 | 1,032 | 32 | 96 | 32.25 | 0.794677 | 0.335271 | 0 | 0 | 0 | 0 | 0.04291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.083333 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff8da5b6c055840eb2495a1ff2b0ff2da60c7317 | 5,405 | py | Python | cogs/rng.py | AbstractUmbra/Okayu | 0a96ee4acbb82dd19302f90e49b6b7f550b1f8fc | [
"MIT"
] | 6 | 2020-05-05T14:46:45.000Z | 2020-08-07T21:48:48.000Z | cogs/rng.py | AbstractUmbra/Okayu | 0a96ee4acbb82dd19302f90e49b6b7f550b1f8fc | [
"MIT"
] | 1 | 2020-10-01T18:50:15.000Z | 2020-10-01T18:51:12.000Z | cogs/rng.py | AbstractUmbra/Robo-Hz | 0a96ee4acbb82dd19302f90e49b6b7f550b1f8fc | [
"MIT"
] | 4 | 2020-10-01T18:30:30.000Z | 2020-10-02T00:35:02.000Z | """
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
"""
from __future__ import annotations
import random
import re
from collections import Counter
from typing imp... | 33.364198 | 111 | 0.595745 | 703 | 5,405 | 4.530583 | 0.330014 | 0.032653 | 0.04898 | 0.033909 | 0.141915 | 0.115542 | 0.100471 | 0.100471 | 0.065306 | 0.035793 | 0 | 0.016334 | 0.286401 | 5,405 | 161 | 112 | 33.571429 | 0.809437 | 0.052544 | 0 | 0.139785 | 0 | 0 | 0.140556 | 0.019846 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010753 | false | 0.021505 | 0.107527 | 0 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff8ef7348f50df3b9ddae02489685e3cf3e047f9 | 28,928 | py | Python | lib/silfont/scripts/psfrenameglyphs.py | silnrsi/pysilfont | 3c7855d21426590a3c0e235c965e8f90b76eccbb | [
"MIT"
] | 41 | 2015-05-21T21:12:26.000Z | 2022-02-17T17:23:14.000Z | lib/silfont/scripts/psfrenameglyphs.py | silnrsi/pysilfont | 3c7855d21426590a3c0e235c965e8f90b76eccbb | [
"MIT"
] | 63 | 2015-05-15T10:25:55.000Z | 2021-02-23T04:51:17.000Z | lib/silfont/scripts/psfrenameglyphs.py | silnrsi/pysilfont | 3c7855d21426590a3c0e235c965e8f90b76eccbb | [
"MIT"
] | 12 | 2015-06-12T11:52:08.000Z | 2020-09-23T10:40:59.000Z | #!/usr/bin/env python
__doc__ = '''Assign new working names to glyphs based on csv input file
- csv format oldname,newname'''
__url__ = 'http://github.com/silnrsi/pysilfont'
__copyright__ = 'Copyright (c) 2017 SIL International (http://www.sil.org)'
__license__ = 'Released under the MIT License (http://opensource.org/l... | 49.197279 | 154 | 0.565715 | 3,309 | 28,928 | 4.93291 | 0.170746 | 0.025914 | 0.012743 | 0.009435 | 0.278135 | 0.215157 | 0.18042 | 0.149482 | 0.13141 | 0.091834 | 0 | 0.004554 | 0.339533 | 28,928 | 587 | 155 | 49.28109 | 0.849785 | 0.203471 | 0 | 0.263158 | 0 | 0.004577 | 0.145512 | 0.025612 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016018 | false | 0.036613 | 0.011442 | 0 | 0.04119 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff915cb80b4b2c60c7c3e4a9792e6477f9f90875 | 272 | py | Python | apiclients/client.py | Crossing-Minds/reco-api-benchmarks | f740072a23e88270632a1acda468854e457d5086 | [
"MIT"
] | 3 | 2021-07-21T04:56:10.000Z | 2022-01-24T21:14:45.000Z | apiclients/client.py | Crossing-Minds/reco-api-benchmarks | f740072a23e88270632a1acda468854e457d5086 | [
"MIT"
] | null | null | null | apiclients/client.py | Crossing-Minds/reco-api-benchmarks | f740072a23e88270632a1acda468854e457d5086 | [
"MIT"
] | 1 | 2021-07-21T04:56:11.000Z | 2021-07-21T04:56:11.000Z | from xminds.api.client import CrossingMindsApiClient
from .config import ENVS_HOST
class ApiClientInternal(CrossingMindsApiClient):
ENVS_HOST = ENVS_HOST
def __init__(self, **kwargs):
host = self.ENVS_HOST
super().__init__(host=host, **kwargs)
| 22.666667 | 52 | 0.731618 | 31 | 272 | 6.032258 | 0.516129 | 0.171123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180147 | 272 | 11 | 53 | 24.727273 | 0.838565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff92ec13ffa6d364097db1db2973673b5c2e828a | 4,763 | py | Python | rebiber/arxiv.py | EntilZha/rebiber | 88c9fbef12cae73e2ed6f67ee6f32f39040f8299 | [
"MIT"
] | null | null | null | rebiber/arxiv.py | EntilZha/rebiber | 88c9fbef12cae73e2ed6f67ee6f32f39040f8299 | [
"MIT"
] | null | null | null | rebiber/arxiv.py | EntilZha/rebiber | 88c9fbef12cae73e2ed6f67ee6f32f39040f8299 | [
"MIT"
] | null | null | null | import json
import os
import pickle
from typing import Dict
import bibtexparser
import typer
from functional import pseq
from rich.console import Console
from rebiber.bib2json import normalize_title
console = Console()
app = typer.Typer()
def construct_paper_db(bib_list_file, start_dir=""):
with open(bib_list... | 35.022059 | 118 | 0.617258 | 574 | 4,763 | 4.893728 | 0.195122 | 0.06942 | 0.032396 | 0.04984 | 0.466358 | 0.395158 | 0.374511 | 0.259879 | 0.212887 | 0.177287 | 0 | 0.000559 | 0.248793 | 4,763 | 135 | 119 | 35.281481 | 0.784516 | 0 | 0 | 0.226415 | 0 | 0 | 0.202603 | 0.054377 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.084906 | 0 | 0.179245 | 0.103774 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff960735fdb34528546506bb607e3faee741a1e4 | 927 | py | Python | tests/schema/parser/test_parse_string.py | george-fry/statham-schema | 19aa64de8750001cbc24f2775e0684f2298f840f | [
"MIT"
] | 23 | 2020-06-25T15:55:29.000Z | 2022-03-31T16:51:40.000Z | tests/schema/parser/test_parse_string.py | george-fry/statham-schema | 19aa64de8750001cbc24f2775e0684f2298f840f | [
"MIT"
] | 25 | 2020-02-29T15:32:35.000Z | 2022-03-03T17:22:45.000Z | tests/schema/parser/test_parse_string.py | george-fry/statham-schema | 19aa64de8750001cbc24f2775e0684f2298f840f | [
"MIT"
] | 5 | 2020-10-18T19:14:32.000Z | 2022-03-09T10:40:41.000Z | from typing import Any, Dict
import pytest
from statham.schema.elements import Element, String
from statham.schema.parser import parse_element
@pytest.mark.parametrize(
"schema,expected",
[
pytest.param({"type": "string"}, String(), id="with-no-keywords"),
pytest.param(
{
... | 25.054054 | 74 | 0.499461 | 82 | 927 | 5.536585 | 0.45122 | 0.048458 | 0.07489 | 0.092511 | 0.264317 | 0.264317 | 0.264317 | 0.264317 | 0.264317 | 0.264317 | 0 | 0.006873 | 0.372168 | 927 | 36 | 75 | 25.75 | 0.773196 | 0 | 0 | 0.0625 | 0 | 0 | 0.151025 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.03125 | false | 0 | 0.125 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff968ae04edbff3d50de711811fb00ace4d24f74 | 789 | py | Python | linkedList/445 add two numbers||.py | windowssocket/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 3 | 2018-05-29T02:29:40.000Z | 2020-02-05T03:28:16.000Z | linkedList/445 add two numbers||.py | xidongc/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 1 | 2019-03-08T13:22:32.000Z | 2019-03-08T13:22:32.000Z | linkedList/445 add two numbers||.py | xidongc/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 3 | 2018-05-29T11:50:24.000Z | 2018-11-27T12:31:01.000Z | # Definition for singly-linked list.
# 从尾到头建立链表
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def addTwoNumbers(self, l1, l2):
"""
:type l1: ListNode
:type l2: ListNode
:rtype: ListNode
"""
x1... | 22.542857 | 66 | 0.439797 | 96 | 789 | 3.572917 | 0.34375 | 0.093294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076389 | 0.452471 | 789 | 34 | 67 | 23.205882 | 0.717593 | 0.125475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff96bcbff2c0f2f668c7a304aea3d86e2f5859c9 | 5,461 | py | Python | xrdinfo/xrd_all_methods.py | JyrgenSuvalov/X-Road-scripts | 42ec7279fc1404f7e37fbc0676f55f4b83052157 | [
"MIT"
] | 11 | 2017-11-10T14:24:30.000Z | 2021-12-17T08:23:46.000Z | xrdinfo/xrd_all_methods.py | JyrgenSuvalov/X-Road-scripts | 42ec7279fc1404f7e37fbc0676f55f4b83052157 | [
"MIT"
] | 5 | 2017-11-10T11:50:46.000Z | 2021-04-14T10:28:21.000Z | xrdinfo/xrd_all_methods.py | JyrgenSuvalov/X-Road-scripts | 42ec7279fc1404f7e37fbc0676f55f4b83052157 | [
"MIT"
] | 8 | 2017-10-04T13:37:39.000Z | 2020-04-28T13:35:31.000Z | #!/usr/bin/python3
from threading import Thread, Event
import argparse
import xrdinfo
import queue
import sys
# By default return listMethods
DEFAULT_METHOD = 'listMethods'
# Default timeout for HTTP requests
DEFAULT_TIMEOUT = 5.0
# Do not use threading by default
DEFAULT_THREAD_COUNT = 1
def print_error(content)... | 33.919255 | 100 | 0.600256 | 623 | 5,461 | 5.154093 | 0.284109 | 0.028029 | 0.052943 | 0.024292 | 0.216755 | 0.183121 | 0.163189 | 0.13952 | 0.13952 | 0.123326 | 0 | 0.003036 | 0.27614 | 5,461 | 160 | 101 | 34.13125 | 0.809259 | 0.081121 | 0 | 0.196721 | 0 | 0 | 0.229754 | 0.017397 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02459 | false | 0 | 0.040984 | 0 | 0.07377 | 0.040984 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff98472de29779514bd38ec9ab5d58884f067f9e | 3,013 | py | Python | web/handlers_public_api.py | PCNI/homeless-helper | 2216199da2e4b41be6eb5c287d9c1a054fec3945 | [
"MIT"
] | 3 | 2015-05-04T14:52:10.000Z | 2020-02-22T07:03:20.000Z | web/handlers_public_api.py | PCNI/homeless-helper | 2216199da2e4b41be6eb5c287d9c1a054fec3945 | [
"MIT"
] | 1 | 2015-01-12T18:25:03.000Z | 2015-01-12T18:53:33.000Z | web/handlers_public_api.py | PCNI/homeless-helper | 2216199da2e4b41be6eb5c287d9c1a054fec3945 | [
"MIT"
] | null | null | null | import os
import sys
import time
import random
import string
import json
import hashlib
import socket
import urllib
import urllib2
from pprint import pprint
import tornado.web
import handlers_base
BaseHandler = handlers_base.BaseHandler
import twilio.twiml
from HomelessHelper.config import Config
from HomelessHelpe... | 33.853933 | 170 | 0.699303 | 387 | 3,013 | 5.263566 | 0.191214 | 0.082474 | 0.17673 | 0.054983 | 0.398625 | 0.376043 | 0.376043 | 0.376043 | 0.376043 | 0.376043 | 0 | 0.005354 | 0.194159 | 3,013 | 88 | 171 | 34.238636 | 0.833608 | 0.001991 | 0 | 0.297297 | 0 | 0 | 0.053262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094595 | false | 0 | 0.27027 | 0 | 0.459459 | 0.013514 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff9927cca6dd5850053f49e3edbc6473af7f6bc7 | 587 | py | Python | falcon/web.py | irr/python-labs | 43bb3a528c151653b2be832c7ff13240a10e18a4 | [
"Apache-2.0"
] | 4 | 2015-11-25T09:06:44.000Z | 2019-12-11T21:35:21.000Z | falcon/web.py | irr/python-labs | 43bb3a528c151653b2be832c7ff13240a10e18a4 | [
"Apache-2.0"
] | null | null | null | falcon/web.py | irr/python-labs | 43bb3a528c151653b2be832c7ff13240a10e18a4 | [
"Apache-2.0"
] | 2 | 2015-11-25T09:19:38.000Z | 2016-02-26T03:54:06.000Z | import falcon
class WebResource:
def on_get(self, req, resp):
"""Handles GET requests"""
resp.status = falcon.HTTP_200 # This is the default status
resp.body = ('Test OK!')
# falcon.API instances are callable WSGI apps
app = falcon.API()
# Resources are represented by long-lived class in... | 32.611111 | 159 | 0.688245 | 84 | 587 | 4.77381 | 0.75 | 0.044888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029474 | 0.190801 | 587 | 18 | 159 | 32.611111 | 0.814737 | 0.609881 | 0 | 0 | 0 | 0 | 0.040909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff9a5956d10a9a6fb72dea22176041ce89b5315d | 8,803 | py | Python | services/Autocorrect/inc/wikipedia_correction.py | muhammad-abbady/JenTab | df7b1450cb14e64edade30ea7de49d05a7d7dbf2 | [
"Apache-2.0"
] | 9 | 2021-03-23T11:32:40.000Z | 2022-03-31T13:58:41.000Z | services/Autocorrect/inc/wikipedia_correction.py | muhammad-abbady/JenTab | df7b1450cb14e64edade30ea7de49d05a7d7dbf2 | [
"Apache-2.0"
] | null | null | null | services/Autocorrect/inc/wikipedia_correction.py | muhammad-abbady/JenTab | df7b1450cb14e64edade30ea7de49d05a7d7dbf2 | [
"Apache-2.0"
] | 1 | 2021-04-29T21:27:08.000Z | 2021-04-29T21:27:08.000Z | from collections import Counter
import re
from os.path import join
from config import ASSET_PATH
class WikipediaCorrection(object):
def __init__(self):
self.Vocab = [] # Vocab list
self.vocab_n = None # Vocab length
self.probs = {} # Probabilities dict
self.init_vocab()
... | 47.074866 | 852 | 0.564239 | 1,182 | 8,803 | 4.051607 | 0.331641 | 0.02631 | 0.024431 | 0.013364 | 0.370432 | 0.32345 | 0.287743 | 0.284193 | 0.229275 | 0.167049 | 0 | 0.009986 | 0.271953 | 8,803 | 187 | 853 | 47.074866 | 0.737245 | 0.122004 | 0 | 0.083333 | 0 | 0.008333 | 0.321191 | 0.093313 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091667 | false | 0 | 0.033333 | 0.025 | 0.233333 | 0.108333 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff9b138f03c8da437646fca20eb6180ca1f35e5b | 347 | py | Python | finorch/sessions/cit/wrapper.py | ADACS-Australia/SS2021B-DBrown | 67b93b316e6f9ab09e3bd5105edbbc71108e0723 | [
"MIT"
] | null | null | null | finorch/sessions/cit/wrapper.py | ADACS-Australia/SS2021B-DBrown | 67b93b316e6f9ab09e3bd5105edbbc71108e0723 | [
"MIT"
] | null | null | null | finorch/sessions/cit/wrapper.py | ADACS-Australia/SS2021B-DBrown | 67b93b316e6f9ab09e3bd5105edbbc71108e0723 | [
"MIT"
] | null | null | null | from pathlib import Path
import finesse
from finorch.sessions.abstract_wrapper import AbstractWrapper
class CITWrapper(AbstractWrapper):
def run(self):
katscript = open('script.k', 'r').read()
kat = finesse.Model()
kat.parse(katscript)
out = kat.run()
finesse.save(out, P... | 21.6875 | 61 | 0.654179 | 41 | 347 | 5.512195 | 0.707317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224784 | 347 | 15 | 62 | 23.133333 | 0.840149 | 0 | 0 | 0 | 0 | 0 | 0.057637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff9b480b8efa2a0703a1bdaca93521ce030786a1 | 1,048 | py | Python | app/api/tokens.py | simal1717/Backend_Airbnb_237 | d155882cb1e779e648629dd41a1c2e7c83436a90 | [
"MIT"
] | null | null | null | app/api/tokens.py | simal1717/Backend_Airbnb_237 | d155882cb1e779e648629dd41a1c2e7c83436a90 | [
"MIT"
] | null | null | null | app/api/tokens.py | simal1717/Backend_Airbnb_237 | d155882cb1e779e648629dd41a1c2e7c83436a90 | [
"MIT"
] | null | null | null | from flask import jsonify, g, session
from app import db
from app.api import bp
from app.api.auth import basic_auth, token_auth
#? Not GET ?
@bp.route('/tokens', methods=['POST'])
@basic_auth.login_required
def get_token():
#print(1111)
token = g.current_user.get_token()
#print(2222, token)
db.sessio... | 29.111111 | 77 | 0.660305 | 145 | 1,048 | 4.593103 | 0.372414 | 0.148649 | 0.144144 | 0.06006 | 0.189189 | 0.189189 | 0.189189 | 0.189189 | 0.189189 | 0.189189 | 0 | 0.022145 | 0.181298 | 1,048 | 35 | 78 | 29.942857 | 0.754079 | 0.371183 | 0 | 0.111111 | 0 | 0 | 0.064915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff9e05c2ec37c37c723574b5d5401eb33290ab98 | 1,608 | py | Python | bsbolt/Utils/MatrixIterator.py | HarryZhang1224/BSBolt | a5df4db8497d7c0274f5f12041c87472c06ff78e | [
"MIT"
] | 10 | 2020-04-05T00:44:44.000Z | 2022-02-11T15:11:00.000Z | bsbolt/Utils/MatrixIterator.py | HarryZhang1224/BSBolt | a5df4db8497d7c0274f5f12041c87472c06ff78e | [
"MIT"
] | 7 | 2019-01-25T22:14:40.000Z | 2022-01-17T18:58:05.000Z | bsbolt/Utils/MatrixIterator.py | HarryZhang1224/BSBolt | a5df4db8497d7c0274f5f12041c87472c06ff78e | [
"MIT"
] | 5 | 2019-07-19T22:57:36.000Z | 2021-11-12T14:57:37.000Z | #! /usr/env python3
import gzip
import io
from typing import List, Tuple, Union
import numpy as np
class OpenMatrix:
""" Simple class to simple class to iterate through bsbolt matrix file
------------------------------------------------------------------------------------
input: path to matrix file
r... | 31.529412 | 108 | 0.548507 | 186 | 1,608 | 4.629032 | 0.435484 | 0.075494 | 0.030197 | 0.046458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005263 | 0.291045 | 1,608 | 50 | 109 | 32.16 | 0.75 | 0.143035 | 0 | 0.108108 | 0 | 0 | 0.013981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0.108108 | 0 | 0.432432 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff9ee3da1f88b893679112e185450b21bd4f45aa | 1,036 | py | Python | Leetcode/Python/_1694.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | 1 | 2021-11-28T15:03:32.000Z | 2021-11-28T15:03:32.000Z | Leetcode/Python/_1694.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | null | null | null | Leetcode/Python/_1694.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | null | null | null | class Solution:
def reformatNumber(self, number: str) -> str:
number = number.replace('-', '')
number = number.replace(' ', '')
string = ''
while len(number) > 4:
string += number[:3] + '-'
number = number[3:]
if len(number) == 4:
string +=... | 29.6 | 67 | 0.478764 | 104 | 1,036 | 4.711538 | 0.211538 | 0.110204 | 0.155102 | 0.110204 | 0.546939 | 0.289796 | 0.289796 | 0.289796 | 0.289796 | 0.289796 | 0 | 0.021638 | 0.375483 | 1,036 | 34 | 68 | 30.470588 | 0.735703 | 0.008687 | 0 | 0.428571 | 0 | 0 | 0.007805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ffa0775e71e040481abc339f4098a4d9e15eabd9 | 10,989 | py | Python | devro/env/components.py | abnvar/devro | 25a9e996e73494728595d3135451c9fceb5f0324 | [
"MIT"
] | 8 | 2020-04-19T17:03:44.000Z | 2021-04-30T20:22:14.000Z | devro/env/components.py | abnvar/SLAM-devTools | 25a9e996e73494728595d3135451c9fceb5f0324 | [
"MIT"
] | 4 | 2020-04-22T17:25:18.000Z | 2020-04-29T15:43:36.000Z | devro/env/components.py | abnvar/SLAM-devTools | 25a9e996e73494728595d3135451c9fceb5f0324 | [
"MIT"
] | null | null | null | import cv2
import time
import simpy
import random
import threading
import numpy as np
from math import sin, cos
from devro.visualization import display
class DynObstacle():
def __init__(self, radius, velocity, pixelSpan, direction):
self.velocity = velocity
self.position = {"x":random.randint(0,pi... | 33.099398 | 183 | 0.57867 | 1,351 | 10,989 | 4.687639 | 0.19393 | 0.017685 | 0.022738 | 0.01579 | 0.16264 | 0.112743 | 0.059372 | 0.030633 | 0.030633 | 0.021791 | 0 | 0.021975 | 0.304304 | 10,989 | 331 | 184 | 33.199396 | 0.806409 | 0.153608 | 0 | 0.082126 | 0 | 0 | 0.002321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140097 | false | 0.004831 | 0.043478 | 0 | 0.21256 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ffa6f74f43f47f17e2e67712e39ba72803e3ef7d | 4,177 | py | Python | seqsearch/search/hmmer.py | xapple/seqsearch | cf3a7691285d245829bc9c6d18354e01e631fc12 | [
"MIT"
] | null | null | null | seqsearch/search/hmmer.py | xapple/seqsearch | cf3a7691285d245829bc9c6d18354e01e631fc12 | [
"MIT"
] | null | null | null | seqsearch/search/hmmer.py | xapple/seqsearch | cf3a7691285d245829bc9c6d18354e01e631fc12 | [
"MIT"
] | 1 | 2015-01-21T14:38:46.000Z | 2015-01-21T14:38:46.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Written by Lucas Sinclair.
MIT Licensed.
Contact at www.sinclair.bio
"""
# Built-in modules #
import warnings, multiprocessing
# Internal modules #
from seqsearch.databases.pfam import pfam
from seqsearch.databases.tigrfam import tigrfam
# First party modules #
... | 37.294643 | 99 | 0.547043 | 482 | 4,177 | 4.628631 | 0.408714 | 0.037651 | 0.034514 | 0.025549 | 0.023308 | 0.023308 | 0 | 0 | 0 | 0 | 0 | 0.007554 | 0.334451 | 4,177 | 111 | 100 | 37.630631 | 0.794964 | 0.202777 | 0 | 0.028571 | 0 | 0 | 0.106156 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 1 | 0.085714 | false | 0 | 0.1 | 0.028571 | 0.342857 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ffa705ad0694eff49275d52588a266e77c3b8d06 | 2,290 | py | Python | tests/test_solve.py | Sen-R/dynamic-programming | cfb6cada511dcef4b442841cf95159d8deb55616 | [
"MIT"
] | null | null | null | tests/test_solve.py | Sen-R/dynamic-programming | cfb6cada511dcef4b442841cf95159d8deb55616 | [
"MIT"
] | null | null | null | tests/test_solve.py | Sen-R/dynamic-programming | cfb6cada511dcef4b442841cf95159d8deb55616 | [
"MIT"
] | null | null | null | from typing import Dict
import pytest
from numpy.testing import assert_almost_equal
import numpy as np
from dp._types import Policy
from dp import FiniteMDP
from dp.solve import (
backup_optimal_values,
policy_evaluation,
policy_evaluation_affine_operator,
)
from .conftest import SimpleMDP, TState, TAction
... | 30.131579 | 75 | 0.634498 | 329 | 2,290 | 4.246201 | 0.303951 | 0.01718 | 0.060845 | 0.034359 | 0.118826 | 0.091625 | 0.064424 | 0.064424 | 0.064424 | 0 | 0 | 0.046259 | 0.235371 | 2,290 | 75 | 76 | 30.533333 | 0.751571 | 0.152402 | 0 | 0.111111 | 0 | 0 | 0.006803 | 0 | 0 | 0 | 0 | 0 | 0.092593 | 1 | 0.111111 | false | 0 | 0.148148 | 0 | 0.351852 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ffa9885e7671ec6782e68cccef479cdd2f9ce49e | 8,192 | py | Python | python/paddle/fluid/tests/unittests/test_logspace.py | RangeKing/Paddle | 2d87300809ae75d76f5b0b457d8112cb88dc3e27 | [
"Apache-2.0"
] | 8 | 2016-08-15T07:02:27.000Z | 2016-08-24T09:34:00.000Z | python/paddle/fluid/tests/unittests/test_logspace.py | RangeKing/Paddle | 2d87300809ae75d76f5b0b457d8112cb88dc3e27 | [
"Apache-2.0"
] | 1 | 2022-01-28T07:23:22.000Z | 2022-01-28T07:23:22.000Z | python/paddle/fluid/tests/unittests/test_logspace.py | RangeKing/Paddle | 2d87300809ae75d76f5b0b457d8112cb88dc3e27 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 35.310345 | 80 | 0.586426 | 1,024 | 8,192 | 4.577148 | 0.15332 | 0.069127 | 0.042245 | 0.047152 | 0.658844 | 0.630681 | 0.593983 | 0.578195 | 0.507147 | 0.478771 | 0 | 0.049925 | 0.264038 | 8,192 | 231 | 81 | 35.463203 | 0.727484 | 0.071167 | 0 | 0.475904 | 0 | 0 | 0.063348 | 0 | 0 | 0 | 0 | 0 | 0.096386 | 1 | 0.150602 | false | 0 | 0.03012 | 0 | 0.222892 | 0.006024 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ffaa3706e807f3b2ff19ebdc4ddab83d08ac4319 | 719 | py | Python | kwis/urls.py | Navisence/kwispel | cc93f345d3b53040ef1ec4b9e022040dca376173 | [
"MIT"
] | 1 | 2016-06-14T18:42:55.000Z | 2016-06-14T18:42:55.000Z | kwis/urls.py | Navisence/kwispel | cc93f345d3b53040ef1ec4b9e022040dca376173 | [
"MIT"
] | 1 | 2020-02-12T00:33:01.000Z | 2020-02-12T00:33:01.000Z | kwis/urls.py | Navisence/kwispel | cc93f345d3b53040ef1ec4b9e022040dca376173 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^team_overview.png$', views.team_overview),
url(r'^rnd_overview.png$', views.rnd_overview),
url(r'^ranking/$', views.ranking, name='ranking'),
url(r'^ranking/overview.png$', views.rank... | 42.294118 | 84 | 0.628651 | 118 | 719 | 3.686441 | 0.20339 | 0.091954 | 0.055172 | 0.048276 | 0.282759 | 0.264368 | 0.156322 | 0.156322 | 0 | 0 | 0 | 0.01875 | 0.109875 | 719 | 16 | 85 | 44.9375 | 0.660938 | 0 | 0 | 0 | 0 | 0 | 0.392211 | 0.272601 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ffac01add95f30509a3513e66d50a6bca1ffa573 | 6,608 | py | Python | networks/SRM_SE_GE/resnet.py | eepgxxy/Paddle_Attention_CNNs | a1e102afd03eab4c2839ed8df58ae2640edd5955 | [
"Apache-2.0"
] | 2 | 2021-06-21T08:14:25.000Z | 2021-09-08T08:24:18.000Z | networks/SRM_SE_GE/resnet.py | eepgxxy/Paddle_Attention_CNNs | a1e102afd03eab4c2839ed8df58ae2640edd5955 | [
"Apache-2.0"
] | null | null | null | networks/SRM_SE_GE/resnet.py | eepgxxy/Paddle_Attention_CNNs | a1e102afd03eab4c2839ed8df58ae2640edd5955 | [
"Apache-2.0"
] | 1 | 2021-09-08T08:25:15.000Z | 2021-09-08T08:25:15.000Z | import paddle
import paddle.nn as nn
import math
def conv3x3(in_planes, out_planes, stride=1):
"3x3 convolution with padding"
return nn.Conv2D(in_planes, out_planes, kernel_size=3, stride=stride,
padding=1, bias=False)
class BasicBlock(nn.Layer):
expansion = 1
def __init__(self, ... | 33.543147 | 138 | 0.585805 | 861 | 6,608 | 4.350755 | 0.156794 | 0.052856 | 0.024026 | 0.018687 | 0.454084 | 0.402029 | 0.357181 | 0.313401 | 0.285905 | 0.264015 | 0 | 0.037724 | 0.297972 | 6,608 | 196 | 139 | 33.714286 | 0.769778 | 0.004237 | 0 | 0.365385 | 0 | 0 | 0.007264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.038462 | 0 | 0.166667 | 0.00641 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ffafa132bf34854b4b313ea5ff73b935c4ed677f | 531 | py | Python | addons/blender-addon-fbx-bundle/platform_obj.py | V-Sekai/game-tools-V-Sekai | 74eb79e9b97bb1954e647ed2f909f4f326189cb5 | [
"MIT"
] | 2 | 2021-12-21T16:38:58.000Z | 2022-01-08T00:56:35.000Z | addons/blender-addon-fbx-bundle/platform_obj.py | V-Sekai/game-tools-V-Sekai | 74eb79e9b97bb1954e647ed2f909f4f326189cb5 | [
"MIT"
] | 1 | 2022-01-29T05:46:50.000Z | 2022-01-29T05:46:50.000Z | addons/blender-addon-fbx-bundle/platform_obj.py | V-Sekai/game-tools-V-Sekai | 74eb79e9b97bb1954e647ed2f909f4f326189cb5 | [
"MIT"
] | 1 | 2021-11-07T19:41:34.000Z | 2021-11-07T19:41:34.000Z | import bpy
import bmesh
import operator
import mathutils
import addon_utils
from . import platform
class Platform(platform.Platform):
extension = 'obj'
def __init__(self):
super().__init__()
def is_valid(self):
return True, ""
def file_export(self, path):
bpy.ops.export_scene.obj(
filepath =pat... | 14.351351 | 34 | 0.704331 | 72 | 531 | 4.875 | 0.597222 | 0.099715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007009 | 0.193974 | 531 | 36 | 35 | 14.75 | 0.813084 | 0 | 0 | 0 | 0 | 0 | 0.009416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.24 | 0.04 | 0.48 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ffb52d18ba01244fe0a111aa498702d1a5db89c0 | 7,096 | py | Python | trustpayments/models/refund_create.py | TrustPayments/python-sdk | 6fde6eb8cfce270c3612a2903a845c13018c3bb9 | [
"Apache-2.0"
] | 2 | 2020-01-16T13:24:06.000Z | 2020-11-21T17:40:17.000Z | postfinancecheckout/models/refund_create.py | pfpayments/python-sdk | b8ef159ea3c843a8d0361d1e0b122a9958adbcb4 | [
"Apache-2.0"
] | 4 | 2019-10-14T17:33:23.000Z | 2021-10-01T14:49:11.000Z | postfinancecheckout/models/refund_create.py | pfpayments/python-sdk | b8ef159ea3c843a8d0361d1e0b122a9958adbcb4 | [
"Apache-2.0"
] | 2 | 2019-10-15T14:17:10.000Z | 2021-09-17T13:07:09.000Z | # coding: utf-8
import pprint
import six
from enum import Enum
class RefundCreate:
swagger_types = {
'amount': 'float',
'completion': 'int',
'external_id': 'str',
'merchant_reference': 'str',
'reductions': 'list[LineItemReductionCreate]',
'transaction': 'int'... | 26.980989 | 195 | 0.584977 | 757 | 7,096 | 5.346103 | 0.136063 | 0.071658 | 0.124537 | 0.039783 | 0.419817 | 0.252039 | 0.180381 | 0.124537 | 0.124537 | 0.111688 | 0 | 0.003765 | 0.32624 | 7,096 | 262 | 196 | 27.083969 | 0.842711 | 0.268461 | 0 | 0.07563 | 0 | 0 | 0.146629 | 0.010734 | 0 | 0 | 0 | 0 | 0 | 1 | 0.168067 | false | 0 | 0.02521 | 0.02521 | 0.386555 | 0.016807 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |