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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
621473cc0dea916695c341578ae6bebd99ab30cf | 173 | py | Python | tests/unit/output/schema/__init__.py | jaebradley/draftkings_client | 8db4484f293df3c65c48d62d972b71df95f5ea3d | [
"MIT"
] | 111 | 2017-01-07T13:32:00.000Z | 2022-03-07T22:58:11.000Z | tests/unit/output/schema/__init__.py | jaebradley/draftkings_client | 8db4484f293df3c65c48d62d972b71df95f5ea3d | [
"MIT"
] | 56 | 2016-11-14T05:50:44.000Z | 2022-01-18T23:27:44.000Z | tests/unit/output/schema/__init__.py | jaebradley/draftkings_client | 8db4484f293df3c65c48d62d972b71df95f5ea3d | [
"MIT"
] | 39 | 2017-01-25T01:57:09.000Z | 2021-12-29T06:57:31.000Z | """
Represents tests defined in the draft_kings.output.schema module.
Most tests center around serializing / deserializing output objects using the marshmallow library
"""
| 28.833333 | 97 | 0.809249 | 22 | 173 | 6.318182 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132948 | 173 | 5 | 98 | 34.6 | 0.926667 | 0.947977 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 4 |
6234529bcbfa06980d8cc0d8e4a9cc3d90c397ba | 210,875 | py | Python | unick.py | j3-141592/unick-leaked-scraping | b46ddde6ee01caf10f950650cccf1f66663e4a0d | [
"MIT"
] | null | null | null | unick.py | j3-141592/unick-leaked-scraping | b46ddde6ee01caf10f950650cccf1f66663e4a0d | [
"MIT"
] | null | null | null | unick.py | j3-141592/unick-leaked-scraping | b46ddde6ee01caf10f950650cccf1f66663e4a0d | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
import time
N_TO_BREATH = 10 #Number of lines processed to take a breath (breath to bypass the firewall)
TIME_TO_BREATH = 30 #Number in seconds of the breath (Caution on trying to be faster)
#Base URL from the Unick Forex Leaked page
base_url = 'https://unickbgv.000webhos... | 6,025 | 209,424 | 0.823905 | 36,948 | 210,875 | 4.701662 | 0.99613 | 0.000276 | 0.000155 | 0.000184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.820206 | 0.001347 | 210,875 | 35 | 209,425 | 6,025 | 0.004696 | 0.003504 | 0 | 0 | 0 | 0 | 0.000319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
623752449739933b8792bc8b9f35324d3a0132a2 | 171 | py | Python | src/main.py | rodfloripa/py-greenhouse | daf0d6e064f3ca3e7eafcd15a81c9183156b43fc | [
"Apache-2.0"
] | null | null | null | src/main.py | rodfloripa/py-greenhouse | daf0d6e064f3ca3e7eafcd15a81c9183156b43fc | [
"Apache-2.0"
] | null | null | null | src/main.py | rodfloripa/py-greenhouse | daf0d6e064f3ca3e7eafcd15a81c9183156b43fc | [
"Apache-2.0"
] | null | null | null | import data_sourcing
from prefect import Flow, task
@task
def sourcing():
return data_sourcing.get()
with Flow("greenhouse") as flow:
sourcing()
flow.run()
| 10.6875 | 32 | 0.701754 | 23 | 171 | 5.130435 | 0.608696 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192982 | 171 | 15 | 33 | 11.4 | 0.855072 | 0 | 0 | 0 | 0 | 0 | 0.05848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.25 | 0.125 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
6242e6e1c497f5f3784c1d52e801640726f28ea2 | 65 | py | Python | client/verta/verta/integrations/__init__.py | fool-sec-review/modeldb | 44e7f3c1af6768c4c23a2d134f9a322fcf0320b5 | [
"Apache-2.0"
] | 835 | 2017-02-08T20:14:24.000Z | 2020-03-12T17:37:49.000Z | client/verta/verta/integrations/__init__.py | fool-sec-review/modeldb | 44e7f3c1af6768c4c23a2d134f9a322fcf0320b5 | [
"Apache-2.0"
] | 651 | 2019-04-18T12:55:07.000Z | 2022-03-31T23:45:09.000Z | client/verta/verta/integrations/__init__.py | fool-sec-review/modeldb | 44e7f3c1af6768c4c23a2d134f9a322fcf0320b5 | [
"Apache-2.0"
] | 170 | 2017-02-13T14:49:22.000Z | 2020-02-19T17:59:12.000Z | """Automated logging support for common scientific libraries."""
| 32.5 | 64 | 0.784615 | 7 | 65 | 7.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107692 | 65 | 1 | 65 | 65 | 0.87931 | 0.892308 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 4 |
624ff6a5353a55142445b0f904f36097e9f3a48e | 146 | py | Python | code2code/main.py | liukunup/workspace | 4198da23c6b9b4e12b0f4092c19cd1622e9bedc4 | [
"MIT"
] | 1 | 2021-08-29T04:35:21.000Z | 2021-08-29T04:35:21.000Z | code2code/main.py | liukunup/workspace | 4198da23c6b9b4e12b0f4092c19cd1622e9bedc4 | [
"MIT"
] | null | null | null | code2code/main.py | liukunup/workspace | 4198da23c6b9b4e12b0f4092c19cd1622e9bedc4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# author : Liu Kun
# date : 2021-09-19 23:39:01
import json
import re
import time
import requests
| 11.230769 | 30 | 0.643836 | 24 | 146 | 3.916667 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12931 | 0.205479 | 146 | 12 | 31 | 12.166667 | 0.681034 | 0.575342 | 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 | 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 | 4 |
625ffba842f0bb96e5a81a9f336bf62d17f7a5de | 43,092 | py | Python | catboost/python-package/ut/medium/canondata/test.test_export_to_python_no_cat_features_CPU-40_/model.py | ZhekehZ/catboost | 3f774da539b8e57cca25686b89c473cbd1f61a6c | [
"Apache-2.0"
] | null | null | null | catboost/python-package/ut/medium/canondata/test.test_export_to_python_no_cat_features_CPU-40_/model.py | ZhekehZ/catboost | 3f774da539b8e57cca25686b89c473cbd1f61a6c | [
"Apache-2.0"
] | 6 | 2020-02-18T22:12:29.000Z | 2020-02-18T22:31:26.000Z | catboost/python-package/ut/medium/canondata/test.test_export_to_python_no_cat_features_CPU-40_/model.py | ZhekehZ/catboost | 3f774da539b8e57cca25686b89c473cbd1f61a6c | [
"Apache-2.0"
] | null | null | null | ### Model data
class catboost_model(object):
float_features_index = [
0, 1, 2, 4, 5, 6, 8, 12, 13, 14, 15, 16, 17, 18, 20, 22, 23, 24, 27, 28, 31, 33, 35, 37, 38, 39, 46, 47, 48,
]
float_feature_count = 50
cat_feature_count = 0
binary_feature_count = 29
tree_count = 40
float_feature... | 232.92973 | 1,209 | 0.738954 | 5,682 | 43,092 | 5.56811 | 0.291271 | 0.092989 | 0.084866 | 0.087237 | 0.056198 | 0.047664 | 0.036317 | 0.027846 | 0.020766 | 0.018775 | 0 | 0.761169 | 0.117446 | 43,092 | 184 | 1,210 | 234.195652 | 0.070732 | 0.015734 | 0 | 0.10274 | 0 | 0 | 0.000236 | 0 | 0 | 0 | 0.000236 | 0 | 0.013699 | 1 | 0.013699 | false | 0 | 0 | 0.006849 | 0.150685 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
65a3c3090b54b05efc139063e2874deec1d50341 | 117 | py | Python | billy2pupa/fl.py | backwardn/billy | 07ac788d25a6c79d03dd0e3d55459bbb55e22439 | [
"BSD-3-Clause"
] | 33 | 2016-11-05T07:25:48.000Z | 2022-01-31T03:40:43.000Z | billy2pupa/fl.py | backwardn/billy | 07ac788d25a6c79d03dd0e3d55459bbb55e22439 | [
"BSD-3-Clause"
] | 16 | 2015-02-05T21:25:58.000Z | 2015-09-18T20:27:06.000Z | billy2pupa/fl.py | backwardn/billy | 07ac788d25a6c79d03dd0e3d55459bbb55e22439 | [
"BSD-3-Clause"
] | 22 | 2015-03-23T07:13:20.000Z | 2016-06-10T04:41:06.000Z | from openstatesapi.jurisdiction import make_jurisdiction
J = make_jurisdiction('fl')
J.url = 'http://myflorida.com'
| 23.4 | 56 | 0.786325 | 15 | 117 | 6 | 0.733333 | 0.355556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094017 | 117 | 4 | 57 | 29.25 | 0.849057 | 0 | 0 | 0 | 0 | 0 | 0.188034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 4 |
65ad2a278ad6df49cd892cd3302f8669dd739afd | 219 | py | Python | src/generate_artificial.py | ozansener/egocentric-object | ea7cd43e2e795f16dd3df80843b11f0e6443839d | [
"MIT"
] | null | null | null | src/generate_artificial.py | ozansener/egocentric-object | ea7cd43e2e795f16dd3df80843b11f0e6443839d | [
"MIT"
] | null | null | null | src/generate_artificial.py | ozansener/egocentric-object | ea7cd43e2e795f16dd3df80843b11f0e6443839d | [
"MIT"
] | null | null | null | from artificial_mnist import ArtificialMnist
data_generator = ArtificialMnist()
data_generator.get_n_random_samples(60000, './MNIST_a/train_data/')
data_generator.get_n_random_samples(10000, './MNIST_a/test_data/')
| 24.333333 | 67 | 0.826484 | 30 | 219 | 5.566667 | 0.533333 | 0.233533 | 0.335329 | 0.203593 | 0.359281 | 0.359281 | 0 | 0 | 0 | 0 | 0 | 0.04902 | 0.068493 | 219 | 8 | 68 | 27.375 | 0.769608 | 0 | 0 | 0 | 0 | 0 | 0.188073 | 0.09633 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
65c003852412c52e42ff0d1125159af4573229b5 | 957 | py | Python | packages/w3af/w3af/core/ui/api/resources/index.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | 3 | 2019-04-09T22:59:33.000Z | 2019-06-14T09:23:24.000Z | tools/w3af/w3af/core/ui/api/resources/index.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | tools/w3af/w3af/core/ui/api/resources/index.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | """
index.py
Copyright 2015 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
w3af is distributed in the hope that it wi... | 30.870968 | 77 | 0.763845 | 160 | 957 | 4.55625 | 0.61875 | 0.049383 | 0.053498 | 0.078189 | 0.159122 | 0.076818 | 0 | 0 | 0 | 0 | 0 | 0.029814 | 0.15883 | 957 | 30 | 78 | 31.9 | 0.875776 | 0.724138 | 0 | 0 | 0 | 0 | 0.207843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.428571 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
02c9558c0a1e62e9dd5dce1034cec40ff106e1f2 | 203 | py | Python | crud/admin.py | OuroborosD/03-PiggoV2 | 0fdabfeca3a29cf0cfb87f120506ad517ee75ce6 | [
"MIT"
] | null | null | null | crud/admin.py | OuroborosD/03-PiggoV2 | 0fdabfeca3a29cf0cfb87f120506ad517ee75ce6 | [
"MIT"
] | null | null | null | crud/admin.py | OuroborosD/03-PiggoV2 | 0fdabfeca3a29cf0cfb87f120506ad517ee75ce6 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import Receita,Despesa,Emprestimo
admin.site.register(Receita)
admin.site.register(Despesa)
admin.site.register(Emprestimo) | 18.454545 | 46 | 0.812808 | 27 | 203 | 6.111111 | 0.481481 | 0.163636 | 0.309091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098522 | 203 | 11 | 47 | 18.454545 | 0.901639 | 0.128079 | 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 | 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 | 4 |
02d4f4b5c7bb4b905f0307569c85891ef2aa2a2c | 714 | py | Python | poky-dunfell/bitbake/lib/toaster/tests/browser/selenium_helpers.py | lacie-life/YoctoPi | 3412e78468a9b84da50bb1aadb12b459001a3712 | [
"MIT"
] | 14 | 2021-11-04T07:47:37.000Z | 2022-03-21T10:10:30.000Z | poky-dunfell/bitbake/lib/toaster/tests/browser/selenium_helpers.py | lacie-life/YoctoPi | 3412e78468a9b84da50bb1aadb12b459001a3712 | [
"MIT"
] | null | null | null | poky-dunfell/bitbake/lib/toaster/tests/browser/selenium_helpers.py | lacie-life/YoctoPi | 3412e78468a9b84da50bb1aadb12b459001a3712 | [
"MIT"
] | 6 | 2021-11-02T10:56:19.000Z | 2022-03-06T11:58:20.000Z | #! /usr/bin/env python3
#
# BitBake Toaster Implementation
#
# Copyright (C) 2013-2016 Intel Corporation
#
# SPDX-License-Identifier: GPL-2.0-only
#
# The Wait class and some of SeleniumDriverHelper and SeleniumTestCase are
# modified from Patchwork, released under the same licence terms as Toaster:
# https://github.co... | 32.454545 | 78 | 0.810924 | 88 | 714 | 6.556818 | 0.761364 | 0.041594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017378 | 0.113445 | 714 | 21 | 79 | 34 | 0.894155 | 0.644258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
02e65bd48691c61957de2ecbdc08f085bb744a1c | 273 | py | Python | Visualization/EndGameScreen.py | frosthamster/Tower-defense | 0bf373d935265e4941d1ff1b7c78a15522eef548 | [
"Unlicense"
] | 1 | 2020-02-20T21:30:20.000Z | 2020-02-20T21:30:20.000Z | Visualization/EndGameScreen.py | frosthamster/Tower-defense | 0bf373d935265e4941d1ff1b7c78a15522eef548 | [
"Unlicense"
] | null | null | null | Visualization/EndGameScreen.py | frosthamster/Tower-defense | 0bf373d935265e4941d1ff1b7c78a15522eef548 | [
"Unlicense"
] | null | null | null | from kivy.properties import StringProperty, ObjectProperty
from kivy.uix.screenmanager import Screen
class EndGameScreen(Screen):
message_image = StringProperty('')
background = StringProperty('res/end_game_background.jpg')
game_screen = ObjectProperty(None)
| 30.333333 | 62 | 0.794872 | 29 | 273 | 7.344828 | 0.655172 | 0.075117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124542 | 273 | 8 | 63 | 34.125 | 0.891213 | 0 | 0 | 0 | 0 | 0 | 0.098901 | 0.098901 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
02ec0e53f313ad03382d4d41ade5f8e1a3137611 | 11,880 | py | Python | cuhk03/model.py | cwpeng-cn/TorchReID | e6cf1d38bfc3100ea19e3e92aa4306b79fd3517b | [
"MIT"
] | null | null | null | cuhk03/model.py | cwpeng-cn/TorchReID | e6cf1d38bfc3100ea19e3e92aa4306b79fd3517b | [
"MIT"
] | null | null | null | cuhk03/model.py | cwpeng-cn/TorchReID | e6cf1d38bfc3100ea19e3e92aa4306b79fd3517b | [
"MIT"
] | null | null | null | from . import init_env
from torch import nn
from torch.nn import functional as F
from torch.nn import init
import torchvision
import torch
import zipfile
from resnet_ibn_b import *
from reid.utils.model_save_restore import *
class STN(nn.Module):
def __init__(self):
super(STN, self).__init__()
se... | 35.675676 | 91 | 0.55968 | 1,608 | 11,880 | 3.93097 | 0.122512 | 0.050625 | 0.025312 | 0.016453 | 0.750989 | 0.72093 | 0.705426 | 0.682329 | 0.682329 | 0.682329 | 0 | 0.040614 | 0.330556 | 11,880 | 332 | 92 | 35.783133 | 0.754181 | 0.152104 | 0 | 0.706897 | 0 | 0 | 0.003021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047414 | false | 0 | 0.038793 | 0 | 0.146552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 4 |
02f345cf2ece698df9f67f871baccd7defff1ec2 | 79 | py | Python | pub_data_visualization/auctions/plot/subplot/__init__.py | l-leo/pub-data-visualization | 68eea00491424581b057495a7f0f69cf74e16e7d | [
"MIT"
] | 1 | 2021-01-22T16:47:20.000Z | 2021-01-22T16:47:20.000Z | pub_data_visualization/auctions/plot/subplot/__init__.py | l-leo/pub-data-visualization | 68eea00491424581b057495a7f0f69cf74e16e7d | [
"MIT"
] | null | null | null | pub_data_visualization/auctions/plot/subplot/__init__.py | l-leo/pub-data-visualization | 68eea00491424581b057495a7f0f69cf74e16e7d | [
"MIT"
] | null | null | null |
"""
Module for the subplots of auctions data.
"""
from .price import * | 9.875 | 45 | 0.620253 | 10 | 79 | 4.9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265823 | 79 | 8 | 46 | 9.875 | 0.844828 | 0.518987 | 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 | 0 | 0 | 0 | 4 |
f301c34a7ede06d952c51d79da1ba17c1c54ef35 | 150 | py | Python | virtual/bin/django-admin.py | LoiseMwarangu/Instagram | 1bb0791a69350e0b9a3d2864d7132c6a605360d7 | [
"MIT"
] | null | null | null | virtual/bin/django-admin.py | LoiseMwarangu/Instagram | 1bb0791a69350e0b9a3d2864d7132c6a605360d7 | [
"MIT"
] | 5 | 2020-06-05T19:59:40.000Z | 2021-09-08T00:53:31.000Z | virtual/bin/django-admin.py | LoiseMwarangu/Instagram | 1bb0791a69350e0b9a3d2864d7132c6a605360d7 | [
"MIT"
] | null | null | null | #!/home/loise/instagram/virtual/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 25 | 43 | 0.786667 | 19 | 150 | 5.631579 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.1 | 150 | 5 | 44 | 30 | 0.785185 | 0.28 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f3032f65417094eb571da930a991579fc5ad3730 | 152 | py | Python | chat_example/server.py | h-hirokawa/swampdragon | 064ee71a5838e1363b69eef9af6b1a56be96fe23 | [
"BSD-3-Clause"
] | null | null | null | chat_example/server.py | h-hirokawa/swampdragon | 064ee71a5838e1363b69eef9af6b1a56be96fe23 | [
"BSD-3-Clause"
] | null | null | null | chat_example/server.py | h-hirokawa/swampdragon | 064ee71a5838e1363b69eef9af6b1a56be96fe23 | [
"BSD-3-Clause"
] | null | null | null | import os
from swampdragon.swampdragon_server import run_server
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "chat_example.settings")
run_server()
| 21.714286 | 72 | 0.842105 | 20 | 152 | 6.1 | 0.65 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072368 | 152 | 6 | 73 | 25.333333 | 0.865248 | 0 | 0 | 0 | 0 | 0 | 0.282895 | 0.282895 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f309ce833b5249c5d49bd3ee39165b5ebedc79bc | 353 | py | Python | workspace/pynb_dag_runner/tests/tasks/jupytext_test_notebooks/notebook_ok.py | pynb-dag-runner/pynb-dag-runner | 52473a743e82080217e7924bd35fcc3362bf2335 | [
"MIT"
] | 4 | 2021-10-01T17:12:39.000Z | 2021-12-12T17:36:10.000Z | workspace/pynb_dag_runner/tests/tasks/jupytext_test_notebooks/notebook_ok.py | pynb-dag-runner/pynb-dag-runner | 52473a743e82080217e7924bd35fcc3362bf2335 | [
"MIT"
] | 1 | 2021-09-19T18:06:59.000Z | 2021-09-19T18:06:59.000Z | workspace/pynb_dag_runner/tests/tasks/jupytext_test_notebooks/notebook_ok.py | pynb-dag-runner/pynb-dag-runner | 52473a743e82080217e7924bd35fcc3362bf2335 | [
"MIT"
] | null | null | null | # %%
P = {"task.variable_a": "value-used-during-interactive-development"}
# %% tags=["parameters"]
# ---- During automated runs parameters will be injected in this cell ---
# %%
# -----------------------------------------------------------------------
# %%
# Example comment
print(1 + 12 + 123)
# %%
print(f"""variable_a... | 27.153846 | 73 | 0.495751 | 35 | 353 | 4.914286 | 0.742857 | 0.156977 | 0.151163 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.116147 | 353 | 12 | 74 | 29.416667 | 0.532051 | 0.558074 | 0 | 0 | 0 | 0 | 0.609589 | 0.506849 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
f3167643eab720bd99949066e57d017b77cad801 | 184 | py | Python | graphit/graph_io/__init__.py | codacy-badger/graphit | 7fcfed114875466179ed3d4848dd9098fa3e60fb | [
"Apache-2.0"
] | null | null | null | graphit/graph_io/__init__.py | codacy-badger/graphit | 7fcfed114875466179ed3d4848dd9098fa3e60fb | [
"Apache-2.0"
] | null | null | null | graphit/graph_io/__init__.py | codacy-badger/graphit | 7fcfed114875466179ed3d4848dd9098fa3e60fb | [
"Apache-2.0"
] | null | null | null | #TODO: make walk and serialization methods to customize format export
#TODO: add support for import/export of LEMON Graph Format (LGF) http://lemon.cs.elte.hu/pub/doc/1.2.3/a00002.html | 92 | 114 | 0.782609 | 33 | 184 | 4.363636 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.108696 | 184 | 2 | 114 | 92 | 0.829268 | 0.983696 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.5 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 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 | 4 |
f324f66ac6894ed748a8ce97c513c4ce9b3559a2 | 419 | py | Python | sort_radix.py | rachitmishra/45 | c38650f4fa2ea1857848b95320cdc37929b39197 | [
"MIT"
] | null | null | null | sort_radix.py | rachitmishra/45 | c38650f4fa2ea1857848b95320cdc37929b39197 | [
"MIT"
] | null | null | null | sort_radix.py | rachitmishra/45 | c38650f4fa2ea1857848b95320cdc37929b39197 | [
"MIT"
] | null | null | null | """
Shell Sort
Approach: Divide and Conquer
Complexity: O(n2)
"""
def sort_shell(input_arr):
print("""""""""""""""""""""""""")
print("input " + str(input_arr))
print("""""""""""""""""""""""""")
print("""""""""""""""""""""""""")
print("result " + str(input_arr))
print(""""""""""""""""""""""""... | 19.045455 | 45 | 0.434368 | 45 | 419 | 3.755556 | 0.6 | 0.142012 | 0.230769 | 0.213018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 0.188544 | 419 | 21 | 46 | 19.952381 | 0.45 | 0.138425 | 0 | 0.4 | 0 | 0 | 0.05949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0.6 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 4 |
b8955c63b0d450843dbf880da44478e43ca9276c | 62 | py | Python | tests/benchmarks/cli/commands/test_help.py | iterative/dvc-benchmark | f6f1e682bea6de40f999be8beb2fc38fab37e5bc | [
"Apache-2.0"
] | null | null | null | tests/benchmarks/cli/commands/test_help.py | iterative/dvc-benchmark | f6f1e682bea6de40f999be8beb2fc38fab37e5bc | [
"Apache-2.0"
] | null | null | null | tests/benchmarks/cli/commands/test_help.py | iterative/dvc-benchmark | f6f1e682bea6de40f999be8beb2fc38fab37e5bc | [
"Apache-2.0"
] | null | null | null | def test_help(bench_dvc):
bench_dvc("--help", rounds=100)
| 20.666667 | 35 | 0.693548 | 10 | 62 | 4 | 0.7 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.129032 | 62 | 2 | 36 | 31 | 0.685185 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b8a3ee19ec5d63b3a174af2a7503b3d1bbe2f1ca | 1,746 | py | Python | slise/__init__.py | vishalbelsare/pyslise | 3d81fe62a58755fa71755a0c02e56b9aa3e15e96 | [
"MIT"
] | 3 | 2021-05-06T11:31:29.000Z | 2022-03-18T19:20:33.000Z | slise/__init__.py | vishalbelsare/pyslise | 3d81fe62a58755fa71755a0c02e56b9aa3e15e96 | [
"MIT"
] | null | null | null | slise/__init__.py | vishalbelsare/pyslise | 3d81fe62a58755fa71755a0c02e56b9aa3e15e96 | [
"MIT"
] | 1 | 2021-08-20T13:46:31.000Z | 2021-08-20T13:46:31.000Z | """
__ SLISE - Sparse Linear Subset Explanations __
The SLISE algorithm can be used for both robust regression and to explain outcomes from black box models.
In robust regression we fit regression models that can handle data that
contains outliers. SLISE accomplishes this by fitting a model such that... | 47.189189 | 109 | 0.761168 | 268 | 1,746 | 4.932836 | 0.544776 | 0.011346 | 0.02118 | 0.030257 | 0.039334 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.201031 | 1,746 | 36 | 110 | 48.5 | 0.926165 | 0.84937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b8b1bb8fba88fd9d17eefe426df853b1c29a99bd | 205 | py | Python | borrowingMoneyManagement/urls.py | 520MianXiangDuiXiang520/FamilyPropertyManageSystem | b4f9d681a96a6547c6755d0229f420b4112076c5 | [
"MIT"
] | 7 | 2019-11-24T08:24:33.000Z | 2021-11-07T20:25:51.000Z | borrowingMoneyManagement/urls.py | 520MianXiangDuiXiang520/FamilyPropertyManageSystem | b4f9d681a96a6547c6755d0229f420b4112076c5 | [
"MIT"
] | 6 | 2020-02-12T02:58:28.000Z | 2022-02-10T08:52:38.000Z | borrowingMoneyManagement/urls.py | 520MianXiangDuiXiang520/FamilyPropertyManageSystem | b4f9d681a96a6547c6755d0229f420b4112076c5 | [
"MIT"
] | 1 | 2019-11-30T03:11:32.000Z | 2019-11-30T03:11:32.000Z | from django.urls import path
from .views import BorrowingView
from .views import PayBackView
urlpatterns = [
path('borrow/', BorrowingView.as_view()),
path('payBack/', PayBackView.as_view())
] | 25.625 | 45 | 0.721951 | 24 | 205 | 6.083333 | 0.541667 | 0.123288 | 0.205479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156098 | 205 | 8 | 46 | 25.625 | 0.843931 | 0 | 0 | 0 | 0 | 0 | 0.072816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b217bdfeed738074a1529c020bf0c432f5237937 | 44 | py | Python | test/scripts/starterr.py | codders/mitmproxy | 4f9deae8fc2b5f8b0519f82b1f3cdda6c115b475 | [
"MIT"
] | 3 | 2016-10-08T05:19:11.000Z | 2020-05-29T20:08:56.000Z | test/scripts/starterr.py | huyphan/mitmproxy | 5259aeb3264423204e84072d9e1b3ace4f6e6031 | [
"MIT"
] | null | null | null | test/scripts/starterr.py | huyphan/mitmproxy | 5259aeb3264423204e84072d9e1b3ace4f6e6031 | [
"MIT"
] | 1 | 2015-08-20T02:20:27.000Z | 2015-08-20T02:20:27.000Z |
def start(ctx, argv):
raise ValueError
| 11 | 21 | 0.681818 | 6 | 44 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 44 | 3 | 22 | 14.666667 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b21a2e92a0903ea9c334f4be5faa7c94c1bd7867 | 30,621 | py | Python | tests/test_registration_embargoes.py | bdyetton/prettychart | e8b33a7dfdc8c33d15969586be7f68172795f76d | [
"Apache-2.0"
] | null | null | null | tests/test_registration_embargoes.py | bdyetton/prettychart | e8b33a7dfdc8c33d15969586be7f68172795f76d | [
"Apache-2.0"
] | null | null | null | tests/test_registration_embargoes.py | bdyetton/prettychart | e8b33a7dfdc8c33d15969586be7f68172795f76d | [
"Apache-2.0"
] | null | null | null | """Tests related to embargoes of registrations"""
import datetime
import json
import mock
from nose.tools import * #noqa
from tests.base import fake, OsfTestCase
from tests.factories import (
AuthUserFactory, EmbargoFactory, NodeFactory, ProjectFactory,
RegistrationFactory, UserFactory, UnconfirmedUserFactory... | 42.76676 | 114 | 0.694327 | 3,266 | 30,621 | 6.223209 | 0.075628 | 0.150357 | 0.090529 | 0.043493 | 0.79941 | 0.758573 | 0.723936 | 0.701156 | 0.669668 | 0.656581 | 0 | 0.006438 | 0.218869 | 30,621 | 715 | 115 | 42.826573 | 0.843304 | 0.031612 | 0 | 0.627288 | 0 | 0 | 0.05618 | 0.029508 | 0 | 0 | 0 | 0 | 0.183028 | 1 | 0.079867 | false | 0 | 0.018303 | 0 | 0.104825 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 4 |
b21d3033aa002597cfd5442d454bee6146b1eabf | 83 | py | Python | tests/Firefly.PSCloudFormation.Tests.Unit/Resources/LambdaDependencies/PythonLambda/Lambda/my_lambda.py | fireflycons/PSCloudFormation | 4f2a3388789ee83e1cf0896395925a40055e2b9c | [
"MIT"
] | 3 | 2019-12-13T02:58:22.000Z | 2020-07-01T14:18:11.000Z | tests/Firefly.PSCloudFormation.Tests.Unit/Resources/LambdaDependencies/PythonLambda/Lambda/my_lambda.py | fireflycons/PSCloudFormation | 4f2a3388789ee83e1cf0896395925a40055e2b9c | [
"MIT"
] | 82 | 2019-02-21T08:58:14.000Z | 2021-12-24T08:10:27.000Z | tests/Firefly.PSCloudFormation.Tests.Unit/Resources/LambdaDependencies/PythonLambda/Lambda/my_lambda.py | fireflycons/PSCloudFormation | 4f2a3388789ee83e1cf0896395925a40055e2b9c | [
"MIT"
] | null | null | null | def handler(event: dict, context, debug_var=1, **kwargs) -> None:
print('hi')
| 27.666667 | 66 | 0.638554 | 13 | 83 | 4.076923 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.156627 | 83 | 2 | 67 | 41.5 | 0.728571 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
b241cb9e24a1bde3d20727f989aa533032131766 | 319 | py | Python | exercicios/aula8-ex016.py | anildoferreira/CursoPython-PyCharm | 56c3962d6cc7d43482a9649a482619adba780d81 | [
"MIT"
] | null | null | null | exercicios/aula8-ex016.py | anildoferreira/CursoPython-PyCharm | 56c3962d6cc7d43482a9649a482619adba780d81 | [
"MIT"
] | null | null | null | exercicios/aula8-ex016.py | anildoferreira/CursoPython-PyCharm | 56c3962d6cc7d43482a9649a482619adba780d81 | [
"MIT"
] | null | null | null | '''from math import trunc
num = float(input('Digite um número para mostrar sua porção: '))
print('a porção do seu número é: {}'.format(trunc(num)))'''
num = float(input('Digite um numero para se tornar uma integral zozinha: '))
print('o número flutuante {}, se tornou um número integral {:.0f}'.format(num, int(num)))
| 45.571429 | 89 | 0.69906 | 50 | 319 | 4.46 | 0.62 | 0.071749 | 0.116592 | 0.170404 | 0.188341 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00365 | 0.141066 | 319 | 6 | 90 | 53.166667 | 0.810219 | 0.451411 | 0 | 0 | 0 | 0 | 0.662722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
b245ababefa8374f938222add079b33a6c2afbfb | 10,776 | py | Python | tensorflow_federated/python/core/templates/estimation_process_test.py | j35tor/federated | d92bfa6b8e3c9ebbac51ff7a3a180c2baaa08730 | [
"Apache-2.0"
] | 1 | 2021-04-01T08:35:06.000Z | 2021-04-01T08:35:06.000Z | tensorflow_federated/python/core/templates/estimation_process_test.py | j35tor/federated | d92bfa6b8e3c9ebbac51ff7a3a180c2baaa08730 | [
"Apache-2.0"
] | null | null | null | tensorflow_federated/python/core/templates/estimation_process_test.py | j35tor/federated | d92bfa6b8e3c9ebbac51ff7a3a180c2baaa08730 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020, The TensorFlow Federated 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 o... | 45.277311 | 80 | 0.737751 | 1,219 | 10,776 | 6.224774 | 0.133716 | 0.060095 | 0.089615 | 0.076173 | 0.801924 | 0.75369 | 0.741829 | 0.653532 | 0.638245 | 0.624012 | 0 | 0.005912 | 0.183742 | 10,776 | 237 | 81 | 45.468354 | 0.856753 | 0.06663 | 0 | 0.595628 | 0 | 0 | 0.028984 | 0 | 0 | 0 | 0 | 0 | 0.125683 | 1 | 0.131148 | false | 0 | 0.043716 | 0.032787 | 0.213115 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b24bf3f0f808b974876e556d94b824a5902ddd73 | 81 | py | Python | nes/processors/cpu/instructions/flags/sed.py | Hexadorsimal/pynes | dbb3d40c1240fa27f70fa798bcec09188755eec2 | [
"MIT"
] | 1 | 2017-05-13T18:57:09.000Z | 2017-05-13T18:57:09.000Z | nes/processors/cpu/instructions/flags/sed.py | Hexadorsimal/py6502 | dbb3d40c1240fa27f70fa798bcec09188755eec2 | [
"MIT"
] | 7 | 2020-10-24T17:16:56.000Z | 2020-11-01T14:10:23.000Z | nes/processors/cpu/instructions/flags/sed.py | Hexadorsimal/pynes | dbb3d40c1240fa27f70fa798bcec09188755eec2 | [
"MIT"
] | null | null | null | from .set import SetInstruction
class Sed(SetInstruction):
flag_name = 'd'
| 13.5 | 31 | 0.728395 | 10 | 81 | 5.8 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 81 | 5 | 32 | 16.2 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b24ef81aeb720d24ded2e6df60f77295f24af1be | 371 | py | Python | planar_ising/common_utils.py | ValeryTyumen/planar_ising | 5a1803487e1dd59c5d5e790cc949b7234bf52ac8 | [
"MIT"
] | 8 | 2019-05-02T20:27:21.000Z | 2020-11-01T20:41:38.000Z | planar_ising/common_utils.py | ValeryTyumen/planar_ising | 5a1803487e1dd59c5d5e790cc949b7234bf52ac8 | [
"MIT"
] | 1 | 2019-09-03T18:15:53.000Z | 2019-09-06T16:41:12.000Z | planar_ising/common_utils.py | ValeryTyumen/planar_ising | 5a1803487e1dd59c5d5e790cc949b7234bf52ac8 | [
"MIT"
] | 3 | 2019-08-11T23:08:58.000Z | 2022-03-19T09:09:50.000Z | import numpy as np
def repeat_int(value, count):
array = np.zeros(count, dtype=np.int32)
array[:] = value
return array
def repeat_bool(value, count):
array = np.zeros(count, dtype=np.bool_)
array[:] = value
return array
def repeat_float(value, count):
array = np.zeros(count, dtype=... | 15.458333 | 45 | 0.644205 | 52 | 371 | 4.519231 | 0.326923 | 0.114894 | 0.191489 | 0.217021 | 0.689362 | 0.689362 | 0.434043 | 0.434043 | 0 | 0 | 0 | 0.014085 | 0.234501 | 371 | 23 | 46 | 16.130435 | 0.81338 | 0 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.538462 | 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 | 0 | 1 | 0 | 0 | 4 |
b277ad8bb485a328d0fb6df423dc9afba869a596 | 775 | py | Python | Surf_counter/spot_urls.py | SimonHollands/crowdfactor3 | efc4721e7884c23d96f8004d3e0447a2d24d932a | [
"MIT"
] | 2 | 2019-10-31T22:17:57.000Z | 2021-09-19T20:11:25.000Z | Surf_counter/spot_urls.py | SimonHollands/crowdfactor3 | efc4721e7884c23d96f8004d3e0447a2d24d932a | [
"MIT"
] | 6 | 2019-10-31T20:09:22.000Z | 2022-02-10T01:05:29.000Z | Surf_counter/spot_urls.py | SimonHollands/crowdfactor3 | efc4721e7884c23d96f8004d3e0447a2d24d932a | [
"MIT"
] | 1 | 2022-01-28T21:24:30.000Z | 2022-01-28T21:24:30.000Z |
class SpotUrls:
token='85392160'
CFID='459565'
venice_morning_good='https://camrewinds.cdn-surfline.com/live/wc-venicebeachclose.stream.20191103T162900647.mp4'
venice_static='https://camrewinds.cdn-surfline.com/live/wc-venicebeachclose.stream.20191027T235900139.mp4'
lookup={'breakwater': 'http://ww... | 64.583333 | 132 | 0.713548 | 89 | 775 | 6.157303 | 0.438202 | 0.120438 | 0.131387 | 0.189781 | 0.569343 | 0.569343 | 0.569343 | 0.505474 | 0.505474 | 0.193431 | 0 | 0.135417 | 0.132903 | 775 | 11 | 133 | 70.454545 | 0.68006 | 0 | 0 | 0 | 0 | 0.444444 | 0.726098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.777778 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
b2aa3b81ce40646b2b5ced0272d45e40ff05e4ae | 518 | py | Python | Curso-Em-Video-Python/2Exercicios/009_Tabuada.py | pedrohd21/Cursos-Feitos | b223aad83867bfa45ad161d133e33c2c200d42bd | [
"MIT"
] | null | null | null | Curso-Em-Video-Python/2Exercicios/009_Tabuada.py | pedrohd21/Cursos-Feitos | b223aad83867bfa45ad161d133e33c2c200d42bd | [
"MIT"
] | null | null | null | Curso-Em-Video-Python/2Exercicios/009_Tabuada.py | pedrohd21/Cursos-Feitos | b223aad83867bfa45ad161d133e33c2c200d42bd | [
"MIT"
] | null | null | null | x = int(input('Qual tabuada multiplicar: '))
print('-' * 15)
print('{} x {:2} = {}'.format(x, 1, (x*1)))
print('{} x {:2} = {}'.format(x, 2, (x*2)))
print('{} x {:2} = {}'.format(x, 3, (x*3)))
print('{} x {:2} = {}'.format(x, 4, (x*4)))
print('{} x {:2} = {}'.format(x, 5, (x*5)))
print('{} x {:2} = {}'.format(x, 6, (x*... | 39.846154 | 45 | 0.418919 | 90 | 518 | 2.411111 | 0.211111 | 0.110599 | 0.322581 | 0.599078 | 0.645161 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08238 | 0.156371 | 518 | 13 | 46 | 39.846154 | 0.414188 | 0 | 0 | 0.153846 | 0 | 0 | 0.323699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.923077 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 4 |
b2af942332ef7793dbc1d36cd9e6bf7de75b8073 | 180 | py | Python | data_files/LearningPython/if1.py | PmagPy/PmagPy-notebooks | 490cb13e3a78e1323368125de9a503bd327c7174 | [
"BSD-3-Clause"
] | 2 | 2020-07-05T01:11:33.000Z | 2020-07-05T01:11:39.000Z | data_files/LearningPython/if1.py | schwehr/PmagPy | 5e9edc5dc9a7a243b8e7f237fa156e0cd782076b | [
"BSD-3-Clause"
] | 1 | 2018-08-27T22:59:09.000Z | 2018-08-27T22:59:09.000Z | data_files/LearningPython/if1.py | PmagPy/PmagPy-notebooks | 490cb13e3a78e1323368125de9a503bd327c7174 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
if (2+2)==4: # note the use of '==' and parentheses in comparison statement
print("I can put two and two together!")
| 36 | 75 | 0.722222 | 30 | 180 | 4.166667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019868 | 0.161111 | 180 | 4 | 76 | 45 | 0.807947 | 0.45 | 0 | 0 | 0 | 0 | 0.319588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.666667 | 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 | 0 | 0 | 1 | 0 | 4 |
a25cd3c9ab8ee69e6283e126daf4ec3d2408b150 | 107 | py | Python | python/py-functionals/reduce-function.py | feliposz/hackerrank-solutions | fb1d63ca12a0d289362c9b3fb4cb0b79ef73f72f | [
"MIT"
] | null | null | null | python/py-functionals/reduce-function.py | feliposz/hackerrank-solutions | fb1d63ca12a0d289362c9b3fb4cb0b79ef73f72f | [
"MIT"
] | null | null | null | python/py-functionals/reduce-function.py | feliposz/hackerrank-solutions | fb1d63ca12a0d289362c9b3fb4cb0b79ef73f72f | [
"MIT"
] | null | null | null |
def product(fracs):
t = reduce(lambda x, y: x * y, fracs, 1)
return t.numerator, t.denominator
| 13.375 | 44 | 0.616822 | 17 | 107 | 3.882353 | 0.705882 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.252336 | 107 | 7 | 45 | 15.285714 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a2798b2c78bed914f523662514fff931c8e873a8 | 21,533 | py | Python | test/mount_efs_test/test_publish_cloudwatch_log.py | daisuke-yoshimoto/efs-utils | cd27177d80d7a3a5f44bc3412c0b275c6ba3eece | [
"MIT"
] | null | null | null | test/mount_efs_test/test_publish_cloudwatch_log.py | daisuke-yoshimoto/efs-utils | cd27177d80d7a3a5f44bc3412c0b275c6ba3eece | [
"MIT"
] | null | null | null | test/mount_efs_test/test_publish_cloudwatch_log.py | daisuke-yoshimoto/efs-utils | cd27177d80d7a3a5f44bc3412c0b275c6ba3eece | [
"MIT"
] | 12 | 2020-10-22T03:47:51.000Z | 2022-03-19T18:09:59.000Z | #
# Copyright 2017-2018 Amazon.com, Inc. and its affiliates. All Rights Reserved.
#
# Licensed under the MIT License. See the LICENSE accompanying this file
# for the specific language governing permissions and limitations under
# the License.
#
import mount_efs
from .. import utils
from botocore.exceptions import Cl... | 42.138943 | 129 | 0.795616 | 2,733 | 21,533 | 5.724113 | 0.069887 | 0.038865 | 0.042956 | 0.05101 | 0.861161 | 0.818525 | 0.786947 | 0.725326 | 0.630657 | 0.551713 | 0 | 0.001978 | 0.131148 | 21,533 | 511 | 130 | 42.138943 | 0.834197 | 0.022198 | 0 | 0.390909 | 0 | 0 | 0.164593 | 0.122125 | 0 | 0 | 0 | 0 | 0.163636 | 1 | 0.193939 | false | 0 | 0.021212 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a2ab0cdd89b054fb5109db4c024387dec53b6cf5 | 191 | py | Python | cmemsapi/__init__.py | copernicusmarine/cmemsapi | b2b2f8e9c80d989fe1aa1374d8174a30c819847e | [
"MIT"
] | null | null | null | cmemsapi/__init__.py | copernicusmarine/cmemsapi | b2b2f8e9c80d989fe1aa1374d8174a30c819847e | [
"MIT"
] | null | null | null | cmemsapi/__init__.py | copernicusmarine/cmemsapi | b2b2f8e9c80d989fe1aa1374d8174a30c819847e | [
"MIT"
] | null | null | null | """Top-level package for Copernicus Marine ToolBox."""
__author__ = """E.U. Copernicus Marine Service Information"""
__email__ = 'servicedesk.cmems@mercator-ocean.eu'
__version__ = '0.1.17'
| 31.833333 | 61 | 0.743455 | 24 | 191 | 5.416667 | 0.916667 | 0.246154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023392 | 0.104712 | 191 | 5 | 62 | 38.2 | 0.736842 | 0.251309 | 0 | 0 | 0 | 0 | 0.605839 | 0.255474 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a2dc0973dc47ae7d7ab1aa134ee67dbeb6ca91f0 | 152 | py | Python | examples/rest-api-python/src/list.py | drewfish/serverless-stack | 155353ed7daf3ba2d4daeb9096f6c7638cb404fc | [
"MIT"
] | 5,922 | 2020-08-19T05:27:43.000Z | 2022-03-31T23:29:17.000Z | examples/rest-api-python/src/list.py | Dzan001/serverless-stack | 69fb992f31ac098b644f50cbddf3aaec4db054cd | [
"MIT"
] | 980 | 2020-09-17T03:09:42.000Z | 2022-03-31T20:21:43.000Z | examples/rest-api-python/src/list.py | Dzan001/serverless-stack | 69fb992f31ac098b644f50cbddf3aaec4db054cd | [
"MIT"
] | 458 | 2020-09-02T13:47:17.000Z | 2022-03-31T12:14:32.000Z | import json
from db.notes import getNotes
def main(event, context):
return {
"statusCode": 200,
"body": json.dumps(getNotes(), indent=2)
}
| 16.888889 | 44 | 0.664474 | 20 | 152 | 5.05 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.197368 | 152 | 8 | 45 | 19 | 0.795082 | 0 | 0 | 0 | 0 | 0 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.571429 | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
a2e0a3d88c4002f4d628216c77bf7762d39e81eb | 602 | py | Python | tests/integration/pybaseball/test_statcast_batter.py | mwisnie5/pybaseball | 0a2a84d757e478aa79619100872ef48cf7da52c5 | [
"MIT"
] | 1 | 2021-01-09T01:44:07.000Z | 2021-01-09T01:44:07.000Z | tests/integration/pybaseball/test_statcast_batter.py | mwisnie5/pybaseball | 0a2a84d757e478aa79619100872ef48cf7da52c5 | [
"MIT"
] | null | null | null | tests/integration/pybaseball/test_statcast_batter.py | mwisnie5/pybaseball | 0a2a84d757e478aa79619100872ef48cf7da52c5 | [
"MIT"
] | null | null | null | import pandas as pd
from pybaseball.statcast_batter import statcast_batter, statcast_batter_exitvelo_barrels
def test_statcast_batter_exitvelo_barrels() -> None:
result: pd.DataFrame = statcast_batter_exitvelo_barrels(2019)
assert result is not None
assert not result.empty
assert len(result.columns... | 26.173913 | 88 | 0.73588 | 83 | 602 | 5.156627 | 0.361446 | 0.228972 | 0.140187 | 0.203271 | 0.457944 | 0.457944 | 0.294393 | 0.294393 | 0.294393 | 0.294393 | 0 | 0.074747 | 0.177741 | 602 | 22 | 89 | 27.363636 | 0.789899 | 0 | 0 | 0.285714 | 0 | 0 | 0.033223 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.142857 | true | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a2e8576c830fbf4be7678294ec7ac2e86823fb25 | 78 | py | Python | python/testData/inspections/PyRedundantParenthesesInspection/NestedParentheses.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyRedundantParenthesesInspection/NestedParentheses.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyRedundantParenthesesInspection/NestedParentheses.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | x = (<weak_warning descr="Remove redundant parentheses">((42))</weak_warning>) | 78 | 78 | 0.74359 | 10 | 78 | 5.6 | 0.8 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.064103 | 78 | 1 | 78 | 78 | 0.739726 | 0 | 0 | 0 | 0 | 0 | 0.35443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0c0bec567195e560969a40e85958c41082afeac9 | 334 | py | Python | pylas/errors.py | weyerhaeuser/pylas | 8b0e266bf65e40906128979546de97093aaeadeb | [
"BSD-3-Clause"
] | null | null | null | pylas/errors.py | weyerhaeuser/pylas | 8b0e266bf65e40906128979546de97093aaeadeb | [
"BSD-3-Clause"
] | null | null | null | pylas/errors.py | weyerhaeuser/pylas | 8b0e266bf65e40906128979546de97093aaeadeb | [
"BSD-3-Clause"
] | null | null | null | """ All the custom exceptions types
"""
class PylasError(Exception):
pass
class UnknownExtraType(PylasError):
pass
class PointFormatNotSupported(PylasError):
pass
class FileVersionNotSupported(PylasError):
pass
class LazPerfNotFound(PylasError):
pass
class IncompatibleDataFormat(PylasErr... | 12.37037 | 42 | 0.745509 | 29 | 334 | 8.586207 | 0.482759 | 0.180723 | 0.305221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182635 | 334 | 26 | 43 | 12.846154 | 0.912088 | 0.092814 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
0c29b32808fd38a1cab0e595d78d8ab343d3e28d | 148 | py | Python | src/Advanced/tuplas.py | Thiago18l/Python-Projects | a8a748e41762269fc01474bb2ff0546d2902cf91 | [
"MIT"
] | null | null | null | src/Advanced/tuplas.py | Thiago18l/Python-Projects | a8a748e41762269fc01474bb2ff0546d2902cf91 | [
"MIT"
] | null | null | null | src/Advanced/tuplas.py | Thiago18l/Python-Projects | a8a748e41762269fc01474bb2ff0546d2902cf91 | [
"MIT"
] | null | null | null | t1 = ('OI', 2.0, [40, 50])
print(t1[2:])
t = 1, 4, "THiago"
tupla1 = 1, 2, 3, 4, 5
tulpla2 = 6, 7, 8, 9, 10
print(tupla1 + tulpla2) # concatena
| 14.8 | 36 | 0.527027 | 29 | 148 | 2.689655 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230089 | 0.236486 | 148 | 9 | 37 | 16.444444 | 0.460177 | 0.060811 | 0 | 0 | 0 | 0 | 0.058394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0c3e9fda76a22fd599e09c9fbe18474bb8920e35 | 91 | py | Python | Python scripts/Rookie/KeywordArguments.py | shartrooper/My-python-scripts | 5c3a8db4ed9a75bd9ab4b29153a788d9e6c5d28c | [
"MIT"
] | null | null | null | Python scripts/Rookie/KeywordArguments.py | shartrooper/My-python-scripts | 5c3a8db4ed9a75bd9ab4b29153a788d9e6c5d28c | [
"MIT"
] | null | null | null | Python scripts/Rookie/KeywordArguments.py | shartrooper/My-python-scripts | 5c3a8db4ed9a75bd9ab4b29153a788d9e6c5d28c | [
"MIT"
] | null | null | null | print('MyMy',end=' ')
print('Popsicle')
print('Balloon','Helium','Blimp',sep=' and ')
| 18.2 | 46 | 0.593407 | 11 | 91 | 4.909091 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120879 | 91 | 4 | 47 | 22.75 | 0.675 | 0 | 0 | 0 | 0 | 0 | 0.413793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 1 | 0 | 4 |
0c3eb7fa2051f6adf0fe421ca6d82b35a2944bed | 42 | py | Python | step_1.py | GreeeNic/lesson_201128 | abf7ed6d8d2b545e1da86368116993fc27e63050 | [
"Apache-2.0"
] | null | null | null | step_1.py | GreeeNic/lesson_201128 | abf7ed6d8d2b545e1da86368116993fc27e63050 | [
"Apache-2.0"
] | null | null | null | step_1.py | GreeeNic/lesson_201128 | abf7ed6d8d2b545e1da86368116993fc27e63050 | [
"Apache-2.0"
] | null | null | null | print('hello, world!')
hol = 3
print(hol)
| 10.5 | 22 | 0.642857 | 7 | 42 | 3.857143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.142857 | 42 | 3 | 23 | 14 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.309524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
a75b691b65b86cfb1bac01db945795a5d8eece23 | 118 | py | Python | conftest.py | JakeRoggenbuck/snow_script | 052ec29f6d109977a64dc14b10d94659b5bafae2 | [
"MIT"
] | null | null | null | conftest.py | JakeRoggenbuck/snow_script | 052ec29f6d109977a64dc14b10d94659b5bafae2 | [
"MIT"
] | null | null | null | conftest.py | JakeRoggenbuck/snow_script | 052ec29f6d109977a64dc14b10d94659b5bafae2 | [
"MIT"
] | null | null | null | import sys
import os
root = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'src')
sys.path.insert(0, root)
| 19.666667 | 70 | 0.728814 | 21 | 118 | 3.904762 | 0.571429 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.09322 | 118 | 5 | 71 | 23.6 | 0.757009 | 0 | 0 | 0 | 0 | 0 | 0.025424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a78f73f309b86b32cb02b27f9b22fd5608b4454d | 235 | py | Python | python3/berrymq_singlethread/__init__.py | shibukawa/berrymq | ab2f7127b80957e01e756f431554d3d8c8c85bb8 | [
"MIT"
] | null | null | null | python3/berrymq_singlethread/__init__.py | shibukawa/berrymq | ab2f7127b80957e01e756f431554d3d8c8c85bb8 | [
"MIT"
] | null | null | null | python3/berrymq_singlethread/__init__.py | shibukawa/berrymq | ab2f7127b80957e01e756f431554d3d8c8c85bb8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .berrymq import (following,
following_function,
auto_twitter,
cond,
Follower,
twitter)
| 26.111111 | 42 | 0.361702 | 14 | 235 | 5.928571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0.565957 | 235 | 8 | 43 | 29.375 | 0.803922 | 0.089362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 4 |
a7a5391e1f76f2570fd09cefbc183c8554459c46 | 497 | py | Python | tests/legacy/test_utils.py | NeoLight1010/strawberry-graphql-django | 86d0dbb606a1dd0d96bb79a4cdd6902c6a515b2f | [
"MIT"
] | 18 | 2020-11-10T10:12:11.000Z | 2021-03-10T18:51:01.000Z | tests/legacy/test_utils.py | NeoLight1010/strawberry-graphql-django | 86d0dbb606a1dd0d96bb79a4cdd6902c6a515b2f | [
"MIT"
] | 8 | 2020-11-19T18:05:14.000Z | 2021-03-10T19:06:33.000Z | tests/legacy/test_utils.py | NeoLight1010/strawberry-graphql-django | 86d0dbb606a1dd0d96bb79a4cdd6902c6a515b2f | [
"MIT"
] | 2 | 2021-02-20T11:18:03.000Z | 2021-03-10T07:14:34.000Z | from strawberry_django.legacy import utils
def test_basic_filters():
filter, exclude = utils.process_filters(['id__gt=5', 'name="you"', 'name__contains!="me"'])
assert filter == { 'id__gt': 5, 'name': 'you' }
assert exclude == { 'name__contains': 'me' }
def test_is_in_filter():
filter, exclude = utils... | 41.416667 | 99 | 0.605634 | 73 | 497 | 3.794521 | 0.438356 | 0.050542 | 0.129964 | 0.180505 | 0.454874 | 0.33213 | 0.086643 | 0 | 0 | 0 | 0 | 0.019512 | 0.17505 | 497 | 11 | 100 | 45.181818 | 0.656098 | 0 | 0 | 0 | 0 | 0 | 0.27163 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.222222 | true | 0 | 0.111111 | 0 | 0.333333 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a7c2b384e7cce9524bad254293ab9a9c47d7b2b4 | 191 | py | Python | bin/agent.py | johnblackford/agent | dd303f658d483317154aada1109ca5b742f8f094 | [
"MIT"
] | 2 | 2019-04-27T14:13:42.000Z | 2022-03-23T06:51:44.000Z | bin/agent.py | johnblackford/agent | dd303f658d483317154aada1109ca5b742f8f094 | [
"MIT"
] | 1 | 2019-01-22T07:32:51.000Z | 2019-03-01T08:59:47.000Z | bin/agent.py | johnblackford/agent | dd303f658d483317154aada1109ca5b742f8f094 | [
"MIT"
] | 4 | 2018-01-25T19:41:47.000Z | 2021-04-30T12:57:41.000Z | #! /usr/bin/env python
import sys
import runpy
sys.path.insert(0, "/Users/jblackford/Development/agent")
if __name__ == '__main__':
runpy.run_module("agent.main", run_name="__main__")
| 19.1 | 57 | 0.722513 | 27 | 191 | 4.592593 | 0.703704 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.115183 | 191 | 9 | 58 | 21.222222 | 0.727811 | 0.109948 | 0 | 0 | 0 | 0 | 0.360947 | 0.207101 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 4 |
a7cc6877e9d225378a53cbad71b61398d82cd3fa | 6,309 | py | Python | tensorflow_checkpoint_reader/pb/tensorflow/core/protobuf/master_service_pb2.py | shawwn/tensorflow-checkpoint-reader | f0e65548411e3bd66a07e36bb1850907a05952d0 | [
"MIT"
] | 1 | 2021-12-02T15:06:09.000Z | 2021-12-02T15:06:09.000Z | tensorflow_checkpoint_reader/pb/tensorflow/core/protobuf/master_service_pb2.py | shawwn/tensorflow-checkpoint-reader | f0e65548411e3bd66a07e36bb1850907a05952d0 | [
"MIT"
] | null | null | null | tensorflow_checkpoint_reader/pb/tensorflow/core/protobuf/master_service_pb2.py | shawwn/tensorflow-checkpoint-reader | f0e65548411e3bd66a07e36bb1850907a05952d0 | [
"MIT"
] | null | null | null |
'Generated protocol buffer code.'
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
_sym_db = _symbol_database.Default()
from ....tensorflow.core.pro... | 420.6 | 4,005 | 0.890315 | 758 | 6,309 | 6.941953 | 0.183377 | 0.041049 | 0.071076 | 0.083618 | 0.564044 | 0.490878 | 0.475675 | 0.465032 | 0.465032 | 0.424363 | 0 | 0.022078 | 0.023617 | 6,309 | 14 | 4,006 | 450.642857 | 0.832143 | 0.004914 | 0 | 0 | 1 | 0.153846 | 0.333386 | 0.302315 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ac2650a322b42e5e0b13615d9a39c1db1062a28d | 221 | py | Python | moogle/search/snooper/facebook.py | nimiq/moogle-project | f1fcac13fba43a6e93baf172571003359f4b725c | [
"Apache-2.0"
] | 4 | 2018-06-25T15:57:26.000Z | 2021-06-07T23:53:31.000Z | moogle/search/snooper/facebook.py | puntonim/moogle-project | f1fcac13fba43a6e93baf172571003359f4b725c | [
"Apache-2.0"
] | null | null | null | moogle/search/snooper/facebook.py | puntonim/moogle-project | f1fcac13fba43a6e93baf172571003359f4b725c | [
"Apache-2.0"
] | 1 | 2017-06-17T09:53:21.000Z | 2017-06-17T09:53:21.000Z | from ..snooper import BaseSolrSnooper
from tokens.models import Provider
class FacebookSnooper(BaseSolrSnooper):
def __init__(self, user):
self.user = user
self.provider_name = Provider.NAME_FACEBOOK | 27.625 | 51 | 0.751131 | 25 | 221 | 6.4 | 0.6 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180995 | 221 | 8 | 51 | 27.625 | 0.883978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ac48fa560daf995254c53535d5989aa92d48eb0b | 67 | py | Python | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/server/handlers/graphql/__init__.py | Maximilien-R/cookiecutter-tartiflette-aiohttp | 66e7e0897b315df6a1908c6c31ec58b74e0b3a6f | [
"MIT"
] | 3 | 2020-06-01T14:16:19.000Z | 2021-11-07T19:54:08.000Z | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/server/handlers/graphql/__init__.py | Maximilien-R/cookiecutter-tartiflette-aiohttp | 66e7e0897b315df6a1908c6c31ec58b74e0b3a6f | [
"MIT"
] | 88 | 2019-11-15T17:35:54.000Z | 2021-08-02T04:50:51.000Z | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/server/handlers/graphql/__init__.py | Maximilien-R/cookiecutter-tartiflette-aiohttp | 66e7e0897b315df6a1908c6c31ec58b74e0b3a6f | [
"MIT"
] | 2 | 2020-05-04T08:35:34.000Z | 2020-10-22T17:47:26.000Z | from .handler import handle_graphql
__all__ = ("handle_graphql",)
| 16.75 | 35 | 0.776119 | 8 | 67 | 5.75 | 0.75 | 0.565217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 67 | 3 | 36 | 22.333333 | 0.779661 | 0 | 0 | 0 | 0 | 0 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ac4c64769c023fe3caed57369f65456d9909c191 | 23 | py | Python | samtranslator/__init__.py | armaciej/serverless-application-model | e3a4641600ba1d042e021258fd540de8b3f3a927 | [
"Apache-2.0"
] | 24 | 2015-01-31T14:25:35.000Z | 2022-02-24T01:53:53.000Z | samtranslator/__init__.py | sriharikadali/serverless-application-model | e3a4641600ba1d042e021258fd540de8b3f3a927 | [
"Apache-2.0"
] | 64 | 2015-02-12T12:04:04.000Z | 2021-06-28T10:51:58.000Z | samtranslator/__init__.py | sriharikadali/serverless-application-model | e3a4641600ba1d042e021258fd540de8b3f3a927 | [
"Apache-2.0"
] | 22 | 2015-07-07T23:29:00.000Z | 2021-03-09T18:32:29.000Z | __version__ = "1.31.0"
| 11.5 | 22 | 0.652174 | 4 | 23 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.130435 | 23 | 1 | 23 | 23 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ac4cdee27c4d9f2d7fb68bae29c170724f60d9c5 | 442 | py | Python | exercises/pt/test_04_04.py | tuanducdesign/spacy-course | f8d092c5fa2997fccb3f367d174dce8667932b3d | [
"MIT"
] | null | null | null | exercises/pt/test_04_04.py | tuanducdesign/spacy-course | f8d092c5fa2997fccb3f367d174dce8667932b3d | [
"MIT"
] | null | null | null | exercises/pt/test_04_04.py | tuanducdesign/spacy-course | f8d092c5fa2997fccb3f367d174dce8667932b3d | [
"MIT"
] | null | null | null | def test():
assert (
'spacy.blank("en")' in __solution__
), "Você inicializou um fluxo de processamento em Inglês vazio?"
assert "DocBin(docs=docs)" in __solution__, "Você criou o DocBin corretamente?"
assert "doc_bin.to_disk(" in __solution__, "Você utilizou o método to_disk?"
assert "train... | 44.2 | 85 | 0.699095 | 62 | 442 | 4.612903 | 0.66129 | 0.13986 | 0.195804 | 0.132867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19457 | 442 | 9 | 86 | 49.111111 | 0.803371 | 0 | 0 | 0 | 0 | 0 | 0.579186 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.125 | true | 0 | 0 | 0 | 0.125 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ac5430084f29010f2f9e74e3f5a47a5dd9d18619 | 3,510 | py | Python | uiautomator2/_init.py | snakx/uiautomator2 | 470af5f627838ed2c9195110b4659f7d34ce9343 | [
"MIT"
] | 1 | 2021-10-31T05:31:51.000Z | 2021-10-31T05:31:51.000Z | uiautomator2/_init.py | snakx/uiautomator2 | 470af5f627838ed2c9195110b4659f7d34ce9343 | [
"MIT"
] | null | null | null | uiautomator2/_init.py | snakx/uiautomator2 | 470af5f627838ed2c9195110b4659f7d34ce9343 | [
"MIT"
] | null | null | null | import requests
import _main
import _pk as p
import _x86 as j
import os
import logging
class _Service():
# Instrumentation
def _apk_cache_i(self):
try:
logging.debug("Download instrumentation apk {}".format(p._apk()))
url = 'https://github.com/snakx/x86-uiautomator2-server/... | 35.816327 | 139 | 0.580342 | 398 | 3,510 | 4.929648 | 0.145729 | 0.091743 | 0.101937 | 0.107034 | 0.878186 | 0.810907 | 0.761978 | 0.672783 | 0.672783 | 0.672783 | 0 | 0.014061 | 0.311111 | 3,510 | 98 | 140 | 35.816327 | 0.797353 | 0.009972 | 0 | 0.632184 | 0 | 0.034483 | 0.220749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057471 | false | 0 | 0.068966 | 0 | 0.310345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ac617e9ebea5fe73b16443828f248c35f2ed2013 | 165 | py | Python | luminoth/tools/dataset/cli.py | PiterPentester/luminoth | da0186515586291fbb9544c98240979480355f7a | [
"BSD-3-Clause"
] | 2 | 2018-01-25T10:05:10.000Z | 2020-05-16T13:01:24.000Z | luminoth/tools/dataset/cli.py | macressler/luminoth | da0186515586291fbb9544c98240979480355f7a | [
"BSD-3-Clause"
] | null | null | null | luminoth/tools/dataset/cli.py | macressler/luminoth | da0186515586291fbb9544c98240979480355f7a | [
"BSD-3-Clause"
] | null | null | null | import click
from .transform import transform
@click.group(help='Groups of commands to manage datasets')
def dataset():
pass
dataset.add_command(transform)
| 13.75 | 58 | 0.763636 | 22 | 165 | 5.681818 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 165 | 11 | 59 | 15 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0.224242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0.166667 | 0.333333 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
3ba702f8f624f6bd6daa6ddf7d1d724ddbfddf9a | 154 | py | Python | gs/group/messages/add/base/__init__.py | groupserver/gs.group.messages.add.base | 914f692659c56c0af3f759ee962a724ce2a0ae99 | [
"ZPL-2.1"
] | null | null | null | gs/group/messages/add/base/__init__.py | groupserver/gs.group.messages.add.base | 914f692659c56c0af3f759ee962a724ce2a0ae99 | [
"ZPL-2.1"
] | null | null | null | gs/group/messages/add/base/__init__.py | groupserver/gs.group.messages.add.base | 914f692659c56c0af3f759ee962a724ce2a0ae99 | [
"ZPL-2.1"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
#lint:disable
from .addapost import add_a_post
from .base import ListInfoForm
#lint:enable
| 22 | 38 | 0.779221 | 22 | 154 | 5.136364 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.123377 | 154 | 6 | 39 | 25.666667 | 0.82963 | 0.285714 | 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 | 0 | 0 | 0 | 4 |
3be9613bd13eae258eb6e21aa1fa43052dae4b04 | 407 | py | Python | test/hlt/pytest/python/com/huawei/iotplatform/client/dto/NorthInDTO.py | yuanyi-thu/AIOT- | 27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e | [
"BSD-3-Clause"
] | 128 | 2018-10-29T04:11:47.000Z | 2022-03-07T02:19:14.000Z | test/hlt/pytest/python/com/huawei/iotplatform/client/dto/NorthInDTO.py | yuanyi-thu/AIOT- | 27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e | [
"BSD-3-Clause"
] | 40 | 2018-11-02T00:40:48.000Z | 2021-12-07T09:33:56.000Z | test/hlt/pytest/python/com/huawei/iotplatform/client/dto/NorthInDTO.py | yuanyi-thu/AIOT- | 27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e | [
"BSD-3-Clause"
] | 118 | 2018-10-29T08:43:57.000Z | 2022-01-07T06:49:25.000Z | class NorthInDTO(object):
def __init__(self):
self.platformIp = None
self.platformPort = None
def getPlatformIp(self):
return self.platformIp
def setPlatformIp(self, platformIp):
self.platformIp = platformIp
def getPlatformPort(self):
return self.platformPort
... | 22.611111 | 44 | 0.673219 | 38 | 407 | 7.105263 | 0.368421 | 0.207407 | 0.103704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253071 | 407 | 17 | 45 | 23.941176 | 0.888158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0 | 0.166667 | 0.666667 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
ce01fa0b70ea3129bde7690a32e4e1d17927c2c1 | 5,087 | py | Python | tests/unit/models/test_contact.py | nethad/moco-wrapper | 012f9aab6e9fa60e3ccdf7254f0366b108651899 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | tests/unit/models/test_contact.py | nethad/moco-wrapper | 012f9aab6e9fa60e3ccdf7254f0366b108651899 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | tests/unit/models/test_contact.py | nethad/moco-wrapper | 012f9aab6e9fa60e3ccdf7254f0366b108651899 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | import pytest
from .. import UnitTest
class TestContact(UnitTest):
def test_create(self):
firstname = "Peter"
lastname = "Muster"
gender = "F"
organization_id = 123
title ="Dr. med."
job_position = "Account Manager"
mobile_phone = "+49 177 123 45 67"
... | 37.962687 | 389 | 0.634166 | 612 | 5,087 | 5.060458 | 0.151961 | 0.103326 | 0.04133 | 0.059412 | 0.811753 | 0.745237 | 0.745237 | 0.678076 | 0.678076 | 0.650953 | 0 | 0.030303 | 0.247494 | 5,087 | 133 | 390 | 38.24812 | 0.778736 | 0 | 0 | 0.679612 | 0 | 0 | 0.189699 | 0.009043 | 0 | 0 | 0 | 0 | 0.398058 | 1 | 0.07767 | false | 0 | 0.019417 | 0 | 0.106796 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ce0592be5c2f4572b47ca3764346de0b0e30c5f5 | 1,869 | py | Python | phonenumbers/data/region_GA.py | ayushgoel/FixGoogleContacts | e49e58db6718bef8f95b6f767241605441c7fe41 | [
"MIT"
] | 2 | 2019-02-22T05:27:22.000Z | 2020-12-30T19:33:18.000Z | phonenumbers/data/region_GA.py | ayushgoel/FixGoogleContacts | e49e58db6718bef8f95b6f767241605441c7fe41 | [
"MIT"
] | null | null | null | phonenumbers/data/region_GA.py | ayushgoel/FixGoogleContacts | e49e58db6718bef8f95b6f767241605441c7fe41 | [
"MIT"
] | null | null | null | """Auto-generated file, do not edit by hand. GA metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_GA = PhoneMetadata(id='GA', country_code=241, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='0\\d{7}', possible_number_pattern='\\d{8... | 84.954545 | 133 | 0.779026 | 235 | 1,869 | 5.855319 | 0.293617 | 0.28343 | 0.239826 | 0.392442 | 0.619186 | 0.548692 | 0.548692 | 0.548692 | 0.548692 | 0.094477 | 0 | 0.032165 | 0.068486 | 1,869 | 21 | 134 | 89 | 0.758185 | 0.028357 | 0 | 0 | 1 | 0 | 0.100552 | 0.016575 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ce06f91505e8f6162f9b831ea1a231c01b447adc | 314 | py | Python | Script/Commands/Messages/Creators/refresh_dbl.py | AIDRI/Clash-Of-Clans-Discord-Bot | 2a9f0495e30ae22ca487886fa48f9d206a545b99 | [
"BSD-3-Clause"
] | null | null | null | Script/Commands/Messages/Creators/refresh_dbl.py | AIDRI/Clash-Of-Clans-Discord-Bot | 2a9f0495e30ae22ca487886fa48f9d206a545b99 | [
"BSD-3-Clause"
] | null | null | null | Script/Commands/Messages/Creators/refresh_dbl.py | AIDRI/Clash-Of-Clans-Discord-Bot | 2a9f0495e30ae22ca487886fa48f9d206a545b99 | [
"BSD-3-Clause"
] | null | null | null | from Script.import_emojis import Emojis
from Script.Clients.top_gg import Dbl_client
from Script.Clients.discord import Clash_info
async def refresh_dbl(ctx):
await Dbl_client.update_stats(len(Clash_info.guilds))
await ctx.send(str(Emojis["Yes"]) + " (https://top.gg/bot/704688212832026724)")
return
| 31.4 | 83 | 0.773885 | 47 | 314 | 5 | 0.595745 | 0.12766 | 0.144681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064982 | 0.117834 | 314 | 9 | 84 | 34.888889 | 0.783394 | 0 | 0 | 0 | 0 | 0 | 0.136943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.571429 | 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 | 0 | 1 | 0 | 0 | 4 |
ce4475bce28b53ec3043700ef6fe4d35783c84b0 | 1,838 | py | Python | hsploit/searcher/engine/string.py | nicolas-carolo/hsploit | 66dede8549b418a2485b88dd6da28e96d60e74f5 | [
"BSD-3-Clause"
] | 10 | 2020-04-17T11:38:46.000Z | 2021-11-12T01:07:50.000Z | hsploit/searcher/engine/string.py | nicolas-carolo/HoundSploitBash | 66dede8549b418a2485b88dd6da28e96d60e74f5 | [
"BSD-3-Clause"
] | null | null | null | hsploit/searcher/engine/string.py | nicolas-carolo/HoundSploitBash | 66dede8549b418a2485b88dd6da28e96d60e74f5 | [
"BSD-3-Clause"
] | 3 | 2019-03-13T22:17:37.000Z | 2019-04-11T10:37:22.000Z | import re
def str_contains_numbers(str):
"""
Check if a string contains at least one number.
:param str: the string to check.
:return: true if the string contains at least one number, false else.
"""
return bool(re.search(r'\d', str))
def str_is_num_version(str):
"""
Check if a strin... | 31.689655 | 88 | 0.648531 | 275 | 1,838 | 4.250909 | 0.170909 | 0.095808 | 0.046193 | 0.047049 | 0.779299 | 0.779299 | 0.704876 | 0.651839 | 0.502139 | 0.42515 | 0 | 0 | 0.214363 | 1,838 | 57 | 89 | 32.245614 | 0.809557 | 0.538629 | 0 | 0.133333 | 0 | 0 | 0.190409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.066667 | 0 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 0 | 1 | 0 | 0 | 4 |
02109eec69deb135be5b21cdb8238b14eee16ef3 | 242 | py | Python | tests/test_version.py | grdorin/mopidy | 76db44088c102d7ad92a3fc6a15a938e66b99b0d | [
"Apache-2.0"
] | 6,700 | 2015-01-01T03:57:59.000Z | 2022-03-30T09:31:31.000Z | tests/test_version.py | pnijhara/mopidy | 7168787ea6c82b66e138fc2b388d78fa1c7661ba | [
"Apache-2.0"
] | 1,141 | 2015-01-02T09:48:59.000Z | 2022-03-28T22:25:30.000Z | tests/test_version.py | pnijhara/mopidy | 7168787ea6c82b66e138fc2b388d78fa1c7661ba | [
"Apache-2.0"
] | 735 | 2015-01-01T21:15:50.000Z | 2022-03-20T16:13:44.000Z | import unittest
from distutils.version import StrictVersion
from mopidy import __version__
class VersionTest(unittest.TestCase):
def test_current_version_is_parsable_as_a_strict_version_number(self):
StrictVersion(__version__)
| 24.2 | 74 | 0.834711 | 29 | 242 | 6.37931 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123967 | 242 | 9 | 75 | 26.888889 | 0.872642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
021d7b748c457e069b81b442cffe5bcd26c444b1 | 390 | py | Python | src/translators/Translator.py | StrandHQ/strand-slack | 44d63df66c7f26b516b1e823dbba6bd6afa49fee | [
"MIT"
] | null | null | null | src/translators/Translator.py | StrandHQ/strand-slack | 44d63df66c7f26b516b1e823dbba6bd6afa49fee | [
"MIT"
] | null | null | null | src/translators/Translator.py | StrandHQ/strand-slack | 44d63df66c7f26b516b1e823dbba6bd6afa49fee | [
"MIT"
] | null | null | null | from src.utilities.logging import get_logger
class Translator:
def __init__(self, slack_client_wrapper=None, strand_api_client_wrapper=None):
self.logger = get_logger(self.__class__.__name__)
self.slack_client_wrapper = slack_client_wrapper
self.strand_api_client_wrapper = strand_api_clien... | 32.5 | 82 | 0.771795 | 49 | 390 | 5.55102 | 0.44898 | 0.286765 | 0.198529 | 0.242647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169231 | 390 | 11 | 83 | 35.454545 | 0.839506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0224ad86662da7e0921e9fbb06852fb87331dbb9 | 129 | py | Python | accounts/admin.py | mariuslihet/CRM | 1323dc358a016d027717466f946ffd3af74897f2 | [
"MIT"
] | 2 | 2018-07-25T13:11:19.000Z | 2019-04-19T03:45:40.000Z | accounts/admin.py | mariuslihet/CRM | 1323dc358a016d027717466f946ffd3af74897f2 | [
"MIT"
] | 2 | 2020-06-05T19:05:09.000Z | 2021-06-10T21:08:49.000Z | accounts/admin.py | mariuslihet/CRM | 1323dc358a016d027717466f946ffd3af74897f2 | [
"MIT"
] | 12 | 2017-11-02T22:32:32.000Z | 2018-04-12T05:13:25.000Z | from django.contrib import admin
from accounts.models import Account
# Register your models here.
admin.site.register(Account)
| 18.428571 | 35 | 0.813953 | 18 | 129 | 5.833333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124031 | 129 | 6 | 36 | 21.5 | 0.929204 | 0.20155 | 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 | 0 | 0 | 0 | 4 |
023dd6b6d62f9fdab6855552383128ecf9f7e361 | 53 | py | Python | lacrm/__init__.py | HighMileage/lacrm | 2783040e20583d0b6493bf8f09ad8dbe21febdba | [
"MIT"
] | 1 | 2018-04-04T01:47:42.000Z | 2018-04-04T01:47:42.000Z | lacrm/__init__.py | HighMileage/lacrm | 2783040e20583d0b6493bf8f09ad8dbe21febdba | [
"MIT"
] | 1 | 2017-02-15T05:54:18.000Z | 2017-02-15T05:54:18.000Z | lacrm/__init__.py | HighMileage/lacrm | 2783040e20583d0b6493bf8f09ad8dbe21febdba | [
"MIT"
] | 2 | 2018-04-04T01:47:45.000Z | 2020-12-30T03:53:44.000Z | "lacrm package"
from lacrm.api import Lacrm # noqa
| 13.25 | 35 | 0.735849 | 8 | 53 | 4.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188679 | 53 | 3 | 36 | 17.666667 | 0.906977 | 0.358491 | 0 | 0 | 0 | 0 | 0.276596 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
023eed7e520ee27f88edb16dd64289c6944b98fe | 126 | py | Python | src/data/image_validation.py | ehudbaumatz/enhance | 2195ead204e9195bb02d7b512d8597508d7210f3 | [
"FTL"
] | null | null | null | src/data/image_validation.py | ehudbaumatz/enhance | 2195ead204e9195bb02d7b512d8597508d7210f3 | [
"FTL"
] | null | null | null | src/data/image_validation.py | ehudbaumatz/enhance | 2195ead204e9195bb02d7b512d8597508d7210f3 | [
"FTL"
] | null | null | null |
def is_before_after(img_path):
"""
check weather image is a before after
:param img_path:
:return:
""" | 12.6 | 41 | 0.603175 | 17 | 126 | 4.235294 | 0.705882 | 0.305556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.293651 | 126 | 10 | 42 | 12.6 | 0.808989 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
0255dfa2f1e1a378ae51bbb2c67654c848a7bd99 | 369 | py | Python | socfaker/__init__.py | atstpls/soc-faker | 119fcb9c4329a918ef9001ac5eaa36251b862bf0 | [
"MIT"
] | null | null | null | socfaker/__init__.py | atstpls/soc-faker | 119fcb9c4329a918ef9001ac5eaa36251b862bf0 | [
"MIT"
] | null | null | null | socfaker/__init__.py | atstpls/soc-faker | 119fcb9c4329a918ef9001ac5eaa36251b862bf0 | [
"MIT"
] | null | null | null | from .socfaker import SocFaker
#from .vulnerability import Vulnerability
#from .application import Application
#from .computer import Computer
#from .employee import Employee
#from .file import File
#from .network import Network
#from .organization import Organization
#from .vulnerabilityhost import VulnerabilityHost
... | 33.545455 | 49 | 0.840108 | 40 | 369 | 7.75 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108401 | 369 | 11 | 50 | 33.545455 | 0.942249 | 0.867209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5a046cad2ac389ed6445a8b8d17f41ec6eef53e2 | 193 | py | Python | sumo/phonon/__init__.py | zhubonan/sumo | eb964951b1e4573717c9b13a82a01452f48d1a39 | [
"MIT"
] | 1 | 2019-08-21T02:28:08.000Z | 2019-08-21T02:28:08.000Z | sumo/phonon/__init__.py | zhubonan/sumo | eb964951b1e4573717c9b13a82a01452f48d1a39 | [
"MIT"
] | null | null | null | sumo/phonon/__init__.py | zhubonan/sumo | eb964951b1e4573717c9b13a82a01452f48d1a39 | [
"MIT"
] | null | null | null | # coding: utf-8
# Copyright (c) Scanlon Materials Theory Group
# Distributed under the terms of the MIT License.
"""
Package containing functions for loading and manipulating phonon data.
"""
| 24.125 | 70 | 0.761658 | 26 | 193 | 5.653846 | 0.961538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.160622 | 193 | 7 | 71 | 27.571429 | 0.901235 | 0.92228 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 4 |
5a0d4505072492c2777ca1f08838d11980f54d49 | 33 | py | Python | ssh2net/core/cisco_iosxr/__init__.py | carlmontanari/ssh2net | 55e969b6d44ec3f2bd2ebbd8dedd68b99bee4c5b | [
"MIT"
] | 10 | 2020-01-13T03:28:33.000Z | 2022-02-08T17:05:59.000Z | ssh2net/core/cisco_iosxr/__init__.py | carlmontanari/ssh2net | 55e969b6d44ec3f2bd2ebbd8dedd68b99bee4c5b | [
"MIT"
] | null | null | null | ssh2net/core/cisco_iosxr/__init__.py | carlmontanari/ssh2net | 55e969b6d44ec3f2bd2ebbd8dedd68b99bee4c5b | [
"MIT"
] | 1 | 2020-05-26T13:35:46.000Z | 2020-05-26T13:35:46.000Z | """ssh2net cisco iosxr driver"""
| 16.5 | 32 | 0.69697 | 4 | 33 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.121212 | 33 | 1 | 33 | 33 | 0.758621 | 0.787879 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5a15e25f3f27ef8b345c1016024dac5a731b9812 | 41 | py | Python | pychemia/code/fireball/task/__init__.py | petavazohi/PyChemia | e779389418771c25c830aed360773c63bb069372 | [
"MIT"
] | 67 | 2015-01-31T07:44:55.000Z | 2022-03-21T21:43:34.000Z | pychemia/code/fireball/task/__init__.py | petavazohi/PyChemia | e779389418771c25c830aed360773c63bb069372 | [
"MIT"
] | 13 | 2016-06-03T19:07:51.000Z | 2022-03-31T04:20:40.000Z | pychemia/code/fireball/task/__init__.py | petavazohi/PyChemia | e779389418771c25c830aed360773c63bb069372 | [
"MIT"
] | 37 | 2015-01-22T15:37:23.000Z | 2022-03-21T15:38:10.000Z | __author__ = 'Guillermo Avendano-Franco'
| 20.5 | 40 | 0.804878 | 4 | 41 | 7.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 41 | 1 | 41 | 41 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0.609756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5a37c4e60c76ad71bbf4eeb47d6ce6c44856038a | 39 | py | Python | algorithm/common.py | VatsalP/algorithm | 56c449962734241298aa6a4751ed9e4dd3d69ffa | [
"MIT"
] | null | null | null | algorithm/common.py | VatsalP/algorithm | 56c449962734241298aa6a4751ed9e4dd3d69ffa | [
"MIT"
] | null | null | null | algorithm/common.py | VatsalP/algorithm | 56c449962734241298aa6a4751ed9e4dd3d69ffa | [
"MIT"
] | null | null | null | from typing import *
T = TypeVar('T')
| 9.75 | 20 | 0.641026 | 6 | 39 | 4.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 39 | 3 | 21 | 13 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5a4e2094c07cee091725dd0fedb04ecf84ef265b | 7,236 | py | Python | tools/fileinfo/features/visual-basic-parser/test.py | stepanek-m/retdec-regression-tests | 12b834b14ede2826fec451368fa8192ab00ddadf | [
"MIT"
] | null | null | null | tools/fileinfo/features/visual-basic-parser/test.py | stepanek-m/retdec-regression-tests | 12b834b14ede2826fec451368fa8192ab00ddadf | [
"MIT"
] | null | null | null | tools/fileinfo/features/visual-basic-parser/test.py | stepanek-m/retdec-regression-tests | 12b834b14ede2826fec451368fa8192ab00ddadf | [
"MIT"
] | null | null | null | from regression_tests import *
# https://github.com/avast-tl/retdec/issues/138
# Test for proper Visual Basic metadata parsing
class Test1(Test):
settings = TestSettings(
tool='fileinfo',
input='3e7126c600eb3d73c9b470aa98f2a416',
args='--verbose --json'
)
def test_visual_basic_pres... | 82.227273 | 158 | 0.720564 | 659 | 7,236 | 7.874052 | 0.251897 | 0.13413 | 0.197726 | 0.280979 | 0.719599 | 0.707651 | 0.553093 | 0.468876 | 0.468876 | 0.248217 | 0 | 0.056563 | 0.100884 | 7,236 | 87 | 159 | 83.172414 | 0.741008 | 0.019486 | 0 | 0.133333 | 0 | 0 | 0.418277 | 0.084614 | 0 | 0 | 0 | 0 | 0.773333 | 1 | 0.053333 | false | 0 | 0.013333 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ce9d27092e781bc4b5071fb38634b84dfe069529 | 706 | py | Python | tests/test_layout.py | up2cat/flask_extras | 7888da0ca2793e49a803a256b405fa43e6e64ae2 | [
"MIT"
] | 19 | 2016-08-03T07:10:23.000Z | 2022-03-03T16:37:11.000Z | tests/test_layout.py | christabor/jinja2_template_pack | f57300bc2922aa4105d1aa393351b63c86c26048 | [
"MIT"
] | 7 | 2016-11-11T21:54:53.000Z | 2018-11-21T04:33:46.000Z | tests/test_layout.py | christabor/jinja2_template_pack | f57300bc2922aa4105d1aa393351b63c86c26048 | [
"MIT"
] | 3 | 2016-12-30T10:34:02.000Z | 2021-04-08T05:40:09.000Z | """Tests for 'layout' filters."""
from flask_extras.filters import layout
class TestBs3Col:
"""All tests for bs3 col function."""
def test_returns_right_width(self):
"""Test the return value for a valid type."""
assert layout.bs3_cols(1) == 12
assert layout.bs3_cols(2) == 6
a... | 30.695652 | 56 | 0.626062 | 102 | 706 | 4.156863 | 0.411765 | 0.254717 | 0.318396 | 0.403302 | 0.488208 | 0.117925 | 0 | 0 | 0 | 0 | 0 | 0.056711 | 0.250708 | 706 | 22 | 57 | 32.090909 | 0.744802 | 0.201133 | 0 | 0 | 0 | 0 | 0.005525 | 0 | 0 | 0 | 0 | 0 | 0.692308 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.307692 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cea98b4701aca9f25c1610186d2c0feab883feac | 191 | py | Python | src/test/blocked_bad_ip.py | jalapenopuzzle/rr | 6f8b3c73868d9fd3e6ac14a1322b92dbe9958807 | [
"BSD-1-Clause"
] | 5,156 | 2015-01-01T06:10:28.000Z | 2020-11-13T15:12:34.000Z | src/test/blocked_bad_ip.py | jalapenopuzzle/rr | 6f8b3c73868d9fd3e6ac14a1322b92dbe9958807 | [
"BSD-1-Clause"
] | 1,214 | 2015-01-02T02:32:13.000Z | 2020-11-09T04:36:26.000Z | src/test/blocked_bad_ip.py | jalapenopuzzle/rr | 6f8b3c73868d9fd3e6ac14a1322b92dbe9958807 | [
"BSD-1-Clause"
] | 402 | 2015-01-13T22:54:32.000Z | 2020-11-05T15:02:25.000Z | from util import *
send_gdb('c')
expect_rr('EXIT-SUCCESS')
expect_gdb('SIGSEGV')
send_gdb('reverse-stepi')
expect_gdb('SIGSEGV')
send_gdb('reverse-stepi')
expect_gdb('start_thread')
ok()
| 13.642857 | 26 | 0.73822 | 29 | 191 | 4.586207 | 0.551724 | 0.157895 | 0.240602 | 0.300752 | 0.593985 | 0.593985 | 0.593985 | 0.593985 | 0.593985 | 0 | 0 | 0 | 0.08377 | 191 | 13 | 27 | 14.692308 | 0.76 | 0 | 0 | 0.444444 | 0 | 0 | 0.340314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0c8ca5aa09cd7f6d43b1725a7e8f55b68ac7b6b4 | 182,832 | py | Python | 3algo/homo/0_16_4datap.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | null | null | null | 3algo/homo/0_16_4datap.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | null | null | null | 3algo/homo/0_16_4datap.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | 1 | 2021-03-21T17:54:26.000Z | 2021-03-21T17:54:26.000Z |
wt0_16_4 = {'192.168.122.111': [8.3103, 8.0392, 7.6612, 7.6962, 7.5176, 7.5481, 7.5683, 7.5518, 7.8167, 7.7147, 7.6347, 7.5667, 7.5034, 7.9934, 7.9606, 7.9429, 7.9216, 7.8997, 7.8826, 8.0898, 8.037, 8.36, 8.3285, 8.4888, 8.4126, 8.3655, 8.2986, 8.258, 8.2224, 8.1874, 8.1354, 8.1046, 8.2392, 8.2046, 8.1844, 8.1706, 8.1... | 11,427 | 158,080 | 0.620356 | 46,262 | 182,832 | 2.450888 | 0.142622 | 0.022843 | 0.034211 | 0.04558 | 0.463403 | 0.241271 | 0.241271 | 0.126112 | 0.126112 | 0.077093 | 0 | 0.709337 | 0.126614 | 182,832 | 16 | 158,081 | 11,427 | 0.000714 | 0 | 0 | 0 | 0 | 0 | 0.000585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0ca7fd4b6546eaff9dcc2302399c2635ed68bca3 | 158,339 | py | Python | kernel_bootstrap.py | RamsteinWR/Diabetic-Retinopathy-Blindness-Detection | 24390aeefd197600255a961189872dd4dfc77092 | [
"MIT"
] | 68 | 2019-09-08T20:04:23.000Z | 2021-05-05T10:05:14.000Z | kernel_bootstrap.py | RamsteinWR/Diabetic-Retinopathy-Blindness-Detection | 24390aeefd197600255a961189872dd4dfc77092 | [
"MIT"
] | 1 | 2019-09-24T06:40:33.000Z | 2019-10-04T09:13:35.000Z | kernel_bootstrap.py | RamsteinWR/Diabetic-Retinopathy-Blindness-Detection | 24390aeefd197600255a961189872dd4dfc77092 | [
"MIT"
] | 25 | 2019-09-09T04:42:51.000Z | 2022-03-28T15:01:30.000Z | import base64
import os
def decode_archive(archive_name, content):
with open(archive_name, "wb") as f:
f.write(base64.b64decode(content))
decode_archive('pytorch_toolbelt-0.1.3.tar.gz', 'H4sICLU3OF0C/2Rpc3QvcHl0b3JjaF90b29sYmVsdC0wLjEuMy50YXIA7L19c9s4kji8f+tT4Dy1ZyqRZZF6cUa12jsncWZymzipODOzVz6XQkm0zY1Eakn... | 70.030517 | 79,427 | 0.779732 | 11,992 | 158,339 | 10.152602 | 0.287692 | 0.008049 | 0.010382 | 0.006735 | 0.201873 | 0.182333 | 0.170144 | 0.159121 | 0.153766 | 0.149832 | 0 | 0.109744 | 0.145296 | 158,339 | 2,260 | 79,428 | 70.061504 | 0.789889 | 0.030125 | 0 | 0.434652 | 0 | 0.0006 | 0.537266 | 0.520126 | 0 | 1 | 0 | 0 | 0.003597 | 1 | 0.089928 | false | 0.0006 | 0.026978 | 0.008993 | 0.211031 | 0.003597 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0cba4744ef3c8e00a3c5c2ee6f5f2a65b9d8cf3c | 91 | py | Python | Testing/gg.py | DEADSEC-SECURITY/CODEX | cbd1a6c1a0d7fe0dbb682d055861b57eb14cb393 | [
"MIT"
] | 30 | 2019-05-04T00:52:54.000Z | 2022-03-14T23:28:32.000Z | Testing/gg.py | userid9708/CODEX | 9e39103271502a4ec0da129b29425990784f83b1 | [
"MIT"
] | 4 | 2019-04-08T12:10:27.000Z | 2021-06-12T22:55:43.000Z | Testing/gg.py | userid9708/CODEX | 9e39103271502a4ec0da129b29425990784f83b1 | [
"MIT"
] | 5 | 2019-10-19T01:37:56.000Z | 2022-02-15T07:23:24.000Z | x = "'/home/deadsec/Desktop/CODEX/Data/HandShakes/PWF1717189-01.cap'"
x = x[1:-1]
print(x)
| 22.75 | 69 | 0.692308 | 16 | 91 | 3.9375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130952 | 0.076923 | 91 | 3 | 70 | 30.333333 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0.692308 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0cc3d5b459ba1833c6f85c362840370af24eaf85 | 467 | py | Python | obeflix_back/serializer.py | luigiMinardi/alurachallenge-backend | b68eaab29cdb583930687f19662a35fa84376abc | [
"MIT"
] | 3 | 2021-07-28T11:48:13.000Z | 2021-08-05T15:10:13.000Z | obeflix_back/serializer.py | luigiMinardi/alurachallenge-backend | b68eaab29cdb583930687f19662a35fa84376abc | [
"MIT"
] | 1 | 2021-08-24T18:21:44.000Z | 2021-08-24T18:21:44.000Z | obeflix_back/serializer.py | luigiMinardi/alurachallenge-backend | b68eaab29cdb583930687f19662a35fa84376abc | [
"MIT"
] | 1 | 2022-02-28T01:16:23.000Z | 2022-02-28T01:16:23.000Z | from rest_framework import serializers
from obeflix_back.models import Video, Categoria
class VideoSerializer(serializers.ModelSerializer):
class Meta:
model = Video
fields = '__all__'
class CategoriaSerializer(serializers.ModelSerializer):
class Meta:
model = Categoria
fields... | 25.944444 | 68 | 0.719486 | 42 | 467 | 7.666667 | 0.452381 | 0.242236 | 0.28882 | 0.326087 | 0.459627 | 0.335404 | 0.335404 | 0.335404 | 0 | 0 | 0 | 0 | 0.218415 | 467 | 18 | 69 | 25.944444 | 0.882192 | 0 | 0 | 0.571429 | 0 | 0 | 0.044872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
0cd16e8d0f36c79c0b719aafb1a4cfe1db97861e | 616 | py | Python | auto_tag/exception.py | mateimicu/auto-tag | 541e11b1d3cf583093cdc826983ec13833b26833 | [
"MIT"
] | 6 | 2020-06-05T20:34:51.000Z | 2022-01-24T12:20:16.000Z | auto_tag/exception.py | mateimicu/auto-tag | 541e11b1d3cf583093cdc826983ec13833b26833 | [
"MIT"
] | 230 | 2019-09-01T21:59:47.000Z | 2022-03-30T02:07:16.000Z | auto_tag/exception.py | mateimicu/auto-tag | 541e11b1d3cf583093cdc826983ec13833b26833 | [
"MIT"
] | 1 | 2019-09-16T11:32:09.000Z | 2019-09-16T11:32:09.000Z | #!/usr/bin/env python3
"""
Exception used in the AutoTag project
"""
class BaseAutoTagException(Exception):
"""Base exception for the AutoTag project."""
class DetectorValidationException(BaseAutoTagException):
"""Validation failed on a detector"""
class DetectorNotFound(BaseAutoTagException):
"""Vali... | 21.241379 | 56 | 0.748377 | 58 | 616 | 7.948276 | 0.551724 | 0.195228 | 0.234273 | 0.247289 | 0.338395 | 0.338395 | 0.338395 | 0 | 0 | 0 | 0 | 0.00189 | 0.141234 | 616 | 28 | 57 | 22 | 0.869565 | 0.404221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 4 |
0cd1eca777efb1b70621def99741636554017bae | 96,520 | py | Python | pyglm/inference/gibbs.py | slinderman/theano_pyglm | c7fc11069dfe91b0eb7c96b8464fcd0f57442952 | [
"MIT"
] | 37 | 2015-04-08T15:11:51.000Z | 2022-01-05T19:32:58.000Z | pyglm/inference/gibbs.py | slinderman/theano_pyglm | c7fc11069dfe91b0eb7c96b8464fcd0f57442952 | [
"MIT"
] | 2 | 2016-03-08T02:39:58.000Z | 2017-03-29T08:51:08.000Z | pyglm/inference/gibbs.py | slinderman/theano_pyglm | c7fc11069dfe91b0eb7c96b8464fcd0f57442952 | [
"MIT"
] | 10 | 2015-02-25T21:47:50.000Z | 2020-03-06T00:21:48.000Z | """ Fit a Network GLM with MAP estimation. For some models, the log posterior
is concave and has a unique maximum.
"""
import copy
from scipy.misc import logsumexp
from scipy.integrate import cumtrapz
from pyglm.utils.theano_func_wrapper import seval, _flatten
from pyglm.utils.packvec import *
from pyglm.utils.g... | 37.527216 | 119 | 0.554932 | 12,642 | 96,520 | 4.024996 | 0.052523 | 0.021873 | 0.006387 | 0.010436 | 0.779322 | 0.744753 | 0.712346 | 0.689608 | 0.666948 | 0.651384 | 0 | 0.005538 | 0.347109 | 96,520 | 2,571 | 120 | 37.541813 | 0.801926 | 0.176875 | 0 | 0.641967 | 0 | 0 | 0.030942 | 0 | 0 | 0 | 0 | 0.001945 | 0.001385 | 0 | null | null | 0.002078 | 0.034626 | null | null | 0.010388 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0cd2ceb88fd6ba45d68ea7c410e2eeb082a74c98 | 384 | py | Python | src/utils/crypto.py | biobdeveloper/bithonledger | 5d90aeb881d449725b4c68c6f8deb9796a94576b | [
"MIT"
] | 6 | 2019-11-11T23:17:00.000Z | 2019-11-18T19:59:09.000Z | src/utils/crypto.py | biobdeveloper/bithonledger | 5d90aeb881d449725b4c68c6f8deb9796a94576b | [
"MIT"
] | null | null | null | src/utils/crypto.py | biobdeveloper/bithonledger | 5d90aeb881d449725b4c68c6f8deb9796a94576b | [
"MIT"
] | null | null | null | """Cryptography module.
Encrypt and decrypt user's Bitcoin WIFs.
"""
import rncryptor
from base64 import b64encode, b64decode
def encrypt(wif, password):
return b64encode(rncryptor.RNCryptor().encrypt(data=wif, password=password)).decode('utf-8')
def decrypt(enc_wif, password):
return rncryptor.RNCryptor()... | 25.6 | 96 | 0.760417 | 49 | 384 | 5.918367 | 0.510204 | 0.113793 | 0.117241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034985 | 0.106771 | 384 | 14 | 97 | 27.428571 | 0.810496 | 0.161458 | 0 | 0 | 0 | 0 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.666667 | 0.333333 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 4 |
0ce778c5dece7d0a49de603de42d5dd930e2623d | 98 | py | Python | love_pet_lifetime/pet_purchase/apps.py | DCCop/love-pet-lifetime | 65408e2708c471d95ed7661e287f8af2e766e6c2 | [
"MIT"
] | null | null | null | love_pet_lifetime/pet_purchase/apps.py | DCCop/love-pet-lifetime | 65408e2708c471d95ed7661e287f8af2e766e6c2 | [
"MIT"
] | null | null | null | love_pet_lifetime/pet_purchase/apps.py | DCCop/love-pet-lifetime | 65408e2708c471d95ed7661e287f8af2e766e6c2 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class PetPurchaseConfig(AppConfig):
name = 'pet_purchase'
| 16.333333 | 35 | 0.77551 | 11 | 98 | 6.818182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 98 | 5 | 36 | 19.6 | 0.903614 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0b61433063b8df75c7a017f885e2a92eb8c214a1 | 160 | py | Python | test_SERVER.py | eelviral/RTC-Data-Streaming | 8a139b7463477dd11021a2e7c332819ac0cc08c9 | [
"MIT"
] | null | null | null | test_SERVER.py | eelviral/RTC-Data-Streaming | 8a139b7463477dd11021a2e7c332819ac0cc08c9 | [
"MIT"
] | null | null | null | test_SERVER.py | eelviral/RTC-Data-Streaming | 8a139b7463477dd11021a2e7c332819ac0cc08c9 | [
"MIT"
] | null | null | null | import unittest
import server
class TestServer(unittest.TestCase):
def test_foo(self):
pass
if __name__ == '__main__':
unittest.main() | 17.777778 | 37 | 0.6625 | 18 | 160 | 5.388889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24375 | 160 | 9 | 38 | 17.777778 | 0.801653 | 0 | 0 | 0 | 0 | 0 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 0 | 0.571429 | 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 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
0b651b120a52fd75620219789b420981c0a47a16 | 86 | py | Python | expense_tracker/__init__.py | TClaypool00/ExpenseTrackerClient-Python | 44f45e7e7b7434d19a20a0d1b565592a157bed88 | [
"MIT"
] | null | null | null | expense_tracker/__init__.py | TClaypool00/ExpenseTrackerClient-Python | 44f45e7e7b7434d19a20a0d1b565592a157bed88 | [
"MIT"
] | null | null | null | expense_tracker/__init__.py | TClaypool00/ExpenseTrackerClient-Python | 44f45e7e7b7434d19a20a0d1b565592a157bed88 | [
"MIT"
] | null | null | null | import pymysql
pymysql.version_info = (1,4,0, "final", 0)
pymysql.install_as_MySQLdb() | 28.666667 | 42 | 0.767442 | 14 | 86 | 4.5 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.081395 | 86 | 3 | 43 | 28.666667 | 0.746835 | 0 | 0 | 0 | 0 | 0 | 0.057471 | 0 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0ba45ae38dc184b1466832423691d0aeb7b099fb | 185 | py | Python | tests/core/test_setproctitle.py | inan0812/chia-blockchain | 8de40989f56fb64d6ff1690ae0c2169cc11ad18b | [
"Apache-2.0"
] | 1 | 2021-09-19T18:59:19.000Z | 2021-09-19T18:59:19.000Z | tests/core/test_setproctitle.py | inan0812/chia-blockchain | 8de40989f56fb64d6ff1690ae0c2169cc11ad18b | [
"Apache-2.0"
] | null | null | null | tests/core/test_setproctitle.py | inan0812/chia-blockchain | 8de40989f56fb64d6ff1690ae0c2169cc11ad18b | [
"Apache-2.0"
] | 1 | 2022-02-08T19:58:12.000Z | 2022-02-08T19:58:12.000Z | import unittest
from inan.util.setproctitle import setproctitle
class TestSetProcTitle(unittest.TestCase):
def test_does_not_crash(self):
setproctitle("inan test title")
| 20.555556 | 47 | 0.778378 | 22 | 185 | 6.409091 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151351 | 185 | 8 | 48 | 23.125 | 0.898089 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0ba53c6dca51d33b3e96858b9454bfbb4d1fb098 | 112 | py | Python | libs/python/stupendous_cow/__init__.py | tomault/stupendous-cow | 95955a52fa1aa70ded564ffeb7780ada66ab3741 | [
"Apache-2.0"
] | null | null | null | libs/python/stupendous_cow/__init__.py | tomault/stupendous-cow | 95955a52fa1aa70ded564ffeb7780ada66ab3741 | [
"Apache-2.0"
] | null | null | null | libs/python/stupendous_cow/__init__.py | tomault/stupendous-cow | 95955a52fa1aa70ded564ffeb7780ada66ab3741 | [
"Apache-2.0"
] | null | null | null | """Python packages that contain the common code for the "stupendous-cow"
article indexing and search system."""
| 37.333333 | 72 | 0.776786 | 16 | 112 | 5.4375 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133929 | 112 | 2 | 73 | 56 | 0.896907 | 0.9375 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 4 |
f03860c324dc772ec3ce22821d54ca897b8331ed | 103 | py | Python | start.py | Jajabenit250/flask-with-fairseq | 75512f913742e29627fe4108e02fb21119086c09 | [
"Apache-2.0"
] | null | null | null | start.py | Jajabenit250/flask-with-fairseq | 75512f913742e29627fe4108e02fb21119086c09 | [
"Apache-2.0"
] | null | null | null | start.py | Jajabenit250/flask-with-fairseq | 75512f913742e29627fe4108e02fb21119086c09 | [
"Apache-2.0"
] | null | null | null | from flask import Flask
app = Flask(__name__)
@app.route('/')
def start():
return 'App Is Started' | 17.166667 | 27 | 0.679612 | 15 | 103 | 4.4 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174757 | 103 | 6 | 27 | 17.166667 | 0.776471 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
f03d4648e4f4ff3f16e93fabcd2bb4f5ebdf5c8c | 165 | py | Python | API_Forms/gestionPedidos/Forms.py | BrianMarquez3/Python-Django | 61f84a01b7f57254f9dcbbad86cc4c88c2acf4d7 | [
"MIT"
] | 2 | 2020-09-28T21:23:59.000Z | 2021-11-10T15:01:15.000Z | API_Forms/gestionPedidos/Forms.py | BrianMarquez3/Python-Django | 61f84a01b7f57254f9dcbbad86cc4c88c2acf4d7 | [
"MIT"
] | 21 | 2021-02-04T01:37:44.000Z | 2022-03-12T01:00:55.000Z | API_Forms/gestionPedidos/Forms.py | BrianMarquez3/Python-Django | 61f84a01b7f57254f9dcbbad86cc4c88c2acf4d7 | [
"MIT"
] | null | null | null | # API FORMS
from django import forms
class FormularioContacto(forms.Form):
asunto=forms.CharField()
email=forms.EmailField()
mensaje=forms.CharField() | 18.333333 | 37 | 0.739394 | 19 | 165 | 6.421053 | 0.684211 | 0.229508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157576 | 165 | 9 | 38 | 18.333333 | 0.877698 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f04d4f2e589fc3d46fdc0b03813fe3e2bfb0c807 | 162 | py | Python | tests/test_encoding.py | mschneider/mango-explorer | ed50880ef80b31b679c9c89fa9bf0579391d71c9 | [
"MIT"
] | 1 | 2021-09-09T20:49:46.000Z | 2021-09-09T20:49:46.000Z | tests/test_encoding.py | mschneider/mango-explorer | ed50880ef80b31b679c9c89fa9bf0579391d71c9 | [
"MIT"
] | null | null | null | tests/test_encoding.py | mschneider/mango-explorer | ed50880ef80b31b679c9c89fa9bf0579391d71c9 | [
"MIT"
] | 2 | 2021-09-09T20:49:50.000Z | 2021-11-05T21:41:41.000Z | from .context import mango
def test_decode_binary():
data = mango.decode_binary(["SGVsbG8gV29ybGQ=", "base64"]) # "Hello World"
assert len(data) == 11
| 23.142857 | 79 | 0.685185 | 20 | 162 | 5.4 | 0.8 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052239 | 0.17284 | 162 | 6 | 80 | 27 | 0.753731 | 0.080247 | 0 | 0 | 0 | 0 | 0.14966 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f04f4e33322a4f58f4878b3d21de833f5874382b | 134 | py | Python | zenodo_gitlab/objects.py | tuw-eeg/zenodo-gitlab | ffb6d4fd10dc9bb191c3895b66240951deddd520 | [
"MIT"
] | null | null | null | zenodo_gitlab/objects.py | tuw-eeg/zenodo-gitlab | ffb6d4fd10dc9bb191c3895b66240951deddd520 | [
"MIT"
] | null | null | null | zenodo_gitlab/objects.py | tuw-eeg/zenodo-gitlab | ffb6d4fd10dc9bb191c3895b66240951deddd520 | [
"MIT"
] | null | null | null | from enum import Enum
class ArchiveFormat(str, Enum):
ZIP = 'zip'
TAR_GZ = 'tar.gz'
TAR_BZ2 = 'tar.bz2'
TAR = 'tar'
| 14.888889 | 31 | 0.589552 | 20 | 134 | 3.85 | 0.5 | 0.12987 | 0.207792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.276119 | 134 | 8 | 32 | 16.75 | 0.773196 | 0 | 0 | 0 | 0 | 0 | 0.141791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f06a9dbc63da38664a554f2d8b76a0954d7be7f7 | 35 | py | Python | tests/__init__.py | ye-yu/aaapi | 61470683a51b8e7bf4fd89206833e007ec584b9e | [
"MIT"
] | 1 | 2020-02-20T13:36:04.000Z | 2020-02-20T13:36:04.000Z | tests/__init__.py | ye-yu/aaapi | 61470683a51b8e7bf4fd89206833e007ec584b9e | [
"MIT"
] | null | null | null | tests/__init__.py | ye-yu/aaapi | 61470683a51b8e7bf4fd89206833e007ec584b9e | [
"MIT"
] | null | null | null | """Unit test package for aaapi."""
| 17.5 | 34 | 0.657143 | 5 | 35 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 35 | 1 | 35 | 35 | 0.766667 | 0.8 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f06f7f7f2557c8e3d54bc5ca10703997349ab3a5 | 488 | py | Python | Heap/545.Top k Largest Numbers II/Solution.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 12 | 2019-05-04T04:21:27.000Z | 2022-03-02T07:06:57.000Z | Heap/545.Top k Largest Numbers II/Solution.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 1 | 2019-07-24T18:43:53.000Z | 2019-07-24T18:43:53.000Z | Heap/545.Top k Largest Numbers II/Solution.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 10 | 2019-07-01T04:03:04.000Z | 2022-03-09T03:57:37.000Z | import heapq
class Solution:
"""
@param: k: An integer
"""
def __init__(self, k):
# do intialization if necessary
self.pq = []
self.k = k
"""
@param: num: Number to be added
@return: nothing
"""
def add(self, num):
# write your code here
hea... | 18.074074 | 46 | 0.52459 | 60 | 488 | 4.2 | 0.55 | 0.059524 | 0.103175 | 0.134921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.352459 | 488 | 26 | 47 | 18.769231 | 0.797468 | 0.192623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.111111 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
f08072e33f6e440479e5251f4bdd83e700bd2a76 | 35 | py | Python | data/studio21_generated/introductory/3729/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/3729/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/3729/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | def count_zeros_n_double_fact(n):
| 17.5 | 33 | 0.828571 | 7 | 35 | 3.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 35 | 2 | 34 | 17.5 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b2e5f9b8101a6aa05fa57e499ba88645f3d2b6c5 | 45 | py | Python | source/handlers/telegram_api/__init__.py | icYFTL/CBot | 39485334feb78d3ad35c2f11c57768fd679592d6 | [
"Apache-2.0"
] | null | null | null | source/handlers/telegram_api/__init__.py | icYFTL/CBot | 39485334feb78d3ad35c2f11c57768fd679592d6 | [
"Apache-2.0"
] | null | null | null | source/handlers/telegram_api/__init__.py | icYFTL/CBot | 39485334feb78d3ad35c2f11c57768fd679592d6 | [
"Apache-2.0"
] | null | null | null | from . import *
__all__ = ['events', 'misc'] | 15 | 28 | 0.6 | 5 | 45 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 45 | 3 | 28 | 15 | 0.621622 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b2fb01fb89beede362f3bc7dc126790d47e7c341 | 43 | py | Python | toph_copycat.py | novojitdas/PythonProblemsSolutions | 99fcb6cf59f2189d8e999d639fe716bb6521bbcb | [
"MIT"
] | null | null | null | toph_copycat.py | novojitdas/PythonProblemsSolutions | 99fcb6cf59f2189d8e999d639fe716bb6521bbcb | [
"MIT"
] | null | null | null | toph_copycat.py | novojitdas/PythonProblemsSolutions | 99fcb6cf59f2189d8e999d639fe716bb6521bbcb | [
"MIT"
] | null | null | null | value = input("Enter Input:")
print(value)
| 14.333333 | 29 | 0.697674 | 6 | 43 | 5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 43 | 2 | 30 | 21.5 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.27907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
6511972f6a13ecfd3c63d6e8be7f27a395180650 | 43,480 | py | Python | catboost/python-package/ut/medium/canondata/test.test_export_to_python_no_cat_features_CPU-40_/model.py | EkaterinaPogodina/catboost | 4628e86e978da2ec5e4d42f6b8d05e0b5e8aab30 | [
"Apache-2.0"
] | 2 | 2019-07-10T10:49:09.000Z | 2020-06-19T11:40:04.000Z | catboost/python-package/ut/medium/canondata/test.test_export_to_python_no_cat_features_CPU-40_/model.py | EkaterinaPogodina/catboost | 4628e86e978da2ec5e4d42f6b8d05e0b5e8aab30 | [
"Apache-2.0"
] | null | null | null | catboost/python-package/ut/medium/canondata/test.test_export_to_python_no_cat_features_CPU-40_/model.py | EkaterinaPogodina/catboost | 4628e86e978da2ec5e4d42f6b8d05e0b5e8aab30 | [
"Apache-2.0"
] | null | null | null | ### Model data
class catboost_model(object):
float_features_index = [
0, 1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 28, 31, 32, 33, 35, 37, 38, 39, 46, 47, 48, 49,
]
float_feature_count = 50
cat_feature_count = 0
binary_feature_count = 36
tree_co... | 228.842105 | 1,227 | 0.751173 | 5,723 | 43,480 | 5.671151 | 0.289883 | 0.089783 | 0.082912 | 0.08208 | 0.054351 | 0.044892 | 0.035217 | 0.027791 | 0.02015 | 0.018764 | 0 | 0.775809 | 0.117548 | 43,480 | 189 | 1,228 | 230.05291 | 0.070083 | 0.015593 | 0 | 0.145695 | 0 | 0 | 0.000234 | 0 | 0 | 0 | 0.000234 | 0 | 0.013245 | 1 | 0.013245 | false | 0 | 0 | 0.006623 | 0.13245 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6522bc5c7abd6744cba75a46a735a944d3a2b574 | 93 | py | Python | news_collector/collector/apps.py | orehush/channels-examples | 5721e346c2e50381868c80c1daa8551d1d80eac5 | [
"BSD-3-Clause"
] | 1,311 | 2016-03-23T20:04:59.000Z | 2022-03-22T11:32:24.000Z | news_collector/collector/apps.py | orehush/channels-examples | 5721e346c2e50381868c80c1daa8551d1d80eac5 | [
"BSD-3-Clause"
] | 48 | 2016-12-06T06:13:55.000Z | 2022-03-23T20:11:04.000Z | news_collector/collector/apps.py | orehush/channels-examples | 5721e346c2e50381868c80c1daa8551d1d80eac5 | [
"BSD-3-Clause"
] | 529 | 2016-03-23T20:19:15.000Z | 2022-03-22T11:32:29.000Z | from django.apps import AppConfig
class CollectorConfig(AppConfig):
name = 'collector'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e8dd01deb2f05d551a7f88dd7fc20e3d5f3608cd | 185 | py | Python | packages/django-backend/notify/apps.py | ZechyW/cs-toolkit | 802a28b3a4ce33754b8a986f6d2eb616aad017d4 | [
"MIT"
] | 1 | 2021-08-02T18:32:08.000Z | 2021-08-02T18:32:08.000Z | packages/django-backend/notify/apps.py | ZechyW/cs-toolkit | 802a28b3a4ce33754b8a986f6d2eb616aad017d4 | [
"MIT"
] | 5 | 2021-03-09T17:02:32.000Z | 2022-02-26T17:28:38.000Z | packages/django-backend/notify/apps.py | ZechyW/cs-toolkit | 802a28b3a4ce33754b8a986f6d2eb616aad017d4 | [
"MIT"
] | 1 | 2021-08-02T18:32:09.000Z | 2021-08-02T18:32:09.000Z | from django.apps import AppConfig
class NotifyConfig(AppConfig):
name = "notify"
def ready(self):
# noinspection PyUnresolvedReferences
import notify.signals
| 18.5 | 45 | 0.702703 | 18 | 185 | 7.222222 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232432 | 185 | 9 | 46 | 20.555556 | 0.915493 | 0.189189 | 0 | 0 | 0 | 0 | 0.040541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e8fa23411968e14b027f71bb5a6a384e0fd3d995 | 789 | py | Python | Module-04-Generators/py09_generator_send_example_3.py | CodingGearsCourses/Python-Advanced-Concepts | 6ba1a1751fe0ee94816020a023158bc4ef13e2d3 | [
"MIT"
] | null | null | null | Module-04-Generators/py09_generator_send_example_3.py | CodingGearsCourses/Python-Advanced-Concepts | 6ba1a1751fe0ee94816020a023158bc4ef13e2d3 | [
"MIT"
] | null | null | null | Module-04-Generators/py09_generator_send_example_3.py | CodingGearsCourses/Python-Advanced-Concepts | 6ba1a1751fe0ee94816020a023158bc4ef13e2d3 | [
"MIT"
] | null | null | null | # Copyright 2020 https://www.globaletraining.com/
# Generator send method
def simple_gen(start_number=10):
i = start_number
while True:
x = (yield i * 2)
if x: # check if used send()
i += x
else:
i += 1
gen1 = simple_gen()
print(gen1.__next__())
print... | 20.763158 | 49 | 0.66033 | 108 | 789 | 4.12037 | 0.277778 | 0.444944 | 0.525843 | 0.68764 | 0.65618 | 0.65618 | 0.597753 | 0.597753 | 0.597753 | 0.555056 | 0 | 0.059002 | 0.162231 | 789 | 38 | 50 | 20.763158 | 0.614221 | 0.114068 | 0 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0 | 0 | 0.032258 | 0.709677 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
331222ae4a4ee18ea2c6aa64dfcbc198fbebdc5d | 111 | py | Python | src/stories/contrib/sentry/django.py | dargor/stories | 550a36506c5ec0a4603c0f14a3c5fe52132ef6bf | [
"BSD-2-Clause"
] | 1 | 2021-07-17T01:36:41.000Z | 2021-07-17T01:36:41.000Z | src/stories/contrib/sentry/django.py | dargor/stories | 550a36506c5ec0a4603c0f14a3c5fe52132ef6bf | [
"BSD-2-Clause"
] | null | null | null | src/stories/contrib/sentry/django.py | dargor/stories | 550a36506c5ec0a4603c0f14a3c5fe52132ef6bf | [
"BSD-2-Clause"
] | null | null | null | import stories.contrib.sentry.breadcrumbs # noqa
from raven.contrib.django.client import DjangoClient # noqa
| 37 | 60 | 0.81982 | 14 | 111 | 6.5 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 111 | 2 | 61 | 55.5 | 0.919192 | 0.081081 | 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 | 0 | 0 | 0 | 4 |
335ef229f069de361d9c3d97ad5e5823e6980f59 | 237 | py | Python | source/knowledge/python/example_python/HzuNews.py | Eugene-Forest/NoteBook | 45f627c9417ce30fd301b67c83c1f82a743de687 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T09:08:26.000Z | 2021-12-22T09:08:26.000Z | source/knowledge/python/example_python/HzuNews.py | Eugene-Forest/NoteBook | 45f627c9417ce30fd301b67c83c1f82a743de687 | [
"BSD-3-Clause"
] | null | null | null | source/knowledge/python/example_python/HzuNews.py | Eugene-Forest/NoteBook | 45f627c9417ce30fd301b67c83c1f82a743de687 | [
"BSD-3-Clause"
] | null | null | null | # 用来存储从惠州学院新闻网获取的一个新闻对象
class HzuNews:
"""一个简单的新闻信息数据结构"""
def __init__(self, title, link, time):
self.title = title
self.link = link
self.time = time
def get_title(self):
return self.title
| 18.230769 | 42 | 0.603376 | 26 | 237 | 5.307692 | 0.461538 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295359 | 237 | 12 | 43 | 19.75 | 0.826347 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
336113c5514f3b1fb67bac50810f99fdc61bfbe7 | 4,347 | py | Python | cmsplugin_bootstrap_grid/models.py | movermeyer/cmsplugin-bootstrap | 2a03a9fd609fc166a5a4e19a22fbcfbfa081fad7 | [
"BSD-3-Clause"
] | null | null | null | cmsplugin_bootstrap_grid/models.py | movermeyer/cmsplugin-bootstrap | 2a03a9fd609fc166a5a4e19a22fbcfbfa081fad7 | [
"BSD-3-Clause"
] | null | null | null | cmsplugin_bootstrap_grid/models.py | movermeyer/cmsplugin-bootstrap | 2a03a9fd609fc166a5a4e19a22fbcfbfa081fad7 | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
from cms.models import CMSPlugin
from cmsplugin_bootstrap_grid.utils import HtmlAttributeDict
from django.conf import settings
from django.db import models
from django.utils.translation import ugettext as _
CONFIG = {'COLUMNS': 12}
CONFIG.update(getattr(settings, 'CMSPLUGIN_GRID_CONFIG', {}))
SIZE_XS_... | 43.909091 | 102 | 0.665286 | 611 | 4,347 | 4.436989 | 0.139116 | 0.011804 | 0.088528 | 0.062707 | 0.75581 | 0.701217 | 0.701217 | 0.701217 | 0.66138 | 0.66138 | 0 | 0.019154 | 0.195307 | 4,347 | 99 | 103 | 43.909091 | 0.754145 | 0.002991 | 0 | 0.405063 | 0 | 0 | 0.165243 | 0.004847 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050633 | false | 0 | 0.063291 | 0.025316 | 0.341772 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.