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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6c190b99ea994ffc1ca8087655dac9804505e031 | 345 | py | Python | backend/src/profiling/sherlock.py | OpertusMundi/discovery-service | 82abd8e9e997075d840bdccbcc9f991009c6cec6 | [
"Apache-2.0"
] | null | null | null | backend/src/profiling/sherlock.py | OpertusMundi/discovery-service | 82abd8e9e997075d840bdccbcc9f991009c6cec6 | [
"Apache-2.0"
] | null | null | null | backend/src/profiling/sherlock.py | OpertusMundi/discovery-service | 82abd8e9e997075d840bdccbcc9f991009c6cec6 | [
"Apache-2.0"
] | null | null | null | from sherlock.deploy.predict_sherlock import predict_sherlock
from sherlock.features.preprocessing import extract_features, convert_string_lists_to_lists, prepare_feature_extraction
def predict(df):
lists = df.head(100).transpose().apply(lambda x: x.to_list(), axis=1)
return predict_sherlock(extract_features(l... | 57.5 | 119 | 0.817391 | 48 | 345 | 5.604167 | 0.604167 | 0.167286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012698 | 0.086957 | 345 | 6 | 120 | 57.5 | 0.84127 | 0 | 0 | 0 | 0 | 0 | 0.023121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6c1e1b1634df269d370a497e4e2e39254b0899d6 | 1,277 | py | Python | car/car/items.py | jieguangzhou/spider | 81f25fd19753f1a50b4e442b078fdc2dc31fda12 | [
"MIT"
] | null | null | null | car/car/items.py | jieguangzhou/spider | 81f25fd19753f1a50b4e442b078fdc2dc31fda12 | [
"MIT"
] | null | null | null | car/car/items.py | jieguangzhou/spider | 81f25fd19753f1a50b4e442b078fdc2dc31fda12 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class BrandItem(scrapy.Item):
# define the fields for your item here like:
name = scrapy.Field()
url = scrapy.Field()
id = scrapy.Field(... | 22.803571 | 52 | 0.646829 | 167 | 1,277 | 4.916168 | 0.275449 | 0.321559 | 0.097442 | 0.115713 | 0.599269 | 0.599269 | 0.599269 | 0.557856 | 0.557856 | 0.557856 | 0 | 0.001025 | 0.235709 | 1,277 | 55 | 53 | 23.218182 | 0.840164 | 0.277995 | 0 | 0.657143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.028571 | 0 | 0.857143 | 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 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
6c3ef19852057951ff717d948cef05ccbff3a68e | 344 | py | Python | ambry_indicator/controllers/root.py | CivicKnowledge/ambry-indicator | b57657f6bd0493329af49e83a69ba9bb0315824a | [
"BSD-2-Clause"
] | null | null | null | ambry_indicator/controllers/root.py | CivicKnowledge/ambry-indicator | b57657f6bd0493329af49e83a69ba9bb0315824a | [
"BSD-2-Clause"
] | null | null | null | ambry_indicator/controllers/root.py | CivicKnowledge/ambry-indicator | b57657f6bd0493329af49e83a69ba9bb0315824a | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2016 Civic Knowledge. All Rights Reserved
# This software may be modified and distributed under the terms of the BSD license.
# See the LICENSE file for details.
def get_root():
return ['do some magic?','or don\'t']
def get_measure_root(id):
return "got id {} ({}) ... | 24.571429 | 85 | 0.662791 | 52 | 344 | 4.326923 | 0.807692 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018248 | 0.203488 | 344 | 13 | 86 | 26.461538 | 0.80292 | 0.555233 | 0 | 0 | 0 | 0 | 0.246575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6c6857d61ba4f2d120b4380e250caf3a16d34896 | 1,066 | bzl | Python | coral/pose_estimation/model_benchmark_cases.bzl | hjonnala/libcoral | 3b1e06417cd239172912f87448b864226953762c | [
"Apache-2.0"
] | 38 | 2020-10-27T12:46:12.000Z | 2022-03-26T13:15:44.000Z | coral/pose_estimation/model_benchmark_cases.bzl | hjonnala/libcoral | 3b1e06417cd239172912f87448b864226953762c | [
"Apache-2.0"
] | 19 | 2020-11-12T02:37:53.000Z | 2022-03-24T14:28:07.000Z | coral/pose_estimation/model_benchmark_cases.bzl | hjonnala/libcoral | 3b1e06417cd239172912f87448b864226953762c | [
"Apache-2.0"
] | 17 | 2020-11-21T16:35:46.000Z | 2022-03-26T07:46:21.000Z | """Posenet model benchmark case list."""
POSE_ESTIMATION_MODEL_BENCHMARK_CASES = [
# PoseNet
{
"benchmark_name": "BM_PoseNet_MobileNetV1_075_353_481_WithDecoder",
"model_path": "posenet/posenet_mobilenet_v1_075_353_481_16_quant_decoder",
},
{
"benchmark_name": "BM_PoseNet_Mobile... | 33.3125 | 83 | 0.703565 | 120 | 1,066 | 5.566667 | 0.275 | 0.116766 | 0.134731 | 0.161677 | 0.497006 | 0.419162 | 0.365269 | 0.365269 | 0.149701 | 0 | 0 | 0.105018 | 0.19606 | 1,066 | 31 | 84 | 34.387097 | 0.674446 | 0.064728 | 0 | 0 | 0 | 0 | 0.665319 | 0.483316 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6c6a5db1dc3267c16829f5d2462ef005359fd8b5 | 50 | py | Python | qc2tsv/__init__.py | ENCODE-DCC/qc2tsv | f6bd9959d71254a10792bc30414dddcdcdf3865c | [
"MIT"
] | 2 | 2020-04-10T02:24:45.000Z | 2020-09-13T15:30:14.000Z | qc2tsv/__init__.py | ENCODE-DCC/qc2tsv | f6bd9959d71254a10792bc30414dddcdcdf3865c | [
"MIT"
] | 1 | 2020-04-10T03:05:29.000Z | 2020-07-20T22:27:42.000Z | qc2tsv/__init__.py | ENCODE-DCC/qc2tsv | f6bd9959d71254a10792bc30414dddcdcdf3865c | [
"MIT"
] | null | null | null | from .qc2tsv import Qc2Tsv
__version__ = '0.2.0'
| 12.5 | 26 | 0.72 | 8 | 50 | 4 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 0.16 | 50 | 3 | 27 | 16.666667 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6c81e39a57559790694cc514611efed4de8b6db2 | 98 | py | Python | templates/rec.py | Anjali001/Hybrid_recommender_system | afb57a9e10b5453795720005736e0579d8d19780 | [
"BSD-4-Clause-UC"
] | 2 | 2020-10-08T17:44:53.000Z | 2021-07-25T08:23:06.000Z | templates/rec.py | Anjali001/Hybrid_recommender_system | afb57a9e10b5453795720005736e0579d8d19780 | [
"BSD-4-Clause-UC"
] | null | null | null | templates/rec.py | Anjali001/Hybrid_recommender_system | afb57a9e10b5453795720005736e0579d8d19780 | [
"BSD-4-Clause-UC"
] | null | null | null |
listmovies=[]
listmovies=movies
return render_template('shopping.html', listmovies=listmovies) | 24.5 | 62 | 0.806122 | 10 | 98 | 7.8 | 0.7 | 0.512821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 98 | 4 | 62 | 24.5 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.136842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
6c8873b5aaa87ec6097e5a758acaabdbb1546a60 | 221 | py | Python | categories/urls.py | matthewgan/xsteam | 64bc33a15902d15df910c42d82e708b75787c4f0 | [
"MIT"
] | null | null | null | categories/urls.py | matthewgan/xsteam | 64bc33a15902d15df910c42d82e708b75787c4f0 | [
"MIT"
] | null | null | null | categories/urls.py | matthewgan/xsteam | 64bc33a15902d15df910c42d82e708b75787c4f0 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from .views import CategoryListView, CategoryCourseListView
urlpatterns = [
url(r'^$', CategoryListView.as_view()),
url(r'^(?P<pk>[0-9]+)/$', CategoryCourseListView.as_view()),
] | 27.625 | 64 | 0.705882 | 26 | 221 | 5.923077 | 0.653846 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010256 | 0.117647 | 221 | 8 | 65 | 27.625 | 0.779487 | 0 | 0 | 0 | 0 | 0 | 0.085586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
66a2361958d7b0dc740a8e2e443acb26a8b1b443 | 707 | py | Python | stochastic/processes/continuous/wiener.py | zaczw/stochastic | 7de6ec2f9050120adfcffeebc94bfc17ec916150 | [
"MIT"
] | 268 | 2018-01-17T18:45:20.000Z | 2022-03-28T06:05:30.000Z | stochastic/processes/continuous/wiener.py | zaczw/stochastic | 7de6ec2f9050120adfcffeebc94bfc17ec916150 | [
"MIT"
] | 42 | 2018-07-11T02:17:43.000Z | 2021-11-27T03:27:32.000Z | stochastic/processes/continuous/wiener.py | zaczw/stochastic | 7de6ec2f9050120adfcffeebc94bfc17ec916150 | [
"MIT"
] | 56 | 2018-02-20T09:32:50.000Z | 2022-02-15T15:39:37.000Z | """Wiener process."""
from stochastic.processes.continuous.brownian_motion import BrownianMotion
class WienerProcess(BrownianMotion):
"""Wiener process, or standard Brownian motion.
.. image:: _static/wiener_process.png
:scale: 50%
:param float t: the right hand endpoint of the time interval :ma... | 29.458333 | 78 | 0.663366 | 96 | 707 | 4.6875 | 0.53125 | 0.115556 | 0.035556 | 0.048889 | 0.071111 | 0.071111 | 0 | 0 | 0 | 0 | 0 | 0.012389 | 0.200849 | 707 | 23 | 79 | 30.73913 | 0.784071 | 0.394625 | 0 | 0 | 0 | 0 | 0.117347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.25 | 0.875 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
66c312af6865d150e46b4bb963e5ca4ff9c032d4 | 273 | py | Python | activation_functions.py | yselivonchyk/DCIGN_tensorflow | ff8d85f3a7b7ca1e5c3f50ff003a1c09a70067cd | [
"MIT"
] | 22 | 2017-01-29T14:56:01.000Z | 2020-10-30T17:43:25.000Z | activation_functions.py | yselivonchyk/DCIGN_tensorflow | ff8d85f3a7b7ca1e5c3f50ff003a1c09a70067cd | [
"MIT"
] | 1 | 2017-07-16T14:53:21.000Z | 2017-07-16T14:53:21.000Z | activation_functions.py | yselivonchyk/DCIGN_tensorflow | ff8d85f3a7b7ca1e5c3f50ff003a1c09a70067cd | [
"MIT"
] | 10 | 2018-05-16T07:03:00.000Z | 2022-03-04T12:13:13.000Z | import tensorflow as tf
sigmoid = type('Fake', (object,), { "func": tf.nn.sigmoid, "min": 0, 'max': 1})
tanh = type('Fake', (object,), { "func": tf.nn.tanh, "min": -1, 'max': 1})
relu = type('Fake', (object,), { "func": tf.nn.relu, "min": 0, 'max': 1})
| 45.5 | 82 | 0.512821 | 40 | 273 | 3.5 | 0.4 | 0.171429 | 0.3 | 0.385714 | 0.471429 | 0.471429 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.208791 | 273 | 5 | 83 | 54.6 | 0.62037 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
66d4a85fb045e146d42971a6d13a9381a334f155 | 177 | py | Python | yaml_demo.py | SoftwareEngineering4Scientists/python_testing | 36aa9172caf602d86e3938645677eb5a3c9aa7be | [
"MIT"
] | null | null | null | yaml_demo.py | SoftwareEngineering4Scientists/python_testing | 36aa9172caf602d86e3938645677eb5a3c9aa7be | [
"MIT"
] | null | null | null | yaml_demo.py | SoftwareEngineering4Scientists/python_testing | 36aa9172caf602d86e3938645677eb5a3c9aa7be | [
"MIT"
] | null | null | null | import yaml
with open("yaml_ex.yml", "r") as yml_file:
contents = yaml.full_load(yml_file)
print(type(contents))
print(contents.keys())
print(contents['multi']) | 25.285714 | 42 | 0.677966 | 26 | 177 | 4.461538 | 0.615385 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163842 | 177 | 7 | 43 | 25.285714 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0.095506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
dd1f3666f6f6fde8f0704625c3ed4d0f306062ad | 5,221 | py | Python | notegame/games/topwar/entity/request.py | notechats/notegame | 3d9538b98cb6b0b240956b1271e028b22458fc54 | [
"Apache-2.0"
] | null | null | null | notegame/games/topwar/entity/request.py | notechats/notegame | 3d9538b98cb6b0b240956b1271e028b22458fc54 | [
"Apache-2.0"
] | null | null | null | notegame/games/topwar/entity/request.py | notechats/notegame | 3d9538b98cb6b0b240956b1271e028b22458fc54 | [
"Apache-2.0"
] | null | null | null | import json
from notegame.games.topwar.entity.base_enum import ActionEnum
from notetool.secret import read_secret
class ActionRequest:
def __init__(self, cid=None, o=None, p=None):
self.cid = cid
self.o = o
self.p = p or {}
@staticmethod
def login(token=None, version="1.231.2", s... | 28.530055 | 113 | 0.340548 | 424 | 5,221 | 4.106132 | 0.332547 | 0.113728 | 0.1861 | 0.174612 | 0.314762 | 0.301551 | 0.268811 | 0.268811 | 0.268811 | 0.244687 | 0 | 0.091352 | 0.528251 | 5,221 | 182 | 114 | 28.686813 | 0.61551 | 0.012258 | 0 | 0.388235 | 0 | 0 | 0.123375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052941 | false | 0 | 0.017647 | 0 | 0.123529 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dd3bd91f45686c2d5a779ae1f6688fc8351983d5 | 728 | py | Python | src/acrtransfer/azext_acrtransfer/_client_factory.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 207 | 2017-11-29T06:59:41.000Z | 2022-03-31T10:00:53.000Z | src/acrtransfer/azext_acrtransfer/_client_factory.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 4,061 | 2017-10-27T23:19:56.000Z | 2022-03-31T23:18:30.000Z | src/acrtransfer/azext_acrtransfer/_client_factory.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 802 | 2017-10-11T17:36:26.000Z | 2022-03-31T22:24:32.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 60.666667 | 157 | 0.623626 | 68 | 728 | 6.382353 | 0.764706 | 0.02765 | 0.064516 | 0.092166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01194 | 0.07967 | 728 | 11 | 158 | 66.181818 | 0.635821 | 0.502747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dd5909a31d6ca8f2bdcdca7fe2ce200b6e88e172 | 117 | py | Python | web_scraping/ec2files/ec2file63.py | nikibhatt/Groa | fc2d4ae87cb825e6d54a0831c72be16541eebe61 | [
"MIT"
] | 1 | 2020-04-08T19:44:30.000Z | 2020-04-08T19:44:30.000Z | web_scraping/ec2files/ec2file63.py | cmgospod/Groa | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | [
"MIT"
] | null | null | null | web_scraping/ec2files/ec2file63.py | cmgospod/Groa | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | [
"MIT"
] | 1 | 2020-09-12T07:07:41.000Z | 2020-09-12T07:07:41.000Z | from scraper import *
s = Scraper(start=112266, end=114047, max_iter=30, scraper_instance=63)
s.scrape_letterboxd() | 39 | 72 | 0.777778 | 18 | 117 | 4.888889 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152381 | 0.102564 | 117 | 3 | 73 | 39 | 0.685714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dd6cc20662edffae4f15dcbf4e9878f9c5fab77e | 373 | py | Python | HelloWorldController.py | pip-services-samples/pip-quickstart-python | fa327568c4f87fe289dab629a2b649d48469a991 | [
"MIT"
] | null | null | null | HelloWorldController.py | pip-services-samples/pip-quickstart-python | fa327568c4f87fe289dab629a2b649d48469a991 | [
"MIT"
] | null | null | null | HelloWorldController.py | pip-services-samples/pip-quickstart-python | fa327568c4f87fe289dab629a2b649d48469a991 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class HelloWorldController:
__defaultName = None
def __init__(self):
self.__defaultName = "Pip User"
def configure(self, config):
self.__defaultName = config.get_as_string_with_default("default_name", self.__defaultName)
def greeting(self, name):
retur... | 26.642857 | 98 | 0.678284 | 43 | 373 | 5.44186 | 0.604651 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00339 | 0.209115 | 373 | 13 | 99 | 28.692308 | 0.789831 | 0.0563 | 0 | 0 | 0 | 0 | 0.191429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.125 | 0.75 | 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 | 0 | 0 | 0 | 3 |
dd89ed89153c6360896bd6733216475ef9a8e9fd | 294 | py | Python | pyivle/delta_datasets.py | wryyl/pyivle | 0c4323253fbcded33820a7e6b7fe60a52fd11472 | [
"MIT"
] | null | null | null | pyivle/delta_datasets.py | wryyl/pyivle | 0c4323253fbcded33820a7e6b7fe60a52fd11472 | [
"MIT"
] | null | null | null | pyivle/delta_datasets.py | wryyl/pyivle | 0c4323253fbcded33820a7e6b7fe60a52fd11472 | [
"MIT"
] | null | null | null | import api
class DeltaDatasets():
# DeltaDatasets.Delta_ModuleTimeTable
def delta_module_timetable(self, lastModified, moduleCode=None, auth=True):
params = {'LastModified': lastModified, 'ModuleCode': moduleCode}
return api.call('Delta_ModuleTimeTable', params, auth)
| 36.75 | 79 | 0.741497 | 29 | 294 | 7.37931 | 0.62069 | 0.186916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156463 | 294 | 7 | 80 | 42 | 0.862903 | 0.119048 | 0 | 0 | 0 | 0 | 0.167315 | 0.081712 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
dd96afaacbaa0de8ae942996f405867883f37822 | 427 | py | Python | dustmaker/__init__.py | msg555/dustmaker | 8ce54e7e6b29af75d72ca42051881df26624b6fc | [
"Apache-2.0"
] | 11 | 2015-09-29T07:48:30.000Z | 2019-05-05T20:44:48.000Z | dustmaker/__init__.py | msg555/dustmaker | 8ce54e7e6b29af75d72ca42051881df26624b6fc | [
"Apache-2.0"
] | 5 | 2016-10-16T00:30:18.000Z | 2022-02-12T20:04:11.000Z | dustmaker/__init__.py | msg555/dustmaker | 8ce54e7e6b29af75d72ca42051881df26624b6fc | [
"Apache-2.0"
] | 3 | 2016-10-15T20:51:03.000Z | 2019-03-21T03:31:47.000Z | """ Dustmaker explicit public exports. This is not the extent of the public
API, merely a convenience for accessing the most commonly used parts.
"""
from .level import Level
from .entity import Entity
from .prop import Prop
from .variable import Variable
from .exceptions import LevelException, LevelParseException
from... | 32.846154 | 75 | 0.810304 | 60 | 427 | 5.733333 | 0.566667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 427 | 12 | 76 | 35.583333 | 0.939891 | 0.330211 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
06d0f79aed27f5d3a20dc087c5995a9d201ad8e5 | 372 | py | Python | src/remember/core/unit_of_work.py | thebe111/remember | a802ea158ee03fcde496fa2ac80bf414540fe4fa | [
"MIT"
] | null | null | null | src/remember/core/unit_of_work.py | thebe111/remember | a802ea158ee03fcde496fa2ac80bf414540fe4fa | [
"MIT"
] | null | null | null | src/remember/core/unit_of_work.py | thebe111/remember | a802ea158ee03fcde496fa2ac80bf414540fe4fa | [
"MIT"
] | null | null | null | import abc
from typing import Any
class AbstractUnitOfWork(abc.ABC):
def __enter__(self) -> Any:
return self
def __exit__(self, *args: Any) -> None:
self.rollback()
@abc.abstractmethod
def commit(self) -> None:
raise NotImplementedError
@abc.abstractmethod
def rollba... | 19.578947 | 43 | 0.650538 | 40 | 372 | 5.85 | 0.475 | 0.145299 | 0.17094 | 0.273504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258065 | 372 | 18 | 44 | 20.666667 | 0.847826 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.153846 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
06d96c3f425c4d52f7f7bd9678577047d3af677d | 1,803 | py | Python | workers/base.py | Maczuga/bt-mqtt-gateway | e4b24f7be347476cd40a5c9756369f9042ef25bd | [
"MIT"
] | null | null | null | workers/base.py | Maczuga/bt-mqtt-gateway | e4b24f7be347476cd40a5c9756369f9042ef25bd | [
"MIT"
] | null | null | null | workers/base.py | Maczuga/bt-mqtt-gateway | e4b24f7be347476cd40a5c9756369f9042ef25bd | [
"MIT"
] | null | null | null | import functools
import logging
import tenacity
import logger
_LOGGER = logger.get(__name__)
class BaseWorker:
def __init__(self, command_timeout, **args):
self.command_timeout = command_timeout
for arg, value in args.items():
setattr(self, arg, value)
self._setup()
def _setup(self):
ret... | 28.171875 | 86 | 0.682751 | 230 | 1,803 | 4.978261 | 0.356522 | 0.052402 | 0.047162 | 0.029694 | 0.038428 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002044 | 0.185801 | 1,803 | 63 | 87 | 28.619048 | 0.777929 | 0 | 0 | 0 | 0 | 0 | 0.051581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.229167 | false | 0 | 0.083333 | 0.104167 | 0.541667 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
06e4ca9b147b8faf9165c0829cac8b58cad1b355 | 84 | py | Python | clash-of-code/fastest/length_binary_number.py | jonasnic/codingame | f1a7fe8007b9ca63bdf30cd72f4d6ac41a5ac721 | [
"MIT"
] | 30 | 2016-04-30T01:56:05.000Z | 2022-03-09T22:19:12.000Z | clash-of-code/fastest/length_binary_number.py | jonasnic/codingame | f1a7fe8007b9ca63bdf30cd72f4d6ac41a5ac721 | [
"MIT"
] | 1 | 2021-05-19T19:36:45.000Z | 2021-05-19T19:36:45.000Z | clash-of-code/fastest/length_binary_number.py | jonasnic/codingame | f1a7fe8007b9ca63bdf30cd72f4d6ac41a5ac721 | [
"MIT"
] | 17 | 2020-01-28T13:54:06.000Z | 2022-03-26T09:49:27.000Z | n = int(input())
for i in range(n):
x = int(input())
print(len(bin(x)) - 2)
| 16.8 | 26 | 0.511905 | 16 | 84 | 2.6875 | 0.75 | 0.372093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.25 | 84 | 4 | 27 | 21 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 | 0 | 0 | 0 | 3 |
06e7985bcb54af32a0dcd6adfe0943244b28afad | 128 | py | Python | tyrell/venv/lib/python3.8/site-packages/rpy2/rinterface_lib/na_values.py | YuehanLee/CS190I | c5e3dca9f3b936a15b254abfd0c245c470e8c27e | [
"Apache-2.0"
] | null | null | null | tyrell/venv/lib/python3.8/site-packages/rpy2/rinterface_lib/na_values.py | YuehanLee/CS190I | c5e3dca9f3b936a15b254abfd0c245c470e8c27e | [
"Apache-2.0"
] | null | null | null | tyrell/venv/lib/python3.8/site-packages/rpy2/rinterface_lib/na_values.py | YuehanLee/CS190I | c5e3dca9f3b936a15b254abfd0c245c470e8c27e | [
"Apache-2.0"
] | null | null | null | """NA (Non-Available) values in R."""
NA_Character = None
NA_Integer = None
NA_Logical = None
NA_Real = None
NA_Complex = None
| 16 | 37 | 0.71875 | 21 | 128 | 4.142857 | 0.571429 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164063 | 128 | 7 | 38 | 18.285714 | 0.813084 | 0.242188 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
06ea0dc06589c532ddc4063fbc090d085d7723e5 | 159 | py | Python | api/test_script.py | darshildave/GitHub-PR-Counter | f41d3f87d9265b312e2c2c089d55a3e423003a92 | [
"MIT"
] | null | null | null | api/test_script.py | darshildave/GitHub-PR-Counter | f41d3f87d9265b312e2c2c089d55a3e423003a92 | [
"MIT"
] | null | null | null | api/test_script.py | darshildave/GitHub-PR-Counter | f41d3f87d9265b312e2c2c089d55a3e423003a92 | [
"MIT"
] | null | null | null | import requests
import json
data = ["egoist", "andrew"]
res = requests.post("http://127.0.0.1:5000/api/prs/users/all", data=json.dumps(data))
print(res.json()) | 31.8 | 85 | 0.704403 | 27 | 159 | 4.148148 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068027 | 0.075472 | 159 | 5 | 86 | 31.8 | 0.693878 | 0 | 0 | 0 | 0 | 0 | 0.31875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 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 | 0 | 0 | 0 | 3 |
662ecd4e69b394fb34cfc67e7ef2841e59da79a9 | 79 | py | Python | aulas/aula42/main.py | Biguelini/Curso-Python-3 | 0b5df350f5901262927b11b6f2b9b215176808ff | [
"MIT"
] | null | null | null | aulas/aula42/main.py | Biguelini/Curso-Python-3 | 0b5df350f5901262927b11b6f2b9b215176808ff | [
"MIT"
] | null | null | null | aulas/aula42/main.py | Biguelini/Curso-Python-3 | 0b5df350f5901262927b11b6f2b9b215176808ff | [
"MIT"
] | null | null | null | from classes import *
c1 = ClienteVIP('João Pedro', 16, 'Biguelini')
c1.falar() | 26.333333 | 46 | 0.708861 | 11 | 79 | 5.090909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 0.126582 | 79 | 3 | 47 | 26.333333 | 0.753623 | 0 | 0 | 0 | 0 | 0 | 0.2375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
663edfd33ab4bad49273eeb5ff2b8efa09a10149 | 1,354 | py | Python | tests/test_string_types.py | andercruzbr/forcetype | 6f98a0af3df2f7114eda9f1edd384ba4b6162b28 | [
"MIT"
] | null | null | null | tests/test_string_types.py | andercruzbr/forcetype | 6f98a0af3df2f7114eda9f1edd384ba4b6162b28 | [
"MIT"
] | 3 | 2016-04-30T03:48:35.000Z | 2016-05-06T16:49:20.000Z | tests/test_string_types.py | andercruzbr/forcetype | 6f98a0af3df2f7114eda9f1edd384ba4b6162b28 | [
"MIT"
] | null | null | null | from unittest.case import TestCase
from forcetype import forcetype, WrongParameterTypeException, WrongReturnTypeException
@forcetype
def concat_str(str1: str, str2: str) -> str:
"""
concat_str
:param str1:
:param str2:
:return:
"""
return str1 + str2
@forcetype
def foo_str(str1: str, str2: str) -> str:
"""
... | 20.830769 | 86 | 0.713442 | 166 | 1,354 | 5.686747 | 0.295181 | 0.114407 | 0.069915 | 0.079449 | 0.474576 | 0.474576 | 0.125 | 0.125 | 0.125 | 0.125 | 0 | 0.027188 | 0.130724 | 1,354 | 64 | 87 | 21.15625 | 0.774851 | 0.067208 | 0 | 0.142857 | 0 | 0 | 0.033145 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.25 | false | 0.071429 | 0.071429 | 0 | 0.428571 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
6640cdbc22157def97f2f805da06c5f20e19e05a | 138 | py | Python | metasub_utils/metadata/metasub_utils/metadata/__init__.py | MetaSUB/metasub_utils | c52c5dde816d710db5ac8dc6f8804bb795a992e4 | [
"MIT"
] | 8 | 2018-12-30T23:35:03.000Z | 2022-02-22T09:43:48.000Z | metasub_utils/metadata/metasub_utils/metadata/__init__.py | MetaSUB/metasub_utils | c52c5dde816d710db5ac8dc6f8804bb795a992e4 | [
"MIT"
] | 5 | 2019-01-05T04:54:46.000Z | 2021-03-10T08:59:16.000Z | metasub_utils/metadata/metasub_utils/metadata/__init__.py | MetaSUB/metasub_utils | c52c5dde816d710db5ac8dc6f8804bb795a992e4 | [
"MIT"
] | 2 | 2019-08-26T22:08:18.000Z | 2020-02-24T19:57:17.000Z |
from .metadata import (
get_complete_metadata,
get_canonical_city_names,
get_samples_from_city,
normalize_sample_name,
)
| 17.25 | 29 | 0.76087 | 17 | 138 | 5.588235 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188406 | 138 | 7 | 30 | 19.714286 | 0.848214 | 0 | 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 | 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 | 3 |
66543f34083bf1a5601466be92b4d45dc61ed8c9 | 2,601 | py | Python | boto3_type_annotations/boto3_type_annotations/application_autoscaling/client.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 119 | 2018-12-01T18:20:57.000Z | 2022-02-02T10:31:29.000Z | boto3_type_annotations/boto3_type_annotations/application_autoscaling/client.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 15 | 2018-11-16T00:16:44.000Z | 2021-11-13T03:44:18.000Z | boto3_type_annotations/boto3_type_annotations/application_autoscaling/client.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 11 | 2019-05-06T05:26:51.000Z | 2021-09-28T15:27:59.000Z | from typing import Optional
from botocore.client import BaseClient
from typing import Dict
from typing import Union
from botocore.paginate import Paginator
from datetime import datetime
from botocore.waiter import Waiter
from typing import List
class Client(BaseClient):
def can_paginate(self, operation_name: str ... | 49.075472 | 246 | 0.729335 | 291 | 2,601 | 6.42268 | 0.230241 | 0.071161 | 0.05297 | 0.105939 | 0.542001 | 0.483681 | 0.483681 | 0.483681 | 0.477796 | 0.391118 | 0 | 0 | 0.182622 | 2,601 | 52 | 247 | 50.019231 | 0.879116 | 0 | 0 | 0.378378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.378378 | false | 0.378378 | 0.216216 | 0 | 0.621622 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
b074cbd14c56129704d3679aa8b50157141dfbf6 | 1,993 | py | Python | rx/operators/observable/buffer.py | yutiansut/RxPY | c3bbba77f9ebd7706c949141725e220096deabd4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | rx/operators/observable/buffer.py | yutiansut/RxPY | c3bbba77f9ebd7706c949141725e220096deabd4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | rx/operators/observable/buffer.py | yutiansut/RxPY | c3bbba77f9ebd7706c949141725e220096deabd4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | from typing import Callable
from rx.core import ObservableBase as Observable
def buffer(buffer_openings=None, buffer_closing_mapper=None) -> Callable[[Observable], Observable]:
"""Projects each element of an observable sequence into zero or more
buffers.
Args:
buffer_openings -- Observable sequen... | 33.216667 | 120 | 0.676869 | 246 | 1,993 | 5.398374 | 0.373984 | 0.054217 | 0.060241 | 0.048193 | 0.295181 | 0.210843 | 0.210843 | 0.210843 | 0.210843 | 0.141566 | 0 | 0.004032 | 0.253387 | 1,993 | 59 | 121 | 33.779661 | 0.888441 | 0.517311 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0.117647 | 0.176471 | 0.823529 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b0765eb4eb088c038826b16790ed45283317e5a8 | 1,711 | py | Python | pages/home/login_1st_API_creation.py | abhayadevms/automation-frame-work | 184b5c9309a65c6e972294e9a4a6cb260f6b1b8d | [
"MIT"
] | null | null | null | pages/home/login_1st_API_creation.py | abhayadevms/automation-frame-work | 184b5c9309a65c6e972294e9a4a6cb260f6b1b8d | [
"MIT"
] | null | null | null | pages/home/login_1st_API_creation.py | abhayadevms/automation-frame-work | 184b5c9309a65c6e972294e9a4a6cb260f6b1b8d | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.by import By
from base.selenium_driver import SeleniumDriver
class LoginPage(SeleniumDriver):
def __init__(self, driver):
self.driver = driver
_login_link = 'Login'
_email_fields = 'user_email'
_password_feild = 'user_password'
... | 30.553571 | 79 | 0.669784 | 192 | 1,711 | 5.744792 | 0.239583 | 0.090662 | 0.101541 | 0.152312 | 0.2466 | 0.2466 | 0.218495 | 0.070716 | 0.070716 | 0 | 0 | 0 | 0.222092 | 1,711 | 56 | 80 | 30.553571 | 0.8287 | 0.213326 | 0 | 0 | 0 | 0 | 0.025836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.322581 | false | 0.225806 | 0.096774 | 0.096774 | 0.709677 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
b0a49bed06d108b835b3f3ff79e0a138bf9d8a68 | 280 | py | Python | benchmarking/ConfigurableAlgorithmBase.py | APB97/python-physical-algorithms | abdbd0fb7b163ecc2e0e43634e8ed9c91ea2e493 | [
"MIT"
] | 1 | 2021-05-12T09:05:04.000Z | 2021-05-12T09:05:04.000Z | benchmarking/ConfigurableAlgorithmBase.py | APB97/python-physical-algorithms | abdbd0fb7b163ecc2e0e43634e8ed9c91ea2e493 | [
"MIT"
] | null | null | null | benchmarking/ConfigurableAlgorithmBase.py | APB97/python-physical-algorithms | abdbd0fb7b163ecc2e0e43634e8ed9c91ea2e493 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class ConfigurableAlgorithmBase(ABC):
def __init__(self, algorithm):
self.algorithm = algorithm
@abstractmethod
def __call__(self, function, bounds):
pass
@abstractmethod
def __name__(self):
pass
| 18.666667 | 41 | 0.675 | 27 | 280 | 6.555556 | 0.555556 | 0.146893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253571 | 280 | 14 | 42 | 20 | 0.84689 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.2 | 0.1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
b0d6498decdd52689185484baa29e99986d0288a | 152 | py | Python | app/sample1/urls.py | tanisha363/Django_docker | ee68aa43eb410b349d88411be5b64bdd401ee2d0 | [
"MIT"
] | 1 | 2020-12-02T18:58:29.000Z | 2020-12-02T18:58:29.000Z | app/sample1/urls.py | tanisha363/Django_docker | ee68aa43eb410b349d88411be5b64bdd401ee2d0 | [
"MIT"
] | null | null | null | app/sample1/urls.py | tanisha363/Django_docker | ee68aa43eb410b349d88411be5b64bdd401ee2d0 | [
"MIT"
] | 1 | 2020-12-02T13:50:05.000Z | 2020-12-02T13:50:05.000Z |
from django.urls import path, include
from sample1.views import HomePageView
urlpatterns = [
path('', HomePageView.as_view(), name='home')
] | 16.888889 | 49 | 0.703947 | 18 | 152 | 5.888889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.177632 | 152 | 9 | 50 | 16.888889 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b0f376bac471c05765d24ff84d98a87cff3ac85e | 93 | py | Python | 01_tips/framework/apps.py | denislamard/python | 733168fb4efddc292d597a555b73d911b66b3408 | [
"MIT"
] | 1 | 2020-06-22T06:41:40.000Z | 2020-06-22T06:41:40.000Z | 01_tips/framework/apps.py | denislamard/python | 733168fb4efddc292d597a555b73d911b66b3408 | [
"MIT"
] | 232 | 2018-06-30T11:40:52.000Z | 2020-04-29T23:55:41.000Z | exploreframework/framework/apps.py | abdurrahmanvizier/frameworkdjango | 132becee33ad0363f695b90bf4900f3b9647e0fb | [
"BSD-2-Clause"
] | 3 | 2018-05-31T12:57:03.000Z | 2020-02-27T16:25:44.000Z | from django.apps import AppConfig
class FrameworkConfig(AppConfig):
name = 'framework'
| 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 | 0 | 0 | 0 | 3 |
b0ff28e5e4508ddb9c668034e83e1fdb8eaf7340 | 88 | py | Python | qa_tool/apps.py | pg-irc/pathways-backend | 05a8c4e750523d2d081b030a248c5444d1ed7992 | [
"BSD-3-Clause"
] | 12 | 2017-08-30T18:21:00.000Z | 2021-12-09T04:04:17.000Z | qa_tool/apps.py | pg-irc/pathways-backend | 05a8c4e750523d2d081b030a248c5444d1ed7992 | [
"BSD-3-Clause"
] | 424 | 2017-08-08T18:32:14.000Z | 2022-03-30T21:42:51.000Z | qa_tool/apps.py | pg-irc/pathways-backend | 05a8c4e750523d2d081b030a248c5444d1ed7992 | [
"BSD-3-Clause"
] | 7 | 2017-09-29T21:14:37.000Z | 2019-12-30T21:07:37.000Z | from django.apps import AppConfig
class QaToolConfig(AppConfig):
name = 'qa_tool'
| 14.666667 | 33 | 0.75 | 11 | 88 | 5.909091 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170455 | 88 | 5 | 34 | 17.6 | 0.890411 | 0 | 0 | 0 | 0 | 0 | 0.079545 | 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 | 0 | 0 | 0 | 3 |
9fd76465172c8cf30aac9b688b09f6952fc74e9a | 297 | py | Python | test/test_cpu_stat.py | cuongnguyen2190/pure-python-adb | f8424f349cb7a72967690a9279f117799c16e8a0 | [
"MIT"
] | 382 | 2018-07-12T07:56:47.000Z | 2022-03-31T08:12:09.000Z | test/test_cpu_stat.py | cuongnguyen2190/pure-python-adb | f8424f349cb7a72967690a9279f117799c16e8a0 | [
"MIT"
] | 74 | 2018-10-10T15:23:24.000Z | 2022-03-31T00:27:10.000Z | test/test_cpu_stat.py | cuongnguyen2190/pure-python-adb | f8424f349cb7a72967690a9279f117799c16e8a0 | [
"MIT"
] | 84 | 2018-07-08T17:15:54.000Z | 2022-03-31T08:12:12.000Z | def test_get_cpu_times(device):
result = device.cpu_times()
assert result is not None
def test_get_cpu_percent(device):
percent = device.cpu_percent(interval=1)
assert percent is not None
assert percent != 0
def test_get_cpu_count(device):
assert device.cpu_count() == 2
| 24.75 | 44 | 0.727273 | 46 | 297 | 4.434783 | 0.369565 | 0.102941 | 0.147059 | 0.191176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012448 | 0.188552 | 297 | 11 | 45 | 27 | 0.834025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.333333 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9fe1ebb0fc1d79af4635934d00d9cc05fddf8b77 | 74 | py | Python | build/builder/core/ver.py | 1uLang/teleport | 71dea9b3a7cdd1baaf6ad5df4d3442af9347f874 | [
"Apache-2.0"
] | 1 | 2021-10-04T14:00:30.000Z | 2021-10-04T14:00:30.000Z | build/builder/core/ver.py | 1uLang/teleport | 71dea9b3a7cdd1baaf6ad5df4d3442af9347f874 | [
"Apache-2.0"
] | null | null | null | build/builder/core/ver.py | 1uLang/teleport | 71dea9b3a7cdd1baaf6ad5df4d3442af9347f874 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf8 -*-
VER_TP_SERVER = "3.5.6"
VER_TP_ASSIST = "3.5.6"
| 18.5 | 24 | 0.567568 | 14 | 74 | 2.714286 | 0.642857 | 0.263158 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 0.189189 | 74 | 3 | 25 | 24.666667 | 0.516667 | 0.27027 | 0 | 0 | 0 | 0 | 0.204082 | 0 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9ff3dd756bd165f418369ee76893a4eefedb10ff | 377 | py | Python | python/picrust2_qiime.py | qpmnguyen/microbe_set_trait | a518c0dc7874cca1f3e26ba74f4e2fdc7ed5d010 | [
"MIT"
] | null | null | null | python/picrust2_qiime.py | qpmnguyen/microbe_set_trait | a518c0dc7874cca1f3e26ba74f4e2fdc7ed5d010 | [
"MIT"
] | null | null | null | python/picrust2_qiime.py | qpmnguyen/microbe_set_trait | a518c0dc7874cca1f3e26ba74f4e2fdc7ed5d010 | [
"MIT"
] | null | null | null | from qiime2.plugins import picrust2
from qiime2 import Artifact
seq_tab = Artifact.import_data("FeatureData[Sequence]", "data/gevers_seq.fa")
otu_tab = Artifact.import_data("FeatureTable[Frequency]", "data/gevers_biom.biom", view_type= 'BIOMV100Format')
picrust2.methods.full_pipeline(table = otu_tab, seq = seq_tab, h... | 47.125 | 120 | 0.779841 | 52 | 377 | 5.423077 | 0.615385 | 0.070922 | 0.120567 | 0.148936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023392 | 0.092838 | 377 | 7 | 121 | 53.857143 | 0.80117 | 0 | 0 | 0 | 0 | 0 | 0.275862 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b0179da84ee190bd3b891f526be8122eb903fb7b | 1,071 | py | Python | tests/fixtures/python3_marshmallow/with_nested_object.py | expobrain/json-schema-codegen | e22b386333c6230e5d6f5984fd947fdd7b947e82 | [
"MIT"
] | 21 | 2018-06-15T16:08:57.000Z | 2022-02-11T16:16:11.000Z | tests/fixtures/python3_marshmallow/with_nested_object.py | expobrain/json-schema-codegen | e22b386333c6230e5d6f5984fd947fdd7b947e82 | [
"MIT"
] | 14 | 2018-08-09T18:02:19.000Z | 2022-01-24T18:04:17.000Z | tests/fixtures/python3_marshmallow/with_nested_object.py | expobrain/json-schema-codegen | e22b386333c6230e5d6f5984fd947fdd7b947e82 | [
"MIT"
] | 4 | 2018-11-30T18:19:10.000Z | 2021-11-18T04:04:36.000Z | from marshmallow import Schema, fields as fields_, post_load
from typing import Optional, List, Any
class NestedSchema(Schema):
x = fields_.String()
class Nested:
def __init__(self, nested: dict):
self.x: Optional[str] = nested.get("x")
def to_json(self):
return NestedSchema(strict=True... | 23.8 | 68 | 0.669468 | 143 | 1,071 | 4.874126 | 0.265734 | 0.086083 | 0.1033 | 0.120517 | 0.516499 | 0.398852 | 0.398852 | 0.3099 | 0.3099 | 0.3099 | 0 | 0 | 0.210084 | 1,071 | 44 | 69 | 24.340909 | 0.823877 | 0 | 0 | 0.275862 | 0 | 0 | 0.006536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.310345 | false | 0 | 0.068966 | 0.241379 | 0.827586 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b0537476a252209986af4730a888ac4d261af800 | 812 | py | Python | modules/remote/TestExploit.py | Kadse1337/LolcatsExploitsFramework | b4f145d6cb02a5b2e867fd181a805b6945b1a479 | [
"MIT",
"Unlicense"
] | 1 | 2018-03-12T23:15:54.000Z | 2018-03-12T23:15:54.000Z | modules/remote/TestExploit.py | K4ds3/LolcatsExploitsFramework | b4f145d6cb02a5b2e867fd181a805b6945b1a479 | [
"MIT",
"Unlicense"
] | null | null | null | modules/remote/TestExploit.py | K4ds3/LolcatsExploitsFramework | b4f145d6cb02a5b2e867fd181a805b6945b1a479 | [
"MIT",
"Unlicense"
] | null | null | null | from core.exploits.ExploitCategory import ExploitCategory
from core.exploits.Exploit import Exploit
from core.logger.Logger import Logger
from core.ui.YesNoPrompt import YesNoPrompt
class TestExploit(Exploit):
target = None
listener = None
def __init__(self):
super().__init__("Test", "Just for te... | 23.882353 | 93 | 0.623153 | 91 | 812 | 5.428571 | 0.527473 | 0.064777 | 0.064777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 0.267241 | 812 | 33 | 94 | 24.606061 | 0.813445 | 0.144089 | 0 | 0.142857 | 0 | 0 | 0.088406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0.142857 | 0.190476 | 0 | 0.619048 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
c65d19d703584efe2df05cf8e1e5556b48cea56e | 835 | py | Python | yandex_linux/lib/python3.8/site-packages/typepy/type/_datetime.py | DmitrySH19/REST_api_yandex | 7cb3301fdaa9676c617619e4712f96e9bc78442a | [
"MIT"
] | 18 | 2017-05-04T05:21:55.000Z | 2022-01-05T20:27:23.000Z | yandex_linux/lib/python3.8/site-packages/typepy/type/_datetime.py | DmitrySH19/REST_api_yandex | 7cb3301fdaa9676c617619e4712f96e9bc78442a | [
"MIT"
] | 20 | 2021-05-03T18:02:23.000Z | 2022-03-12T12:01:04.000Z | Lib/site-packages/typepy/type/_datetime.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | 5 | 2019-07-26T14:33:42.000Z | 2021-04-10T13:10:20.000Z | """
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from typing import Any
from .._typecode import Typecode
from ..checker import DateTimeTypeChecker
from ..converter import DateTimeConverter
from ._base import AbstractType
class DateTime(AbstractType):
"""
|result_matrix_desc|
.. i... | 23.857143 | 76 | 0.701796 | 92 | 835 | 6.054348 | 0.456522 | 0.098743 | 0.046679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001477 | 0.189222 | 835 | 34 | 77 | 24.558824 | 0.82127 | 0.201198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.333333 | 0.2 | 0.866667 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
c66f9239a648c0a12ae89dcd3749908f99825029 | 14,064 | py | Python | data_prep/SignalingGame/architectures.py | vermashresth/PEGGY | a75b43c5f85cadc7075f04e70c4daa8152ad3dbd | [
"MIT"
] | null | null | null | data_prep/SignalingGame/architectures.py | vermashresth/PEGGY | a75b43c5f85cadc7075f04e70c4daa8152ad3dbd | [
"MIT"
] | null | null | null | data_prep/SignalingGame/architectures.py | vermashresth/PEGGY | a75b43c5f85cadc7075f04e70c4daa8152ad3dbd | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from reinforce_utils import *
from utils import compute_similarity_images
def init_weights(m):
if type(m) == nn.Linear or type(m) == nn.Conv2d:
# print(m)
m.weight.data.uniform_(-0.08,0.08)
if not m.bias is None:
... | 37.806452 | 126 | 0.583973 | 2,025 | 14,064 | 3.867654 | 0.088889 | 0.089632 | 0.039326 | 0.049796 | 0.774387 | 0.722421 | 0.701481 | 0.681052 | 0.678498 | 0.647855 | 0 | 0.026809 | 0.302474 | 14,064 | 371 | 127 | 37.908356 | 0.77156 | 0.231584 | 0 | 0.569106 | 0 | 0 | 0.005696 | 0 | 0 | 0 | 0 | 0.002695 | 0 | 1 | 0.081301 | false | 0 | 0.020325 | 0 | 0.178862 | 0.020325 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c68a8a03044e94ad011bb2decf2d520b2475cdbe | 440 | py | Python | tests/http/testresponse.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 4 | 2017-09-07T13:39:50.000Z | 2018-05-31T16:14:50.000Z | tests/http/testresponse.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 103 | 2017-03-19T15:58:21.000Z | 2018-07-11T20:36:17.000Z | tests/http/testresponse.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 2 | 2017-10-14T15:20:11.000Z | 2018-04-20T09:55:44.000Z |
from tests.testcase import TestCase
from edmunds.http.response import Response
from flask.wrappers import Response as FlaskResponse
class TestResponse(TestCase):
"""
Test Response
"""
def test_response(self):
"""
Test response
:return: void
"""
response = ... | 20.952381 | 56 | 0.659091 | 45 | 440 | 6.333333 | 0.466667 | 0.126316 | 0.140351 | 0.182456 | 0.280702 | 0.280702 | 0.280702 | 0 | 0 | 0 | 0 | 0 | 0.261364 | 440 | 20 | 57 | 22 | 0.876923 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c6a6f2c5da33c79416702f3858850aaf68832905 | 3,252 | py | Python | gridvm/network/protocol/packet/packet.py | GeorgeTG/gridvm | 331912458a7ed4a4786de0b12dfe152cdeb5d124 | [
"MIT"
] | null | null | null | gridvm/network/protocol/packet/packet.py | GeorgeTG/gridvm | 331912458a7ed4a4786de0b12dfe152cdeb5d124 | [
"MIT"
] | null | null | null | gridvm/network/protocol/packet/packet.py | GeorgeTG/gridvm | 331912458a7ed4a4786de0b12dfe152cdeb5d124 | [
"MIT"
] | null | null | null | import json
import collections
from collections import MutableMapping
from .header import PacketHeader
from .ptype import PacketType
def _json_to_bytes(mapping, encoding='utf-8'):
"""Dump a json object to bytes"""
return json.dumps(mapping).encode(encoding)
def _bytes_to_json(data, encoding='utf-8'):
"... | 27.559322 | 87 | 0.612854 | 395 | 3,252 | 4.837975 | 0.258228 | 0.041863 | 0.021978 | 0.020931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004228 | 0.272755 | 3,252 | 117 | 88 | 27.794872 | 0.803806 | 0.080873 | 0 | 0.024691 | 0 | 0 | 0.038514 | 0 | 0 | 0 | 0 | 0.008547 | 0 | 1 | 0.246914 | false | 0 | 0.061728 | 0.111111 | 0.530864 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c6ce88d549fd3e216c4cb5c9e657e78ac2b45fea | 1,793 | py | Python | extra_tests/snippets/unicode_slicing.py | dbrgn/RustPython | 6d371cea8a62d84dbbeec5a53cfd040f45899211 | [
"CC-BY-4.0",
"MIT"
] | 11,058 | 2018-05-29T07:40:06.000Z | 2022-03-31T11:38:42.000Z | extra_tests/snippets/unicode_slicing.py | dbrgn/RustPython | 6d371cea8a62d84dbbeec5a53cfd040f45899211 | [
"CC-BY-4.0",
"MIT"
] | 2,105 | 2018-06-01T10:07:16.000Z | 2022-03-31T14:56:42.000Z | extra_tests/snippets/unicode_slicing.py | dbrgn/RustPython | 6d371cea8a62d84dbbeec5a53cfd040f45899211 | [
"CC-BY-4.0",
"MIT"
] | 914 | 2018-07-27T09:36:14.000Z | 2022-03-31T19:56:34.000Z | def test_slice_bounds(s):
# End out of range
assert s[0:100] == s
assert s[0:-100] == ''
# Start out of range
assert s[100:1] == ''
# Out of range both sides
# This is the behaviour in cpython
# assert s[-100:100] == s
def expect_index_error(s, index):
try:
s[index]
exce... | 29.883333 | 82 | 0.638037 | 379 | 1,793 | 3.05277 | 0.258575 | 0.216076 | 0.207433 | 0.147796 | 0.413137 | 0.292999 | 0.101988 | 0.101988 | 0.088159 | 0.088159 | 0 | 0.076667 | 0.163413 | 1,793 | 59 | 83 | 30.389831 | 0.653333 | 0.109872 | 0 | 0 | 0 | 0.041667 | 0.116425 | 0 | 0 | 0 | 0 | 0 | 0.708333 | 1 | 0.041667 | false | 0.020833 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c6eccf7d7085ea02811436d5ca31d7d2cbf5ff17 | 80 | py | Python | tests/simple_test_script.py | dfm/python-fsps | 71fb3e50866ceff789c7bea59f5499793e5cc4d9 | [
"MIT"
] | 34 | 2015-06-30T19:48:27.000Z | 2021-08-31T21:05:10.000Z | tests/simple_test_script.py | dfm/python-fsps | 71fb3e50866ceff789c7bea59f5499793e5cc4d9 | [
"MIT"
] | 127 | 2015-01-16T09:34:30.000Z | 2022-03-04T16:02:37.000Z | tests/simple_test_script.py | dfm/python-fsps | 71fb3e50866ceff789c7bea59f5499793e5cc4d9 | [
"MIT"
] | 35 | 2015-01-20T18:46:44.000Z | 2021-05-14T06:54:51.000Z | from fsps import StellarPopulation
pop = StellarPopulation()
print("success")
| 13.333333 | 34 | 0.7875 | 8 | 80 | 7.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 80 | 5 | 35 | 16 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
af04b6d3f53ff30cd860ebee1be08915b97f4328 | 231 | py | Python | src/textual/views/_grid_view.py | dpoehls/textual | f47b3e089c681275c48c0debc7a320b66a772a50 | [
"MIT"
] | 6,706 | 2021-06-08T17:14:36.000Z | 2022-01-05T09:53:23.000Z | src/textual/views/_grid_view.py | dpoehls/textual | f47b3e089c681275c48c0debc7a320b66a772a50 | [
"MIT"
] | 97 | 2022-01-05T11:35:14.000Z | 2022-03-30T19:58:48.000Z | src/textual/views/_grid_view.py | dpoehls/textual | f47b3e089c681275c48c0debc7a320b66a772a50 | [
"MIT"
] | 166 | 2021-06-12T11:11:19.000Z | 2022-01-04T05:32:32.000Z | from ..view import View
from ..layouts.grid import GridLayout
class GridView(View, layout=GridLayout):
@property
def grid(self) -> GridLayout:
assert isinstance(self.layout, GridLayout)
return self.layout
| 23.1 | 50 | 0.705628 | 27 | 231 | 6.037037 | 0.555556 | 0.196319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203463 | 231 | 9 | 51 | 25.666667 | 0.88587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 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 | 0 | 1 | 0 | 0 | 3 |
af156f8753a92b1aa496c20b833fdd6058d70196 | 71 | py | Python | notebooks/exercise_solutions/n03_kinematics_define-frame.py | pydy/pydy-tutorial-human-standing | 72b1d8513e339e9b10e501bd3490caa3fa997bc4 | [
"CC-BY-4.0"
] | 134 | 2015-05-19T15:24:18.000Z | 2022-03-12T09:39:03.000Z | notebooks/exercise_solutions/n03_kinematics_define-frame.py | pydy/pydy-tutorial-human-standing | 72b1d8513e339e9b10e501bd3490caa3fa997bc4 | [
"CC-BY-4.0"
] | 46 | 2015-05-05T18:08:20.000Z | 2022-01-28T11:12:42.000Z | notebooks/exercise_solutions/n03_kinematics_define-frame.py | pydy/pydy-tutorial-pycon-2014 | 72b1d8513e339e9b10e501bd3490caa3fa997bc4 | [
"CC-BY-4.0"
] | 62 | 2015-06-16T01:50:51.000Z | 2022-02-26T07:39:41.000Z | upper_leg_frame = ReferenceFrame('U')
torso_frame = ReferenceFrame('T') | 35.5 | 37 | 0.788732 | 9 | 71 | 5.888889 | 0.777778 | 0.716981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070423 | 71 | 2 | 38 | 35.5 | 0.80303 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
af7aefde0e5f9a9e47a5cfcd09bf39d4d028e0ee | 229 | py | Python | buffon_simulator/__init__.py | sohnryang/buffon-needle-simulator | b56529f7f2b3cf1904e9a7df6b4d9fbd6a99676e | [
"MIT"
] | null | null | null | buffon_simulator/__init__.py | sohnryang/buffon-needle-simulator | b56529f7f2b3cf1904e9a7df6b4d9fbd6a99676e | [
"MIT"
] | null | null | null | buffon_simulator/__init__.py | sohnryang/buffon-needle-simulator | b56529f7f2b3cf1904e9a7df6b4d9fbd6a99676e | [
"MIT"
] | null | null | null | """__init__.py"""
import pyglet
def run_simulation(count):
"""run the simulation & bash the homework"""
from buffon_simulator.app import App
application = App(count, fullscreen=True, vsync=True)
pyglet.app.run() | 25.444444 | 57 | 0.703057 | 30 | 229 | 5.166667 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170306 | 229 | 9 | 58 | 25.444444 | 0.815789 | 0.218341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
afc1b2f30a66c266bf88a6bd4dc690d48e5a4c58 | 157,722 | py | Python | paralleldomain/common/umd/v1/UMD_pb2.py | parallel-domain/pd-sdk | 20e3d052a5cb612a2dd84bda7b1b5487a6a60edc | [
"Apache-2.0"
] | 10 | 2021-11-17T17:23:49.000Z | 2022-03-18T09:51:23.000Z | paralleldomain/common/umd/v1/UMD_pb2.py | parallel-domain/pd-sdk | 20e3d052a5cb612a2dd84bda7b1b5487a6a60edc | [
"Apache-2.0"
] | 3 | 2021-12-02T17:16:20.000Z | 2022-01-07T12:47:13.000Z | paralleldomain/common/umd/v1/UMD_pb2.py | parallel-domain/pd-sdk | 20e3d052a5cb612a2dd84bda7b1b5487a6a60edc | [
"Apache-2.0"
] | 2 | 2022-03-09T07:03:54.000Z | 2022-03-23T15:53:48.000Z | # flake8: noqa
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: paralleldomain/common/umd/v1/UMD.proto
import sys
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1"))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
f... | 36.174771 | 15,369 | 0.61862 | 16,683 | 157,722 | 5.572019 | 0.053288 | 0.057488 | 0.08449 | 0.051905 | 0.714592 | 0.655974 | 0.637449 | 0.62283 | 0.610147 | 0.578778 | 0 | 0.049691 | 0.275903 | 157,722 | 4,359 | 15,370 | 36.18307 | 0.764259 | 0.013391 | 0 | 0.75777 | 1 | 0.002135 | 0.167306 | 0.128713 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.000949 | 0.001186 | 0 | 0.001186 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
afcb6a702e192b51846080f4aaa93d408fde3824 | 1,818 | py | Python | tests/test_candlestick_loader.py | findcongwang/stockevents_capstone | d4df82e45e3947d6f5ac297c69197497db735a8e | [
"MIT"
] | null | null | null | tests/test_candlestick_loader.py | findcongwang/stockevents_capstone | d4df82e45e3947d6f5ac297c69197497db735a8e | [
"MIT"
] | null | null | null | tests/test_candlestick_loader.py | findcongwang/stockevents_capstone | d4df82e45e3947d6f5ac297c69197497db735a8e | [
"MIT"
] | null | null | null | import os
import pytest
import pendulum
from datetime import timedelta
from dotenv import load_dotenv
from stockdata.models import (
engine, session, Asset,
Candlestick1M, Candlestick1H, Candlestick1D
)
"""
Tests to be ran after the ETL process is triggered manually.
"""
load_dotenv()
BACK_POPULATE_MONTHS =... | 33.666667 | 68 | 0.737624 | 225 | 1,818 | 5.72 | 0.262222 | 0.048951 | 0.083916 | 0.135198 | 0.764569 | 0.74359 | 0.74359 | 0.710956 | 0.452214 | 0.452214 | 0 | 0.019544 | 0.155666 | 1,818 | 53 | 69 | 34.301887 | 0.818893 | 0 | 0 | 0.315789 | 0 | 0 | 0.011429 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.078947 | false | 0 | 0.157895 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 3 |
bb60eaa069b6ea5017ce07338bd1cf8a47abea04 | 302 | py | Python | server/ServiceProvider/serializers2.py | adamA113/servize | 89933c3864d997188ec79ad690b37f51bca54aa3 | [
"MIT"
] | null | null | null | server/ServiceProvider/serializers2.py | adamA113/servize | 89933c3864d997188ec79ad690b37f51bca54aa3 | [
"MIT"
] | null | null | null | server/ServiceProvider/serializers2.py | adamA113/servize | 89933c3864d997188ec79ad690b37f51bca54aa3 | [
"MIT"
] | 2 | 2020-12-26T09:50:17.000Z | 2020-12-26T09:52:45.000Z | from rest_framework import serializers
from schedule.models import Schedule
from schedule.serialize import ScheduleSerializer
class TestSerializer(serializers.ModelSerializer):
events=ScheduleSerializer(many=True, read_only=True)
class Meta:
model=Schedule
fields= ('events') | 33.555556 | 56 | 0.781457 | 32 | 302 | 7.3125 | 0.625 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155629 | 302 | 9 | 57 | 33.555556 | 0.917647 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.75 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
bb7a88f021e3d39d94e9ceb26ee69fb5199b4dda | 47,048 | py | Python | tests/test_file_utils.py | iotanbo/iotanbo_py_utils | 96a2728e051b5e5ee601459b4c449b5495768ba8 | [
"MIT"
] | null | null | null | tests/test_file_utils.py | iotanbo/iotanbo_py_utils | 96a2728e051b5e5ee601459b4c449b5495768ba8 | [
"MIT"
] | 14 | 2021-06-07T17:36:02.000Z | 2021-06-07T18:02:37.000Z | tests/test_file_utils.py | iotanbo/iotanbo_py_utils | 96a2728e051b5e5ee601459b4c449b5495768ba8 | [
"MIT"
] | null | null | null | """Test `file_utils.py`."""
import os
import sys
import pytest
from iotanbo_py_utils import file_utils
from iotanbo_py_utils import platform
from iotanbo_py_utils.error import ErrorKind
join = os.path.join
# Path that is invalid on all platforms
INVALID_PATH = ""
NOT_EXISTING_FILE = "/tmp/not_existing_file.txt"
N... | 33.726165 | 91 | 0.703983 | 6,397 | 47,048 | 4.815851 | 0.046897 | 0.072451 | 0.09592 | 0.037978 | 0.823839 | 0.76554 | 0.715682 | 0.663421 | 0.608368 | 0.534878 | 0 | 0.007304 | 0.202644 | 47,048 | 1,394 | 92 | 33.750359 | 0.813909 | 0.183005 | 0 | 0.442748 | 0 | 0 | 0.100123 | 0.025574 | 0 | 0 | 0 | 0.000717 | 0.266085 | 1 | 0.04253 | false | 0 | 0.006543 | 0 | 0.054526 | 0.003272 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bb7ccd0c8e5a95c2f1ce425b136b19e7e81a4219 | 509 | gyp | Python | binding.gyp | zhs007/libfortunajs | 960fb6b6eb3b6169eb7299bbce93c8f892fea6c2 | [
"Apache-2.0"
] | null | null | null | binding.gyp | zhs007/libfortunajs | 960fb6b6eb3b6169eb7299bbce93c8f892fea6c2 | [
"Apache-2.0"
] | null | null | null | binding.gyp | zhs007/libfortunajs | 960fb6b6eb3b6169eb7299bbce93c8f892fea6c2 | [
"Apache-2.0"
] | null | null | null | {
"targets": [
{
"target_name": "fortuna",
"sources": [ "src/main.cpp", "src/libfortuna.cpp",
"src/libfortuna/blf.c", "src/libfortuna/fortuna.c", "src/libfortuna/internal.c", "src/libfortuna/md5.c",
"src/libfortuna/px.c", "src/libfortuna/random.c", "s... | 36.357143 | 121 | 0.502947 | 53 | 509 | 4.792453 | 0.45283 | 0.511811 | 0.440945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00831 | 0.290766 | 509 | 14 | 122 | 36.357143 | 0.695291 | 0 | 0 | 0 | 0 | 0 | 0.564706 | 0.272549 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bbe642fb5a3c1f911d66651102b988f4abe41aca | 107 | py | Python | carbondesign/__init__.py | dozymoe/django-carbondesign | 34aed0cfdccfa90fcb5bf2bbd347229815f1417b | [
"MIT"
] | null | null | null | carbondesign/__init__.py | dozymoe/django-carbondesign | 34aed0cfdccfa90fcb5bf2bbd347229815f1417b | [
"MIT"
] | null | null | null | carbondesign/__init__.py | dozymoe/django-carbondesign | 34aed0cfdccfa90fcb5bf2bbd347229815f1417b | [
"MIT"
] | null | null | null | """Django module for Carbon Design System.
"""
default_app_config = 'carbondesign.apps.CarbonDesignConfig'
| 26.75 | 59 | 0.794393 | 12 | 107 | 6.916667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093458 | 107 | 3 | 60 | 35.666667 | 0.85567 | 0.364486 | 0 | 0 | 0 | 0 | 0.590164 | 0.590164 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bbec8782911042b47b761b4254f08e7f977eee17 | 1,643 | py | Python | src/pymgrit/core/grid_transfer.py | jbschroder/pymgrit | 5c866c633dea3ebccf812550e0303f47771c4faf | [
"MIT"
] | 6 | 2020-04-24T13:14:17.000Z | 2022-03-09T14:16:51.000Z | src/pymgrit/core/grid_transfer.py | jbschroder/pymgrit | 5c866c633dea3ebccf812550e0303f47771c4faf | [
"MIT"
] | 6 | 2020-03-24T09:03:05.000Z | 2021-08-02T13:31:39.000Z | src/pymgrit/core/grid_transfer.py | jbschroder/pymgrit | 5c866c633dea3ebccf812550e0303f47771c4faf | [
"MIT"
] | 4 | 2020-06-09T21:11:19.000Z | 2021-06-27T11:34:58.000Z | """
Abstract grid transfer class for user-defined grid transfer classes.
Every user-defined grid transfer class must inherit from this class.
Allows for additional spatial coarsening and refinement between time levels.
Required functions:
- restriction
- interpolation
"""
from abc import ABC, abstractmethod
from ... | 29.339286 | 80 | 0.674376 | 204 | 1,643 | 5.411765 | 0.313725 | 0.065217 | 0.061594 | 0.083333 | 0.735507 | 0.65942 | 0.65942 | 0.65942 | 0.65942 | 0.65942 | 0 | 0 | 0.272672 | 1,643 | 55 | 81 | 29.872727 | 0.923849 | 0.690201 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bbfb0748b557d32e1db71f2a6373d7aed422260c | 613 | py | Python | PythonBlog/routers/blog/blogInfoRouter.py | Nohysiwe/FastAPIBlogBackend | 2052c630a1a6e9bb9e6555f734c60020b107afc8 | [
"MIT"
] | 1 | 2022-02-09T06:58:44.000Z | 2022-02-09T06:58:44.000Z | PythonBlog/routers/blog/blogInfoRouter.py | Nohysiwe/FastAPIBlogBackend | 2052c630a1a6e9bb9e6555f734c60020b107afc8 | [
"MIT"
] | null | null | null | PythonBlog/routers/blog/blogInfoRouter.py | Nohysiwe/FastAPIBlogBackend | 2052c630a1a6e9bb9e6555f734c60020b107afc8 | [
"MIT"
] | null | null | null | from fastapi import (
APIRouter,
Path,
Query,
Body
)
BlogInfoRouter = APIRouter(
prefix = "/bloginfo",
tags = ["BlogInfo"],
dependencies = []
)
@BlogInfoRouter.get(
path = "", description = "查看博客信息"
)
async def getBlogHomeInfo():
pass
@BlogInfoRouter.get(
path = "/back... | 11.788462 | 51 | 0.618271 | 53 | 613 | 7.150943 | 0.528302 | 0.17942 | 0.221636 | 0.197889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249592 | 613 | 51 | 52 | 12.019608 | 0.823913 | 0 | 0 | 0.258065 | 0 | 0 | 0.115512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.129032 | 0.032258 | 0 | 0.032258 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a52e7d2f019a791d78db91a66a55bc615e1728ff | 1,213 | py | Python | src/app/user/models.py | ernur-eskermes/useful | 84f9dbce75bed84c0a774d9098ecb0a49577ef4e | [
"BSD-3-Clause"
] | null | null | null | src/app/user/models.py | ernur-eskermes/useful | 84f9dbce75bed84c0a774d9098ecb0a49577ef4e | [
"BSD-3-Clause"
] | null | null | null | src/app/user/models.py | ernur-eskermes/useful | 84f9dbce75bed84c0a774d9098ecb0a49577ef4e | [
"BSD-3-Clause"
] | null | null | null | from tortoise import models, fields
class User(models.Model):
id = fields.IntField(pk=True)
username = fields.CharField(max_length=255, unique=True)
email = fields.CharField(max_length=255, unique=True)
password = fields.CharField(max_length=255)
first_name = fields.CharField(max_length=255, null=... | 33.694444 | 60 | 0.726298 | 153 | 1,213 | 5.542484 | 0.339869 | 0.159198 | 0.191038 | 0.254717 | 0.560142 | 0.373821 | 0.257075 | 0.091981 | 0 | 0 | 0 | 0.026839 | 0.170651 | 1,213 | 35 | 61 | 34.657143 | 0.816103 | 0 | 0 | 0.137931 | 0 | 0 | 0.021434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.034483 | 0.034483 | 0.068966 | 0.896552 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a536ea9144decc9fd066a9fc5af35e8f2ce2d476 | 77 | py | Python | data/studio21_generated/interview/0444/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/interview/0444/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/interview/0444/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | class Solution:
def nthPersonGetsNthSeat(self, n: int) -> float:
| 25.666667 | 52 | 0.636364 | 8 | 77 | 6.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25974 | 77 | 3 | 53 | 25.666667 | 0.859649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
a53a7d665da630a691a2c1bdd70a05f6d30db278 | 96 | py | Python | hello.py | Capitalism2020/cloned-repo | 03e7975cbced56eb6a73244281874dd8c3b5a7de | [
"MIT"
] | null | null | null | hello.py | Capitalism2020/cloned-repo | 03e7975cbced56eb6a73244281874dd8c3b5a7de | [
"MIT"
] | null | null | null | hello.py | Capitalism2020/cloned-repo | 03e7975cbced56eb6a73244281874dd8c3b5a7de | [
"MIT"
] | 1 | 2018-12-08T09:13:22.000Z | 2018-12-08T09:13:22.000Z | #You Source Code Very Good
print("Good")
for i in range(1,20+1):
print("It works Great!")
| 13.714286 | 28 | 0.645833 | 18 | 96 | 3.444444 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 0.197917 | 96 | 6 | 29 | 16 | 0.753247 | 0.260417 | 0 | 0 | 0 | 0 | 0.275362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
a53f35f622c66d0405c411016d78e77680fa7bae | 428 | py | Python | circular_buffer/tests/test_benchmark.py | leftys/circular-buffer | a7107fde153b6e49fc3a024d469fee975b964b60 | [
"MIT"
] | 1 | 2020-04-29T01:24:49.000Z | 2020-04-29T01:24:49.000Z | circular_buffer/tests/test_benchmark.py | leftys/circular-buffer | a7107fde153b6e49fc3a024d469fee975b964b60 | [
"MIT"
] | null | null | null | circular_buffer/tests/test_benchmark.py | leftys/circular-buffer | a7107fde153b6e49fc3a024d469fee975b964b60 | [
"MIT"
] | null | null | null | import pytest
import numpy as np
from .. import circular_buffer
def buffer_of_int_type():
return circular_buffer.for_instances_like(123)
def benchmark_body(buffer_of_int_type):
b = buffer_of_int_type(size = 10, autoexpand = False)
for i in range(1000):
b.push_back(i)
if i % 10 == 0:
... | 20.380952 | 57 | 0.698598 | 65 | 428 | 4.276923 | 0.538462 | 0.115108 | 0.158273 | 0.215827 | 0.201439 | 0.201439 | 0 | 0 | 0 | 0 | 0 | 0.035608 | 0.212617 | 428 | 20 | 58 | 21.4 | 0.789318 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a54b4f41ff991a77653285eeca0f4f3005d8c1ad | 132 | py | Python | 6kyu/IQ_test/solution.py | wizh/codewars | bdb421720437a9fcafaa2eda8869a1cd4835bb47 | [
"MIT"
] | 1 | 2015-11-25T00:06:13.000Z | 2015-11-25T00:06:13.000Z | 6kyu/IQ_test/solution.py | wizh/codewars | bdb421720437a9fcafaa2eda8869a1cd4835bb47 | [
"MIT"
] | null | null | null | 6kyu/IQ_test/solution.py | wizh/codewars | bdb421720437a9fcafaa2eda8869a1cd4835bb47 | [
"MIT"
] | null | null | null | def iq_test(l):
l = [int(x) % 2 for x in l.split(' ')]
return l.index(1) + 1 if l.count(0) > l.count(1) else l.index(0) + 1
| 33 | 72 | 0.537879 | 30 | 132 | 2.333333 | 0.566667 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07 | 0.242424 | 132 | 3 | 73 | 44 | 0.63 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a56dc2a9bc69c3e3f22de9985569f9348a644a86 | 6,079 | py | Python | dataloaders/base.py | MehdiAbbanaBennani/continual-learning-ogdplus | b633f2c5949f6ea165e2e76aab3d043065d770a8 | [
"MIT"
] | 16 | 2020-09-15T07:33:14.000Z | 2022-01-10T16:37:59.000Z | dataloaders/base.py | MehdiAbbanaBennani/continual-learning-ogdplus | b633f2c5949f6ea165e2e76aab3d043065d770a8 | [
"MIT"
] | 6 | 2020-12-09T08:55:04.000Z | 2021-05-02T19:52:42.000Z | dataloaders/base.py | MehdiAbbanaBennani/continual-learning-ogdplus | b633f2c5949f6ea165e2e76aab3d043065d770a8 | [
"MIT"
] | 2 | 2021-01-03T14:31:29.000Z | 2021-09-12T02:45:02.000Z | import torchvision
from torchvision import transforms
from dataloaders.wrapper import CacheClassLabel
import torchvision.transforms.functional as TF
import torch
from sklearn.model_selection import train_test_split
import numpy as np
from typing import List
def get_subset(dataset, targets: List, ratio, seed: int = 4... | 34.344633 | 91 | 0.61622 | 643 | 6,079 | 5.598756 | 0.186625 | 0.093333 | 0.047222 | 0.042778 | 0.751111 | 0.721944 | 0.721944 | 0.6975 | 0.6275 | 0.616111 | 0 | 0.028894 | 0.29972 | 6,079 | 176 | 92 | 34.539773 | 0.816772 | 0.024182 | 0 | 0.675862 | 0 | 0 | 0.018065 | 0 | 0 | 0 | 0 | 0 | 0.027586 | 1 | 0.041379 | false | 0 | 0.055172 | 0.006897 | 0.137931 | 0.013793 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a5a8ee3c3166736efc5f703e37b43ff22a5dbaed | 573 | py | Python | tests/models/test_EducationLevel.py | developmentseed/unicef-schools-attribute-cleaning | eb3dd8a02f26e3455ee04ac2788e79c205ae97e5 | [
"MIT"
] | null | null | null | tests/models/test_EducationLevel.py | developmentseed/unicef-schools-attribute-cleaning | eb3dd8a02f26e3455ee04ac2788e79c205ae97e5 | [
"MIT"
] | 3 | 2020-10-08T15:28:38.000Z | 2020-10-15T14:37:00.000Z | tests/models/test_EducationLevel.py | developmentseed/unicef-schools-attribute-cleaning | eb3dd8a02f26e3455ee04ac2788e79c205ae97e5 | [
"MIT"
] | null | null | null | import pytest
from unicef_schools_attribute_cleaning.models.EducationLevel import EducationLevel
def test_enum():
# test valid enums
c = EducationLevel["Primary"]
assert c.value == "Primary", repr(c)
with pytest.raises(AttributeError):
EducationLevel["unknown"]
# TODO: test aliases
# def t... | 22.038462 | 82 | 0.659686 | 65 | 573 | 5.692308 | 0.492308 | 0.056757 | 0.097297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202443 | 573 | 25 | 83 | 22.92 | 0.809628 | 0.406632 | 0 | 0 | 0 | 0 | 0.063444 | 0 | 0 | 0 | 0 | 0.04 | 0.111111 | 1 | 0.222222 | false | 0.111111 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a5baa243914b1699203e165e92eff6e33c0128d5 | 1,544 | py | Python | env/Lib/site-packages/OpenGL/GLES2/ANGLE/pack_reverse_row_order.py | 5gconnectedbike/Navio2 | 8c3f2b5d8bbbcea1fc08739945183c12b206712c | [
"BSD-3-Clause"
] | 210 | 2016-04-09T14:26:00.000Z | 2022-03-25T18:36:19.000Z | env/Lib/site-packages/OpenGL/GLES2/ANGLE/pack_reverse_row_order.py | 5gconnectedbike/Navio2 | 8c3f2b5d8bbbcea1fc08739945183c12b206712c | [
"BSD-3-Clause"
] | 72 | 2016-09-04T09:30:19.000Z | 2022-03-27T17:06:53.000Z | env/Lib/site-packages/OpenGL/GLES2/ANGLE/pack_reverse_row_order.py | 5gconnectedbike/Navio2 | 8c3f2b5d8bbbcea1fc08739945183c12b206712c | [
"BSD-3-Clause"
] | 64 | 2016-04-09T14:26:49.000Z | 2022-03-21T11:19:47.000Z | '''OpenGL extension ANGLE.pack_reverse_row_order
This module customises the behaviour of the
OpenGL.raw.GLES2.ANGLE.pack_reverse_row_order to provide a more
Python-friendly API
Overview (from the spec)
This extension introduces a mechanism to allow reversing the order
in which image rows are written into a pack... | 41.72973 | 77 | 0.819301 | 224 | 1,544 | 5.553571 | 0.53125 | 0.048232 | 0.064309 | 0.076367 | 0.146302 | 0.107717 | 0.107717 | 0.107717 | 0.07717 | 0.07717 | 0 | 0.003019 | 0.141839 | 1,544 | 37 | 78 | 41.72973 | 0.935849 | 0.776554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3c1efc2a90cdb6662b6c23dfc50b02c945920d98 | 77 | py | Python | vedastr/models/bodies/rectificators/registry.py | csmasters/vedastr | 7513384ab503f15dc574c7d92b75ff2092354757 | [
"Apache-2.0"
] | 475 | 2020-03-17T01:46:32.000Z | 2022-03-29T23:30:15.000Z | vedastr/models/bodies/rectificators/registry.py | csmasters/vedastr | 7513384ab503f15dc574c7d92b75ff2092354757 | [
"Apache-2.0"
] | 71 | 2020-04-01T04:17:47.000Z | 2021-11-18T06:55:14.000Z | vedastr/models/bodies/rectificators/registry.py | csmasters/vedastr | 7513384ab503f15dc574c7d92b75ff2092354757 | [
"Apache-2.0"
] | 108 | 2020-02-21T10:30:37.000Z | 2022-03-21T12:03:30.000Z | from vedastr.utils import Registry
RECTIFICATORS = Registry('Rectificator')
| 19.25 | 40 | 0.818182 | 8 | 77 | 7.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 77 | 3 | 41 | 25.666667 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3c33c08c0ebe7fec24c461affb8e7de1a7d47746 | 213 | py | Python | Python3/ProgramacaoFuncional/PrimeiroDecorator.py | arthursiq5/programacao-progressiva | 2ec91602a6f37c93b99e6a92239045cd1c4cef6b | [
"MIT"
] | null | null | null | Python3/ProgramacaoFuncional/PrimeiroDecorator.py | arthursiq5/programacao-progressiva | 2ec91602a6f37c93b99e6a92239045cd1c4cef6b | [
"MIT"
] | null | null | null | Python3/ProgramacaoFuncional/PrimeiroDecorator.py | arthursiq5/programacao-progressiva | 2ec91602a6f37c93b99e6a92239045cd1c4cef6b | [
"MIT"
] | null | null | null | def decor(func):
def wrap():
print("============")
func()
print("============")
return wrap
def print_text():
print("Hello world!")
decorated = decor(print_text)
decorated()
| 15.214286 | 29 | 0.488263 | 21 | 213 | 4.857143 | 0.47619 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262911 | 213 | 13 | 30 | 16.384615 | 0.649682 | 0 | 0 | 0.2 | 0 | 0 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.4 | 0.5 | 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 | 0 | 0 | 1 | 0 | 3 |
3c3af72123d13d7e451bdc2bd0425d25dbe4e057 | 2,560 | py | Python | kaio/mixins/compress.py | APSL/django-kaio | a17d690907bb7638c81c3cd1e76e4fd2072e7bf7 | [
"BSD-3-Clause"
] | 16 | 2016-05-31T12:17:44.000Z | 2021-01-05T16:27:04.000Z | kaio/mixins/compress.py | APSL/django-kaio | a17d690907bb7638c81c3cd1e76e4fd2072e7bf7 | [
"BSD-3-Clause"
] | 7 | 2016-10-24T22:51:46.000Z | 2019-10-28T16:54:49.000Z | kaio/mixins/compress.py | APSL/django-kaio | a17d690907bb7638c81c3cd1e76e4fd2072e7bf7 | [
"BSD-3-Clause"
] | 8 | 2016-10-24T22:44:56.000Z | 2021-12-28T10:34:59.000Z | # -*- coding: utf-8 -*-
from configurations import Configuration
from kaio import Options
from functools import partial
opts = Options()
get = partial(opts.get, section='Compress')
class CompressMixin(object):
STATICFILES_FINDERS = list(Configuration.STATICFILES_FINDERS) + [
"compressor.finders.Compres... | 29.425287 | 100 | 0.673828 | 283 | 2,560 | 5.855124 | 0.261484 | 0.092939 | 0.149065 | 0.139409 | 0.274593 | 0.039831 | 0 | 0 | 0 | 0 | 0 | 0.005018 | 0.221484 | 2,560 | 86 | 101 | 29.767442 | 0.826392 | 0.051953 | 0 | 0.206349 | 0 | 0 | 0.19083 | 0.072697 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.047619 | 0.174603 | 0.555556 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3c402e40795845a56d87557c4fb5c6e6381f7d36 | 1,883 | py | Python | inference/utils/preprocessors.py | videetparekh/latentai-sdk-examples | 2104c097045105957ef7403b09b5a2c114677147 | [
"Apache-2.0"
] | null | null | null | inference/utils/preprocessors.py | videetparekh/latentai-sdk-examples | 2104c097045105957ef7403b09b5a2c114677147 | [
"Apache-2.0"
] | null | null | null | inference/utils/preprocessors.py | videetparekh/latentai-sdk-examples | 2104c097045105957ef7403b09b5a2c114677147 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2019 by LatentAI Inc.
# All rights reserved.
# This file is part of the LEIP(tm) SDK,
# and is released under the "LatentAI Commercial Software License".
# Please see the LICENSE file that should have been included as part of
# this package.
#
# @file preprocessors.py
#
# @author Videet Parekh... | 27.289855 | 79 | 0.60701 | 267 | 1,883 | 4.23221 | 0.385768 | 0.074336 | 0.080531 | 0.106195 | 0.458407 | 0.438938 | 0.369912 | 0.332743 | 0.284956 | 0.284956 | 0 | 0.045487 | 0.252788 | 1,883 | 68 | 80 | 27.691176 | 0.75764 | 0.194902 | 0 | 0.365854 | 0 | 0 | 0.018692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.292683 | false | 0 | 0.097561 | 0.170732 | 0.707317 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3c602655ba398977e02e9afe391b0becab3429b2 | 4,065 | py | Python | Kwargs/topic.py | chanchanchong/PYTHON-TRACK-IN-HYPERSKILL | 462fe08ff4a2b183fd45a0235ab1ec7a788bd54c | [
"MIT"
] | null | null | null | Kwargs/topic.py | chanchanchong/PYTHON-TRACK-IN-HYPERSKILL | 462fe08ff4a2b183fd45a0235ab1ec7a788bd54c | [
"MIT"
] | null | null | null | Kwargs/topic.py | chanchanchong/PYTHON-TRACK-IN-HYPERSKILL | 462fe08ff4a2b183fd45a0235ab1ec7a788bd54c | [
"MIT"
] | null | null | null | # Theory: Kwargs
# With *args you can create more flexible functions that accept
# a varying number of positional arguments. You may now wonder
# how to do the same with named arguments. Fortunately, in
# Python, you can work with keyword arguments in a similar way.
# Multiple keyword arguments
# Let's get acquianted... | 37.990654 | 84 | 0.732595 | 621 | 4,065 | 4.78744 | 0.375201 | 0.043054 | 0.020182 | 0.026909 | 0.094181 | 0.053145 | 0.031618 | 0 | 0 | 0 | 0 | 0.000916 | 0.194342 | 4,065 | 106 | 85 | 38.349057 | 0.90687 | 0.826322 | 0 | 0 | 0 | 0 | 0.222749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0 | 0 | 0.214286 | 0.285714 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3c6a659eaa3ba661b432ae98a18ee1a150b42bfa | 1,100 | py | Python | synarchive/abstract.py | aimakerspace/synergos_archive | da68b745982658f50bd40ddc380c3dbc0dcb3b29 | [
"Apache-2.0"
] | null | null | null | synarchive/abstract.py | aimakerspace/synergos_archive | da68b745982658f50bd40ddc380c3dbc0dcb3b29 | [
"Apache-2.0"
] | null | null | null | synarchive/abstract.py | aimakerspace/synergos_archive | da68b745982658f50bd40ddc380c3dbc0dcb3b29 | [
"Apache-2.0"
] | 1 | 2022-01-21T01:05:46.000Z | 2022-01-21T01:05:46.000Z | #!/usr/bin/env python
####################
# Required Modules #
####################
# Generic/Built-in
import abc
# Libs
# Custom
##################
# Configurations #
##################
############################################
# Archive Abstract Class - AbstractRecords #
#################################... | 18.644068 | 79 | 0.514545 | 103 | 1,100 | 5.485437 | 0.456311 | 0.150442 | 0.176991 | 0.169912 | 0.277876 | 0.277876 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267273 | 1,100 | 59 | 80 | 18.644068 | 0.700993 | 0.433636 | 0 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0.294118 | 0.058824 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3c6f094cd99b6679421feefede4fb26681b766fc | 3,102 | py | Python | src/radical/saga/adaptors/cpi/filesystem/file.py | wjlei1990/radical.saga | de022ea4fb29d95e8acffff8a68aa8648de807d4 | [
"MIT"
] | 12 | 2019-04-13T21:41:45.000Z | 2021-08-03T09:43:25.000Z | src/radical/saga/adaptors/cpi/filesystem/file.py | wjlei1990/radical.saga | de022ea4fb29d95e8acffff8a68aa8648de807d4 | [
"MIT"
] | 103 | 2019-04-10T14:23:41.000Z | 2022-03-15T19:43:56.000Z | src/radical/saga/adaptors/cpi/filesystem/file.py | wjlei1990/radical.saga | de022ea4fb29d95e8acffff8a68aa8648de807d4 | [
"MIT"
] | 7 | 2019-07-11T07:59:56.000Z | 2022-02-02T22:28:24.000Z |
__author__ = "Andre Merzky"
__copyright__ = "Copyright 2012-2013, The SAGA Project"
__license__ = "MIT"
from .. import decorators as cpi_dec
from .. import namespace as cpi_ns
SYNC = cpi_dec.CPI_SYNC_CALL
ASYNC = cpi_dec.CPI_ASYNC_CALL
# keep order of inheritance! super() below uses MRO
class File (cpi_ns... | 28.2 | 70 | 0.478401 | 332 | 3,102 | 4.240964 | 0.195783 | 0.178977 | 0.127841 | 0.169034 | 0.637784 | 0.424716 | 0.306818 | 0.140625 | 0.049716 | 0 | 0 | 0.004322 | 0.403288 | 3,102 | 109 | 71 | 28.458716 | 0.756348 | 0.071567 | 0 | 0.422535 | 0 | 0 | 0.01815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.43662 | false | 0.422535 | 0.028169 | 0 | 0.478873 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3c94d82dd2f2b7411821b4718dcfcc540c10f6a9 | 1,658 | py | Python | flask_ipfs/http.py | zatoichi-labs/Flask-IPFS | 0c4381a16e6bd8b6762175d339f09c6af27335ea | [
"MIT"
] | 5 | 2020-04-17T19:34:30.000Z | 2021-05-22T12:45:19.000Z | flask_ipfs/http.py | zatoichi-labs/Flask-IPFS | 0c4381a16e6bd8b6762175d339f09c6af27335ea | [
"MIT"
] | 2 | 2020-04-25T03:25:39.000Z | 2021-04-20T09:48:30.000Z | flask_ipfs/http.py | zatoichi-labs/Flask-IPFS | 0c4381a16e6bd8b6762175d339f09c6af27335ea | [
"MIT"
] | null | null | null | import ipaddress
from multiaddr import Multiaddr
import ipfshttpclient
from .base import BaseAPI
class IpfsHttpClient(BaseAPI):
def __init__(self, url: str="http://localhost", port: int=5001):
http_protocol, host = url.split('://')
if http_protocol not in ('http', 'https'):
raise Val... | 29.087719 | 85 | 0.635706 | 219 | 1,658 | 4.621005 | 0.324201 | 0.098814 | 0.079051 | 0.056324 | 0.090909 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0.007981 | 0.24427 | 1,658 | 56 | 86 | 29.607143 | 0.799681 | 0.05006 | 0 | 0 | 0 | 0 | 0.092239 | 0.030534 | 0 | 0 | 0 | 0 | 0 | 1 | 0.282051 | false | 0 | 0.102564 | 0.153846 | 0.589744 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b1cdd65dc328c30fd26586deedb1ee3db8cbed53 | 32,541 | py | Python | ttim/circinhom.py | Huite/ttim | 6511a2a770bf1ba912518d8dc8716a865102e7da | [
"MIT"
] | 15 | 2015-08-24T17:28:37.000Z | 2021-12-21T19:52:56.000Z | ttim/circinhom.py | Huite/ttim | 6511a2a770bf1ba912518d8dc8716a865102e7da | [
"MIT"
] | 26 | 2016-02-09T13:23:56.000Z | 2022-02-24T08:06:54.000Z | ttim/circinhom.py | Huite/ttim | 6511a2a770bf1ba912518d8dc8716a865102e7da | [
"MIT"
] | 23 | 2015-09-26T09:18:08.000Z | 2021-11-15T19:51:50.000Z | import numpy as np
from scipy.special import kv, iv # Needed for K1 in Well class, and in CircInhom
from .aquifer import AquiferData
from .element import Element
from .equation import InhomEquation
class CircInhomData(AquiferData):
def __init__(self, model, x0=0, y0=0, R=1, kaq=[1], Haq=[1], c=[1],
... | 59.381387 | 181 | 0.497803 | 5,464 | 32,541 | 2.947108 | 0.065886 | 0.01714 | 0.023101 | 0.019872 | 0.78532 | 0.747997 | 0.724399 | 0.696578 | 0.666894 | 0.613426 | 0 | 0.086793 | 0.280538 | 32,541 | 548 | 182 | 59.381387 | 0.601017 | 0.640915 | 0 | 0.391089 | 0 | 0 | 0.0107 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 1 | 0.074257 | false | 0 | 0.024752 | 0.00495 | 0.168317 | 0.009901 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b1d92dbbe146ddb1d1de88894ba6484ba9328a9d | 2,241 | py | Python | cart/models.py | Rakesh10021997/UBF_backend | 354942bb708f669211674f5a327ac8eafe1584df | [
"MIT"
] | null | null | null | cart/models.py | Rakesh10021997/UBF_backend | 354942bb708f669211674f5a327ac8eafe1584df | [
"MIT"
] | 7 | 2021-04-08T21:17:18.000Z | 2022-01-13T03:39:23.000Z | cart/models.py | saksham1991999/upscbasicfunda | b17e288081cb4ca9dd79d198cd0b22136c0794bb | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class UserCart(models.Model):
user = models.ForeignKey('core.User', on_delete=models.PROTECT)
pdfs = models.ManyToManyField('core.PDF', blank=True)
mcqs = models.ManyToManyField('core.MCQ', blank=True)
summaries = models.ManyToManyField('core.Summ... | 43.096154 | 98 | 0.732709 | 272 | 2,241 | 5.9375 | 0.253676 | 0.10031 | 0.185759 | 0.065015 | 0.722601 | 0.706502 | 0.591331 | 0.591331 | 0.544272 | 0.544272 | 0 | 0.004169 | 0.143686 | 2,241 | 52 | 99 | 43.096154 | 0.837415 | 0.01071 | 0 | 0.5 | 0 | 0 | 0.106949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.904762 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b1f2010c42aaa8834e56649a9afa2c2459cfce54 | 473 | py | Python | download_graphs.py | Jesus/bibo | bb5d8a018bc131b9b1cf8f9de9da4d7dd6f6ce63 | [
"MIT"
] | 1 | 2019-08-16T12:12:02.000Z | 2019-08-16T12:12:02.000Z | download_graphs.py | Jesus/bibo | bb5d8a018bc131b9b1cf8f9de9da4d7dd6f6ce63 | [
"MIT"
] | 3 | 2019-01-09T04:50:59.000Z | 2020-03-19T15:20:17.000Z | download_graphs.py | Jesus/bibo | bb5d8a018bc131b9b1cf8f9de9da4d7dd6f6ce63 | [
"MIT"
] | 1 | 2019-02-09T11:04:47.000Z | 2019-02-09T11:04:47.000Z | import urllib.request
url_prefix = "https://s3.amazonaws.com/bibo.inference/20171224/"
files = {
"number_recognition_frozen_inference_graph.pb":
"data/attention_ocr/number_recognition_frozen_inference_graph.pb",
"bib_detection_frozen_inference_graph.pb":
"data/object_detection/bib_detection_fro... | 31.533333 | 74 | 0.744186 | 62 | 473 | 5.354839 | 0.5 | 0.180723 | 0.240964 | 0.26506 | 0.463855 | 0.439759 | 0 | 0 | 0 | 0 | 0 | 0.022059 | 0.137421 | 473 | 14 | 75 | 33.785714 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0.549683 | 0.437632 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.083333 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
591573d20ed75cb7cd4defbcf2a03f960394b65e | 597 | py | Python | animius/__init__.py | gundamMC/animius | 911712ddb992a5f9b00e5a00299a55baf762a9c5 | [
"Apache-2.0"
] | 16 | 2019-04-24T16:03:44.000Z | 2021-11-12T12:27:48.000Z | animius/__init__.py | gundamMC/animius | 911712ddb992a5f9b00e5a00299a55baf762a9c5 | [
"Apache-2.0"
] | 2 | 2019-04-29T16:57:25.000Z | 2019-07-17T18:02:33.000Z | animius/__init__.py | gundamMC/animius | 911712ddb992a5f9b00e5a00299a55baf762a9c5 | [
"Apache-2.0"
] | 1 | 2019-09-03T19:11:50.000Z | 2019-09-03T19:11:50.000Z | # Please DONT "optimize" this file
# PyCharm can't seem to learn the import order and will
# sort them out alphabetically
from animius.Model import Model
from animius.ModelConfig import *
from animius.WordEmbedding import WordEmbedding
from animius.ModelData import *
from animius.Console import Console
from animius.Co... | 29.85 | 58 | 0.839196 | 80 | 597 | 6.2625 | 0.4625 | 0.175649 | 0.067864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127303 | 597 | 19 | 59 | 31.421053 | 0.961612 | 0.19263 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3cd81366c24e6d46ba421a7738f2ef257fff81bc | 1,821 | py | Python | src/config/application.py | tomstark99/play-fair | 5b4ad20ebb96d1162f3bd696aba0a6b57006ab0a | [
"Apache-2.0"
] | 18 | 2020-11-26T17:14:09.000Z | 2021-12-13T13:25:06.000Z | src/config/application.py | tomstark99/play-fair | 5b4ad20ebb96d1162f3bd696aba0a6b57006ab0a | [
"Apache-2.0"
] | null | null | null | src/config/application.py | tomstark99/play-fair | 5b4ad20ebb96d1162f3bd696aba0a6b57006ab0a | [
"Apache-2.0"
] | 2 | 2020-12-15T04:24:55.000Z | 2021-03-01T17:59:51.000Z | from typing import Any, Callable, Tuple, Union
import torch
from pydantic import BaseModel
from config.data import SomethingSomethingV2DatasetConfig, SomethingSomethingV2FeaturesDatasetConfig
from config.model import FeatureMultiscaleNetworkConfig, FeatureTRNConfig, \
FeatureTSNConfig, TRNConfig, TSNConfig
from c... | 33.109091 | 100 | 0.779242 | 194 | 1,821 | 7.149485 | 0.257732 | 0.038933 | 0.060562 | 0.063446 | 0.321557 | 0.321557 | 0.321557 | 0.321557 | 0.321557 | 0.321557 | 0 | 0.002584 | 0.149918 | 1,821 | 54 | 101 | 33.722222 | 0.893411 | 0 | 0 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236842 | false | 0 | 0.263158 | 0.236842 | 0.973684 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3ce417e94956bc5db7ccd6ffd62224472cfc18a5 | 67 | py | Python | watertap/__init__.py | jefalon/watertap | b7c20a9a807028daef4bbaaaba0b605e4094ef73 | [
"BSD-3-Clause-LBNL"
] | null | null | null | watertap/__init__.py | jefalon/watertap | b7c20a9a807028daef4bbaaaba0b605e4094ef73 | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-09-24T00:33:49.000Z | 2021-09-24T00:33:49.000Z | watertap/__init__.py | jefalon/watertap | b7c20a9a807028daef4bbaaaba0b605e4094ef73 | [
"BSD-3-Clause-LBNL"
] | null | null | null | import pathlib
_ROOT = pathlib.Path(__file__).parent.absolute()
| 11.166667 | 48 | 0.761194 | 8 | 67 | 5.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 67 | 5 | 49 | 13.4 | 0.779661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3cebd9b92829d5955a1b79a2a227e5d4a5900300 | 489 | py | Python | dynamicserialize/dstypes/com/raytheon/uf/common/site/requests/__init__.py | srcarter3/python-awips | d981062662968cf3fb105e8e23d955950ae2497e | [
"BSD-3-Clause"
] | 33 | 2016-03-17T01:21:18.000Z | 2022-02-08T10:41:06.000Z | dynamicserialize/dstypes/com/raytheon/uf/common/site/requests/__init__.py | srcarter3/python-awips | d981062662968cf3fb105e8e23d955950ae2497e | [
"BSD-3-Clause"
] | 15 | 2016-04-19T16:34:08.000Z | 2020-09-09T19:57:54.000Z | dynamicserialize/dstypes/com/raytheon/uf/common/site/requests/__init__.py | Unidata/python-awips | 8459aa756816e5a45d2e5bea534d23d5b1dd1690 | [
"BSD-3-Clause"
] | 20 | 2016-03-12T01:46:58.000Z | 2022-02-08T06:53:22.000Z |
__all__ = [
'ActivateSiteRequest',
'DeactivateSiteRequest',
'GetActiveSitesRequest',
'GetPrimarySiteRequest',
'ValidateConfigRequest'
]
from .ActivateSiteRequest import ActivateSiteRequest
from .DeactivateSiteRequest import DeactivateSiteRequest
fr... | 32.6 | 56 | 0.748466 | 26 | 489 | 13.923077 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206544 | 489 | 14 | 57 | 34.928571 | 0.93299 | 0 | 0 | 0 | 0 | 0 | 0.211066 | 0.172131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3cf974e6b4716450702c5a53d188f685e89f9f18 | 54 | py | Python | src/niweb/apps/noclook/__init__.py | emjemj/ni | a78e6d97d1e4610aad7698c4f0f459221c680b4f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/niweb/apps/noclook/__init__.py | emjemj/ni | a78e6d97d1e4610aad7698c4f0f459221c680b4f | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2019-07-24T12:41:11.000Z | 2020-03-31T10:10:04.000Z | src/niweb/apps/noclook/__init__.py | emjemj/ni | a78e6d97d1e4610aad7698c4f0f459221c680b4f | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-02-25T14:58:20.000Z | 2019-02-25T14:58:20.000Z | default_app_config = 'apps.noclook.apps.NOCLookConfig' | 54 | 54 | 0.851852 | 7 | 54 | 6.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 54 | 1 | 54 | 54 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.563636 | 0.563636 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a7042829525586581c9740a78d96ead7db043ade | 218 | py | Python | d7a/support/Crc.py | christophevg/pyd7a | a785b50c1853988ae6770b94f12422b21a088523 | [
"Apache-2.0"
] | 3 | 2017-03-14T15:32:02.000Z | 2021-08-15T18:17:42.000Z | d7a/support/Crc.py | christophevg/pyd7a | a785b50c1853988ae6770b94f12422b21a088523 | [
"Apache-2.0"
] | null | null | null | d7a/support/Crc.py | christophevg/pyd7a | a785b50c1853988ae6770b94f12422b21a088523 | [
"Apache-2.0"
] | 1 | 2015-11-24T08:00:14.000Z | 2015-11-24T08:00:14.000Z | from PyCRC.CRCCCITT import CRCCCITT
import binascii
def calculate_crc(bytes):
crc = CRCCCITT(version='FFFF').calculate(binascii.hexlify(bytearray(bytes)).decode('hex'))
return [(crc >> 8) & 0xff, crc & 0xff]
| 27.25 | 94 | 0.715596 | 28 | 218 | 5.535714 | 0.642857 | 0.180645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015957 | 0.137615 | 218 | 7 | 95 | 31.142857 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0.03211 | 0 | 0 | 0 | 0.036697 | 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 | 0 | 0 | 0 | 3 |
a73385866814e0238e403b72b088a12410836ec2 | 65,802 | py | Python | patenttools/classifiers.py | jhirner/patent-tools | 52fbfa45c92a69ec8d8352ac4994b12af3d0ed73 | [
"MIT"
] | null | null | null | patenttools/classifiers.py | jhirner/patent-tools | 52fbfa45c92a69ec8d8352ac4994b12af3d0ed73 | [
"MIT"
] | null | null | null | patenttools/classifiers.py | jhirner/patent-tools | 52fbfa45c92a69ec8d8352ac4994b12af3d0ed73 | [
"MIT"
] | null | null | null | # These CPC codes are international classifiers for patents.
# This dict is imported by patenttools.lookup and is used to provide the "patent class".
cpc_codes = {
'B29L': 'INDEXING SCHEME ASSOCIATED WITH SUBCLASS B29C, RELATING TO PARTICULAR ARTICLES',
'D01D': 'MECHANICAL METHODS OR APPARATUS IN THE MANUFACTUR... | 97.340237 | 1,425 | 0.743534 | 8,416 | 65,802 | 5.813332 | 0.333294 | 0.017762 | 0.027798 | 0.031967 | 0.109147 | 0.075401 | 0.058396 | 0.048993 | 0.047154 | 0.039142 | 0 | 0.028687 | 0.165633 | 65,802 | 676 | 1,426 | 97.340237 | 0.86243 | 0.002204 | 0 | 0 | 0 | 0.216617 | 0.876917 | 0.006717 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.004451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5959813563a1c54adca28e293a303bfbe89c57fd | 498 | py | Python | advisor_server/suggestion/algorithm/base_hyperopt_algorithm_test.py | silvery107/advisor | 012b01a8efc227e360aa8c2bf039460e8ac29e38 | [
"Apache-2.0"
] | 1,498 | 2017-09-14T15:59:10.000Z | 2022-03-29T07:42:00.000Z | advisor_server/suggestion/algorithm/base_hyperopt_algorithm_test.py | silvery107/advisor | 012b01a8efc227e360aa8c2bf039460e8ac29e38 | [
"Apache-2.0"
] | 43 | 2017-10-02T10:19:03.000Z | 2021-03-02T15:12:21.000Z | advisor_server/suggestion/algorithm/base_hyperopt_algorithm_test.py | silvery107/advisor | 012b01a8efc227e360aa8c2bf039460e8ac29e38 | [
"Apache-2.0"
] | 274 | 2017-09-19T00:40:43.000Z | 2022-03-28T07:31:32.000Z | from django.test import TestCase
from suggestion.algorithm.abstract_algorithm import AbstractSuggestionAlgorithm
from suggestion.algorithm.base_hyperopt_algorithm import BaseHyperoptAlgorithm
class BaseHyperoptAlgorithmTest(TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self)... | 24.9 | 79 | 0.813253 | 47 | 498 | 8.446809 | 0.510638 | 0.070529 | 0.115869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124498 | 498 | 19 | 80 | 26.210526 | 0.91055 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.25 | false | 0.166667 | 0.25 | 0 | 0.583333 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
5965852822f05625ed62db42c70d9803393489aa | 193 | py | Python | fancypages/conf.py | ashiazed/django-fancypages | 7587bac8f61ed8567f27ffee78c5dbedf039f345 | [
"BSD-3-Clause"
] | 1 | 2018-05-28T09:50:13.000Z | 2018-05-28T09:50:13.000Z | fancypages/conf.py | ashiazed/django-fancypages | 7587bac8f61ed8567f27ffee78c5dbedf039f345 | [
"BSD-3-Clause"
] | null | null | null | fancypages/conf.py | ashiazed/django-fancypages | 7587bac8f61ed8567f27ffee78c5dbedf039f345 | [
"BSD-3-Clause"
] | null | null | null | from django.conf import settings
from appconf import AppConf
class FancyPagesConf(AppConf):
DEFAULT_TEMPLATE = "fancypages/pages/page.html"
class Meta:
prefix = 'fancypages'
| 19.3 | 51 | 0.735751 | 22 | 193 | 6.409091 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19171 | 193 | 9 | 52 | 21.444444 | 0.903846 | 0 | 0 | 0 | 0 | 0 | 0.186529 | 0.134715 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 3 |
598305927ee05b33ce697942e1dbd167b5928a1b | 229 | py | Python | apps/core/models.py | Iyonissio/Kadju-App | 51797fc5d5a4f98fffe80bbed4d96c43b8cd0b04 | [
"MIT"
] | null | null | null | apps/core/models.py | Iyonissio/Kadju-App | 51797fc5d5a4f98fffe80bbed4d96c43b8cd0b04 | [
"MIT"
] | null | null | null | apps/core/models.py | Iyonissio/Kadju-App | 51797fc5d5a4f98fffe80bbed4d96c43b8cd0b04 | [
"MIT"
] | null | null | null | from django.db import models
class Destaque(models.Model):
nome = models.CharField(max_length=100)
image = models.ImageField(upload_to='uploads/', blank=True, null=True)
def __str__(self):
return self.nome
| 22.9 | 74 | 0.707424 | 31 | 229 | 5.032258 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015957 | 0.179039 | 229 | 9 | 75 | 25.444444 | 0.81383 | 0 | 0 | 0 | 0 | 0 | 0.034935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 1 | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5986b52e3f2b8c857b513560ea5b0c056d98e270 | 2,971 | py | Python | aries_cloudagency/agency/server.py | osancus/aries-cloudagency-python | d0ce77a3a11927715d1cb3533313d17a27b1cf7a | [
"Apache-2.0"
] | null | null | null | aries_cloudagency/agency/server.py | osancus/aries-cloudagency-python | d0ce77a3a11927715d1cb3533313d17a27b1cf7a | [
"Apache-2.0"
] | null | null | null | aries_cloudagency/agency/server.py | osancus/aries-cloudagency-python | d0ce77a3a11927715d1cb3533313d17a27b1cf7a | [
"Apache-2.0"
] | 3 | 2020-07-03T21:35:34.000Z | 2020-09-09T13:26:20.000Z | import asyncio
import os
from aries_cloudagency.config.default_context import DefaultContextBuilder
from aries_cloudagency.core.conductor import Conductor
contextBuilder = DefaultContextBuilder()
def str_to_bool(s):
if s == 'true':
return True
elif s == 'false':
return False
else:
... | 39.092105 | 105 | 0.76136 | 359 | 2,971 | 6.005571 | 0.267409 | 0.234694 | 0.266698 | 0.341373 | 0.534787 | 0.404917 | 0.304267 | 0.286642 | 0.20872 | 0 | 0 | 0.007654 | 0.120498 | 2,971 | 75 | 106 | 39.613333 | 0.817451 | 0.019859 | 0 | 0.074074 | 0 | 0 | 0.26419 | 0.145855 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.148148 | 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 | 0 | 0 | 0 | 3 |
5991a066eac6cda6b3a977d7129ffcac88f2ef5e | 1,842 | py | Python | wiggum/__init__.py | carolinesadlerr/wiggum | e9b80fcdb8d50c6dd8ee3f75b9054e07b15a6163 | [
"MIT"
] | 5 | 2020-04-04T23:00:15.000Z | 2021-09-05T21:47:43.000Z | wiggum/__init__.py | carolinesadlerr/wiggum | e9b80fcdb8d50c6dd8ee3f75b9054e07b15a6163 | [
"MIT"
] | 62 | 2019-12-02T19:08:35.000Z | 2022-03-30T21:30:42.000Z | wiggum/__init__.py | carolinesadlerr/wiggum | e9b80fcdb8d50c6dd8ee3f75b9054e07b15a6163 | [
"MIT"
] | 3 | 2021-02-19T16:06:29.000Z | 2022-03-06T22:25:58.000Z | import pandas as pd
import numpy as np
import scipy.stats as stats
import itertools as itert
#from .detectors import upper_triangle_df, upper_triangle_element, isReverse,
# from .detectors import detect_simpsons_paradox
from .ranking_processing import DEFAULT_SP_DEF, trend_quality_sp
# from .ranking_processing impo... | 41.863636 | 83 | 0.732899 | 241 | 1,842 | 5.062241 | 0.352697 | 0.09918 | 0.031148 | 0.044262 | 0.206557 | 0.160656 | 0.160656 | 0.160656 | 0.160656 | 0.160656 | 0 | 0.002016 | 0.192182 | 1,842 | 43 | 84 | 42.837209 | 0.817876 | 0.504343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.533333 | 0 | 0.533333 | 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 | 0 | 1 | 0 | 0 | 3 |
59af50be4f191947c00b356a5767f108e7701ca9 | 411 | py | Python | slos/test/config.py | softlayer/softlayer-cinder-driver | 465c2a15b7692f9fa1171a212fe162a990267e62 | [
"MIT"
] | 2 | 2016-04-19T14:08:47.000Z | 2016-05-30T02:57:19.000Z | slos/test/config.py | softlayer/softlayer-cinder-driver | 465c2a15b7692f9fa1171a212fe162a990267e62 | [
"MIT"
] | 1 | 2015-02-23T09:32:25.000Z | 2015-02-23T09:32:25.000Z | slos/test/config.py | softlayer/softlayer-cinder-driver | 465c2a15b7692f9fa1171a212fe162a990267e62 | [
"MIT"
] | 1 | 2016-04-19T14:17:13.000Z | 2016-04-19T14:17:13.000Z | #!/usr/bin/env python
class Config(object):
_cfg = {}
def safe_get(self, name):
self._cfg.get(name)
def append_config_values(self, opts):
pass
def __setattr__(self, name, value):
self._cfg[name] = value
def __getattr__(self, name):
return self._cfg.get(name)
... | 18.681818 | 41 | 0.588808 | 56 | 411 | 4 | 0.5 | 0.15625 | 0.089286 | 0.125 | 0.151786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287105 | 411 | 21 | 42 | 19.571429 | 0.764505 | 0.048662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0.076923 | 0 | 0.076923 | 0.615385 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
59c1647273bb3f5f5c9b3890884c4b33b50d28c6 | 842 | py | Python | tests/data/expected/parser/openapi/openapi_parser_parse_duplicate_models/output.py | stevesimmons/datamodel-code-generator | b77009e978607064939333992a28b323b3420579 | [
"MIT"
] | 891 | 2019-07-23T04:23:32.000Z | 2022-03-31T13:36:33.000Z | tests/data/expected/parser/openapi/openapi_parser_parse_duplicate_models/output.py | stevesimmons/datamodel-code-generator | b77009e978607064939333992a28b323b3420579 | [
"MIT"
] | 663 | 2019-07-23T09:50:26.000Z | 2022-03-29T01:56:55.000Z | tests/data/expected/parser/openapi/openapi_parser_parse_duplicate_models/output.py | stevesimmons/datamodel-code-generator | b77009e978607064939333992a28b323b3420579 | [
"MIT"
] | 108 | 2019-07-23T08:50:37.000Z | 2022-03-09T10:50:22.000Z | from __future__ import annotations
from typing import List, Optional
from pydantic import BaseModel
class Pet(BaseModel):
id: int
name: str
tag: Optional[str] = None
class Pets(BaseModel):
__root__: List[Pet]
class Error(BaseModel):
code: int
message: str
class Event(BaseModel):
na... | 14.77193 | 39 | 0.707838 | 96 | 842 | 6 | 0.322917 | 0.109375 | 0.190972 | 0.140625 | 0.1875 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.198337 | 842 | 56 | 40 | 15.035714 | 0.845926 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
59eaa3743b33ab592bd1c70d1a62ca157e8838a2 | 85 | py | Python | python/testData/refactoring/introduceField/variableToField.py | 06needhamt/intellij-community | 63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b | [
"Apache-2.0"
] | null | null | null | python/testData/refactoring/introduceField/variableToField.py | 06needhamt/intellij-community | 63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b | [
"Apache-2.0"
] | null | null | null | python/testData/refactoring/introduceField/variableToField.py | 06needhamt/intellij-community | 63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b | [
"Apache-2.0"
] | null | null | null | class Foo:
def bar(self):
<selection>c</selection> = ""
print(c)
| 17 | 37 | 0.505882 | 10 | 85 | 4.3 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.329412 | 85 | 4 | 38 | 21.25 | 0.754386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ab7b3438db555aaa27d6d069b3a706c57ea3b5df | 495 | py | Python | python3/demo.printing.py | cdluminate/MyNotes | cf28f2a3fa72723153147e21fed5e7b598baf44f | [
"CC0-1.0"
] | null | null | null | python3/demo.printing.py | cdluminate/MyNotes | cf28f2a3fa72723153147e21fed5e7b598baf44f | [
"CC0-1.0"
] | null | null | null | python3/demo.printing.py | cdluminate/MyNotes | cf28f2a3fa72723153147e21fed5e7b598baf44f | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/python3
import os
import sys
print('{:5d} {:7d}'.format(1, 2)) # both right aligh
print('{:<5d} {:>7d}'.format(1, 2)) # left, right
print('{:>5d} {:<7d}'.format(1, 2)) # right, left
'''
https://docs.python.org/3/library/string.html?highlight=string#module-string
"Harold's a clever {0!s}" # Call... | 24.75 | 76 | 0.60202 | 76 | 495 | 3.921053 | 0.592105 | 0.07047 | 0.090604 | 0.151007 | 0.171141 | 0.171141 | 0 | 0 | 0 | 0 | 0 | 0.037688 | 0.19596 | 495 | 19 | 77 | 26.052632 | 0.711055 | 0.117172 | 0 | 0 | 0 | 0 | 0.270073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0.6 | 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 | 0 | 0 | 1 | 0 | 3 |
aba747fb80817be32060d582c1d8374f28205caa | 399 | py | Python | exercise/Exercism/python/scrabble-score/scrabble_score.py | orca-j35/python-notes | 950e78f53c5eebe8a4ba0396d5470383cfa77e48 | [
"CNRI-Python"
] | 1 | 2021-05-08T16:04:09.000Z | 2021-05-08T16:04:09.000Z | exercise/Exercism/python/scrabble-score/scrabble_score.py | orca-j35/python-notes | 950e78f53c5eebe8a4ba0396d5470383cfa77e48 | [
"CNRI-Python"
] | null | null | null | exercise/Exercism/python/scrabble-score/scrabble_score.py | orca-j35/python-notes | 950e78f53c5eebe8a4ba0396d5470383cfa77e48 | [
"CNRI-Python"
] | 2 | 2021-03-04T18:10:48.000Z | 2021-05-08T16:05:33.000Z | points = dict()
points.update(dict.fromkeys(('AEIOULNRST'), 1))
points.update(dict.fromkeys(('DG'), 2))
points.update(dict.fromkeys(('BCMP'), 3))
points.update(dict.fromkeys(('FHVWY'), 4))
points.update(dict.fromkeys(('K'), 5))
points.update(dict.fromkeys(('JX'), 8))
points.update(dict.fromkeys(('QZ'), 10))
def score... | 30.692308 | 70 | 0.674185 | 60 | 399 | 4.483333 | 0.5 | 0.312268 | 0.416357 | 0.624535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021858 | 0.082707 | 399 | 12 | 71 | 33.25 | 0.713115 | 0 | 0 | 0 | 0 | 0 | 0.065163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0.1 | 0.2 | 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 | 0 | 0 | 0 | 3 |
abc54e65ed84e07d0f2eb2efac9f996d36591bcc | 475 | py | Python | bunnyhop/core.py | jefford-qwigo/bunnyhop | b039f1a713a234d02aae4d9371133768001095ff | [
"Apache-2.0"
] | 4 | 2020-10-06T00:07:25.000Z | 2021-03-24T07:10:12.000Z | bunnyhop/core.py | jefford-qwigo/bunnyhop | b039f1a713a234d02aae4d9371133768001095ff | [
"Apache-2.0"
] | 3 | 2020-08-18T02:09:08.000Z | 2021-08-25T01:21:12.000Z | bunnyhop/core.py | jefford-qwigo/bunnyhop | b039f1a713a234d02aae4d9371133768001095ff | [
"Apache-2.0"
] | 1 | 2020-08-05T15:18:21.000Z | 2020-08-05T15:18:21.000Z | from bunnyhop.billing import Billing
from bunnyhop.purge import Purge
from bunnyhop.stats import Stats
from bunnyhop.storage import Storage, StorageZone
from bunnyhop.zone import Zone
class Bunny(object):
def __init__(self, api_key):
self.Zone = Zone(api_key)
self.Purge = Purge(api_key)
s... | 27.941176 | 49 | 0.713684 | 64 | 475 | 5.125 | 0.265625 | 0.128049 | 0.182927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208421 | 475 | 16 | 50 | 29.6875 | 0.87234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
abc7f78454c01d6d24d55e973cfb95734450f7e7 | 5,477 | py | Python | app/models/k8s_resource/io/k8s/api/storage/v1alpha1.py | zephyrxvxx7/KubeZephyr-Backend | 242410bc236e1f7204c24d635eb3346b0c256dc8 | [
"MIT"
] | 2 | 2021-04-25T01:49:45.000Z | 2021-11-25T09:10:40.000Z | app/models/k8s_resource/io/k8s/api/storage/v1alpha1.py | zephyrxvxx7/KubeZephyr-Backend | 242410bc236e1f7204c24d635eb3346b0c256dc8 | [
"MIT"
] | null | null | null | app/models/k8s_resource/io/k8s/api/storage/v1alpha1.py | zephyrxvxx7/KubeZephyr-Backend | 242410bc236e1f7204c24d635eb3346b0c256dc8 | [
"MIT"
] | null | null | null | # generated by datamodel-codegen:
# filename: swagger.json
# timestamp: 2021-03-29T08:55:23+00:00
from __future__ import annotations
from typing import Dict, List, Optional
from pydantic import BaseModel, Field
from ..... import AttachmentMetadata
from ...apimachinery.pkg.apis.meta import v1
from ..core import... | 52.161905 | 393 | 0.7327 | 675 | 5,477 | 5.936296 | 0.288889 | 0.031445 | 0.069878 | 0.029948 | 0.507612 | 0.480659 | 0.473172 | 0.473172 | 0.452708 | 0.452708 | 0 | 0.007412 | 0.187146 | 5,477 | 104 | 394 | 52.663462 | 0.892633 | 0.017528 | 0 | 0.270588 | 1 | 0.164706 | 0.601823 | 0.003906 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.011765 | 0.070588 | 0 | 0.376471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
abcc277e5b1432e441f26c96bda8bd30f837effa | 187 | py | Python | quirinius/__init__.py | zpace/quirinius | e27ed98b2441f796ee1962d767bc6877fffe8c94 | [
"MIT"
] | null | null | null | quirinius/__init__.py | zpace/quirinius | e27ed98b2441f796ee1962d767bc6877fffe8c94 | [
"MIT"
] | null | null | null | quirinius/__init__.py | zpace/quirinius | e27ed98b2441f796ee1962d767bc6877fffe8c94 | [
"MIT"
] | null | null | null | """quirinius - weighted quantiles using numba"""
__version__ = '0.1.0'
__author__ = 'Zachary Pace <zpace@astro.wisc.edu>'
__all__ = []
from .quantile import *
from .exceptions import *
| 20.777778 | 50 | 0.71123 | 23 | 187 | 5.26087 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01875 | 0.144385 | 187 | 8 | 51 | 23.375 | 0.7375 | 0.224599 | 0 | 0 | 0 | 0 | 0.28777 | 0.158273 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
abf2ab976e5528ef30130f09845b68a20ee9989f | 1,395 | py | Python | gooddata-sdk/gooddata_sdk/compute/model/attribute.py | hkad98/gooddata-python-sdk | 64942080ecb44c2d8e914e57f7a591daa6cca205 | [
"MIT"
] | null | null | null | gooddata-sdk/gooddata_sdk/compute/model/attribute.py | hkad98/gooddata-python-sdk | 64942080ecb44c2d8e914e57f7a591daa6cca205 | [
"MIT"
] | null | null | null | gooddata-sdk/gooddata_sdk/compute/model/attribute.py | hkad98/gooddata-python-sdk | 64942080ecb44c2d8e914e57f7a591daa6cca205 | [
"MIT"
] | null | null | null | # (C) 2022 GoodData Corporation
from __future__ import annotations
from typing import Union
import gooddata_afm_client.models as afm_models
from gooddata_sdk.compute.model.base import ExecModelEntity, ObjId
class Attribute(ExecModelEntity):
def __init__(self, local_id: str, label: Union[ObjId, str]) -> None:
... | 34.875 | 119 | 0.699642 | 186 | 1,395 | 5.010753 | 0.387097 | 0.067597 | 0.059013 | 0.032189 | 0.053648 | 0.053648 | 0 | 0 | 0 | 0 | 0 | 0.003646 | 0.21362 | 1,395 | 39 | 120 | 35.769231 | 0.845943 | 0.228674 | 0 | 0.095238 | 0 | 0 | 0.075875 | 0.070039 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.190476 | 0.238095 | 0.761905 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e612d7ac8c149a04842e35b1101e3a1d73bb6fbe | 167 | py | Python | pymt_rafem/__init__.py | katmratliff/pymt_rafem | 23508d102e009a4d7bd5ac90fe22f217f7934c1a | [
"MIT"
] | null | null | null | pymt_rafem/__init__.py | katmratliff/pymt_rafem | 23508d102e009a4d7bd5ac90fe22f217f7934c1a | [
"MIT"
] | null | null | null | pymt_rafem/__init__.py | katmratliff/pymt_rafem | 23508d102e009a4d7bd5ac90fe22f217f7934c1a | [
"MIT"
] | 1 | 2019-11-13T11:51:29.000Z | 2019-11-13T11:51:29.000Z | #! /usr/bin/env python
from .bmi import (Rafem,
)
__all__ = ["Rafem",
]
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
| 13.916667 | 39 | 0.718563 | 22 | 167 | 4.909091 | 0.590909 | 0.305556 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143713 | 167 | 11 | 40 | 15.181818 | 0.755245 | 0.125749 | 0 | 0 | 0 | 0 | 0.082759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e6260c055ae5ed00b4f963b44b05b329a2dfdc4c | 934 | py | Python | ep2/request_modulle_example/request_module_demo.py | rahulwinx1985/python-for-cloud | 6a311998fbf3712cc682b335730aea83062406ab | [
"MIT"
] | 3 | 2021-11-18T15:43:39.000Z | 2022-01-23T14:09:57.000Z | ep2/request_modulle_example/request_module_demo.py | rahulwinx1985/python-for-cloud | 6a311998fbf3712cc682b335730aea83062406ab | [
"MIT"
] | null | null | null | ep2/request_modulle_example/request_module_demo.py | rahulwinx1985/python-for-cloud | 6a311998fbf3712cc682b335730aea83062406ab | [
"MIT"
] | 27 | 2021-11-10T08:44:10.000Z | 2022-03-30T08:19:46.000Z | # python3 -m pip install requests
# if install using pip requirements.txt: pip install -r requirements.txt
#get request
import requests
x = requests.get('https://httpbin.org/get')
print(x.text)
#head request
# import requests
# x = requests.head('https://httpbin.org/head')
# print(x.headers)
#post request
# import r... | 22.238095 | 72 | 0.680942 | 128 | 934 | 4.96875 | 0.234375 | 0.122642 | 0.198113 | 0.150943 | 0.666667 | 0.383648 | 0.245283 | 0 | 0 | 0 | 0 | 0.00125 | 0.143469 | 934 | 41 | 73 | 22.780488 | 0.79375 | 0.845824 | 0 | 0 | 0 | 0 | 0.207207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e62b1e1a80d3b968a5294074b812bca6435d22a9 | 2,822 | py | Python | dockerphile/structures/onbuild_t.py | spearsem/dockerphile | c33ab78f55998b4d3a75a912bd8ca5375fcc4616 | [
"BSD-3-Clause"
] | null | null | null | dockerphile/structures/onbuild_t.py | spearsem/dockerphile | c33ab78f55998b4d3a75a912bd8ca5375fcc4616 | [
"BSD-3-Clause"
] | null | null | null | dockerphile/structures/onbuild_t.py | spearsem/dockerphile | c33ab78f55998b4d3a75a912bd8ca5375fcc4616 | [
"BSD-3-Clause"
] | null | null | null | from collections import namedtuple
from dockerphile.errors import DockerphileError
from dockerphile.structures.add_t import ADD_t
from dockerphile.structures.arg_t import ARG_t
from dockerphile.structures.cmd_t import CMD_t
from dockerphile.structures.copy_t import COPY_t
from dockerphile.structures.entrypoint_t impor... | 44.09375 | 79 | 0.760454 | 393 | 2,822 | 5.323155 | 0.264631 | 0.114723 | 0.179254 | 0.173996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195252 | 2,822 | 63 | 80 | 44.793651 | 0.92118 | 0.464919 | 0 | 0 | 0 | 0 | 0.053748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.566667 | 0 | 0.633333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e657669ce6eea4774e6c5977aab50eb227c65b11 | 53 | py | Python | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/A/atomic unit of mom.um.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/A/atomic unit of mom.um.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/A/atomic unit of mom.um.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | 1 | 2021-02-04T04:51:48.000Z | 2021-02-04T04:51:48.000Z | constants.physical_constants["atomic unit of mom.um"] | 53 | 53 | 0.830189 | 8 | 53 | 5.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 53 | 1 | 53 | 53 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
e65cf3d1053788ec1b3775471aafe2b3650d9827 | 1,561 | py | Python | src/tests/ftest/daos_test/daos_core_test-nvme_recovery.py | njuwelkin/daos | 2493621abe307edbc8acb3d5ea0186eb9d6a011d | [
"Apache-2.0"
] | 1 | 2021-12-04T14:57:48.000Z | 2021-12-04T14:57:48.000Z | src/tests/ftest/daos_test/daos_core_test-nvme_recovery.py | njuwelkin/daos | 2493621abe307edbc8acb3d5ea0186eb9d6a011d | [
"Apache-2.0"
] | 1 | 2020-01-14T18:47:07.000Z | 2020-01-14T18:47:07.000Z | src/tests/ftest/daos_test/daos_core_test-nvme_recovery.py | brianjmurrell/daos | fbd68b1fb703bd3d6ee94d08c9956758308aaf41 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
'''
(C) Copyright 2020 Intel Corporation.
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 ... | 33.934783 | 79 | 0.730942 | 218 | 1,561 | 5.188073 | 0.605505 | 0.05305 | 0.03183 | 0.05305 | 0.074271 | 0.074271 | 0.074271 | 0.074271 | 0.074271 | 0 | 0 | 0.015347 | 0.206919 | 1,561 | 45 | 80 | 34.688889 | 0.898223 | 0.82319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0504ac1bc365080da9a2b5f8de00fab81a82e3bd | 48 | py | Python | bottery/conf/global_settings.py | romulocollopy/bottery | caa50458aa477515c7766ad30189b10e4442bab0 | [
"MIT"
] | 250 | 2017-09-16T14:40:51.000Z | 2021-05-25T12:27:47.000Z | bottery/conf/global_settings.py | romulocollopy/bottery | caa50458aa477515c7766ad30189b10e4442bab0 | [
"MIT"
] | 135 | 2017-09-16T14:48:53.000Z | 2019-07-25T12:10:46.000Z | bottery/conf/global_settings.py | romulocollopy/bottery | caa50458aa477515c7766ad30189b10e4442bab0 | [
"MIT"
] | 78 | 2017-09-28T23:34:23.000Z | 2021-08-03T15:24:38.000Z | TEMPLATES = []
PLATFORMS = {}
MIDDLEWARES = []
| 9.6 | 16 | 0.604167 | 3 | 48 | 9.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 48 | 4 | 17 | 12 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0506a253ce6ef03fcab004a619e65da0a6a5156f | 7,572 | py | Python | mask.py | TonicAI/format-preserving-lorem-ipsum | 17043fdd2f24d8d1df1925fd76eba5c283238c4b | [
"MIT"
] | 11 | 2019-04-10T17:38:33.000Z | 2021-11-30T09:04:45.000Z | mask.py | TonicAI/format-preserving-lorem-ipsum | 17043fdd2f24d8d1df1925fd76eba5c283238c4b | [
"MIT"
] | null | null | null | mask.py | TonicAI/format-preserving-lorem-ipsum | 17043fdd2f24d8d1df1925fd76eba5c283238c4b | [
"MIT"
] | null | null | null | import unicodedata, random
def mask(input):
lorem_idx = 0
ipsum_idx = 0
for line in input:
for c in line:
cat = unicodedata.category(c)
if cat[0] == 'N':
print(random.randint(0, 9), end="")
elif cat[0] == 'P' and cat != 'Po':
prin... | 229.454545 | 6,704 | 0.736133 | 1,046 | 7,572 | 5.308795 | 0.204589 | 0.010085 | 0.011525 | 0.012966 | 0.119035 | 0.104448 | 0.104448 | 0.095444 | 0.095444 | 0.095444 | 0 | 0.001918 | 0.173666 | 7,572 | 32 | 6,705 | 236.625 | 0.885568 | 0 | 0 | 0.269231 | 0 | 0.038462 | 0.82224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0 | 0.115385 | 0.192308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.