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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
96aa095bc7a1410ba0f7c8603917f61d347876d2 | 6,264 | py | Python | pyeos_client/EOSWalletApi.py | EvaCoop/pyeos_client | dbf81ddd779151f90975a38729177e775c89a50d | [
"MIT"
] | 17 | 2018-05-22T13:01:46.000Z | 2020-10-17T18:17:36.000Z | pyeos_client/EOSWalletApi.py | EvaCoop/pyeos_client | dbf81ddd779151f90975a38729177e775c89a50d | [
"MIT"
] | 2 | 2021-01-04T09:08:08.000Z | 2021-06-01T22:10:46.000Z | pyeos_client/EOSWalletApi.py | EvaCoop/pyeos_client | dbf81ddd779151f90975a38729177e775c89a50d | [
"MIT"
] | 5 | 2018-06-18T10:22:04.000Z | 2019-03-07T12:46:13.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
.. module:: EOSWalletApi
:synopsis: A basic wrapper around the EOS Wallet API..
.. author:: Merouane Benthameur <merouane.benth@gmail.com>
"""
class WalletAPI:
"""wrapper for EOS Wallet API"""
def __init__(self, connection_session):
"""
co... | 27.964286 | 436 | 0.597701 | 613 | 6,264 | 5.955954 | 0.208809 | 0.057518 | 0.066283 | 0.073952 | 0.467817 | 0.459052 | 0.397151 | 0.376883 | 0.332786 | 0.238565 | 0 | 0.066201 | 0.291028 | 6,264 | 223 | 437 | 28.089686 | 0.755911 | 0.570562 | 0 | 0.194444 | 0 | 0 | 0.128696 | 0.068986 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.055556 | 0.055556 | 0 | 0.722222 | 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 |
96ae8bbc6b49843e06e169cd04bb6791ecb2af72 | 3,784 | py | Python | lib/github/tests/Authorization.py | tjsavage/polymer-dashboard | 19bc467f1206613f8eec646b6f2bc43cc319ef75 | [
"CNRI-Python",
"Linux-OpenIB"
] | 1 | 2017-04-26T18:51:43.000Z | 2017-04-26T18:51:43.000Z | lib/github/tests/Authorization.py | tjsavage/polymer-dashboard | 19bc467f1206613f8eec646b6f2bc43cc319ef75 | [
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | lib/github/tests/Authorization.py | tjsavage/polymer-dashboard | 19bc467f1206613f8eec646b6f2bc43cc319ef75 | [
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | # -*- coding: utf-8 -*-
# ########################## Copyrights and license ############################
# #
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
# Copyright 2012 Zearin <zearin@gonk.net> ... | 58.215385 | 118 | 0.559461 | 363 | 3,784 | 5.804408 | 0.347107 | 0.201709 | 0.162316 | 0.273374 | 0.478405 | 0.409112 | 0.27907 | 0.190793 | 0.141433 | 0.141433 | 0 | 0.032988 | 0.311047 | 3,784 | 64 | 119 | 59.125 | 0.775221 | 0.40037 | 0 | 0.242424 | 0 | 0 | 0.150925 | 0.01999 | 0 | 0 | 0 | 0 | 0.545455 | 1 | 0.121212 | false | 0 | 0.060606 | 0 | 0.212121 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
96b908ef6feca3c53ef5b590002d896f3459f061 | 67 | py | Python | tests/functional/cisco_nxos/ext_test_funcs.py | carlmontanari/ssh2net | 55e969b6d44ec3f2bd2ebbd8dedd68b99bee4c5b | [
"MIT"
] | 10 | 2020-01-13T03:28:33.000Z | 2022-02-08T17:05:59.000Z | tests/functional/cisco_nxos/ext_test_funcs.py | carlmontanari/ssh2net | 55e969b6d44ec3f2bd2ebbd8dedd68b99bee4c5b | [
"MIT"
] | null | null | null | tests/functional/cisco_nxos/ext_test_funcs.py | carlmontanari/ssh2net | 55e969b6d44ec3f2bd2ebbd8dedd68b99bee4c5b | [
"MIT"
] | 1 | 2020-05-26T13:35:46.000Z | 2020-05-26T13:35:46.000Z | def nxos_disable_paging(cls):
cls.send_inputs("term length 0")
| 22.333333 | 36 | 0.746269 | 11 | 67 | 4.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.134328 | 67 | 2 | 37 | 33.5 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0.19403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
736aa916706290bae37b9a7a7da55bdf1e8db77e | 1,160 | py | Python | sgld_test/heikos_experiment/austerity_convergance/generating_aust_sample.py | karlnapf/kernel_goodness_of_fit | b76ad54481475df5f061615b0922dec812d48eda | [
"BSD-3-Clause"
] | 21 | 2016-12-20T17:27:14.000Z | 2022-02-11T17:10:05.000Z | sgld_test/heikos_experiment/austerity_convergance/generating_aust_sample.py | zhushy/kernel_goodness_of_fit | b76ad54481475df5f061615b0922dec812d48eda | [
"BSD-3-Clause"
] | null | null | null | sgld_test/heikos_experiment/austerity_convergance/generating_aust_sample.py | zhushy/kernel_goodness_of_fit | b76ad54481475df5f061615b0922dec812d48eda | [
"BSD-3-Clause"
] | 6 | 2018-01-27T07:14:53.000Z | 2022-03-06T19:49:15.000Z | from time import time
from scipy.stats import norm
from statsmodels.tsa.stattools import acf
from sampplers.austerity import austerity
from sgld_test.constants import SIGMA_1, SIGMA_2
from sgld_test.mcmc_convergance.cosnt import NUMBER_OF_TESTS, NO_OF_SAMPELS_IN_TEST, CHAIN_SIZE, SEED, SAMPLE_SIZE
from sgld_test.likeli... | 29.74359 | 137 | 0.761207 | 193 | 1,160 | 4.336788 | 0.440415 | 0.028674 | 0.043011 | 0.052569 | 0.040621 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027053 | 0.107759 | 1,160 | 38 | 138 | 30.526316 | 0.781643 | 0.19569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.529412 | 0.117647 | 0.764706 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
738dccc75a72280114b68090b8396c575e105077 | 218 | py | Python | planning_system/app/blueprints/curriculum/bp.py | jehboyes/planning_system | a415f1408ef344732498d2ffb111dfd187b9b50f | [
"MIT"
] | null | null | null | planning_system/app/blueprints/curriculum/bp.py | jehboyes/planning_system | a415f1408ef344732498d2ffb111dfd187b9b50f | [
"MIT"
] | null | null | null | planning_system/app/blueprints/curriculum/bp.py | jehboyes/planning_system | a415f1408ef344732498d2ffb111dfd187b9b50f | [
"MIT"
] | null | null | null | """
Curriculum section of the app.
"""
from flask import Blueprint
curriculum_bp = Blueprint(
'curriculum_bp', __name__,
template_folder='templates',
static_folder='static',
url_prefix='/curriculum'
)
| 18.166667 | 32 | 0.711009 | 24 | 218 | 6.083333 | 0.708333 | 0.260274 | 0.287671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169725 | 218 | 11 | 33 | 19.818182 | 0.80663 | 0.137615 | 0 | 0 | 0 | 0 | 0.216667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 |
739b5f3e85a03611e371f70268a13f5aa1f21967 | 136 | py | Python | api_site/src/sample_site/config/test.py | webee/pay | b48c6892686bf3f9014bb67ed119506e41050d45 | [
"W3C"
] | 1 | 2019-10-14T11:51:49.000Z | 2019-10-14T11:51:49.000Z | api_site/src/sample_site/config/test.py | webee/pay | b48c6892686bf3f9014bb67ed119506e41050d45 | [
"W3C"
] | null | null | null | api_site/src/sample_site/config/test.py | webee/pay | b48c6892686bf3f9014bb67ed119506e41050d45 | [
"W3C"
] | null | null | null | # coding=utf-8
class App:
TESTING = True
class PayClientConfig:
CHECKOUT_URL = 'http://dev_pay.lvye.com:5102/checkout/{sn}'
| 13.6 | 63 | 0.683824 | 19 | 136 | 4.789474 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044643 | 0.176471 | 136 | 9 | 64 | 15.111111 | 0.767857 | 0.088235 | 0 | 0 | 0 | 0 | 0.344262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
73a85b9ec2f1422263a6120ce0a0cc9a9fcf8812 | 127 | bzl | Python | src/benchmark/cc_opts.bzl | ojcole/re-pairing-brackets | 1bd76bd5f19381d881116564bbaaa5e4e1395942 | [
"MIT"
] | null | null | null | src/benchmark/cc_opts.bzl | ojcole/re-pairing-brackets | 1bd76bd5f19381d881116564bbaaa5e4e1395942 | [
"MIT"
] | null | null | null | src/benchmark/cc_opts.bzl | ojcole/re-pairing-brackets | 1bd76bd5f19381d881116564bbaaa5e4e1395942 | [
"MIT"
] | null | null | null | "cc_binary opts for all manual binary rules"
COPTS = [
"-Ofast",
"-std=c++2a",
"-march=native",
"-DNDEBUG",
]
| 14.111111 | 44 | 0.551181 | 16 | 127 | 4.3125 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.251969 | 127 | 8 | 45 | 15.875 | 0.715789 | 0.330709 | 0 | 0 | 0 | 0 | 0.622047 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
73bf72b02114b6d63334ced50f36e024aa768d41 | 465 | py | Python | comb/demo/garbage.py | kbonez/comb | 9bddd6c7366bd71b06d0ad7c28188abec8a874b0 | [
"MIT"
] | null | null | null | comb/demo/garbage.py | kbonez/comb | 9bddd6c7366bd71b06d0ad7c28188abec8a874b0 | [
"MIT"
] | 2 | 2015-01-19T04:11:08.000Z | 2015-05-06T05:28:46.000Z | comb/demo/garbage.py | kbonez/comb | 9bddd6c7366bd71b06d0ad7c28188abec8a874b0 | [
"MIT"
] | 1 | 2019-11-09T20:34:54.000Z | 2019-11-09T20:34:54.000Z | # -*- coding: utf-8 -*-
import comb.demo.mongo as mongo
import comb.mq.mongo as MongoHelper
from pymongo import MongoClient
class Slot(mongo.Slot):
def __enter__(self):
MongoHelper.garbage(self.db['mq1'])
return False
def __exit__(self, exc_type, exc_val, exc_tb):
print("exit(),n... | 14.090909 | 77 | 0.636559 | 66 | 465 | 4.318182 | 0.651515 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005731 | 0.249462 | 465 | 32 | 78 | 14.53125 | 0.810888 | 0.045161 | 0 | 0 | 0 | 0 | 0.191686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.083333 | 0.25 | 0 | 0.666667 | 0.166667 | 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 |
fb44d4977b125779c8c391682589df6fde3bd1c1 | 4,189 | py | Python | metagraph/tests/translators/test_node_map.py | paul-tqh-nguyen/metagraph | 362f97059f8344042d376edc5b470e27bd69b46e | [
"Apache-2.0"
] | 18 | 2020-08-07T19:15:46.000Z | 2022-01-25T09:24:18.000Z | metagraph/tests/translators/test_node_map.py | paul-tqh-nguyen/metagraph | 362f97059f8344042d376edc5b470e27bd69b46e | [
"Apache-2.0"
] | 49 | 2020-08-07T20:05:11.000Z | 2022-03-24T20:46:31.000Z | metagraph/tests/translators/test_node_map.py | paul-tqh-nguyen/metagraph | 362f97059f8344042d376edc5b470e27bd69b46e | [
"Apache-2.0"
] | 9 | 2020-08-07T19:15:56.000Z | 2022-01-19T01:45:05.000Z | import pytest
grblas = pytest.importorskip("grblas")
import metagraph as mg
from metagraph import NodeLabels
from metagraph.tests.util import default_plugin_resolver
from . import RoundTripper
from metagraph.plugins.python.types import PythonNodeMapType, PythonNodeSetType
from metagraph.plugins.numpy.types import Num... | 45.043011 | 84 | 0.690857 | 568 | 4,189 | 4.959507 | 0.153169 | 0.092652 | 0.144125 | 0.15442 | 0.745119 | 0.745119 | 0.70252 | 0.595669 | 0.513312 | 0.478523 | 0 | 0.029472 | 0.181905 | 4,189 | 92 | 85 | 45.532609 | 0.79253 | 0.079971 | 0 | 0.205882 | 0 | 0 | 0.031779 | 0 | 0 | 0 | 0 | 0 | 0.426471 | 1 | 0.058824 | false | 0 | 0.161765 | 0 | 0.220588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fb4653d5e2ec544bf9d739dc70137565735333b5 | 1,686 | py | Python | corefacility/core/authorizations/password_recovery.py | serik1987/corefacility | 78d84e19403361e83ef562e738473849f9133bef | [
"RSA-MD"
] | null | null | null | corefacility/core/authorizations/password_recovery.py | serik1987/corefacility | 78d84e19403361e83ef562e738473849f9133bef | [
"RSA-MD"
] | null | null | null | corefacility/core/authorizations/password_recovery.py | serik1987/corefacility | 78d84e19403361e83ef562e738473849f9133bef | [
"RSA-MD"
] | null | null | null | from core.entity.entry_points.authorizations import AuthorizationModule
class PasswordRecoveryAuthorization(AuthorizationModule):
"""
The password recovery process implies that the user receives the link with his temporary credentials
by E-mail and then use these credentials for temporary authorization
... | 26.34375 | 104 | 0.658956 | 190 | 1,686 | 5.763158 | 0.505263 | 0.058447 | 0.041096 | 0.038356 | 0.056621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282918 | 1,686 | 63 | 105 | 26.761905 | 0.905707 | 0.467378 | 0 | 0.157895 | 0 | 0 | 0.129395 | 0.068917 | 0 | 0 | 0 | 0 | 0 | 1 | 0.421053 | false | 0.368421 | 0.052632 | 0 | 0.789474 | 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 |
fb6be4e15e1bb7e4878dec2d700772dc58cc958d | 297 | py | Python | Python Programmes/11_divisible_by_2_or_3.py | cek-open-source-club/KTU-S1-S2-CS-IT-Python_C-programs | 9e059ce56e6ef6a7814b94a4cfb7df5059f8bd6e | [
"BSD-3-Clause"
] | 4 | 2018-12-01T15:37:09.000Z | 2019-09-21T07:20:58.000Z | Python Programmes/11_divisible_by_2_or_3.py | abhinavprasad47/KTU-S1-S2-CS-IT-Python_C-programs | 80bac6fab303a0cff29779dc7545cf5054637b44 | [
"MIT"
] | null | null | null | Python Programmes/11_divisible_by_2_or_3.py | abhinavprasad47/KTU-S1-S2-CS-IT-Python_C-programs | 80bac6fab303a0cff29779dc7545cf5054637b44 | [
"MIT"
] | 2 | 2018-11-30T14:01:51.000Z | 2019-11-03T16:15:50.000Z | #A Given Number is Divisible By 2 or 3
n1=input("Enter the number:")
div=n1%10#For finding the final Term
if div%2==0:
print ("The given number a divisible of 2")
elif n1%3== 0:
print("The given number is divisible by 3")
elif div%2!=0:
print("The given number is not divisible by 2")
| 19.8 | 48 | 0.686869 | 59 | 297 | 3.457627 | 0.423729 | 0.215686 | 0.191176 | 0.205882 | 0.52451 | 0.352941 | 0.235294 | 0 | 0 | 0 | 0 | 0.067227 | 0.198653 | 297 | 14 | 49 | 21.214286 | 0.789916 | 0.212121 | 0 | 0 | 0 | 0 | 0.534483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 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 |
fbaccef57e99929d51671593b47a5fc7995d8ecf | 280 | py | Python | python--exercicios/ex014.py | Eliezer2000/python | 12abb54c6536acb2f36b8f34bf51ec765857eb75 | [
"MIT"
] | null | null | null | python--exercicios/ex014.py | Eliezer2000/python | 12abb54c6536acb2f36b8f34bf51ec765857eb75 | [
"MIT"
] | null | null | null | python--exercicios/ex014.py | Eliezer2000/python | 12abb54c6536acb2f36b8f34bf51ec765857eb75 | [
"MIT"
] | null | null | null | #Escreva um programa que converta uma temperatura digitando um graus Celsius e converta para graus Fahrenheit
C = float(input('Informe a ttemperatura em Cº :'))
F = (9 * C / 5) + 32
print('A temperatura de \033[1;34m{}Cº\033[m corresponde a \033[1;31m{}Fº\033[m'.format(C, F))
| 40 | 109 | 0.710714 | 50 | 280 | 3.98 | 0.7 | 0.040201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09322 | 0.157143 | 280 | 6 | 110 | 46.666667 | 0.75 | 0.385714 | 0 | 0 | 0 | 0.333333 | 0.609467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fbba0d3620e4265fadc47c745ee96fe8e0bc5b44 | 1,194 | py | Python | cao/cachorro.py | viollarr/hu | 8efeca31f89aa28aed1b1284fc2418b33affd973 | [
"MIT"
] | null | null | null | cao/cachorro.py | viollarr/hu | 8efeca31f89aa28aed1b1284fc2418b33affd973 | [
"MIT"
] | null | null | null | cao/cachorro.py | viollarr/hu | 8efeca31f89aa28aed1b1284fc2418b33affd973 | [
"MIT"
] | null | null | null | import sys
from os import path
diretorio_desse_arquivo = path.dirname(__file__)
diretorio_huaula = path.join(diretorio_desse_arquivo, '..')
diretorio_huaula = path.abspath(diretorio_huaula)
sys.path.append(diretorio_huaula)
class Mamifero:
patas = 2
def __init__(self, nome):
self.nome = nome
de... | 20.586207 | 66 | 0.654941 | 156 | 1,194 | 4.692308 | 0.326923 | 0.065574 | 0.057377 | 0.040984 | 0.11612 | 0.07377 | 0 | 0 | 0 | 0 | 0 | 0.003158 | 0.204355 | 1,194 | 57 | 67 | 20.947368 | 0.767368 | 0.235343 | 0 | 0.148148 | 0 | 0 | 0.081564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0.074074 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
837507f071c5115e65407f98cae65d917cec8a0b | 220 | py | Python | setup.py | eracah/car-nav | 666869de29fb750db7103b9e3f8c6ba4498f05b7 | [
"MIT"
] | null | null | null | setup.py | eracah/car-nav | 666869de29fb750db7103b9e3f8c6ba4498f05b7 | [
"MIT"
] | null | null | null | setup.py | eracah/car-nav | 666869de29fb750db7103b9e3f8c6ba4498f05b7 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='carnav',
packages=['carnav'],
version='0.0.1',
include_package_data=True,
install_requires=['gym', 'numpy', 'pillow', 'scipy', 'matplotlib']
) | 24.444444 | 70 | 0.663636 | 26 | 220 | 5.461538 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016304 | 0.163636 | 220 | 9 | 71 | 24.444444 | 0.755435 | 0 | 0 | 0 | 0 | 0 | 0.208145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 |
83b09550f065e34b8f34159c7272a877f99d3938 | 1,130 | py | Python | plugin/src/test/resources/inspections/PyArgumentListInspection/decorators.py | consulo/consulo-python | 586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d | [
"Apache-2.0"
] | null | null | null | plugin/src/test/resources/inspections/PyArgumentListInspection/decorators.py | consulo/consulo-python | 586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d | [
"Apache-2.0"
] | 11 | 2017-02-27T22:35:32.000Z | 2021-12-24T08:07:40.000Z | plugin/src/test/resources/inspections/PyArgumentListInspection/decorators.py | consulo/consulo-python | 586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d | [
"Apache-2.0"
] | null | null | null | def deco(param):
pass
@deco # ok
def f6():
pass
@deco(1) # ok
def f7():
pass
@deco(<warning descr="Parameter 'param' unfilled">)</warning> # fail: missing param
def f8():
pass
@deco(1, <warning descr="Unexpected argument">2</warning>) # fail: extra param
def f9():
pass
def deco2(p1, p2): pass
<warning d... | 15.915493 | 127 | 0.638938 | 170 | 1,130 | 4.2 | 0.229412 | 0.134454 | 0.205882 | 0.128852 | 0.372549 | 0.372549 | 0.168067 | 0.168067 | 0.168067 | 0.168067 | 0 | 0.065005 | 0.183186 | 1,130 | 70 | 128 | 16.142857 | 0.708559 | 0.141593 | 0 | 0.333333 | 0 | 0 | 0.194764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.352941 | 0 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
83b41e213bf0d6ba27330798edec260b6cf6bbdf | 1,354 | py | Python | src/config/profile.py | culiutudousi/kim-voice-assistant | b3e01fa8235094fbddb5041ff6d717ee00b555bc | [
"MIT"
] | 75 | 2018-02-26T10:26:59.000Z | 2022-03-24T15:15:40.000Z | src/config/profile.py | tenstone/xiaoyun-smart-speaker | 2f93db2a408efe84a3a894fb877b40da073073a7 | [
"MIT"
] | 2 | 2018-06-26T01:34:58.000Z | 2019-05-15T01:59:55.000Z | src/config/profile.py | tenstone/xiaoyun-smart-speaker | 2f93db2a408efe84a3a894fb877b40da073073a7 | [
"MIT"
] | 17 | 2018-02-26T10:27:01.000Z | 2021-11-29T06:07:03.000Z | # -*- coding: utf-8-*-
from src import config
yaml_settings = config.load_yaml_settings()
"""
保存用户信息
"""
myname = yaml_settings['profile']['myname']
city = yaml_settings['profile']['city'] # 请包含"市"、"区"字样,例如:南京市、建邺区
timezone = yaml_settings['profile']['timezone']
"""
子账号需要IOT和语音权限
"""
ak_id = yaml_settings['aliyun'][... | 28.208333 | 81 | 0.742245 | 167 | 1,354 | 5.664671 | 0.347305 | 0.241015 | 0.209302 | 0.079281 | 0.164905 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000793 | 0.068685 | 1,354 | 47 | 82 | 28.808511 | 0.749405 | 0.032496 | 0 | 0 | 0 | 0 | 0.301546 | 0.056701 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.052632 | 0 | 0.052632 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
83bcaa669f4dbb902254d517bf1bbacba98e7938 | 974 | py | Python | tool/serializers.py | borislavstoychev/RecrutmentTool | 80cc8db9b653c05dcafe3b79b6da8847111e92f9 | [
"MIT"
] | null | null | null | tool/serializers.py | borislavstoychev/RecrutmentTool | 80cc8db9b653c05dcafe3b79b6da8847111e92f9 | [
"MIT"
] | null | null | null | tool/serializers.py | borislavstoychev/RecrutmentTool | 80cc8db9b653c05dcafe3b79b6da8847111e92f9 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from tool.models import Candidate, Job, Skills, Recruiter, Interview
class SkillsSerializer(serializers.ModelSerializer):
class Meta:
model = Skills
fields = "__all__"
class CandidateSerializer(serializers.ModelSerializer):
class Meta:
model = ... | 21.173913 | 68 | 0.583162 | 80 | 974 | 6.85 | 0.4125 | 0.237226 | 0.282847 | 0.319343 | 0.364964 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004651 | 0.337782 | 974 | 45 | 69 | 21.644444 | 0.844961 | 0 | 0 | 0.352941 | 0 | 0 | 0.084189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.352941 | 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 |
83bcf28ef099ccdcdbe35837d98888ed063504f4 | 5,345 | py | Python | azure-devops/azext_devops/vstsCompressed/work_item_tracking/v4_1/models/__init__.py | vijayraavi/azure-devops-cli-extension | 88f1420c5815cb09bea15b050f4c553e0f326dad | [
"MIT"
] | null | null | null | azure-devops/azext_devops/vstsCompressed/work_item_tracking/v4_1/models/__init__.py | vijayraavi/azure-devops-cli-extension | 88f1420c5815cb09bea15b050f4c553e0f326dad | [
"MIT"
] | 37 | 2020-04-27T07:45:19.000Z | 2021-04-05T07:27:15.000Z | azure-devops/azext_devops/vstsCompressed/work_item_tracking/v4_1/models/__init__.py | vijayraavi/azure-devops-cli-extension | 88f1420c5815cb09bea15b050f4c553e0f326dad | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 35.633333 | 94 | 0.766511 | 387 | 5,345 | 10.576227 | 0.281654 | 0.168581 | 0.269729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12666 | 5,345 | 149 | 95 | 35.872483 | 0.876821 | 0.100842 | 0 | 0 | 0 | 0 | 0.289079 | 0.164027 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.492857 | 0 | 0.492857 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 3 |
83d9699fbad7d88bd00524ec40ba21d6271d31f9 | 251 | py | Python | RNAPuzzles/rnapuzzles/views/__init__.py | whinyadventure/RNA-Puzzles | bbd147e1a0748a77b5e3424a93ad57bb430b5a0e | [
"Apache-2.0"
] | null | null | null | RNAPuzzles/rnapuzzles/views/__init__.py | whinyadventure/RNA-Puzzles | bbd147e1a0748a77b5e3424a93ad57bb430b5a0e | [
"Apache-2.0"
] | 26 | 2019-10-08T11:11:25.000Z | 2022-03-12T00:52:30.000Z | RNAPuzzles/rnapuzzles/views/__init__.py | whinyadventure/RNA-Puzzles | bbd147e1a0748a77b5e3424a93ad57bb430b5a0e | [
"Apache-2.0"
] | 1 | 2020-05-11T18:51:04.000Z | 2020-05-11T18:51:04.000Z | from .news import *
from .user import *
from .group import *
from .contact import *
from .faq import *
from .resources import *
from .puzzles import *
from .home import *
from .submission import *
from .score_challenge import *
from .metrics import *
| 20.916667 | 30 | 0.737052 | 34 | 251 | 5.411765 | 0.411765 | 0.543478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175299 | 251 | 11 | 31 | 22.818182 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 0 | 3 |
83e11a4b625e8ea1acce782a3d25f1237afb6e56 | 763 | py | Python | backend/translations/migrations/0046_auto_20210308_2020.py | davidmreed/bibliothekai | 86003dbd1820991218eb619e98559dea562dcce4 | [
"BSD-2-Clause"
] | null | null | null | backend/translations/migrations/0046_auto_20210308_2020.py | davidmreed/bibliothekai | 86003dbd1820991218eb619e98559dea562dcce4 | [
"BSD-2-Clause"
] | null | null | null | backend/translations/migrations/0046_auto_20210308_2020.py | davidmreed/bibliothekai | 86003dbd1820991218eb619e98559dea562dcce4 | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 3.1.4 on 2021-03-09 03:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("translations", "0045_auto_20210306_1115"),
]
operations = [
migrations.AddField(
model_name="sourcetext",
name="samp... | 26.310345 | 63 | 0.59633 | 76 | 763 | 5.789474 | 0.565789 | 0.122727 | 0.156818 | 0.184091 | 0.540909 | 0.540909 | 0.4 | 0.4 | 0.277273 | 0 | 0 | 0.063315 | 0.296199 | 763 | 28 | 64 | 27.25 | 0.756052 | 0.058978 | 0 | 0.5 | 1 | 0 | 0.195531 | 0.136872 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.136364 | 0.045455 | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
83ee00fcbb19e838b9d5c98d618208e872a71c7e | 1,911 | py | Python | schere_stein_papier/players_3.py | SanjoSolutions/cfr | a82eadfa9d6577daa0e10316fcbeda66dc17e8bc | [
"Unlicense"
] | null | null | null | schere_stein_papier/players_3.py | SanjoSolutions/cfr | a82eadfa9d6577daa0e10316fcbeda66dc17e8bc | [
"Unlicense"
] | null | null | null | schere_stein_papier/players_3.py | SanjoSolutions/cfr | a82eadfa9d6577daa0e10316fcbeda66dc17e8bc | [
"Unlicense"
] | null | null | null | from schere_stein_papier.players_2 import Action
payoff_table = (
# ((p1 action, p2 action, p3 action), (p1 payoff, p2 payoff, p3 payoff))
((Action.Schere, Action.Schere, Action.Schere), (0, 0, 0)),
((Action.Schere, Action.Schere, Action.Stein), (-1, -1, 2)),
((Action.Schere, Action.Schere, Action.Pap... | 56.205882 | 76 | 0.600733 | 283 | 1,911 | 4.042403 | 0.056537 | 0.283217 | 0.283217 | 0.062937 | 0.837413 | 0.538462 | 0.229021 | 0.229021 | 0.061189 | 0.061189 | 0 | 0.065675 | 0.155416 | 1,911 | 33 | 77 | 57.909091 | 0.643123 | 0.03663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 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 |
83f85221036dc1a6ce2c35f56cbf8c001d87b1f8 | 55 | py | Python | tests/common.py | zhyipeng/zhtools | 8da31cc65cedddcf1df895f31c909b5030809677 | [
"MIT"
] | 1 | 2021-12-08T04:03:44.000Z | 2021-12-08T04:03:44.000Z | tests/common.py | zhyipeng/zhtools | 8da31cc65cedddcf1df895f31c909b5030809677 | [
"MIT"
] | null | null | null | tests/common.py | zhyipeng/zhtools | 8da31cc65cedddcf1df895f31c909b5030809677 | [
"MIT"
] | null | null | null | from faker import Faker
fake = Faker(locale='zh_CN')
| 11 | 28 | 0.727273 | 9 | 55 | 4.333333 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163636 | 55 | 4 | 29 | 13.75 | 0.847826 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 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 |
f7b93b71f2be509e4c03b68dc077507b19189848 | 195 | py | Python | report/urls.py | UICHCC/uicCourse | 3c34d0f765e583be05f084df1e6ab63b1ed62ed6 | [
"MIT"
] | 3 | 2018-03-13T02:00:43.000Z | 2019-03-24T02:46:56.000Z | report/urls.py | UICHCC/uicCourse | 3c34d0f765e583be05f084df1e6ab63b1ed62ed6 | [
"MIT"
] | 65 | 2018-02-08T16:01:53.000Z | 2021-11-10T14:59:37.000Z | report/urls.py | UICHCC/uicCourse | 3c34d0f765e583be05f084df1e6ab63b1ed62ed6 | [
"MIT"
] | 2 | 2018-06-02T06:06:22.000Z | 2019-04-18T03:27:16.000Z | from django.urls import path
from . import views
urlpatterns = [
path('report/', views.report, name='report'),
path('report/graph-api/', views.dependency_graph_api, name='graph-api')
]
| 21.666667 | 75 | 0.697436 | 26 | 195 | 5.153846 | 0.461538 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14359 | 195 | 8 | 76 | 24.375 | 0.802395 | 0 | 0 | 0 | 0 | 0 | 0.2 | 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 |
f7b9aed2ee9aadf6f4baf217ca046c3d4932820c | 1,851 | py | Python | Scopuli/Interfaces/WEB/Utils/Form.py | MaxOnNet/scopuli-core-web | 66a2c31b36d7fc05be36ba5d5b141644459b4aba | [
"Apache-2.0"
] | null | null | null | Scopuli/Interfaces/WEB/Utils/Form.py | MaxOnNet/scopuli-core-web | 66a2c31b36d7fc05be36ba5d5b141644459b4aba | [
"Apache-2.0"
] | null | null | null | Scopuli/Interfaces/WEB/Utils/Form.py | MaxOnNet/scopuli-core-web | 66a2c31b36d7fc05be36ba5d5b141644459b4aba | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright [2017] Tatarnikov Viktor [viktor@tatarnikov.org]
#
# 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/licen... | 31.913793 | 86 | 0.650459 | 228 | 1,851 | 5.131579 | 0.5 | 0.051282 | 0.051282 | 0.064957 | 0.095727 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0.008922 | 0.273366 | 1,851 | 57 | 87 | 32.473684 | 0.860967 | 0.336035 | 0 | 0.137931 | 0 | 0 | 0.018961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.137931 | 0.137931 | 0.586207 | 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 |
f7cd43de32fc79a837256b7493eb611158eafd7d | 942 | py | Python | listDinamic.py | thiagorocha503/data-struture | a90612991dcb81a6533c95cbfff3d034bde8173f | [
"Apache-2.0"
] | 4 | 2020-03-04T18:28:21.000Z | 2020-03-07T00:13:21.000Z | listDinamic.py | thiagorocha503/data-structure | a90612991dcb81a6533c95cbfff3d034bde8173f | [
"Apache-2.0"
] | null | null | null | listDinamic.py | thiagorocha503/data-structure | a90612991dcb81a6533c95cbfff3d034bde8173f | [
"Apache-2.0"
] | null | null | null | from node import Node
class ListDinamic:
def __init__(self):
self.__node = None
self.__length = 0
def length(self):
return self.__length
def add(self, value):
if self.__node is None:
self.__node = Node(value)
else:
self.__node.add(value)
... | 21.409091 | 47 | 0.543524 | 108 | 942 | 4.351852 | 0.259259 | 0.187234 | 0.070213 | 0.068085 | 0.297872 | 0.12766 | 0.12766 | 0.12766 | 0 | 0 | 0 | 0.008306 | 0.360934 | 942 | 43 | 48 | 21.906977 | 0.772425 | 0 | 0 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.030303 | 0.121212 | 0.515152 | 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 |
f7d7b6e9f45470b23482d417ef3c3e7e9553b9ae | 153 | py | Python | src/performance-optimization/memory-profile-and-objgraph/objgraph_test.py | mrdulin/python-codelab | 3d960a14a96b3a673b7dc2277d202069b1f8e778 | [
"MIT"
] | null | null | null | src/performance-optimization/memory-profile-and-objgraph/objgraph_test.py | mrdulin/python-codelab | 3d960a14a96b3a673b7dc2277d202069b1f8e778 | [
"MIT"
] | null | null | null | src/performance-optimization/memory-profile-and-objgraph/objgraph_test.py | mrdulin/python-codelab | 3d960a14a96b3a673b7dc2277d202069b1f8e778 | [
"MIT"
] | 3 | 2020-02-19T08:02:04.000Z | 2021-06-08T13:27:51.000Z | import objgraph
import os
x = ['a', '1', [2, 3]]
filename = os.path.dirname(__file__) + '/objgraph_test.png'
objgraph.show_refs([x], filename=filename)
| 21.857143 | 59 | 0.69281 | 23 | 153 | 4.347826 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.117647 | 153 | 6 | 60 | 25.5 | 0.718519 | 0 | 0 | 0 | 0 | 0 | 0.130719 | 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 |
f7e64eb5f7df0548590f57f73d4f7b1ebacd6efa | 766 | py | Python | dpmModule/jobs/jobbranch/magicians.py | BBTibber/maplestory_dpm_calc | 3a4710d1faaac245104d8144b337f71be3a44961 | [
"MIT"
] | null | null | null | dpmModule/jobs/jobbranch/magicians.py | BBTibber/maplestory_dpm_calc | 3a4710d1faaac245104d8144b337f71be3a44961 | [
"MIT"
] | null | null | null | dpmModule/jobs/jobbranch/magicians.py | BBTibber/maplestory_dpm_calc | 3a4710d1faaac245104d8144b337f71be3a44961 | [
"MIT"
] | null | null | null | from typing import Union
from ...kernel import core
from ...kernel.core import VSkillModifier as V
from ...kernel.core import CharacterModifier as MDF
from ...character import characterKernel as ck
from functools import partial
class OverloadManaBuilder():
def __init__(self, vEhc, num1, num2) -> None:
self... | 45.058824 | 134 | 0.727154 | 101 | 766 | 5.39604 | 0.514851 | 0.066055 | 0.051376 | 0.073395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031299 | 0.165796 | 766 | 17 | 135 | 45.058824 | 0.821596 | 0 | 0 | 0 | 0 | 0 | 0.009126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.428571 | 0.071429 | 0.785714 | 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 |
f7eed0d21c3f824e4808987d013aab85f56619de | 3,948 | py | Python | venv/lib/python3.10/site-packages/preprocessor/defines.py | isabelaranguren/sentiment-comparison-engine | bcf842e8733047ea8ed5551f9130b1078a4b4249 | [
"MIT"
] | null | null | null | venv/lib/python3.10/site-packages/preprocessor/defines.py | isabelaranguren/sentiment-comparison-engine | bcf842e8733047ea8ed5551f9130b1078a4b4249 | [
"MIT"
] | null | null | null | venv/lib/python3.10/site-packages/preprocessor/defines.py | isabelaranguren/sentiment-comparison-engine | bcf842e8733047ea8ed5551f9130b1078a4b4249 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
preprocessor.constants
~~~~~~~~~~~~
This module includes the constant variables used in Preprocessor
"""
import re
from .enum import enum
opts = {
'URL': 'urls',
'MENTION': 'mentions',
'HASHTAG': 'hashtags',
'RESERVED': 'reserved_words',
'EMOJI': 'emojis',
'SMILEY': ... | 54.833333 | 135 | 0.544073 | 756 | 3,948 | 2.806878 | 0.497355 | 0.009425 | 0.01131 | 0.013195 | 0.622055 | 0.566447 | 0.566447 | 0.566447 | 0.566447 | 0.561734 | 0 | 0.021978 | 0.170213 | 3,948 | 71 | 136 | 55.605634 | 0.625153 | 0.034195 | 0 | 0 | 0 | 0.327273 | 0.760189 | 0.582172 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.036364 | 0 | 0.272727 | 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 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7902838fffac61c0b81475eecdd93f380737dc38 | 154 | py | Python | server/src/config.py | sz-piotr/fioletowe-pomarancze | 14e748041b8022709999a39f1a70788981f5ef14 | [
"MIT"
] | null | null | null | server/src/config.py | sz-piotr/fioletowe-pomarancze | 14e748041b8022709999a39f1a70788981f5ef14 | [
"MIT"
] | null | null | null | server/src/config.py | sz-piotr/fioletowe-pomarancze | 14e748041b8022709999a39f1a70788981f5ef14 | [
"MIT"
] | null | null | null | class DefaultConfig(object):
DEBUG = False
JSONIFY_PRETTYPRINT_REGULAR = False
SQLALCHEMY_TRACK_MODIFICATIONS = False
API_PREFIX = '/api'
| 25.666667 | 42 | 0.74026 | 16 | 154 | 6.8125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194805 | 154 | 5 | 43 | 30.8 | 0.879032 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
79069c6a94506c5d4f3560444aefaf40cd08111d | 428 | py | Python | monero_glue/messages/LiskTransactionType.py | ph4r05/monero-agent | 0bac0e6f33142b2bb885565bfd1ef8ac04559280 | [
"MIT"
] | 20 | 2018-04-05T22:06:10.000Z | 2021-09-18T10:43:44.000Z | monero_glue/messages/LiskTransactionType.py | ph4r05/monero-agent | 0bac0e6f33142b2bb885565bfd1ef8ac04559280 | [
"MIT"
] | null | null | null | monero_glue/messages/LiskTransactionType.py | ph4r05/monero-agent | 0bac0e6f33142b2bb885565bfd1ef8ac04559280 | [
"MIT"
] | 5 | 2018-08-06T15:06:04.000Z | 2021-07-16T01:58:43.000Z | # Automatically generated by pb2py
# fmt: off
if False:
from typing_extensions import Literal
Transfer = 0 # type: Literal[0]
RegisterSecondPassphrase = 1 # type: Literal[1]
RegisterDelegate = 2 # type: Literal[2]
CastVotes = 3 # type: Literal[3]
RegisterMultisignatureAccount = 4 # type: Literal[4]
CreateDapp... | 30.571429 | 53 | 0.721963 | 53 | 428 | 5.811321 | 0.566038 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048159 | 0.175234 | 428 | 13 | 54 | 32.923077 | 0.824363 | 0.413551 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
793b0ae29fd1afc6322ebf6a3ef23f5962d55932 | 147 | py | Python | BeakJoon/python/solved/Math/1297.py | heeboy007/PS-MyAnswers | e5e02972ab64279d96eb43e85941a46b82315fbd | [
"MIT"
] | null | null | null | BeakJoon/python/solved/Math/1297.py | heeboy007/PS-MyAnswers | e5e02972ab64279d96eb43e85941a46b82315fbd | [
"MIT"
] | null | null | null | BeakJoon/python/solved/Math/1297.py | heeboy007/PS-MyAnswers | e5e02972ab64279d96eb43e85941a46b82315fbd | [
"MIT"
] | null | null | null | import math
d, w, h = [int(x) for x in input().split(' ')]
x = math.sqrt(d ** 2 / (h ** 2 + w ** 2))
print(math.floor(x * w), math.floor(x * h)) | 21 | 46 | 0.510204 | 30 | 147 | 2.5 | 0.5 | 0.24 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.22449 | 147 | 7 | 47 | 21 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
793e403567be8f8bd6ff5ba2c75abbe6e47cad8d | 484 | py | Python | models/member.py | ankitsejwal/altonadojo | 2a78de6defe291e21b2e9a418f1990390edd3922 | [
"MIT"
] | null | null | null | models/member.py | ankitsejwal/altonadojo | 2a78de6defe291e21b2e9a418f1990390edd3922 | [
"MIT"
] | null | null | null | models/member.py | ankitsejwal/altonadojo | 2a78de6defe291e21b2e9a418f1990390edd3922 | [
"MIT"
] | null | null | null | from models import db
class Member(db.Model):
__tablename__ = "members"
id = db.Column(db.Integer, primary_key=True)
first_name = db.Column(db.String, nullable=False)
last_name = db.Column(db.String, nullable=False)
member_type = db.Column(db.String, nullable=False)
gender = db.Column(db.Strin... | 34.571429 | 54 | 0.706612 | 70 | 484 | 4.771429 | 0.371429 | 0.191617 | 0.239521 | 0.287425 | 0.535928 | 0.535928 | 0.197605 | 0 | 0 | 0 | 0 | 0 | 0.163223 | 484 | 13 | 55 | 37.230769 | 0.824691 | 0 | 0 | 0 | 0 | 0 | 0.014463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
793e51d70184ed4329261206cf805a6e0de6a388 | 6,580 | py | Python | webservices/common/models/committees.py | adborden/openFEC | 53a0a2b1a56292c5ca8e7a3185832baaed4a63d9 | [
"CC0-1.0"
] | null | null | null | webservices/common/models/committees.py | adborden/openFEC | 53a0a2b1a56292c5ca8e7a3185832baaed4a63d9 | [
"CC0-1.0"
] | null | null | null | webservices/common/models/committees.py | adborden/openFEC | 53a0a2b1a56292c5ca8e7a3185832baaed4a63d9 | [
"CC0-1.0"
] | 1 | 2020-03-04T00:21:16.000Z | 2020-03-04T00:21:16.000Z | from sqlalchemy.dialects.postgresql import ARRAY, TSVECTOR
from webservices import docs
from .base import db, BaseModel
class CommitteeSearch(BaseModel):
__tablename__ = 'ofec_committee_fulltext_mv'
id = db.Column(db.String)
name = db.Column(db.String, doc=docs.COMMITTEE_NAME)
fulltxt = db.Column(T... | 59.818182 | 143 | 0.735714 | 1,051 | 6,580 | 4.469077 | 0.11608 | 0.122631 | 0.144773 | 0.200979 | 0.775389 | 0.732808 | 0.644241 | 0.526719 | 0.501384 | 0.463487 | 0 | 0.025348 | 0.148632 | 6,580 | 109 | 144 | 60.366972 | 0.813102 | 0.005319 | 0 | 0.183908 | 0 | 0 | 0.278355 | 0.011464 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f700864adcc91b720f4dd4a166b39644acc7d0b2 | 76 | py | Python | random number generation.py | Ratheshprabakar/Python-Programs | fca9d4f0b5f5f5693b3d7e25c6d890f4973dc19e | [
"MIT"
] | 2 | 2019-07-10T06:32:05.000Z | 2019-11-13T07:52:53.000Z | random number generation.py | Ratheshprabakar/Python-Programs | fca9d4f0b5f5f5693b3d7e25c6d890f4973dc19e | [
"MIT"
] | null | null | null | random number generation.py | Ratheshprabakar/Python-Programs | fca9d4f0b5f5f5693b3d7e25c6d890f4973dc19e | [
"MIT"
] | 1 | 2019-10-12T06:56:13.000Z | 2019-10-12T06:56:13.000Z | import random
x=random.random()
print("The Random number is",round(x,3))
| 19 | 41 | 0.710526 | 13 | 76 | 4.153846 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.131579 | 76 | 3 | 42 | 25.333333 | 0.80303 | 0 | 0 | 0 | 0 | 0 | 0.273973 | 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 |
f703d2c19fb0503f4ba11caa93e47284e1be03ce | 899 | py | Python | src/awkward/_v2/operations/describe/is_valid.py | scikit-hep/awkward-1.0 | a440328f8097d22c2ba053fd117fed543829afc0 | [
"BSD-3-Clause"
] | 519 | 2019-10-17T12:36:22.000Z | 2022-03-26T23:28:19.000Z | src/awkward/_v2/operations/describe/is_valid.py | scikit-hep/awkward-1.0 | a440328f8097d22c2ba053fd117fed543829afc0 | [
"BSD-3-Clause"
] | 924 | 2019-11-03T21:05:01.000Z | 2022-03-31T22:44:30.000Z | src/awkward/_v2/operations/describe/is_valid.py | scikit-hep/awkward-1.0 | a440328f8097d22c2ba053fd117fed543829afc0 | [
"BSD-3-Clause"
] | 56 | 2019-12-17T15:49:22.000Z | 2022-03-09T20:34:06.000Z | # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
from __future__ import absolute_import
import awkward as ak
np = ak.nplike.NumpyMetadata.instance()
def is_valid(array, exception=False):
pass
# """
# Args:
# array (#ak.Array, #ak.Record, #ak.layout.Conte... | 29.966667 | 122 | 0.679644 | 130 | 899 | 4.638462 | 0.6 | 0.039801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004274 | 0.219132 | 899 | 29 | 123 | 31 | 0.854701 | 0.785317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
f70725f5a9bfaedd20365a6820a9ecc9799dfff4 | 315 | py | Python | app/health/tests.py | fuzz88/photo_stock | bdba73e5dfaca1831467df51eabf7e442ce68da9 | [
"BSD-2-Clause"
] | null | null | null | app/health/tests.py | fuzz88/photo_stock | bdba73e5dfaca1831467df51eabf7e442ce68da9 | [
"BSD-2-Clause"
] | null | null | null | app/health/tests.py | fuzz88/photo_stock | bdba73e5dfaca1831467df51eabf7e442ce68da9 | [
"BSD-2-Clause"
] | null | null | null | import json
from django.test import TestCase
from django.test import Client
class TestHealthCheck(TestCase):
def setUp(self):
self.c = Client()
def test_is_service_online_route(self):
resp = self.c.get("/health/")
self.assertEquals(json.loads(resp.content), {"status": "online"})
| 24.230769 | 73 | 0.685714 | 41 | 315 | 5.170732 | 0.585366 | 0.09434 | 0.132075 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 315 | 12 | 74 | 26.25 | 0.831373 | 0 | 0 | 0 | 0 | 0 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f70b92b9aa2e2b3ff6177472d1bfaf0b814109aa | 182 | py | Python | src/python/gudhi/hera/__init__.py | m0baxter/gudhi-devel | 6e14ef1f31e09f3875316440303450ff870d9881 | [
"MIT"
] | 146 | 2019-03-15T14:10:31.000Z | 2022-03-23T21:14:52.000Z | src/python/gudhi/hera/__init__.py | m0baxter/gudhi-devel | 6e14ef1f31e09f3875316440303450ff870d9881 | [
"MIT"
] | 398 | 2019-03-07T14:55:22.000Z | 2022-03-31T14:50:40.000Z | src/python/gudhi/hera/__init__.py | m0baxter/gudhi-devel | 6e14ef1f31e09f3875316440303450ff870d9881 | [
"MIT"
] | 51 | 2019-03-08T15:58:48.000Z | 2022-03-14T10:23:23.000Z | from .wasserstein import wasserstein_distance
from .bottleneck import bottleneck_distance
__author__ = "Marc Glisse"
__copyright__ = "Copyright (C) 2020 Inria"
__license__ = "MIT"
| 22.75 | 45 | 0.802198 | 20 | 182 | 6.6 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025157 | 0.126374 | 182 | 7 | 46 | 26 | 0.805031 | 0 | 0 | 0 | 0 | 0 | 0.208791 | 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 |
f72225b988b94880019a35eb225acab6e4b68b8a | 604 | py | Python | {{ cookiecutter.package_name }}/src/{{ cookiecutter.module_name }}/runner/decorators.py | toxinu/cookiecutter-django | 687ae5fe93f46aa57ef8d8f7315e60ca66391382 | [
"BSD-3-Clause"
] | 3 | 2016-12-17T01:05:35.000Z | 2016-12-23T10:03:34.000Z | {{ cookiecutter.package_name }}/src/{{ cookiecutter.module_name }}/runner/decorators.py | toxinu/cookiecutter-django | 687ae5fe93f46aa57ef8d8f7315e60ca66391382 | [
"BSD-3-Clause"
] | null | null | null | {{ cookiecutter.package_name }}/src/{{ cookiecutter.module_name }}/runner/decorators.py | toxinu/cookiecutter-django | 687ae5fe93f46aa57ef8d8f7315e60ca66391382 | [
"BSD-3-Clause"
] | null | null | null | import os
def configuration(f):
import click
from functools import update_wrapper
@click.pass_context
def inner(ctx, *args, **kwargs):
# HACK: We can't call `configure()` from within tests
# since we don't load config files from disk, so we
# need a way to bypass this initiali... | 33.555556 | 93 | 0.650662 | 78 | 604 | 4.935897 | 0.653846 | 0.067532 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002208 | 0.25 | 604 | 17 | 94 | 35.529412 | 0.847682 | 0.243377 | 0 | 0 | 0 | 0 | 0.125828 | 0.112583 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.090909 | 0.363636 | null | null | 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 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
f734999283b7c5d515772f9dd319e7240cd387ae | 22,417 | py | Python | noisemaker/cli.py | BumpierZulu9930/py-noisemaker | d67f03c9f42642dd7eb5b9fc0f79572dc0d3b1a9 | [
"Apache-2.0"
] | null | null | null | noisemaker/cli.py | BumpierZulu9930/py-noisemaker | d67f03c9f42642dd7eb5b9fc0f79572dc0d3b1a9 | [
"Apache-2.0"
] | null | null | null | noisemaker/cli.py | BumpierZulu9930/py-noisemaker | d67f03c9f42642dd7eb5b9fc0f79572dc0d3b1a9 | [
"Apache-2.0"
] | null | null | null | """Common CLI boilerplate for Noisemaker"""
import click
from noisemaker.constants import DistanceFunction, InterpolationType, PointDistribution, ValueDistribution, ValueMask, VoronoiDiagramType, WormBehavior
import noisemaker.masks as masks
# os.environ["TF_CPP_MIN_LOG_LEVEL"] = "1"
# os.environ["CUDA_VISIBLE_DEVI... | 30.170929 | 155 | 0.698354 | 2,931 | 22,417 | 5.199591 | 0.130672 | 0.110236 | 0.141732 | 0.16378 | 0.574869 | 0.504265 | 0.374081 | 0.256037 | 0.175984 | 0.116404 | 0 | 0.010381 | 0.140563 | 22,417 | 742 | 156 | 30.21159 | 0.78065 | 0.007896 | 0 | 0.026882 | 0 | 0.013441 | 0.297155 | 0.011209 | 0 | 0 | 0 | 0 | 0 | 1 | 0.30914 | false | 0 | 0.008065 | 0.002688 | 0.626344 | 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 |
f73d6cfb87fbb21ee85c9cb6b53f48624e6c46e7 | 809 | py | Python | StartPython.py | rghvat/-TitlePython-Programming-A-Concise-Introduction | 70019b068b44fa961d4a398b5836d2ebba00ea12 | [
"BSD-3-Clause"
] | null | null | null | StartPython.py | rghvat/-TitlePython-Programming-A-Concise-Introduction | 70019b068b44fa961d4a398b5836d2ebba00ea12 | [
"BSD-3-Clause"
] | null | null | null | StartPython.py | rghvat/-TitlePython-Programming-A-Concise-Introduction | 70019b068b44fa961d4a398b5836d2ebba00ea12 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 16 08:10:35 2021
@author: RAGHAV ATREYA
"""
# -StartPython.py *- coding: utf-8 -*-
"""
Spyder Editor
#%% starts a new cell. Use second green triangle to run just the cell that
your mouse has last clicked in (or Ctrl-Enter on a PC or Command-Return on a
Macintosh or Menu>... | 19.731707 | 77 | 0.646477 | 128 | 809 | 4.085938 | 0.65625 | 0.034417 | 0.038241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022117 | 0.217553 | 809 | 41 | 78 | 19.731707 | 0.804107 | 0.1644 | 0 | 0 | 0 | 0 | 0.213675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0.083333 | 0 | 0 | 0.333333 | 0.25 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f748b6299ebf950b66545fbfd0f12ef81e4bb378 | 88,853 | py | Python | template_container_macaque/labels/slice_12.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_macaque/labels/slice_12.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_macaque/labels/slice_12.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | coordinates_7F0030 = ((137, 134),
(137, 136), (138, 133), (138, 136), (139, 132), (139, 134), (139, 136), (140, 132), (140, 134), (140, 135), (140, 137), (141, 131), (141, 133), (141, 134), (141, 135), (141, 137), (142, 131), (142, 133), (142, 134), (142, 135), (142, 136), (142, 138), (143, 130), (143, 132), (143, 13... | 765.974138 | 865 | 0.499364 | 14,754 | 88,853 | 3.00671 | 0.011997 | 0.000406 | 0.000406 | 0.000541 | 0.001758 | 0.001082 | 0.001082 | 0.001082 | 0 | 0 | 0 | 0.598898 | 0.168638 | 88,853 | 115 | 866 | 772.634783 | 0.001638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f74bdd977c44a1ea574d1032415a11e74ee00b16 | 1,124 | py | Python | forms.py | matheuszmz/RegressionAPI | 715cf4874f95aa7d1be284c8a539dfa603823ee5 | [
"MIT"
] | null | null | null | forms.py | matheuszmz/RegressionAPI | 715cf4874f95aa7d1be284c8a539dfa603823ee5 | [
"MIT"
] | null | null | null | forms.py | matheuszmz/RegressionAPI | 715cf4874f95aa7d1be284c8a539dfa603823ee5 | [
"MIT"
] | null | null | null | from wtforms import DecimalField, Form, RadioField
from wtforms.validators import NumberRange
class NCForm(Form):
c8_0 = DecimalField('C8:0', validators=[NumberRange()])
c10_0 = DecimalField('C10:0', validators=[NumberRange()])
c12_0 = DecimalField('C12:0', validators=[NumberRange()])
c14_0 = DecimalF... | 53.52381 | 133 | 0.689502 | 126 | 1,124 | 6.039683 | 0.238095 | 0.386334 | 0.202365 | 0.065703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077472 | 0.127224 | 1,124 | 20 | 134 | 56.2 | 0.698267 | 0 | 0 | 0 | 0 | 0 | 0.112989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f78f1c2f424f2a86909cab00bc5825888b868bfd | 1,506 | py | Python | tests/commands/test__vi_zero.py | trishume/VintageousPlus | 1dd62435138234979fe5bb413e1731119b017daf | [
"MIT"
] | 6 | 2017-04-01T05:30:08.000Z | 2017-04-05T14:17:40.000Z | tests/commands/test__vi_zero.py | trishume/VintageousPlus | 1dd62435138234979fe5bb413e1731119b017daf | [
"MIT"
] | 1 | 2017-04-04T06:47:13.000Z | 2017-04-04T14:26:32.000Z | tests/commands/test__vi_zero.py | trishume/VintageousPlus | 1dd62435138234979fe5bb413e1731119b017daf | [
"MIT"
] | null | null | null | from collections import namedtuple
from VintageousPlus.vi.utils import modes
from VintageousPlus.tests import set_text
from VintageousPlus.tests import add_sel
from VintageousPlus.tests import get_sel
from VintageousPlus.tests import first_sel
from VintageousPlus.tests import second_sel
from VintageousPlus.tests impo... | 37.65 | 113 | 0.614874 | 209 | 1,506 | 4.287081 | 0.320574 | 0.017857 | 0.154018 | 0.194196 | 0.261161 | 0.118304 | 0.08817 | 0.053571 | 0.053571 | 0 | 0 | 0.028912 | 0.219124 | 1,506 | 39 | 114 | 38.615385 | 0.732993 | 0.057769 | 0 | 0 | 0 | 0 | 0.084746 | 0 | 0 | 0 | 0 | 0.025641 | 0.038462 | 1 | 0.038462 | false | 0 | 0.307692 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f78f1cfac2afbafcca1915ea7d44dfc33e155a7f | 111 | py | Python | src/list_papers.py | hellenruthes/paperAbstract | e4e8714c8f12643dca049cd2ed1422a14269b2d0 | [
"MIT"
] | null | null | null | src/list_papers.py | hellenruthes/paperAbstract | e4e8714c8f12643dca049cd2ed1422a14269b2d0 | [
"MIT"
] | null | null | null | src/list_papers.py | hellenruthes/paperAbstract | e4e8714c8f12643dca049cd2ed1422a14269b2d0 | [
"MIT"
] | null | null | null | import os
def list_files(dir):
arr = os.listdir(dir)
return arr
#if __name__ == "__main__":
| 11.1 | 27 | 0.594595 | 15 | 111 | 3.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.288288 | 111 | 10 | 28 | 11.1 | 0.721519 | 0.234234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f7994ab225de00eb87700fd62a5ac9b65a44f668 | 941 | py | Python | .pycharm_helpers/python_stubs/-583653458/_codecs_jp.py | pyy1988/management-system | 3dee81b4abd54b1c869a509bdd30e09c8b91d05f | [
"Apache-2.0"
] | null | null | null | .pycharm_helpers/python_stubs/-583653458/_codecs_jp.py | pyy1988/management-system | 3dee81b4abd54b1c869a509bdd30e09c8b91d05f | [
"Apache-2.0"
] | null | null | null | .pycharm_helpers/python_stubs/-583653458/_codecs_jp.py | pyy1988/management-system | 3dee81b4abd54b1c869a509bdd30e09c8b91d05f | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
# module _codecs_jp
# from /home/pyy2/.virtualenvs/pyy3.5/lib/python3.5/lib-dynload/_codecs_jp.cpython-35m-x86_64-linux-gnu.so
# by generator 1.145
# no doc
# no imports
# functions
def getcodec(*args, **kwargs): # real signature unknown
pass
# no classes
# variables with complex values
__load... | 22.404762 | 106 | 0.676939 | 136 | 941 | 4.264706 | 0.426471 | 0.17931 | 0.291379 | 0.336207 | 0.475862 | 0.351724 | 0.351724 | 0 | 0 | 0 | 0 | 0.077024 | 0.185972 | 941 | 41 | 107 | 22.95122 | 0.680157 | 0.554729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0 | 0 | 0.066667 | 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 |
e3911ba64845279efe480e1868b63674ed575624 | 132 | py | Python | spirit/user/auth/__init__.py | StepanBakshayev/Spirit | 28c053983d8323801d022c5314af7fdff4569228 | [
"MIT"
] | 3 | 2019-08-18T19:08:48.000Z | 2019-12-04T18:14:29.000Z | spirit/user/auth/__init__.py | StepanBakshayev/Spirit | 28c053983d8323801d022c5314af7fdff4569228 | [
"MIT"
] | 16 | 2015-08-10T18:28:18.000Z | 2022-03-11T23:12:48.000Z | spirit/user/auth/__init__.py | StepanBakshayev/Spirit | 28c053983d8323801d022c5314af7fdff4569228 | [
"MIT"
] | 6 | 2018-06-25T02:17:53.000Z | 2020-12-08T01:09:32.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
default_app_config = 'spirit.user.auth.apps.SpiritUserAuthConfig'
| 22 | 65 | 0.772727 | 16 | 132 | 5.9375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.106061 | 132 | 5 | 66 | 26.4 | 0.79661 | 0.159091 | 0 | 0 | 0 | 0 | 0.385321 | 0.385321 | 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 |
e3bd4e0ddc6288b7bc2f51e7b9df50a69a2f0cc0 | 99 | py | Python | Python3/Mundo1/Exercises/ex001.py | Emersonjr20/Curso-Python3 | 361568de9fc8b04d2cc6452e14017940b935ea9f | [
"MIT"
] | null | null | null | Python3/Mundo1/Exercises/ex001.py | Emersonjr20/Curso-Python3 | 361568de9fc8b04d2cc6452e14017940b935ea9f | [
"MIT"
] | null | null | null | Python3/Mundo1/Exercises/ex001.py | Emersonjr20/Curso-Python3 | 361568de9fc8b04d2cc6452e14017940b935ea9f | [
"MIT"
] | null | null | null | #Crie um programa que escreva 'Olá, mundo! / Hello Wolrd!' na tela.
msg='Hello, world!'
print(msg)
| 24.75 | 67 | 0.69697 | 16 | 99 | 4.3125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 99 | 3 | 68 | 33 | 0.821429 | 0.666667 | 0 | 0 | 0 | 0 | 0.40625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
e3c24ae00c20c70e97a9da9ab4eb5c3daa04c76e | 4,834 | py | Python | shortcut/navigate/core.py | toptea/agr_shortcut | dd7ed4700ccd29f1f731f5d6948a9ca8d212e6f3 | [
"MIT"
] | null | null | null | shortcut/navigate/core.py | toptea/agr_shortcut | dd7ed4700ccd29f1f731f5d6948a9ca8d212e6f3 | [
"MIT"
] | 1 | 2018-06-19T12:40:35.000Z | 2018-06-19T12:40:35.000Z | shortcut/navigate/core.py | toptea/agr_shortcut | dd7ed4700ccd29f1f731f5d6948a9ca8d212e6f3 | [
"MIT"
] | null | null | null | """
This modules contains full-fledged shortcut objects that can be
instantiated and then can be asked to provide information such the
file/folder location. They also have can even be used to open file/folder
directly.
See Also
--------
shortcut.base.GlobMatch
shortcut.base.Match
"""
import os
from .base import GlobM... | 28.104651 | 73 | 0.628465 | 583 | 4,834 | 5.102916 | 0.204117 | 0.036975 | 0.02958 | 0.056471 | 0.689076 | 0.683025 | 0.679664 | 0.679664 | 0.632605 | 0.601008 | 0 | 0.017094 | 0.24969 | 4,834 | 171 | 74 | 28.269006 | 0.803143 | 0.503724 | 0 | 0.533333 | 0 | 0 | 0.082008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.066667 | 0 | 0.6 | 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 |
e3c575d296a1000aa10ea586ccc25f4ea3682810 | 1,940 | py | Python | quotes/hobby.py | sumaneko/discordpy-startup | 362156452d025837c0a36f64b9e47e605b3a3cc8 | [
"MIT"
] | null | null | null | quotes/hobby.py | sumaneko/discordpy-startup | 362156452d025837c0a36f64b9e47e605b3a3cc8 | [
"MIT"
] | null | null | null | quotes/hobby.py | sumaneko/discordpy-startup | 362156452d025837c0a36f64b9e47e605b3a3cc8 | [
"MIT"
] | null | null | null | from mylib.mymodule import get_quotes
#趣味
def get_hobby(m):
t = ""
name = m.author.name if m.author.nick is None else m.author.nick
if "ネコミミ" in m.content or "猫耳" in m.content or "ネコ耳" in m.content or "獣耳" in m.content or "ケモミミ" in m.content or "ケモノミミ" in m.content:
quotes = [
[100, "私にも猫耳生えてますよ!ほらほら、触りますか?"],... | 27.323944 | 161 | 0.629381 | 295 | 1,940 | 4.125424 | 0.311864 | 0.216927 | 0.262942 | 0.236647 | 0.241578 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041774 | 0.197938 | 1,940 | 70 | 162 | 27.714286 | 0.736504 | 0.001031 | 0 | 0.271186 | 0 | 0 | 0.243676 | 0.117708 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.016949 | 0 | 0.186441 | 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 |
e3cc9457e3e5bdac6fbc58063507fdda9b8b252c | 694 | py | Python | course/models.py | Wetrain/mmu-course-api | b304a5a26459c8fecdba4c5b10bfdf93a4b2ac54 | [
"MIT"
] | null | null | null | course/models.py | Wetrain/mmu-course-api | b304a5a26459c8fecdba4c5b10bfdf93a4b2ac54 | [
"MIT"
] | null | null | null | course/models.py | Wetrain/mmu-course-api | b304a5a26459c8fecdba4c5b10bfdf93a4b2ac54 | [
"MIT"
] | null | null | null | from django.db import models
class Tutor(models.Model):
name = models.CharField(max_length=200, null=False)
room = models.CharField(max_length=100, blank=True)
school = models.CharField(max_length=200, blank=True)
email = models.EmailField(blank=True, unique=True)
def __str__(self):
retur... | 30.173913 | 68 | 0.708934 | 89 | 694 | 5.393258 | 0.41573 | 0.125 | 0.15 | 0.2 | 0.397917 | 0.341667 | 0.341667 | 0.341667 | 0.2125 | 0.2125 | 0 | 0.02418 | 0.165706 | 694 | 22 | 69 | 31.545455 | 0.804836 | 0 | 0 | 0.125 | 0 | 0 | 0.008646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e3deec01f6b6d75eadf56edeaf3b7e5e713abbd6 | 2,548 | py | Python | detectron2/modeling/backbone/backbone.py | SNSerHello/detectron2 | 3cc9908ba3301785ec946ae7e37d7091fa1d5045 | [
"Apache-2.0"
] | null | null | null | detectron2/modeling/backbone/backbone.py | SNSerHello/detectron2 | 3cc9908ba3301785ec946ae7e37d7091fa1d5045 | [
"Apache-2.0"
] | null | null | null | detectron2/modeling/backbone/backbone.py | SNSerHello/detectron2 | 3cc9908ba3301785ec946ae7e37d7091fa1d5045 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
from abc import ABCMeta, abstractmethod
from typing import Dict
import torch.nn as nn
from detectron2.layers import ShapeSpec
__all__ = ["Backbone"]
class Backbone(nn.Module, metaclass=ABCMeta):
"""
Abstract base class for network backbones.
"""
de... | 33.973333 | 100 | 0.632261 | 314 | 2,548 | 5.028662 | 0.512739 | 0.050665 | 0.017733 | 0.022799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003335 | 0.293956 | 2,548 | 74 | 101 | 34.432432 | 0.874375 | 0.587912 | 0 | 0.083333 | 0 | 0 | 0.010444 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.208333 | false | 0.041667 | 0.166667 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e3e4e7b3c8857253a56bd7b766e2b7aa87a03dc8 | 120 | py | Python | mobject/updater.py | animatemath/divergence_theorem | c9bc742918b29a97ea33ae8d3251db846a04b384 | [
"MIT"
] | 2 | 2020-12-26T05:21:23.000Z | 2022-02-22T23:00:28.000Z | mobject/updater.py | animatemath/divergence_theorem | c9bc742918b29a97ea33ae8d3251db846a04b384 | [
"MIT"
] | 4 | 2021-03-19T09:45:18.000Z | 2022-01-13T02:00:35.000Z | mobject/updater.py | animatemath/divergence_theorem | c9bc742918b29a97ea33ae8d3251db846a04b384 | [
"MIT"
] | 1 | 2021-03-12T22:15:17.000Z | 2021-03-12T22:15:17.000Z | def updating_mobject_from_func(func):
mob = func()
mob.add_updater(lambda m: mob.become(func()))
return mob
| 24 | 49 | 0.691667 | 18 | 120 | 4.388889 | 0.666667 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183333 | 120 | 4 | 50 | 30 | 0.806122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e3ee4081d91bb4609b5c5b9d8f9d291949982358 | 311 | py | Python | parsing/serializers.py | rgscherf/gainful2 | 6742ff8294261b5d658dfbba374a78e9e4caec8f | [
"MIT"
] | 5 | 2016-11-02T21:50:48.000Z | 2018-12-15T16:43:00.000Z | parsing/serializers.py | rgscherf/gainful2 | 6742ff8294261b5d658dfbba374a78e9e4caec8f | [
"MIT"
] | 1 | 2016-11-24T22:04:50.000Z | 2016-11-24T22:04:50.000Z | parsing/serializers.py | rgscherf/gainful2 | 6742ff8294261b5d658dfbba374a78e9e4caec8f | [
"MIT"
] | null | null | null | from parsing.models import Job
from rest_framework import serializers
class JobSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Job
fields = ("organization", "title", "division", "url_detail", "date_closing", "salary_waged", "salary_amount", "region", "date_posted")
| 38.875 | 142 | 0.733119 | 33 | 311 | 6.727273 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151125 | 311 | 7 | 143 | 44.428571 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0.286174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e3f2c2d2382d784e80cc08a99de91d520a8f4dd5 | 5,090 | py | Python | magic_squares (04apr2016)/magicsq.py | jamtot/DailyChallenge | 2cb073837620ad57f064f5befca77d4994abf091 | [
"MIT"
] | null | null | null | magic_squares (04apr2016)/magicsq.py | jamtot/DailyChallenge | 2cb073837620ad57f064f5befca77d4994abf091 | [
"MIT"
] | null | null | null | magic_squares (04apr2016)/magicsq.py | jamtot/DailyChallenge | 2cb073837620ad57f064f5befca77d4994abf091 | [
"MIT"
] | null | null | null | input0 = [8, 1, 6, 3, 5, 7, 4, 9, 2]# => true
input1 = [2, 7, 6, 9, 5, 1, 4, 3, 8]# => true
input2 = [3, 5, 7, 8, 1, 6, 4, 9, 2]# => false
input3 = [8, 1, 6, 7, 5, 3, 4, 9, 2]# => false
bonusinput1= [1,15,14,4,12,6,7,9,8,10,11,5,13,3,2,1]# => false
bonusinput2= [8,11,14,1,13,2,7,12,3,16,9,6,10,5,4,15]# => true
bonusinp... | 35.103448 | 72 | 0.608448 | 1,010 | 5,090 | 3.058416 | 0.269307 | 0.014568 | 0.028488 | 0.033668 | 0.308514 | 0.258012 | 0.243444 | 0.222726 | 0.222726 | 0.222726 | 0 | 0.298415 | 0.20668 | 5,090 | 144 | 73 | 35.347222 | 0.466568 | 0.174656 | 0 | 0.25 | 0 | 0 | 0.004328 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | null | null | 0 | 0 | null | null | 0.009259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5428fbac7b92d92eadec780146df2b535982d003 | 9,206 | py | Python | pycatia/hybrid_shape_interfaces/hybrid_shape_rolling_offset.py | evereux/catia_python | 08948585899b12587b0415ce3c9191a408b34897 | [
"MIT"
] | 90 | 2019-02-21T10:05:28.000Z | 2022-03-19T01:53:41.000Z | pycatia/hybrid_shape_interfaces/hybrid_shape_rolling_offset.py | Luanee/pycatia | ea5eef8178f73de12404561c00baf7a7ca30da59 | [
"MIT"
] | 99 | 2019-05-21T08:29:12.000Z | 2022-03-25T09:55:15.000Z | pycatia/hybrid_shape_interfaces/hybrid_shape_rolling_offset.py | Luanee/pycatia | ea5eef8178f73de12404561c00baf7a7ca30da59 | [
"MIT"
] | 26 | 2019-04-04T06:31:36.000Z | 2022-03-30T07:24:47.000Z | #! usr/bin/python3.6
"""
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-07-06 14:02:20.222384
.. warning::
The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only.
They are there as a guide as to how the visual basic / catscript function... | 33.59854 | 111 | 0.45264 | 813 | 9,206 | 4.99754 | 0.233702 | 0.02412 | 0.048732 | 0.064977 | 0.511445 | 0.461974 | 0.4349 | 0.413488 | 0.413488 | 0.413488 | 0 | 0.041145 | 0.479904 | 9,206 | 273 | 112 | 33.721612 | 0.807435 | 0.658049 | 0 | 0.071429 | 1 | 0 | 0.027534 | 0.027534 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.107143 | 0.035714 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
542a99b3567528abf3e59ece3d4fd022d7517b8c | 327 | py | Python | codewars/6kyu/Counting Duplicates/main_test.py | ictcubeMENA/Training_one | dff6bee96ba42babe4888e5cf9a9448a6fd93fc3 | [
"MIT"
] | null | null | null | codewars/6kyu/Counting Duplicates/main_test.py | ictcubeMENA/Training_one | dff6bee96ba42babe4888e5cf9a9448a6fd93fc3 | [
"MIT"
] | 2 | 2019-01-22T10:53:42.000Z | 2019-01-31T08:02:48.000Z | codewars/6kyu/Counting Duplicates/main_test.py | ictcubeMENA/Training_one | dff6bee96ba42babe4888e5cf9a9448a6fd93fc3 | [
"MIT"
] | 13 | 2019-01-22T10:37:42.000Z | 2019-01-25T13:30:43.000Z | import main
import unittest
class TestDuplicate(unittest.TestCase):
def testing(self):
self.assertEqual(main.duplicate_count("abcde"), 0)
self.assertEqual(main.duplicate_count("abcdea"), 1)
self.assertEqual(main.duplicate_count("indivisibility"), 1)
if __name__ == '__main__':
unittest.... | 27.25 | 67 | 0.70948 | 37 | 327 | 5.972973 | 0.513514 | 0.20362 | 0.257919 | 0.380091 | 0.447964 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010949 | 0.16208 | 327 | 11 | 68 | 29.727273 | 0.79562 | 0 | 0 | 0 | 0 | 0 | 0.100917 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 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 |
542bf8013ec35e2042095a6db2120f16f22996d7 | 93 | py | Python | djangowkb/apps.py | karimbahgat/django-wkb | 51ed30abf4b6580435ad6254307912afdddfcae2 | [
"MIT"
] | 1 | 2020-10-30T10:28:13.000Z | 2020-10-30T10:28:13.000Z | djangowkb/apps.py | karimbahgat/django-wkb | 51ed30abf4b6580435ad6254307912afdddfcae2 | [
"MIT"
] | null | null | null | djangowkb/apps.py | karimbahgat/django-wkb | 51ed30abf4b6580435ad6254307912afdddfcae2 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DjangowkbConfig(AppConfig):
name = 'djangowkb'
| 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 |
581469cbde6cafed54d6ca4d6aa3b91e9898c45e | 44,426 | py | Python | tests/test_models.py | Rodolphe2005/pytorch-lightning | fbc127279687d77d1d6e5aae62c4d762f3fb59d1 | [
"Apache-2.0"
] | null | null | null | tests/test_models.py | Rodolphe2005/pytorch-lightning | fbc127279687d77d1d6e5aae62c4d762f3fb59d1 | [
"Apache-2.0"
] | null | null | null | tests/test_models.py | Rodolphe2005/pytorch-lightning | fbc127279687d77d1d6e5aae62c4d762f3fb59d1 | [
"Apache-2.0"
] | null | null | null | import os
import shutil
import warnings
from argparse import Namespace
import pytest
import numpy as np
import torch
# sys.path += [os.path.abspath('..'), os.path.abspath('../..')]
from pytorch_lightning import Trainer
from pytorch_lightning.testing import (
LightningTestModel,
LightningTestModelBase,
Lig... | 26.778782 | 100 | 0.654211 | 5,741 | 44,426 | 4.809963 | 0.07908 | 0.025096 | 0.022126 | 0.013037 | 0.784421 | 0.754617 | 0.715688 | 0.691569 | 0.670638 | 0.6601 | 0 | 0.016402 | 0.245194 | 44,426 | 1,658 | 101 | 26.794934 | 0.807086 | 0.139873 | 0 | 0.681026 | 0 | 0 | 0.059895 | 0.008491 | 0 | 0 | 0 | 0 | 0.082051 | 1 | 0.055385 | false | 0.005128 | 0.018462 | 0 | 0.104615 | 0.005128 | 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 |
5825478dcce6c83ab83126a3e38a8c556446fc0b | 408 | py | Python | statlab/errors.py | SLprojects/statlab | 64de965594070d7bd150cfb5ae7f42f7cb44183b | [
"MIT"
] | 7 | 2020-01-16T01:52:15.000Z | 2021-08-08T15:28:29.000Z | statlab/errors.py | SLprojects/statlab | 64de965594070d7bd150cfb5ae7f42f7cb44183b | [
"MIT"
] | 3 | 2021-09-13T20:40:05.000Z | 2021-09-13T20:53:48.000Z | statlab/errors.py | SLprojects/statlab | 64de965594070d7bd150cfb5ae7f42f7cb44183b | [
"MIT"
] | 1 | 2020-01-16T01:56:44.000Z | 2020-01-16T01:56:44.000Z | """Typical error types are presented here.
The file is under development.
"""
class StatLabErrors(Exception):
pass
class LengthCriteria(StatLabErrors):
pass
class ShapeError(StatLabErrors):
pass
class IncorrectIndex(StatLabErrors):
pass
class IncorrectDimension(StatLabErrors):
pass
class... | 12.75 | 42 | 0.745098 | 39 | 408 | 7.794872 | 0.538462 | 0.177632 | 0.361842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183824 | 408 | 31 | 43 | 13.16129 | 0.912913 | 0.171569 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5825c26f66fbfdbdd537d3a1fd9e58685b632846 | 60 | py | Python | vendors/cloudflare/config.py | Globaldots/s3-trigger-purge-edgecast | 5cc9356858030d4d5b74b0070bcf492ae1972c2d | [
"MIT"
] | 2 | 2018-04-08T18:52:41.000Z | 2018-12-05T15:18:51.000Z | vendors/cloudflare/config.py | Globaldots/s3-trigger-purge-cdn | 5cc9356858030d4d5b74b0070bcf492ae1972c2d | [
"MIT"
] | null | null | null | vendors/cloudflare/config.py | Globaldots/s3-trigger-purge-cdn | 5cc9356858030d4d5b74b0070bcf492ae1972c2d | [
"MIT"
] | null | null | null | email = 'shalom@acme.net'
apikey = 'aaaaaaaaaaaaaaaaaaaaa'
| 15 | 32 | 0.75 | 6 | 60 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 60 | 3 | 33 | 20 | 0.849057 | 0 | 0 | 0 | 0 | 0 | 0.610169 | 0.355932 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
58291638ed8d00d3c5a9bb8f62c9875ee84234e0 | 2,786 | py | Python | pcdet/utils/pointcloud_utils.py | ElodieShan/OpenPCDet | d23959d70c73b29f3f14462628fa8520a64f2eae | [
"Apache-2.0"
] | null | null | null | pcdet/utils/pointcloud_utils.py | ElodieShan/OpenPCDet | d23959d70c73b29f3f14462628fa8520a64f2eae | [
"Apache-2.0"
] | null | null | null | pcdet/utils/pointcloud_utils.py | ElodieShan/OpenPCDet | d23959d70c73b29f3f14462628fa8520a64f2eae | [
"Apache-2.0"
] | null | null | null | import numpy as np
import ros_numpy
""" Function: get_distance_2d
@breif 单点根据x、y计算2D距离
"""
def get_distance_2d(x, y):
return np.sqrt(np.sum([x**2,y**2]))
def get_distances_2d(points):
return np.sqrt(np.sum([points[:,0]**2,points[:,1]**2],axis=0))
""" Function: get_distance_3d
@breif 单点根据x、y、z计算3D距离
"""
def g... | 28.141414 | 191 | 0.72649 | 416 | 2,786 | 4.653846 | 0.213942 | 0.030992 | 0.024793 | 0.028926 | 0.293905 | 0.195248 | 0.172521 | 0.132231 | 0.061983 | 0.040289 | 0 | 0.031288 | 0.116655 | 2,786 | 98 | 192 | 28.428571 | 0.755384 | 0.013999 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.361111 | false | 0 | 0.055556 | 0.277778 | 0.777778 | 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 |
584a23ecb0e65cd796c4abff97dcf6de9379cb51 | 1,243 | py | Python | get_git/bitbucket_profile.py | alanahanson/get-git | a3b078a64ce8f4bb7103fcd46a0eee80cd35f87c | [
"MIT"
] | null | null | null | get_git/bitbucket_profile.py | alanahanson/get-git | a3b078a64ce8f4bb7103fcd46a0eee80cd35f87c | [
"MIT"
] | null | null | null | get_git/bitbucket_profile.py | alanahanson/get-git | a3b078a64ce8f4bb7103fcd46a0eee80cd35f87c | [
"MIT"
] | null | null | null | from get_git.bitbucket_repo import BitbucketRepo
from get_git.bitbucket_client import BitbucketClient
class BitbucketProfile:
def __init__(self, username):
self.username = username
self.data = self._get_data()
self.repos = self._get_repos()
def _get_data(self):
return Bitbucke... | 23.903846 | 58 | 0.660499 | 172 | 1,243 | 4.575581 | 0.267442 | 0.177891 | 0.038119 | 0.063532 | 0.191868 | 0.1169 | 0.094028 | 0 | 0 | 0 | 0 | 0 | 0.254224 | 1,243 | 51 | 59 | 24.372549 | 0.848975 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.057143 | 0.4 | 0.914286 | 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 |
5867d6bba23f735d9d41613f5706b5d7df6f367e | 791 | py | Python | apps/api/serializers.py | sparcs-kaist/sparcssso | 9aeedc02652dadacb44c6a4ba06901f6d2372223 | [
"MIT"
] | 18 | 2015-07-06T06:20:14.000Z | 2022-03-20T23:45:40.000Z | apps/api/serializers.py | sparcs-kaist/sparcssso | 9aeedc02652dadacb44c6a4ba06901f6d2372223 | [
"MIT"
] | 170 | 2015-07-07T08:42:03.000Z | 2022-03-24T17:31:17.000Z | apps/api/serializers.py | sparcs-kaist/sparcssso | 9aeedc02652dadacb44c6a4ba06901f6d2372223 | [
"MIT"
] | 11 | 2015-07-07T20:42:19.000Z | 2022-01-12T22:39:59.000Z | from rest_framework import fields, serializers
from apps.core.models import Notice
class NoticeFilterSerializer(serializers.Serializer):
offset = fields.IntegerField(required=False, default=0, min_value=0)
limit = fields.IntegerField(required=False, default=3, min_value=0, max_value=10)
date_after = fiel... | 34.391304 | 85 | 0.761062 | 90 | 791 | 6.588889 | 0.477778 | 0.134907 | 0.18887 | 0.215852 | 0.22597 | 0.161889 | 0.161889 | 0.161889 | 0.161889 | 0 | 0 | 0.01173 | 0.1378 | 791 | 22 | 86 | 35.954545 | 0.857771 | 0 | 0 | 0 | 0 | 0 | 0.034134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.866667 | 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 |
5874e8b3d7e10e37dc0e4a48d87bb87bd2e1ad2c | 599 | py | Python | tests/test_laplace_box.py | elsandal/pyclesperanto_prototype | 7bda828813b86b44b63d73d5e8f466d9769cded1 | [
"BSD-3-Clause"
] | 64 | 2020-03-18T12:11:22.000Z | 2022-03-31T08:19:18.000Z | tests/test_laplace_box.py | elsandal/pyclesperanto_prototype | 7bda828813b86b44b63d73d5e8f466d9769cded1 | [
"BSD-3-Clause"
] | 148 | 2020-05-14T06:14:11.000Z | 2022-03-26T15:02:31.000Z | tests/test_laplace_box.py | elsandal/pyclesperanto_prototype | 7bda828813b86b44b63d73d5e8f466d9769cded1 | [
"BSD-3-Clause"
] | 16 | 2020-05-31T00:53:44.000Z | 2022-03-23T13:20:57.000Z | import pyclesperanto_prototype as cle
import numpy as np
def test_laplace_box():
test1 = cle.push(np.asarray([
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 1, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0]
]))
reference = cle.push(np.asarray([
[0, 0, 0, 0, 0],
... | 18.71875 | 37 | 0.445743 | 98 | 599 | 2.673469 | 0.27551 | 0.259542 | 0.320611 | 0.366412 | 0.301527 | 0.301527 | 0.301527 | 0.236641 | 0.236641 | 0.236641 | 0 | 0.136598 | 0.352254 | 599 | 31 | 38 | 19.322581 | 0.53866 | 0 | 0 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.130435 | 0.043478 | 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 |
587eb7a830a256eda115317a616f99ca914367e3 | 262 | py | Python | examples/includes/main.py | Sentient07/kivy | e5022e1cc84b1bcda6e4619d618509dc4ea7da04 | [
"MIT"
] | 2 | 2021-05-16T09:46:14.000Z | 2021-11-17T11:23:15.000Z | examples/includes/main.py | Sentient07/kivy | e5022e1cc84b1bcda6e4619d618509dc4ea7da04 | [
"MIT"
] | 1 | 2016-11-11T13:45:42.000Z | 2016-11-11T13:45:42.000Z | examples/includes/main.py | Sentient07/kivy | e5022e1cc84b1bcda6e4619d618509dc4ea7da04 | [
"MIT"
] | 2 | 2020-03-28T10:18:00.000Z | 2021-02-13T06:34:14.000Z | from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.button import Button
class SpecialButton(Button):
pass
class CustomLayout(BoxLayout):
pass
class TestApp(App):
pass
if __name__ == '__main__':
TestApp().run()
| 13.789474 | 40 | 0.721374 | 34 | 262 | 5.323529 | 0.470588 | 0.132597 | 0.121547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187023 | 262 | 18 | 41 | 14.555556 | 0.849765 | 0 | 0 | 0.272727 | 0 | 0 | 0.030534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.272727 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
58928032a61740eaa1389d980bc1aeff750e836f | 214 | py | Python | src/tribud/__main__.py | albanb/Tribud | 80904fffa548b7c1f504572d44b17ad7011cfceb | [
"MIT"
] | null | null | null | src/tribud/__main__.py | albanb/Tribud | 80904fffa548b7c1f504572d44b17ad7011cfceb | [
"MIT"
] | 9 | 2020-07-03T21:32:40.000Z | 2021-06-09T20:01:33.000Z | src/tribud/__main__.py | albanb/Tribud | 80904fffa548b7c1f504572d44b17ad7011cfceb | [
"MIT"
] | null | null | null | """
The entry point for the trivial back-up tool.
"""
import sys
if __package__ == "":
from tribud import main # pylint: disable=no-name-in-module
else:
from tribud.tribud import main
sys.exit(main())
| 15.285714 | 64 | 0.682243 | 32 | 214 | 4.4375 | 0.71875 | 0.140845 | 0.225352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196262 | 214 | 13 | 65 | 16.461538 | 0.825581 | 0.373832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
5892ffafc4adc42b942c16d1567a14535bde327e | 87 | py | Python | stdlib_tests/test_urllib.py | jacebrowning/voc | 7bc84e8a870674d300ad5083748cf6b826e7fb68 | [
"BSD-3-Clause"
] | 850 | 2015-08-17T16:45:22.000Z | 2019-03-24T07:50:15.000Z | stdlib_tests/test_urllib.py | jacebrowning/voc | 7bc84e8a870674d300ad5083748cf6b826e7fb68 | [
"BSD-3-Clause"
] | 506 | 2015-09-26T18:20:00.000Z | 2019-03-19T18:16:18.000Z | stdlib_tests/test_urllib.py | jacebrowning/voc | 7bc84e8a870674d300ad5083748cf6b826e7fb68 | [
"BSD-3-Clause"
] | 670 | 2015-09-12T21:57:44.000Z | 2019-03-19T13:15:33.000Z | from urllib.parse import urlparse
o = urlparse('http://127.0.0.1:8000')
print(o.port)
| 17.4 | 37 | 0.712644 | 16 | 87 | 3.875 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 0.103448 | 87 | 4 | 38 | 21.75 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 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 |
5895105bd3255cab8186eb0d6838c1b9cb846f8a | 5,561 | py | Python | hearthstone/simulator/core/randomizer.py | JDBumgardner/stone_ground_hearth_battles | 9fe095651fab60e8ddbf563f0b9b7f3e723d5f4f | [
"Apache-2.0"
] | 20 | 2020-08-01T03:14:57.000Z | 2021-12-19T11:47:50.000Z | hearthstone/simulator/core/randomizer.py | JDBumgardner/stone_ground_hearth_battles | 9fe095651fab60e8ddbf563f0b9b7f3e723d5f4f | [
"Apache-2.0"
] | 48 | 2020-08-01T03:06:43.000Z | 2022-02-27T10:03:47.000Z | hearthstone/simulator/core/randomizer.py | JDBumgardner/stone_ground_hearth_battles | 9fe095651fab60e8ddbf563f0b9b7f3e723d5f4f | [
"Apache-2.0"
] | 3 | 2020-06-28T01:23:37.000Z | 2021-11-11T23:09:36.000Z | import os
import random
import sys
import typing
from collections import deque
from typing import List, Tuple, Type, Optional
from hearthstone.simulator.core.monster_types import MONSTER_TYPES
if typing.TYPE_CHECKING:
from hearthstone.simulator.core.cards import MonsterCard
from hearthstone.simulator.core.her... | 39.161972 | 113 | 0.69376 | 645 | 5,561 | 5.815504 | 0.130233 | 0.091176 | 0.129565 | 0.158358 | 0.709944 | 0.679019 | 0.679019 | 0.612903 | 0.544921 | 0.356705 | 0 | 0.000655 | 0.176407 | 5,561 | 141 | 114 | 39.439716 | 0.818341 | 0 | 0 | 0.612245 | 0 | 0 | 0.107175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.397959 | false | 0 | 0.122449 | 0.183673 | 0.734694 | 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 |
58a82352fdb4b6599f6b8572999c3fd3d842ddf7 | 7,425 | py | Python | tests/test_numbers.py | sghai/fauxfactory | 1820df96cce5bc5fe46332458b1b06a02a0cfbb4 | [
"Apache-2.0"
] | null | null | null | tests/test_numbers.py | sghai/fauxfactory | 1820df96cce5bc5fe46332458b1b06a02a0cfbb4 | [
"Apache-2.0"
] | null | null | null | tests/test_numbers.py | sghai/fauxfactory | 1820df96cce5bc5fe46332458b1b06a02a0cfbb4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Tests for all number generators."""
from fauxfactory import (
gen_integer,
gen_negative_integer,
gen_positive_integer,
)
import sys
if sys.version_info[0:2] == (2, 6):
import unittest2 as unittest
else:
import unittest
class TestNumbers(unittest.TestCase):
"""Test... | 30.809129 | 78 | 0.590572 | 876 | 7,425 | 4.861872 | 0.126712 | 0.072787 | 0.039915 | 0.059873 | 0.804649 | 0.768255 | 0.711435 | 0.675511 | 0.585114 | 0.516084 | 0 | 0.011315 | 0.333468 | 7,425 | 240 | 79 | 30.9375 | 0.849262 | 0.367542 | 0 | 0.386139 | 0 | 0 | 0.07995 | 0 | 0 | 0 | 0 | 0 | 0.19802 | 1 | 0.168317 | false | 0 | 0.039604 | 0 | 0.217822 | 0 | 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 |
543dc5b7e19632dc0f5f8c4515425b7db91197ea | 11,616 | py | Python | views/generate_download.py | pranjal-mittal0/life-calendar | 72a651259561007fccea948879894f415ca8ccbe | [
"MIT"
] | 50 | 2020-09-29T17:11:10.000Z | 2021-11-15T11:46:10.000Z | views/generate_download.py | pranjal-mittal0/life-calendar | 72a651259561007fccea948879894f415ca8ccbe | [
"MIT"
] | 1 | 2021-04-12T15:50:17.000Z | 2021-08-20T15:13:21.000Z | views/generate_download.py | pranjal-mittal0/life-calendar | 72a651259561007fccea948879894f415ca8ccbe | [
"MIT"
] | 2 | 2020-10-05T21:10:24.000Z | 2020-10-06T09:29:43.000Z | import cairo
import math
import base64
import os
from datetime import datetime
from flask import request
from flask_classful import FlaskView
# TODO: add x and y labels for posters
class EmptyMap:
def __init__(self, age_expectancy, form="weeks"):
self.expectancy = age_expectancy
if form == "week... | 35.962848 | 125 | 0.508695 | 1,419 | 11,616 | 4.016913 | 0.110641 | 0.088421 | 0.042105 | 0.058947 | 0.73193 | 0.725439 | 0.71807 | 0.69386 | 0.685439 | 0.660526 | 0 | 0.072269 | 0.37104 | 11,616 | 322 | 126 | 36.074534 | 0.707911 | 0.027806 | 0 | 0.502075 | 0 | 0 | 0.015423 | 0 | 0 | 0 | 0 | 0.003106 | 0 | 1 | 0.020747 | false | 0 | 0.029046 | 0 | 0.074689 | 0 | 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 |
54548ca56b8fa3a18cb1cdf264058e4689e6baa6 | 1,178 | py | Python | ydkgen/printer/python/init_file_printer.py | ygorelik/pydk | 42ac7f2b33006c3ea99d07eb9f405346d35c6614 | [
"ECL-2.0",
"Apache-2.0"
] | 125 | 2016-03-15T17:04:13.000Z | 2022-03-22T02:46:17.000Z | ydkgen/printer/python/init_file_printer.py | ygorelik/pydk | 42ac7f2b33006c3ea99d07eb9f405346d35c6614 | [
"ECL-2.0",
"Apache-2.0"
] | 818 | 2016-03-17T17:06:00.000Z | 2022-03-28T03:56:17.000Z | ydkgen/printer/python/init_file_printer.py | ygorelik/pydk | 42ac7f2b33006c3ea99d07eb9f405346d35c6614 | [
"ECL-2.0",
"Apache-2.0"
] | 93 | 2016-03-15T19:18:55.000Z | 2022-02-24T13:55:07.000Z | """Print init files for the generated Python api."""
# ----------------------------------------------------------------
# Copyright 2016 Cisco Systems
#
# 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 Li... | 33.657143 | 74 | 0.633277 | 146 | 1,178 | 5.006849 | 0.609589 | 0.082079 | 0.035568 | 0.043776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008299 | 0.181664 | 1,178 | 34 | 75 | 34.647059 | 0.75 | 0.749576 | 0 | 0 | 1 | 0 | 0.255061 | 0.165992 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5455b474432100f7c5e9377c04623ee832935cb6 | 1,752 | py | Python | release/stubs.min/Autodesk/Revit/DB/__init___parts/ExportPaperFormat.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/__init___parts/ExportPaperFormat.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/__init___parts/ExportPaperFormat.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class ExportPaperFormat(Enum, IComparable, IFormattable, IConvertible):
"""
Paper formats supported by DWF export
enum ExportPaperFormat,values: ANSI_A (1),ANSI_B (2),ANSI_C (3),ANSI_D (4),ANSI_E (5),ARCH_A (15),ARCH_B (16),ARCH_C (17),ARCH_D (18),ARCH_E (19),ARCH_E1 (20),ARCH_E2 (21),ARCH_E3 (22),Defau... | 26.149254 | 302 | 0.571347 | 251 | 1,752 | 3.434263 | 0.334661 | 0.092807 | 0.097448 | 0.104408 | 0.149652 | 0.149652 | 0.149652 | 0.13109 | 0.13109 | 0.13109 | 0 | 0.048544 | 0.294521 | 1,752 | 66 | 303 | 26.545455 | 0.648867 | 0.381849 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.222222 | 0 | 0 | 0.777778 | 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 |
545e58b1fb571d8cfa1a9fcefb625e7bf60009a0 | 393 | py | Python | user/models.py | PillThinker/Excel | f1edab3aad4a4c9f08fe23b823b5b3630434688a | [
"MIT"
] | null | null | null | user/models.py | PillThinker/Excel | f1edab3aad4a4c9f08fe23b823b5b3630434688a | [
"MIT"
] | null | null | null | user/models.py | PillThinker/Excel | f1edab3aad4a4c9f08fe23b823b5b3630434688a | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
import datetime
# Create your models here.
class User_files(models.Model):
File_title=models.CharField(max_length=100)
User_file=models.TextField(blank=True)
File_user=models.ForeignKey(User,on_delete=models.DO_NOTHING)
updated=models.DateTime... | 28.071429 | 62 | 0.829517 | 59 | 393 | 5.355932 | 0.59322 | 0.063291 | 0.14557 | 0.164557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008264 | 0.076336 | 393 | 13 | 63 | 30.230769 | 0.862259 | 0.061069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5464007226a03fd43203ec152765587df8d668c6 | 199 | py | Python | Code_Python/Exercicio-11/duas-lista-intercalada.py | gabrielf7/code-exercises | b3a8661fadc133395f3c6fb7e926317acf7fa539 | [
"MIT"
] | 1 | 2020-07-19T16:35:51.000Z | 2020-07-19T16:35:51.000Z | Code_Python/Exercicio-11/duas-lista-intercalada.py | gabrielf7/codigos-em-C-uteis | b155d2771291a14e8b112a0f1aa32c58254e406e | [
"MIT"
] | null | null | null | Code_Python/Exercicio-11/duas-lista-intercalada.py | gabrielf7/codigos-em-C-uteis | b155d2771291a14e8b112a0f1aa32c58254e406e | [
"MIT"
] | null | null | null | lista1 = ['10', '20', '30', '40', '50']
lista2 = ['60', '70', '80', '90','100']
lista3 = []
for x in range(0, 5):
lista3.append(lista1[x])
lista3.append(lista2[x])
num = lista3
print(num) | 24.875 | 39 | 0.537688 | 31 | 199 | 3.451613 | 0.709677 | 0.224299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192547 | 0.190955 | 199 | 8 | 40 | 24.875 | 0.47205 | 0 | 0 | 0 | 0 | 0 | 0.105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5470f710aefdbe3ba26a105c6868652bdbddab37 | 528 | py | Python | solution/lc1410.py | sth4nothing/pyleetcode | 70ac2dc55b0cbcd243b38103a96dd796538a3c05 | [
"MIT"
] | null | null | null | solution/lc1410.py | sth4nothing/pyleetcode | 70ac2dc55b0cbcd243b38103a96dd796538a3c05 | [
"MIT"
] | null | null | null | solution/lc1410.py | sth4nothing/pyleetcode | 70ac2dc55b0cbcd243b38103a96dd796538a3c05 | [
"MIT"
] | null | null | null | import re
class Solution:
def entityParser(self, text: str) -> str:
def repl(m):
s = m.groups()[0]
if s == 'quot':
return '"'
if s == 'apos':
return '\''
if s == 'amp':
return '&'
if s == 'gt':
... | 22.956522 | 45 | 0.329545 | 51 | 528 | 3.411765 | 0.509804 | 0.103448 | 0.258621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003906 | 0.515152 | 528 | 22 | 46 | 24 | 0.675781 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 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 | 1 | 0 | 0 | 3 |
547babb0d6f79693bd707a2e44be396b6a31638a | 661 | py | Python | nc/palette/terminal16/ubuntu.py | timedata-org/nc | e0227c704832eb8ab434a2148ee99170ec08f0c4 | [
"MIT"
] | 2 | 2019-05-26T15:09:34.000Z | 2020-04-20T15:31:03.000Z | nc/palette/terminal16/ubuntu.py | timedata-org/nc | e0227c704832eb8ab434a2148ee99170ec08f0c4 | [
"MIT"
] | 7 | 2020-01-19T19:03:53.000Z | 2020-05-04T19:36:48.000Z | nc/palette/terminal16/ubuntu.py | rec/nc | e0227c704832eb8ab434a2148ee99170ec08f0c4 | [
"MIT"
] | null | null | null | # This file was automatically generated on 2020-04-30T19:04:34.713882
# by script /code/nc/extract_nc/ansi_escape_code.py
# from ANSI escape codes
COLORS = {
'Black': (1, 1, 1),
'Red': (222, 56, 43),
'Green': (57, 181, 74),
'Yellow': (255, 199, 6),
'Blue': (0, 111, 184),
'Magenta': (118, 38, 11... | 28.73913 | 69 | 0.543116 | 99 | 661 | 3.59596 | 0.515152 | 0.044944 | 0.05618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258449 | 0.239032 | 661 | 22 | 70 | 30.045455 | 0.449304 | 0.2118 | 0 | 0 | 1 | 0 | 0.259188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
54881abf66ac099accd70e9898f11e0e5f12c595 | 190 | py | Python | fft2/__init__.py | themutt/food-for-thoughts-bot-2 | c04973c4144918c110a0f18dd0d36c5e74a56a7a | [
"MIT"
] | null | null | null | fft2/__init__.py | themutt/food-for-thoughts-bot-2 | c04973c4144918c110a0f18dd0d36c5e74a56a7a | [
"MIT"
] | null | null | null | fft2/__init__.py | themutt/food-for-thoughts-bot-2 | c04973c4144918c110a0f18dd0d36c5e74a56a7a | [
"MIT"
] | null | null | null | """cookiecutter_pypackage_minimal - An improved version of the food for thoughts bot """
__version__ = '0.1.0'
__author__ = 'Gianluca Rigoletti <gianluca.rigoletti@gmail.com>'
__all__ = []
| 31.666667 | 88 | 0.752632 | 24 | 190 | 5.375 | 0.833333 | 0.263566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018072 | 0.126316 | 190 | 5 | 89 | 38 | 0.759036 | 0.426316 | 0 | 0 | 0 | 0 | 0.529412 | 0.294118 | 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 |
54c24aeb38696a4d08166f7c939439bb00a98614 | 1,303 | py | Python | elasticsearch.monitoring/IndexStatsDeltaMapper.py | axel-springer-kugawana/elasticsearch-monitoring | 7c6b215a43e2658fb1b6c3bd37f9f813f86709ac | [
"Apache-2.0"
] | null | null | null | elasticsearch.monitoring/IndexStatsDeltaMapper.py | axel-springer-kugawana/elasticsearch-monitoring | 7c6b215a43e2658fb1b6c3bd37f9f813f86709ac | [
"Apache-2.0"
] | null | null | null | elasticsearch.monitoring/IndexStatsDeltaMapper.py | axel-springer-kugawana/elasticsearch-monitoring | 7c6b215a43e2658fb1b6c3bd37f9f813f86709ac | [
"Apache-2.0"
] | 1 | 2020-03-10T07:56:07.000Z | 2020-03-10T07:56:07.000Z | class IndexStatsDeltaMapper:
latest_stats = {}
prev_stats = {}
def __init__(self, latest_stats, prev_stats):
self.prev_stats = prev_stats
self.latest_stats = latest_stats
def getAvgQueryTime(self):
queryTime = self.getQueryTime()
queryTotal = self.getQuery... | 30.302326 | 72 | 0.641596 | 146 | 1,303 | 5.527397 | 0.315068 | 0.068154 | 0.086741 | 0.154895 | 0.247831 | 0.2057 | 0.111524 | 0 | 0 | 0 | 0 | 0.002099 | 0.268611 | 1,303 | 42 | 73 | 31.02381 | 0.844701 | 0 | 0 | 0 | 0 | 0 | 0.110599 | 0.09447 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28125 | false | 0 | 0 | 0.15625 | 0.65625 | 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 |
49ad82259fa3dd8947a9e2c61173c6735b0da864 | 173 | py | Python | 03 - Strings/Find a string.py | LynX-gh/HackerRank-python | 52705f423dd564463c67de1b8a2ded49bbef565e | [
"MIT"
] | null | null | null | 03 - Strings/Find a string.py | LynX-gh/HackerRank-python | 52705f423dd564463c67de1b8a2ded49bbef565e | [
"MIT"
] | null | null | null | 03 - Strings/Find a string.py | LynX-gh/HackerRank-python | 52705f423dd564463c67de1b8a2ded49bbef565e | [
"MIT"
] | null | null | null | def count_substring(string, sub_string):
count = 0
for i in range(len(string)):
if string[i:].startswith(sub_string):
count += 1
return count | 28.833333 | 45 | 0.612717 | 24 | 173 | 4.291667 | 0.625 | 0.174757 | 0.271845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016 | 0.277457 | 173 | 6 | 46 | 28.833333 | 0.808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
49b316f73789117c29985a45ffee1cf7cde2a663 | 208 | py | Python | master/Debugging Source Code/Debugging Source Code/Chapter_08/fifo/testfifo.py | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 4 | 2018-09-07T15:35:24.000Z | 2019-03-27T09:48:12.000Z | master/Debugging Source Code/Debugging Source Code/Chapter_08/fifo/testfifo.py | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 371 | 2020-03-04T21:51:56.000Z | 2022-03-31T20:59:11.000Z | master/Debugging Source Code/Debugging Source Code/Chapter_08/fifo/testfifo.py | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 3 | 2019-06-18T19:57:17.000Z | 2020-11-06T03:55:08.000Z | # testfifo.py
import fifo
def main():
fifo.fifoinit(100)
fifo.fifoput('x')
fifo.fifoput('c')
c = fifo.fifoget()
print c
c = fifo.fifoget()
print c
if __name__ == '__main__': main()
| 13.866667 | 34 | 0.596154 | 29 | 208 | 4 | 0.517241 | 0.189655 | 0.103448 | 0.224138 | 0.318966 | 0.318966 | 0 | 0 | 0 | 0 | 0 | 0.019108 | 0.245192 | 208 | 14 | 35 | 14.857143 | 0.719745 | 0.052885 | 0 | 0.4 | 0 | 0 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.2 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
49cf1e577df6077bf8b2790844a9723f2292f248 | 3,161 | py | Python | poc-tool/meta.py | CaledoniaProject/gcp-dhcp-takeover-code-exec | 81a2bd5e077ce05858f665bf5a5dd64b14c9f365 | [
"Linux-OpenIB"
] | 514 | 2021-06-27T10:04:40.000Z | 2022-01-24T11:03:33.000Z | poc-tool/meta.py | CaledoniaProject/gcp-dhcp-takeover-code-exec | 81a2bd5e077ce05858f665bf5a5dd64b14c9f365 | [
"Linux-OpenIB"
] | 6 | 2021-06-30T00:47:37.000Z | 2021-08-30T17:14:31.000Z | poc-tool/meta.py | CaledoniaProject/gcp-dhcp-takeover-code-exec | 81a2bd5e077ce05858f665bf5a5dd64b14c9f365 | [
"Linux-OpenIB"
] | 29 | 2021-06-28T21:40:01.000Z | 2021-11-17T04:17:12.000Z | #!/usr/bin/env python3
import sys
import http.server
import socketserver
from urllib.parse import urlparse
from urllib.parse import parse_qs
class MyHttpRequestHandler(http.server.SimpleHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header("Metadata-Flavor", "Google")
... | 101.967742 | 2,326 | 0.720974 | 387 | 3,161 | 5.824289 | 0.516796 | 0.042591 | 0.09583 | 0.111801 | 0.300799 | 0.28039 | 0.28039 | 0.28039 | 0.28039 | 0.28039 | 0 | 0.078798 | 0.052515 | 3,161 | 30 | 2,327 | 105.366667 | 0.67379 | 0.011705 | 0 | 0 | 0 | 0.045455 | 0.769699 | 0.039718 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.227273 | 0 | 0.318182 | 0.045455 | 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 |
49d73cbf3060ac471ea58e4b8a71495511770788 | 405 | py | Python | qcloudsdkdsa/OnlineDsaHostRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkdsa/OnlineDsaHostRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkdsa/OnlineDsaHostRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from qcloudsdkcore.request import Request
class OnlineDsaHostRequest(Request):
def __init__(self):
super(OnlineDsaHostRequest, self).__init__(
'dsa', 'qcloudcliV1', 'OnlineDsaHost', 'dsa.api.qcloud.com')
def get_hostId(self):
return self.get_params().get('... | 25.3125 | 72 | 0.659259 | 45 | 405 | 5.666667 | 0.577778 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.2 | 405 | 15 | 73 | 27 | 0.780864 | 0.051852 | 0 | 0 | 0 | 0 | 0.149215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
49e6e95fe3e41b85193c464ffdd1b1d35765ed32 | 2,423 | py | Python | adjective.py | harsh07021999/fuzzython | 178e25f10a22ec04f81a7f1c800d79c8da0c7950 | [
"BSD-3-Clause"
] | 16 | 2015-11-04T12:02:47.000Z | 2021-12-11T08:33:45.000Z | adjective.py | harsh07021999/fuzzython | 178e25f10a22ec04f81a7f1c800d79c8da0c7950 | [
"BSD-3-Clause"
] | 2 | 2018-02-19T18:52:44.000Z | 2021-01-05T23:16:03.000Z | adjective.py | harsh07021999/fuzzython | 178e25f10a22ec04f81a7f1c800d79c8da0c7950 | [
"BSD-3-Clause"
] | 19 | 2015-04-18T07:48:58.000Z | 2021-07-22T16:57:17.000Z | from fsets.fuzzy_set import FuzzySet
__author__ = ''
class Adjective(object):
"""
Describes a variable
:_fuzzy_set: fuzzy set from module fsets
:name: adjective's name
:_strength: computed firing level
:set_: modified fuzzy set corresponding to strength value
"""
__slot... | 25.776596 | 94 | 0.583987 | 271 | 2,423 | 4.95203 | 0.261993 | 0.119225 | 0.071535 | 0.035768 | 0.138599 | 0.087928 | 0 | 0 | 0 | 0 | 0 | 0.003083 | 0.330582 | 2,423 | 93 | 95 | 26.053763 | 0.824291 | 0.289311 | 0 | 0.205128 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25641 | false | 0 | 0.025641 | 0.128205 | 0.564103 | 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 |
49f1105ae7ee6879dbbbcf1d9b76d052ee2e2536 | 274 | py | Python | weldx/util/__init__.py | CagtayFabry/weldx | 463f949d4fa54b5edafa2268cb862716865a62c2 | [
"BSD-3-Clause"
] | 13 | 2020-02-20T07:45:02.000Z | 2021-12-10T13:15:47.000Z | weldx/util/__init__.py | BAMWelDX/weldx | ada4e67fa00cdb80a0b954057f4e685b846c9fe5 | [
"BSD-3-Clause"
] | 675 | 2020-02-20T07:47:00.000Z | 2022-03-31T15:17:19.000Z | weldx/util/__init__.py | CagtayFabry/weldx | 463f949d4fa54b5edafa2268cb862716865a62c2 | [
"BSD-3-Clause"
] | 5 | 2020-09-02T07:19:17.000Z | 2021-12-05T08:57:50.000Z | """Contains utility functions and classes."""
from .util import *
from .util import __all__ as _util_all
from .xarray import *
from .xarray import __all__ as _util_xarray
__all__ = _util_all + _util_xarray
del _util_all, _util_xarray
_patch_mod_all("weldx.util") # noqa
| 22.833333 | 45 | 0.773723 | 41 | 274 | 4.512195 | 0.390244 | 0.113514 | 0.151351 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145985 | 274 | 11 | 46 | 24.909091 | 0.790598 | 0.164234 | 0 | 0 | 0 | 0 | 0.044843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 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 |
b70bd2d096daf0dd3ab142d29188d88980feb818 | 2,729 | py | Python | tests/test_entity_concat.py | kverdecia/chatbotentities | a576b4411b38c59efa1a7a49dfac86e83d50299a | [
"BSD-3-Clause"
] | null | null | null | tests/test_entity_concat.py | kverdecia/chatbotentities | a576b4411b38c59efa1a7a49dfac86e83d50299a | [
"BSD-3-Clause"
] | null | null | null | tests/test_entity_concat.py | kverdecia/chatbotentities | a576b4411b38c59efa1a7a49dfac86e83d50299a | [
"BSD-3-Clause"
] | null | null | null | import unittest
from chatbotentities.extractor import EntityConcat
from dummy import DummyEntity
class EntityConcatTest(unittest.TestCase):
def test_constructor(self):
dummy1 = DummyEntity(None)
dummy2 = DummyEntity(None)
dummy3 = DummyEntity(None)
self.assertRaises(TypeError, lamb... | 36.386667 | 88 | 0.622572 | 285 | 2,729 | 5.85614 | 0.126316 | 0.147993 | 0.194727 | 0.143799 | 0.826243 | 0.723787 | 0.594368 | 0.544038 | 0.497304 | 0.42121 | 0 | 0.044819 | 0.239648 | 2,729 | 74 | 89 | 36.878378 | 0.759518 | 0 | 0 | 0.460317 | 0 | 0 | 0.02052 | 0 | 0 | 0 | 0 | 0 | 0.269841 | 1 | 0.126984 | false | 0 | 0.047619 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 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 | 0 | 0 | 0 | 3 |
b71c9fd71edcff8c4566f97939edc87ea79c6a6f | 501 | py | Python | src/pages/views.py | piotr-sawicki/Try_Django | 32dab74eeb998097fe94a90f0bc94ec28022d541 | [
"MIT"
] | null | null | null | src/pages/views.py | piotr-sawicki/Try_Django | 32dab74eeb998097fe94a90f0bc94ec28022d541 | [
"MIT"
] | null | null | null | src/pages/views.py | piotr-sawicki/Try_Django | 32dab74eeb998097fe94a90f0bc94ec28022d541 | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
def home_view(request, *args, **kwargs):
return render(request, 'home.html', {})
def contact_view(request, *args, **kwargs):
return render(request, 'contact.html', {})
def about_view(request, *args, **kwargs... | 23.857143 | 52 | 0.650699 | 65 | 501 | 4.892308 | 0.492308 | 0.103774 | 0.141509 | 0.198113 | 0.251572 | 0.251572 | 0.251572 | 0 | 0 | 0 | 0 | 0.030075 | 0.203593 | 501 | 20 | 53 | 25.05 | 0.766917 | 0.045908 | 0 | 0 | 0 | 0 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.153846 | 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 | 1 | 0 | 0 | 0 | 3 |
b73291a8b66a1dfbeb56ad9da6018d2501ae9443 | 266 | py | Python | tests/test_etlite.py | elau1004/ETLite | 8d3eff4963e98029636f76476ff028f16736b17e | [
"MIT"
] | 1 | 2020-02-06T04:35:31.000Z | 2020-02-06T04:35:31.000Z | tests/test_etlite.py | elau1004/ETLite | 8d3eff4963e98029636f76476ff028f16736b17e | [
"MIT"
] | 20 | 2019-12-16T05:20:24.000Z | 2021-06-02T00:54:51.000Z | tests/test_etlite.py | elau1004/ETLite | 8d3eff4963e98029636f76476ff028f16736b17e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2019 Edward Lau <elau1004@netscape.net>
# Licensed under the MIT License.
#
import unittest
from tests.base_test import BaseTest
class TestEtlite( BaseTest ):
pass
if "__main__" == __name__:
unittest.main()
| 16.625 | 55 | 0.680451 | 33 | 266 | 5.212121 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 0.199248 | 266 | 15 | 56 | 17.733333 | 0.765258 | 0.402256 | 0 | 0 | 0 | 0 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
b733f2ad60075e6d759aa2aa18e3b903ab239942 | 141 | py | Python | fython/test/shell.py | nicolasessisbreton/fython | 988f5a94cee8b16b0000501a22239195c73424a1 | [
"Apache-2.0"
] | 41 | 2016-01-21T05:14:45.000Z | 2021-11-24T20:37:21.000Z | fython/test/shell.py | nicolasessisbreton/fython | 988f5a94cee8b16b0000501a22239195c73424a1 | [
"Apache-2.0"
] | 5 | 2016-01-21T05:36:37.000Z | 2016-08-22T19:26:51.000Z | fython/test/shell.py | nicolasessisbreton/fython | 988f5a94cee8b16b0000501a22239195c73424a1 | [
"Apache-2.0"
] | 3 | 2016-01-23T04:03:44.000Z | 2016-08-21T15:58:38.000Z | from ..config import *
from os import system
def shell(cmd):
cwd = get_frame_dir(1)
cmd = 'cd {:s} && {:s}'.format(cwd, cmd)
system(cmd) | 20.142857 | 41 | 0.638298 | 24 | 141 | 3.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.177305 | 141 | 7 | 42 | 20.142857 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.105634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 |
b736e837e4d2a9f27341084311c606a26735883a | 1,734 | py | Python | main/migrations/0031_auto_20170207_1917.py | jsmnbom/htxaarhuslan | 5244c4e65f4912c5d2e193f1ac355b3206d1c1b8 | [
"MIT"
] | 1 | 2019-09-06T10:28:40.000Z | 2019-09-06T10:28:40.000Z | main/migrations/0031_auto_20170207_1917.py | jsmnbom/htxaarhuslan | 5244c4e65f4912c5d2e193f1ac355b3206d1c1b8 | [
"MIT"
] | 2 | 2018-10-22T10:33:04.000Z | 2019-01-31T19:36:04.000Z | main/migrations/0031_auto_20170207_1917.py | jsmnbom/htxaarhuslan | 5244c4e65f4912c5d2e193f1ac355b3206d1c1b8 | [
"MIT"
] | 1 | 2019-09-06T10:28:41.000Z | 2019-09-06T10:28:41.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-02-07 18:17
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('main', '0030_auto_20170207_1913'),
]
operations = [
... | 61.928571 | 1,075 | 0.551326 | 179 | 1,734 | 5.26257 | 0.597765 | 0.023355 | 0.04034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154754 | 0.168973 | 1,734 | 27 | 1,076 | 64.222222 | 0.498959 | 0.039216 | 0 | 0.1 | 1 | 0 | 0.331329 | 0.01383 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b7454203348246fa8b0df81328555df8ae433cba | 173 | py | Python | run_server.py | Blodangan/Treasure-Maze | 627d4deb3bfdb8761fabfea82217aec014ae44fd | [
"MIT"
] | 1 | 2021-07-05T06:59:18.000Z | 2021-07-05T06:59:18.000Z | run_server.py | Blodangan/Treasure-Maze | 627d4deb3bfdb8761fabfea82217aec014ae44fd | [
"MIT"
] | null | null | null | run_server.py | Blodangan/Treasure-Maze | 627d4deb3bfdb8761fabfea82217aec014ae44fd | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from server.server import Server
from utils.consts import Constants
addr, port = "", Constants.SERVER_PORT
server = Server(addr, port)
server.run()
| 19.222222 | 38 | 0.757225 | 25 | 173 | 5.2 | 0.52 | 0.184615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.127168 | 173 | 8 | 39 | 21.625 | 0.854305 | 0.121387 | 0 | 0 | 0 | 0 | 0 | 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 |
3f7da894d80e9a2e091d97a6f5c2e31d6ddcf405 | 306 | py | Python | Profiles_api/admin.py | h96Coder/Profile-RestAPI | 26bc4a4c0cb34bf99c499d12cf21b8c4665833ca | [
"MIT"
] | 1 | 2020-06-19T10:38:52.000Z | 2020-06-19T10:38:52.000Z | Profiles_api/admin.py | h96Coder/Profile-RestAPI | 26bc4a4c0cb34bf99c499d12cf21b8c4665833ca | [
"MIT"
] | 5 | 2020-06-06T01:27:50.000Z | 2021-06-09T18:55:47.000Z | Profiles_api/admin.py | h96Coder/Profile-RestAPI | 26bc4a4c0cb34bf99c499d12cf21b8c4665833ca | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import UserProfile,ProfileFeedItem
admin.site.register(UserProfile)
class ProfileFeedItemAdmin(admin.ModelAdmin):
list_display = ("id", 'user_profile', 'status_text')
admin.site.register(ProfileFeedItem, ProfileFeedItemAdmin)
# Register your models here.
| 34 | 58 | 0.813725 | 34 | 306 | 7.235294 | 0.647059 | 0.073171 | 0.138211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091503 | 306 | 8 | 59 | 38.25 | 0.884892 | 0.084967 | 0 | 0 | 0 | 0 | 0.089928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3f7df9a010de0fe7bb52817587561316188df633 | 150 | py | Python | src/rez/vendor/pika/exchange_type.py | alexey-pelykh/rez | ad12105d89d658e4d2ea9249e537b3de90391f0e | [
"Apache-2.0"
] | null | null | null | src/rez/vendor/pika/exchange_type.py | alexey-pelykh/rez | ad12105d89d658e4d2ea9249e537b3de90391f0e | [
"Apache-2.0"
] | null | null | null | src/rez/vendor/pika/exchange_type.py | alexey-pelykh/rez | ad12105d89d658e4d2ea9249e537b3de90391f0e | [
"Apache-2.0"
] | 1 | 2020-09-24T08:33:43.000Z | 2020-09-24T08:33:43.000Z | from rez.vendor.enum import Enum
class ExchangeType(Enum) :
direct = 'direct'
fanout = 'fanout'
headers = 'headers'
topic = 'topic'
| 16.666667 | 32 | 0.64 | 17 | 150 | 5.647059 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246667 | 150 | 8 | 33 | 18.75 | 0.849558 | 0 | 0 | 0 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
3f88e5f89efd5a21818280bab93c7bb126a1f1d2 | 3,094 | py | Python | aliyun-python-sdk-mts/aliyunsdkmts/request/v20140618/SubmitVideoQualityJobRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 1,001 | 2015-07-24T01:32:41.000Z | 2022-03-25T01:28:18.000Z | aliyun-python-sdk-mts/aliyunsdkmts/request/v20140618/SubmitVideoQualityJobRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 363 | 2015-10-20T03:15:00.000Z | 2022-03-08T12:26:19.000Z | aliyun-python-sdk-mts/aliyunsdkmts/request/v20140618/SubmitVideoQualityJobRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 682 | 2015-09-22T07:19:02.000Z | 2022-03-22T09:51:46.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 36.833333 | 80 | 0.74596 | 414 | 3,094 | 5.391304 | 0.285024 | 0.026882 | 0.058244 | 0.080645 | 0.254032 | 0.16129 | 0.149194 | 0.149194 | 0 | 0 | 0 | 0.004539 | 0.145443 | 3,094 | 83 | 81 | 37.277108 | 0.839637 | 0.287654 | 0 | 0 | 0 | 0 | 0.12642 | 0.009943 | 0 | 0 | 0 | 0 | 0 | 1 | 0.42 | false | 0 | 0.04 | 0.2 | 0.68 | 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 |
3f8b3a3da6fe9011000b0bce1dc54deefab889cf | 3,492 | py | Python | tests/main_test.py | asottile/add-trailing-comma | dbc63adb9faaa48d87153f746bc47eec35ef211f | [
"MIT"
] | 238 | 2017-07-10T01:33:41.000Z | 2022-03-31T07:05:29.000Z | tests/main_test.py | asottile/add-trailing-comma | dbc63adb9faaa48d87153f746bc47eec35ef211f | [
"MIT"
] | 54 | 2017-07-10T01:56:24.000Z | 2022-03-30T22:42:40.000Z | tests/main_test.py | asottile/add-trailing-comma | dbc63adb9faaa48d87153f746bc47eec35ef211f | [
"MIT"
] | 29 | 2017-07-10T01:53:11.000Z | 2022-03-01T17:49:09.000Z | import io
import sys
from unittest import mock
from add_trailing_comma._main import main
def test_main_trivial():
assert main(()) == 0
def test_main_noop(tmpdir):
f = tmpdir.join('f.py')
f.write('x = 5\n')
assert main((f.strpath,)) == 0
assert f.read() == 'x = 5\n'
def test_main_changes_a_fil... | 30.103448 | 72 | 0.583333 | 574 | 3,492 | 3.418118 | 0.151568 | 0.086646 | 0.078491 | 0.12844 | 0.794597 | 0.771662 | 0.738532 | 0.668196 | 0.58053 | 0.497452 | 0 | 0.02439 | 0.201604 | 3,492 | 115 | 73 | 30.365217 | 0.678981 | 0 | 0 | 0.406977 | 0 | 0 | 0.230527 | 0.021478 | 0 | 0 | 0 | 0 | 0.430233 | 1 | 0.162791 | false | 0.034884 | 0.05814 | 0 | 0.22093 | 0.011628 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3f8c3024d36adc458966ce2df2aca6157937bcfb | 656 | py | Python | data/train/python/3f8c3024d36adc458966ce2df2aca6157937bcfbAddOnceAndCallOnceEventDispatch.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/3f8c3024d36adc458966ce2df2aca6157937bcfbAddOnceAndCallOnceEventDispatch.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/3f8c3024d36adc458966ce2df2aca6157937bcfbAddOnceAndCallOnceEventDispatch.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | # -*- coding: utf-8 -*-
from Libs.EventHandle.EventDispatch import EventDispatch;
class AddOnceAndCallOnceEventDispatch(EventDispatch):
def __init__(self):
super(AddOnceAndCallOnceEventDispatch, self).__init__();
self.mTypeId = "AddOnceAndCallOnceEventDispatch";
def addEventH... | 32.8 | 87 | 0.714939 | 50 | 656 | 9.22 | 0.48 | 0.234273 | 0.260304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001873 | 0.185976 | 656 | 19 | 88 | 34.526316 | 0.861423 | 0.032012 | 0 | 0 | 0 | 0 | 0.049051 | 0.049051 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3fa9f42d7ac61fc99e5e5490221d4646f206f830 | 959 | py | Python | TCN/utils.py | shivadb/TCN | 6853cbd2dd3c0e4bf119a37639f4cfdb8a11df2b | [
"MIT"
] | null | null | null | TCN/utils.py | shivadb/TCN | 6853cbd2dd3c0e4bf119a37639f4cfdb8a11df2b | [
"MIT"
] | null | null | null | TCN/utils.py | shivadb/TCN | 6853cbd2dd3c0e4bf119a37639f4cfdb8a11df2b | [
"MIT"
] | null | null | null | import torch
class TensorQueue(object):
def __init__(self, tensor):
self.tensor = tensor # shape [B, CH, IN]
def __call__(self):
return self.tensor
def push(self, val):
# self.tensor = torch.cat((self.tensor[:,:,1:], val[:,:,:]), dim=2)
self.tensor[:val.... | 33.068966 | 107 | 0.558916 | 127 | 959 | 4.062992 | 0.267717 | 0.232558 | 0.075581 | 0.098837 | 0.368217 | 0.282946 | 0.189922 | 0.189922 | 0.189922 | 0.189922 | 0 | 0.018258 | 0.25756 | 959 | 28 | 108 | 34.25 | 0.706461 | 0.105318 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.05 | 0.05 | 0.55 | 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 | 0 | 1 | 0 | 0 | 3 |
3fb17c10070f4ff3759648d0286143122dd48de5 | 334 | py | Python | digsby/src/gui/native/gtk/gtkextensions.py | ifwe/digsby | f5fe00244744aa131e07f09348d10563f3d8fa99 | [
"Python-2.0"
] | 35 | 2015-08-15T14:32:38.000Z | 2021-12-09T16:21:26.000Z | digsby/src/gui/native/gtk/gtkextensions.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 4 | 2015-09-12T10:42:57.000Z | 2017-02-27T04:05:51.000Z | digsby/src/gui/native/gtk/gtkextensions.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 15 | 2015-07-10T23:58:07.000Z | 2022-01-23T22:16:33.000Z | '''
This file will contain all platform-specific extensions or method replacements
to functions in the Python stdlib or the WX API.
'''
import wx
import gui.native
# wxTLW.Show does not activate the window like it does
# on some other platforms--no special code is needed.
wx.TopLevelWindow.ShowNoActivate = wx.TopLeve... | 25.692308 | 78 | 0.787425 | 51 | 334 | 5.156863 | 0.803922 | 0.121673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152695 | 334 | 12 | 79 | 27.833333 | 0.929329 | 0.697605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3fc9549d3220aa88c4d00f53dbadbc421ed7b274 | 448 | py | Python | src/dmt/package_generator.py | SINTEF/dmt-gen-common | 4f1ce6c303edbdcd25b69dc02c55b492540cd262 | [
"MIT"
] | null | null | null | src/dmt/package_generator.py | SINTEF/dmt-gen-common | 4f1ce6c303edbdcd25b69dc02c55b492540cd262 | [
"MIT"
] | null | null | null | src/dmt/package_generator.py | SINTEF/dmt-gen-common | 4f1ce6c303edbdcd25b69dc02c55b492540cd262 | [
"MIT"
] | null | null | null | """" Basis of all package generators """
from abc import ABC
from typing import Dict
from dmt.common.package import Package
class PackageGenerator(ABC):
"""" Basis of all package generators """
def generate_package(self, config: Dict):
"""Generate package"""
raise NotImplementedE... | 24.888889 | 46 | 0.647321 | 48 | 448 | 6 | 0.479167 | 0.048611 | 0.069444 | 0.118056 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252232 | 448 | 17 | 47 | 26.352941 | 0.859701 | 0.247768 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | 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 | 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 |
3fd82c89a6a353207d88e0283f6e5f417bd1266b | 239 | py | Python | src/bus/exceptions/dagobah.py | BruceDone/Tiktok | 2b475b221330132d3ca647f9e0850cd835438ded | [
"WTFPL"
] | 66 | 2017-05-14T14:07:17.000Z | 2021-12-27T06:08:42.000Z | src/bus/exceptions/dagobah.py | BruceDone/Tiktok | 2b475b221330132d3ca647f9e0850cd835438ded | [
"WTFPL"
] | 2 | 2018-01-26T03:00:01.000Z | 2018-10-24T03:36:20.000Z | src/bus/exceptions/dagobah.py | BruceDone/Tiktok | 2b475b221330132d3ca647f9e0850cd835438ded | [
"WTFPL"
] | 29 | 2017-05-14T14:08:18.000Z | 2022-01-09T05:37:58.000Z | # -*- coding: utf-8 -*-
class DagobahError(Exception):
print('DagobahError being constructed, something must have gone wrong')
pass
class DAGValidationError(Exception):
print('DAGValidation Error please check it ')
pass
| 21.727273 | 75 | 0.715481 | 26 | 239 | 6.576923 | 0.807692 | 0.163743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005128 | 0.1841 | 239 | 10 | 76 | 23.9 | 0.871795 | 0.087866 | 0 | 0.333333 | 0 | 0 | 0.453704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3fdff776fe17a1a19c5ee30936ccda38574a1c9c | 397 | py | Python | stack.py | witchsnk/RandomArithmetic | 4a9bebf24cff7dc1db45f7302dc187d5bce8eda5 | [
"Apache-2.0"
] | null | null | null | stack.py | witchsnk/RandomArithmetic | 4a9bebf24cff7dc1db45f7302dc187d5bce8eda5 | [
"Apache-2.0"
] | null | null | null | stack.py | witchsnk/RandomArithmetic | 4a9bebf24cff7dc1db45f7302dc187d5bce8eda5 | [
"Apache-2.0"
] | null | null | null | class Stack(object):
def __init__(self):
self.stack = []
def push(self, data):
"""
进栈函数
"""
self.stack.append(data)
def pop(self):
"""
出栈函数,
"""
return self.stack.pop()
def top(self):
"""
取栈顶
"""
r... | 17.26087 | 35 | 0.428212 | 41 | 397 | 4.04878 | 0.463415 | 0.271084 | 0.180723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008734 | 0.423174 | 397 | 23 | 35 | 17.26087 | 0.716157 | 0.035264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0 | 0 | 0.090909 | 0.818182 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 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.