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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8a82e8acd38b4f56fc416ea690cd3394e725bc03 | 49 | py | Python | python_crash_course/functions/import.py | heniu1985/Learning | e865d59df9c4b1b0d7fc0158635c2a035f20bd4f | [
"MIT"
] | null | null | null | python_crash_course/functions/import.py | heniu1985/Learning | e865d59df9c4b1b0d7fc0158635c2a035f20bd4f | [
"MIT"
] | null | null | null | python_crash_course/functions/import.py | heniu1985/Learning | e865d59df9c4b1b0d7fc0158635c2a035f20bd4f | [
"MIT"
] | null | null | null | from sandwich import *
sandwich("ser", "szynka") | 16.333333 | 25 | 0.714286 | 6 | 49 | 5.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 49 | 3 | 25 | 16.333333 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
8a89f0e5f02c085537c3619ab9f7a5d7e477bd0a | 191 | py | Python | testIronPython.py | AndreasMuehlmann/Drone-Simulation | 20fa39d16b0ac4a0dcb6102f030c313a03591be5 | [
"MIT"
] | null | null | null | testIronPython.py | AndreasMuehlmann/Drone-Simulation | 20fa39d16b0ac4a0dcb6102f030c313a03591be5 | [
"MIT"
] | null | null | null | testIronPython.py | AndreasMuehlmann/Drone-Simulation | 20fa39d16b0ac4a0dcb6102f030c313a03591be5 | [
"MIT"
] | null | null | null | import imp
import os
class Test():
def __init__(self, value):
self.value = value
def test(self):
return 187 + self.value
print(os.path.abspath(__file__)) | 14.692308 | 36 | 0.602094 | 25 | 191 | 4.28 | 0.6 | 0.252336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.293194 | 191 | 13 | 36 | 14.692308 | 0.77037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0.125 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
8a8accc8913cf50ea33ea40d2b03b335547723ea | 129 | py | Python | ros_ws/src/baxter_examples/scripts/send_urdf_fragment.py | mesneym/Baxter-Arm-PP | fdbf86309bc64c31af105daa026b2f8519710129 | [
"MIT"
] | null | null | null | ros_ws/src/baxter_examples/scripts/send_urdf_fragment.py | mesneym/Baxter-Arm-PP | fdbf86309bc64c31af105daa026b2f8519710129 | [
"MIT"
] | null | null | null | ros_ws/src/baxter_examples/scripts/send_urdf_fragment.py | mesneym/Baxter-Arm-PP | fdbf86309bc64c31af105daa026b2f8519710129 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:d96b3a18312eefe6f36c9b703a3a4c596fd7f454e6ffac8da72ddd23224f1113
size 4348
| 32.25 | 75 | 0.883721 | 13 | 129 | 8.769231 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.365854 | 0.046512 | 129 | 3 | 76 | 43 | 0.560976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
8a934fdb77f5f684075fa4f25dc288561eda263e | 26 | py | Python | pymagnitude/third_party_mock/parsimonious/exceptions/__init__.py | tpeng/magnitude | aec98628b5547773ca8c4114ec6d1ad51e21b230 | [
"MIT"
] | 1,520 | 2018-03-01T13:37:49.000Z | 2022-03-25T11:40:20.000Z | pymagnitude/third_party_mock/parsimonious/exceptions/__init__.py | tpeng/magnitude | aec98628b5547773ca8c4114ec6d1ad51e21b230 | [
"MIT"
] | 87 | 2018-03-03T15:12:50.000Z | 2022-02-21T15:24:12.000Z | pymagnitude/third_party_mock/parsimonious/exceptions/__init__.py | tpeng/magnitude | aec98628b5547773ca8c4114ec6d1ad51e21b230 | [
"MIT"
] | 121 | 2018-03-03T08:40:53.000Z | 2022-03-16T05:19:38.000Z | class ParseError:
pass | 13 | 17 | 0.730769 | 3 | 26 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 26 | 2 | 18 | 13 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
8aa0817fc50de4c5b73e45ae4d4bd7219ab783e6 | 1,201 | py | Python | mll/tests/test_receiver_fc.py | asappresearch/compositional-inductive-bias | 2c67713306ec6591f397ca252f915c3edc5a794f | [
"MIT"
] | 2 | 2021-07-09T16:32:00.000Z | 2022-03-21T17:32:39.000Z | mll/tests/test_receiver_fc.py | asappresearch/compositional-inductive-bias | 2c67713306ec6591f397ca252f915c3edc5a794f | [
"MIT"
] | null | null | null | mll/tests/test_receiver_fc.py | asappresearch/compositional-inductive-bias | 2c67713306ec6591f397ca252f915c3edc5a794f | [
"MIT"
] | 1 | 2021-07-09T16:32:02.000Z | 2021-07-09T16:32:02.000Z | import torch
import numpy as np
from mll.recv_models import fc1l_model, fc2l_model
def test_fc1l():
N = 5
utt_len = 20
vocab_size = 4
embedding_size = 11
num_meaning_types = 5
meanings_per_type = 10
inputs = torch.from_numpy(np.random.choice(vocab_size + 1, (utt_len, N), replace=True))
... | 31.605263 | 115 | 0.712739 | 181 | 1,201 | 4.381215 | 0.248619 | 0.06053 | 0.151324 | 0.116015 | 0.759143 | 0.759143 | 0.759143 | 0.759143 | 0.759143 | 0.759143 | 0 | 0.034908 | 0.189009 | 1,201 | 37 | 116 | 32.459459 | 0.779261 | 0 | 0 | 0.666667 | 0 | 0 | 0.010824 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.166667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
8aa2224eaa6dd04ec21318bd1f91e2b891627006 | 195 | py | Python | Informatik1/Finals Prep/HS18/Task_3/reverse_list.py | Queentaker/uzh | 35cccaf910b95d15db21be80c8567eb427202591 | [
"MIT"
] | 8 | 2021-11-21T10:02:08.000Z | 2022-03-15T21:02:02.000Z | Informatik1/Finals Prep/HS18/Task_3/reverse_list.py | Queentaker/uzh | 35cccaf910b95d15db21be80c8567eb427202591 | [
"MIT"
] | null | null | null | Informatik1/Finals Prep/HS18/Task_3/reverse_list.py | Queentaker/uzh | 35cccaf910b95d15db21be80c8567eb427202591 | [
"MIT"
] | 3 | 2021-11-19T18:52:56.000Z | 2022-02-27T15:45:59.000Z | def reverse(list):
if len(list) < 2:
return list
return [list[-1]] + reverse(list[:-1])
assert reverse([]) == []
assert reverse([2]) == [2]
assert reverse([2, 6, 5]) == [5, 6, 2] | 24.375 | 42 | 0.533333 | 29 | 195 | 3.586207 | 0.37931 | 0.375 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072848 | 0.225641 | 195 | 8 | 43 | 24.375 | 0.615894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
8aa6f63cbcb3ae80120ea8ca4fc299048965cd37 | 57 | py | Python | autofront/tests/simple_script_live.py | JimmyLamothe/autofront | d179e54411f5d53046a5fa52b4430e09b01ebaca | [
"BSD-3-Clause"
] | 1 | 2020-11-16T22:18:03.000Z | 2020-11-16T22:18:03.000Z | autofront/tests/simple_script_live.py | JimmyLamothe/autofront | d179e54411f5d53046a5fa52b4430e09b01ebaca | [
"BSD-3-Clause"
] | null | null | null | autofront/tests/simple_script_live.py | JimmyLamothe/autofront | d179e54411f5d53046a5fa52b4430e09b01ebaca | [
"BSD-3-Clause"
] | null | null | null | import sys
print('Runtime arguments: ' + str(sys.argv))
| 14.25 | 44 | 0.701754 | 8 | 57 | 5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 57 | 3 | 45 | 19 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 5 |
76fd5f139696da3ba5c0aaf6243aef5b5f911874 | 4,041 | py | Python | tests/training/test_training.py | e-sha/dvs_of_training_framework | 7cb529e65d7edb8a147ebeb6f9ad1ffc0b843c81 | [
"MIT"
] | 1 | 2022-03-31T05:19:36.000Z | 2022-03-31T05:19:36.000Z | tests/training/test_training.py | e-sha/dvs_of_training_framework | 7cb529e65d7edb8a147ebeb6f9ad1ffc0b843c81 | [
"MIT"
] | 1 | 2022-01-12T13:45:38.000Z | 2022-01-12T13:45:38.000Z | tests/training/test_training.py | e-sha/dvs_of_training_framework | 7cb529e65d7edb8a147ebeb6f9ad1ffc0b843c81 | [
"MIT"
] | 1 | 2020-11-24T10:00:50.000Z | 2020-11-24T10:00:50.000Z | from tests.utils import test_path
import torch
import tempfile
import time
from types import SimpleNamespace
from utils.dataset import DatasetImpl, collate_wrapper
from utils.loss import Losses
from utils.timer import FakeTimer
from utils.training import train, validate
from train_flownet import init_model, construct... | 43.451613 | 73 | 0.508537 | 392 | 4,041 | 5.061224 | 0.267857 | 0.021169 | 0.024194 | 0.023185 | 0.760081 | 0.740927 | 0.740927 | 0.740927 | 0.698589 | 0.698589 | 0 | 0.023187 | 0.413017 | 4,041 | 92 | 74 | 43.923913 | 0.813238 | 0 | 0 | 0.790698 | 0 | 0 | 0.012373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0.011628 | 0.116279 | 0 | 0.139535 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
0a10890332d5b039cfbecf84d429a339466146d6 | 98 | py | Python | autumn/models/sm_sir/mixing_matrix/mixing_adjusters/__init__.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | 14 | 2020-03-11T06:15:30.000Z | 2022-03-09T03:38:35.000Z | autumn/models/sm_sir/mixing_matrix/mixing_adjusters/__init__.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | 96 | 2020-01-29T05:10:29.000Z | 2022-03-31T01:48:46.000Z | autumn/models/sm_sir/mixing_matrix/mixing_adjusters/__init__.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | 10 | 2020-04-24T00:38:00.000Z | 2021-08-19T16:19:03.000Z | from .age_adjuster import AgeMixingAdjuster
from .location_adjuster import LocationMixingAdjuster
| 32.666667 | 53 | 0.897959 | 10 | 98 | 8.6 | 0.7 | 0.325581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 98 | 2 | 54 | 49 | 0.955556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
0a2a46a64a2aeb00ebf7641f8c03a0c5dc226357 | 377 | py | Python | venv/Lib/site-packages/gitdb/db/__init__.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 128 | 2015-01-19T02:03:00.000Z | 2022-03-30T10:54:21.000Z | venv/Lib/site-packages/gitdb/db/__init__.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 61 | 2015-01-08T14:32:33.000Z | 2022-03-15T23:30:08.000Z | venv/Lib/site-packages/gitdb/db/__init__.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 53 | 2015-01-19T12:07:59.000Z | 2022-03-15T16:30:48.000Z | # Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
#
# This module is part of GitDB and is released under
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
from gitdb.db.base import *
from gitdb.db.loose import *
from gitdb.db.mem import *
from gitdb.db.pack import... | 31.416667 | 80 | 0.755968 | 63 | 377 | 4.52381 | 0.603175 | 0.189474 | 0.231579 | 0.298246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0.140584 | 377 | 11 | 81 | 34.272727 | 0.854938 | 0.533157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
0a320421e90b6dfa7860fe1cb1efc1f850d8c28a | 56 | py | Python | game_theory/__init__.py | badbayesian/game_theory | 375622020109e0f9a691a1c009e0122b9217f1da | [
"MIT"
] | null | null | null | game_theory/__init__.py | badbayesian/game_theory | 375622020109e0f9a691a1c009e0122b9217f1da | [
"MIT"
] | null | null | null | game_theory/__init__.py | badbayesian/game_theory | 375622020109e0f9a691a1c009e0122b9217f1da | [
"MIT"
] | null | null | null | from game_theory import model, minimax, example_payoffs
| 28 | 55 | 0.857143 | 8 | 56 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 56 | 1 | 56 | 56 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
0a385d1aa809b5752e21ac61aa4aae665c48d699 | 79 | py | Python | software/behavioural_task_example/example_task/LED_conditioning/boot.py | amchagas/BeeHive | 85820893a4e90c57cca5b3d13a6e58d0444fb9ba | [
"MIT"
] | null | null | null | software/behavioural_task_example/example_task/LED_conditioning/boot.py | amchagas/BeeHive | 85820893a4e90c57cca5b3d13a6e58d0444fb9ba | [
"MIT"
] | null | null | null | software/behavioural_task_example/example_task/LED_conditioning/boot.py | amchagas/BeeHive | 85820893a4e90c57cca5b3d13a6e58d0444fb9ba | [
"MIT"
] | null | null | null | # This is script that run when device boot up or wake from sleep.
import main
| 19.75 | 65 | 0.759494 | 15 | 79 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21519 | 79 | 3 | 66 | 26.333333 | 0.967742 | 0.797468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
0a458d41ef41c995fa41bef35241f0c299482232 | 4,918 | py | Python | sdk/python/pulumi_azure_native/documentdb/__init__.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/documentdb/__init__.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/documentdb/__init__.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! ***
from .. import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .cassandra_cluster import *
from .cassan... | 54.043956 | 96 | 0.842619 | 613 | 4,918 | 6.352365 | 0.164763 | 0.110426 | 0.148433 | 0.200822 | 0.779404 | 0.713919 | 0.334874 | 0.06831 | 0 | 0 | 0 | 0.122969 | 0.098821 | 4,918 | 90 | 97 | 54.644444 | 0.755641 | 0.04697 | 0 | 0 | 1 | 0 | 0.151282 | 0.151282 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.97561 | 0 | 0.97561 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
6a58162987483398d37b9317cec7a9e16c6e71ae | 4,615 | py | Python | tensorflow_text/python/ops/__init__.py | nluehr/text | 1fd2039412faf537473e31f25df7ebe972475018 | [
"Apache-2.0"
] | null | null | null | tensorflow_text/python/ops/__init__.py | nluehr/text | 1fd2039412faf537473e31f25df7ebe972475018 | [
"Apache-2.0"
] | null | null | null | tensorflow_text/python/ops/__init__.py | nluehr/text | 1fd2039412faf537473e31f25df7ebe972475018 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2022 TF.Text 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 ag... | 63.219178 | 113 | 0.882557 | 650 | 4,615 | 5.995385 | 0.286154 | 0.183218 | 0.230947 | 0.301771 | 0.518861 | 0.442648 | 0.395689 | 0.285861 | 0.187067 | 0.08622 | 0 | 0.003031 | 0.070639 | 4,615 | 72 | 114 | 64.097222 | 0.905572 | 0.147562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.018519 | 0.962963 | 0 | 0.962963 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
6a72c036783ee94be2df1beef0f5ca942088ab7f | 37 | py | Python | CPMel(3)/script/__init__.py | 2921251087/CPMel-1 | 09afe43052f646e9e9bbd5c876614db211b1c42b | [
"Apache-2.0"
] | 1 | 2021-08-01T12:49:50.000Z | 2021-08-01T12:49:50.000Z | CPMel(6)/script/__init__.py | 2921251087/CPMel-1 | 09afe43052f646e9e9bbd5c876614db211b1c42b | [
"Apache-2.0"
] | null | null | null | CPMel(6)/script/__init__.py | 2921251087/CPMel-1 | 09afe43052f646e9e9bbd5c876614db211b1c42b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#-*-coding:gbk -*- | 18.5 | 18 | 0.567568 | 5 | 37 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 37 | 2 | 19 | 18.5 | 0.617647 | 0.891892 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
6a9724a6172024fa14933aeee6d49d53068cdbe0 | 139 | py | Python | notification/admin.py | Suprita-25/rengine | d6aabb49f27f7ad6039477c16a96213b0d80f81f | [
"MIT"
] | null | null | null | notification/admin.py | Suprita-25/rengine | d6aabb49f27f7ad6039477c16a96213b0d80f81f | [
"MIT"
] | null | null | null | notification/admin.py | Suprita-25/rengine | d6aabb49f27f7ad6039477c16a96213b0d80f81f | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import NotificationHooks
# Register your models here.
admin.site.register(NotificationHooks)
| 27.8 | 38 | 0.841727 | 17 | 139 | 6.882353 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100719 | 139 | 4 | 39 | 34.75 | 0.936 | 0.18705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 5 |
6aaa6f372e33b502238967dedc4d70454668092c | 78 | py | Python | 07.py | r9y9/nlp100 | 391ca6c4fb8afc074ed825404d4ad4efc4467f05 | [
"MIT"
] | 18 | 2017-08-20T09:15:07.000Z | 2022-03-11T07:25:14.000Z | 07.py | r9y9/nlp100 | 391ca6c4fb8afc074ed825404d4ad4efc4467f05 | [
"MIT"
] | null | null | null | 07.py | r9y9/nlp100 | 391ca6c4fb8afc074ed825404d4ad4efc4467f05 | [
"MIT"
] | 8 | 2018-07-29T09:35:35.000Z | 2019-12-05T08:03:41.000Z | def f(x, y, z): return "{}時の{}は{}".format(x, y, z)
print(f(12, "気温", 22.4))
| 15.6 | 50 | 0.487179 | 18 | 78 | 2.111111 | 0.777778 | 0.105263 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.166667 | 78 | 4 | 51 | 19.5 | 0.507692 | 0 | 0 | 0 | 0 | 0 | 0.141026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 5 |
6aca5ce675c64e868ede168f0c51923f09fcead2 | 716 | py | Python | recommender/__init__.py | yugandharaloori/Recommender-Systems-Comparison | a09ec349bc771167e450ec6b8213988cc148288d | [
"MIT"
] | null | null | null | recommender/__init__.py | yugandharaloori/Recommender-Systems-Comparison | a09ec349bc771167e450ec6b8213988cc148288d | [
"MIT"
] | null | null | null | recommender/__init__.py | yugandharaloori/Recommender-Systems-Comparison | a09ec349bc771167e450ec6b8213988cc148288d | [
"MIT"
] | null | null | null | # import standard baseline models
from recommender.algorithms.models import (RecommenderModel,
SVDModel,
ScaledSVD,
CooccurrenceModel,
RandomModel,
... | 42.117647 | 67 | 0.634078 | 60 | 716 | 7.433333 | 0.4 | 0.201794 | 0.206278 | 0.181614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.335196 | 716 | 16 | 68 | 44.75 | 0.936975 | 0.113128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.545455 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
6acd9da84dcea30b23f8937f73087f5ed7194ee9 | 22 | py | Python | instance/__init__.py | timothyakinyelu/whack-a-bug-api | f7cc7245b268bbbdf2a3d6f1314ae3cecc8b9da8 | [
"MIT"
] | null | null | null | instance/__init__.py | timothyakinyelu/whack-a-bug-api | f7cc7245b268bbbdf2a3d6f1314ae3cecc8b9da8 | [
"MIT"
] | null | null | null | instance/__init__.py | timothyakinyelu/whack-a-bug-api | f7cc7245b268bbbdf2a3d6f1314ae3cecc8b9da8 | [
"MIT"
] | null | null | null | # instance/__init__.py | 22 | 22 | 0.818182 | 3 | 22 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 22 | 1 | 22 | 22 | 0.666667 | 0.909091 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
6ae099f03a1b74eff8f190af78ab7ab335f376f4 | 22 | py | Python | examples/divmod/ex2.py | mcorne/python-by-example | 15339c0909c84b51075587a6a66391100971c033 | [
"MIT"
] | null | null | null | examples/divmod/ex2.py | mcorne/python-by-example | 15339c0909c84b51075587a6a66391100971c033 | [
"MIT"
] | null | null | null | examples/divmod/ex2.py | mcorne/python-by-example | 15339c0909c84b51075587a6a66391100971c033 | [
"MIT"
] | null | null | null | print(divmod(5.5, 2))
| 11 | 21 | 0.636364 | 5 | 22 | 2.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0.090909 | 22 | 1 | 22 | 22 | 0.55 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
0aa7a5ef47d9ccf834544ae3e3f4616cbfd61976 | 125 | py | Python | cykooz/resizer/__init__.py | Cykooz/cykooz.resizer | 856d2e2299abac4c2dcef3828c89fbaa226274d7 | [
"Apache-2.0",
"MIT"
] | 2 | 2021-10-08T18:54:36.000Z | 2021-10-09T15:59:09.000Z | cykooz/resizer/__init__.py | Cykooz/cykooz.resizer | 856d2e2299abac4c2dcef3828c89fbaa226274d7 | [
"Apache-2.0",
"MIT"
] | null | null | null | cykooz/resizer/__init__.py | Cykooz/cykooz.resizer | 856d2e2299abac4c2dcef3828c89fbaa226274d7 | [
"Apache-2.0",
"MIT"
] | null | null | null | """
:Authors: cykooz
:Date: 20.03.2021
"""
from .alpha import AlphaMulDiv
from .resize import Resizer
from .structs import *
| 15.625 | 30 | 0.728 | 17 | 125 | 5.352941 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074766 | 0.144 | 125 | 7 | 31 | 17.857143 | 0.775701 | 0.272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
0ac1976ad065f1c02009818982086f4a7e5620e4 | 12,851 | py | Python | masakari/tests/unit/objects/test_segments.py | openstack/masakari | 7c6380d63e4e39db30176306303323e16b38fa3d | [
"Apache-2.0"
] | 70 | 2016-07-22T21:58:00.000Z | 2022-01-04T06:05:32.000Z | masakari/tests/unit/objects/test_segments.py | openstack/masakari | 7c6380d63e4e39db30176306303323e16b38fa3d | [
"Apache-2.0"
] | 1 | 2017-08-10T05:14:00.000Z | 2017-08-10T05:14:00.000Z | masakari/tests/unit/objects/test_segments.py | openstack/masakari | 7c6380d63e4e39db30176306303323e16b38fa3d | [
"Apache-2.0"
] | 33 | 2016-07-05T02:05:25.000Z | 2021-12-20T07:40:43.000Z | # Copyright 2016 NTT DATA
# 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 b... | 43.26936 | 79 | 0.683215 | 1,474 | 12,851 | 5.610583 | 0.121438 | 0.047158 | 0.045707 | 0.053325 | 0.789117 | 0.752963 | 0.723821 | 0.709311 | 0.700846 | 0.669891 | 0 | 0.00568 | 0.232822 | 12,851 | 296 | 80 | 43.415541 | 0.833147 | 0.046456 | 0 | 0.608696 | 0 | 0 | 0.101994 | 0.05492 | 0 | 0 | 0 | 0 | 0.108696 | 1 | 0.065217 | false | 0 | 0.03913 | 0 | 0.113043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
0ad0fcc7ec02767c2c921997026880b302de460a | 74 | py | Python | stripe/api_resources/checkout/__init__.py | henry232323/stripe-python | 953faf3612522f4294393d341138800691f406e0 | [
"MIT"
] | null | null | null | stripe/api_resources/checkout/__init__.py | henry232323/stripe-python | 953faf3612522f4294393d341138800691f406e0 | [
"MIT"
] | null | null | null | stripe/api_resources/checkout/__init__.py | henry232323/stripe-python | 953faf3612522f4294393d341138800691f406e0 | [
"MIT"
] | null | null | null | # flake8: noqa
from stripe.api_resources.checkout.session import Session
| 18.5 | 57 | 0.824324 | 10 | 74 | 6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.108108 | 74 | 3 | 58 | 24.666667 | 0.893939 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
0ae7d78a1e26ebafcd86015b70779459b853277e | 203 | py | Python | files/exercises/looping-over-data-sets-determining-matches.py | mforneris/introduction_to_python_course | 8075973ee89a921a5e2693f649adbf1fc0e0b2cb | [
"CC-BY-4.0"
] | null | null | null | files/exercises/looping-over-data-sets-determining-matches.py | mforneris/introduction_to_python_course | 8075973ee89a921a5e2693f649adbf1fc0e0b2cb | [
"CC-BY-4.0"
] | null | null | null | files/exercises/looping-over-data-sets-determining-matches.py | mforneris/introduction_to_python_course | 8075973ee89a921a5e2693f649adbf1fc0e0b2cb | [
"CC-BY-4.0"
] | 1 | 2020-01-09T10:58:56.000Z | 2020-01-09T10:58:56.000Z |
# Which of these files is not matched by the expression glob.glob('../../data/*as*.csv')?
#../../data/gapminder_gdp_africa.csv
#../../data/gapminder_gdp_americas.csv
#../../data/gapminder_gdp_asia.csv
| 29 | 89 | 0.699507 | 30 | 203 | 4.533333 | 0.633333 | 0.154412 | 0.352941 | 0.419118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083744 | 203 | 6 | 90 | 33.833333 | 0.731183 | 0.945813 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
0afa4d74a83cc757e339a64748e13e424f48915e | 344 | py | Python | server/public_opinion/views.py | tzattack/public_opinion_analysis | ed29e5b53564563ac6233de7d49afdd5ee554920 | [
"MIT"
] | null | null | null | server/public_opinion/views.py | tzattack/public_opinion_analysis | ed29e5b53564563ac6233de7d49afdd5ee554920 | [
"MIT"
] | null | null | null | server/public_opinion/views.py | tzattack/public_opinion_analysis | ed29e5b53564563ac6233de7d49afdd5ee554920 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
# 接收请求数据
def index(request):
return render(request, 'public_opinion/index.html')
#return HttpResponse('hello world')
def starter(request):
return render(request, 'public_opinion/starter.html')
#return Htt... | 31.272727 | 57 | 0.761628 | 43 | 344 | 6.046512 | 0.511628 | 0.076923 | 0.146154 | 0.2 | 0.546154 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136628 | 344 | 11 | 58 | 31.272727 | 0.875421 | 0.284884 | 0 | 0 | 0 | 0 | 0.214876 | 0.214876 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 5 |
7c1069fb8d110e82201bd9a8e5df48fa42d80b01 | 328 | py | Python | algorithms/recursion/test_count.py | dmodena/grokking-algorithms | 18516a0fcfae629bde062f8e1c273f658c06cf7e | [
"MIT"
] | null | null | null | algorithms/recursion/test_count.py | dmodena/grokking-algorithms | 18516a0fcfae629bde062f8e1c273f658c06cf7e | [
"MIT"
] | null | null | null | algorithms/recursion/test_count.py | dmodena/grokking-algorithms | 18516a0fcfae629bde062f8e1c273f658c06cf7e | [
"MIT"
] | null | null | null | import unittest
from algorithms.recursion.count import count
class TestCount(unittest.TestCase):
def test_count(self):
self.assertEqual(count([]), 0)
self.assertEqual(count([1, 2, 3, 4]), 4)
self.assertEqual(count([1, 2, 3, 4, 5, 6]), 6)
self.assertEqual(count([1, 2, 3, 4, 5, 6, 7, ... | 32.8 | 60 | 0.615854 | 50 | 328 | 4.02 | 0.44 | 0.298507 | 0.39801 | 0.313433 | 0.378109 | 0.378109 | 0.378109 | 0.258706 | 0.258706 | 0 | 0 | 0.085271 | 0.213415 | 328 | 9 | 61 | 36.444444 | 0.693798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
7c17b79dddae72386ba8f94cd7728b4d51f7bce1 | 781 | py | Python | app/tools/auth/__init__.py | tomaszkyc/timely | 3fc2953a4dc250b885683dea38892ade68a63cf2 | [
"MIT"
] | null | null | null | app/tools/auth/__init__.py | tomaszkyc/timely | 3fc2953a4dc250b885683dea38892ade68a63cf2 | [
"MIT"
] | null | null | null | app/tools/auth/__init__.py | tomaszkyc/timely | 3fc2953a4dc250b885683dea38892ade68a63cf2 | [
"MIT"
] | null | null | null | from secrets import token_urlsafe
from flask import current_app
from itsdangerous import URLSafeSerializer
from werkzeug.security import generate_password_hash, check_password_hash
def encrypt_cookie(content):
s = URLSafeSerializer(current_app.config["SECRET_KEY"], salt="cookie")
encrypted_content = s.dumps(... | 23.666667 | 74 | 0.759283 | 97 | 781 | 5.85567 | 0.350515 | 0.084507 | 0.070423 | 0.112676 | 0.211268 | 0.211268 | 0.211268 | 0.211268 | 0.211268 | 0.211268 | 0 | 0.004573 | 0.160051 | 781 | 32 | 75 | 24.40625 | 0.86128 | 0 | 0 | 0.095238 | 1 | 0 | 0.043534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0.142857 | 0.190476 | 0.142857 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 5 |
7c1d62b30839311293ded9122aad65c91718e943 | 15,595 | py | Python | tests/test_serializers.py | shosca/django-rest-dataclasses | 5d119967dc16c1ba6fe4dfddafd6e55bd96b23a9 | [
"MIT"
] | 14 | 2019-06-25T13:47:17.000Z | 2021-08-20T16:25:18.000Z | tests/test_serializers.py | shosca/django-rest-dataclasses | 5d119967dc16c1ba6fe4dfddafd6e55bd96b23a9 | [
"MIT"
] | null | null | null | tests/test_serializers.py | shosca/django-rest-dataclasses | 5d119967dc16c1ba6fe4dfddafd6e55bd96b23a9 | [
"MIT"
] | 1 | 2019-06-25T13:47:23.000Z | 2019-06-25T13:47:23.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import dataclasses as da
import enum
from typing import Dict, List
from django.core.exceptions import ValidationError as DjangoValidationError
from django.test import SimpleTestCase
from rest_framework import fields
from ... | 33.976035 | 120 | 0.560885 | 1,646 | 15,595 | 5.171324 | 0.100243 | 0.027491 | 0.042763 | 0.064615 | 0.815085 | 0.791588 | 0.782425 | 0.736725 | 0.689027 | 0.689027 | 0 | 0.010119 | 0.296634 | 15,595 | 458 | 121 | 34.050218 | 0.765886 | 0.001347 | 0 | 0.635328 | 0 | 0.002849 | 0.101914 | 0 | 0 | 0 | 0 | 0 | 0.11396 | 1 | 0.074074 | false | 0 | 0.025641 | 0 | 0.321937 | 0.002849 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
7c5fdd783d1653f1ce8ad3b50d3f0dcb0705115b | 90 | py | Python | word2vec/nlp/tokenizer.py | sdliuyuzhi/word2vec-pytorch | 2a3aa41983e8b655f1289eb2fc0524c3309f9280 | [
"MIT"
] | null | null | null | word2vec/nlp/tokenizer.py | sdliuyuzhi/word2vec-pytorch | 2a3aa41983e8b655f1289eb2fc0524c3309f9280 | [
"MIT"
] | null | null | null | word2vec/nlp/tokenizer.py | sdliuyuzhi/word2vec-pytorch | 2a3aa41983e8b655f1289eb2fc0524c3309f9280 | [
"MIT"
] | 2 | 2018-12-23T20:42:28.000Z | 2021-02-21T02:21:17.000Z |
import re
UNK = "<UNK"
def naive_tokenizer(s):
return re.split(r"\s", s.strip())
| 9 | 37 | 0.6 | 15 | 90 | 3.533333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211111 | 90 | 9 | 38 | 10 | 0.746479 | 0 | 0 | 0 | 0 | 0 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
7c63a7a562c36da97a5770513e09c33ef8062944 | 179 | py | Python | tiktok/hot/__init__.py | hackertogether/tiktok-crawler | eba5bb2b0ecf9e9d82084609d04ab53fc1747121 | [
"MIT"
] | 37 | 2019-05-07T05:02:09.000Z | 2022-01-12T06:14:57.000Z | tiktok/hot/__init__.py | hackertogether/tiktok-crawler | eba5bb2b0ecf9e9d82084609d04ab53fc1747121 | [
"MIT"
] | 4 | 2019-05-23T05:27:25.000Z | 2020-04-23T18:39:38.000Z | tiktok/hot/__init__.py | hackertogether/tiktok-crawler | eba5bb2b0ecf9e9d82084609d04ab53fc1747121 | [
"MIT"
] | 17 | 2019-05-06T09:15:18.000Z | 2022-03-14T15:58:04.000Z | from tiktok.hot.search import search
from tiktok.hot.video import video
from tiktok.hot.energy import energy
from tiktok.hot.music import music
from tiktok.hot.trend import trend
| 29.833333 | 36 | 0.832402 | 30 | 179 | 4.966667 | 0.3 | 0.33557 | 0.436242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111732 | 179 | 5 | 37 | 35.8 | 0.937107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
7c68fa1d0d614f88f6015e83af6d91f83b0871ee | 91 | py | Python | utils/__init__.py | lmycross/segmentation | 9b1f4bfba4c2933d87c49313234da6cfce1d8ad5 | [
"MIT"
] | 6 | 2018-03-16T16:57:14.000Z | 2019-05-02T16:32:06.000Z | utils/__init__.py | lmycross/segmentation | 9b1f4bfba4c2933d87c49313234da6cfce1d8ad5 | [
"MIT"
] | null | null | null | utils/__init__.py | lmycross/segmentation | 9b1f4bfba4c2933d87c49313234da6cfce1d8ad5 | [
"MIT"
] | null | null | null | from .crf import *
from .jointtransform import *
from .metrics import *
from .misc import * | 22.75 | 29 | 0.747253 | 12 | 91 | 5.666667 | 0.5 | 0.441176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 4 | 30 | 22.75 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
7cd2749b6748ed415d7e40c53c2d33a6b91a365d | 605 | py | Python | plugins/carbon_black_protection/komand_carbon_black_protection/actions/__init__.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 46 | 2019-06-05T20:47:58.000Z | 2022-03-29T10:18:01.000Z | plugins/carbon_black_protection/komand_carbon_black_protection/actions/__init__.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 386 | 2019-06-07T20:20:39.000Z | 2022-03-30T17:35:01.000Z | plugins/carbon_black_protection/komand_carbon_black_protection/actions/__init__.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 43 | 2019-07-09T14:13:58.000Z | 2022-03-28T12:04:46.000Z | # GENERATED BY KOMAND SDK - DO NOT EDIT
from .approve_file_locally.action import ApproveFileLocally
from .ban_file.action import BanFile
from .create_file_rule.action import CreateFileRule
from .get_approval_request.action import GetApprovalRequest
from .get_file_rule.action import GetFileRule
from .resolve_approval_re... | 50.416667 | 72 | 0.882645 | 76 | 605 | 6.776316 | 0.473684 | 0.23301 | 0.066019 | 0.08932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080992 | 605 | 11 | 73 | 55 | 0.926259 | 0.061157 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
860b7e3fd920d7c52507f15f12d30c6efeda7c8a | 11,394 | py | Python | golly/Scripts/Python/Rule-Generators/Langtons-Ant-gen.py | Nesk8er/WebLife1 | 080ac7c2c4376d2016e2d7c6d428ba3935b28fda | [
"PSF-2.0"
] | null | null | null | golly/Scripts/Python/Rule-Generators/Langtons-Ant-gen.py | Nesk8er/WebLife1 | 080ac7c2c4376d2016e2d7c6d428ba3935b28fda | [
"PSF-2.0"
] | null | null | null | golly/Scripts/Python/Rule-Generators/Langtons-Ant-gen.py | Nesk8er/WebLife1 | 080ac7c2c4376d2016e2d7c6d428ba3935b28fda | [
"PSF-2.0"
] | null | null | null | # generator for Langton's Ant rules
# inspired by Aldoaldoz: http://www.youtube.com/watch?v=1X-gtr4pEBU
# contact: tim.hutton@gmail.com
import golly
import random
from glife.RuleTree import *
opposite_dirs=[2,3,0,1] # index of opposite direction
# encoding:
# (0-n_colors: empty square)
def encode(c,s,d):... | 49.112069 | 117 | 0.537213 | 2,541 | 11,394 | 2.356946 | 0.12318 | 0.308232 | 0.41476 | 0.504258 | 0.416764 | 0.385039 | 0.346969 | 0.321924 | 0.311738 | 0.29454 | 0 | 0.207098 | 0.233368 | 11,394 | 231 | 118 | 49.324675 | 0.478535 | 0.155257 | 0 | 0.281609 | 0 | 0 | 0.021486 | 0 | 0.005747 | 0 | 0 | 0 | 0 | 1 | 0.005747 | false | 0 | 0.017241 | 0.005747 | 0.028736 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
861a765da52f6698a03a119895841dc8ef50deaa | 24,462 | py | Python | sdk/eventhub/azure-eventhubs/tests/livetest/asynctests/test_eventprocessor_async.py | gnovack/azure-sdk-for-python | e539abe76ba5aa035cb2b0b793829a8e6aba09e6 | [
"MIT"
] | null | null | null | sdk/eventhub/azure-eventhubs/tests/livetest/asynctests/test_eventprocessor_async.py | gnovack/azure-sdk-for-python | e539abe76ba5aa035cb2b0b793829a8e6aba09e6 | [
"MIT"
] | null | null | null | sdk/eventhub/azure-eventhubs/tests/livetest/asynctests/test_eventprocessor_async.py | gnovack/azure-sdk-for-python | e539abe76ba5aa035cb2b0b793829a8e6aba09e6 | [
"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.
#--------------------------------------------------------------------------
import pyte... | 41.320946 | 120 | 0.635148 | 2,392 | 24,462 | 6.159281 | 0.08403 | 0.038824 | 0.035634 | 0.028507 | 0.810969 | 0.773637 | 0.748795 | 0.733999 | 0.697618 | 0.679563 | 0 | 0.011877 | 0.270338 | 24,462 | 591 | 121 | 41.390863 | 0.813547 | 0.020644 | 0 | 0.695652 | 0 | 0 | 0.10687 | 0.010441 | 0 | 0 | 0 | 0 | 0.076605 | 1 | 0.033126 | false | 0.010352 | 0.020704 | 0.014493 | 0.111801 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
86204b778ac80393a907195e96d63d39603b65ff | 132 | py | Python | build/lib/agrimetscraper/utils/duplicatechecker.py | lixiaopi1985/agrimet_scraper | eb566d2bbb6f1882656a1bc5319e9f35ad7dc5df | [
"MIT"
] | null | null | null | build/lib/agrimetscraper/utils/duplicatechecker.py | lixiaopi1985/agrimet_scraper | eb566d2bbb6f1882656a1bc5319e9f35ad7dc5df | [
"MIT"
] | null | null | null | build/lib/agrimetscraper/utils/duplicatechecker.py | lixiaopi1985/agrimet_scraper | eb566d2bbb6f1882656a1bc5319e9f35ad7dc5df | [
"MIT"
] | null | null | null | """used to check if data existed in database already
"""
def duplicate_checker(tuple1,list_all):
return tuple1 in list_all
| 13.2 | 52 | 0.734848 | 20 | 132 | 4.7 | 0.8 | 0.148936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0.189394 | 132 | 9 | 53 | 14.666667 | 0.859813 | 0.371212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
863edadd0dfcd82c58c5c28068403800d1c36825 | 27,820 | py | Python | tests/components/plex/test_config_flow.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 1 | 2021-07-08T20:09:55.000Z | 2021-07-08T20:09:55.000Z | tests/components/plex/test_config_flow.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 47 | 2021-02-21T23:43:07.000Z | 2022-03-31T06:07:10.000Z | tests/components/plex/test_config_flow.py | OpenPeerPower/core | f673dfac9f2d0c48fa30af37b0a99df9dd6640ee | [
"Apache-2.0"
] | null | null | null | """Tests for Plex config flow."""
import copy
import ssl
from unittest.mock import patch
import plexapi.exceptions
import pytest
import requests.exceptions
from openpeerpower.components.media_player import DOMAIN as MP_DOMAIN
from openpeerpower.components.plex import config_flow
from openpeerpower.components.plex.con... | 35.349428 | 94 | 0.674299 | 3,360 | 27,820 | 5.295536 | 0.077083 | 0.089698 | 0.066543 | 0.071938 | 0.798235 | 0.764851 | 0.735345 | 0.712471 | 0.70539 | 0.695948 | 0 | 0.001404 | 0.20629 | 27,820 | 786 | 95 | 35.394402 | 0.804402 | 0.004349 | 0 | 0.634267 | 0 | 0 | 0.143442 | 0.053899 | 0 | 0 | 0 | 0 | 0.270181 | 1 | 0.001647 | false | 0 | 0.026359 | 0 | 0.032949 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
864651c6e5194012a49d961e5509cf3e0228f203 | 93 | py | Python | backend/apps/currency/admin.py | jorgejimenez98/backend-evaluacion-desempenno | 08975303952608809375c5e2185bf20a84cc0f4e | [
"MIT"
] | null | null | null | backend/apps/currency/admin.py | jorgejimenez98/backend-evaluacion-desempenno | 08975303952608809375c5e2185bf20a84cc0f4e | [
"MIT"
] | null | null | null | backend/apps/currency/admin.py | jorgejimenez98/backend-evaluacion-desempenno | 08975303952608809375c5e2185bf20a84cc0f4e | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Currency
admin.site.register(Currency)
| 18.6 | 32 | 0.827957 | 13 | 93 | 5.923077 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107527 | 93 | 4 | 33 | 23.25 | 0.927711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
8653b0571f51c0d778712ce6a264a5e4e27a4cce | 357 | py | Python | app/modules/core/tests/test_time_tags.py | nickmoreton/nhsx-website | 2397d1308376c02b75323d30e6bc916af0daac9d | [
"MIT"
] | 50 | 2019-04-04T17:50:00.000Z | 2021-08-05T15:08:37.000Z | app/modules/core/tests/test_time_tags.py | nickmoreton/nhsx-website | 2397d1308376c02b75323d30e6bc916af0daac9d | [
"MIT"
] | 434 | 2019-04-04T18:25:32.000Z | 2022-03-31T18:23:37.000Z | app/modules/core/tests/test_time_tags.py | nhsx-mirror/nhsx-website | 2133b4e275ca35ff77f7d6874e809f139ec4bf86 | [
"MIT"
] | 23 | 2019-04-04T09:52:07.000Z | 2021-04-11T07:41:47.000Z | from modules.core.templatetags import time_tags
import datetime
def test_format_time():
assert time_tags.format_time(datetime.time(12, 0)) == "midday"
assert time_tags.format_time(datetime.time(0, 0)) == "midnight"
assert time_tags.format_time(datetime.time(15, 30)) == "3.30pm"
assert time_tags.format... | 35.7 | 67 | 0.731092 | 54 | 357 | 4.62963 | 0.388889 | 0.16 | 0.224 | 0.32 | 0.592 | 0.592 | 0.592 | 0.304 | 0 | 0 | 0 | 0.051447 | 0.128852 | 357 | 9 | 68 | 39.666667 | 0.752412 | 0 | 0 | 0 | 0 | 0 | 0.064426 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
865c6c1d97a6a50724fe87a96dbfea62bcc56438 | 39 | py | Python | tests/components/tplink/__init__.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 23 | 2017-11-15T21:03:53.000Z | 2021-03-29T21:33:48.000Z | tests/components/tplink/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 79 | 2020-07-23T07:13:37.000Z | 2022-03-22T06:02:37.000Z | tests/components/tplink/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 14 | 2018-08-19T16:28:26.000Z | 2021-09-02T18:26:53.000Z | """Tests for the TP-Link component."""
| 19.5 | 38 | 0.666667 | 6 | 39 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 39 | 1 | 39 | 39 | 0.764706 | 0.820513 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
8680468416037e610a5589f554376faa8971cb38 | 11 | py | Python | helloworld.py | abhaykoushal/test | dbda82fdb0743d161b8c593a9b4fccd244fd628b | [
"MIT"
] | null | null | null | helloworld.py | abhaykoushal/test | dbda82fdb0743d161b8c593a9b4fccd244fd628b | [
"MIT"
] | null | null | null | helloworld.py | abhaykoushal/test | dbda82fdb0743d161b8c593a9b4fccd244fd628b | [
"MIT"
] | null | null | null | print(2/1)
| 5.5 | 10 | 0.636364 | 3 | 11 | 2.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.090909 | 11 | 1 | 11 | 11 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
86b0fc16a83a8b9527ace118f40d3c55168e0f70 | 194 | py | Python | edifact/messages/un.py | FriedrichK/python-edifact | 77a7cf3d053fb4dbb21e61559d603ab609f96e19 | [
"Apache-2.0"
] | 5 | 2016-04-28T06:04:28.000Z | 2022-02-15T12:23:47.000Z | edifact/messages/un.py | FriedrichK/python-edifact | 77a7cf3d053fb4dbb21e61559d603ab609f96e19 | [
"Apache-2.0"
] | null | null | null | edifact/messages/un.py | FriedrichK/python-edifact | 77a7cf3d053fb4dbb21e61559d603ab609f96e19 | [
"Apache-2.0"
] | 6 | 2016-12-14T11:47:12.000Z | 2020-05-16T14:37:31.000Z | import edifact.configuration
from edifact.messages.base import Message
class MSCONS(Message):
class Meta:
spec = 'MSCONS'
edifact.configuration.MESSAGE_CLASSES['MSCONS'] = MSCONS
| 19.4 | 56 | 0.752577 | 22 | 194 | 6.590909 | 0.545455 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159794 | 194 | 9 | 57 | 21.555556 | 0.889571 | 0 | 0 | 0 | 0 | 0 | 0.061856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
86b6ce82bd51d63cb86c16bd72f79b7a4b043556 | 10,676 | py | Python | micronet/compression/quantization/wqaq/dorefa/quantize.py | chenjun2hao/micronet | c8b148a808dc1f2dbfda948e7897692182f1d722 | [
"MIT"
] | 1 | 2021-03-02T03:44:44.000Z | 2021-03-02T03:44:44.000Z | micronet/compression/quantization/wqaq/dorefa/quantize.py | chenjun2hao/micronet | c8b148a808dc1f2dbfda948e7897692182f1d722 | [
"MIT"
] | null | null | null | micronet/compression/quantization/wqaq/dorefa/quantize.py | chenjun2hao/micronet | c8b148a808dc1f2dbfda948e7897692182f1d722 | [
"MIT"
] | null | null | null | import copy
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Function
# ********************* quantizers(量化器,量化) *********************
# 取整(ste)
class Round(Function):
@staticmethod
def forward(self, input):
output = torch.round(input)
return outpu... | 44.483333 | 123 | 0.492038 | 1,023 | 10,676 | 4.878788 | 0.107527 | 0.034061 | 0.036065 | 0.024043 | 0.773993 | 0.744941 | 0.720297 | 0.711881 | 0.703266 | 0.67201 | 0 | 0.012068 | 0.433402 | 10,676 | 239 | 124 | 44.669456 | 0.813027 | 0.016767 | 0 | 0.644231 | 0 | 0 | 0.008395 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 1 | 0.076923 | false | 0 | 0.024038 | 0 | 0.177885 | 0.009615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
86cd5d983d112322a969d6ec76ba1f5e8b17eb26 | 152 | py | Python | models/__init__.py | miguelhatrick/climbing_gym_school | d2ebaab2450bf19e5318b38d5ec565b9e185d28d | [
"Apache-2.0"
] | null | null | null | models/__init__.py | miguelhatrick/climbing_gym_school | d2ebaab2450bf19e5318b38d5ec565b9e185d28d | [
"Apache-2.0"
] | null | null | null | models/__init__.py | miguelhatrick/climbing_gym_school | d2ebaab2450bf19e5318b38d5ec565b9e185d28d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from . import career, course, course_student, course_type, exam, exam_student
from . import pos_order, sale_order, res_partner
| 30.4 | 77 | 0.743421 | 22 | 152 | 4.863636 | 0.681818 | 0.186916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.138158 | 152 | 4 | 78 | 38 | 0.80916 | 0.138158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
86f07820c7d0a30a253f51404ae75a6ea5dddd8a | 25,032 | py | Python | scripts/file_mypyvy_to_json.py | b1f6c1c4/cfg-enum | 1a08071bde87f578ceaf834004c01b593db9bce8 | [
"BSD-3-Clause"
] | 4 | 2021-06-11T07:34:50.000Z | 2022-03-30T15:32:07.000Z | scripts/file_mypyvy_to_json.py | b1f6c1c4/cfg-enum | 1a08071bde87f578ceaf834004c01b593db9bce8 | [
"BSD-3-Clause"
] | null | null | null | scripts/file_mypyvy_to_json.py | b1f6c1c4/cfg-enum | 1a08071bde87f578ceaf834004c01b593db9bce8 | [
"BSD-3-Clause"
] | 2 | 2021-11-16T09:13:46.000Z | 2021-12-20T14:53:57.000Z | import z3 # pip3 install z3-solver
import sys
import json
import os
import argparse
from typing import cast
sys.path.insert(0, os.path.abspath(os.path.join(
os.path.dirname(__file__), '../mypyvy/src')))
import mypyvy
import utils
import parser
#import typechecker
import syntax
"""
def parse_program(input: str, ... | 47.862333 | 211 | 0.652325 | 3,191 | 25,032 | 4.989032 | 0.142275 | 0.053204 | 0.036935 | 0.087437 | 0.799686 | 0.781533 | 0.750879 | 0.724309 | 0.700188 | 0.696859 | 0 | 0.001822 | 0.232742 | 25,032 | 522 | 212 | 47.954023 | 0.827085 | 0.009388 | 0 | 0.232143 | 0 | 0 | 0.058685 | 0 | 0 | 0 | 0 | 0.003831 | 0.041667 | 1 | 0.083333 | false | 0 | 0.059524 | 0.017857 | 0.297619 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
86f76e688037e4fac20b189440c4ac5870e10880 | 210 | py | Python | api.py | putuwinda/palette | 2d36d34d2366f81f381ca26d7d7167517b6c34b3 | [
"MIT"
] | 1 | 2022-02-25T17:52:05.000Z | 2022-02-25T17:52:05.000Z | api.py | putuwinda/palette | 2d36d34d2366f81f381ca26d7d7167517b6c34b3 | [
"MIT"
] | null | null | null | api.py | putuwinda/palette | 2d36d34d2366f81f381ca26d7d7167517b6c34b3 | [
"MIT"
] | null | null | null | from app import app, db
from app.models import Color
# Will make these objects available when running "flask shell"
@app.shell_context_processor
def make_shell_context():
return {'db': db, 'Color': Color}
| 26.25 | 62 | 0.757143 | 32 | 210 | 4.84375 | 0.59375 | 0.090323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152381 | 210 | 7 | 63 | 30 | 0.870787 | 0.285714 | 0 | 0 | 0 | 0 | 0.047297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 5 |
86f9aeed2634150b10ddaf27622095b46271076d | 206 | py | Python | SentHandler/__init__.py | wangjksjtu/multi-embedding-cws | f272a7586bc0ad6f65e900c7f29fc9a89a0c95b4 | [
"MIT"
] | 16 | 2018-09-18T13:59:59.000Z | 2022-03-21T08:05:31.000Z | SentHandler/__init__.py | wangjksjtu/multi-embedding-cws | f272a7586bc0ad6f65e900c7f29fc9a89a0c95b4 | [
"MIT"
] | null | null | null | SentHandler/__init__.py | wangjksjtu/multi-embedding-cws | f272a7586bc0ad6f65e900c7f29fc9a89a0c95b4 | [
"MIT"
] | 6 | 2020-01-05T13:03:45.000Z | 2022-03-21T08:05:33.000Z | # -*- coding: utf-8 -*-
from slicing import SliceSentence, Analyze, POS_Analyze
from pre_slicing import NE_Removing, NE_labeling, POS_labeling, CleanSentence, All2oneFile
from merging import MergeSentence
| 34.333333 | 90 | 0.81068 | 26 | 206 | 6.230769 | 0.653846 | 0.160494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.116505 | 206 | 5 | 91 | 41.2 | 0.879121 | 0.101942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
86fbae65e939e781080518c86ab6bc2ac8fabc41 | 223 | py | Python | evalml/tuners/__init__.py | BlockchainClimateInstitute/price_microservice | 11d1cff8965fe1befc997e9da3dc09efceed4579 | [
"BSD-3-Clause"
] | 1 | 2021-07-28T14:20:35.000Z | 2021-07-28T14:20:35.000Z | evalml/tuners/__init__.py | ObinnaObeleagu/evalml | 3b5bf62b08a5a5bc6485ba5387a08c32e1857473 | [
"BSD-3-Clause"
] | 13 | 2021-03-04T19:29:09.000Z | 2022-03-07T01:00:43.000Z | evalml/tuners/__init__.py | RG4421/evalml | 33c62abe6d107d1da2f54e9e44a90f18aaf916a9 | [
"BSD-3-Clause"
] | null | null | null | from .skopt_tuner import SKOptTuner
from .tuner import Tuner
from .tuner_exceptions import NoParamsException, ParameterError
from .random_search_tuner import RandomSearchTuner
from .grid_search_tuner import GridSearchTuner
| 37.166667 | 63 | 0.878924 | 27 | 223 | 7.037037 | 0.481481 | 0.231579 | 0.178947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09417 | 223 | 5 | 64 | 44.6 | 0.940594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
86fe9e233fccd5ef20261a5ee82437045ed27c56 | 132 | py | Python | Pyiiko/__init__.py | rnd137/pyiiko | a702858c2ee597cbcc32317f45c2a79ec6c19035 | [
"Apache-2.0"
] | 1 | 2019-01-17T12:18:17.000Z | 2019-01-17T12:18:17.000Z | Pyiiko/__init__.py | rnd137/pyiiko | a702858c2ee597cbcc32317f45c2a79ec6c19035 | [
"Apache-2.0"
] | null | null | null | Pyiiko/__init__.py | rnd137/pyiiko | a702858c2ee597cbcc32317f45c2a79ec6c19035 | [
"Apache-2.0"
] | null | null | null | __version__ = '0.2.1'
from Pyiiko.server import *
from Pyiiko.biz import *
from Pyiiko.card5 import *
from Pyiiko.frontWeb import *
| 22 | 29 | 0.757576 | 20 | 132 | 4.8 | 0.55 | 0.416667 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035398 | 0.143939 | 132 | 5 | 30 | 26.4 | 0.814159 | 0 | 0 | 0 | 0 | 0 | 0.037879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
8139d316693ecfc564efdb08d27ac25225ba8c5b | 200 | py | Python | bin/iamonds/polyiamonds-12345-elongated-hexagon-9x1.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | null | null | null | bin/iamonds/polyiamonds-12345-elongated-hexagon-9x1.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | null | null | null | bin/iamonds/polyiamonds-12345-elongated-hexagon-9x1.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | 1 | 2022-01-02T16:54:14.000Z | 2022-01-02T16:54:14.000Z | #!/usr/bin/env python
# $Id$
"""23,168 solutions"""
import puzzler
from puzzler.puzzles.polyiamonds12345 import Polyiamonds12345ElongatedHexagon9x1
puzzler.run(Polyiamonds12345ElongatedHexagon9x1)
| 20 | 80 | 0.82 | 19 | 200 | 8.631579 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0.08 | 200 | 9 | 81 | 22.222222 | 0.76087 | 0.21 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 5 |
813f767f9b93d7f7fa11a2f24a6cbc0e1acd7f8d | 2,258 | py | Python | alembic/versions/d443d76c20db_add_experiment.py | jonathanzong/dmca | 70157cff983310e5951024aa80e99e7a5404d758 | [
"MIT"
] | 2 | 2022-02-16T22:50:06.000Z | 2022-02-21T19:38:02.000Z | alembic/versions/d443d76c20db_add_experiment.py | jonathanzong/dmca | 70157cff983310e5951024aa80e99e7a5404d758 | [
"MIT"
] | 2 | 2022-02-01T05:48:07.000Z | 2022-02-01T05:49:29.000Z | alembic/versions/d443d76c20db_add_experiment.py | jonathanzong/bartleby | 70157cff983310e5951024aa80e99e7a5404d758 | [
"MIT"
] | null | null | null | """Add experiment
Revision ID: d443d76c20db
Revises: b478383cbcc4
Create Date: 2017-12-04 01:03:04.639259
"""
# revision identifiers, used by Alembic.
revision = 'd443d76c20db'
down_revision = 'b478383cbcc4'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade(engine_n... | 27.204819 | 65 | 0.669619 | 262 | 2,258 | 5.679389 | 0.244275 | 0.064516 | 0.084677 | 0.092742 | 0.776882 | 0.776882 | 0.776882 | 0.776882 | 0.776882 | 0.74328 | 0 | 0.028846 | 0.170948 | 2,258 | 82 | 66 | 27.536585 | 0.766026 | 0.267493 | 0 | 0.525 | 0 | 0 | 0.139103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.05 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
81420799603b7d825d65d7374943b9f0ce811835 | 1,886 | py | Python | controllers/adminpanel.py | byancar/easystore_mvc_pos | 7d3464fbc922d290276156238efe903d49d58f83 | [
"MIT"
] | 52 | 2015-03-03T20:21:14.000Z | 2020-11-15T05:54:33.000Z | controllers/adminpanel.py | nennogabriel/easy_store | 0e165c29c83c7d28611a86076aa2b3a4545d062f | [
"MIT"
] | 1 | 2016-06-02T03:37:41.000Z | 2016-06-02T17:59:47.000Z | controllers/adminpanel.py | nennogabriel/easy_store | 0e165c29c83c7d28611a86076aa2b3a4545d062f | [
"MIT"
] | 42 | 2015-03-03T20:21:23.000Z | 2020-05-11T19:35:14.000Z | # -*- coding: utf-8 -*-
# coding: utf8
@auth.requires_membership('admin')
def index():
return locals()
@auth.requires_membership('admin')
def products():
products_grid = SQLFORM.grid(db.product, csv=False)
return locals()
@auth.requires_membership('admin')
def product_categories():
categories_grid... | 22.452381 | 65 | 0.704666 | 226 | 1,886 | 5.716814 | 0.243363 | 0.148607 | 0.272446 | 0.334365 | 0.636223 | 0.543344 | 0.543344 | 0.283282 | 0.283282 | 0.089783 | 0 | 0.001249 | 0.151113 | 1,886 | 84 | 66 | 22.452381 | 0.805746 | 0.062566 | 0 | 0.542373 | 0 | 0 | 0.045767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.288136 | false | 0 | 0 | 0.135593 | 0.576271 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
d4c160dca1e0a4323f1d79fe80996065bf106ba4 | 5,645 | py | Python | webcontentdownloader/complexdownloader.py | hail-kang/module-webcontent-downloader | 93d9fa209c8a14540f10298e5b483edd692021c6 | [
"MIT"
] | null | null | null | webcontentdownloader/complexdownloader.py | hail-kang/module-webcontent-downloader | 93d9fa209c8a14540f10298e5b483edd692021c6 | [
"MIT"
] | null | null | null | webcontentdownloader/complexdownloader.py | hail-kang/module-webcontent-downloader | 93d9fa209c8a14540f10298e5b483edd692021c6 | [
"MIT"
] | null | null | null | import os
import urllib.parse
from datetime import datetime
from zipfile import ZipFile
from io import BytesIO
from mimetypes import guess_extension
import requests
from bs4 import BeautifulSoup
from selenium import webdriver
from .interface import SelectorDonwloader
from .simpledownloader import SimpleDo... | 33.60119 | 130 | 0.634721 | 741 | 5,645 | 4.748988 | 0.222672 | 0.025575 | 0.046036 | 0.057971 | 0.729184 | 0.729184 | 0.716113 | 0.716113 | 0.694515 | 0.694515 | 0 | 0.015031 | 0.245704 | 5,645 | 168 | 131 | 33.60119 | 0.811414 | 0.071391 | 0 | 0.748032 | 0 | 0.015748 | 0.126126 | 0.004204 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062992 | false | 0.015748 | 0.094488 | 0 | 0.188976 | 0.062992 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
d4e0c73803e946dd140863d2c7e42b68cbc86c57 | 3,905 | py | Python | tests/test_captions.py | Twixes/pytube3 | 2801505a5fed495f113b0e5793a61ccf1023ba90 | [
"MIT-0"
] | null | null | null | tests/test_captions.py | Twixes/pytube3 | 2801505a5fed495f113b0e5793a61ccf1023ba90 | [
"MIT-0"
] | null | null | null | tests/test_captions.py | Twixes/pytube3 | 2801505a5fed495f113b0e5793a61ccf1023ba90 | [
"MIT-0"
] | null | null | null | from unittest import mock
from unittest.mock import patch, mock_open, MagicMock
from pytube import Caption, CaptionQuery, captions
def test_float_to_srt_time_format():
caption1 = Caption(
{"url": "url1", "name": {"simpleText": "name1"}, "languageCode": "en"}
)
assert caption1.float_to_srt_time_fo... | 35.18018 | 85 | 0.63201 | 451 | 3,905 | 5.243902 | 0.175166 | 0.054968 | 0.059197 | 0.07611 | 0.742495 | 0.704863 | 0.704863 | 0.704863 | 0.704863 | 0.645243 | 0 | 0.022215 | 0.193086 | 3,905 | 110 | 86 | 35.5 | 0.72834 | 0 | 0 | 0.483146 | 0 | 0 | 0.238156 | 0.04379 | 0 | 0 | 0 | 0 | 0.123596 | 1 | 0.11236 | false | 0 | 0.033708 | 0 | 0.146067 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
d4e3f9ce4c1455793a4d7abad2d5b1bff1f2e38d | 121 | py | Python | 6 kyu/Sorting by bits.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 6 kyu/Sorting by bits.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 6 kyu/Sorting by bits.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def sort_by_bit(arr):
return sorted(arr, key=lambda x: (count(x), x))
def count(n):
return bin(n)[2:].count("1") | 30.25 | 51 | 0.619835 | 23 | 121 | 3.173913 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0.165289 | 121 | 4 | 52 | 30.25 | 0.70297 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
0794d42436c5bde59d02169e1c2179fc19daaeeb | 307 | py | Python | code/simonsays.py | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | 8 | 2020-02-21T22:21:01.000Z | 2022-02-16T05:30:54.000Z | code/simonsays.py | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | null | null | null | code/simonsays.py | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | 3 | 2020-08-05T05:42:35.000Z | 2021-08-30T05:39:51.000Z | def simonsays():
cases = input()
instruction = ""
for i in range(0, cases):
instruction = raw_input()
if len(instruction) > len("Simon says"):
if instruction[ : len("Simon says")] == "Simon says":
print instruction[ len("Simon says") + 1:]
simonsays() | 34.111111 | 65 | 0.553746 | 34 | 307 | 4.970588 | 0.5 | 0.213018 | 0.337278 | 0.408284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.296417 | 307 | 9 | 66 | 34.111111 | 0.773148 | 0 | 0 | 0 | 0 | 0 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
07a5aedf245eee1938580ab0af72d2d24e95b574 | 618 | py | Python | wireui/library/typedefs/peers.py | TheTimmoth/wireui | eda16eeb828a0c38f63074492877e0be71e32715 | [
"MIT"
] | 1 | 2020-05-24T05:43:27.000Z | 2020-05-24T05:43:27.000Z | wireui/library/typedefs/peers.py | TheTimmoth/wireui | eda16eeb828a0c38f63074492877e0be71e32715 | [
"MIT"
] | 15 | 2020-05-26T18:37:14.000Z | 2021-08-20T11:15:10.000Z | wireui/library/typedefs/peers.py | TheTimmoth/wireui | eda16eeb828a0c38f63074492877e0be71e32715 | [
"MIT"
] | 1 | 2020-11-19T05:14:02.000Z | 2020-11-19T05:14:02.000Z | # peers.py
# Peers for wireguard
# Author: Tim Schlottmann
# from collections import UserDict # creates not JSON serializable error
from typing import Dict
# TODO: Evaluate TypedDict when python3.8 is available
Keys = dict
# TODO: Evaluate TypedDict when python3.8 is available
RedirectAllTraffic = dict
# TODO: Eva... | 24.72 | 73 | 0.754045 | 80 | 618 | 5.575 | 0.475 | 0.071749 | 0.107623 | 0.168161 | 0.32287 | 0.32287 | 0.32287 | 0.32287 | 0.32287 | 0 | 0 | 0.011605 | 0.16343 | 618 | 24 | 74 | 25.75 | 0.851064 | 0.491909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
07c4f5b32a4422f633e4276fb24f19d77acaa9db | 69 | py | Python | harness/determined/experimental/estimator/__init__.py | ybt195/determined | 913fdc3b81ef33c2760bdb128c8ce9179e4ab9b2 | [
"Apache-2.0"
] | 3 | 2020-04-30T03:56:15.000Z | 2020-04-30T04:01:24.000Z | harness/determined/experimental/estimator/__init__.py | ybt195/determined | 913fdc3b81ef33c2760bdb128c8ce9179e4ab9b2 | [
"Apache-2.0"
] | 1 | 2022-02-10T07:31:44.000Z | 2022-02-10T07:31:44.000Z | harness/determined/experimental/estimator/__init__.py | ybt195/determined | 913fdc3b81ef33c2760bdb128c8ce9179e4ab9b2 | [
"Apache-2.0"
] | 2 | 2020-07-10T23:08:23.000Z | 2021-01-13T10:01:59.000Z | from determined.experimental.estimator._estimator_native import init
| 34.5 | 68 | 0.898551 | 8 | 69 | 7.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 69 | 1 | 69 | 69 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
6afdef2c05737740a73f637fdfeeb8e380aa30b0 | 113 | py | Python | eds/openmtc-gevent/common/openmtc-onem2m/src/openmtc_onem2m/__init__.py | piyush82/elastest-device-emulator-service | b4d6b393d6042c54a7b3dfb5f58cad5efd00f0e7 | [
"Apache-2.0"
] | null | null | null | eds/openmtc-gevent/common/openmtc-onem2m/src/openmtc_onem2m/__init__.py | piyush82/elastest-device-emulator-service | b4d6b393d6042c54a7b3dfb5f58cad5efd00f0e7 | [
"Apache-2.0"
] | null | null | null | eds/openmtc-gevent/common/openmtc-onem2m/src/openmtc_onem2m/__init__.py | piyush82/elastest-device-emulator-service | b4d6b393d6042c54a7b3dfb5f58cad5efd00f0e7 | [
"Apache-2.0"
] | null | null | null | from openmtc_onem2m.transport import AdditionalInformation, MetaInformation, \
OneM2MRequest, OneM2MResponse
| 37.666667 | 78 | 0.849558 | 9 | 113 | 10.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029703 | 0.106195 | 113 | 2 | 79 | 56.5 | 0.910891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
ed457f9e650bccbb5d13b5ba6a9e96243fa669c0 | 122 | py | Python | tools/demoyml.py | likelyzhao/pysot | 01de9d4817904c68b65ddb8aba47cbf3cb9b695a | [
"Apache-2.0"
] | null | null | null | tools/demoyml.py | likelyzhao/pysot | 01de9d4817904c68b65ddb8aba47cbf3cb9b695a | [
"Apache-2.0"
] | null | null | null | tools/demoyml.py | likelyzhao/pysot | 01de9d4817904c68b65ddb8aba47cbf3cb9b695a | [
"Apache-2.0"
] | 1 | 2019-12-11T02:44:36.000Z | 2019-12-11T02:44:36.000Z | from pysot.core.config import cfg
cfg.merge_from_file("experiments/siamrpn_r50_l234_dwxcorr_8gpu/config.yaml")
print(cfg) | 30.5 | 76 | 0.852459 | 20 | 122 | 4.9 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0.04918 | 122 | 4 | 77 | 30.5 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0.430894 | 0.430894 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
ed630a2493086f257d13c40f7a96316b50ad937a | 114,512 | py | Python | pipeline/test_drift_synchonization.py | streamsets/datacollector-tests | 6c3e908768e1d4a586e9183e2141096921ecd5be | [
"Apache-2.0"
] | 14 | 2019-03-04T10:12:39.000Z | 2021-11-24T16:17:09.000Z | pipeline/test_drift_synchonization.py | Pragatibs/datacollector-tests | aac53b2f0e056009ef0e437c8430651e3cf4d502 | [
"Apache-2.0"
] | 48 | 2019-03-08T14:59:06.000Z | 2021-08-13T14:49:56.000Z | pipeline/test_drift_synchonization.py | Pragatibs/datacollector-tests | aac53b2f0e056009ef0e437c8430651e3cf4d502 | [
"Apache-2.0"
] | 23 | 2018-09-24T20:49:17.000Z | 2021-11-24T16:17:11.000Z | # Copyright 2017 StreamSets Inc.
#
# 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 writi... | 52.916821 | 179 | 0.632868 | 13,353 | 114,512 | 5.139594 | 0.052498 | 0.037375 | 0.020254 | 0.032406 | 0.794883 | 0.762243 | 0.739206 | 0.71821 | 0.701642 | 0.687013 | 0 | 0.012311 | 0.254454 | 114,512 | 2,163 | 180 | 52.941285 | 0.791552 | 0.080795 | 0 | 0.664747 | 0 | 0.016635 | 0.18296 | 0.039163 | 0 | 0 | 0 | 0.000462 | 0.033269 | 1 | 0.020473 | false | 0 | 0.010877 | 0.00064 | 0.044786 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
ed8865b3d63978652696b18b00965d7c0d05d8f4 | 152 | py | Python | CURSOEMVIDEO/ex007.py | souzasnp/PrimeiroProjeto | e88bde45df14d9c584b24caabb5186cb98141291 | [
"MIT"
] | null | null | null | CURSOEMVIDEO/ex007.py | souzasnp/PrimeiroProjeto | e88bde45df14d9c584b24caabb5186cb98141291 | [
"MIT"
] | null | null | null | CURSOEMVIDEO/ex007.py | souzasnp/PrimeiroProjeto | e88bde45df14d9c584b24caabb5186cb98141291 | [
"MIT"
] | null | null | null | n1 = float (input('Entre com a 1º nota: '))
n2 = float (input('Entre com a 2º nota: '))
r = (n1 + n2) /2
print ('A média do Aluno é: {:.1f}'.format(r))
| 30.4 | 46 | 0.578947 | 29 | 152 | 3.034483 | 0.655172 | 0.227273 | 0.340909 | 0.409091 | 0.431818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066116 | 0.203947 | 152 | 4 | 47 | 38 | 0.661157 | 0 | 0 | 0 | 0 | 0 | 0.447368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
ed8ae68777594c3f89e69435060dd4a4f965fa5a | 59 | py | Python | boa3_test/test_sc/logical_test/MismatchedOperandLogicOr.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3_test/test_sc/logical_test/MismatchedOperandLogicOr.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3_test/test_sc/logical_test/MismatchedOperandLogicOr.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | def Main(a: bool, b: Tuple[str]) -> bool:
return a | b
| 19.666667 | 41 | 0.559322 | 11 | 59 | 3 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254237 | 59 | 2 | 42 | 29.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
71f3e86fb18db96f34287d7fc4d71d9c09788c68 | 12,644 | py | Python | u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/test/py/tests/test_fs/test_basic.py | rlourette/TI_SDK_u-boot-2019.01 | 3000a07c021e84d717e6792a74efcf895a7d7188 | [
"MIT"
] | 1 | 2021-11-21T19:56:29.000Z | 2021-11-21T19:56:29.000Z | u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/test/py/tests/test_fs/test_basic.py | rlourette/TI_SDK_u-boot-2019.01 | 3000a07c021e84d717e6792a74efcf895a7d7188 | [
"MIT"
] | null | null | null | u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/test/py/tests/test_fs/test_basic.py | rlourette/TI_SDK_u-boot-2019.01 | 3000a07c021e84d717e6792a74efcf895a7d7188 | [
"MIT"
] | 1 | 2021-12-15T09:54:37.000Z | 2021-12-15T09:54:37.000Z | # SPDX-License-Identifier: GPL-2.0+
# Copyright (c) 2018, Linaro Limited
# Author: Takahiro Akashi <takahiro.akashi@linaro.org>
#
# U-Boot File System:Basic Test
"""
This test verifies basic read/write operation on file system.
"""
import pytest
import re
from fstest_defs import *
from fstest_helpers import asse... | 43.153584 | 86 | 0.548481 | 1,667 | 12,644 | 3.973005 | 0.138572 | 0.040012 | 0.094217 | 0.065227 | 0.760079 | 0.738336 | 0.726106 | 0.703005 | 0.703005 | 0.625396 | 0 | 0.050392 | 0.343958 | 12,644 | 292 | 87 | 43.30137 | 0.748041 | 0.194954 | 0 | 0.623596 | 0 | 0 | 0.207388 | 0 | 0 | 0 | 0.006818 | 0 | 0.168539 | 1 | 0.073034 | false | 0 | 0.022472 | 0 | 0.101124 | 0.05618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
9c02137b6baeb9ee5bfef9eeca56974ababf35c0 | 1,119 | py | Python | rotkehlchen/tests/fixtures/__init__.py | VoR0220/rotki | 0ba3073c3d71ff8bf0800841c5e1097243f46b66 | [
"BSD-3-Clause"
] | 1 | 2020-12-12T01:41:19.000Z | 2020-12-12T01:41:19.000Z | rotkehlchen/tests/fixtures/__init__.py | VoR0220/rotki | 0ba3073c3d71ff8bf0800841c5e1097243f46b66 | [
"BSD-3-Clause"
] | null | null | null | rotkehlchen/tests/fixtures/__init__.py | VoR0220/rotki | 0ba3073c3d71ff8bf0800841c5e1097243f46b66 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# flake8: noqa
from rotkehlchen.tests.fixtures.aave import *
from rotkehlchen.tests.fixtures.accounting import *
from rotkehlchen.tests.fixtures.assets import *
from rotkehlchen.tests.fixtures.blockchain import *
from rotkehlchen.tests.fixtures.db import *
from rotkehlchen.tests.fixtures.exchan... | 46.625 | 62 | 0.831099 | 134 | 1,119 | 6.940299 | 0.223881 | 0.322581 | 0.430108 | 0.602151 | 0.78172 | 0.416129 | 0 | 0 | 0 | 0 | 0 | 0.001942 | 0.079535 | 1,119 | 23 | 63 | 48.652174 | 0.900971 | 0.030384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
9c07619fad93c0332dad6919b302f7c3b1fed04b | 46 | py | Python | unsorted/pythonsnippets_0022.py | fiddlerwoaroof/sandbox | 652acaf710a8b60f005769bde317e7bbf548cc2b | [
"BSD-3-Clause"
] | null | null | null | unsorted/pythonsnippets_0022.py | fiddlerwoaroof/sandbox | 652acaf710a8b60f005769bde317e7bbf548cc2b | [
"BSD-3-Clause"
] | null | null | null | unsorted/pythonsnippets_0022.py | fiddlerwoaroof/sandbox | 652acaf710a8b60f005769bde317e7bbf548cc2b | [
"BSD-3-Clause"
] | null | null | null | genetics.py -- python/ga
python -i genetics.py | 23 | 24 | 0.76087 | 8 | 46 | 4.375 | 0.625 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 46 | 2 | 25 | 23 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
9c0c211f51578e12d01d7512d736653e4f46839c | 138 | py | Python | example/plugins/testplugin/testplugin.py | zx013/pyvoxel | 4d886b25a3430dbd54863bf433c2eebbd030d0f4 | [
"MIT"
] | null | null | null | example/plugins/testplugin/testplugin.py | zx013/pyvoxel | 4d886b25a3430dbd54863bf433c2eebbd030d0f4 | [
"MIT"
] | null | null | null | example/plugins/testplugin/testplugin.py | zx013/pyvoxel | 4d886b25a3430dbd54863bf433c2eebbd030d0f4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from pyvoxel.plugin import Plugin
class TestPlugin(Plugin):
def test(self):
return 'test user'
| 19.714286 | 34 | 0.615942 | 17 | 138 | 5 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.253623 | 138 | 6 | 35 | 23 | 0.815534 | 0.152174 | 0 | 0 | 0 | 0 | 0.082569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
9c15c1f0b047da812f9ebfa893ac69dd7ae813a5 | 760 | py | Python | tests/core/eth-module/test_gas_pricing.py | bhardwajRahul/web3.py | efecadcdea64f9481fcace558a8ea103462e2923 | [
"MIT"
] | null | null | null | tests/core/eth-module/test_gas_pricing.py | bhardwajRahul/web3.py | efecadcdea64f9481fcace558a8ea103462e2923 | [
"MIT"
] | 1 | 2022-02-17T20:28:58.000Z | 2022-02-17T20:28:58.000Z | tests/core/eth-module/test_gas_pricing.py | bhardwajRahul/web3.py | efecadcdea64f9481fcace558a8ea103462e2923 | [
"MIT"
] | null | null | null | from unittest.mock import (
Mock,
)
def test_get_set_gas_price(w3):
assert w3.eth.gas_price > 0
def test_no_gas_price_strategy_returns_none(w3):
assert w3.eth.generate_gas_price() is None
def test_set_gas_price_strategy(w3):
def my_gas_price_strategy(w3, transaction_params):
return 5
w... | 25.333333 | 66 | 0.740789 | 117 | 760 | 4.376068 | 0.282051 | 0.234375 | 0.3125 | 0.175781 | 0.373047 | 0.326172 | 0.273438 | 0.273438 | 0.273438 | 0.273438 | 0 | 0.046032 | 0.171053 | 760 | 29 | 67 | 26.206897 | 0.766667 | 0 | 0 | 0.095238 | 1 | 0 | 0.013158 | 0 | 0 | 0 | 0.003947 | 0 | 0.238095 | 1 | 0.238095 | false | 0 | 0.047619 | 0.047619 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
9c1aeca5ed1dd36903dba1e615397cafebd1c0db | 94 | py | Python | __init__.py | hanscje/PySearch | 22d551f5fa5c41cc82e9e8205f0dcea78ede9338 | [
"MIT"
] | null | null | null | __init__.py | hanscje/PySearch | 22d551f5fa5c41cc82e9e8205f0dcea78ede9338 | [
"MIT"
] | null | null | null | __init__.py | hanscje/PySearch | 22d551f5fa5c41cc82e9e8205f0dcea78ede9338 | [
"MIT"
] | null | null | null | """
TODO: Shal check that all the needed packages are available before running the program
""" | 31.333333 | 86 | 0.765957 | 14 | 94 | 5.142857 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159574 | 94 | 3 | 87 | 31.333333 | 0.911392 | 0.914894 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.333333 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
9c80598b71fdb4da231003c90b85f9b59722298e | 54 | py | Python | tests/core/__init__.py | ShepardZhao/rancher | a747ac408ca34fb0bf465276f07557ec43bf9c89 | [
"Apache-2.0"
] | 1 | 2020-12-02T09:52:28.000Z | 2020-12-02T09:52:28.000Z | tests/core/__init__.py | ShepardZhao/rancher | a747ac408ca34fb0bf465276f07557ec43bf9c89 | [
"Apache-2.0"
] | 1 | 2019-05-14T04:08:43.000Z | 2019-05-14T04:08:43.000Z | tests/core/__init__.py | ShepardZhao/rancher | a747ac408ca34fb0bf465276f07557ec43bf9c89 | [
"Apache-2.0"
] | 2 | 2019-11-14T15:46:01.000Z | 2020-05-06T15:31:37.000Z | import pytest
pytest.register_assert_rewrite('core')
| 13.5 | 38 | 0.833333 | 7 | 54 | 6.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 54 | 3 | 39 | 18 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
92bc06e00a7adc7104969a186aacc3e55402a196 | 265 | py | Python | weibo_base/__init__.py | guangfeizhao/weibo-scraper | f971182fc00754b36c4bab1d8584daa825f80817 | [
"MIT"
] | 1 | 2020-12-14T05:36:58.000Z | 2020-12-14T05:36:58.000Z | weibo_base/__init__.py | billy3321/weibo-scraper | 8d1ffc9060ae7ddba217093c23ab8111f9b351c8 | [
"MIT"
] | null | null | null | weibo_base/__init__.py | billy3321/weibo-scraper | 8d1ffc9060ae7ddba217093c23ab8111f9b351c8 | [
"MIT"
] | 1 | 2020-02-08T20:14:20.000Z | 2020-02-08T20:14:20.000Z | # -*- coding:utf-8 -*-
"""
Author: Helixcs
Site: https://iliangqunru.bitcron.com/
File: __init__.py.py
Time: 5/19/18
"""
from .weibo_typing import *
from .weibo_api import *
from .weibo_component import *
from .weibo_util import *
from .weibo_parser import *
| 17.666667 | 39 | 0.701887 | 38 | 265 | 4.657895 | 0.657895 | 0.254237 | 0.338983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.150943 | 265 | 14 | 40 | 18.928571 | 0.76 | 0.418868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
92c7c76b91bced85ad2f08a1980e1d2afc806d83 | 144 | py | Python | edza_req.py | Edward-Zion-Saji/Edza-3 | 2d0169a50c60088d953c470e15707a9f3c0965aa | [
"Apache-2.0"
] | null | null | null | edza_req.py | Edward-Zion-Saji/Edza-3 | 2d0169a50c60088d953c470e15707a9f3c0965aa | [
"Apache-2.0"
] | null | null | null | edza_req.py | Edward-Zion-Saji/Edza-3 | 2d0169a50c60088d953c470e15707a9f3c0965aa | [
"Apache-2.0"
] | null | null | null | import os
import pyttsx3
import speech_recognition as sr
import wikipedia
import aiml
import wx.adv
import wolframalpha
import winsound | 16 | 32 | 0.8125 | 20 | 144 | 5.8 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.180556 | 144 | 9 | 33 | 16 | 0.974576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
92fd7e8b278eea84275d03cc6b62aba61a60c4dd | 173 | py | Python | botshop/pytorch/__init__.py | nuhame/botshop | e942ff41c0c5f22bb6232afa5975c51a0238ab9f | [
"Apache-2.0"
] | null | null | null | botshop/pytorch/__init__.py | nuhame/botshop | e942ff41c0c5f22bb6232afa5975c51a0238ab9f | [
"Apache-2.0"
] | null | null | null | botshop/pytorch/__init__.py | nuhame/botshop | e942ff41c0c5f22bb6232afa5975c51a0238ab9f | [
"Apache-2.0"
] | null | null | null | from botshop import *
from .conversation_engine import BasicConversationEngine
from .sample_and_rank import SampleAndRankConversationEngine
import botshop.pytorch.utils
| 19.222222 | 60 | 0.867052 | 18 | 173 | 8.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104046 | 173 | 8 | 61 | 21.625 | 0.948387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
134bf62abb9dda4119951ce36a1104460f764cd8 | 201 | py | Python | python/speech/cena.py | imjoseangel/100DaysOfCode | bff90569033e2b02a56e893bd45727125962aeb3 | [
"MIT"
] | 1 | 2022-03-30T12:59:44.000Z | 2022-03-30T12:59:44.000Z | python/speech/cena.py | imjoseangel/100DaysOfCode | bff90569033e2b02a56e893bd45727125962aeb3 | [
"MIT"
] | null | null | null | python/speech/cena.py | imjoseangel/100DaysOfCode | bff90569033e2b02a56e893bd45727125962aeb3 | [
"MIT"
] | 3 | 2019-08-13T11:33:36.000Z | 2022-03-08T22:00:09.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Speech Recognition"""
from __future__ import (division, absolute_import, print_function,
unicode_literals)
print('Háztela Tú')
| 25.125 | 66 | 0.641791 | 22 | 201 | 5.545455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006329 | 0.21393 | 201 | 7 | 67 | 28.714286 | 0.765823 | 0.303483 | 0 | 0 | 0 | 0 | 0.075188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.666667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 5 |
135f83261e9af7e11be4384a033f1025aeed9ab5 | 111 | py | Python | tvguide/__init__.py | Crinibus/tvguide | 869354bfa6ca574696b7d3da966af769459c42ab | [
"MIT"
] | null | null | null | tvguide/__init__.py | Crinibus/tvguide | 869354bfa6ca574696b7d3da966af769459c42ab | [
"MIT"
] | null | null | null | tvguide/__init__.py | Crinibus/tvguide | 869354bfa6ca574696b7d3da966af769459c42ab | [
"MIT"
] | null | null | null | from .format import Format
from .argument import argparse_setup
from .API import API
from .Config import Config | 27.75 | 36 | 0.828829 | 17 | 111 | 5.352941 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 111 | 4 | 37 | 27.75 | 0.947917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
13c2ad209690581366f7010427eff2edb3815d42 | 438 | py | Python | NoteBooks/Curso de Flask/Ex_Files_Full_Stack_Dev_Flask/Exercise Files/Section 3/3.3 Start/application/routes.py | Alejandro-sin/Learning_Notebooks | 161d6bed4c7b1d171b45f61c0cc6fa91e9894aad | [
"MIT"
] | 1 | 2021-02-26T13:12:22.000Z | 2021-02-26T13:12:22.000Z | NoteBooks/Curso de Flask/Ex_Files_Full_Stack_Dev_Flask/Exercise Files/Section 3/3.3 Start/application/routes.py | Alejandro-sin/Learning_Notebooks | 161d6bed4c7b1d171b45f61c0cc6fa91e9894aad | [
"MIT"
] | null | null | null | NoteBooks/Curso de Flask/Ex_Files_Full_Stack_Dev_Flask/Exercise Files/Section 3/3.3 Start/application/routes.py | Alejandro-sin/Learning_Notebooks | 161d6bed4c7b1d171b45f61c0cc6fa91e9894aad | [
"MIT"
] | null | null | null | from application import app
from flask import render_template
@app.route("/")
@app.route("/index")
@app.route("/home")
def index():
return render_template("index.html" )
@app.route("/login")
def login():
return render_template("login.html" )
@app.route("/courses")
def courses():
return ren... | 21.9 | 44 | 0.66895 | 54 | 438 | 5.333333 | 0.296296 | 0.166667 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1621 | 438 | 20 | 45 | 21.9 | 0.784741 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.125 | 0.25 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
b94d37923b5d8a093aef73cd31115cdfdbf231cc | 4,340 | py | Python | python_modules/libraries/dagster-celery-docker/dagster_celery_docker_tests/test_execute_docker.py | asamoal/dagster | 08fad28e4b608608ce090ce2e8a52c2cf9dd1b64 | [
"Apache-2.0"
] | null | null | null | python_modules/libraries/dagster-celery-docker/dagster_celery_docker_tests/test_execute_docker.py | asamoal/dagster | 08fad28e4b608608ce090ce2e8a52c2cf9dd1b64 | [
"Apache-2.0"
] | null | null | null | python_modules/libraries/dagster-celery-docker/dagster_celery_docker_tests/test_execute_docker.py | asamoal/dagster | 08fad28e4b608608ce090ce2e8a52c2cf9dd1b64 | [
"Apache-2.0"
] | null | null | null | # pylint doesn't know about pytest fixtures
# pylint: disable=unused-argument
import os
from contextlib import contextmanager
from dagster_test.test_project import (
find_local_test_image,
get_buildkite_registry_config,
get_test_project_docker_image,
get_test_project_environments_path,
get_test_pr... | 33.384615 | 100 | 0.618203 | 462 | 4,340 | 5.376623 | 0.205628 | 0.061997 | 0.073269 | 0.073269 | 0.773752 | 0.730274 | 0.730274 | 0.703704 | 0.703704 | 0.703704 | 0 | 0.000648 | 0.289171 | 4,340 | 129 | 101 | 33.643411 | 0.804538 | 0.056452 | 0 | 0.46729 | 0 | 0 | 0.181262 | 0.096869 | 0 | 0 | 0 | 0 | 0.037383 | 1 | 0.028037 | false | 0 | 0.065421 | 0 | 0.093458 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
b9835fdbdb90e73b51a7a06b1f73966fa2ffea6c | 169 | py | Python | test/test_del_group.py | ozerovadiana/python_training | a5f9e0795a64326f04bad961bf10e6829e25b957 | [
"Apache-2.0"
] | null | null | null | test/test_del_group.py | ozerovadiana/python_training | a5f9e0795a64326f04bad961bf10e6829e25b957 | [
"Apache-2.0"
] | null | null | null | test/test_del_group.py | ozerovadiana/python_training | a5f9e0795a64326f04bad961bf10e6829e25b957 | [
"Apache-2.0"
] | null | null | null | def test_delete_first__group(app):
app.session.open_home_page()
app.session.login("admin", "secret")
app.group.delete_first_group()
app.session.logout()
| 28.166667 | 40 | 0.721893 | 24 | 169 | 4.75 | 0.583333 | 0.263158 | 0.280702 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136095 | 169 | 5 | 41 | 33.8 | 0.780822 | 0 | 0 | 0 | 0 | 0 | 0.065089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
b9b83f30748ac4976035442107646aee680f0bd5 | 6,867 | py | Python | tests/api/v1/challenges/requirements/test_requirements.py | kleprevost/CTFd | 673e61c418cedfe28f5b32701e650fd89d54f737 | [
"Apache-2.0"
] | 3,592 | 2017-03-12T19:44:07.000Z | 2022-03-30T16:03:33.000Z | tests/api/v1/challenges/requirements/test_requirements.py | kleprevost/CTFd | 673e61c418cedfe28f5b32701e650fd89d54f737 | [
"Apache-2.0"
] | 1,648 | 2017-03-12T23:44:34.000Z | 2022-03-31T15:28:38.000Z | tests/api/v1/challenges/requirements/test_requirements.py | kleprevost/CTFd | 673e61c418cedfe28f5b32701e650fd89d54f737 | [
"Apache-2.0"
] | 1,736 | 2017-03-13T14:01:28.000Z | 2022-03-31T08:14:24.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from CTFd.models import Users
from CTFd.utils import set_config
from tests.helpers import (
create_ctfd,
destroy_ctfd,
gen_challenge,
gen_solve,
login_as_user,
register_user,
)
def test_api_challenges_admins_can_bypass_requirements():
"""Test ... | 39.924419 | 96 | 0.611621 | 921 | 6,867 | 4.369164 | 0.142237 | 0.037773 | 0.025845 | 0.058151 | 0.797714 | 0.762425 | 0.750746 | 0.706759 | 0.690358 | 0.67669 | 0 | 0.016453 | 0.283093 | 6,867 | 171 | 97 | 40.157895 | 0.800934 | 0.205184 | 0 | 0.746032 | 0 | 0 | 0.080222 | 0.010721 | 0 | 0 | 0 | 0 | 0.246032 | 1 | 0.039683 | false | 0.007937 | 0.02381 | 0 | 0.063492 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
b9cd70e6030a27a2bfca8cc0a446d07f4879f62c | 54 | py | Python | enthought/traits/ui/wx/tuple_editor.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/traits/ui/wx/tuple_editor.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/traits/ui/wx/tuple_editor.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from traitsui.wx.tuple_editor import *
| 18 | 38 | 0.796296 | 8 | 54 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12963 | 54 | 2 | 39 | 27 | 0.893617 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
6a11d47852db5edccc2dece46e3d79f0849a6572 | 104 | py | Python | python_programming/basics/module.py | JoshuaTPritchett/30DaysCoding | b361a4cf38dea66b43231fabf43252d202440811 | [
"Unlicense"
] | null | null | null | python_programming/basics/module.py | JoshuaTPritchett/30DaysCoding | b361a4cf38dea66b43231fabf43252d202440811 | [
"Unlicense"
] | null | null | null | python_programming/basics/module.py | JoshuaTPritchett/30DaysCoding | b361a4cf38dea66b43231fabf43252d202440811 | [
"Unlicense"
] | null | null | null |
def print_test():
print 'yo you made your first module'
test_string = 'YO THIS IS A TEST STRING'
| 14.857143 | 41 | 0.692308 | 18 | 104 | 3.888889 | 0.722222 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 104 | 6 | 42 | 17.333333 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.514563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
6a1203fdbc642a6d08478d47e681fb5f7147f985 | 141 | py | Python | src/examples/b_input_proc_output/input_process_output.py | MSGP117/acc-cosc-1336-spring-2022-MSGP117 | 46fdfa5da8f8eb887d2c79fe205b8a0064d6903d | [
"MIT"
] | null | null | null | src/examples/b_input_proc_output/input_process_output.py | MSGP117/acc-cosc-1336-spring-2022-MSGP117 | 46fdfa5da8f8eb887d2c79fe205b8a0064d6903d | [
"MIT"
] | null | null | null | src/examples/b_input_proc_output/input_process_output.py | MSGP117/acc-cosc-1336-spring-2022-MSGP117 | 46fdfa5da8f8eb887d2c79fe205b8a0064d6903d | [
"MIT"
] | 1 | 2022-02-12T03:50:32.000Z | 2022-02-12T03:50:32.000Z | #output comments variables input calculations output constants
def display_output():
print('hello')
def test_config():
return True
| 17.625 | 62 | 0.751773 | 17 | 141 | 6.117647 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 141 | 7 | 63 | 20.142857 | 0.888889 | 0.432624 | 0 | 0 | 0 | 0 | 0.064103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.25 | 0.75 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 5 |
6a23580847499a9eb038e3a7e90147a9540ff931 | 188 | py | Python | App_Blog/admin.py | nitinkumar388/Django-Blog-Web-Project | 6c3d09b342645701063b1e66523e77f62bed9db3 | [
"MIT"
] | null | null | null | App_Blog/admin.py | nitinkumar388/Django-Blog-Web-Project | 6c3d09b342645701063b1e66523e77f62bed9db3 | [
"MIT"
] | null | null | null | App_Blog/admin.py | nitinkumar388/Django-Blog-Web-Project | 6c3d09b342645701063b1e66523e77f62bed9db3 | [
"MIT"
] | null | null | null | from django.contrib import admin
from . models import Blog, Comment, Likes
# Register your models here.
admin.site.register(Blog)
admin.site.register(Comment)
admin.site.register(Likes)
| 20.888889 | 41 | 0.792553 | 27 | 188 | 5.518519 | 0.481481 | 0.181208 | 0.342282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111702 | 188 | 8 | 42 | 23.5 | 0.892216 | 0.138298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
6a34d0bfcfffc4e8bc4393987008b63a98f2f380 | 75 | py | Python | vk/bot_framework/addons/caching/__init__.py | Inzilkin/vk.py | 969f01e666c877c1761c3629a100768f93de27eb | [
"MIT"
] | 24 | 2019-09-13T15:30:09.000Z | 2022-03-09T06:35:59.000Z | vk/bot_framework/addons/caching/__init__.py | Inzilkin/vk.py | 969f01e666c877c1761c3629a100768f93de27eb | [
"MIT"
] | null | null | null | vk/bot_framework/addons/caching/__init__.py | Inzilkin/vk.py | 969f01e666c877c1761c3629a100768f93de27eb | [
"MIT"
] | 12 | 2019-09-13T15:30:31.000Z | 2022-03-01T10:13:32.000Z | from .cached_object import CachedResponse
from .core import cached_handler
| 25 | 41 | 0.866667 | 10 | 75 | 6.3 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106667 | 75 | 2 | 42 | 37.5 | 0.940299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
dbe78957586ae5ab09fb4416c50b690db7cc080c | 7,050 | py | Python | tests/components/xiaomi_miio/test_config_flow.py | miccico/core | 14c205384171dee59c1a908f8449f9864778b2dc | [
"Apache-2.0"
] | 6 | 2017-08-02T19:26:39.000Z | 2020-03-14T22:47:41.000Z | tests/components/xiaomi_miio/test_config_flow.py | miccico/core | 14c205384171dee59c1a908f8449f9864778b2dc | [
"Apache-2.0"
] | 57 | 2020-10-15T06:47:00.000Z | 2022-03-31T06:11:18.000Z | tests/components/xiaomi_miio/test_config_flow.py | miccico/core | 14c205384171dee59c1a908f8449f9864778b2dc | [
"Apache-2.0"
] | 14 | 2018-08-19T16:28:26.000Z | 2021-09-02T18:26:53.000Z | """Test the Xiaomi Miio config flow."""
from unittest.mock import Mock, patch
from miio import DeviceException
from homeassistant import config_entries
from homeassistant.components import zeroconf
from homeassistant.components.xiaomi_miio import config_flow, const
from homeassistant.const import CONF_HOST, CONF_NAME... | 31.900452 | 88 | 0.673475 | 853 | 7,050 | 5.280188 | 0.123095 | 0.095915 | 0.043295 | 0.060613 | 0.742007 | 0.737123 | 0.710924 | 0.710924 | 0.701821 | 0.668517 | 0 | 0.009823 | 0.205816 | 7,050 | 220 | 89 | 32.045455 | 0.794606 | 0.009929 | 0 | 0.627219 | 0 | 0 | 0.170769 | 0.084929 | 0 | 0 | 0 | 0 | 0.213018 | 1 | 0.005917 | false | 0 | 0.035503 | 0 | 0.047337 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
e0197a3c0ebbf95901f953695fc181d52df6f4d2 | 222 | py | Python | Configuration/Geometry/python/GeometrySimTracker_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Configuration/Geometry/python/GeometrySimTracker_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Configuration/Geometry/python/GeometrySimTracker_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
# Ideal geometry, needed for simulation
from Geometry.CMSCommonData.trackerOnlyGeometryXML_cfi import *
from Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi import *
| 37 | 75 | 0.869369 | 23 | 222 | 8.304348 | 0.73913 | 0.125654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085586 | 222 | 5 | 76 | 44.4 | 0.940887 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
e0208da88932e790e06146f6491bc63b820d9c7c | 134 | py | Python | CityProject/CityProjectApp/admin.py | cs-fullstack-2019-spring/django-fields-widgets-cw-clyde5649 | 5150f3aa4ed8c8fe99e30d23974f357c56a5705a | [
"Apache-2.0"
] | null | null | null | CityProject/CityProjectApp/admin.py | cs-fullstack-2019-spring/django-fields-widgets-cw-clyde5649 | 5150f3aa4ed8c8fe99e30d23974f357c56a5705a | [
"Apache-2.0"
] | null | null | null | CityProject/CityProjectApp/admin.py | cs-fullstack-2019-spring/django-fields-widgets-cw-clyde5649 | 5150f3aa4ed8c8fe99e30d23974f357c56a5705a | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import CityApplication
# Register your models here.
admin.site.register(CityApplication) | 33.5 | 36 | 0.843284 | 17 | 134 | 6.647059 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097015 | 134 | 4 | 36 | 33.5 | 0.933884 | 0.19403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 5 |
0ec6d6bd2d1889a6708eff6b20bbb06042f1b764 | 209 | py | Python | sindy_bvp/differentiators/__init__.py | sheadan/SINDy-BVP | ac5b2bb4854bb311e4f6f26b180dde87cc10c13d | [
"MIT"
] | 8 | 2020-05-19T23:56:39.000Z | 2022-03-04T19:22:56.000Z | sindy_bvp/differentiators/__init__.py | sheadan/SINDy-BVP | ac5b2bb4854bb311e4f6f26b180dde87cc10c13d | [
"MIT"
] | null | null | null | sindy_bvp/differentiators/__init__.py | sheadan/SINDy-BVP | ac5b2bb4854bb311e4f6f26b180dde87cc10c13d | [
"MIT"
] | 3 | 2020-08-07T17:57:02.000Z | 2021-03-19T23:44:44.000Z | from .base_differentiator import BaseDifferentiator
from .finite_differences import FiniteDifferences
from .poly_interp import PolyInterp
__all__ = ["base_differentiator", "finite_differences", "poly_interp"] | 41.8 | 70 | 0.851675 | 22 | 209 | 7.636364 | 0.545455 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08134 | 209 | 5 | 70 | 41.8 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
0ee1b0021f210f5332c8eed34b44e32e59c82f7d | 4,687 | py | Python | tests/tests.py | LLNL/spdlayers | 27e0dc2ac16ed89c559b0ac78fb9cb2784f1e7ca | [
"MIT"
] | null | null | null | tests/tests.py | LLNL/spdlayers | 27e0dc2ac16ed89c559b0ac78fb9cb2784f1e7ca | [
"MIT"
] | 2 | 2021-12-01T21:02:46.000Z | 2022-02-06T23:05:51.000Z | tests/tests.py | LLNL/spdlayers | 27e0dc2ac16ed89c559b0ac78fb9cb2784f1e7ca | [
"MIT"
] | null | null | null | # Copyright 2021, Lawrence Livermore National Security, LLC and spdlayer
# contributors
# SPDX-License-Identifier: MIT
import unittest
import numpy as np
import torch
import torch.nn as nn
from spdlayers import Eigen, Cholesky
from spdlayers import in_shape_from
positive_funs = ['Abs', 'Square', 'Softplus', 'ReLU', '... | 31.884354 | 74 | 0.574781 | 562 | 4,687 | 4.564057 | 0.186833 | 0.092788 | 0.042105 | 0.031189 | 0.785965 | 0.764912 | 0.764912 | 0.760234 | 0.760234 | 0.727096 | 0 | 0.023629 | 0.322808 | 4,687 | 146 | 75 | 32.10274 | 0.784499 | 0.023896 | 0 | 0.669355 | 0 | 0 | 0.022315 | 0 | 0 | 0 | 0 | 0 | 0.145161 | 1 | 0.080645 | false | 0 | 0.048387 | 0 | 0.137097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
0ef058555d5e6fbc64092ed9c182475e2cc548ab | 140 | py | Python | hack/nmapportscan/index.py | MisterZhouZhou/pythonLearn | 8933c7a6d444d3d86a173984e6cf4c08dbf84039 | [
"Apache-2.0"
] | 1 | 2019-07-09T09:59:39.000Z | 2019-07-09T09:59:39.000Z | hack/nmapportscan/index.py | MisterZhouZhou/pythonLearn | 8933c7a6d444d3d86a173984e6cf4c08dbf84039 | [
"Apache-2.0"
] | null | null | null | hack/nmapportscan/index.py | MisterZhouZhou/pythonLearn | 8933c7a6d444d3d86a173984e6cf4c08dbf84039 | [
"Apache-2.0"
] | null | null | null | import subprocess
if __name__ == '__main__':
subprocess.call("python3 nmap.py -H www.baidu.com -p 21,22,25,80,143,145,443", shell=True) | 35 | 94 | 0.714286 | 24 | 140 | 3.833333 | 0.958333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 0.121429 | 140 | 4 | 94 | 35 | 0.601626 | 0 | 0 | 0 | 0 | 0.333333 | 0.475177 | 0.163121 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
1622a6a6c5d6abb5f0578d05e5b5784c58372929 | 373 | py | Python | atest/testdata/standard_libraries/builtin/RegisteringLibrary.py | phil-davis/robotframework | 4d4ce686cbe01e293bb86ea6ff34330e8c45fc43 | [
"ECL-2.0",
"Apache-2.0"
] | 7,073 | 2015-01-01T17:19:16.000Z | 2022-03-31T22:01:29.000Z | atest/testdata/standard_libraries/builtin/RegisteringLibrary.py | phil-davis/robotframework | 4d4ce686cbe01e293bb86ea6ff34330e8c45fc43 | [
"ECL-2.0",
"Apache-2.0"
] | 2,412 | 2015-01-02T09:29:05.000Z | 2022-03-31T13:10:46.000Z | atest/testdata/standard_libraries/builtin/RegisteringLibrary.py | phil-davis/robotframework | 4d4ce686cbe01e293bb86ea6ff34330e8c45fc43 | [
"ECL-2.0",
"Apache-2.0"
] | 2,298 | 2015-01-03T02:47:15.000Z | 2022-03-31T02:00:16.000Z | from robot.libraries.BuiltIn import BuiltIn, register_run_keyword
def run_keyword_function(name, *args):
return BuiltIn().run_keyword(name, *args)
register_run_keyword(__name__, 'run_keyword_function', 1)
def run_keyword_without_keyword(*args):
return BuiltIn().run_keyword('\Log Many', *args)
register_run... | 26.642857 | 65 | 0.790885 | 51 | 373 | 5.27451 | 0.352941 | 0.334572 | 0.200743 | 0.148699 | 0.468401 | 0.267658 | 0.267658 | 0 | 0 | 0 | 0 | 0.005952 | 0.099196 | 373 | 13 | 66 | 28.692308 | 0.794643 | 0 | 0 | 0 | 0 | 0 | 0.150134 | 0.072386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.285714 | 0.714286 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
162617b4649a84f41a26ecbf6666cbe9336a999c | 113 | py | Python | msbd/modello_lineare/__init__.py | mnslarcher/metodi-statistici-big-data | 4587b4e4104557e50d09d028259d6c42c44d2814 | [
"MIT"
] | 1 | 2019-02-17T09:28:04.000Z | 2019-02-17T09:28:04.000Z | msbd/modello_lineare/__init__.py | mnslarcher/metodi-statistici-big-data | 4587b4e4104557e50d09d028259d6c42c44d2814 | [
"MIT"
] | null | null | null | msbd/modello_lineare/__init__.py | mnslarcher/metodi-statistici-big-data | 4587b4e4104557e50d09d028259d6c42c44d2814 | [
"MIT"
] | null | null | null | from .modello_lineare_dinamico import ModelloLineareDinamico
from .regressione_lineare import RegressioneLineare
| 37.666667 | 60 | 0.911504 | 11 | 113 | 9.090909 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070796 | 113 | 2 | 61 | 56.5 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
162e0ccb9cee7a5df9964472aa620f9d9218f291 | 157 | py | Python | elrte/tests.py | joonas/django-elrte | 6ec0db03d30d0c3dd0314ef48eecdb23280ec8df | [
"Apache-2.0"
] | 1 | 2016-03-22T08:15:14.000Z | 2016-03-22T08:15:14.000Z | elrte/tests.py | joonas/django-elrte | 6ec0db03d30d0c3dd0314ef48eecdb23280ec8df | [
"Apache-2.0"
] | null | null | null | elrte/tests.py | joonas/django-elrte | 6ec0db03d30d0c3dd0314ef48eecdb23280ec8df | [
"Apache-2.0"
] | null | null | null | from django.test import TestCase
class django-elrteTest(TestCase):
"""
Tests for django-elrte
"""
def test_django-elrte(self):
pass | 17.444444 | 33 | 0.649682 | 19 | 157 | 5.315789 | 0.684211 | 0.217822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248408 | 157 | 9 | 34 | 17.444444 | 0.855932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.25 | 0.25 | null | null | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
16359ad8ccd9071e20bd8e57d23fdafdf0f7a4ee | 442 | py | Python | 120-Raise/Script.py | dikyindrah/Python-Pemrograman-Dasar-02 | 7b60391d348504eea8ebc36896857e3e92fda3f7 | [
"MIT"
] | null | null | null | 120-Raise/Script.py | dikyindrah/Python-Pemrograman-Dasar-02 | 7b60391d348504eea8ebc36896857e3e92fda3f7 | [
"MIT"
] | null | null | null | 120-Raise/Script.py | dikyindrah/Python-Pemrograman-Dasar-02 | 7b60391d348504eea8ebc36896857e3e92fda3f7 | [
"MIT"
] | null | null | null | # input -1
n = int(input('input nilai: '))
if n <= 0:
# Menentukan pengecualian & teks yang akan di tampilkan
raise ValueError('nilai n harus bilangan positif')
try:
n = int(input('input nilai: '))
if n <= 0:
# Menentukan pengecualian & teks yang akan di tampilkan
raise ValueError('nil... | 29.466667 | 63 | 0.669683 | 59 | 442 | 5.016949 | 0.457627 | 0.027027 | 0.060811 | 0.094595 | 0.736486 | 0.736486 | 0.736486 | 0.736486 | 0.736486 | 0.736486 | 0 | 0.008902 | 0.237557 | 442 | 15 | 64 | 29.466667 | 0.869436 | 0.371041 | 0 | 0.666667 | 0 | 0 | 0.313869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
163cae4a826b44ed65d6e531e900e084681bfa6c | 2,306 | py | Python | tests/test_catz2nsd_config.py | kirei/catz | 419629bc3089ae22b94e9568668bcbc0ddd9243c | [
"BSD-2-Clause"
] | null | null | null | tests/test_catz2nsd_config.py | kirei/catz | 419629bc3089ae22b94e9568668bcbc0ddd9243c | [
"BSD-2-Clause"
] | null | null | null | tests/test_catz2nsd_config.py | kirei/catz | 419629bc3089ae22b94e9568668bcbc0ddd9243c | [
"BSD-2-Clause"
] | null | null | null | import os.path
from pathlib import Path
import pytest
from dnscatz import catz2nsd
from dnscatz.catz2nsd import CatalogZoneError, InvalidConfigurationError
DATADIR = Path(os.path.abspath(os.path.dirname(__file__))) / "data"
CONFIG_GOOD = """
catalog-zone:
name: test.catz
zonefile: good.zone
pattern: ns1
key:... | 20.963636 | 72 | 0.751951 | 265 | 2,306 | 6.313208 | 0.188679 | 0.064555 | 0.053796 | 0.068141 | 0.830843 | 0.809922 | 0.727436 | 0.678422 | 0.678422 | 0.678422 | 0 | 0.058252 | 0.151344 | 2,306 | 109 | 73 | 21.155963 | 0.796627 | 0 | 0 | 0.722892 | 0 | 0 | 0.457069 | 0.129228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060241 | false | 0 | 0.060241 | 0 | 0.120482 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
16cd6bc757c70661ee483d392cc5fa510608682f | 6,540 | py | Python | zephyrus_sc2_parser/gamedata/16939/ability_data.py | dareonion/zephyrus-sc2-parser | 0e31ac86e4546466eba44f37ed13ab2880fe5d39 | [
"MIT"
] | 28 | 2020-03-11T14:07:12.000Z | 2022-03-24T23:53:08.000Z | zephyrus_sc2_parser/gamedata/16939/ability_data.py | dareonion/zephyrus-sc2-parser | 0e31ac86e4546466eba44f37ed13ab2880fe5d39 | [
"MIT"
] | 19 | 2020-06-25T11:59:43.000Z | 2022-03-27T23:11:00.000Z | zephyrus_sc2_parser/gamedata/16939/ability_data.py | dareonion/zephyrus-sc2-parser | 0e31ac86e4546466eba44f37ed13ab2880fe5d39 | [
"MIT"
] | 4 | 2020-06-24T21:12:15.000Z | 2021-11-19T15:27:35.000Z | # Version 16939
abilities = {36: {'ability_name': 'stop'}, 38: {'ability_name': 'move'}, 45: {'ability_name': 'attack'}, 60: {'ability_name': 'GhostHoldFire'}, 61: {'ability_name': 'GhostWeaponsFree'}, 63: {'ability_name': 'Explode'}, 65: {'ability_name': 'FungalGrowth', 'energy_cost': 75}, 66: {'ability_name': 'Guardi... | 3,270 | 6,524 | 0.709021 | 673 | 6,540 | 6.627043 | 0.429421 | 0.342825 | 0.04843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079431 | 0.075994 | 6,540 | 2 | 6,524 | 3,270 | 0.658613 | 0.001988 | 0 | 0 | 0 | 0 | 0.634692 | 0.055624 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
16d641b8ece693de878165602cafdd15a18edefb | 548 | py | Python | grains/shortname.py | beornf/salt-contrib | 062355938ad1cced273056e9c23dc344c6a2c858 | [
"Apache-2.0"
] | 111 | 2015-01-16T02:48:12.000Z | 2022-02-08T10:24:56.000Z | grains/shortname.py | beornf/salt-contrib | 062355938ad1cced273056e9c23dc344c6a2c858 | [
"Apache-2.0"
] | 60 | 2015-01-06T12:28:44.000Z | 2020-12-01T21:30:38.000Z | grains/shortname.py | beornf/salt-contrib | 062355938ad1cced273056e9c23dc344c6a2c858 | [
"Apache-2.0"
] | 163 | 2015-01-06T09:40:31.000Z | 2022-02-03T11:41:23.000Z | # -*- coding: utf-8 -*-
'''
:codeauthor: Nick Soracco
:copyright: © 2015 by Nick Soracco
:license: BSD
salt.grains.shortname
~~~~~~~~~~~~~~~~~~~~~~~
Returns a string of the shortname of the machine, courtesy of
os.uname()[1].split('.')[0]
FIXME: Only works in Linux, requires uname() s... | 21.92 | 72 | 0.609489 | 70 | 548 | 4.714286 | 0.671429 | 0.066667 | 0.048485 | 0.078788 | 0.084848 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021028 | 0.218978 | 548 | 24 | 73 | 22.833333 | 0.747664 | 0.662409 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0.25 | true | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
16e8bb424790f32f99be45b8ec717db153a65007 | 5,678 | py | Python | tests/open_alchemy/schemas/foreign_key/test_process.py | MihailMiller/OpenAlchemy | 55b751c58ca50706ebc46262f50addb7dec34278 | [
"Apache-2.0"
] | 40 | 2019-11-05T06:50:35.000Z | 2022-03-09T01:34:57.000Z | tests/open_alchemy/schemas/foreign_key/test_process.py | MihailMiller/OpenAlchemy | 55b751c58ca50706ebc46262f50addb7dec34278 | [
"Apache-2.0"
] | 178 | 2019-11-03T04:10:38.000Z | 2022-03-31T00:07:17.000Z | tests/open_alchemy/schemas/foreign_key/test_process.py | MihailMiller/OpenAlchemy | 55b751c58ca50706ebc46262f50addb7dec34278 | [
"Apache-2.0"
] | 17 | 2019-11-04T07:22:46.000Z | 2022-03-23T05:29:49.000Z | """Tests for foreign key schemas processing."""
import pytest
from open_alchemy.schemas import foreign_key
PROCESS_TESTS = [
pytest.param(
{},
{},
id="empty",
),
pytest.param(
{
"Schema1": {
"x-tablename": "schema_1",
"properties... | 32.632184 | 87 | 0.346601 | 380 | 5,678 | 4.978947 | 0.163158 | 0.066596 | 0.057082 | 0.067653 | 0.765328 | 0.743658 | 0.729387 | 0.704545 | 0.698732 | 0.698732 | 0 | 0.024026 | 0.516203 | 5,678 | 173 | 88 | 32.820809 | 0.664725 | 0.036457 | 0 | 0.575 | 0 | 0 | 0.293122 | 0.034204 | 0 | 0 | 0 | 0 | 0.00625 | 1 | 0.00625 | false | 0 | 0.0125 | 0 | 0.01875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
bc6d04fc828dab50345d4be44bb7f48039896224 | 47 | py | Python | run_generator.py | Syed2135/StyleGAN2 | 34e74aee7b72c9337b58c8e8c0446941fddbd1de | [
"BSD-Source-Code"
] | null | null | null | run_generator.py | Syed2135/StyleGAN2 | 34e74aee7b72c9337b58c8e8c0446941fddbd1de | [
"BSD-Source-Code"
] | null | null | null | run_generator.py | Syed2135/StyleGAN2 | 34e74aee7b72c9337b58c8e8c0446941fddbd1de | [
"BSD-Source-Code"
] | null | null | null | import os as alpha
alpha.system("nvidia-smi")
| 15.666667 | 26 | 0.744681 | 8 | 47 | 4.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 47 | 2 | 27 | 23.5 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
bc7b460fcb85b72557ba141c95d687dbc76ab34d | 48 | py | Python | pyns2/siml/error.py | terassyi/netns-siml | 6019a73e58e8defaed00111598e5fcca31208a5d | [
"MIT"
] | 2 | 2020-12-22T16:30:18.000Z | 2021-01-23T08:32:01.000Z | pyns2/siml/error.py | terassyi/netns-siml | 6019a73e58e8defaed00111598e5fcca31208a5d | [
"MIT"
] | 1 | 2020-12-20T12:16:27.000Z | 2020-12-20T12:16:27.000Z | pyns2/siml/error.py | terassyi/pyns2 | 6019a73e58e8defaed00111598e5fcca31208a5d | [
"MIT"
] | null | null | null |
class SimlCreateException(Exception):
pass
| 12 | 37 | 0.770833 | 4 | 48 | 9.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 48 | 3 | 38 | 16 | 0.925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
bca94085f378a1a20aefc8bfadc55026742264c4 | 160 | py | Python | luna/gateware/test/__init__.py | gregdavill/luna | f42e64d5ce0b3cf840e985d4427deac5b050e31b | [
"BSD-3-Clause"
] | 4 | 2020-02-11T18:40:02.000Z | 2020-04-03T13:07:38.000Z | luna/gateware/test/__init__.py | ktemkin/luna | 661dc89f7f60ba8a51165f7f8037ad2d5854cf34 | [
"BSD-3-Clause"
] | null | null | null | luna/gateware/test/__init__.py | ktemkin/luna | 661dc89f7f60ba8a51165f7f8037ad2d5854cf34 | [
"BSD-3-Clause"
] | 1 | 2021-01-16T00:40:49.000Z | 2021-01-16T00:40:49.000Z | #
# This file is part of LUNA.
#
from .utils import \
LunaGatewareTestCase, \
sync_test_case, \
ulpi_domain_test_case, \
fast_domain_test_case
| 16 | 28 | 0.69375 | 21 | 160 | 4.904762 | 0.761905 | 0.23301 | 0.271845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23125 | 160 | 9 | 29 | 17.777778 | 0.837398 | 0.1625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.