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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c44a5475972c8b18b4e13064d3de052dc79e744 | 333 | py | Python | construct_ui/forms/__init__.py | construct-org/construct_ui | 933a73270ec46704f1ddaf4fabe4947373d8d8a2 | [
"MIT"
] | null | null | null | construct_ui/forms/__init__.py | construct-org/construct_ui | 933a73270ec46704f1ddaf4fabe4947373d8d8a2 | [
"MIT"
] | 4 | 2018-05-07T16:02:53.000Z | 2018-05-21T15:04:56.000Z | construct_ui/forms/__init__.py | construct-org/construct_ui | 933a73270ec46704f1ddaf4fabe4947373d8d8a2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from construct_ui.forms.actionform import ActionForm
from construct_ui.forms.fileopen import FileOpenForm
from construct_ui.forms.filesave import FileSaveForm
from construct_ui.forms.publish import PublishForm
from construct_ui.forms.workspaces import SetW... | 37 | 58 | 0.852853 | 43 | 333 | 6.372093 | 0.44186 | 0.237226 | 0.273723 | 0.364964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0033 | 0.09009 | 333 | 8 | 59 | 41.625 | 0.90099 | 0.063063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
910d80cd894afe104d3222d5c81887738e5f3d18 | 9,980 | py | Python | blockchain/all_challenges/2021/realworld/rwctf3rd-Re-Montagy/deploy/ethbot/src/deployer/main.py | yuxingzh/CTF | 2d58d8443628b33958cafc65813c4719e78e6ee7 | [
"MIT"
] | null | null | null | blockchain/all_challenges/2021/realworld/rwctf3rd-Re-Montagy/deploy/ethbot/src/deployer/main.py | yuxingzh/CTF | 2d58d8443628b33958cafc65813c4719e78e6ee7 | [
"MIT"
] | null | null | null | blockchain/all_challenges/2021/realworld/rwctf3rd-Re-Montagy/deploy/ethbot/src/deployer/main.py | yuxingzh/CTF | 2d58d8443628b33958cafc65813c4719e78e6ee7 | [
"MIT"
] | null | null | null | from src.utils.auth import get_acc_nonce
from src.utils.prettyprint.Red import Printer, Processor, Formator
from src.utils.compiler import comp
from src.utils.utils import randhex
from src.banner.text.corpus import DEPLOY_SUCCESS_CELEBRATION
from src.deployer import Montagy
from src.interface import IMontagy
import re... | 107.311828 | 3,859 | 0.937074 | 362 | 9,980 | 25.616022 | 0.259669 | 0.022646 | 0.020705 | 0.017362 | 0.070312 | 0.056508 | 0.052842 | 0.051979 | 0.051979 | 0.051979 | 0 | 0.646822 | 0.028858 | 9,980 | 92 | 3,860 | 108.478261 | 0.309946 | 0.497595 | 0 | 0.194444 | 0 | 0 | 0.684704 | 0.680869 | 0 | 1 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.333333 | 0.027778 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
9135cb0f414650f6760d861ff31550aad99e72bd | 1,356 | py | Python | test/__init__.py | macbre/now-playing-graph | 2c211ef5544a6892e8e5fc2556ffcc6b7ca7ab84 | [
"MIT"
] | null | null | null | test/__init__.py | macbre/now-playing-graph | 2c211ef5544a6892e8e5fc2556ffcc6b7ca7ab84 | [
"MIT"
] | 3 | 2019-02-07T17:46:04.000Z | 2019-02-15T14:27:09.000Z | test/__init__.py | macbre/now-playing-graph | 2c211ef5544a6892e8e5fc2556ffcc6b7ca7ab84 | [
"MIT"
] | null | null | null | STREAM = """
data: {"updated":"2019-01-20T18:50:24.980","now":{"artist":"Eivør Pálsdóttir","title":"Elisabeth og Elinborg","start":"2019-01-20T18:50:23.541"},"next":{"artist":"Benjamin Rajani","title":"Sálmur 40","start":"2019-01-20T18:54:36.950"}}
data: {"updated":"2019-01-21T04:02:57.133","now":{"artist":"Enekk","tit... | 150.666667 | 236 | 0.655605 | 217 | 1,356 | 4.096774 | 0.447005 | 0.101237 | 0.123735 | 0.095613 | 0.097863 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231411 | 0.028024 | 1,356 | 8 | 237 | 169.5 | 0.443096 | 0 | 0 | 0 | 0 | 0.75 | 0.974926 | 0.893068 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
913a5bd8cf30da74b60e565c73d5967e37cb8622 | 10,123 | py | Python | trainers.py | popescuaaa/sequences-classification | c88a6f53e1a7f65c7ba758199b8b19ac25e8fe28 | [
"MIT"
] | 1 | 2022-03-12T21:31:05.000Z | 2022-03-12T21:31:05.000Z | trainers.py | popescuaaa/sequences-classification | c88a6f53e1a7f65c7ba758199b8b19ac25e8fe28 | [
"MIT"
] | null | null | null | trainers.py | popescuaaa/sequences-classification | c88a6f53e1a7f65c7ba758199b8b19ac25e8fe28 | [
"MIT"
] | null | null | null | import torch
from typing import Dict, Tuple, List
from models import RNNClassifier, LSTMClassifier, GRUClassifier, CNNClassifier, TCNNClassifier
import torch.nn as nn
from data import Pendigits
from torch.utils.data import DataLoader
from torch.optim import Adam
from torch import Tensor
from evaluation_metrics import c... | 32.238854 | 107 | 0.580263 | 1,175 | 10,123 | 4.882553 | 0.095319 | 0.063448 | 0.028761 | 0.040091 | 0.861077 | 0.857591 | 0.852013 | 0.837546 | 0.805473 | 0.805473 | 0 | 0.004159 | 0.287365 | 10,123 | 313 | 108 | 32.341853 | 0.791101 | 0.033488 | 0 | 0.803571 | 0 | 0 | 0.081244 | 0.011869 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026786 | false | 0 | 0.040179 | 0 | 0.09375 | 0.022321 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e67fff5fe29e77eefe239dd7377b7221a00e7468 | 54,681 | py | Python | services/healthchecks/src/oci_cli_health_checks/generated/healthchecks_cli.py | andrewtvuong/oci-cli | 7673a808613308a4899c7026964fa2383c30c397 | [
"Apache-2.0"
] | null | null | null | services/healthchecks/src/oci_cli_health_checks/generated/healthchecks_cli.py | andrewtvuong/oci-cli | 7673a808613308a4899c7026964fa2383c30c397 | [
"Apache-2.0"
] | null | null | null | services/healthchecks/src/oci_cli_health_checks/generated/healthchecks_cli.py | andrewtvuong/oci-cli | 7673a808613308a4899c7026964fa2383c30c397 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
from __future__ import print_function
import click
import oci # noqa: F401
import six # noqa: F401
import sys # noqa: F401
from oci_cli.cli_root import cli
from oci_cli import cli_constants # noqa: F401
from oci_cli impo... | 63.656577 | 518 | 0.732905 | 7,790 | 54,681 | 4.910141 | 0.047497 | 0.048131 | 0.040444 | 0.01966 | 0.962876 | 0.948993 | 0.936654 | 0.918301 | 0.900261 | 0.891059 | 0 | 0.002901 | 0.136318 | 54,681 | 858 | 519 | 63.730769 | 0.807017 | 0.002652 | 0 | 0.805085 | 0 | 0.079096 | 0.393779 | 0.031727 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032486 | false | 0.032486 | 0.015537 | 0 | 0.048023 | 0.001412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e6aec4b6a4e2f2414802b79885a709706e3bcc1e | 14,983 | py | Python | ironic_neutron_plugin/tests/unit/test_plugin.py | rackerlabs/ironic-neutron-plugin | 7b3e19840048bc49d846362b84973c2f2b03b05e | [
"Apache-2.0"
] | 10 | 2015-01-21T22:04:40.000Z | 2017-06-29T06:55:45.000Z | ironic_neutron_plugin/tests/unit/test_plugin.py | rackerlabs/ironic-neutron-plugin | 7b3e19840048bc49d846362b84973c2f2b03b05e | [
"Apache-2.0"
] | null | null | null | ironic_neutron_plugin/tests/unit/test_plugin.py | rackerlabs/ironic-neutron-plugin | 7b3e19840048bc49d846362b84973c2f2b03b05e | [
"Apache-2.0"
] | 8 | 2015-01-30T16:40:30.000Z | 2020-07-23T06:06:53.000Z | # Copyright (c) 2014 OpenStack Foundation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 37.740554 | 79 | 0.607088 | 1,607 | 14,983 | 5.485376 | 0.120722 | 0.088486 | 0.049575 | 0.054793 | 0.810096 | 0.757005 | 0.720023 | 0.720023 | 0.702552 | 0.698582 | 0 | 0.019764 | 0.263832 | 14,983 | 396 | 80 | 37.835859 | 0.77942 | 0.055596 | 0 | 0.728188 | 0 | 0 | 0.104807 | 0 | 0 | 0 | 0 | 0.002525 | 0.285235 | 1 | 0.04698 | false | 0.016779 | 0.006711 | 0 | 0.077181 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e6b28173f2465b185617fd1a59e4abb404f9de37 | 7,595 | py | Python | neural_sp/models/seq2seq/encoders/build.py | ernie-mlg/neural_sp | 103020c987c37d7d1ff281c9258810d122e55615 | [
"Apache-2.0"
] | 2 | 2021-01-25T02:55:09.000Z | 2021-02-05T03:47:05.000Z | neural_sp/models/seq2seq/encoders/build.py | ernie-mlg/neural_sp | 103020c987c37d7d1ff281c9258810d122e55615 | [
"Apache-2.0"
] | null | null | null | neural_sp/models/seq2seq/encoders/build.py | ernie-mlg/neural_sp | 103020c987c37d7d1ff281c9258810d122e55615 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Select an encoder network."""
def build_encoder(args):
# safeguard
if not hasattr(args, 'transformer_enc_d_model') and hasattr(args, 'transformer_d_model'):
args.transformer_enc_d_mode... | 47.767296 | 111 | 0.682686 | 998 | 7,595 | 4.758517 | 0.113226 | 0.120025 | 0.068225 | 0.026532 | 0.837861 | 0.819752 | 0.776163 | 0.738892 | 0.731733 | 0.722678 | 0 | 0.004905 | 0.248321 | 7,595 | 158 | 112 | 48.06962 | 0.82694 | 0.021593 | 0 | 0.736111 | 0 | 0 | 0.031124 | 0.006198 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006944 | false | 0 | 0.034722 | 0 | 0.048611 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e6d0cb14468a6f0896bb2286005a6fa5ca0d26c0 | 101 | py | Python | panda_gym/envs/robots/__init__.py | lubiluk/panda-gym | 3f70c0306938ca0684268590c9c036070dbf7cb9 | [
"MIT"
] | null | null | null | panda_gym/envs/robots/__init__.py | lubiluk/panda-gym | 3f70c0306938ca0684268590c9c036070dbf7cb9 | [
"MIT"
] | null | null | null | panda_gym/envs/robots/__init__.py | lubiluk/panda-gym | 3f70c0306938ca0684268590c9c036070dbf7cb9 | [
"MIT"
] | null | null | null | from panda_gym.envs.robots.panda import Panda
from panda_gym.envs.robots.free_panda import FreePanda
| 33.666667 | 54 | 0.861386 | 17 | 101 | 4.941176 | 0.470588 | 0.214286 | 0.285714 | 0.380952 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079208 | 101 | 2 | 55 | 50.5 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
e6e2a06501ac6c103f8faf547e29a917b359aec0 | 24,000 | py | Python | tests/components/hive/test_config_flow.py | orcema/core | ce144bf63145813c76fbbe4f9423341764695057 | [
"Apache-2.0"
] | null | null | null | tests/components/hive/test_config_flow.py | orcema/core | ce144bf63145813c76fbbe4f9423341764695057 | [
"Apache-2.0"
] | null | null | null | tests/components/hive/test_config_flow.py | orcema/core | ce144bf63145813c76fbbe4f9423341764695057 | [
"Apache-2.0"
] | null | null | null | """Test the Hive config flow."""
from unittest.mock import patch
from apyhiveapi.helper import hive_exceptions
from homeassistant import config_entries, data_entry_flow
from homeassistant.components.hive.const import CONF_CODE, CONF_DEVICE_NAME, DOMAIN
from homeassistant.const import CONF_PASSWORD, CONF_SCAN_INTERVAL... | 32.476319 | 84 | 0.6195 | 2,539 | 24,000 | 5.578574 | 0.053958 | 0.055069 | 0.05401 | 0.060576 | 0.904406 | 0.888097 | 0.868187 | 0.859715 | 0.84856 | 0.838111 | 0 | 0.007399 | 0.262292 | 24,000 | 738 | 85 | 32.520325 | 0.792601 | 0.001083 | 0 | 0.711039 | 0 | 0 | 0.208316 | 0.094992 | 0 | 0 | 0 | 0 | 0.180195 | 1 | 0 | false | 0.066558 | 0.012987 | 0 | 0.012987 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
fc3f7bf9d07ec420d868862710f7a8bf26ca5192 | 26,736 | py | Python | anuga/coordinate_transforms/tests/test_geo_reference.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | anuga/coordinate_transforms/tests/test_geo_reference.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | anuga/coordinate_transforms/tests/test_geo_reference.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | #!/usr/bin/env python
#
from builtins import zip
from builtins import str
import unittest
import tempfile
import os
from anuga.coordinate_transforms.geo_reference import *
from anuga.config import netcdf_mode_r, netcdf_mode_w, netcdf_mode_a
import numpy as num
class geo_referenceTestCase(unittest.TestCase):
de... | 37.393007 | 78 | 0.572412 | 3,520 | 26,736 | 4.16108 | 0.069886 | 0.113743 | 0.04349 | 0.055301 | 0.884345 | 0.869257 | 0.856899 | 0.846931 | 0.839899 | 0.830409 | 0 | 0.030923 | 0.299671 | 26,736 | 714 | 79 | 37.445378 | 0.751335 | 0.080491 | 0 | 0.746154 | 0 | 0 | 0.096471 | 0.00877 | 0 | 0 | 0 | 0 | 0.244231 | 1 | 0.055769 | false | 0.009615 | 0.028846 | 0 | 0.086538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fc7d08b5cb4f7680fa889586354849482f236afa | 40,986 | py | Python | sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_generated/v7_3_preview/aio/operations/_key_vault_client_operations.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_generated/v7_3_preview/aio/operations/_key_vault_client_operations.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_generated/v7_3_preview/aio/operations/_key_vault_client_operations.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 47.936842 | 133 | 0.657468 | 4,585 | 40,986 | 5.67241 | 0.060414 | 0.022839 | 0.030452 | 0.022493 | 0.879691 | 0.865118 | 0.851469 | 0.848508 | 0.843279 | 0.835666 | 0 | 0.006895 | 0.242766 | 40,986 | 854 | 134 | 47.992974 | 0.831099 | 0.124384 | 0 | 0.818004 | 0 | 0 | 0.104696 | 0.02111 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011742 | false | 0 | 0.013699 | 0 | 0.084149 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fc900ffa743c0daa98dd98d94e834fa52c62bf9e | 24,052 | py | Python | inputs_test.py | zhonglihanzhu/tensorflow-objectDetection | aa3d1b754d5c78b8401ce86d4c20f45741fc2b77 | [
"Apache-2.0"
] | 1 | 2019-04-24T16:32:11.000Z | 2019-04-24T16:32:11.000Z | inputs_test.py | zhonglihanzhu/tensorflow-objectDetection | aa3d1b754d5c78b8401ce86d4c20f45741fc2b77 | [
"Apache-2.0"
] | null | null | null | inputs_test.py | zhonglihanzhu/tensorflow-objectDetection | aa3d1b754d5c78b8401ce86d4c20f45741fc2b77 | [
"Apache-2.0"
] | 3 | 2018-04-04T07:26:54.000Z | 2020-08-14T01:43:29.000Z | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 42.122592 | 80 | 0.695992 | 2,884 | 24,052 | 5.495146 | 0.09466 | 0.113958 | 0.109036 | 0.076729 | 0.85872 | 0.835815 | 0.81657 | 0.79764 | 0.776439 | 0.758329 | 0 | 0.021064 | 0.196657 | 24,052 | 570 | 81 | 42.196491 | 0.799141 | 0.036172 | 0 | 0.678351 | 0 | 0 | 0.042491 | 0.021179 | 0 | 0 | 0 | 0.001754 | 0.162887 | 0 | null | null | 0 | 0.02268 | null | null | 0.002062 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5d900a3d6c9cd23696fe0d2b7c20d8ff5142b9e5 | 68,117 | py | Python | tools/wptrunner/wptrunner/tests/test_update.py | hoojaoh/web-platform-tests | 3503c50a6452e153bde906a9c6644cb6237224fc | [
"BSD-3-Clause"
] | 8 | 2019-04-09T21:13:05.000Z | 2021-11-23T17:25:18.000Z | tools/wptrunner/wptrunner/tests/test_update.py | hoojaoh/web-platform-tests | 3503c50a6452e153bde906a9c6644cb6237224fc | [
"BSD-3-Clause"
] | 7 | 2019-07-08T22:23:16.000Z | 2021-03-18T23:42:32.000Z | tools/wptrunner/wptrunner/tests/test_update.py | AYCHKnow/WebPlatformTest | ccf316907ed4451ad0c752b686abb6ab75c54618 | [
"BSD-3-Clause"
] | 11 | 2019-04-12T01:20:16.000Z | 2021-11-23T17:25:02.000Z | import json
import mock
import os
import pytest
import sys
from io import BytesIO
from .. import metadata, manifestupdate
from ..update.update import WPTUpdate
from ..update.base import StepRunner, Step
from mozlog import structuredlog, handlers, formatters
here = os.path.dirname(__file__)
sys.path.insert(0, os.path.... | 39.147701 | 105 | 0.466022 | 6,927 | 68,117 | 4.31702 | 0.036379 | 0.064406 | 0.089955 | 0.042636 | 0.888142 | 0.880083 | 0.871556 | 0.870586 | 0.864433 | 0.856407 | 0 | 0.017737 | 0.378408 | 68,117 | 1,739 | 106 | 39.170213 | 0.688529 | 0 | 0 | 0.797927 | 0 | 0 | 0.198433 | 0 | 0 | 0 | 0 | 0 | 0.110289 | 1 | 0.045152 | false | 0.054774 | 0.008142 | 0 | 0.061436 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
5d9e59c1041e13d8e5628d31c10c5f268043b15b | 39,596 | py | Python | trustpayments/api/transaction_invoice_service_api.py | TrustPayments/python-sdk | 6fde6eb8cfce270c3612a2903a845c13018c3bb9 | [
"Apache-2.0"
] | null | null | null | trustpayments/api/transaction_invoice_service_api.py | TrustPayments/python-sdk | 6fde6eb8cfce270c3612a2903a845c13018c3bb9 | [
"Apache-2.0"
] | null | null | null | trustpayments/api/transaction_invoice_service_api.py | TrustPayments/python-sdk | 6fde6eb8cfce270c3612a2903a845c13018c3bb9 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
import six
from trustpayments.api_client import ApiClient
class TransactionInvoiceServiceApi:
def __init__(self, configuration):
self.api_client = ApiClient(configuration=configuration)
def count(self, space_id, **kwargs):
"""Count
... | 39.359841 | 144 | 0.61683 | 4,626 | 39,596 | 5.032425 | 0.037397 | 0.040593 | 0.018943 | 0.027835 | 0.967311 | 0.958591 | 0.950215 | 0.946349 | 0.935052 | 0.927448 | 0 | 0.000538 | 0.295358 | 39,596 | 1,005 | 145 | 39.399005 | 0.833841 | 0.309223 | 0 | 0.799632 | 0 | 0 | 0.207847 | 0.067382 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034926 | false | 0 | 0.005515 | 0 | 0.091912 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5da25145f2696217a60685b923bd32771151318e | 23,828 | py | Python | python-client/openapi_client/api/object_api.py | robopsi/dfcpub | cdfd32e81c642bc352549b43fb26a3ac6815ee84 | [
"MIT"
] | null | null | null | python-client/openapi_client/api/object_api.py | robopsi/dfcpub | cdfd32e81c642bc352549b43fb26a3ac6815ee84 | [
"MIT"
] | null | null | null | python-client/openapi_client/api/object_api.py | robopsi/dfcpub | cdfd32e81c642bc352549b43fb26a3ac6815ee84 | [
"MIT"
] | 1 | 2020-07-03T00:35:21.000Z | 2020-07-03T00:35:21.000Z | # coding: utf-8
"""
DFC
DFC is a scalable object-storage based caching system with Amazon and Google Cloud backends. # noqa: E501
OpenAPI spec version: 1.1.0
Contact: dfc-jenkins@nvidia.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # no... | 40.52381 | 128 | 0.610836 | 2,771 | 23,828 | 5.026705 | 0.068206 | 0.068203 | 0.050255 | 0.057434 | 0.936894 | 0.924402 | 0.915787 | 0.914351 | 0.910044 | 0.910044 | 0 | 0.015384 | 0.296164 | 23,828 | 587 | 129 | 40.592845 | 0.815157 | 0.072478 | 0 | 0.76489 | 0 | 0 | 0.211837 | 0.037067 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012539 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
5dcb8462c8ae228afed2f349582c6f98591aaff2 | 21,866 | py | Python | scripts/type_extractor/tests/remove_json_types_tests.py | mehrdad-shokri/retdec | a82f16e97b163afe789876e0a819489c5b9b358e | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | 4,816 | 2017-12-12T18:07:09.000Z | 2019-04-17T02:01:04.000Z | scripts/type_extractor/tests/remove_json_types_tests.py | mehrdad-shokri/retdec | a82f16e97b163afe789876e0a819489c5b9b358e | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | 514 | 2017-12-12T18:22:52.000Z | 2019-04-16T16:07:11.000Z | scripts/type_extractor/tests/remove_json_types_tests.py | mehrdad-shokri/retdec | a82f16e97b163afe789876e0a819489c5b9b358e | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | 579 | 2017-12-12T18:38:02.000Z | 2019-04-11T13:32:53.000Z | """Units tests for the type_extractor.remove_json_types module."""
import unittest
from type_extractor.remove_json_types import remove_qualifier_json_types
from type_extractor.remove_json_types import remove_unused_json_types
class RemoveUnusedJsonTypesTests(unittest.TestCase):
def test_all_unused_type_are_remo... | 35.097913 | 84 | 0.413976 | 983 | 21,866 | 9.006104 | 0.092574 | 0.149102 | 0.043375 | 0.120976 | 0.836101 | 0.814978 | 0.804586 | 0.76347 | 0.748221 | 0.678979 | 0 | 0.261136 | 0.484588 | 21,866 | 622 | 85 | 35.154341 | 0.524401 | 0.005031 | 0 | 0.640893 | 0 | 0 | 0.335341 | 0.215222 | 0 | 0 | 0 | 0 | 0.024055 | 1 | 0.024055 | false | 0 | 0.005155 | 0 | 0.032646 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5def047c5d4fe8082da23df479ba8bf64d50140e | 4,824 | py | Python | skimage/feature/tests/test_blob.py | RobbiNespu/scikit-image | a65b8af4bf0f5f71624a91ea5ce7812e80cae4cb | [
"BSD-3-Clause"
] | 8 | 2016-03-11T13:23:51.000Z | 2021-12-19T10:43:26.000Z | skimage/feature/tests/test_blob.py | RobbiNespu/scikit-image | a65b8af4bf0f5f71624a91ea5ce7812e80cae4cb | [
"BSD-3-Clause"
] | null | null | null | skimage/feature/tests/test_blob.py | RobbiNespu/scikit-image | a65b8af4bf0f5f71624a91ea5ce7812e80cae4cb | [
"BSD-3-Clause"
] | 4 | 2020-06-19T00:04:34.000Z | 2021-02-23T07:24:00.000Z | import numpy as np
from skimage.draw import circle
from skimage.feature import blob_dog, blob_log, blob_doh
import math
from numpy.testing import assert_raises
def test_blob_dog():
r2 = math.sqrt(2)
img = np.ones((512, 512))
img3 = np.ones((5, 5, 5))
xs, ys = circle(400, 130, 5)
img[xs, ys] = 255... | 22.437209 | 65 | 0.537106 | 775 | 4,824 | 3.290323 | 0.096774 | 0.201176 | 0.14902 | 0.081961 | 0.872549 | 0.838824 | 0.811765 | 0.806275 | 0.756078 | 0.735686 | 0 | 0.126519 | 0.300373 | 4,824 | 214 | 66 | 22.542056 | 0.629037 | 0.007255 | 0 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3875 | 1 | 0.025 | false | 0 | 0.03125 | 0 | 0.05625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b9056c4fc47f758b80cd9693466575594a49047d | 135 | py | Python | docs/build/lib/vicedtools/compass/__init__.py | gregbreese/vicedtools | 2d32c8ea2437b67b72495e254b71e7f048bd8f9f | [
"Apache-2.0"
] | 2 | 2021-09-23T06:16:49.000Z | 2021-11-02T00:53:22.000Z | docs/build/lib/vicedtools/compass/__init__.py | gregbreese/vicedtools | 2d32c8ea2437b67b72495e254b71e7f048bd8f9f | [
"Apache-2.0"
] | null | null | null | docs/build/lib/vicedtools/compass/__init__.py | gregbreese/vicedtools | 2d32c8ea2437b67b72495e254b71e7f048bd8f9f | [
"Apache-2.0"
] | null | null | null | from vicedtools.compass.exports import export_student_enrolments, export_student_details
from vicedtools.compass.reports import Reports | 67.5 | 88 | 0.903704 | 17 | 135 | 6.941176 | 0.588235 | 0.237288 | 0.355932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059259 | 135 | 2 | 89 | 67.5 | 0.929134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 8 |
f8dd1176648ac9ed3fd9629cb819641779564f00 | 123 | py | Python | base/handler/helpers/__init__.py | vralex/RumbleRunner | eb9889daf90846176af292d4e7411c41dac885c8 | [
"MIT"
] | 2 | 2022-01-26T15:06:02.000Z | 2022-02-03T05:14:52.000Z | base/handler/helpers/__init__.py | vralex/RumbleRunner | eb9889daf90846176af292d4e7411c41dac885c8 | [
"MIT"
] | 1 | 2022-02-07T23:50:26.000Z | 2022-02-07T23:50:26.000Z | base/handler/helpers/__init__.py | vralex/RumbleRunner | eb9889daf90846176af292d4e7411c41dac885c8 | [
"MIT"
] | 1 | 2022-02-07T23:19:16.000Z | 2022-02-07T23:19:16.000Z | from base.handler.helpers.actions import Actions
from base.handler.helpers.inline_menu import InlineMenuButton, InlineMenu
| 41 | 73 | 0.869919 | 16 | 123 | 6.625 | 0.625 | 0.150943 | 0.283019 | 0.415094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 123 | 2 | 74 | 61.5 | 0.929825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
f8fdfddd9ef2af7dddad05952e451b4627f6fae1 | 14,102 | py | Python | zaid/nasa_asteroids/archive/asteroids.py | peter-kinzelman/bdd_behave_demo | d703fff6948033c2b459dab133df11690d164664 | [
"MIT"
] | null | null | null | zaid/nasa_asteroids/archive/asteroids.py | peter-kinzelman/bdd_behave_demo | d703fff6948033c2b459dab133df11690d164664 | [
"MIT"
] | 4 | 2020-02-12T02:51:50.000Z | 2021-06-10T21:35:07.000Z | zaid/nasa_asteroids/archive/asteroids.py | peter-kinzelman/bdd_behave_demo | d703fff6948033c2b459dab133df11690d164664 | [
"MIT"
] | 3 | 2019-06-20T15:00:29.000Z | 2019-06-25T14:03:43.000Z | {u'near_earth_objects': {u'2015-09-09': [{u'is_sentry_object': False, u'links': {u'self': u'http://www.neowsapp.com/rest/v1/neo/3727636?api_key=DEMO_KEY'}, u'nasa_jpl_url': u'http://ssd.jpl.nasa.gov/sbdb.cgi?sstr=3727636', u'absolute_magnitude_h': 25.0, u'estimated_diameter': {u'feet': {u'estimated_diameter_max': 194.9... | 14,102 | 14,102 | 0.76124 | 2,326 | 14,102 | 4.377042 | 0.159931 | 0.09724 | 0.175032 | 0.090757 | 0.707789 | 0.628229 | 0.594441 | 0.516943 | 0.516943 | 0.4033 | 0 | 0.217031 | 0.051482 | 14,102 | 1 | 14,102 | 14,102 | 0.544109 | 0 | 0 | 0 | 0 | 3 | 0.662129 | 0.217613 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5d1901f626d4d4ee3fc83cc9f0dd740cacd74575 | 14,652 | py | Python | woocommerce/woocommerce/doctype/woo_setting/woo_setting.py | supporterpsonic/woocommerce | 67d1e2f6d430ed292b4e7034789a235908d2739c | [
"MIT"
] | null | null | null | woocommerce/woocommerce/doctype/woo_setting/woo_setting.py | supporterpsonic/woocommerce | 67d1e2f6d430ed292b4e7034789a235908d2739c | [
"MIT"
] | null | null | null | woocommerce/woocommerce/doctype/woo_setting/woo_setting.py | supporterpsonic/woocommerce | 67d1e2f6d430ed292b4e7034789a235908d2739c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2017, WooCommerce and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
import json
from woocommerce import API
class WooSetting(Document):
pass
@frappe.whitelist()... | 27.083179 | 99 | 0.610906 | 2,163 | 14,652 | 3.917245 | 0.06565 | 0.03399 | 0.014163 | 0.02266 | 0.874071 | 0.863331 | 0.84787 | 0.83772 | 0.83772 | 0.812935 | 0 | 0.016646 | 0.220994 | 14,652 | 541 | 99 | 27.083179 | 0.725688 | 0.180726 | 0 | 0.793194 | 0 | 0 | 0.294073 | 0.015821 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026178 | false | 0.002618 | 0.013089 | 0 | 0.052356 | 0.002618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5d39cd19ad53569418af45e1d523af8ba2d2f416 | 118 | py | Python | left_break/views.py | sebleier/Left-Break | 689a9a8486c4696a45df58c88e1b6473dd145ba1 | [
"BSD-3-Clause"
] | 1 | 2019-06-13T16:18:49.000Z | 2019-06-13T16:18:49.000Z | left_break/views.py | sebleier/Left-Break | 689a9a8486c4696a45df58c88e1b6473dd145ba1 | [
"BSD-3-Clause"
] | null | null | null | left_break/views.py | sebleier/Left-Break | 689a9a8486c4696a45df58c88e1b6473dd145ba1 | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import render_to_response
def homepage(request):
return render_to_response("homepage.html") | 29.5 | 47 | 0.822034 | 16 | 118 | 5.8125 | 0.75 | 0.172043 | 0.344086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101695 | 118 | 4 | 48 | 29.5 | 0.877358 | 0 | 0 | 0 | 0 | 0 | 0.109244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
5398769d85ac2eaa8a2924d26f0e9e073944ee38 | 107 | py | Python | src/flaskdoc/pallets/__init__.py | kulgan/flaskdoc | e61fcbc246bcc3695c0e7dcb474067d47a6d70f0 | [
"Apache-2.0"
] | 4 | 2020-08-17T03:07:26.000Z | 2021-06-24T13:01:56.000Z | src/flaskdoc/pallets/__init__.py | kulgan/flaskdoc | e61fcbc246bcc3695c0e7dcb474067d47a6d70f0 | [
"Apache-2.0"
] | 14 | 2019-10-09T13:50:43.000Z | 2020-08-17T02:35:55.000Z | src/flaskdoc/pallets/__init__.py | kulgan/flaskdoc | e61fcbc246bcc3695c0e7dcb474067d47a6d70f0 | [
"Apache-2.0"
] | 2 | 2020-08-09T06:10:24.000Z | 2022-03-06T11:23:30.000Z | from flaskdoc.pallets.app import Flask, register_openapi
from flaskdoc.pallets.blueprints import Blueprint
| 35.666667 | 56 | 0.869159 | 14 | 107 | 6.571429 | 0.714286 | 0.26087 | 0.413043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084112 | 107 | 2 | 57 | 53.5 | 0.938776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 8 |
539f1dc1fb617f6c27fd6dabd843726ea8651a5c | 6,269 | py | Python | Tests/Manual Pytest/ManualPytest.py | Sports-and-Business/Minecraft | 65c2e04eb0403206f62d5b4367611fe0601b1bf4 | [
"MIT"
] | 1 | 2021-09-26T18:33:49.000Z | 2021-09-26T18:33:49.000Z | Tests/Manual Pytest/ManualPytest.py | Sports-and-Business/Minecraft | 65c2e04eb0403206f62d5b4367611fe0601b1bf4 | [
"MIT"
] | null | null | null | Tests/Manual Pytest/ManualPytest.py | Sports-and-Business/Minecraft | 65c2e04eb0403206f62d5b4367611fe0601b1bf4 | [
"MIT"
] | 1 | 2019-03-14T16:26:02.000Z | 2019-03-14T16:26:02.000Z | import pytest
from main import cube_vertices
from main import tex_coord
from main import Model
from main import normalize
m = Model()
#Test the verticies and bounds, why is this useful?
class mainTests():
position = (10,10,10)
assert normalize(position) == (10,10,10)
assert normalize(position) != (... | 55.973214 | 82 | 0.320944 | 1,253 | 6,269 | 1.588188 | 0.047885 | 0.165829 | 0.182412 | 0.209045 | 0.850251 | 0.848744 | 0.848744 | 0.80603 | 0.805025 | 0.771357 | 0 | 0.247021 | 0.451109 | 6,269 | 111 | 83 | 56.477477 | 0.331299 | 0.142447 | 0 | 0.493671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.35443 | 1 | 0 | false | 0 | 0.063291 | 0 | 0.126582 | 0 | 0 | 0 | 1 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
53ae75d8db27b39f4426ef8b7b7b944a9d60ebd6 | 212 | py | Python | pygar_me/exceptions.py | mbodock/pygar-me | 22e51fa5e490c70527c540ef65479a1bacd548ee | [
"MIT"
] | 1 | 2015-08-25T20:34:28.000Z | 2015-08-25T20:34:28.000Z | pygar_me/exceptions.py | mbodock/pygar-me | 22e51fa5e490c70527c540ef65479a1bacd548ee | [
"MIT"
] | null | null | null | pygar_me/exceptions.py | mbodock/pygar-me | 22e51fa5e490c70527c540ef65479a1bacd548ee | [
"MIT"
] | null | null | null | # encoding: utf-8
class PygarmeApiError(Exception): pass
class PygarmeTransactionApiError(Exception): pass
class PygarmeTransactionError(Exception): pass
class NotPaidException(PygarmeTransactionError): pass
| 21.2 | 53 | 0.839623 | 19 | 212 | 9.368421 | 0.526316 | 0.219101 | 0.303371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.089623 | 212 | 9 | 54 | 23.555556 | 0.917098 | 0.070755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
9908fa29bdf21e6214766175b2dee7945e91a087 | 1,583 | py | Python | repos/system_upgrade/el8toel9/actors/firewalldcheckallowzonedrifting/tests/component_test_firewalldcheckallowzonedrifting.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | null | null | null | repos/system_upgrade/el8toel9/actors/firewalldcheckallowzonedrifting/tests/component_test_firewalldcheckallowzonedrifting.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | 1 | 2022-03-07T15:34:11.000Z | 2022-03-07T15:35:15.000Z | repos/system_upgrade/el8toel9/actors/firewalldcheckallowzonedrifting/tests/component_test_firewalldcheckallowzonedrifting.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | null | null | null | from leapp.models import FirewalldGlobalConfig, FirewallsFacts, FirewallStatus
from leapp.reporting import Report
def test_actor_firewalldcheckallowzonedrifting(current_actor_context):
status = FirewallStatus(enabled=True, active=True)
current_actor_context.feed(FirewallsFacts(firewalld=status,
... | 43.972222 | 80 | 0.688566 | 139 | 1,583 | 7.568345 | 0.223022 | 0.171103 | 0.270913 | 0.131179 | 0.884981 | 0.838403 | 0.794677 | 0.794677 | 0.794677 | 0.68251 | 0 | 0.00337 | 0.250158 | 1,583 | 35 | 81 | 45.228571 | 0.882898 | 0 | 0 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 1 | 0.115385 | false | 0 | 0.076923 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
54cde72c2a05acd9f72f33eb05f7ac3c64471f58 | 25,198 | py | Python | AI.py | DanielPri/XrudderAI | 5c3e690c24511c05a205387431896cb5880e4b33 | [
"MIT"
] | null | null | null | AI.py | DanielPri/XrudderAI | 5c3e690c24511c05a205387431896cb5880e4b33 | [
"MIT"
] | null | null | null | AI.py | DanielPri/XrudderAI | 5c3e690c24511c05a205387431896cb5880e4b33 | [
"MIT"
] | 1 | 2021-03-24T02:50:45.000Z | 2021-03-24T02:50:45.000Z | from Board import Board
from Player import Player
from TileColor import TileColor
import copy
import random
class AI(Player):
def __init__(self, board, name, color, opponent_color):
super().__init__(board, name, color)
self.opponent_color = opponent_color
self.max_depth = 3
self.b... | 60.572115 | 183 | 0.58338 | 3,109 | 25,198 | 4.485687 | 0.04889 | 0.041302 | 0.082604 | 0.074573 | 0.865338 | 0.858167 | 0.840241 | 0.835652 | 0.833716 | 0.833716 | 0 | 0.016576 | 0.310461 | 25,198 | 415 | 184 | 60.718072 | 0.786072 | 0.072307 | 0 | 0.732759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043103 | false | 0 | 0.014368 | 0.002874 | 0.112069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
071257d24ca96fffac6eb56f85b04c15790e4155 | 25,290 | py | Python | dbms/tests/integration/test_ttl_move/test.py | alex-krash/ClickHouse | 3a8dbf434119df48e52f7f803a7f76b1eb4e84f5 | [
"Apache-2.0"
] | null | null | null | dbms/tests/integration/test_ttl_move/test.py | alex-krash/ClickHouse | 3a8dbf434119df48e52f7f803a7f76b1eb4e84f5 | [
"Apache-2.0"
] | null | null | null | dbms/tests/integration/test_ttl_move/test.py | alex-krash/ClickHouse | 3a8dbf434119df48e52f7f803a7f76b1eb4e84f5 | [
"Apache-2.0"
] | null | null | null | import json
import pytest
import random
import re
import string
import threading
import time
from multiprocessing.dummy import Pool
from helpers.client import QueryRuntimeException
from helpers.cluster import ClickHouseCluster
from helpers.test_tools import TSV
cluster = ClickHouseCluster(__file__)
node1 = cluster.a... | 40.5939 | 176 | 0.618782 | 3,183 | 25,290 | 4.673893 | 0.088282 | 0.051086 | 0.0244 | 0.020165 | 0.853465 | 0.829536 | 0.804127 | 0.753848 | 0.716341 | 0.681791 | 0 | 0.031266 | 0.243733 | 25,290 | 622 | 177 | 40.659164 | 0.746575 | 0.034757 | 0 | 0.722815 | 0 | 0 | 0.412267 | 0.148026 | 0 | 0 | 0 | 0 | 0.076759 | 1 | 0.031983 | false | 0 | 0.023454 | 0.002132 | 0.063966 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
075a3a618b71c80864a14c443654ea33c9ab4883 | 1,383 | py | Python | 001-010/008.py | KKishikawa/project-euler-for-study-code | fd46f1ee3211b5daa6d042cc993e55f631c9caac | [
"MIT"
] | null | null | null | 001-010/008.py | KKishikawa/project-euler-for-study-code | fd46f1ee3211b5daa6d042cc993e55f631c9caac | [
"MIT"
] | null | null | null | 001-010/008.py | KKishikawa/project-euler-for-study-code | fd46f1ee3211b5daa6d042cc993e55f631c9caac | [
"MIT"
] | null | null | null | problem_num = '73167176531330624919225119674426574742355349194934969835203127745063262395783180169848018694788518438586156078911294949545950173795833195285320880551112540698747158523863050715693290963295227443043557668966489504452445231617318564030987111217223831136222989342338030813533627661428280644448664523874930358... | 72.789474 | 1,016 | 0.921909 | 50 | 1,383 | 25.24 | 0.5 | 0.028526 | 0.020602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.767584 | 0.05423 | 1,383 | 18 | 1,017 | 76.833333 | 0.197248 | 0.078091 | 0 | 0 | 0 | 0 | 0.788022 | 0.788022 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0769f32bba0afaef6a6e3f01b3b10b1bbe729846 | 325,368 | py | Python | test/ITU_validation_test.py | iportillo/ITU-Rpy | 35123f8894137f9bcc375b4513367d068cc33ca1 | [
"MIT"
] | 34 | 2018-06-01T17:12:37.000Z | 2021-04-03T11:33:00.000Z | test/ITU_validation_test.py | hygson/ITU-Rpy | 35123f8894137f9bcc375b4513367d068cc33ca1 | [
"MIT"
] | 25 | 2021-04-08T17:25:57.000Z | 2022-01-25T00:58:30.000Z | test/ITU_validation_test.py | hygson/ITU-Rpy | 35123f8894137f9bcc375b4513367d068cc33ca1 | [
"MIT"
] | 253 | 2021-04-25T23:21:23.000Z | 2022-03-14T11:09:01.000Z | # -*- coding: utf-8 -*-
import unittest as test
import itur
import itur.models as models
import sys
from astropy import units as u
def suite():
""" A test suite for the ITU-P Recommendations. Recommendations tested:
* ITU-P R-676-9
* ITU-P R-676-11
* ITU-P R-618-12
* ITU-P R-618-13
* ITU-P R... | 41.170189 | 79 | 0.571003 | 39,873 | 325,368 | 4.576982 | 0.057407 | 0.212419 | 0.262902 | 0.262512 | 0.906815 | 0.89384 | 0.877248 | 0.869527 | 0.679432 | 0.599979 | 0 | 0.29676 | 0.307387 | 325,368 | 7,902 | 80 | 41.175399 | 0.513068 | 0.11648 | 0 | 0.552644 | 0 | 0 | 0.003047 | 0.00216 | 0 | 0 | 0 | 0 | 0.263945 | 1 | 0.007394 | false | 0 | 0.000804 | 0 | 0.010609 | 0.000482 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
4ad0ad913286795ca9bacb86a6daf83bb7f98c19 | 157 | py | Python | example_project/app/utils.py | ivan-sysoi/django-photoslib | ffab2a7c238bcfec709a2db31fdd3b40757cf730 | [
"MIT"
] | null | null | null | example_project/app/utils.py | ivan-sysoi/django-photoslib | ffab2a7c238bcfec709a2db31fdd3b40757cf730 | [
"MIT"
] | 11 | 2020-04-05T17:46:46.000Z | 2022-02-12T05:11:38.000Z | example_project/app/utils.py | ivan-sysoi/django-photoslib | ffab2a7c238bcfec709a2db31fdd3b40757cf730 | [
"MIT"
] | null | null | null | from photoslib.utils import default_photo_serializer
def custom_photo_serializer(photo, request=None):
return default_photo_serializer(photo, request)
| 26.166667 | 52 | 0.840764 | 20 | 157 | 6.3 | 0.6 | 0.357143 | 0.349206 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101911 | 157 | 5 | 53 | 31.4 | 0.893617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 9 |
4ae9d3a465ae586119eb5d21595e1678bd2e1bbb | 3,396 | py | Python | tests/core/utilities/test_prepare_transaction_replacement.py | iamdefinitelyahuman/web3.py | 7cc996723841895b9cc4feac354bc06d711dee05 | [
"MIT"
] | 2 | 2020-11-10T10:52:50.000Z | 2021-06-08T02:34:32.000Z | tests/core/utilities/test_prepare_transaction_replacement.py | iamdefinitelyahuman/web3.py | 7cc996723841895b9cc4feac354bc06d711dee05 | [
"MIT"
] | null | null | null | tests/core/utilities/test_prepare_transaction_replacement.py | iamdefinitelyahuman/web3.py | 7cc996723841895b9cc4feac354bc06d711dee05 | [
"MIT"
] | 2 | 2021-01-20T10:57:34.000Z | 2021-11-02T01:10:48.000Z | import pytest
from web3._utils.transactions import (
prepare_replacement_transaction,
)
SIMPLE_CURRENT_TRANSACTION = {
'blockHash': None,
'hash': '0x0',
'nonce': 2,
'gasPrice': 10,
}
def test_prepare_transaction_replacement(web3):
current_transaction = SIMPLE_CURRENT_TRANSACTION
new_tran... | 27.609756 | 88 | 0.707892 | 339 | 3,396 | 6.681416 | 0.162242 | 0.166887 | 0.129801 | 0.197792 | 0.829139 | 0.792936 | 0.734658 | 0.734658 | 0.710817 | 0.709051 | 0 | 0.024263 | 0.211131 | 3,396 | 122 | 89 | 27.836066 | 0.821202 | 0.014429 | 0 | 0.577778 | 0 | 0 | 0.058296 | 0 | 0 | 0 | 0.005082 | 0 | 0.055556 | 1 | 0.111111 | false | 0 | 0.022222 | 0.022222 | 0.155556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ab20f2813b1f0b053e84e17ca7d3591cc2f3398e | 1,535 | py | Python | iotorch/utils/iotorchutils.py | juanmagal/iot-slice-orchestrator | 9fc0df4f74b2788ea116549c001bcb8c6b663280 | [
"Apache-2.0"
] | 2 | 2019-08-16T13:05:39.000Z | 2019-12-24T16:57:29.000Z | iotorch/utils/iotorchutils.py | juanmagal/iot-slice-orchestrator | 9fc0df4f74b2788ea116549c001bcb8c6b663280 | [
"Apache-2.0"
] | null | null | null | iotorch/utils/iotorchutils.py | juanmagal/iot-slice-orchestrator | 9fc0df4f74b2788ea116549c001bcb8c6b663280 | [
"Apache-2.0"
] | null | null | null | import toml
K8S_CLUSTERS_KEY = 'k8sclusters'
K8S_CLUSTER_CONTEXT_ATTR = 'k8scontext'
K8S_CLUSTER_IP_ATTR = 'ip'
K8S_CLUSTER_HELM_PORT_ATTR = 'helmport'
K8S_CLUSTER_HELM_IP_ATTR = 'helmip'
def getk8sclustercontext(cluster,config_path):
with open(config_path) as f:
config = toml.load(f)
f.close
c... | 20.743243 | 49 | 0.69316 | 206 | 1,535 | 4.941748 | 0.15534 | 0.117878 | 0.11002 | 0.082515 | 0.801572 | 0.746562 | 0.746562 | 0.746562 | 0.746562 | 0.746562 | 0 | 0.0159 | 0.221498 | 1,535 | 73 | 50 | 21.027397 | 0.835983 | 0 | 0 | 0.72 | 0 | 0 | 0.024104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.02 | 0 | 0.34 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
db714d8ecd47117a9aea7e87cc3355f529e0fc5c | 23,938 | py | Python | sdk/python/pulumi_aws/sagemaker/user_profile.py | aamir-locus/pulumi-aws | 3e234b050129bde35d8e072a88bd608562f02142 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/sagemaker/user_profile.py | aamir-locus/pulumi-aws | 3e234b050129bde35d8e072a88bd608562f02142 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/sagemaker/user_profile.py | aamir-locus/pulumi-aws | 3e234b050129bde35d8e072a88bd608562f02142 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 49.561077 | 324 | 0.676289 | 3,125 | 23,938 | 4.91904 | 0.06048 | 0.076568 | 0.071949 | 0.079105 | 0.88401 | 0.869568 | 0.857143 | 0.840424 | 0.8293 | 0.814143 | 0 | 0.001462 | 0.228382 | 23,938 | 482 | 325 | 49.6639 | 0.830762 | 0.358844 | 0 | 0.695167 | 1 | 0 | 0.134971 | 0.076815 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159851 | false | 0.003717 | 0.026022 | 0 | 0.282528 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
db7a1ccd38ea3db0037170872ea1278af1e83ca4 | 8,405 | py | Python | src/models/cnn.py | GregoireThoumyre/Bathymetry-Inversion | cae383c888e4f14fa43b4adfbf5eba215b8b5f59 | [
"MIT"
] | null | null | null | src/models/cnn.py | GregoireThoumyre/Bathymetry-Inversion | cae383c888e4f14fa43b4adfbf5eba215b8b5f59 | [
"MIT"
] | 9 | 2020-01-28T22:57:32.000Z | 2022-02-10T00:14:27.000Z | src/models/cnn.py | GregoireThoumyre/Bathymetry-Inversion | cae383c888e4f14fa43b4adfbf5eba215b8b5f59 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
File: cnn.py |
Created on the 2019-02-22 |
Github: https://github.com/pl19n72019
This file contains the different models of cnn.
"""
from keras.layers import Conv2D, MaxPooling2D, Flatten, Dense, Dropout
from keras.models import Sequential
class Model1:
"""A ... | 33.62 | 102 | 0.621416 | 1,135 | 8,405 | 4.452863 | 0.125991 | 0.060942 | 0.075188 | 0.054412 | 0.930946 | 0.929165 | 0.929165 | 0.914919 | 0.914919 | 0.914919 | 0 | 0.027636 | 0.27674 | 8,405 | 249 | 103 | 33.75502 | 0.803751 | 0.546817 | 0 | 0.766667 | 0 | 0 | 0.035889 | 0 | 0 | 0 | 0 | 0.004016 | 0 | 1 | 0.15 | false | 0 | 0.033333 | 0 | 0.283333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
91762683cfd0266afef1e7a86c3839b60fc78716 | 2,968 | py | Python | test/testwhile.py | mvz/vb2py | 6ea046f6fc202527a1b3fcd3ef5a67b969dea715 | [
"BSD-3-Clause"
] | 2 | 2015-12-01T10:52:36.000Z | 2021-04-20T05:15:01.000Z | test/testwhile.py | mvz/vb2py | 6ea046f6fc202527a1b3fcd3ef5a67b969dea715 | [
"BSD-3-Clause"
] | 4 | 2016-07-18T18:28:24.000Z | 2016-07-19T08:30:14.000Z | test/testwhile.py | mvz/vb2py | 6ea046f6fc202527a1b3fcd3ef5a67b969dea715 | [
"BSD-3-Clause"
] | 3 | 2015-07-15T21:08:19.000Z | 2021-02-25T09:39:12.000Z | from testframework import *
# << While tests >> (1 of 5)
# Simple while / wend
tests.append(("""
a = 0
b = 0
While a<=10
b = b + a
a = a + 1
Wend
""", {"a" : 11, "b" : 55}))
# Nested While
tests.append(("""
a = 0
b = 0
While a<=10
c = 0
While c < 10
c = c + 1
b = b + 1
Wend
b =... | 14.766169 | 62 | 0.434973 | 534 | 2,968 | 2.402622 | 0.09176 | 0.043648 | 0.130943 | 0.043648 | 0.823071 | 0.812159 | 0.773967 | 0.766173 | 0.764614 | 0.717849 | 0 | 0.099133 | 0.378032 | 2,968 | 200 | 63 | 14.84 | 0.595883 | 0.182278 | 0 | 0.933333 | 0 | 0 | 0.644075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012121 | 0 | 0.012121 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
91b2714ba0778f35f60b0b6bcd511c0e6cb7b602 | 44,984 | py | Python | tests/test_operationdefinition.py | glichtner/fhir.resources | 94896d8f8a0b7dd69253762aab968f4fd6eb69a0 | [
"BSD-3-Clause"
] | null | null | null | tests/test_operationdefinition.py | glichtner/fhir.resources | 94896d8f8a0b7dd69253762aab968f4fd6eb69a0 | [
"BSD-3-Clause"
] | null | null | null | tests/test_operationdefinition.py | glichtner/fhir.resources | 94896d8f8a0b7dd69253762aab968f4fd6eb69a0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/OperationDefinition
Release: R5
Version: 4.5.0
Build ID: 0d95498
Last updated: 2021-04-03T00:34:11.075+00:00
"""
from pydantic.validators import bytes_validator # noqa: F401
from fhir.resources import fhirtypes # noqa: F401
from fhir.resourc... | 40.820327 | 88 | 0.66926 | 5,534 | 44,984 | 5.412902 | 0.065775 | 0.198965 | 0.223903 | 0.046069 | 0.864831 | 0.798832 | 0.786647 | 0.768286 | 0.747555 | 0.717376 | 0 | 0.029299 | 0.19498 | 44,984 | 1,101 | 89 | 40.857402 | 0.79789 | 0.041081 | 0 | 0.590031 | 0 | 0 | 0.282274 | 0.028737 | 0 | 0 | 0 | 0 | 0.626653 | 1 | 0.020346 | false | 0 | 0.003052 | 0 | 0.023398 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
91ba44d608031eee5c846fd2319e7789d9a0ca84 | 96,016 | py | Python | sdk/python/pulumi_aws/lb/_inputs.py | Otanikotani/pulumi-aws | 00e2b352da42c5b1b0ec7b4760eec5ad2b23ff21 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/lb/_inputs.py | Otanikotani/pulumi-aws | 00e2b352da42c5b1b0ec7b4760eec5ad2b23ff21 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/lb/_inputs.py | Otanikotani/pulumi-aws | 00e2b352da42c5b1b0ec7b4760eec5ad2b23ff21 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilitie... | 47.020568 | 574 | 0.675617 | 11,639 | 96,016 | 5.429247 | 0.039007 | 0.093653 | 0.068016 | 0.035179 | 0.89383 | 0.866943 | 0.844851 | 0.828646 | 0.82113 | 0.807963 | 0 | 0.004482 | 0.219182 | 96,016 | 2,041 | 575 | 47.043606 | 0.838391 | 0.348442 | 0 | 0.774297 | 1 | 0 | 0.141109 | 0.072872 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209639 | false | 0 | 0.004016 | 0.004016 | 0.329317 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
37db4ffeb12eeb9b86aa83ade66bb0de14fcee84 | 155 | py | Python | bob/ami/__init__.py | intergalactic-software/bob | 223558be6657d910488704850f5b8db65aeb1295 | [
"MIT"
] | null | null | null | bob/ami/__init__.py | intergalactic-software/bob | 223558be6657d910488704850f5b8db65aeb1295 | [
"MIT"
] | null | null | null | bob/ami/__init__.py | intergalactic-software/bob | 223558be6657d910488704850f5b8db65aeb1295 | [
"MIT"
] | 1 | 2020-07-03T16:23:03.000Z | 2020-07-03T16:23:03.000Z | from bob.ami.AMI import *
from bob.ami.FTPServerApp import *
from bob.ami.Hub import *
from bob.ami.NetworkWatcher import *
from bob.ami.TCPServer import * | 31 | 36 | 0.780645 | 25 | 155 | 4.84 | 0.32 | 0.289256 | 0.413223 | 0.528926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122581 | 155 | 5 | 37 | 31 | 0.889706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
37e4ed92ca3db319b0ca2b956cbbf4bff26e7bfd | 85,338 | py | Python | autotest/ogr/ogr_plscenes.py | robe2/gdal | 78573efe69f1506c112209501068c0b043438295 | [
"MIT"
] | null | null | null | autotest/ogr/ogr_plscenes.py | robe2/gdal | 78573efe69f1506c112209501068c0b043438295 | [
"MIT"
] | null | null | null | autotest/ogr/ogr_plscenes.py | robe2/gdal | 78573efe69f1506c112209501068c0b043438295 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# $Id$
#
# Project: GDAL/OGR Test Suite
# Purpose: PlanetLabs scene driver test suite.
# Author: Even Rouault, even dot rouault at spatialys.com
#
###########################################... | 37.626984 | 475 | 0.493942 | 8,196 | 85,338 | 5.004392 | 0.063324 | 0.039789 | 0.059684 | 0.072947 | 0.834723 | 0.808684 | 0.780647 | 0.742369 | 0.708187 | 0.686976 | 0 | 0.032528 | 0.352282 | 85,338 | 2,267 | 476 | 37.643582 | 0.709507 | 0.04563 | 0 | 0.702417 | 0 | 0.034743 | 0.401668 | 0.15594 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006798 | false | 0 | 0.003021 | 0 | 0.126888 | 0.006042 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
37f8e68b890245f8255bb4088f0297d76d7a33ef | 108 | py | Python | class.py | minefarmer/PythonMega | 1b22f6648ca7a9711853aaa909558d49416d4fd7 | [
"Unlicense"
] | null | null | null | class.py | minefarmer/PythonMega | 1b22f6648ca7a9711853aaa909558d49416d4fd7 | [
"Unlicense"
] | null | null | null | class.py | minefarmer/PythonMega | 1b22f6648ca7a9711853aaa909558d49416d4fd7 | [
"Unlicense"
] | null | null | null | import cv2
img-cv2.imread("galaxy.jpg",-1)
img-cv2.imread("galaxy.jpg",-1)
img-cv2.imread("galaxy.jpg",-1)
| 18 | 31 | 0.694444 | 20 | 108 | 3.75 | 0.35 | 0.24 | 0.48 | 0.72 | 0.88 | 0.88 | 0.88 | 0.88 | 0.88 | 0.88 | 0 | 0.068627 | 0.055556 | 108 | 5 | 32 | 21.6 | 0.666667 | 0 | 0 | 0.75 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 13 |
5359811c52c9c872dcdee66e725db59080b5e858 | 18,397 | py | Python | tests/components/panasonic_viera/test_config_flow.py | ccatterina/core | 36789cfc310f270bf343676eb94d123e5d0dfa83 | [
"Apache-2.0"
] | 6 | 2016-11-25T06:36:27.000Z | 2021-11-16T11:20:23.000Z | tests/components/panasonic_viera/test_config_flow.py | SicAriuSx83/core | 162c39258e68ae42fe4e1560ae91ed54f5662409 | [
"Apache-2.0"
] | 45 | 2020-07-23T07:13:34.000Z | 2022-03-31T06:01:55.000Z | tests/components/panasonic_viera/test_config_flow.py | SicAriuSx83/core | 162c39258e68ae42fe4e1560ae91ed54f5662409 | [
"Apache-2.0"
] | 2 | 2020-11-17T09:19:47.000Z | 2020-12-16T03:56:09.000Z | """Test the Panasonic Viera config flow."""
from panasonic_viera import TV_TYPE_ENCRYPTED, TV_TYPE_NONENCRYPTED, SOAPError
import pytest
from homeassistant import config_entries
from homeassistant.components.panasonic_viera.const import (
CONF_APP_ID,
CONF_ENCRYPTION_KEY,
CONF_ON_ACTION,
DEFAULT_NAME,
... | 30.358086 | 104 | 0.636299 | 2,172 | 18,397 | 5.112339 | 0.050645 | 0.079971 | 0.044579 | 0.06241 | 0.90598 | 0.897514 | 0.876261 | 0.838437 | 0.818714 | 0.816372 | 0 | 0.011557 | 0.247432 | 18,397 | 605 | 105 | 30.408264 | 0.790466 | 0.004729 | 0 | 0.758242 | 0 | 0 | 0.16044 | 0.069505 | 0 | 0 | 0 | 0 | 0.162637 | 1 | 0.008791 | false | 0 | 0.054945 | 0.002198 | 0.07033 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
727d8d6a0ee392b038a0dac1b617ba5dee6b6772 | 153 | py | Python | teste.py | lisboa1701/projeto-ADS_GTI1 | dae71089dc0ab04feb478ffcc125cd3091ba74e3 | [
"Apache-2.0"
] | null | null | null | teste.py | lisboa1701/projeto-ADS_GTI1 | dae71089dc0ab04feb478ffcc125cd3091ba74e3 | [
"Apache-2.0"
] | null | null | null | teste.py | lisboa1701/projeto-ADS_GTI1 | dae71089dc0ab04feb478ffcc125cd3091ba74e3 | [
"Apache-2.0"
] | null | null | null | import pytest
from principal import soma
from principal import sub
def test_Somar():
assert soma(2,4) == 6
def test_sub():
assert sub(9,5) == 4 | 17 | 26 | 0.69281 | 26 | 153 | 4 | 0.576923 | 0.25 | 0.365385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 0.202614 | 153 | 9 | 27 | 17 | 0.803279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | true | 0 | 0.428571 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
7287bac3adc79ac742494fce9f65b1d46cbb3ec9 | 5,338 | py | Python | data/cifar.py | rickdr/Data-analysis-DNN-testing | a6b049ba218843c3ea9edf318f13a6f192b7a440 | [
"MIT"
] | null | null | null | data/cifar.py | rickdr/Data-analysis-DNN-testing | a6b049ba218843c3ea9edf318f13a6f192b7a440 | [
"MIT"
] | null | null | null | data/cifar.py | rickdr/Data-analysis-DNN-testing | a6b049ba218843c3ea9edf318f13a6f192b7a440 | [
"MIT"
] | null | null | null | import numpy as np
import torch
import torchvision
from torch.utils.data import Sampler
from torchvision import transforms
from collections import Counter
from sklearn.model_selection import train_test_split
from sklearn.model_selection import StratifiedKFold
from utils.data import calculate_distribution
def load_10... | 45.237288 | 123 | 0.70607 | 664 | 5,338 | 5.454819 | 0.103916 | 0.092766 | 0.07344 | 0.079514 | 0.929321 | 0.912203 | 0.895638 | 0.887355 | 0.849807 | 0.849807 | 0 | 0.010733 | 0.197078 | 5,338 | 118 | 124 | 45.237288 | 0.834344 | 0.11465 | 0 | 0.781609 | 0 | 0 | 0.019949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022989 | false | 0 | 0.103448 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
72cff5b7ef48991ee7a3c03e1ab6ec30b8b929fa | 71,542 | py | Python | src/test/scenarios/synapse/output/extflatten/src/synapse/azext_synapse/generated/_params.py | isabella232/autorest.az | a237977061608b9cdd8b66cbc27dd3db8891a669 | [
"MIT"
] | null | null | null | src/test/scenarios/synapse/output/extflatten/src/synapse/azext_synapse/generated/_params.py | isabella232/autorest.az | a237977061608b9cdd8b66cbc27dd3db8891a669 | [
"MIT"
] | 1 | 2021-02-24T09:10:12.000Z | 2021-02-24T09:10:12.000Z | src/test/scenarios/synapse/output/extflatten/src/synapse/azext_synapse/generated/_params.py | isabella232/autorest.az | a237977061608b9cdd8b66cbc27dd3db8891a669 | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incor... | 74.756531 | 120 | 0.682145 | 9,617 | 71,542 | 4.877093 | 0.057398 | 0.091913 | 0.068716 | 0.068759 | 0.930537 | 0.92412 | 0.918385 | 0.910475 | 0.899815 | 0.894484 | 0 | 0.002613 | 0.197702 | 71,542 | 956 | 121 | 74.834728 | 0.814541 | 0.007073 | 0 | 0.755422 | 0 | 0.016867 | 0.493298 | 0.093363 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001205 | false | 0.007229 | 0.003614 | 0 | 0.004819 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
72fd370a9356bb6b012b61553a0b20a94b97bc5a | 32 | py | Python | packages/autocomplete-python/spec/fixtures/packages/test_pkg/__init__.py | tpaclatee/atom-setup-python | 0d4038b948e69b72a0beda2620c4ce559be9dde8 | [
"MIT"
] | 1 | 2018-12-13T07:11:00.000Z | 2018-12-13T07:11:00.000Z | packages/autocomplete-python/spec/fixtures/packages/test_pkg/__init__.py | tpaclatee/atom-setup-python | 0d4038b948e69b72a0beda2620c4ce559be9dde8 | [
"MIT"
] | null | null | null | packages/autocomplete-python/spec/fixtures/packages/test_pkg/__init__.py | tpaclatee/atom-setup-python | 0d4038b948e69b72a0beda2620c4ce559be9dde8 | [
"MIT"
] | null | null | null | def FooBar():
return "BarFoo"
| 10.666667 | 17 | 0.65625 | 4 | 32 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 32 | 2 | 18 | 16 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
f40b052513ed8f341b3b2c2f97f9b01c9f37cb2d | 3,224 | py | Python | src/genie/libs/parser/iosxe/tests/ShowLispPrefixList/cli/equal/golden_show_lisp_prefix_list_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowLispPrefixList/cli/equal/golden_show_lisp_prefix_list_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowLispPrefixList/cli/equal/golden_show_lisp_prefix_list_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | null | null | null | expected_output = {
'lisp_id': {
0: {
'prefix_list_name': {
'site1': {
'number_of_entries': 4,
'users': [{
'itr_map_resolver': '100.100.100.100'
}, {
'itr_map_resolver': '4... | 39.802469 | 61 | 0.277916 | 234 | 3,224 | 3.57265 | 0.175214 | 0.19378 | 0.19378 | 0.129187 | 0.854067 | 0.854067 | 0.854067 | 0.830144 | 0.830144 | 0.830144 | 0 | 0.212423 | 0.595534 | 3,224 | 80 | 62 | 40.3 | 0.428681 | 0 | 0 | 0.675 | 0 | 0 | 0.30273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0375 | 0 | 0.0375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
f42afd47da69f1776117c864eda9b8f262e52694 | 120 | py | Python | models/__init__.py | erp27/odoo_crm_checklist | eadc93573b85ab15f510a4a1cbbecdf412085631 | [
"MIT"
] | null | null | null | models/__init__.py | erp27/odoo_crm_checklist | eadc93573b85ab15f510a4a1cbbecdf412085631 | [
"MIT"
] | null | null | null | models/__init__.py | erp27/odoo_crm_checklist | eadc93573b85ab15f510a4a1cbbecdf412085631 | [
"MIT"
] | 1 | 2020-11-19T17:02:05.000Z | 2020-11-19T17:02:05.000Z | # -*- coding: utf-8 -*-
from . import res_user_inherit
from . import crm_lead_checklist
from . import crm_lead_inherit
| 20 | 32 | 0.75 | 18 | 120 | 4.666667 | 0.611111 | 0.357143 | 0.309524 | 0.404762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0.15 | 120 | 5 | 33 | 24 | 0.813725 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
f42d620da50dae8796c099a1bf2304a2db7de88c | 3,096 | py | Python | backend/users/migrations/0003_auto_20200212_2137.py | draihal/main-pr | 81814c5370b592963e91ad0683caa560b0ea9579 | [
"MIT"
] | 2 | 2021-01-28T08:23:15.000Z | 2021-03-09T06:06:58.000Z | backend/users/migrations/0003_auto_20200212_2137.py | draihal/main-pr | 81814c5370b592963e91ad0683caa560b0ea9579 | [
"MIT"
] | 9 | 2020-01-02T15:31:04.000Z | 2021-12-09T01:59:26.000Z | backend/users/migrations/0003_auto_20200212_2137.py | draihal/main-pr | 81814c5370b592963e91ad0683caa560b0ea9579 | [
"MIT"
] | 1 | 2021-03-09T06:11:16.000Z | 2021-03-09T06:11:16.000Z | # Generated by Django 2.2.9 on 2020-02-12 18:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20200114_2308'),
]
operations = [
migrations.AlterField(
model_name='partner',
name='company',
... | 39.189873 | 207 | 0.567183 | 306 | 3,096 | 5.594771 | 0.294118 | 0.151869 | 0.189836 | 0.22021 | 0.827103 | 0.827103 | 0.743575 | 0.584112 | 0.525701 | 0.525701 | 0 | 0.021486 | 0.278424 | 3,096 | 78 | 208 | 39.692308 | 0.744852 | 0.014535 | 0 | 0.75 | 1 | 0 | 0.173172 | 0.007543 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013889 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f431b9ebf9db4a98efb9f2179f42d45b4df8c3d5 | 294 | py | Python | Shivam Loops/table.py | Shivams9/pythoncodecamp | e6cd27f4704a407ee360414a8c9236b254117a59 | [
"MIT"
] | null | null | null | Shivam Loops/table.py | Shivams9/pythoncodecamp | e6cd27f4704a407ee360414a8c9236b254117a59 | [
"MIT"
] | null | null | null | Shivam Loops/table.py | Shivams9/pythoncodecamp | e6cd27f4704a407ee360414a8c9236b254117a59 | [
"MIT"
] | null | null | null | #table of 2
n=10
for i in range(n):
print((i+1)*2 ,"," , end="")
#-9
# n = 10
for i in range(n):
print((i + 1) * (-9), ",", end="")
#table of -10
n = 10
for i in range(n):
print((i+1)*(.2),",", end="")
n=10
for i in range(n):
print((i+1)*(-9), ",", end="")
| 13.363636 | 42 | 0.414966 | 55 | 294 | 2.218182 | 0.236364 | 0.098361 | 0.196721 | 0.229508 | 0.852459 | 0.852459 | 0.852459 | 0.852459 | 0.852459 | 0.852459 | 0 | 0.095694 | 0.289116 | 294 | 21 | 43 | 14 | 0.488038 | 0.105442 | 0 | 0.818182 | 0 | 0 | 0.015625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
be4468032cb81d1f06a3689e67a3d4523e841e26 | 148 | py | Python | atlas/foundations_events/src/test/producers/__init__.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 296 | 2020-03-16T19:55:00.000Z | 2022-01-10T19:46:05.000Z | atlas/foundations_events/src/test/producers/__init__.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 57 | 2020-03-17T11:15:57.000Z | 2021-07-10T14:42:27.000Z | atlas/foundations_events/src/test/producers/__init__.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 38 | 2020-03-17T21:06:05.000Z | 2022-02-08T03:19:34.000Z |
from test.producers.jobs import *
from test.producers.test_metric_logged import TestMetricLogged
from test.producers.test_tag_set import TestTagSet | 37 | 62 | 0.871622 | 21 | 148 | 5.952381 | 0.52381 | 0.192 | 0.408 | 0.336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 148 | 4 | 63 | 37 | 0.919118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
be61358065ae46ce871eec27445b4fc7fff7c9c1 | 2,133 | py | Python | tests/test_tosca_node_mongo.py | lucarin91/tosKer | 6cb2be133e39b3788a758b73f9f65c1f505a8e5b | [
"MIT"
] | 7 | 2017-10-18T00:07:26.000Z | 2021-08-03T14:23:24.000Z | tests/test_tosca_node_mongo.py | lucarin91/tosKer | 6cb2be133e39b3788a758b73f9f65c1f505a8e5b | [
"MIT"
] | 28 | 2017-06-30T11:15:16.000Z | 2021-02-26T23:14:25.000Z | tests/test_tosca_node_mongo.py | lucarin91/tosKer | 6cb2be133e39b3788a758b73f9f65c1f505a8e5b | [
"MIT"
] | 6 | 2017-10-19T08:30:09.000Z | 2020-06-16T13:25:38.000Z | import unittest
from .test_tosca_base import TestToscaBase
class TestNodeMongo(TestToscaBase):
def test_csar(self):
file = 'data/examples/node-mongo-csar/node-mongo.csar'
up = self.o.read_plan_file(
'data/examples/node-mongo-csar/node-mongo.up.plan'
)
down = self.o.re... | 32.815385 | 73 | 0.616034 | 290 | 2,133 | 4.355172 | 0.113793 | 0.213777 | 0.190024 | 0.23753 | 0.885986 | 0.885986 | 0.882819 | 0.882819 | 0.748219 | 0.711797 | 0 | 0.005051 | 0.257384 | 2,133 | 64 | 74 | 33.328125 | 0.792298 | 0 | 0 | 0.363636 | 0 | 0 | 0.35443 | 0.35068 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | false | 0 | 0.036364 | 0 | 0.145455 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
be7ddb27c5d2d14a238080cc1cd2cc38409b8fcb | 134 | py | Python | core/__init__.py | aiobot-docs/AIO-Bot | a22c9dcc3b718b1c1311b13f838a9b8ead8e27d6 | [
"Apache-2.0"
] | 2 | 2020-10-14T18:20:41.000Z | 2020-10-14T18:20:44.000Z | core/__init__.py | aiobot-docs/AIO-Bot | a22c9dcc3b718b1c1311b13f838a9b8ead8e27d6 | [
"Apache-2.0"
] | null | null | null | core/__init__.py | aiobot-docs/AIO-Bot | a22c9dcc3b718b1c1311b13f838a9b8ead8e27d6 | [
"Apache-2.0"
] | null | null | null | #Everything In Core
from core import command_handler
from core import message_handler
from core import patch
from core import database | 26.8 | 32 | 0.858209 | 21 | 134 | 5.380952 | 0.47619 | 0.283186 | 0.495575 | 0.371681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134328 | 134 | 5 | 33 | 26.8 | 0.974138 | 0.134328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
be931f7d4d63e00c246cdc201529aaae99dbb41d | 1,189 | py | Python | test/test_address.py | piersto/python_training_5 | c608355be8b643656d3078945a92241ad81811f7 | [
"Apache-2.0"
] | null | null | null | test/test_address.py | piersto/python_training_5 | c608355be8b643656d3078945a92241ad81811f7 | [
"Apache-2.0"
] | null | null | null | test/test_address.py | piersto/python_training_5 | c608355be8b643656d3078945a92241ad81811f7 | [
"Apache-2.0"
] | null | null | null | def test_address_on_home_page(app):
# we will do the test for one contact so we write index 0 = [0]
contact_from_home_page = app.contact.get_contact_list()[0]
# now we will get contact info from edit page with index 0 as well
contact_from_edit_page = app.contact.get_contact_info_from_edit_page(0)
as... | 41 | 79 | 0.772077 | 207 | 1,189 | 4.101449 | 0.144928 | 0.155477 | 0.169611 | 0.134276 | 0.823322 | 0.823322 | 0.823322 | 0.823322 | 0.823322 | 0.823322 | 0 | 0.015152 | 0.167368 | 1,189 | 28 | 80 | 42.464286 | 0.842424 | 0.319596 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
be95ce0f55d5b157fdb84d43bf65863de8eab536 | 2,148 | py | Python | mera/unittest_example/load_all_prepared_tests_as_suite.py | MikeLaptev/sandbox_python | 90d9b520d24602fa298abed4bb85232e12550fb2 | [
"Apache-2.0"
] | 1 | 2016-02-25T19:01:01.000Z | 2016-02-25T19:01:01.000Z | mera/unittest_example/load_all_prepared_tests_as_suite.py | MikeLaptev/sandbox_python | 90d9b520d24602fa298abed4bb85232e12550fb2 | [
"Apache-2.0"
] | null | null | null | mera/unittest_example/load_all_prepared_tests_as_suite.py | MikeLaptev/sandbox_python | 90d9b520d24602fa298abed4bb85232e12550fb2 | [
"Apache-2.0"
] | null | null | null | '''
Created on Jul 30, 2015
@author: Mikhail
'''
import unittest
def loadTestSuitesWithAllTestByDiscover():
# pattern should be like a bash shell pattern matching
example_of_loader = unittest.TestLoader()
list_of_modules = example_of_loader.discover(".", "generate_and_load_unittest_update_[a-z][a-z][a-z].... | 53.7 | 138 | 0.715549 | 278 | 2,148 | 5.356115 | 0.291367 | 0.112827 | 0.080591 | 0.013432 | 0.856951 | 0.856951 | 0.856951 | 0.856951 | 0.856951 | 0.856951 | 0 | 0.005675 | 0.179702 | 2,148 | 40 | 139 | 53.7 | 0.839387 | 0.121508 | 0 | 0.692308 | 0 | 0 | 0.282205 | 0.059498 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.384615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
be98a41cb433bdd60736c038010c89c6362bcf0d | 87 | py | Python | easy_tweet_deleter/__init__.py | TheTallBlonde1/easy_tweet_deleter | 3d901f38959a432bc2b8456103551310a54520dd | [
"MIT"
] | 1 | 2020-10-17T18:05:46.000Z | 2020-10-17T18:05:46.000Z | easy_tweet_deleter/__init__.py | TheTallBlonde1/easy_tweet_deleter | 3d901f38959a432bc2b8456103551310a54520dd | [
"MIT"
] | null | null | null | easy_tweet_deleter/__init__.py | TheTallBlonde1/easy_tweet_deleter | 3d901f38959a432bc2b8456103551310a54520dd | [
"MIT"
] | null | null | null | from .easy_tweet_deleter import (run_easy_twitter_deleter, check_easy_twitter_deleter)
| 43.5 | 86 | 0.896552 | 13 | 87 | 5.384615 | 0.615385 | 0.314286 | 0.514286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057471 | 87 | 1 | 87 | 87 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
fe26221c493d20658c3cafd2c53bc20e20b72016 | 222 | py | Python | pyinstrument/renderers/__init__.py | liu35/osf | 9fcda433e60023dccf6916eeeee9f1b66b439140 | [
"BSD-3-Clause"
] | 1 | 2021-12-30T00:44:20.000Z | 2021-12-30T00:44:20.000Z | pyinstrument/renderers/__init__.py | liu35/osf | 9fcda433e60023dccf6916eeeee9f1b66b439140 | [
"BSD-3-Clause"
] | null | null | null | pyinstrument/renderers/__init__.py | liu35/osf | 9fcda433e60023dccf6916eeeee9f1b66b439140 | [
"BSD-3-Clause"
] | null | null | null | from pyinstrument.renderers.base import Renderer
from pyinstrument.renderers.console import ConsoleRenderer
from pyinstrument.renderers.html import HTMLRenderer
from pyinstrument.renderers.jsonrenderer import JSONRenderer
| 44.4 | 60 | 0.891892 | 24 | 222 | 8.25 | 0.458333 | 0.323232 | 0.505051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072072 | 222 | 4 | 61 | 55.5 | 0.961165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
fe5f84d1e9f8f008fd10bb995352f25b10083a59 | 62,084 | py | Python | MDV_utilities/mass_isotopomer_distributions.py | dmccloskey/MDV_utilities | 4b892c88ccab244ea7885219ffcbc3a345b71171 | [
"MIT"
] | 1 | 2017-05-09T23:17:41.000Z | 2017-05-09T23:17:41.000Z | MDV_utilities/mass_isotopomer_distributions.py | dmccloskey/MDV_utilities | 4b892c88ccab244ea7885219ffcbc3a345b71171 | [
"MIT"
] | null | null | null | MDV_utilities/mass_isotopomer_distributions.py | dmccloskey/MDV_utilities | 4b892c88ccab244ea7885219ffcbc3a345b71171 | [
"MIT"
] | null | null | null | from molmass.molmass import Formula
from scipy.stats import mode
import numpy
import re
class mass_isotopomer_distributions():
def __init__(self):
return;
def build_precursorSpectrumFromMRMs(self,peakSpectrum_I,blankSpectrum_I):
'''extract maximum intensity peak'''
# Input:
... | 48.655172 | 165 | 0.547677 | 6,065 | 62,084 | 5.408904 | 0.058862 | 0.004268 | 0.011797 | 0.021125 | 0.826459 | 0.801463 | 0.770553 | 0.760524 | 0.750221 | 0.734614 | 0 | 0.01157 | 0.356839 | 62,084 | 1,276 | 166 | 48.655172 | 0.809992 | 0.179563 | 0 | 0.763842 | 0 | 0 | 0.010318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021469 | false | 0 | 0.00452 | 0.00113 | 0.049718 | 0.00452 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fe84cf3bb9f5ee0d3b96c29f3cd7fd01ebfbb074 | 1,157 | py | Python | docker/sane-doc-reports/src/tests/library/elements/test_table.py | glicht/dockerfiles | 7dff92792a7ec6ac1e04950a41927867af5f147c | [
"MIT"
] | 1 | 2020-06-16T16:32:42.000Z | 2020-06-16T16:32:42.000Z | docker/sane-doc-reports/src/tests/library/elements/test_table.py | glicht/dockerfiles | 7dff92792a7ec6ac1e04950a41927867af5f147c | [
"MIT"
] | 25 | 2018-12-24T22:40:45.000Z | 2021-06-25T15:26:39.000Z | docker/sane-doc-reports/src/tests/library/elements/test_table.py | glicht/dockerfiles | 7dff92792a7ec6ac1e04950a41927867af5f147c | [
"MIT"
] | 1 | 2019-02-06T06:39:57.000Z | 2019-02-06T06:39:57.000Z | from docx.table import Table
from sane_doc_reports.populate.Report import Report
from tests import utils
from tests.utils import _transform
def test_table_in_report():
report = Report(*_transform('elements/table.json'))
report.populate_report()
d = report.document
table = next(utils.iter_block_items(... | 31.27027 | 78 | 0.6828 | 175 | 1,157 | 4.411429 | 0.314286 | 0.093264 | 0.072539 | 0.088083 | 0.801813 | 0.801813 | 0.801813 | 0.801813 | 0.801813 | 0.792746 | 0 | 0.01164 | 0.183233 | 1,157 | 37 | 78 | 31.27027 | 0.805291 | 0.135696 | 0 | 0.583333 | 0 | 0 | 0.130522 | 0.048193 | 0 | 0 | 0 | 0 | 0.416667 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
22b1257f3cea1d8f7d42abd1b5ef5beb370610f7 | 132,745 | py | Python | tests/adapters/switches/cisco_test.py | idjaw/netman | 58ba898de6e450a24b4f1721ce274ad3e12f9d33 | [
"Apache-2.0"
] | 1 | 2016-01-28T17:56:51.000Z | 2016-01-28T17:56:51.000Z | tests/adapters/switches/cisco_test.py | idjaw/netman | 58ba898de6e450a24b4f1721ce274ad3e12f9d33 | [
"Apache-2.0"
] | 2 | 2021-12-13T20:55:50.000Z | 2022-03-29T22:07:13.000Z | tests/adapters/switches/cisco_test.py | idjaw/netman | 58ba898de6e450a24b4f1721ce274ad3e12f9d33 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Internap.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 52.241244 | 162 | 0.64373 | 16,517 | 132,745 | 4.92868 | 0.036811 | 0.055941 | 0.091577 | 0.115297 | 0.908902 | 0.89152 | 0.880035 | 0.863329 | 0.847605 | 0.837508 | 0 | 0.03911 | 0.215466 | 132,745 | 2,540 | 163 | 52.261811 | 0.742575 | 0.004113 | 0 | 0.730144 | 0 | 0.004306 | 0.289155 | 0.002837 | 0 | 0 | 0.000083 | 0 | 0.121053 | 1 | 0.062201 | false | 0.005263 | 0.009091 | 0 | 0.07177 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
22e0b7187d2d1047f26c52af76b6c87b2bbe72a3 | 3,151 | py | Python | 2021/11/code.py | ErikBavenstrand/Advent-of-Code | d4879dfb8d70d817cf57ab6a601f22e91d5ed8e1 | [
"MIT"
] | null | null | null | 2021/11/code.py | ErikBavenstrand/Advent-of-Code | d4879dfb8d70d817cf57ab6a601f22e91d5ed8e1 | [
"MIT"
] | null | null | null | 2021/11/code.py | ErikBavenstrand/Advent-of-Code | d4879dfb8d70d817cf57ab6a601f22e91d5ed8e1 | [
"MIT"
] | null | null | null | # Advent of Code 2021 Day 11
# Author: Erik Båvenstrand
# URL: https://adventofcode.com/2021/day/11
import numpy as np
def part_a(data: list[str]):
grid = np.empty((len(data), len(data)), int)
for i, line in enumerate(data):
grid[i] = list(line)
flashes = 0
for day in range(100):
gri... | 30.009524 | 59 | 0.371945 | 432 | 3,151 | 2.699074 | 0.143519 | 0.030875 | 0.06175 | 0.072041 | 0.802744 | 0.802744 | 0.802744 | 0.802744 | 0.802744 | 0.802744 | 0 | 0.065574 | 0.496668 | 3,151 | 104 | 60 | 30.298077 | 0.669609 | 0.029514 | 0 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.011364 | 0 | 0.056818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fe1137000165f97fe3fc2b9e3b0e8d649383091d | 126 | py | Python | heritageclues/models.py | myrjola/hackforclues | 7eddb63236421c634e1ade28ebce14ba99aa4d76 | [
"MIT"
] | null | null | null | heritageclues/models.py | myrjola/hackforclues | 7eddb63236421c634e1ade28ebce14ba99aa4d76 | [
"MIT"
] | null | null | null | heritageclues/models.py | myrjola/hackforclues | 7eddb63236421c634e1ade28ebce14ba99aa4d76 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.postgres.fields import JSONField
from django.contrib.auth.models import User
| 31.5 | 52 | 0.849206 | 19 | 126 | 5.631579 | 0.578947 | 0.280374 | 0.317757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 126 | 3 | 53 | 42 | 0.938596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
a3ef2a9dbed151cc2880c04f5ef86b5811b884e7 | 14,650 | py | Python | webapp/tests/test_readers_util.py | TimWhalen/graphite-web | e150af45e01d01141a8767ec0597e218105b9914 | [
"Apache-2.0"
] | 1 | 2021-01-16T20:10:45.000Z | 2021-01-16T20:10:45.000Z | webapp/tests/test_readers_util.py | TimWhalen/graphite-web | e150af45e01d01141a8767ec0597e218105b9914 | [
"Apache-2.0"
] | null | null | null | webapp/tests/test_readers_util.py | TimWhalen/graphite-web | e150af45e01d01141a8767ec0597e218105b9914 | [
"Apache-2.0"
] | null | null | null | from .base import TestCase
from graphite.readers import merge_with_cache
from graphite.wsgi import application # NOQA makes sure we have a working WSGI app
from six.moves import range
class MergeWithCacheTests(TestCase):
maxDiff = None
def test_merge_with_cache_with_different_step_no_data(self):
#... | 35.906863 | 98 | 0.59843 | 1,925 | 14,650 | 4.395325 | 0.068571 | 0.092188 | 0.068904 | 0.079423 | 0.889375 | 0.879211 | 0.879211 | 0.879211 | 0.874719 | 0.874719 | 0 | 0.049272 | 0.319795 | 14,650 | 407 | 99 | 35.995086 | 0.799799 | 0.264437 | 0 | 0.804688 | 0 | 0 | 0.008723 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 1 | 0.050781 | false | 0 | 0.015625 | 0.003906 | 0.078125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
43434a36cdad47635da46c933ca6ca21f1865f26 | 23,167 | py | Python | templatetags/common_templatetags.py | IBM/omnia | 588f380e04c697ca9d5ed84822c14b37dad92d27 | [
"Apache-2.0"
] | 1 | 2021-11-25T16:07:38.000Z | 2021-11-25T16:07:38.000Z | templatetags/common_templatetags.py | IBM/omnia | 588f380e04c697ca9d5ed84822c14b37dad92d27 | [
"Apache-2.0"
] | null | null | null | templatetags/common_templatetags.py | IBM/omnia | 588f380e04c697ca9d5ed84822c14b37dad92d27 | [
"Apache-2.0"
] | null | null | null | import calendar
import json
import re
import math
from django import template
from django.db.models import Count, Q
from math import log, floor
from research.models import Artifact, BannerNotification
from research.helpers import hasEditorAccess
register = template.Library()
@register.inclusion_tag("partials/banne... | 119.417526 | 3,721 | 0.661329 | 5,204 | 23,167 | 2.940815 | 0.205035 | 0.033063 | 0.019015 | 0.010193 | 0.400484 | 0.358468 | 0.313513 | 0.29672 | 0.273001 | 0.222295 | 0 | 0.309597 | 0.084689 | 23,167 | 193 | 3,722 | 120.036269 | 0.41212 | 0.032892 | 0 | 0.037037 | 0 | 0.296296 | 0.890799 | 0.443609 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059259 | false | 0 | 0.066667 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4a30540b21c24e0d7a0bdf376d245bc80d9feb0f | 9,198 | py | Python | Contents/Libraries/Shared/subliminal_patch/providers/utils.py | Acidburn0zzz/Sub-Zero.bundle | eb3a0d52fde281773ba5109fad9801ede9c938ba | [
"MIT"
] | 1 | 2018-02-01T18:00:59.000Z | 2018-02-01T18:00:59.000Z | Contents/Libraries/Shared/subliminal_patch/providers/utils.py | Acidburn0zzz/Sub-Zero.bundle | eb3a0d52fde281773ba5109fad9801ede9c938ba | [
"MIT"
] | null | null | null | Contents/Libraries/Shared/subliminal_patch/providers/utils.py | Acidburn0zzz/Sub-Zero.bundle | eb3a0d52fde281773ba5109fad9801ede9c938ba | [
"MIT"
] | null | null | null | FIRST_THOUSAND_OR_SO_USER_AGENTS = [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36",
"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac... | 106.953488 | 142 | 0.696891 | 1,798 | 9,198 | 3.526696 | 0.055617 | 0.06939 | 0.117805 | 0.145718 | 0.944961 | 0.944961 | 0.939284 | 0.93613 | 0.935341 | 0.929191 | 0 | 0.253147 | 0.136334 | 9,198 | 85 | 143 | 108.211765 | 0.545065 | 0 | 0 | 0 | 0 | 0.976471 | 0.92357 | 0.002392 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
4a359cf4d79602d9016731c173d35e56cf5bee79 | 34,339 | py | Python | src/Ftp_downupload_play.py | JeremyHash/LuatPyComUtils | 8dca96a85752f74a4d008553b9c94b87ac7a99e3 | [
"MIT"
] | null | null | null | src/Ftp_downupload_play.py | JeremyHash/LuatPyComUtils | 8dca96a85752f74a4d008553b9c94b87ac7a99e3 | [
"MIT"
] | null | null | null | src/Ftp_downupload_play.py | JeremyHash/LuatPyComUtils | 8dca96a85752f74a4d008553b9c94b87ac7a99e3 | [
"MIT"
] | null | null | null | import traceback
from utils import Logger
import sys
import re
import binascii
# FTP测试
class Ftp_play_upload:
log = Logger.Logger('./log/FTP.txt', level='debug')
uploadfile = ''
downloadfile = ''
lists = [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x... | 258.18797 | 28,813 | 0.760768 | 6,556 | 34,339 | 3.991611 | 0.025778 | 1.661202 | 2.476212 | 3.280828 | 0.943521 | 0.941228 | 0.938553 | 0.934656 | 0.931981 | 0.930605 | 0 | 0.527117 | 0.041527 | 34,339 | 132 | 28,814 | 260.143939 | 0.266217 | 0.001514 | 0 | 0.460177 | 0 | 0.026549 | 0.052919 | 0.040987 | 0 | 1 | 0.672132 | 0 | 0 | 1 | 0.026549 | false | 0.00885 | 0.044248 | 0 | 0.115044 | 0.035398 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 15 |
4a59b49400429e1cc596cf66cf1ff84624ea336b | 200 | py | Python | hcli_core/hutils.py | cometaj2/hcli_core | 5363cb81843ddec41246e7fcfac7dfcce8bf4b8c | [
"MIT"
] | null | null | null | hcli_core/hutils.py | cometaj2/hcli_core | 5363cb81843ddec41246e7fcfac7dfcce8bf4b8c | [
"MIT"
] | null | null | null | hcli_core/hutils.py | cometaj2/hcli_core | 5363cb81843ddec41246e7fcfac7dfcce8bf4b8c | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
import sys
# helps with printing error messages to STDERR
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
| 25 | 64 | 0.755 | 27 | 200 | 5.37037 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 200 | 7 | 65 | 28.571429 | 0.852941 | 0.22 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.5 | 0 | 0.75 | 0.75 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 7 |
4a5fe289f03046891907bccf144160ba3659b863 | 17,474 | py | Python | magenta/models/polyphony_rnn/polyphony_lib_test.py | nkjulia/magenta | 063d320d59276a15afa0f8a3a8d386ad74594070 | [
"Apache-2.0"
] | 2,785 | 2020-06-05T03:00:48.000Z | 2022-03-31T20:59:43.000Z | magenta/models/polyphony_rnn/polyphony_lib_test.py | nkjulia/magenta | 063d320d59276a15afa0f8a3a8d386ad74594070 | [
"Apache-2.0"
] | 242 | 2020-06-04T18:35:42.000Z | 2022-03-30T09:14:18.000Z | magenta/models/polyphony_rnn/polyphony_lib_test.py | nkjulia/magenta | 063d320d59276a15afa0f8a3a8d386ad74594070 | [
"Apache-2.0"
] | 745 | 2020-06-05T02:32:45.000Z | 2022-03-30T04:44:20.000Z | # Copyright 2021 The Magenta Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 29.667233 | 79 | 0.651711 | 2,520 | 17,474 | 4.288095 | 0.084127 | 0.051823 | 0.039237 | 0.053952 | 0.810476 | 0.793078 | 0.770498 | 0.764298 | 0.762539 | 0.739219 | 0 | 0.037549 | 0.233375 | 17,474 | 588 | 80 | 29.717687 | 0.76911 | 0.088646 | 0 | 0.766585 | 0 | 0 | 0.000507 | 0 | 0 | 0 | 0 | 0 | 0.085995 | 1 | 0.054054 | false | 0 | 0.017199 | 0 | 0.07371 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4abae12d459706c5c7165cc55d895b0d06b32723 | 97,432 | py | Python | ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py | nexr/ambari | 8452f207d7b9343a162698f2a2b79bf2c512e9d3 | [
"Apache-2.0"
] | 1 | 2015-05-04T12:19:05.000Z | 2015-05-04T12:19:05.000Z | ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py | nexr/ambari | 8452f207d7b9343a162698f2a2b79bf2c512e9d3 | [
"Apache-2.0"
] | null | null | null | ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py | nexr/ambari | 8452f207d7b9343a162698f2a2b79bf2c512e9d3 | [
"Apache-2.0"
] | 1 | 2021-01-07T08:55:01.000Z | 2021-01-07T08:55:01.000Z | '''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this ... | 39.59041 | 242 | 0.521102 | 8,215 | 97,432 | 6.073402 | 0.083628 | 0.02806 | 0.003367 | 0.024051 | 0.825727 | 0.80372 | 0.772854 | 0.750566 | 0.733249 | 0.725412 | 0 | 0.029345 | 0.337559 | 97,432 | 2,460 | 243 | 39.606504 | 0.743675 | 0.02766 | 0 | 0.611257 | 0 | 0.006108 | 0.41208 | 0.193219 | 0 | 0 | 0 | 0 | 0.027487 | 0 | null | null | 0.000873 | 0.001745 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
435c7706c4d5d1cae30f082b48b5fd0f7f782f7b | 36,279 | py | Python | imcsdk/mometa/mgmt/MgmtIf.py | TetrationAnalytics/imcsdk | d86e47831f294dc9fa5e99b9a92abceac2502d76 | [
"Apache-2.0"
] | null | null | null | imcsdk/mometa/mgmt/MgmtIf.py | TetrationAnalytics/imcsdk | d86e47831f294dc9fa5e99b9a92abceac2502d76 | [
"Apache-2.0"
] | null | null | null | imcsdk/mometa/mgmt/MgmtIf.py | TetrationAnalytics/imcsdk | d86e47831f294dc9fa5e99b9a92abceac2502d76 | [
"Apache-2.0"
] | 2 | 2016-05-26T02:05:46.000Z | 2017-09-13T05:13:25.000Z | """This module contains the general information for MgmtIf ManagedObject."""
from ...imcmo import ManagedObject
from ...imccoremeta import MoPropertyMeta, MoMeta
from ...imcmeta import VersionMeta
class MgmtIfConsts:
ADMIN_DUPLEX_NA = "NA"
ADMIN_DUPLEX_AUTO = "auto"
ADMIN_DUPLEX_FULL = "full"
ADMIN_D... | 106.078947 | 605 | 0.566884 | 5,785 | 36,279 | 3.441314 | 0.04771 | 0.02823 | 0.064045 | 0.076854 | 0.842074 | 0.818666 | 0.742063 | 0.73257 | 0.725136 | 0.661543 | 0 | 0.131532 | 0.141845 | 36,279 | 341 | 606 | 106.390029 | 0.507918 | 0.002536 | 0 | 0.28125 | 0 | 0.115625 | 0.465404 | 0.278231 | 0 | 0 | 0.017084 | 0 | 0 | 1 | 0.003125 | false | 0 | 0.009375 | 0 | 0.165625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
43625bd5c36db6d7ec1d03f23246f1ee9f5c071b | 3,640 | py | Python | TEST/code.tst.py | ihgazni2/rblk | 653d0687c9a4a768e8f327d065e60c7c5d9ddfba | [
"MIT"
] | null | null | null | TEST/code.tst.py | ihgazni2/rblk | 653d0687c9a4a768e8f327d065e60c7c5d9ddfba | [
"MIT"
] | null | null | null | TEST/code.tst.py | ihgazni2/rblk | 653d0687c9a4a768e8f327d065e60c7c5d9ddfba | [
"MIT"
] | null | null | null |
#parser
from xdict.jprint import pobj,pdir
from rblk.txt import Parser
txt = '''SSS{ABC"UVW(axb)"MMM[aa]vv(bb(c()c))}<rr<ss>tt>UUU'''
tag_pairs = '""{}()[]<>'
p = Parser(txt,tag_pairs)
pdir(p,range=[-10,-1])
p.txt
p.breadths
p.depth
#text_mat
from rblk.txt import Parser
txt = '''SSS{ABC"UVW(axb)"MMM[aa]vv(bb(c(... | 20.449438 | 84 | 0.643407 | 655 | 3,640 | 3.471756 | 0.099237 | 0.112577 | 0.079156 | 0.112137 | 0.816623 | 0.816623 | 0.816623 | 0.816623 | 0.786719 | 0.786719 | 0 | 0.01578 | 0.112088 | 3,640 | 177 | 85 | 20.564972 | 0.687809 | 0.080495 | 0 | 0.740385 | 0 | 0.125 | 0.27352 | 0.201984 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.144231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
438b37664b87105c6b593693a69cd226685fd87f | 35,754 | py | Python | src/figPlots.py | ivezic/MultifitTests | 9d22d9f5c40d21ec693c0a7d54e2c6f6dda3f36e | [
"MIT"
] | null | null | null | src/figPlots.py | ivezic/MultifitTests | 9d22d9f5c40d21ec693c0a7d54e2c6f6dda3f36e | [
"MIT"
] | null | null | null | src/figPlots.py | ivezic/MultifitTests | 9d22d9f5c40d21ec693c0a7d54e2c6f6dda3f36e | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
from astroML.stats import binned_statistic_2d
from astroML.plotting.mcmc import convert_to_stdev
from tools2Dgauss import *
def FourPanelPlot(oneDpixels, nonoise, psf, image, diffimage):
fig = plt.figure(figsize=(8, 8))
fig.subplots_adjust(left=0.13, bottom=... | 31.308231 | 156 | 0.600716 | 5,364 | 35,754 | 3.964019 | 0.08091 | 0.023703 | 0.040634 | 0.017307 | 0.876358 | 0.848987 | 0.832714 | 0.820016 | 0.781216 | 0.772986 | 0 | 0.071446 | 0.210802 | 35,754 | 1,141 | 157 | 31.33567 | 0.682107 | 0.102086 | 0 | 0.754057 | 0 | 0 | 0.109492 | 0.013475 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.006242 | null | null | 0.02372 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
438da00c53f36ee3acce887a6c8a04d2952d0297 | 228 | py | Python | EmptyCell.py | edo1998/3d-blue-noise | b2528f609b26448aeae13af3005917a57cc47e5f | [
"CC0-1.0"
] | null | null | null | EmptyCell.py | edo1998/3d-blue-noise | b2528f609b26448aeae13af3005917a57cc47e5f | [
"CC0-1.0"
] | null | null | null | EmptyCell.py | edo1998/3d-blue-noise | b2528f609b26448aeae13af3005917a57cc47e5f | [
"CC0-1.0"
] | null | null | null | class EmptyCell:
def __init__(self, id, x):
self.id = id
self.x = x
def vertices(self):
return None
def face_vertices(self):
return None
def neighbors(self):
return None | 17.538462 | 30 | 0.557018 | 29 | 228 | 4.206897 | 0.413793 | 0.245902 | 0.344262 | 0.360656 | 0.409836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.359649 | 228 | 13 | 31 | 17.538462 | 0.835616 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.3 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
43b6a1aba63d475f0cfdd2b291a962cca0965782 | 36,201 | py | Python | scripts/build_esri_projection_mapping.py | captain-igloo/PROJ | 10fd7871433899c819c932209db28e549c43a8c3 | [
"MIT"
] | null | null | null | scripts/build_esri_projection_mapping.py | captain-igloo/PROJ | 10fd7871433899c819c932209db28e549c43a8c3 | [
"MIT"
] | null | null | null | scripts/build_esri_projection_mapping.py | captain-igloo/PROJ | 10fd7871433899c819c932209db28e549c43a8c3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
###############################################################################
# $Id$
#
# Project: PROJ
# Purpose: Generate mappings between ESRI projection names and parameters and
# their EPSG equivalents.
# Author: Even Rouault <even.rouault at spatialys.com>
#
##############... | 43.773881 | 201 | 0.758653 | 4,425 | 36,201 | 5.615593 | 0.087684 | 0.108173 | 0.205924 | 0.113324 | 0.837901 | 0.816814 | 0.796451 | 0.76651 | 0.754236 | 0.737132 | 0 | 0.009177 | 0.178227 | 36,201 | 826 | 202 | 43.826877 | 0.826112 | 0.037761 | 0 | 0.602322 | 1 | 0 | 0.935405 | 0.490121 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001451 | false | 0 | 0.001451 | 0 | 0.002903 | 0.023222 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
43b6c163d546dadd1c42df5d54e0c79691b01fa8 | 140 | py | Python | models/__init__.py | liuyixin-louis/DCP_py3 | 30faeb962db63dcba1b54a550e4035021cbb1be9 | [
"BSD-3-Clause"
] | null | null | null | models/__init__.py | liuyixin-louis/DCP_py3 | 30faeb962db63dcba1b54a550e4035021cbb1be9 | [
"BSD-3-Clause"
] | null | null | null | models/__init__.py | liuyixin-louis/DCP_py3 | 30faeb962db63dcba1b54a550e4035021cbb1be9 | [
"BSD-3-Clause"
] | null | null | null | from .preresnet import *
from .pruned_preresnet import *
from .resnet import *
from .pruned_preresnet import *
from .pruned_vgg import * | 28 | 32 | 0.764286 | 18 | 140 | 5.777778 | 0.333333 | 0.384615 | 0.548077 | 0.480769 | 0.673077 | 0.673077 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164286 | 140 | 5 | 33 | 28 | 0.888889 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
43dc6c36756792a423d49f019ad84342aa609166 | 3,316 | py | Python | bz2_compressed.py | ftondolo/Library-Of-Pybel | f1f2fe99c02fa4d3b57c440966422286721a5c2f | [
"MIT"
] | null | null | null | bz2_compressed.py | ftondolo/Library-Of-Pybel | f1f2fe99c02fa4d3b57c440966422286721a5c2f | [
"MIT"
] | null | null | null | bz2_compressed.py | ftondolo/Library-Of-Pybel | f1f2fe99c02fa4d3b57c440966422286721a5c2f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import bz2, base64
exec(bz2.decompress(base64.b64decode('QlpoOTFBWSZTWaktKskAAbdfgGAQev//93////6////6YAucfUAVQAAe7u60bWyoUUCQkKKoOEqUANAAAAAABoAAAAAAHDQyaaGmRoaZGQZGRoZAYmjJoAyZGIYSRJT9TU9I2oAAAAAaAB+qeoAAAACTSiTKaKfpR5Eeo8UeoNAAAAAGgA0yAOGhk00NMjQ0yMgyMjQyAxNGTQBkyMQwkSCNAgE0AAkxppNRkwJoDQMmE0NMT... | 829 | 3,274 | 0.969843 | 82 | 3,316 | 39.219512 | 0.97561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127795 | 0.001809 | 3,316 | 3 | 3,275 | 1,105.333333 | 0.843807 | 0.006031 | 0 | 0 | 0 | 0.5 | 0.98088 | 0.98088 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 10 |
78e1f949149c6eb886a4aba4e5799d94f030b369 | 859,919 | py | Python | kubernetes/client/api/cluster_xk8s_io_v1alpha4_api.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | kubernetes/client/api/cluster_xk8s_io_v1alpha4_api.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | kubernetes/client/api/cluster_xk8s_io_v1alpha4_api.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.20.7
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # ... | 69.337123 | 1,390 | 0.667285 | 107,984 | 859,919 | 5.142929 | 0.00463 | 0.038376 | 0.062972 | 0.020945 | 0.998857 | 0.998804 | 0.998745 | 0.998686 | 0.998547 | 0.998108 | 0 | 0.014299 | 0.267725 | 859,919 | 12,401 | 1,391 | 69.342714 | 0.86764 | 0.559763 | 0 | 0.838437 | 1 | 0.008772 | 0.229336 | 0.078126 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026635 | false | 0 | 0.000797 | 0 | 0.054067 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
601f12fa40fa11c94e0fe6b169e47edff49b2244 | 5,435 | py | Python | python/ray/tests/test_component_failures.py | noahshpak/ray | edd783bc327760a4892ab89222ee551e42df15b9 | [
"Apache-2.0"
] | 2 | 2020-02-17T17:36:23.000Z | 2020-08-24T19:59:18.000Z | python/ray/tests/test_component_failures.py | noahshpak/ray | edd783bc327760a4892ab89222ee551e42df15b9 | [
"Apache-2.0"
] | 8 | 2020-11-13T19:02:47.000Z | 2022-03-12T00:44:51.000Z | python/ray/tests/test_component_failures.py | noahshpak/ray | edd783bc327760a4892ab89222ee551e42df15b9 | [
"Apache-2.0"
] | 1 | 2021-02-02T02:24:12.000Z | 2021-02-02T02:24:12.000Z | import os
import signal
import sys
import time
import numpy as np
import pytest
import ray
from ray.test_utils import run_string_as_driver_nonblocking, SignalActor
SIGKILL = signal.SIGKILL if sys.platform != "win32" else signal.SIGTERM
# This test checks that when a worker dies in the middle of a get, the plasma
#... | 27.449495 | 78 | 0.675989 | 867 | 5,435 | 4.058824 | 0.163783 | 0.043478 | 0.028417 | 0.031259 | 0.836317 | 0.778346 | 0.751634 | 0.748508 | 0.719523 | 0.695084 | 0 | 0.018661 | 0.211224 | 5,435 | 197 | 79 | 27.588832 | 0.802193 | 0.266789 | 0 | 0.737288 | 0 | 0 | 0.098784 | 0.027609 | 0 | 0 | 0 | 0 | 0.084746 | 1 | 0.101695 | false | 0 | 0.09322 | 0.016949 | 0.211864 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
60589edf6483971a8568bf51b2500f1bb827a561 | 6,804 | py | Python | 2021/24_1/a.py | budavariam/advent_of_code | 0903bcbb0df46371b6a340ca2be007dce6470c66 | [
"MIT"
] | null | null | null | 2021/24_1/a.py | budavariam/advent_of_code | 0903bcbb0df46371b6a340ca2be007dce6470c66 | [
"MIT"
] | null | null | null | 2021/24_1/a.py | budavariam/advent_of_code | 0903bcbb0df46371b6a340ca2be007dce6470c66 | [
"MIT"
] | 1 | 2022-02-11T13:14:50.000Z | 2022-02-11T13:14:50.000Z |
import math
def monad(chknum):
w,x,y,z= [0]*4
w = int(chknum[0])
x *= 0
x += z
if x < 0 or 26 < 0: return [chknum,None,None,None,None, 'Failed on mod instruction after num 1']
x %= 26
if 1 == 0: return [chknum,None,None,None,None, 'Failed on div instruction after num 1']
z =... | 22.381579 | 102 | 0.45679 | 1,266 | 6,804 | 2.454186 | 0.042654 | 0.216286 | 0.216286 | 0.153202 | 0.922755 | 0.915996 | 0.877374 | 0.847119 | 0.847119 | 0.847119 | 0 | 0.099178 | 0.392416 | 6,804 | 303 | 103 | 22.455446 | 0.652395 | 0 | 0 | 0.753378 | 0 | 0 | 0.156843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003378 | false | 0 | 0.003378 | 0 | 0.010135 | 0.006757 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
60787c90ed2c09fabcfc4b3607c62613bd74246b | 62 | py | Python | htsohm/generator/__init__.py | mas828/htsohm | 2c491073fd81baf52e4051aa809db49658311172 | [
"MIT"
] | 2 | 2020-08-27T16:46:41.000Z | 2022-02-23T14:32:58.000Z | htsohm/generator/__init__.py | mas828/htsohm | 2c491073fd81baf52e4051aa809db49658311172 | [
"MIT"
] | 22 | 2016-06-13T20:37:56.000Z | 2019-01-16T22:15:32.000Z | htsohm/generator/__init__.py | mas828/htsohm | 2c491073fd81baf52e4051aa809db49658311172 | [
"MIT"
] | 1 | 2020-09-05T15:26:17.000Z | 2020-09-05T15:26:17.000Z | import htsohm.generator.random
import htsohm.generator.mutate
| 20.666667 | 30 | 0.870968 | 8 | 62 | 6.75 | 0.625 | 0.444444 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 62 | 2 | 31 | 31 | 0.931034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
607a00b8f20183d5172bcbdd04af0e26c556ba15 | 40 | py | Python | cv_pack/__init__.py | OrenRenner/msu_master | ae49b20fe3347ad76eee8b1946ecb1596eae96fb | [
"MIT"
] | null | null | null | cv_pack/__init__.py | OrenRenner/msu_master | ae49b20fe3347ad76eee8b1946ecb1596eae96fb | [
"MIT"
] | null | null | null | cv_pack/__init__.py | OrenRenner/msu_master | ae49b20fe3347ad76eee8b1946ecb1596eae96fb | [
"MIT"
] | null | null | null | from cv_pack.im_list import get_im_list
| 20 | 39 | 0.875 | 9 | 40 | 3.444444 | 0.777778 | 0.387097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 40 | 1 | 40 | 40 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
60b2af9de09831f509a1a5e05e9ee15b1eb3477c | 2,014 | py | Python | conrad/schema.py | hasan-haider/conrad | 3e040b73a0cbec0ecee36c397c3bdedf9e439b54 | [
"Apache-2.0"
] | 244 | 2019-10-27T22:40:17.000Z | 2022-01-11T13:04:50.000Z | conrad/schema.py | hasan-haider/conrad | 3e040b73a0cbec0ecee36c397c3bdedf9e439b54 | [
"Apache-2.0"
] | 92 | 2019-10-27T23:01:34.000Z | 2021-08-21T15:19:37.000Z | conrad/schema.py | hasan-haider/conrad | 3e040b73a0cbec0ecee36c397c3bdedf9e439b54 | [
"Apache-2.0"
] | 71 | 2019-10-28T03:05:42.000Z | 2022-02-02T13:34:32.000Z | # -*- coding: utf-8 -*-
LATEST = "2"
f1 = "events.json"
v1 = {
"name": {"type": "string", "minlength": 1, "required": True},
"url": {"type": "string", "minlength": 1, "required": True},
"city": {"type": "string", "minlength": 1, "required": True},
"state": {"type": "string", "required": True, "nullabl... | 49.121951 | 86 | 0.5571 | 224 | 2,014 | 4.933036 | 0.196429 | 0.293213 | 0.179186 | 0.219005 | 0.933937 | 0.933937 | 0.834389 | 0.834389 | 0.834389 | 0.834389 | 0 | 0.010071 | 0.161867 | 2,014 | 40 | 87 | 50.35 | 0.64455 | 0.010427 | 0 | 0.628571 | 0 | 0 | 0.4666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
60ff083def9ac67ca793cfbca2a55ddf3061bd98 | 4,487 | py | Python | app/elastic/es_request_2tags_3aggs_json.py | ayushmaskey/log_analysis | c777f48117ec8e14845aa8d2deccc7f974ca232a | [
"MIT"
] | null | null | null | app/elastic/es_request_2tags_3aggs_json.py | ayushmaskey/log_analysis | c777f48117ec8e14845aa8d2deccc7f974ca232a | [
"MIT"
] | null | null | null | app/elastic/es_request_2tags_3aggs_json.py | ayushmaskey/log_analysis | c777f48117ec8e14845aa8d2deccc7f974ca232a | [
"MIT"
] | null | null | null |
def json_internal_to_internal( start, end):
'''kibana 24hour json'''
es_request_query = {
"query": {
"bool": {
"must": [
{
"match_all": {}
},
{
"bool": {
"should": [
{
"term": {
... | 20.96729 | 58 | 0.254067 | 267 | 4,487 | 4.037453 | 0.2397 | 0.029685 | 0.09462 | 0.033395 | 0.871985 | 0.871985 | 0.823748 | 0.823748 | 0.823748 | 0.74026 | 0 | 0.076362 | 0.603076 | 4,487 | 214 | 59 | 20.96729 | 0.528916 | 0.034767 | 0 | 0.457895 | 0 | 0 | 0.192111 | 0.010673 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010526 | false | 0 | 0 | 0 | 0.021053 | 0.005263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7168c52363c19ab1576b9726f739f99a6a6afb76 | 183 | py | Python | python-project/pythonproject/foo.py | hgrif/oozie-pyspark-workflow | 5351e24800766e9836d5c022d9ad8769d9d24faf | [
"CNRI-Python"
] | 14 | 2017-08-11T12:53:16.000Z | 2021-02-16T16:11:37.000Z | python-project/pythonproject/foo.py | hgrif/oozie-pyspark-workflow | 5351e24800766e9836d5c022d9ad8769d9d24faf | [
"CNRI-Python"
] | null | null | null | python-project/pythonproject/foo.py | hgrif/oozie-pyspark-workflow | 5351e24800766e9836d5c022d9ad8769d9d24faf | [
"CNRI-Python"
] | 6 | 2017-05-23T08:00:03.000Z | 2020-07-16T15:20:44.000Z | def process(hive_context, date):
print('Processing foo')
print(hive_context, date)
def compute(hive_context, date):
print('Computing foo')
print(hive_context, date)
| 20.333333 | 32 | 0.704918 | 24 | 183 | 5.208333 | 0.416667 | 0.352 | 0.48 | 0.32 | 0.368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174863 | 183 | 8 | 33 | 22.875 | 0.827815 | 0 | 0 | 0.333333 | 0 | 0 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0.666667 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
7187dccaa28ac8720995c2dd972a222b95b79a37 | 2,090 | py | Python | src/main.py | andrea-allen/datalab-demo | 3f2c3eeb542080491af750e4e163ad77238a02af | [
"Apache-2.0"
] | null | null | null | src/main.py | andrea-allen/datalab-demo | 3f2c3eeb542080491af750e4e163ad77238a02af | [
"Apache-2.0"
] | null | null | null | src/main.py | andrea-allen/datalab-demo | 3f2c3eeb542080491af750e4e163ad77238a02af | [
"Apache-2.0"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
from src import dataskills
if __name__ == '__main__':
print('Main method for Data Lab Demo')
############ DEMO ONE #########################
# Here we have code directly in the main method
# two_plus_one = 2 + 1
# magic_math_op = [] #Define an em... | 27.866667 | 102 | 0.646411 | 332 | 2,090 | 3.707831 | 0.228916 | 0.160845 | 0.196588 | 0.084484 | 0.74411 | 0.74411 | 0.74411 | 0.74411 | 0.74411 | 0.720552 | 0 | 0.010936 | 0.21244 | 2,090 | 74 | 103 | 28.243243 | 0.736938 | 0.747847 | 0 | 0 | 0 | 0 | 0.091133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 8 |
71bee2a0c9be8742c23f28767af802000e0ab728 | 55,301 | py | Python | tests/sandbox/data/scenarios.py | uk-gov-mirror/nhsdigital.personal-demographics-service-api | e02cc57b14d9ed2b3785a8f9efb43f40d5833284 | [
"MIT"
] | null | null | null | tests/sandbox/data/scenarios.py | uk-gov-mirror/nhsdigital.personal-demographics-service-api | e02cc57b14d9ed2b3785a8f9efb43f40d5833284 | [
"MIT"
] | null | null | null | tests/sandbox/data/scenarios.py | uk-gov-mirror/nhsdigital.personal-demographics-service-api | e02cc57b14d9ed2b3785a8f9efb43f40d5833284 | [
"MIT"
] | null | null | null | retrieve = [
{"scenario":"Patient Exists","patient":"9000000009", "response":{"address":[{"extension":[{"extension":[{"url":"type","valueCoding":{"code":"PAF","system":"https://fhir.nhs.uk/R4/CodeSystem/UKCore-AddressKeyType"}},{"url":"value","valueString":"12345678"}],"url":"https://fhir.nhs.uk/R4/StructureDefinit... | 1,316.690476 | 5,859 | 0.694978 | 6,595 | 55,301 | 5.821228 | 0.04928 | 0.028392 | 0.063765 | 0.074392 | 0.964497 | 0.958298 | 0.95736 | 0.955276 | 0.951004 | 0.948347 | 0 | 0.076712 | 0.017739 | 55,301 | 41 | 5,860 | 1,348.804878 | 0.630044 | 0.008589 | 0 | 0.055556 | 0 | 0.361111 | 0.756301 | 0.025859 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
71e29344f6fb37e0de62ca30ec04a12dd913d537 | 30,476 | py | Python | sdk/python/pulumi_onelogin/_inputs.py | AaronFriel/pulumi-onelogin | 4528112d16d32fe9f233c67e0070fe6507c5d2e0 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_onelogin/_inputs.py | AaronFriel/pulumi-onelogin | 4528112d16d32fe9f233c67e0070fe6507c5d2e0 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_onelogin/_inputs.py | AaronFriel/pulumi-onelogin | 4528112d16d32fe9f233c67e0070fe6507c5d2e0 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 37.717822 | 105 | 0.674925 | 3,498 | 30,476 | 5.616924 | 0.037736 | 0.120928 | 0.082044 | 0.059955 | 0.905232 | 0.876883 | 0.851232 | 0.841103 | 0.825478 | 0.796061 | 0 | 0.000041 | 0.206523 | 30,476 | 807 | 106 | 37.76456 | 0.812464 | 0.005808 | 0 | 0.790199 | 1 | 0 | 0.120325 | 0.072393 | 0 | 0 | 0 | 0 | 0.041348 | 1 | 0.20827 | false | 0 | 0.007657 | 0.094946 | 0.32925 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
e097de517b2c361d30ffe5d0741175110f0b0b79 | 39 | py | Python | pytorch_utilities/loss/__init__.py | bradezard131/pytorch-utilities | 4fd123df3911a33a8c02bf6e3b418c77892519a7 | [
"MIT"
] | 1 | 2020-07-22T02:22:36.000Z | 2020-07-22T02:22:36.000Z | pytorch_utilities/loss/__init__.py | bradezard131/pytorch-utilities | 4fd123df3911a33a8c02bf6e3b418c77892519a7 | [
"MIT"
] | null | null | null | pytorch_utilities/loss/__init__.py | bradezard131/pytorch-utilities | 4fd123df3911a33a8c02bf6e3b418c77892519a7 | [
"MIT"
] | null | null | null | from .loss.focal_loss import focal_loss | 39 | 39 | 0.871795 | 7 | 39 | 4.571429 | 0.571429 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 39 | 1 | 39 | 39 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
e0cae08069ecd355b1271d0d445165a0cbc5cf15 | 35,290 | py | Python | Examples/FlowerDance/Scales.py | Authey/MidiUtilHelper | c03fb47fa09af15f0ba4fa15e1bb4a04b277ec0b | [
"MIT"
] | 1 | 2020-12-30T15:07:34.000Z | 2020-12-30T15:07:34.000Z | Examples/SakuraTears/Scales.py | Authey/MidiUtilHelper | c03fb47fa09af15f0ba4fa15e1bb4a04b277ec0b | [
"MIT"
] | null | null | null | Examples/SakuraTears/Scales.py | Authey/MidiUtilHelper | c03fb47fa09af15f0ba4fa15e1bb4a04b277ec0b | [
"MIT"
] | 1 | 2020-12-28T21:47:26.000Z | 2020-12-28T21:47:26.000Z | # Author: Authey
# Date: 10/06/2020
# ------------------------------------------------------------------------------ #
# # || C | C# | D | D# | E | F | F# | G | G# | A | A# | B #
# ------------------------------------------------------------------------------ #
# 0 || 0 | 1 | 2 | 3 | ... | 42.162485 | 97 | 0.425985 | 3,382 | 35,290 | 4.442933 | 0.09107 | 0.138427 | 0.274724 | 0.153334 | 0.719353 | 0.719353 | 0.719353 | 0.719353 | 0.719353 | 0.719353 | 0 | 0.035859 | 0.216889 | 35,290 | 836 | 98 | 42.212919 | 0.507852 | 0.31414 | 0 | 0.483992 | 0 | 0 | 0.000714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.246704 | false | 0 | 0.001883 | 0.001883 | 0.252354 | 0.001883 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e0ee7ebc042f63f795bf0abc9be69c0f33b9178c | 1,429 | py | Python | tests/integration/test_cli_compile.py | jorisvandenbossche/sphinx-theme-builder | 6eb7129bded4e235ee0f4496477dda33aa9121e9 | [
"MIT"
] | 1 | 2021-11-24T08:52:00.000Z | 2021-11-24T08:52:00.000Z | tests/integration/test_cli_compile.py | jorisvandenbossche/sphinx-theme-builder | 6eb7129bded4e235ee0f4496477dda33aa9121e9 | [
"MIT"
] | null | null | null | tests/integration/test_cli_compile.py | jorisvandenbossche/sphinx-theme-builder | 6eb7129bded4e235ee0f4496477dda33aa9121e9 | [
"MIT"
] | null | null | null | from unittest import mock
from click import Group
from click.testing import CliRunner
class TestCompileCommand:
def test_calls_generate_assets(self, runner: CliRunner, cli: Group) -> None:
with mock.patch(
"sphinx_theme_builder._internal.cli.compile.generate_assets"
) as mocked_genera... | 33.232558 | 80 | 0.63331 | 152 | 1,429 | 5.664474 | 0.289474 | 0.130081 | 0.069686 | 0.092915 | 0.852497 | 0.792102 | 0.792102 | 0.792102 | 0.792102 | 0.792102 | 0 | 0.001938 | 0.277817 | 1,429 | 42 | 81 | 34.02381 | 0.832364 | 0 | 0 | 0.470588 | 1 | 0 | 0.169349 | 0.151155 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.058824 | false | 0 | 0.088235 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1cac222724a8ca6d15230ad4b91e567b49ff4e73 | 3,566 | py | Python | tests/snapshots/snap_test_management_command_partition.py | MontyD/django-postgres-extra | 9a79983c5e27510bf6dd60ef4a1441e7e2e4320d | [
"MIT"
] | null | null | null | tests/snapshots/snap_test_management_command_partition.py | MontyD/django-postgres-extra | 9a79983c5e27510bf6dd60ef4a1441e7e2e4320d | [
"MIT"
] | null | null | null | tests/snapshots/snap_test_management_command_partition.py | MontyD/django-postgres-extra | 9a79983c5e27510bf6dd60ef4a1441e7e2e4320d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import GenericRepr, Snapshot
snapshots = Snapshot()
snapshots['test_management_command_partition_auto_confirm[--yes] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecr... | 101.885714 | 273 | 0.747336 | 496 | 3,566 | 5.231855 | 0.104839 | 0.120231 | 0.160308 | 0.180347 | 0.948748 | 0.948748 | 0.948748 | 0.925241 | 0.925241 | 0.905588 | 0 | 0.01306 | 0.098149 | 3,566 | 34 | 274 | 104.882353 | 0.793843 | 0.017386 | 0 | 0 | 0 | 0.8125 | 0.844616 | 0.280206 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
e82eb22bd663b83750f9b6beda490a4e451e49fa | 3,008 | py | Python | NS3-master/src/dsr/bindings/callbacks_list.py | legendPerceptor/blockchain | 615ba331ae5ec53c683dfe6a16992a5181be0fea | [
"Apache-2.0"
] | 1 | 2021-09-20T07:05:25.000Z | 2021-09-20T07:05:25.000Z | NS3-master/src/dsr/bindings/callbacks_list.py | legendPerceptor/blockchain | 615ba331ae5ec53c683dfe6a16992a5181be0fea | [
"Apache-2.0"
] | null | null | null | NS3-master/src/dsr/bindings/callbacks_list.py | legendPerceptor/blockchain | 615ba331ae5ec53c683dfe6a16992a5181be0fea | [
"Apache-2.0"
] | 2 | 2021-09-02T08:25:16.000Z | 2022-01-03T08:48:38.000Z | callback_classes = [
['ns3::ObjectBase *', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
['void', 'ns3::Ptr<ns3::Socket>', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empt... | 143.238095 | 210 | 0.58012 | 398 | 3,008 | 4.38191 | 0.077889 | 0.545872 | 0.637041 | 0.926606 | 0.865826 | 0.820528 | 0.804472 | 0.804472 | 0.804472 | 0.804472 | 0 | 0.06946 | 0.095412 | 3,008 | 20 | 211 | 150.4 | 0.571481 | 0 | 0 | 0 | 0 | 0 | 0.717088 | 0.101729 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
08fc6d9441bc81f3079b9ecc97aa5d7a5ee1aed5 | 100 | py | Python | src/server/models/__init__.py | daniel3303/sirs-project | 38a36ecf2373775c3a866f185dacb7597ad1e3cc | [
"Apache-2.0"
] | null | null | null | src/server/models/__init__.py | daniel3303/sirs-project | 38a36ecf2373775c3a866f185dacb7597ad1e3cc | [
"Apache-2.0"
] | null | null | null | src/server/models/__init__.py | daniel3303/sirs-project | 38a36ecf2373775c3a866f185dacb7597ad1e3cc | [
"Apache-2.0"
] | null | null | null | from server.models.User import *
from server.models.File import *
from server.models.Role import *
| 25 | 33 | 0.78 | 15 | 100 | 5.2 | 0.466667 | 0.384615 | 0.615385 | 0.564103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13 | 100 | 3 | 34 | 33.333333 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
08fcd105ac2911e02ad4062147f1cae2f7a22486 | 15,654 | py | Python | tests/test_serializers.py | scieloorg/oai-pmh | 9d3044921d2d5cafb18e54f04070e8783f49c06d | [
"BSD-2-Clause"
] | 2 | 2019-03-16T04:40:29.000Z | 2022-03-10T14:50:21.000Z | tests/test_serializers.py | DalavanCloud/oai-pmh | 9d3044921d2d5cafb18e54f04070e8783f49c06d | [
"BSD-2-Clause"
] | 27 | 2017-08-23T17:11:57.000Z | 2021-06-01T21:57:31.000Z | tests/test_serializers.py | DalavanCloud/oai-pmh | 9d3044921d2d5cafb18e54f04070e8783f49c06d | [
"BSD-2-Clause"
] | 2 | 2017-06-12T16:18:35.000Z | 2019-03-16T04:40:12.000Z | import unittest
from unittest.mock import patch
from datetime import datetime
from oaipmh import serializers, validators, formatters
class SchemaValidatorMixin:
def assertXMLIsValid(self, xml_bytes):
validator = validators.OAIValidator(xml_bytes)
is_valid, errors = validator.validate()
if... | 61.873518 | 1,560 | 0.596716 | 1,736 | 15,654 | 5.325461 | 0.117512 | 0.007572 | 0.057545 | 0.066631 | 0.872039 | 0.84835 | 0.843375 | 0.830827 | 0.80941 | 0.80941 | 0 | 0.043308 | 0.231506 | 15,654 | 252 | 1,561 | 62.119048 | 0.725187 | 0 | 0 | 0.71875 | 0 | 0.026786 | 0.533444 | 0.06478 | 0 | 0 | 0 | 0 | 0.058036 | 1 | 0.084821 | false | 0 | 0.017857 | 0 | 0.133929 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
1c07531d91e8c33e79c7bfb62b5613820854b6fd | 1,407 | py | Python | biobb_analysis/test/unitests/test_ambertools/test_cpptraj_rms.py | bioexcel/biobb_analysis | 794683daf65eb13ddaaaf6cf3c19da6d1322a949 | [
"Apache-2.0"
] | 3 | 2019-05-18T14:52:30.000Z | 2020-10-18T06:20:00.000Z | biobb_analysis/test/unitests/test_ambertools/test_cpptraj_rms.py | bioexcel/biobb_analysis | 794683daf65eb13ddaaaf6cf3c19da6d1322a949 | [
"Apache-2.0"
] | 7 | 2019-03-04T15:04:28.000Z | 2021-06-17T10:57:25.000Z | biobb_analysis/test/unitests/test_ambertools/test_cpptraj_rms.py | bioexcel/biobb_analysis | 794683daf65eb13ddaaaf6cf3c19da6d1322a949 | [
"Apache-2.0"
] | null | null | null | from biobb_common.tools import test_fixtures as fx
from biobb_analysis.ambertools.cpptraj_rms import cpptraj_rms
class TestCpptrajRmsFirst():
def setUp(self):
fx.test_setup(self,'cpptraj_rms_first')
def tearDown(self):
fx.test_teardown(self)
pass
def test_rms_first(self):
... | 32.72093 | 97 | 0.7086 | 183 | 1,407 | 5.174863 | 0.185792 | 0.114044 | 0.161563 | 0.139388 | 0.774023 | 0.774023 | 0.774023 | 0.774023 | 0.774023 | 0.656811 | 0 | 0 | 0.180526 | 1,407 | 42 | 98 | 33.5 | 0.821336 | 0 | 0 | 0.65625 | 0 | 0 | 0.172708 | 0.066098 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.28125 | false | 0.09375 | 0.0625 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
1c8152edbd7f89bf44d67576929f62f77c41a708 | 43,435 | py | Python | pynetdicom/tests/test_dimse_c.py | RandaNP/pynetdicom | 18bd3aa92a6a2b23b2ba6e62e1c4c2b324360d7c | [
"MIT"
] | null | null | null | pynetdicom/tests/test_dimse_c.py | RandaNP/pynetdicom | 18bd3aa92a6a2b23b2ba6e62e1c4c2b324360d7c | [
"MIT"
] | null | null | null | pynetdicom/tests/test_dimse_c.py | RandaNP/pynetdicom | 18bd3aa92a6a2b23b2ba6e62e1c4c2b324360d7c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Test DIMSE-C operations."""
from io import BytesIO
import logging
import pytest
from pydicom.dataset import Dataset
from pydicom.uid import UID
from pynetdicom import _config
from pynetdicom.dimse_messages import (
C_STORE_RQ, C_STORE_RSP,C_MOVE_RQ, C_MOVE_RSP, C_ECHO_RQ, C_ECHO_RSP,
... | 34.554495 | 80 | 0.660228 | 4,373 | 43,435 | 6.383261 | 0.045049 | 0.049438 | 0.0791 | 0.068066 | 0.916995 | 0.891309 | 0.849287 | 0.807946 | 0.796661 | 0.790213 | 0 | 0.032836 | 0.258179 | 43,435 | 1,256 | 81 | 34.582006 | 0.833494 | 0.084471 | 0 | 0.857981 | 0 | 0 | 0.033203 | 0.005885 | 0 | 0 | 0.007305 | 0 | 0.178404 | 1 | 0.064554 | false | 0 | 0.012911 | 0 | 0.084507 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1c8178503afda1727e4b61f1d76f36f3fe82fd81 | 5,445 | py | Python | test/test_storage.py | lgray/pytorch_sparse | 51a81777257b30c0afb2e06a1e7282af646bf876 | [
"MIT"
] | 1 | 2020-06-29T19:15:59.000Z | 2020-06-29T19:15:59.000Z | test/test_storage.py | lgray/pytorch_sparse | 51a81777257b30c0afb2e06a1e7282af646bf876 | [
"MIT"
] | null | null | null | test/test_storage.py | lgray/pytorch_sparse | 51a81777257b30c0afb2e06a1e7282af646bf876 | [
"MIT"
] | null | null | null | from itertools import product
import pytest
import torch
from torch_sparse.storage import SparseStorage
from .utils import dtypes, devices, tensor
@pytest.mark.parametrize('dtype,device', product(dtypes, devices))
def test_storage(dtype, device):
row, col = tensor([[0, 0, 1, 1], [0, 1, 0, 1]], torch.long, devic... | 37.294521 | 79 | 0.629017 | 758 | 5,445 | 4.408971 | 0.085752 | 0.229503 | 0.061041 | 0.062537 | 0.814782 | 0.782166 | 0.745362 | 0.730401 | 0.730401 | 0.684321 | 0 | 0.0473 | 0.20404 | 5,445 | 145 | 80 | 37.551724 | 0.723812 | 0 | 0 | 0.539823 | 0 | 0 | 0.013223 | 0 | 0 | 0 | 0 | 0 | 0.566372 | 1 | 0.044248 | false | 0 | 0.044248 | 0 | 0.088496 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
1c8e32aa3f195dd0c76de765eb06574c07e98a2b | 352 | py | Python | g13gui/ui/__init__.py | jtgans/g13gui | aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc | [
"MIT"
] | 3 | 2021-10-16T01:28:24.000Z | 2021-12-07T21:49:54.000Z | g13gui/ui/__init__.py | jtgans/g13gui | aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc | [
"MIT"
] | 12 | 2021-05-09T16:57:18.000Z | 2021-06-16T19:20:57.000Z | g13gui/ui/__init__.py | jtgans/g13gui | aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc | [
"MIT"
] | null | null | null | from g13gui.ui.profilecombobox import ProfileComboBox
from g13gui.ui.g13button import G13Button
from g13gui.ui.g13buttonpopover import G13ButtonPopover
from g13gui.ui.mainwindow import MainWindow
from g13gui.ui.profilepopover import ProfilePopover
from g13gui.ui.profilepopover import ProfilePopoverMode
from g13gui.ui.a... | 44 | 55 | 0.880682 | 42 | 352 | 7.380952 | 0.261905 | 0.225806 | 0.270968 | 0.167742 | 0.206452 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067901 | 0.079545 | 352 | 7 | 56 | 50.285714 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
98da15b704ed3abd33843fbacfcb2e2940fe99d3 | 282,682 | py | Python | oops/gui_functions.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | null | null | null | oops/gui_functions.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | 1 | 2021-02-24T21:50:18.000Z | 2021-02-24T21:50:18.000Z | oops/gui_functions.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | null | null | null | # Autogenerated file. ANY CHANGES WILL BE OVERWRITTEN
from to_python.core.types import FunctionType, \
FunctionArgument, \
FunctionArgumentValues, \
FunctionReturnTypes, \
FunctionSignature, \
FunctionDoc, \
FunctionOOP, \
FunctionOOPField, \
CompoundOOPData, \
FunctionData, \
Co... | 37.903191 | 631 | 0.345208 | 14,948 | 282,682 | 6.410824 | 0.058336 | 0.064396 | 0.056037 | 0.054472 | 0.822142 | 0.800739 | 0.782206 | 0.756848 | 0.737793 | 0.728589 | 0 | 0.000867 | 0.587837 | 282,682 | 7,457 | 632 | 37.908274 | 0.821622 | 0.00018 | 0 | 0.783396 | 1 | 0.007661 | 0.157786 | 0.018569 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.002229 | 0.000279 | 0 | 0.000279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
c73caaa61d8831ea391bc175e6e21980a9da2c3e | 239,089 | py | Python | sdk/python/pulumi_azure_native/recoveryservices/v20190615/_inputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/recoveryservices/v20190615/_inputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/recoveryservices/v20190615/_inputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 46.344059 | 175 | 0.687004 | 28,843 | 239,089 | 5.440558 | 0.012031 | 0.091198 | 0.107882 | 0.068136 | 0.972203 | 0.961178 | 0.954857 | 0.939957 | 0.932788 | 0.923019 | 0 | 0.000005 | 0.211641 | 239,089 | 5,158 | 176 | 46.353044 | 0.832525 | 0.216601 | 0 | 0.915773 | 1 | 0 | 0.160598 | 0.072188 | 0 | 0 | 0 | 0 | 0 | 1 | 0.201577 | false | 0 | 0.001893 | 0 | 0.307571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.