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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0cba83933f83cceab34d35de5f800ca8c11343d0 | 318 | py | Python | RootAPP/apps.py | MHuiG/Karat-Django-Backend | 8887417bb3eee302a1639e247957539479d2ef67 | [
"MIT"
] | null | null | null | RootAPP/apps.py | MHuiG/Karat-Django-Backend | 8887417bb3eee302a1639e247957539479d2ef67 | [
"MIT"
] | null | null | null | RootAPP/apps.py | MHuiG/Karat-Django-Backend | 8887417bb3eee302a1639e247957539479d2ef67 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from django.db.models.signals import post_migrate
def do_init_data(sender, **kwargs):
from RootAPP.init_data import init_datas
init_datas()
class RootappConfig(AppConfig):
name = 'RootAPP'
def ready(self):
post_migrate.connect(do_init_data, sender=self)
| 19.875 | 55 | 0.742138 | 44 | 318 | 5.159091 | 0.545455 | 0.105727 | 0.088106 | 0.140969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172956 | 318 | 15 | 56 | 21.2 | 0.863118 | 0 | 0 | 0 | 0 | 0 | 0.022082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0cbf6b0d688a10bc7aa95b0ba1bf92c8431e3936 | 59 | py | Python | reversestring.py | cheesyc/basicpython | 9a055e4f813c6caa601ba00da939439b0bc82a3f | [
"MIT"
] | null | null | null | reversestring.py | cheesyc/basicpython | 9a055e4f813c6caa601ba00da939439b0bc82a3f | [
"MIT"
] | null | null | null | reversestring.py | cheesyc/basicpython | 9a055e4f813c6caa601ba00da939439b0bc82a3f | [
"MIT"
] | null | null | null | what = input("Input word to reverse: ")
print (what[::-1])
| 19.666667 | 39 | 0.627119 | 9 | 59 | 4.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.152542 | 59 | 2 | 40 | 29.5 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0.389831 | 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 |
0cecc196dd10229a1dab84652555779acfdb19fe | 11,875 | py | Python | template_container_human/labels/slice_168.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_human/labels/slice_168.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_human/labels/slice_168.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | coordinates_E0E1E1 = ((129, 120),
(129, 122), (129, 124), (130, 124), (131, 124), (132, 124), (133, 124), (134, 124), (135, 124), (136, 123), (136, 132), (137, 119), (137, 123), (138, 119), (138, 122), (139, 120), (139, 122), (140, 121), (140, 123), (141, 121), (141, 126), (142, 113), (142, 115), (142, 121), (142, 12... | 339.285714 | 865 | 0.497263 | 1,972 | 11,875 | 2.987323 | 0.044625 | 0.003056 | 0.003056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.580173 | 0.171789 | 11,875 | 34 | 866 | 349.264706 | 0.01881 | 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 |
0b3932cf8b7cf6f30128fcfbcb95149854b5b0be | 6,815 | py | Python | pysnmp/CADANT-CMTS-EXPORTIMPORT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CADANT-CMTS-EXPORTIMPORT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CADANT-CMTS-EXPORTIMPORT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CADANT-CMTS-EXPORTIMPORT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CADANT-CMTS-EXPORTIMPORT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:27:10 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python vers... | 111.721311 | 936 | 0.775642 | 686 | 6,815 | 7.702624 | 0.237609 | 0.009463 | 0.007949 | 0.010598 | 0.389856 | 0.322104 | 0.311885 | 0.291824 | 0.245269 | 0.245269 | 0 | 0.065242 | 0.080117 | 6,815 | 60 | 937 | 113.583333 | 0.777636 | 0.051357 | 0 | 0.1 | 0 | 0 | 0.203841 | 0.043371 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.76 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0b4e67b7e436972716bafaf87b458747d7832062 | 77 | py | Python | src/ackermann/logger.py | baldulin/ackermann | e9cb7648c14610b249256a0531a533e3d2b7c70e | [
"MIT"
] | 2 | 2021-05-17T07:27:02.000Z | 2021-06-24T18:48:43.000Z | src/ackermann/logger.py | baldulin/ackermann | e9cb7648c14610b249256a0531a533e3d2b7c70e | [
"MIT"
] | null | null | null | src/ackermann/logger.py | baldulin/ackermann | e9cb7648c14610b249256a0531a533e3d2b7c70e | [
"MIT"
] | null | null | null | """Ackermann logger"""
import logging
logger = logging.getLogger(__name__)
| 12.833333 | 36 | 0.753247 | 8 | 77 | 6.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116883 | 77 | 5 | 37 | 15.4 | 0.794118 | 0.207792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0b5aece9047827bdf544fd007e843920404ac099 | 88 | py | Python | src/fidesops/schemas/jwt.py | nathanawmk/fidesops | 1ab840206a78e60673aebd5838ba567095512a58 | [
"Apache-2.0"
] | 41 | 2021-11-01T23:53:43.000Z | 2022-03-22T23:07:56.000Z | src/fidesops/schemas/jwt.py | nathanawmk/fidesops | 1ab840206a78e60673aebd5838ba567095512a58 | [
"Apache-2.0"
] | 235 | 2021-11-01T20:31:55.000Z | 2022-03-31T15:40:58.000Z | src/fidesops/schemas/jwt.py | nathanawmk/fidesops | 1ab840206a78e60673aebd5838ba567095512a58 | [
"Apache-2.0"
] | 12 | 2021-11-02T00:44:51.000Z | 2022-03-14T16:23:10.000Z | JWE_PAYLOAD_CLIENT_ID = "client-id"
JWE_PAYLOAD_SCOPES = "scopes"
JWE_ISSUED_AT = "iat"
| 22 | 35 | 0.784091 | 14 | 88 | 4.428571 | 0.571429 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102273 | 88 | 3 | 36 | 29.333333 | 0.78481 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0b7532fe1dd60e72fce9ab111389a4b4d2f1ccdc | 429 | py | Python | tests/test_tensor_op.py | tanmoyio/mudkip | 85dcc12051ca1bd4b4fa01ae56cc852ca40602bc | [
"MIT"
] | 18 | 2020-06-23T19:19:28.000Z | 2020-11-24T17:33:31.000Z | tests/test_tensor_op.py | tanmoyio/mudkip | 85dcc12051ca1bd4b4fa01ae56cc852ca40602bc | [
"MIT"
] | 3 | 2020-07-19T20:23:29.000Z | 2020-08-02T12:20:04.000Z | tests/test_tensor_op.py | tanmoyio/mudkip | 85dcc12051ca1bd4b4fa01ae56cc852ca40602bc | [
"MIT"
] | 3 | 2020-07-20T00:29:56.000Z | 2021-01-15T13:59:27.000Z | import os
import sys
os.chdir(os.path.realpath(os.path.dirname(__name__)))
sys.path.append(".")
from gradman import Tensor # noqa
x = Tensor([[1.5, -2.8, 3.3]])
y = Tensor([[-3.8], [-21.2], [-18.5]])
def matmul():
return round(float((x @ y).data[0, 0]), 2)
def add():
return round(float((x + y).data[1, 2... | 17.875 | 53 | 0.585082 | 74 | 429 | 3.324324 | 0.486486 | 0.04878 | 0.130081 | 0.138211 | 0.178862 | 0.178862 | 0 | 0 | 0 | 0 | 0 | 0.096317 | 0.177156 | 429 | 23 | 54 | 18.652174 | 0.600567 | 0.009324 | 0 | 0 | 0 | 0 | 0.002364 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.214286 | false | 0 | 0.214286 | 0.142857 | 0.571429 | 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 |
0b78e542a2634416938d76ffbc47fe4b57e02a1f | 1,521 | py | Python | wb/main/jobs/accuracy_analysis/annotate_datset/local_annotate_dataset_job.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 23 | 2022-03-17T12:24:09.000Z | 2022-03-31T09:13:30.000Z | wb/main/jobs/accuracy_analysis/annotate_datset/local_annotate_dataset_job.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 18 | 2022-03-21T08:17:44.000Z | 2022-03-30T12:42:30.000Z | wb/main/jobs/accuracy_analysis/annotate_datset/local_annotate_dataset_job.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 16 | 2022-03-17T12:24:14.000Z | 2022-03-31T12:15:12.000Z | """
OpenVINO DL Workbench
Class for annotate dataset job
Copyright (c) 2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
... | 37.097561 | 98 | 0.768573 | 208 | 1,521 | 5.456731 | 0.543269 | 0.052863 | 0.026432 | 0.028194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.174227 | 1,521 | 40 | 99 | 38.025 | 0.897293 | 0.486522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.357143 | 0 | 0.642857 | 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 |
0b8d97b581797f47deda23be21f64be5b0f1f8d4 | 238 | py | Python | Algorithms/Dynamic-Programming/fibonacci-modified.py | RitvijSrivastava/Hackerrank-1 | 781e60ff18b581bda88be63bd095118778bc2d56 | [
"MIT"
] | 29 | 2018-10-08T18:14:09.000Z | 2021-10-10T08:37:06.000Z | Algorithms/Dynamic-Programming/fibonacci-modified.py | RitvijSrivastava/Hackerrank-1 | 781e60ff18b581bda88be63bd095118778bc2d56 | [
"MIT"
] | 36 | 2018-10-03T18:39:26.000Z | 2021-10-08T21:21:40.000Z | Algorithms/Dynamic-Programming/fibonacci-modified.py | RitvijSrivastava/Hackerrank-1 | 781e60ff18b581bda88be63bd095118778bc2d56 | [
"MIT"
] | 86 | 2018-10-03T19:19:40.000Z | 2021-12-23T11:59:22.000Z | def fib(a,b,n):
if(n==1):
return a
elif(n==2):
return b
else:
return fib(a,b,n-2)+fib(a,b,n-1)*fib(a,b,n-1)
r = input();
r = r.split(' ')
a = int(r[0])
b = int(r[1])
n = int(r[2])
print(fib(a,b,n)) | 17 | 53 | 0.445378 | 54 | 238 | 1.962963 | 0.314815 | 0.188679 | 0.235849 | 0.283019 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 0.285714 | 238 | 14 | 54 | 17 | 0.576471 | 0 | 0 | 0 | 0 | 0 | 0.004184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.307692 | 0.076923 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 3 |
0b9a8401c1f51ab138436cc90e242a9157292705 | 509 | py | Python | utils/cmpcodesize/cmpcodesize.py | xjc90s/swift | cafe5ccbd1b7aa9cc9c837c5be2cdf3d5acd8a49 | [
"Apache-2.0"
] | 1 | 2020-12-23T18:24:44.000Z | 2020-12-23T18:24:44.000Z | utils/cmpcodesize/cmpcodesize.py | xjc90s/swift | cafe5ccbd1b7aa9cc9c837c5be2cdf3d5acd8a49 | [
"Apache-2.0"
] | null | null | null | utils/cmpcodesize/cmpcodesize.py | xjc90s/swift | cafe5ccbd1b7aa9cc9c837c5be2cdf3d5acd8a49 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# cmpcodesize.py - Compare sizes of built products -*- python -*-
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/... | 31.8125 | 78 | 0.744597 | 76 | 509 | 4.881579 | 0.684211 | 0.06469 | 0.102426 | 0.086253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025761 | 0.1611 | 509 | 15 | 79 | 33.933333 | 0.843091 | 0.815324 | 0 | 0 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0bbcabc49ccda82cedaa22f90fa9ad233e1be9fc | 334 | py | Python | tests/test_rotor_integration.py | resgroup/mini-wake | 4291618b40647b8223cd9e6320ae2237efa77b51 | [
"MIT"
] | 3 | 2020-03-02T10:20:42.000Z | 2021-02-04T20:13:52.000Z | tests/test_rotor_integration.py | resgroup/mini-wake | 4291618b40647b8223cd9e6320ae2237efa77b51 | [
"MIT"
] | 8 | 2020-03-11T16:48:56.000Z | 2021-01-13T16:17:04.000Z | tests/test_rotor_integration.py | resgroup/mini-wake | 4291618b40647b8223cd9e6320ae2237efa77b51 | [
"MIT"
] | null | null | null | import pytest
from miniwake.rotor_integration import VelocityDeficitIntegrator
def one(lateral_offset, vertical_offset):
return 1.0, 2
def test_rotor_integration():
integrator = VelocityDeficitIntegrator()
integrated, impactive = integrator.calculate(90.0, one)
assert integrated == 1.0
assert i... | 22.266667 | 64 | 0.760479 | 38 | 334 | 6.552632 | 0.605263 | 0.128514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.164671 | 334 | 14 | 65 | 23.857143 | 0.860215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0bc166e47c28d45d5bfb31f70a8e1a95d1d5fc57 | 1,677 | py | Python | tensorflow/python/ops/unconnected_gradients.py | EricRemmerswaal/tensorflow | 141ff27877579c81a213fa113bd1b474c1749aca | [
"Apache-2.0"
] | 190,993 | 2015-11-09T13:17:30.000Z | 2022-03-31T23:05:27.000Z | tensorflow/python/ops/unconnected_gradients.py | EricRemmerswaal/tensorflow | 141ff27877579c81a213fa113bd1b474c1749aca | [
"Apache-2.0"
] | 48,461 | 2015-11-09T14:21:11.000Z | 2022-03-31T23:17:33.000Z | tensorflow/python/ops/unconnected_gradients.py | EricRemmerswaal/tensorflow | 141ff27877579c81a213fa113bd1b474c1749aca | [
"Apache-2.0"
] | 104,981 | 2015-11-09T13:40:17.000Z | 2022-03-31T19:51:54.000Z | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 41.925 | 80 | 0.717949 | 261 | 1,677 | 4.601533 | 0.517241 | 0.049958 | 0.009992 | 0.026644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005827 | 0.181276 | 1,677 | 39 | 81 | 43 | 0.8689 | 0.855695 | 0 | 0 | 0 | 0 | 0.14359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f02a030567d169d8b7edfbd986bb3cf58287977a | 238 | py | Python | yatinder/yatinder/settings/dev.py | KitKat-ru/29_pet_project | 5eceb7bd2b79aaad09ae602d203c99dcab09acd2 | [
"MIT"
] | 3 | 2022-02-11T11:16:31.000Z | 2022-02-16T08:26:34.000Z | yatinder/yatinder/settings/dev.py | KitKat-ru/29_pet_project | 5eceb7bd2b79aaad09ae602d203c99dcab09acd2 | [
"MIT"
] | null | null | null | yatinder/yatinder/settings/dev.py | KitKat-ru/29_pet_project | 5eceb7bd2b79aaad09ae602d203c99dcab09acd2 | [
"MIT"
] | 4 | 2022-02-11T11:23:57.000Z | 2022-02-20T12:32:04.000Z | from __future__ import annotations
from configurations.values import BooleanValue
from yatinder.settings.base import Base
class Dev(Base):
ALLOWED_HOSTS = ['*'] # noqa: allowed straight assignment
DEBUG = BooleanValue(True)
| 19.833333 | 62 | 0.764706 | 27 | 238 | 6.555556 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163866 | 238 | 11 | 63 | 21.636364 | 0.889447 | 0.138655 | 0 | 0 | 0 | 0 | 0.004926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b2dbe6990d37f2162bde385208f9250473bf6872 | 130 | py | Python | ocr/urls.py | hyaovi/django-ocr | 559ffe3fc10a683f9da7122d5c5688fdfc4527bc | [
"MIT"
] | 3 | 2021-04-21T08:29:06.000Z | 2021-06-09T07:46:38.000Z | ocr/urls.py | hyaovi/django-ocr | 559ffe3fc10a683f9da7122d5c5688fdfc4527bc | [
"MIT"
] | 8 | 2021-03-30T13:49:45.000Z | 2022-01-13T02:51:58.000Z | ocr/urls.py | hyaovi/django-ocr | 559ffe3fc10a683f9da7122d5c5688fdfc4527bc | [
"MIT"
] | 1 | 2021-06-07T09:21:59.000Z | 2021-06-07T09:21:59.000Z | from django.urls import include, path
from . import views
urlpatterns = [
path('', view=views.homepage, name='homepage'),
]
| 16.25 | 51 | 0.692308 | 16 | 130 | 5.625 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169231 | 130 | 7 | 52 | 18.571429 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 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 |
b2e1202b8a2cac27ce0d72a8ca9510298fb4b6e4 | 541 | py | Python | components/mpas-source/testing_and_setup/compass/ocean/hurricane/hurricane_wind_pressure/utils/gis.py | meng630/GMD_E3SM_SCM | 990f84598b79f9b4763c3a825a7d25f4e0f5a565 | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | components/mpas-source/testing_and_setup/compass/ocean/hurricane/hurricane_wind_pressure/utils/gis.py | meng630/GMD_E3SM_SCM | 990f84598b79f9b4763c3a825a7d25f4e0f5a565 | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | components/mpas-source/testing_and_setup/compass/ocean/hurricane/hurricane_wind_pressure/utils/gis.py | meng630/GMD_E3SM_SCM | 990f84598b79f9b4763c3a825a7d25f4e0f5a565 | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | from geopy.distance import geodesic
def geodistkm(x1,y1,x2,y2):
'''
Returns the geodesic distance in km given two pairs of (lon, lat) coordinates.
Note: Because it uses geopy, the coordinate order is reversed to (lat,lon)
before calling the geopy function.
:param x1: lon of the first point.
:pa... | 36.066667 | 82 | 0.685767 | 86 | 541 | 4.313953 | 0.476744 | 0.053908 | 0.043127 | 0.080863 | 0.107817 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02864 | 0.225508 | 541 | 14 | 83 | 38.642857 | 0.856802 | 0.715342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
650045a1cf67fc9e38147da13cd6ef9672bd67ac | 12,767 | py | Python | maincl.py | baronrustamov/bulka | fe19fa993e0d1fa013b83bc08705c70cd26d84aa | [
"MIT"
] | null | null | null | maincl.py | baronrustamov/bulka | fe19fa993e0d1fa013b83bc08705c70cd26d84aa | [
"MIT"
] | null | null | null | maincl.py | baronrustamov/bulka | fe19fa993e0d1fa013b83bc08705c70cd26d84aa | [
"MIT"
] | 1 | 2021-06-07T14:45:57.000Z | 2021-06-07T14:45:57.000Z | """
MyScript
This script is very useful for when you just to do a health check on a remote server. It does the followings:
- NSLOOKUP
- PING to see if the site is up
- Certificate/SSL/TLS info
"""
import socket
import hashlib
import os
import time
import calendar # module of python to provide useful fucntions r... | 12,767 | 12,767 | 0.67792 | 1,788 | 12,767 | 4.57774 | 0.225392 | 0.037141 | 0.037385 | 0.058155 | 0.151985 | 0.085522 | 0.061332 | 0.04325 | 0.031521 | 0.021991 | 0 | 0.015684 | 0.165975 | 12,767 | 1 | 12,767 | 12,767 | 0.753005 | 0.134566 | 0 | 0.121951 | 0 | 0 | 0.197416 | 0.034706 | 0.009756 | 0 | 0 | 0 | 0 | 1 | 0.087805 | false | 0 | 0.043902 | 0 | 0.268293 | 0.121951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
650756338f7d540fa2c0f4d1582112bc4f3fbc44 | 385 | py | Python | pydev/tests/test_dev.py | kepbod/pydev | 791c36c44e1fb59405937ac85b09d1e60b2eeb4d | [
"MIT"
] | 2 | 2016-11-18T18:56:22.000Z | 2018-04-20T16:17:03.000Z | pydev/tests/test_dev.py | kepbod/pydev | 791c36c44e1fb59405937ac85b09d1e60b2eeb4d | [
"MIT"
] | null | null | null | pydev/tests/test_dev.py | kepbod/pydev | 791c36c44e1fb59405937ac85b09d1e60b2eeb4d | [
"MIT"
] | null | null | null | import os
import filecmp
import pytest
from pydev.dev import sort_bed, minus
def test_sort_bed():
bed = pytest.helpers.data_path('t.bed')
out = pytest.helpers.data_path('n.bed')
sort_bed(bed, out)
result = pytest.helpers.data_path('o.bed')
assert filecmp.cmp(result, out), 'Error!!!'
os.remove(... | 21.388889 | 47 | 0.667532 | 60 | 385 | 4.15 | 0.45 | 0.084337 | 0.204819 | 0.253012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009494 | 0.179221 | 385 | 17 | 48 | 22.647059 | 0.778481 | 0 | 0 | 0 | 0 | 0 | 0.080519 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.461538 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
650ed69584af43365f8101c2d9a09406813fb65c | 492 | py | Python | src/helpers/Price.py | coinmasterlisting/crabada.py | 659f57c0583ff9059b1928669a6ff05c35efc389 | [
"MIT"
] | 1 | 2022-02-21T20:06:57.000Z | 2022-02-21T20:06:57.000Z | src/helpers/Price.py | nurullahk5656/crabada.py | 659f57c0583ff9059b1928669a6ff05c35efc389 | [
"MIT"
] | null | null | null | src/helpers/Price.py | nurullahk5656/crabada.py | 659f57c0583ff9059b1928669a6ff05c35efc389 | [
"MIT"
] | null | null | null | from typing import cast
from web3 import Web3
from web3.types import Wei
from src.common.types import Tus
def tusToWei(tus: int) -> Wei:
"""
Convert TUS to Wei; this is required before making comparisons
because the Crabada APIs (both Web2 and Web3) always return Wei.
The conversion is 1 TUS = 10... | 24.6 | 68 | 0.662602 | 74 | 492 | 4.405405 | 0.513514 | 0.04908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032 | 0.237805 | 492 | 20 | 69 | 24.6 | 0.837333 | 0.373984 | 0 | 0 | 0 | 0 | 0.037594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
65149259cb9ef74a46a0e86402ee80275803d93b | 3,394 | py | Python | mayaSDK/maya/app/renderSetup/model/overriddenAttributeManager.py | FXTD-ODYSSEY/vscode-mayapy | 7a21872f80b5b740fc653e79c3f9b5268e87b3c3 | [
"MIT"
] | 20 | 2019-09-20T00:30:22.000Z | 2021-12-26T06:56:16.000Z | mayaSDK/maya/app/renderSetup/model/overriddenAttributeManager.py | minjiang999/vscode-mayapy | 7a21872f80b5b740fc653e79c3f9b5268e87b3c3 | [
"MIT"
] | 5 | 2019-12-29T15:19:03.000Z | 2022-03-29T16:54:19.000Z | mayaSDK/maya/app/renderSetup/model/overriddenAttributeManager.py | minjiang999/vscode-mayapy | 7a21872f80b5b740fc653e79c3f9b5268e87b3c3 | [
"MIT"
] | 8 | 2019-09-23T05:46:44.000Z | 2022-01-11T14:42:14.000Z | """
The overridden attribute manager is a singleton that observes the scene to
react to attribute changes. If the attribute change is on an attribute
that is overridden by render setup, the attribute manager will attempt to
take the value change and reproduce it on the override itself.
This allows for convenient work... | 25.712121 | 75 | 0.690041 | 421 | 3,394 | 5.532067 | 0.418052 | 0.030056 | 0.047231 | 0.049807 | 0.078145 | 0.030056 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269004 | 3,394 | 131 | 76 | 25.908397 | 0.938734 | 0.680024 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.428571 | 0 | 0 | 0.535714 | 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 |
65231b9937b7694735ae2e7bbf391609f8790393 | 26,510 | py | Python | carlife_main_window.py | stonexu1986/carlife-protocol-analysis-tool | 10c8ea30e27e3db81382cea3b8ef7663479a535f | [
"Apache-2.0"
] | null | null | null | carlife_main_window.py | stonexu1986/carlife-protocol-analysis-tool | 10c8ea30e27e3db81382cea3b8ef7663479a535f | [
"Apache-2.0"
] | null | null | null | carlife_main_window.py | stonexu1986/carlife-protocol-analysis-tool | 10c8ea30e27e3db81382cea3b8ef7663479a535f | [
"Apache-2.0"
] | null | null | null |
import wx
import wx.adv
import os
import threading
import time
import io
from PIL import Image
import layout_main
import stream_filter_dialog
import album_artwork_dialog
import csv_parser
import packet_parser
import settings
import carlife_ico
import aptiv_ico
from common_constant import const
... | 70.882353 | 15,359 | 0.725688 | 4,940 | 26,510 | 3.804049 | 0.211538 | 0.194125 | 0.250479 | 0.296935 | 0.279161 | 0.23526 | 0.188804 | 0.158791 | 0.147084 | 0.138516 | 0 | 0.181703 | 0.078046 | 26,510 | 373 | 15,360 | 71.072386 | 0.587169 | 0.589287 | 0 | 0.265918 | 0 | 0 | 0.08578 | 0.015631 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078652 | false | 0.007491 | 0.082397 | 0 | 0.179775 | 0.052434 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3302cd60a50432f56a28af78bfa3d1e7c1dad91b | 933 | py | Python | laboratorio/lab/models.py | wt3c/sqlite_test_insert_update | 74fe3f89023db83602b053e9092a79a34dd32e20 | [
"MIT"
] | null | null | null | laboratorio/lab/models.py | wt3c/sqlite_test_insert_update | 74fe3f89023db83602b053e9092a79a34dd32e20 | [
"MIT"
] | null | null | null | laboratorio/lab/models.py | wt3c/sqlite_test_insert_update | 74fe3f89023db83602b053e9092a79a34dd32e20 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.db import models
class Toronto311(models.Model):
owner = models.ForeignKey(User, blank=True, null=True, on_delete=models.CASCADE)
creation_date = models.DateTimeField(blank=True, null=True)
status = models.CharField(blank=True, null=True, max_length=... | 51.833333 | 89 | 0.764202 | 135 | 933 | 5.081481 | 0.362963 | 0.131195 | 0.189504 | 0.247813 | 0.504373 | 0.504373 | 0.504373 | 0.504373 | 0.504373 | 0 | 0 | 0.029448 | 0.126474 | 933 | 18 | 90 | 51.833333 | 0.81227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0.066667 | 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 |
331dc23ffa423f5d52bc42069327541e68f5d47f | 2,578 | py | Python | param_values.py | ShuangLI59/ebm-continual-learning | 531aaa6c2a6d64ebcbb407c1a053aaf921e43159 | [
"MIT"
] | 24 | 2020-11-25T22:30:49.000Z | 2022-02-12T09:01:07.000Z | param_values.py | ShuangLI59/ebm-continual-learning | 531aaa6c2a6d64ebcbb407c1a053aaf921e43159 | [
"MIT"
] | 1 | 2021-11-07T06:09:18.000Z | 2021-11-07T06:09:18.000Z | param_values.py | ShuangLI59/ebm-continual-learning | 531aaa6c2a6d64ebcbb407c1a053aaf921e43159 | [
"MIT"
] | 8 | 2021-04-23T01:33:57.000Z | 2022-03-14T13:11:59.000Z |
def set_default_values(args, also_hyper_params=True):
# -set default-values for certain arguments based on chosen scenario & experiment
if args.tasks is None:
if args.experiment=='splitMNIST':
args.num_classes = 10
if args.experiment=='splitMNISToneclass':
args.num_class... | 32.632911 | 85 | 0.541505 | 275 | 2,578 | 5.018182 | 0.174545 | 0.294203 | 0.26087 | 0.047826 | 0.79058 | 0.638406 | 0.518841 | 0 | 0 | 0 | 0 | 0.089049 | 0.355314 | 2,578 | 78 | 86 | 33.051282 | 0.741276 | 0.030644 | 0 | 0.850746 | 0 | 0 | 0.115523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0 | 0 | 0 | 0.029851 | 0.014925 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
33306ba0a0964c63e953b823fd0a76a3da38be00 | 596 | py | Python | ChasingTrainFramework_GeneralOneClassDetection/data_iterator_base/data_batch.py | dvt0101/A-Light-and-Fast-Face-Detector-for-Edge-Devices | 3cb12d0f7a4f4f0357a265ef21fb61c897ff2395 | [
"MIT"
] | 1,172 | 2019-08-09T09:59:15.000Z | 2020-12-14T03:20:08.000Z | ChasingTrainFramework_GeneralOneClassDetection/data_iterator_base/data_batch.py | vicwer/A-Light-and-Fast-Face-Detector-for-Edge-Devices | cea550ae7999394da9c02ec15cb58b44c154e306 | [
"MIT"
] | 95 | 2019-08-19T01:15:49.000Z | 2020-12-15T05:34:39.000Z | ChasingTrainFramework_GeneralOneClassDetection/data_iterator_base/data_batch.py | vicwer/A-Light-and-Fast-Face-Detector-for-Edge-Devices | cea550ae7999394da9c02ec15cb58b44c154e306 | [
"MIT"
] | 317 | 2019-08-11T05:52:06.000Z | 2020-12-14T13:34:53.000Z | # coding: utf-8
class DataBatch:
def __init__(self, mxnet_module):
self._data = []
self._label = []
self.mxnet_module = mxnet_module
def append_data(self, new_data):
self._data.append(self.__as_ndarray(new_data))
def append_label(self, new_label):
self._label.appe... | 22.923077 | 80 | 0.651007 | 79 | 596 | 4.506329 | 0.265823 | 0.154494 | 0.168539 | 0.106742 | 0.123596 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002212 | 0.241611 | 596 | 25 | 81 | 23.84 | 0.785398 | 0.021812 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0 | 0.176471 | 0.588235 | 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 |
68263424dd452ad99b1110aaee6741b987b27f43 | 53 | py | Python | descarteslabs/workflows/types/_debugging/__init__.py | carderne/descarteslabs-python | 757b480efb8d58474a3bf07f1dbd90652b46ed64 | [
"Apache-2.0"
] | 167 | 2017-03-23T22:16:58.000Z | 2022-03-08T09:19:30.000Z | descarteslabs/workflows/types/_debugging/__init__.py | carderne/descarteslabs-python | 757b480efb8d58474a3bf07f1dbd90652b46ed64 | [
"Apache-2.0"
] | 93 | 2017-03-23T22:11:40.000Z | 2021-12-13T18:38:53.000Z | descarteslabs/workflows/types/_debugging/__init__.py | carderne/descarteslabs-python | 757b480efb8d58474a3bf07f1dbd90652b46ed64 | [
"Apache-2.0"
] | 46 | 2017-03-25T19:12:14.000Z | 2021-08-15T18:04:29.000Z | from ._debugging import _sleep
__all__ = ["_sleep"]
| 13.25 | 30 | 0.735849 | 6 | 53 | 5.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 53 | 3 | 31 | 17.666667 | 0.711111 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 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 |
6837d8b19dc9fd67693a8df2d3d21f2b8b65ba7b | 201 | py | Python | mldictionary_api/app.py | PabloEmidio/api-dictionary | 4eb1d4d02a133b96bcb905575d8bccb3cf0311c3 | [
"MIT"
] | 7 | 2021-06-13T23:21:14.000Z | 2022-01-04T01:35:47.000Z | mldictionary_api/app.py | PabloEmidio/MLDictionaryAPI | 501f203802c1f6aafe213c0fb7a5808f9a9ad3ab | [
"MIT"
] | null | null | null | mldictionary_api/app.py | PabloEmidio/MLDictionaryAPI | 501f203802c1f6aafe213c0fb7a5808f9a9ad3ab | [
"MIT"
] | 1 | 2021-06-28T07:26:54.000Z | 2021-06-28T07:26:54.000Z | from flask import Flask
from mldictionary_api.routes import views, api
def create_app():
app = Flask(__name__)
app.register_blueprint(views)
app.register_blueprint(api)
return app
| 15.461538 | 46 | 0.736318 | 27 | 201 | 5.185185 | 0.518519 | 0.157143 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19403 | 201 | 12 | 47 | 16.75 | 0.864198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0.285714 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
683d028f3afe96bcb17dee07162946780cad1118 | 245 | py | Python | Atcoder/AISing 2018/Q2.py | taiki-okano/Competitive-Programming | 7df76273740ae743ff04e9ed1ae8ffd6562d288d | [
"MIT"
] | 1 | 2016-01-23T13:33:05.000Z | 2016-01-23T13:33:05.000Z | Atcoder/AISing 2018/Q2.py | taiki-okano/algorithm | 7df76273740ae743ff04e9ed1ae8ffd6562d288d | [
"MIT"
] | null | null | null | Atcoder/AISing 2018/Q2.py | taiki-okano/algorithm | 7df76273740ae743ff04e9ed1ae8ffd6562d288d | [
"MIT"
] | null | null | null | N = int(input())
A, B = map(int, input().split())
counts = [0, 0, 0]
P = map(int, input().split())
for p in P:
if p <= A:
counts[0] += 1
elif p <= B:
counts[1] += 1
else:
counts[2] += 1
print(min(counts))
| 14.411765 | 32 | 0.457143 | 41 | 245 | 2.731707 | 0.463415 | 0.214286 | 0.196429 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0.326531 | 245 | 16 | 33 | 15.3125 | 0.624242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.083333 | 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 |
68650def7d3e6c611c377d42bab2910476974d51 | 299 | py | Python | deephar/data/__init__.py | pminhtam/2D-3D_Multitask_Deep_Learning | 097a1035173ea5236db47a806ad275e7482bc6f2 | [
"MIT"
] | 10 | 2020-01-01T13:01:48.000Z | 2022-03-15T08:05:54.000Z | deephar/data/__init__.py | pminhtam/2D-3D_Multitask_Deep_Learning | 097a1035173ea5236db47a806ad275e7482bc6f2 | [
"MIT"
] | 8 | 2020-01-28T22:14:48.000Z | 2022-02-09T23:30:54.000Z | deephar/data/__init__.py | pminhtam/2D-3D_Multitask_Deep_Learning | 097a1035173ea5236db47a806ad275e7482bc6f2 | [
"MIT"
] | 3 | 2019-08-15T10:09:44.000Z | 2022-02-16T01:57:30.000Z | from .loader import BatchLoader
from .mpii import MpiiSinglePerson
from .human36m import Human36M
from .pennaction import PennAction
from .ntu import Ntu
from .coco import COCOSinglePerson
from .merl import MERLSinglePerson
from .merl_action import MERLAction
from .merl_5_action import MERL5Action | 29.9 | 38 | 0.849498 | 39 | 299 | 6.435897 | 0.435897 | 0.095618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022814 | 0.120401 | 299 | 10 | 38 | 29.9 | 0.931559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
68753a3c7b4d50cb79f3583f9fc65b57e137f175 | 90 | py | Python | dash_clustergrammer/_imports_.py | mwang87/GNPS_FBMN_Clustergrammer | 22f988d4a076b9eb56b34933e567f95432d3e1fd | [
"MIT"
] | null | null | null | dash_clustergrammer/_imports_.py | mwang87/GNPS_FBMN_Clustergrammer | 22f988d4a076b9eb56b34933e567f95432d3e1fd | [
"MIT"
] | null | null | null | dash_clustergrammer/_imports_.py | mwang87/GNPS_FBMN_Clustergrammer | 22f988d4a076b9eb56b34933e567f95432d3e1fd | [
"MIT"
] | 1 | 2020-10-19T16:10:07.000Z | 2020-10-19T16:10:07.000Z | from .DashClustergrammer import DashClustergrammer
__all__ = [
"DashClustergrammer"
] | 18 | 50 | 0.788889 | 6 | 90 | 11.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144444 | 90 | 5 | 51 | 18 | 0.87013 | 0 | 0 | 0 | 0 | 0 | 0.197802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
688cd411ca0e23f0ed5e62d7ad5a439d3bc44a54 | 132 | py | Python | profile_api/urls.py | RAHULBARIK/profiles-rest-api | 4030a96737a72d9003fbb47a4b585b2d0ba8667e | [
"MIT"
] | null | null | null | profile_api/urls.py | RAHULBARIK/profiles-rest-api | 4030a96737a72d9003fbb47a4b585b2d0ba8667e | [
"MIT"
] | 7 | 2020-06-06T01:41:34.000Z | 2022-02-10T12:11:29.000Z | profile_api/urls.py | RAHULBARIK/profiles-rest-api | 4030a96737a72d9003fbb47a4b585b2d0ba8667e | [
"MIT"
] | null | null | null | from django.urls import path
from profile_api import views
urlpatterns = [
path('home-view/', views.HelloApiview.as_view()),
]
| 18.857143 | 53 | 0.734848 | 18 | 132 | 5.277778 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143939 | 132 | 6 | 54 | 22 | 0.840708 | 0 | 0 | 0 | 0 | 0 | 0.075758 | 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 |
689dccc97e5a0fb12a5215f5289baca2a252732d | 229 | py | Python | 8_kyu/NBA_full_48_minutes_average.py | UlrichBerntien/Codewars-Katas | bbd025e67aa352d313564d3862db19fffa39f552 | [
"MIT"
] | null | null | null | 8_kyu/NBA_full_48_minutes_average.py | UlrichBerntien/Codewars-Katas | bbd025e67aa352d313564d3862db19fffa39f552 | [
"MIT"
] | null | null | null | 8_kyu/NBA_full_48_minutes_average.py | UlrichBerntien/Codewars-Katas | bbd025e67aa352d313564d3862db19fffa39f552 | [
"MIT"
] | null | null | null | NBA_GAME_TIME = 48
def nba_extrap(points_per_game: float, minutes_per_game: float) -> float:
if minutes_per_game < 0.001:
return 0.0
else:
return round(points_per_game/minutes_per_game * NBA_GAME_TIME, 1) | 32.714286 | 73 | 0.716157 | 38 | 229 | 3.921053 | 0.447368 | 0.234899 | 0.281879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 0.200873 | 229 | 7 | 74 | 32.714286 | 0.765027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
68ac0867cdc4adab58ae3eb9217761bb33d50a72 | 218 | py | Python | backend/account/serializers.py | sahas-01/Projectsv2 | d3977bdc7d3e552149208ca3ac50ccaa246ec5a0 | [
"MIT"
] | 13 | 2021-08-31T14:21:45.000Z | 2021-11-08T13:14:59.000Z | backend/account/serializers.py | sahas-01/Projectsv2 | d3977bdc7d3e552149208ca3ac50ccaa246ec5a0 | [
"MIT"
] | 11 | 2021-08-20T19:10:40.000Z | 2022-03-30T13:28:49.000Z | backend/account/serializers.py | sahas-01/Projectsv2 | d3977bdc7d3e552149208ca3ac50ccaa246ec5a0 | [
"MIT"
] | 3 | 2021-05-18T15:00:49.000Z | 2021-08-10T06:59:28.000Z | from rest_framework import serializers
class LoginSerializer(serializers.Serializer):
uuid = serializers.UUIDField()
class RefreshSerializer(serializers.Serializer):
refresh_token = serializers.CharField()
| 21.8 | 48 | 0.807339 | 20 | 218 | 8.7 | 0.7 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119266 | 218 | 9 | 49 | 24.222222 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
68ad92a31b24a701d2d65fbeca9b87969d3edc59 | 85 | py | Python | app/database.py | apulverizer/hackathonrestapi | e0539d9141fabf0895a81e963e52ffd4ad171d7a | [
"Apache-2.0"
] | null | null | null | app/database.py | apulverizer/hackathonrestapi | e0539d9141fabf0895a81e963e52ffd4ad171d7a | [
"Apache-2.0"
] | null | null | null | app/database.py | apulverizer/hackathonrestapi | e0539d9141fabf0895a81e963e52ffd4ad171d7a | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
from flask.ext.sqlalchemy import SQLAlchemy
db = SQLAlchemy() | 28.333333 | 43 | 0.705882 | 11 | 85 | 5.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.129412 | 85 | 3 | 44 | 28.333333 | 0.797297 | 0.247059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d7b59aae67df77c406df2ea4b2b858e8ab43f1be | 1,124 | py | Python | jdcloud_sdk/services/vod/models/OutFile.py | Tanc009/jdcloud-sdk-python | 8b045c99bc5b73ca7348e950b6f01e03a27982f5 | [
"Apache-2.0"
] | 14 | 2018-04-19T09:53:56.000Z | 2022-01-27T06:05:48.000Z | jdcloud_sdk/services/vod/models/OutFile.py | Tanc009/jdcloud-sdk-python | 8b045c99bc5b73ca7348e950b6f01e03a27982f5 | [
"Apache-2.0"
] | 15 | 2018-09-11T05:39:54.000Z | 2021-07-02T12:38:02.000Z | jdcloud_sdk/services/vod/models/OutFile.py | Tanc009/jdcloud-sdk-python | 8b045c99bc5b73ca7348e950b6f01e03a27982f5 | [
"Apache-2.0"
] | 33 | 2018-04-20T05:29:16.000Z | 2022-02-17T09:10:05.000Z | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 34.060606 | 92 | 0.75 | 152 | 1,124 | 5.519737 | 0.690789 | 0.071514 | 0.030989 | 0.038141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059197 | 0.158363 | 1,124 | 32 | 93 | 35.125 | 0.827696 | 0.8621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d7eb8494078f48cc7ce7eee5800c959140eb513c | 161 | py | Python | 04Aula16-09/ex03.py | danicon/Curso-IPE | 3b9e2a9d187492d6561a512363bd06156286df6a | [
"MIT"
] | 2 | 2020-09-09T12:50:57.000Z | 2020-09-09T12:56:02.000Z | 04Aula16-09/ex03.py | danicon/Curso-IPE | 3b9e2a9d187492d6561a512363bd06156286df6a | [
"MIT"
] | null | null | null | 04Aula16-09/ex03.py | danicon/Curso-IPE | 3b9e2a9d187492d6561a512363bd06156286df6a | [
"MIT"
] | null | null | null | fibona = 89
anterior = 34
while fibona > 0:
print(fibona)
fibona -= anterior
anterior = fibona - anterior
if fibona == 0:
print(fibona) | 16.1 | 32 | 0.602484 | 19 | 161 | 5.105263 | 0.421053 | 0.14433 | 0.247423 | 0.371134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0.304348 | 161 | 10 | 33 | 16.1 | 0.8125 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cc0cefd071c514607e91b8b120d8630346cd54c3 | 329 | py | Python | src/keypoints_detection/factory.py | lukaszkepka/PostureGuard | ce603f8e802eba35729b25f03c763e2587f29f00 | [
"MIT"
] | 8 | 2021-03-24T15:26:58.000Z | 2022-03-13T23:17:56.000Z | src/keypoints_detection/factory.py | lukaszkepka/PostureGuard | ce603f8e802eba35729b25f03c763e2587f29f00 | [
"MIT"
] | null | null | null | src/keypoints_detection/factory.py | lukaszkepka/PostureGuard | ce603f8e802eba35729b25f03c763e2587f29f00 | [
"MIT"
] | 3 | 2021-12-23T10:36:45.000Z | 2022-01-24T06:55:34.000Z | from keypoints_detection.KeypointDetector import KeypointDetector
from keypoints_detection.adapters.center_net import CenterNetKeypointDetectorAdapter
def create_keypoint_detector(model_path, network='center_net') -> KeypointDetector:
if network == 'center_net':
return CenterNetKeypointDetectorAdapter(mod... | 41.125 | 84 | 0.841945 | 32 | 329 | 8.375 | 0.5625 | 0.100746 | 0.164179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100304 | 329 | 7 | 85 | 47 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.06079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
cc142144bc0c0d7f50f7216a8bb464f43acf6912 | 301 | py | Python | web/utils/media_renderer.py | mlugowska/residence_time | 4546f29ac956725e1c8ca5d74d31e2c0a62b6a94 | [
"MIT"
] | null | null | null | web/utils/media_renderer.py | mlugowska/residence_time | 4546f29ac956725e1c8ca5d74d31e2c0a62b6a94 | [
"MIT"
] | 2 | 2021-06-09T18:53:43.000Z | 2021-06-10T19:42:20.000Z | web/utils/media_renderer.py | mlugowska/residence_time | 4546f29ac956725e1c8ca5d74d31e2c0a62b6a94 | [
"MIT"
] | null | null | null | from rest_framework.renderers import BaseRenderer
class PassthroughRenderer(BaseRenderer):
"""
Return data as-is. View should supply a Response.
"""
media_type = ''
format = ''
def render(self, data, accepted_media_type=None, renderer_context=None):
return data
| 23.153846 | 76 | 0.684385 | 34 | 301 | 5.911765 | 0.794118 | 0.099502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225914 | 301 | 12 | 77 | 25.083333 | 0.862661 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.166667 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
cc1ce2d7e18ec91f1234e669e4b16af0f947d6c5 | 14,366 | py | Python | financepy/products/equity/FinEquityVanillaOption.py | suhasghorp/FinancePy | 567486785b33768f229a404e860f92fd042034a2 | [
"BSD-3-Clause"
] | null | null | null | financepy/products/equity/FinEquityVanillaOption.py | suhasghorp/FinancePy | 567486785b33768f229a404e860f92fd042034a2 | [
"BSD-3-Clause"
] | 1 | 2020-05-07T14:38:23.000Z | 2020-05-07T14:38:23.000Z | financepy/products/equity/FinEquityVanillaOption.py | suhasghorp/FinancePy | 567486785b33768f229a404e860f92fd042034a2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 12 16:51:05 2016
@author: Dominic O'Kane
"""
import numpy as np
from scipy import optimize
from scipy.stats import norm
# from ...finutils.FinMath import N, nprime
from ...finutils.FinDate import FinDate
from ...finutils.FinMath import nprime
from ...finutils.FinGlobal... | 31.366812 | 79 | 0.507239 | 1,362 | 14,366 | 5.28928 | 0.11674 | 0.055941 | 0.014575 | 0.031233 | 0.784148 | 0.728345 | 0.676152 | 0.657135 | 0.628123 | 0.622848 | 0 | 0.021013 | 0.337463 | 14,366 | 457 | 80 | 31.435449 | 0.735869 | 0.012878 | 0 | 0.705696 | 0 | 0 | 0.072682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03481 | false | 0 | 0.03481 | 0 | 0.10443 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cc2654c6d1ae0e518a57e793efe7ccf6e32bcc50 | 13,459 | py | Python | src/adas/data.py | KhalilJDamouni/RMSGD_Pretest | dcc68fb03f9968b3338c8b8c2c3c400331a0c7d2 | [
"MIT"
] | null | null | null | src/adas/data.py | KhalilJDamouni/RMSGD_Pretest | dcc68fb03f9968b3338c8b8c2c3c400331a0c7d2 | [
"MIT"
] | null | null | null | src/adas/data.py | KhalilJDamouni/RMSGD_Pretest | dcc68fb03f9968b3338c8b8c2c3c400331a0c7d2 | [
"MIT"
] | null | null | null | """
MIT License
Copyright (c) 2020 Mahdi S. Hosseini and Mathieu Tuli
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, mo... | 39.469208 | 78 | 0.587116 | 1,515 | 13,459 | 5.087129 | 0.180858 | 0.029194 | 0.032698 | 0.05761 | 0.734916 | 0.724277 | 0.676917 | 0.672376 | 0.661996 | 0.661996 | 0 | 0.047403 | 0.313471 | 13,459 | 340 | 79 | 39.585294 | 0.786688 | 0.17453 | 0 | 0.720472 | 0 | 0 | 0.01164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011811 | false | 0 | 0.031496 | 0 | 0.055118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cc2bfbd9f33f9ab16972e243e2fc63973c734068 | 391 | py | Python | examples/static.py | web-i/ripple | d028fbf13bd3c2438c03ae896ac211c1f0c587b3 | [
"MIT"
] | 2 | 2015-01-28T13:20:12.000Z | 2015-03-28T14:58:33.000Z | examples/static.py | web-i/ripple | d028fbf13bd3c2438c03ae896ac211c1f0c587b3 | [
"MIT"
] | null | null | null | examples/static.py | web-i/ripple | d028fbf13bd3c2438c03ae896ac211c1f0c587b3 | [
"MIT"
] | null | null | null | '''
A webi for serving static directory.
'''
from ripple.middlewares import static, file_info
import ripple.adaptors
def dynamic(environ):
return 200, {}, '<html><body>not a static</body></html>'
if __name__ == '__main__':
from werkzeug.serving import run_simple
run_simple('localhost', 4000, ripple.adaptors.wsg... | 30.076923 | 121 | 0.746803 | 54 | 391 | 5.148148 | 0.62963 | 0.057554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020173 | 0.112532 | 391 | 12 | 122 | 32.583333 | 0.78098 | 0.092072 | 0 | 0 | 0 | 0 | 0.158501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
cc33ad75bea60390b3547513565941e9f29b3321 | 1,301 | py | Python | dbaas/account/tests/factory.py | didindinn/database-as-a-service | 747de31ff8546f7874ddd654af860e130afd17a0 | [
"BSD-3-Clause"
] | 303 | 2015-01-08T10:35:54.000Z | 2022-02-28T08:54:06.000Z | dbaas/account/tests/factory.py | nouraellm/database-as-a-service | 5e655c9347bea991b7218a01549f5e44f161d7be | [
"BSD-3-Clause"
] | 124 | 2015-01-14T12:56:15.000Z | 2022-03-22T20:45:11.000Z | dbaas/account/tests/factory.py | nouraellm/database-as-a-service | 5e655c9347bea991b7218a01549f5e44f161d7be | [
"BSD-3-Clause"
] | 110 | 2015-01-02T11:59:48.000Z | 2022-02-28T08:54:06.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.contrib.auth.models import User
import factory
from .. import models
class AccountUserFactory(factory.DjangoModelFactory):
FACTORY_FOR = models.AccountUser
username = factory.Sequence(lambda n: 'user_{0}'.format(n))
... | 30.255814 | 75 | 0.732513 | 159 | 1,301 | 5.874214 | 0.251572 | 0.14454 | 0.202355 | 0.211991 | 0.536403 | 0.300857 | 0.247323 | 0.247323 | 0.20985 | 0.20985 | 0 | 0.008905 | 0.136818 | 1,301 | 42 | 76 | 30.97619 | 0.822796 | 0.016141 | 0 | 0.16 | 0 | 0 | 0.101721 | 0.053991 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 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 |
0bcc64b6f6b525ad92d24c3ea89a51edfb425dd5 | 21 | py | Python | __init__.py | tukanuk/pyGroupChat | 9bfa43872caa1adf2c52dcd52d4b5b0088866ce0 | [
"MIT"
] | null | null | null | __init__.py | tukanuk/pyGroupChat | 9bfa43872caa1adf2c52dcd52d4b5b0088866ce0 | [
"MIT"
] | 2 | 2019-07-08T19:35:29.000Z | 2019-07-08T19:37:07.000Z | __init__.py | tukanuk/pyGroupChat | 9bfa43872caa1adf2c52dcd52d4b5b0088866ce0 | [
"MIT"
] | null | null | null | name = "pygroupchat"
| 10.5 | 20 | 0.714286 | 2 | 21 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0bd70a115e2e4ea575b144de88ead781fae12def | 450 | py | Python | setup.py | jdanbrown/potoo | 1a0c715ce81b52418aa17e5afb8d9f5340c93b92 | [
"MIT"
] | 2 | 2018-01-18T21:43:34.000Z | 2021-02-08T15:08:04.000Z | setup.py | jdanbrown/potoo | 1a0c715ce81b52418aa17e5afb8d9f5340c93b92 | [
"MIT"
] | null | null | null | setup.py | jdanbrown/potoo | 1a0c715ce81b52418aa17e5afb8d9f5340c93b92 | [
"MIT"
] | null | null | null | try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
from setuptools import find_packages, setup
setup(
name='potoo',
packages=find_packages(exclude=[]),
# Parse from reqs.txt
# - https://stackove... | 32.142857 | 99 | 0.711111 | 61 | 450 | 5.131148 | 0.606557 | 0.162939 | 0.089457 | 0.166134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050802 | 0.168889 | 450 | 13 | 100 | 34.615385 | 0.786096 | 0.217778 | 0 | 0 | 0 | 0 | 0.074928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0bf0d919b9cfa5a3c9be427a13f48915ab8c6083 | 3,959 | py | Python | graphgallery/utils/save.py | Sharpiless/GraphGallery | 5e8895cc2ca2fc06a31bfc58bc3b7a52e1ceddd0 | [
"MIT"
] | 1 | 2020-11-22T10:14:58.000Z | 2020-11-22T10:14:58.000Z | graphgallery/utils/save.py | Sharpiless/GraphGallery | 5e8895cc2ca2fc06a31bfc58bc3b7a52e1ceddd0 | [
"MIT"
] | null | null | null | graphgallery/utils/save.py | Sharpiless/GraphGallery | 5e8895cc2ca2fc06a31bfc58bc3b7a52e1ceddd0 | [
"MIT"
] | 1 | 2020-11-22T10:14:59.000Z | 2020-11-22T10:14:59.000Z | import torch
import six
import os.path as osp
import tensorflow as tf
_TORCH_POSTFIX = '.pt'
_TF_POSTFIX = '.h5'
def save_tf_model(model, filepath, overwrite=True, save_format=None, **kwargs):
postfix = _TF_POSTFIX
filepath_with_postfix = filepath
if not filepath_with_postfix.endswith(postfix):
... | 31.927419 | 100 | 0.720131 | 489 | 3,959 | 5.501022 | 0.167689 | 0.205204 | 0.324907 | 0.23197 | 0.705576 | 0.684015 | 0.616357 | 0.616357 | 0.616357 | 0.539033 | 0 | 0.00095 | 0.202576 | 3,959 | 123 | 101 | 32.186992 | 0.851124 | 0.046224 | 0 | 0.525 | 0 | 0 | 0.035209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1125 | false | 0 | 0.05 | 0 | 0.2375 | 0.0125 | 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 |
040038419d65b57c4c637f3c3c1f49a51447d760 | 269 | py | Python | genomepy/__init__.py | dohlee/genomepy | fbdd7d50dc16e92cc87a04dd5c51991c983034c5 | [
"MIT"
] | null | null | null | genomepy/__init__.py | dohlee/genomepy | fbdd7d50dc16e92cc87a04dd5c51991c983034c5 | [
"MIT"
] | null | null | null | genomepy/__init__.py | dohlee/genomepy | fbdd7d50dc16e92cc87a04dd5c51991c983034c5 | [
"MIT"
] | null | null | null | """Search, download and use genome FASTA files."""
from genomepy.functions import (
list_available_providers, list_available_genomes,
list_installed_genomes, search, install_genome,
Genome)
from genomepy.__about__ import __version__, __author__
| 38.428571 | 57 | 0.762082 | 30 | 269 | 6.2 | 0.666667 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171004 | 269 | 6 | 58 | 44.833333 | 0.834081 | 0.163569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
04188b93713964e6b9c2aa3558c6366b347d1b2a | 270 | py | Python | django_su/templatetags/su_tags.py | marknotfound/django-su | af989d8872a7add40eb1ec33a43a661f6429ea47 | [
"MIT"
] | 123 | 2015-01-06T00:38:04.000Z | 2022-02-02T10:50:12.000Z | django_su/templatetags/su_tags.py | marknotfound/django-su | af989d8872a7add40eb1ec33a43a661f6429ea47 | [
"MIT"
] | 42 | 2015-02-19T20:22:28.000Z | 2022-03-30T14:11:21.000Z | django_su/templatetags/su_tags.py | marknotfound/django-su | af989d8872a7add40eb1ec33a43a661f6429ea47 | [
"MIT"
] | 34 | 2015-06-15T22:24:00.000Z | 2022-02-02T10:50:13.000Z | # -*- coding: utf-8 -*-
from django import template
from ..utils import su_login_callback
register = template.Library()
@register.inclusion_tag('su/login_link.html', takes_context=False)
def login_su_link(user):
return {'can_su_login': su_login_callback(user)}
| 20.769231 | 66 | 0.751852 | 39 | 270 | 4.923077 | 0.615385 | 0.145833 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.118519 | 270 | 12 | 67 | 22.5 | 0.802521 | 0.077778 | 0 | 0 | 0 | 0 | 0.121457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
043143e4bfcc657e29d9763b2d1ff0efc44b56a2 | 5,851 | py | Python | pyocd/target/builtin/target_MK22FN512xxx12.py | vince-zeng/pyOCD | c9e7bbaee81c2c94b2d8f05a70b6f341457fdae1 | [
"Apache-2.0"
] | 1 | 2022-01-22T02:42:25.000Z | 2022-01-22T02:42:25.000Z | pyocd/target/builtin/target_MK22FN512xxx12.py | ARMmbed/pyOCD-Samsung | 03242b6eb57d2170a4b531d00f1a0577e2b0abde | [
"Apache-2.0"
] | null | null | null | pyocd/target/builtin/target_MK22FN512xxx12.py | ARMmbed/pyOCD-Samsung | 03242b6eb57d2170a4b531d00f1a0577e2b0abde | [
"Apache-2.0"
] | 1 | 2021-06-10T08:34:00.000Z | 2021-06-10T08:34:00.000Z | # pyOCD debugger
# Copyright (c) 2006-2013,2018 Arm Limited
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | 65.741573 | 113 | 0.74483 | 546 | 5,851 | 7.915751 | 0.787546 | 0.013882 | 0.006016 | 0.007404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.490293 | 0.172449 | 5,851 | 88 | 114 | 66.488636 | 0.402313 | 0.132114 | 0 | 0 | 0 | 0 | 0.03599 | 0 | 0 | 0 | 0.622503 | 0 | 0 | 1 | 0.015152 | false | 0 | 0.060606 | 0 | 0.106061 | 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 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
04440c701d57ffeb5ed9c75985dd00103e6f6410 | 575 | bzl | Python | source/bazel/deps/cloc/get.bzl | luxe/unilang | 6c8a431bf61755f4f0534c6299bd13aaeba4b69e | [
"MIT"
] | 33 | 2019-05-30T07:43:32.000Z | 2021-12-30T13:12:32.000Z | source/bazel/deps/cloc/get.bzl | luxe/unilang | 6c8a431bf61755f4f0534c6299bd13aaeba4b69e | [
"MIT"
] | 371 | 2019-05-16T15:23:50.000Z | 2021-09-04T15:45:27.000Z | source/bazel/deps/cloc/get.bzl | luxe/unilang | 6c8a431bf61755f4f0534c6299bd13aaeba4b69e | [
"MIT"
] | 6 | 2019-08-22T17:37:36.000Z | 2020-11-07T07:15:32.000Z | # Do not edit this file directly.
# It was auto-generated by: code/programs/reflexivity/reflexive_refresh
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def cloc():
http_archive(
name="cloc" ,
build_file="//bazel/deps/cloc:build.BUILD" ,
sha256="da1a0de6d8ce2f4e80fa7... | 33.823529 | 102 | 0.704348 | 56 | 575 | 7.107143 | 0.732143 | 0.055276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192797 | 0.17913 | 575 | 16 | 103 | 35.9375 | 0.650424 | 0.175652 | 0 | 0 | 1 | 0 | 0.605096 | 0.386412 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | true | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
04535257b31c8df432cf89575d1c9dd4e07d6ab6 | 206 | py | Python | pywps/response/status.py | janpisl/pywps | 73a1835359f0503e08fb007d75de699bf3cf29ed | [
"MIT"
] | null | null | null | pywps/response/status.py | janpisl/pywps | 73a1835359f0503e08fb007d75de699bf3cf29ed | [
"MIT"
] | null | null | null | pywps/response/status.py | janpisl/pywps | 73a1835359f0503e08fb007d75de699bf3cf29ed | [
"MIT"
] | null | null | null | from collections import namedtuple
_STATUS = namedtuple('Status', 'ERROR_STATUS, NO_STATUS, STORE_STATUS,'
'STORE_AND_UPDATE_STATUS, DONE_STATUS')
STATUS = _STATUS(0, 10, 20, 30, 40)
| 29.428571 | 71 | 0.694175 | 26 | 206 | 5.153846 | 0.615385 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054878 | 0.203884 | 206 | 6 | 72 | 34.333333 | 0.762195 | 0 | 0 | 0 | 0 | 0 | 0.38835 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
f0b4c9ccd811ea8cb371d2d6c83e1021dc0775ac | 377 | py | Python | djangocms_versioning/test_utils/incorrectly_configured_blogpost/models.py | Aiky30/djangocms-versioning | a18888f739260c8c4d1e50ed13aa794cf42593cf | [
"BSD-3-Clause"
] | 4 | 2021-12-02T14:36:45.000Z | 2022-03-04T02:58:01.000Z | djangocms_versioning/test_utils/incorrectly_configured_blogpost/models.py | Aiky30/djangocms-versioning | a18888f739260c8c4d1e50ed13aa794cf42593cf | [
"BSD-3-Clause"
] | 5 | 2022-02-23T15:14:16.000Z | 2022-03-18T14:53:41.000Z | djangocms_versioning/test_utils/incorrectly_configured_blogpost/models.py | Aiky30/djangocms-versioning | a18888f739260c8c4d1e50ed13aa794cf42593cf | [
"BSD-3-Clause"
] | 8 | 2022-02-13T12:37:20.000Z | 2022-03-23T16:55:35.000Z | from django.db import models
class IncorrectBlogPost(models.Model):
name = models.TextField()
def __str__(self):
return "{} ({})".format(self.name, self.pk)
class IncorrectBlogContent(models.Model):
blogpost = models.ForeignKey(IncorrectBlogPost, on_delete=models.CASCADE)
text = models.Text... | 22.176471 | 77 | 0.69496 | 42 | 377 | 6.02381 | 0.547619 | 0.086957 | 0.142292 | 0.166008 | 0.245059 | 0.245059 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185676 | 377 | 16 | 78 | 23.5625 | 0.824104 | 0 | 0 | 0.2 | 0 | 0 | 0.018568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.2 | 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 |
f0fe764329724b67b649402a649e9f0119291168 | 187 | py | Python | Web_Map/src/Extracter.py | pranayteaches/web_map | 7fbfec9441d887ddcacb325b3486604a705c68f2 | [
"Apache-2.0"
] | 2 | 2019-12-10T17:10:00.000Z | 2020-07-04T10:30:32.000Z | Web_Map/src/Extracter.py | pranayteaches/web_map | 7fbfec9441d887ddcacb325b3486604a705c68f2 | [
"Apache-2.0"
] | null | null | null | Web_Map/src/Extracter.py | pranayteaches/web_map | 7fbfec9441d887ddcacb325b3486604a705c68f2 | [
"Apache-2.0"
] | null | null | null | #Created and Initiated by Pranay Joshi
import pandas as pd
data = pd.read_csv("data.csv", usecols=['laboratory', 'coordinate', 'city', 'country', 'contact'])
data.to_csv(r'main.csv')
| 37.4 | 99 | 0.705882 | 28 | 187 | 4.642857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122995 | 187 | 4 | 100 | 46.75 | 0.792683 | 0.197861 | 0 | 0 | 0 | 0 | 0.372414 | 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 |
0b124c531b9fb5320a7b489c113e862c670f9542 | 2,292 | py | Python | sqlalchemy_acl/collections.py | matt-kubica/sqlalchemy-acl | f151e45a73cf79824a2967e082c18d47d853b714 | [
"MIT"
] | 1 | 2021-01-04T17:00:09.000Z | 2021-01-04T17:00:09.000Z | sqlalchemy_acl/collections.py | matt-kubica/sqlalchemy-acl | f151e45a73cf79824a2967e082c18d47d853b714 | [
"MIT"
] | null | null | null | sqlalchemy_acl/collections.py | matt-kubica/sqlalchemy-acl | f151e45a73cf79824a2967e082c18d47d853b714 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from .models import AccessLevelModel
class Iterator(ABC):
@abstractmethod
def get_next(self) -> AccessLevelModel:
pass
@abstractmethod
def has_more(self) -> bool:
pass
# iterator start at some node and iterate through all sub-nodes
# implements b... | 26.045455 | 97 | 0.640925 | 249 | 2,292 | 5.759036 | 0.385542 | 0.041841 | 0.04742 | 0.019526 | 0.066946 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001793 | 0.27007 | 2,292 | 88 | 98 | 26.045455 | 0.85535 | 0.082461 | 0 | 0.175439 | 0 | 0 | 0.035255 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.210526 | false | 0.052632 | 0.052632 | 0.017544 | 0.473684 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
9bc9878f346355f2f957fe174b58a95daa232868 | 3,031 | py | Python | meta/settings.py | Kingjmk/django-meta | 179082db071d029f9490528f67ed1e02e86935f1 | [
"BSD-4-Clause"
] | null | null | null | meta/settings.py | Kingjmk/django-meta | 179082db071d029f9490528f67ed1e02e86935f1 | [
"BSD-4-Clause"
] | null | null | null | meta/settings.py | Kingjmk/django-meta | 179082db071d029f9490528f67ed1e02e86935f1 | [
"BSD-4-Clause"
] | null | null | null | from django.conf import settings as django_settings
from django.utils.translation import gettext_lazy as _
SITE_PROTOCOL = getattr(django_settings, "META_SITE_PROTOCOL", None)
SITE_DOMAIN = getattr(django_settings, "META_SITE_DOMAIN", None)
SITE_TYPE = getattr(django_settings, "META_SITE_TYPE", None)
SITE_NAME = getat... | 48.111111 | 103 | 0.743649 | 371 | 3,031 | 5.598383 | 0.185984 | 0.215696 | 0.303322 | 0.361098 | 0.483871 | 0.125181 | 0.035628 | 0 | 0 | 0 | 0 | 0.002937 | 0.101287 | 3,031 | 62 | 104 | 48.887097 | 0.759545 | 0 | 0 | 0.033898 | 0 | 0 | 0.283405 | 0.056747 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033898 | 0 | 0.033898 | 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 |
9bd46d472a7e12b90e03ca7d1bd104d37c95a536 | 223 | py | Python | tools/bump_docker_version.py | agtiwari/cobra | b1c857ca5246985ae45dd94fbf0d7ffb82e3ee63 | [
"BSD-3-Clause"
] | 33 | 2019-07-26T20:12:44.000Z | 2022-02-17T06:06:45.000Z | tools/bump_docker_version.py | agtiwari/cobra | b1c857ca5246985ae45dd94fbf0d7ffb82e3ee63 | [
"BSD-3-Clause"
] | 17 | 2019-07-26T19:09:50.000Z | 2022-02-10T00:55:15.000Z | tools/bump_docker_version.py | agtiwari/cobra | b1c857ca5246985ae45dd94fbf0d7ffb82e3ee63 | [
"BSD-3-Clause"
] | 3 | 2021-02-24T01:18:51.000Z | 2021-06-07T05:29:22.000Z | with open('DOCKER_VERSION') as f:
version = f.read()
with open('DOCKER_VERSION', 'w') as f:
major, minor, patch = version.split('.')
patch = int(patch) + 1
f.write('{}.{}.{}\n'.format(major, minor, patch))
| 27.875 | 53 | 0.591928 | 32 | 223 | 4.0625 | 0.53125 | 0.123077 | 0.215385 | 0.323077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.188341 | 223 | 7 | 54 | 31.857143 | 0.712707 | 0 | 0 | 0 | 0 | 0 | 0.179372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9bdc5311eb4d2c465cadab88d5d2411167eb711d | 577 | py | Python | flask/flask_fundamentals/hello_flask/test.py | fatimaalheeh/python_stack | 9ba84e6dc030a65494f105152a97f0a38aa2e4f3 | [
"MIT"
] | null | null | null | flask/flask_fundamentals/hello_flask/test.py | fatimaalheeh/python_stack | 9ba84e6dc030a65494f105152a97f0a38aa2e4f3 | [
"MIT"
] | null | null | null | flask/flask_fundamentals/hello_flask/test.py | fatimaalheeh/python_stack | 9ba84e6dc030a65494f105152a97f0a38aa2e4f3 | [
"MIT"
] | null | null | null | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def hello_world():#default route
return 'hello!'
@app.route('/success/<name>') #'/success--/--<name>' the / can be replaced with any character -,$, , , . , .....
def success(name):#return a value from URL
print(name)
return 'He... | 28.85 | 113 | 0.665511 | 78 | 577 | 4.717949 | 0.5 | 0.086957 | 0.065217 | 0.13587 | 0.157609 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002028 | 0.145581 | 577 | 20 | 114 | 28.85 | 0.744422 | 0.233969 | 0 | 0 | 0 | 0 | 0.170843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.176471 | 0.529412 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9bec93d8e50a9d43d05b378ba8c50b2b7dd1e658 | 58 | py | Python | tests/template_backends/apps/good/templatetags/subpackage/tags.py | jpmallarino/django | 659d2421c7adbbcd205604002d521d82d6b0b465 | [
"BSD-3-Clause",
"0BSD"
] | 61,676 | 2015-01-01T00:05:13.000Z | 2022-03-31T20:37:54.000Z | tests/template_backends/apps/good/templatetags/subpackage/tags.py | jpmallarino/django | 659d2421c7adbbcd205604002d521d82d6b0b465 | [
"BSD-3-Clause",
"0BSD"
] | 8,884 | 2015-01-01T00:12:05.000Z | 2022-03-31T19:53:11.000Z | tests/template_backends/apps/good/templatetags/subpackage/tags.py | jpmallarino/django | 659d2421c7adbbcd205604002d521d82d6b0b465 | [
"BSD-3-Clause",
"0BSD"
] | 33,143 | 2015-01-01T02:04:52.000Z | 2022-03-31T19:42:46.000Z | from django.template import Library
register = Library()
| 14.5 | 35 | 0.793103 | 7 | 58 | 6.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 58 | 3 | 36 | 19.333333 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9bf44afeab477b515a2431f6e3eb709f3e4a47b8 | 356 | py | Python | tilescopegui/blueprints/__init__.py | PermutaTriangle/TileScopeGui | a7eb2fa7a10db54614bc6120a7a4c9a7324723b7 | [
"BSD-3-Clause"
] | null | null | null | tilescopegui/blueprints/__init__.py | PermutaTriangle/TileScopeGui | a7eb2fa7a10db54614bc6120a7a4c9a7324723b7 | [
"BSD-3-Clause"
] | null | null | null | tilescopegui/blueprints/__init__.py | PermutaTriangle/TileScopeGui | a7eb2fa7a10db54614bc6120a7a4c9a7324723b7 | [
"BSD-3-Clause"
] | null | null | null | from typing import List
from flask.blueprints import Blueprint
from .home import home_blueprint
from .strategies import strategies_blueprint
from .tiling import tiling_blueprint
def all_blueprints() -> List[Blueprint]:
"""Returns all blueprints."""
return [home_blueprint, tiling_blueprint, strategies_bluepr... | 22.25 | 67 | 0.789326 | 42 | 356 | 6.404762 | 0.333333 | 0.144981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134831 | 356 | 15 | 68 | 23.733333 | 0.873377 | 0.064607 | 0 | 0 | 0 | 0 | 0.042813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.625 | 0 | 0.875 | 0.875 | 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 | 0 | 1 | 1 | 0 | 3 |
9bf97d796d49cf77719af5e0c236714deb000916 | 2,790 | py | Python | tests/test_samples_on_local_steps.py | mlin/idseq-dag | b474fd434b95a3a65b53c7d9f875449ca3f42172 | [
"MIT"
] | 29 | 2018-10-09T14:43:20.000Z | 2020-11-24T03:30:28.000Z | tests/test_samples_on_local_steps.py | mlin/idseq-dag | b474fd434b95a3a65b53c7d9f875449ca3f42172 | [
"MIT"
] | 96 | 2018-06-05T20:53:27.000Z | 2020-08-15T00:13:26.000Z | tests/test_samples_on_local_steps.py | mlin/idseq-dag | b474fd434b95a3a65b53c7d9f875449ca3f42172 | [
"MIT"
] | 9 | 2018-08-27T21:03:37.000Z | 2020-08-20T23:49:23.000Z | import os
import unittest
from idseq_dag.steps.combine_taxon_counts import PipelineStepCombineTaxonCounts
from idseq_dag.steps.generate_alignment_viz import \
PipelineStepGenerateAlignmentViz
from idseq_dag.steps.generate_annotated_fasta import \
PipelineStepGenerateAnnotatedFasta
from idseq_dag.steps.generate... | 45 | 79 | 0.743369 | 316 | 2,790 | 6.193038 | 0.351266 | 0.053143 | 0.073582 | 0.104241 | 0.224834 | 0.105263 | 0.074604 | 0 | 0 | 0 | 0 | 0.017621 | 0.18638 | 2,790 | 61 | 80 | 45.737705 | 0.844493 | 0.046595 | 0 | 0.04 | 1 | 0 | 0.110316 | 0.03878 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.04 | false | 0 | 0.32 | 0 | 0.38 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5028db20c351e9e494640d0f0c911f2752caa85d | 2,208 | py | Python | packages/w3af/w3af/core/data/fuzzer/mutants/headers_mutant.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | 3 | 2019-04-09T22:59:33.000Z | 2019-06-14T09:23:24.000Z | tools/w3af/w3af/core/data/fuzzer/mutants/headers_mutant.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | tools/w3af/w3af/core/data/fuzzer/mutants/headers_mutant.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | """
HeadersMutant.py
Copyright 2006 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
w3af is distributed in the hope th... | 32.955224 | 95 | 0.658062 | 297 | 2,208 | 4.744108 | 0.47138 | 0.019872 | 0.048261 | 0.040454 | 0.126331 | 0.107878 | 0.068133 | 0.068133 | 0.068133 | 0 | 0 | 0.013614 | 0.268116 | 2,208 | 66 | 96 | 33.454545 | 0.858292 | 0.425725 | 0 | 0 | 0 | 0 | 0.07563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0.125 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
502cb1b3c6a5584afcd7956b6fbebebafda48c8d | 308 | py | Python | splitmind/models.py | jerdna-regeiz/splitmind | a95b50f308f6e78b15c1fae9ed11239a6b70bdb7 | [
"MIT"
] | 77 | 2019-09-23T23:44:09.000Z | 2022-03-27T03:09:32.000Z | splitmind/models.py | CHU-YUN-FEI/splitmind | a95b50f308f6e78b15c1fae9ed11239a6b70bdb7 | [
"MIT"
] | 7 | 2020-03-09T16:10:58.000Z | 2021-04-24T16:22:44.000Z | splitmind/models.py | CHU-YUN-FEI/splitmind | a95b50f308f6e78b15c1fae9ed11239a6b70bdb7 | [
"MIT"
] | 9 | 2020-04-15T03:53:57.000Z | 2022-03-17T21:29:42.000Z | from abc import ABC, abstractmethod
from collections import namedtuple
class Split(ABC, namedtuple('_Split', ['id','tty', 'display', 'settings'])):
"""Represents a split capable of displaying information.
Must be copyable without sideeffects"""
@abstractmethod
def size(self):
pass
| 28 | 76 | 0.704545 | 35 | 308 | 6.171429 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185065 | 308 | 10 | 77 | 30.8 | 0.860558 | 0.292208 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.333333 | 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 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
5045b0a3bd4c0389420cdf37959e469176ca03ce | 574 | py | Python | admin.py | zifnab06/fwdr | 353e863f3e67c86aae9d7572430bc96b76dedbf5 | [
"MIT"
] | null | null | null | admin.py | zifnab06/fwdr | 353e863f3e67c86aae9d7572430bc96b76dedbf5 | [
"MIT"
] | null | null | null | admin.py | zifnab06/fwdr | 353e863f3e67c86aae9d7572430bc96b76dedbf5 | [
"MIT"
] | null | null | null | from flask import redirect
from flask_admin.contrib.mongoengine import ModelView
from exceptions import AuthException
from extensions import admin, basic_auth
from models import Forward
class SecureModelView(ModelView):
def is_accessible(self):
if not basic_auth.authenticate():
raise AuthExce... | 23.916667 | 53 | 0.740418 | 64 | 574 | 6.53125 | 0.59375 | 0.064593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19338 | 574 | 23 | 54 | 24.956522 | 0.902808 | 0 | 0 | 0 | 0 | 0 | 0.029617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.3125 | 0.0625 | 0.6875 | 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 |
504b3a5d21e327abbb1304f0005d87df1dbaef1f | 570 | py | Python | cdl_rest_api/admin.py | zilkf92/profiles-rest-api | da1e99a125c368fae26d7fe0f32c87b9908d0111 | [
"MIT"
] | 2 | 2021-05-17T13:19:39.000Z | 2022-01-25T13:52:06.000Z | cdl_rest_api/admin.py | zilkf92/rest-api-photonic-qc | 48c64df2d3796205dadf2faa5c097d8b6ac4a2e1 | [
"MIT"
] | null | null | null | cdl_rest_api/admin.py | zilkf92/rest-api-photonic-qc | 48c64df2d3796205dadf2faa5c097d8b6ac4a2e1 | [
"MIT"
] | null | null | null | from django.contrib import admin
from cdl_rest_api import models
# Tell the Django admin to register user profile model with the
# admin site and makes it accessible through the admin interface
admin.site.register(models.UserProfile)
admin.site.register(models.ProfileFeedItem)
admin.site.register(models.Job)
admin.si... | 35.625 | 65 | 0.824561 | 84 | 570 | 5.571429 | 0.547619 | 0.115385 | 0.181624 | 0.245727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121053 | 570 | 15 | 66 | 38 | 0.934132 | 0.519298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5051aad65126300161357fa182058e3b0959f06f | 646 | py | Python | GCD.py | Darkhunter9/python | 8caa3d0aa4b06e5e48871ff085fc740b0ea2d7aa | [
"MIT"
] | null | null | null | GCD.py | Darkhunter9/python | 8caa3d0aa4b06e5e48871ff085fc740b0ea2d7aa | [
"MIT"
] | null | null | null | GCD.py | Darkhunter9/python | 8caa3d0aa4b06e5e48871ff085fc740b0ea2d7aa | [
"MIT"
] | 1 | 2022-01-08T00:20:15.000Z | 2022-01-08T00:20:15.000Z | import math
def greatest_common_divisor(*args):
"""
Find the greatest common divisor
"""
temp1 = list(args)
while len(temp1) > 1:
temp2 = math.gcd(temp1[0],temp1[1])
temp1.pop(0)
temp1[0] = temp2
return temp2
if __name__ == '__main__':
#These "asserts" using only... | 34 | 84 | 0.647059 | 91 | 646 | 4.395604 | 0.549451 | 0.21 | 0.315 | 0.27 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066265 | 0.229102 | 646 | 18 | 85 | 35.888889 | 0.736948 | 0.173375 | 0 | 0 | 0 | 0 | 0.118677 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 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 |
5056e9dd6bfe88e6d05ce878307e4b02b1647824 | 56 | py | Python | pymakelib/pynewproject_cproject/__init__.py | ericsonj/pymaketool | 3c177cf0f951f41f6ccec9efd478f95569c18b1b | [
"MIT"
] | 6 | 2021-01-26T12:11:12.000Z | 2021-03-30T00:16:47.000Z | pymakelib/pynewproject_cproject/__init__.py | ericsonj/pymaketool | 3c177cf0f951f41f6ccec9efd478f95569c18b1b | [
"MIT"
] | 1 | 2021-02-27T00:42:13.000Z | 2021-02-27T00:42:13.000Z | pymakelib/pynewproject_cproject/__init__.py | ericsonj/pymaketool | 3c177cf0f951f41f6ccec9efd478f95569c18b1b | [
"MIT"
] | 1 | 2020-10-21T20:34:36.000Z | 2020-10-21T20:34:36.000Z |
generators = [
"pynewproject_clinuxgcc.CLinuxGCC"
] | 14 | 38 | 0.732143 | 4 | 56 | 10 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160714 | 56 | 4 | 39 | 14 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ac8f4e54463b66843d053024fcd58279841fb9a4 | 1,363 | py | Python | src/lyrics-api/lyrics_api/model.py | wilsonify/lyrics | 94c493002d128af066850b50241f9056fff95757 | [
"MIT"
] | null | null | null | src/lyrics-api/lyrics_api/model.py | wilsonify/lyrics | 94c493002d128af066850b50241f9056fff95757 | [
"MIT"
] | 4 | 2019-11-27T15:31:58.000Z | 2021-02-25T09:26:47.000Z | src/lyrics-api/lyrics_api/model.py | wilsonify/lyrics | 94c493002d128af066850b50241f9056fff95757 | [
"MIT"
] | null | null | null | # generated by datamodel-codegen:
# filename: openapi.yaml
# timestamp: 2021-01-01T21:04:31+00:00
from __future__ import annotations
from typing import List, Optional
from pydantic import BaseModel, Field
class Grapheme(BaseModel):
name: str = Field(..., example='Yesterday', title='Name')
text: str = ... | 26.72549 | 102 | 0.6427 | 177 | 1,363 | 4.932203 | 0.491525 | 0.091638 | 0.120275 | 0.10882 | 0.297824 | 0.233677 | 0.233677 | 0.233677 | 0.148912 | 0.148912 | 0 | 0.027959 | 0.212766 | 1,363 | 50 | 103 | 27.26 | 0.784716 | 0.070433 | 0 | 0.193548 | 1 | 0.032258 | 0.243072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.096774 | 0 | 0.677419 | 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 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
aca20edf207bf7be695c40b0e1caeb267cdad001 | 68 | py | Python | config/config.py | sharkwouter/Whale | cf149c4f57a3837f0ff1d38449826a87eb481d3d | [
"MIT"
] | null | null | null | config/config.py | sharkwouter/Whale | cf149c4f57a3837f0ff1d38449826a87eb481d3d | [
"MIT"
] | null | null | null | config/config.py | sharkwouter/Whale | cf149c4f57a3837f0ff1d38449826a87eb481d3d | [
"MIT"
] | null | null | null | import docker
class Config:
docker_client = docker.from_env()
| 11.333333 | 37 | 0.735294 | 9 | 68 | 5.333333 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191176 | 68 | 5 | 38 | 13.6 | 0.872727 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
acac4caf335e63ef03c89bce1e93256e761815a0 | 1,023 | py | Python | projeto1.py | faculdadeCederj/interfacesGraficas | 4ed1555f7994be8ad9272214f7f64ac9a5b5a260 | [
"MIT"
] | null | null | null | projeto1.py | faculdadeCederj/interfacesGraficas | 4ed1555f7994be8ad9272214f7f64ac9a5b5a260 | [
"MIT"
] | null | null | null | projeto1.py | faculdadeCederj/interfacesGraficas | 4ed1555f7994be8ad9272214f7f64ac9a5b5a260 | [
"MIT"
] | 1 | 2020-04-10T15:08:41.000Z | 2020-04-10T15:08:41.000Z | class Fracao():
def __init__(self, n,d): # inicializa o numerador e denominador
try:
if d != 0:
self.n = n
self.d = d
else:
raise Exception
except Exception:
print('zero nao')
def __add__(self, other): # sobrescreve +
d = self.d * other.d
n = self.n * other.d + other.n * self.d
return... | 17.637931 | 80 | 0.593353 | 182 | 1,023 | 3.181319 | 0.236264 | 0.069085 | 0.207254 | 0.075993 | 0.471503 | 0.421416 | 0.364421 | 0.364421 | 0.364421 | 0.364421 | 0 | 0.009009 | 0.240469 | 1,023 | 57 | 81 | 17.947368 | 0.736165 | 0.239492 | 0 | 0.323529 | 0 | 0 | 0.010512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0.058824 | 0 | 0 | 0.352941 | 0.088235 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
acbf65b701154fc2164037ef613ffa2e05cd15ce | 17,426 | py | Python | test/test_quorum.py | LeastAuthority/wrap-tz-contracts | 1e972173e672b360825e3fa08c4fca08373c1c98 | [
"MIT"
] | 1 | 2021-10-16T16:52:37.000Z | 2021-10-16T16:52:37.000Z | test/test_quorum.py | LeastAuthority/wrap-tz-contracts | 1e972173e672b360825e3fa08c4fca08373c1c98 | [
"MIT"
] | null | null | null | test/test_quorum.py | LeastAuthority/wrap-tz-contracts | 1e972173e672b360825e3fa08c4fca08373c1c98 | [
"MIT"
] | null | null | null | import unittest
from pathlib import Path
from pytezos import Key, michelson_to_micheline, MichelsonRuntimeError
from pytezos.michelson.types import MichelsonType
from src.ligo import LigoContract
owner = "tz1S792fHX5rvs6GYP49S1U58isZkp2bNmn6"
minter_contract = "KT1VUNmGa1JYJuNxNS4XDzwpsc9N1gpcCBN2"
chain_id = "NetXm... | 48.138122 | 120 | 0.642488 | 1,945 | 17,426 | 5.397943 | 0.095116 | 0.053434 | 0.054291 | 0.058291 | 0.752738 | 0.737689 | 0.723116 | 0.697209 | 0.678731 | 0.608915 | 0 | 0.01323 | 0.253931 | 17,426 | 361 | 121 | 48.271468 | 0.794324 | 0 | 0 | 0.52901 | 0 | 0.003413 | 0.127683 | 0.025479 | 0 | 0 | 0 | 0 | 0.170648 | 1 | 0.095563 | false | 0 | 0.017065 | 0.010239 | 0.146758 | 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 |
acda847f48dda1129cbd3ba54cf12d71b49f6233 | 238 | py | Python | examples/uploads/views.py | nebumind-GmbH/aiohttp-tus | d3a9264e0259fd189328992bd8dec6df76afc575 | [
"BSD-3-Clause"
] | 8 | 2020-08-04T21:54:50.000Z | 2022-03-01T05:32:19.000Z | examples/uploads/views.py | nebumind-GmbH/aiohttp-tus | d3a9264e0259fd189328992bd8dec6df76afc575 | [
"BSD-3-Clause"
] | 5 | 2020-09-03T20:26:21.000Z | 2021-11-04T04:10:51.000Z | examples/uploads/views.py | nebumind-GmbH/aiohttp-tus | d3a9264e0259fd189328992bd8dec6df76afc575 | [
"BSD-3-Clause"
] | 2 | 2021-05-18T12:06:04.000Z | 2022-03-02T10:05:12.000Z | from aiohttp import web
from aiohttp_jinja2 import render_template
async def index(request: web.Request) -> web.Response:
return render_template(
"index.html", request, {"chunk_size": request.app._client_max_size - 1}
)
| 26.444444 | 79 | 0.731092 | 32 | 238 | 5.21875 | 0.625 | 0.131737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010152 | 0.172269 | 238 | 8 | 80 | 29.75 | 0.837563 | 0 | 0 | 0 | 0 | 0 | 0.084034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
acdd662071d8012d1d59993440bf6364887ec6ed | 214 | py | Python | accounts/signals.py | mirokrastev/cloud | b53d3c5f1698efaa8b98ed384338c2066a744fad | [
"MIT"
] | 1 | 2021-12-17T22:42:25.000Z | 2021-12-17T22:42:25.000Z | accounts/signals.py | mirokrastev/cloud | b53d3c5f1698efaa8b98ed384338c2066a744fad | [
"MIT"
] | null | null | null | accounts/signals.py | mirokrastev/cloud | b53d3c5f1698efaa8b98ed384338c2066a744fad | [
"MIT"
] | null | null | null | import os
from cloud import settings
def delete_user_folder(instance, **kwargs):
folder = f'{settings.MEDIA_ROOT}/{instance.username}-{instance.uuid}'
if os.path.exists(folder):
os.rmdir(folder)
| 21.4 | 73 | 0.71028 | 29 | 214 | 5.137931 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158879 | 214 | 9 | 74 | 23.777778 | 0.827778 | 0 | 0 | 0 | 0 | 0 | 0.266355 | 0.266355 | 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 |
acff9a86b3a2bce7095d5a1e33d8573a1a841809 | 1,070 | py | Python | server/realms/migrations/0007_auto_20220329_0639.py | synthetic-intelligence/zentral | 774104cea90b7f3d6f2aac655859c1b1f034f8dd | [
"Apache-2.0"
] | null | null | null | server/realms/migrations/0007_auto_20220329_0639.py | synthetic-intelligence/zentral | 774104cea90b7f3d6f2aac655859c1b1f034f8dd | [
"Apache-2.0"
] | null | null | null | server/realms/migrations/0007_auto_20220329_0639.py | synthetic-intelligence/zentral | 774104cea90b7f3d6f2aac655859c1b1f034f8dd | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.12 on 2022-03-29 06:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('realms', '0006_realmgroupmapping'),
]
operations = [
migrations.AlterField(
model_name='realm',
name='config',
... | 27.435897 | 65 | 0.571963 | 92 | 1,070 | 6.554348 | 0.5 | 0.165837 | 0.207297 | 0.240464 | 0.58209 | 0.437811 | 0.242123 | 0.242123 | 0.242123 | 0.242123 | 0 | 0.027397 | 0.317757 | 1,070 | 38 | 66 | 28.157895 | 0.79863 | 0.042991 | 0 | 0.5625 | 1 | 0 | 0.152642 | 0.072407 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.03125 | 0.03125 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4a042d9959a120b1ea284c7ee1ec4fb58f2ad932 | 11,754 | py | Python | utils/data_builder.py | Devwalkar/BOC-KD | a19bab41ec450a8d933371501ff1f1db934be5f3 | [
"MIT"
] | 2 | 2020-09-15T11:46:21.000Z | 2020-09-25T13:35:22.000Z | utils/data_builder.py | Devwalkar/BOC-KD | a19bab41ec450a8d933371501ff1f1db934be5f3 | [
"MIT"
] | null | null | null | utils/data_builder.py | Devwalkar/BOC-KD | a19bab41ec450a8d933371501ff1f1db934be5f3 | [
"MIT"
] | 2 | 2020-11-09T13:40:45.000Z | 2020-11-27T02:17:27.000Z | import torchvision.datasets as Data
import torchvision.transforms as transforms
import torch.utils.data as TD
import torch
import os
from .Caltech_loader import Caltech256
from .ImageNet_loader import ImageNetDataset
from .CUB2011_loader import Cub2011
device = 'cuda' if torch.cuda.is_available() else 'cp... | 49.805085 | 139 | 0.536498 | 1,143 | 11,754 | 5.387577 | 0.109361 | 0.053264 | 0.045469 | 0.063657 | 0.778175 | 0.76356 | 0.734005 | 0.699091 | 0.658493 | 0.647775 | 0 | 0.06504 | 0.355113 | 11,754 | 236 | 140 | 49.805085 | 0.747361 | 0.066445 | 0 | 0.42953 | 0 | 0 | 0.052115 | 0.00467 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006711 | false | 0 | 0.067114 | 0 | 0.080537 | 0.013423 | 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 |
4a0dec2468e73695c9fe2cbd89a767688fea3001 | 165 | py | Python | landsat_cogeo_mosaic/__init__.py | kylebarron/landsat-cogeo-mosaic | ca029d18b8decad3dd5445dd0b62dd5df1e5abda | [
"MIT"
] | 3 | 2020-04-01T16:01:46.000Z | 2021-01-12T23:18:02.000Z | landsat_cogeo_mosaic/__init__.py | kylebarron/landsat-cogeo-mosaic | ca029d18b8decad3dd5445dd0b62dd5df1e5abda | [
"MIT"
] | 17 | 2020-03-20T06:12:29.000Z | 2020-09-25T04:30:35.000Z | landsat_cogeo_mosaic/__init__.py | kylebarron/landsat-cogeo-mosaic | ca029d18b8decad3dd5445dd0b62dd5df1e5abda | [
"MIT"
] | null | null | null | __author__ = """Kyle Barron"""
__email__ = 'kylebarron2@gmail.com'
__version__ = '0.2.1'
from .mosaic import features_to_mosaicJSON
from .stac import fetch_sat_api
| 23.571429 | 42 | 0.769697 | 23 | 165 | 4.826087 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.115152 | 165 | 6 | 43 | 27.5 | 0.732877 | 0 | 0 | 0 | 0 | 0 | 0.224242 | 0.127273 | 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 |
4a159e631ad1abd365562bf10e8180b2e0b0aca4 | 149 | py | Python | tests/__init__.py | tom-andersson/neuralprocesses | 7696dc1c8bbe922fb2a1ba18fe0cdda041fc9cfd | [
"MIT"
] | null | null | null | tests/__init__.py | tom-andersson/neuralprocesses | 7696dc1c8bbe922fb2a1ba18fe0cdda041fc9cfd | [
"MIT"
] | null | null | null | tests/__init__.py | tom-andersson/neuralprocesses | 7696dc1c8bbe922fb2a1ba18fe0cdda041fc9cfd | [
"MIT"
] | null | null | null | import os
import sys
# Add package to path.
file_dir = os.path.dirname(__file__)
sys.path.insert(0, os.path.abspath(os.path.join(file_dir, "..")))
| 18.625 | 65 | 0.718121 | 26 | 149 | 3.884615 | 0.538462 | 0.178218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.114094 | 149 | 7 | 66 | 21.285714 | 0.757576 | 0.134228 | 0 | 0 | 0 | 0 | 0.015748 | 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 |
c598c48d3288ddbc0142f012c8d1ff24139597c3 | 2,185 | py | Python | core/utils/simulator_utils/md_utils/discrete_policy.py | L-Net-1992/DI-drive | cc7f47bedbf60922acbcf3a5f77fc8e274df62cf | [
"Apache-2.0"
] | 219 | 2021-07-07T21:55:21.000Z | 2022-03-31T14:56:43.000Z | core/utils/simulator_utils/md_utils/discrete_policy.py | L-Net-1992/DI-drive | cc7f47bedbf60922acbcf3a5f77fc8e274df62cf | [
"Apache-2.0"
] | 7 | 2021-08-11T05:26:19.000Z | 2022-03-29T22:21:24.000Z | core/utils/simulator_utils/md_utils/discrete_policy.py | L-Net-1992/DI-drive | cc7f47bedbf60922acbcf3a5f77fc8e274df62cf | [
"Apache-2.0"
] | 29 | 2021-07-08T03:17:22.000Z | 2022-03-16T03:51:43.000Z | import logging
import numpy as np
from metadrive.component.vehicle_module.PID_controller import PIDController
from metadrive.policy.base_policy import BasePolicy
from metadrive.policy.manual_control_policy import ManualControlPolicy
from metadrive.utils.math_utils import not_zero, wrap_to_pi, point_distance
from meta... | 32.132353 | 101 | 0.745995 | 273 | 2,185 | 5.761905 | 0.369963 | 0.099174 | 0.053401 | 0.0178 | 0.073744 | 0.044501 | 0 | 0 | 0 | 0 | 0 | 0.003865 | 0.171167 | 2,185 | 67 | 102 | 32.61194 | 0.864716 | 0.121281 | 0 | 0.162791 | 0 | 0 | 0.021444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.395349 | 0.046512 | 0.72093 | 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 |
c5a67c8059e681a1e8f64d13e9605ad9c97a8663 | 663 | py | Python | linguistics/google/GoogleTokenSpan.py | idin/mercurius | 48a4ed7843fb5d1946ef8051f23da7b32ab52ca3 | [
"MIT"
] | 7 | 2019-02-24T16:56:46.000Z | 2022-01-30T03:26:49.000Z | linguistics/google/GoogleTokenSpan.py | idin/mercurius | 48a4ed7843fb5d1946ef8051f23da7b32ab52ca3 | [
"MIT"
] | 1 | 2020-07-14T21:00:57.000Z | 2021-02-25T07:12:11.000Z | linguistics/google/GoogleTokenSpan.py | idin/linguistics | ab9568d81b225928beab353174fd97ccb0fe369c | [
"MIT"
] | null | null | null | from .GoogleDocumentObject import GoogleDocumentObject
from .GoogleToken import GoogleToken
class GoogleTokenSpan(GoogleDocumentObject):
def __init__(self, dictionary, document, begin, end):
super().__init__(dictionary=dictionary, document=document, begin=begin, end=end)
self._tokens = None
def __str__(self):
... | 25.5 | 98 | 0.728507 | 83 | 663 | 5.578313 | 0.349398 | 0.107991 | 0.056156 | 0.064795 | 0.082073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 663 | 25 | 99 | 26.52 | 0.828265 | 0.037707 | 0 | 0 | 0 | 0 | 0.003195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0.117647 | 0.588235 | 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 |
c5ad6b73b73372b5017f7cc12b13ac3cb82ad241 | 1,950 | py | Python | RocketDBaaS/tests.py | BrianWaganerSTL/RocketDBaaS | d924589188411371842513060a5e08b1be3cdccf | [
"MIT"
] | 1 | 2018-11-04T09:36:35.000Z | 2018-11-04T09:36:35.000Z | RocketDBaaS/tests.py | BrianWaganerSTL/RocketDBaaS_api | d924589188411371842513060a5e08b1be3cdccf | [
"MIT"
] | null | null | null | RocketDBaaS/tests.py | BrianWaganerSTL/RocketDBaaS_api | d924589188411371842513060a5e08b1be3cdccf | [
"MIT"
] | null | null | null | from unittest import TestCase
from RocketDBaaS.settings import uiUrl, MINION_PORT, LOGGING, DATABASES, SECRET_KEY, emailFromPostgres, emailCcPostgres, replyToPostgres, emailFromMongo, emailCcMongo, replyToMongo
class TestSetting(TestCase):
def test_uiUrl(self):
self.assertTrue((uiUrl != None and uiUrl != ''),... | 48.75 | 180 | 0.744103 | 252 | 1,950 | 5.630952 | 0.138889 | 0.054264 | 0.139535 | 0.085271 | 0.281889 | 0.281889 | 0.281889 | 0.281889 | 0.260747 | 0.260747 | 0 | 0 | 0.141538 | 1,950 | 39 | 181 | 50 | 0.84767 | 0 | 0 | 0 | 0 | 0 | 0.279487 | 0 | 0 | 0 | 0 | 0 | 0.44 | 1 | 0.44 | false | 0 | 0.08 | 0 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c5ba09571cacb2d6cf6fbbd189980fc18c0a1559 | 1,187 | py | Python | lib_consumer/graylog_client_tcp.py | Vettabase/mariadb-to-graylog | e1e5bc3b8af9a4af773538affc0276d433098926 | [
"BSD-3-Clause"
] | null | null | null | lib_consumer/graylog_client_tcp.py | Vettabase/mariadb-to-graylog | e1e5bc3b8af9a4af773538affc0276d433098926 | [
"BSD-3-Clause"
] | 7 | 2022-03-07T15:37:22.000Z | 2022-03-25T13:07:53.000Z | lib_consumer/graylog_client_tcp.py | Vettabase/mariadb-to-graylog | e1e5bc3b8af9a4af773538affc0276d433098926 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
""" Send messages to Graylog using a TCP port.
"""
from .graylog_client import Graylog_Client
class Graylog_Client_TCP(Graylog_Client):
""" Send messages to Graylog using a TCP port.
"""
import socket
#: Tuple representing Graylog host and port.
#: Useful in case we ... | 25.804348 | 85 | 0.64027 | 153 | 1,187 | 4.79085 | 0.496732 | 0.076398 | 0.038199 | 0.057299 | 0.163711 | 0.092769 | 0.092769 | 0.092769 | 0 | 0 | 0 | 0.00678 | 0.254423 | 1,187 | 46 | 86 | 25.804348 | 0.821469 | 0.437237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.571429 | 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 |
c5bd7ad8dae204d6d702f77d96d991694fbd2688 | 719 | py | Python | events/migrations/0008_auto_20190407_1227.py | gauravuttarkar/SoftwareEngineering | 23c6e58176fcb27031f9095a1090c2f72602a3f6 | [
"MIT"
] | null | null | null | events/migrations/0008_auto_20190407_1227.py | gauravuttarkar/SoftwareEngineering | 23c6e58176fcb27031f9095a1090c2f72602a3f6 | [
"MIT"
] | 3 | 2020-06-05T20:14:46.000Z | 2021-06-10T21:20:45.000Z | events/migrations/0008_auto_20190407_1227.py | gauravuttarkar/SoftwareEngineering | 23c6e58176fcb27031f9095a1090c2f72602a3f6 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.9 on 2019-04-07 12:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('events', '0007_donations'),
]
operations = [
migrations.RemoveField(
model_name='bankdetails',
name='userName'... | 22.46875 | 48 | 0.506259 | 55 | 719 | 6.545455 | 0.563636 | 0.175 | 0.216667 | 0.25 | 0.238889 | 0.238889 | 0 | 0 | 0 | 0 | 0 | 0.043084 | 0.386648 | 719 | 31 | 49 | 23.193548 | 0.773243 | 0.062587 | 0 | 0.48 | 1 | 0 | 0.143526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.16 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c5cbda2b63ddac23f1a2df92f08d0a9f1edb13ea | 312 | py | Python | backend/college/admin.py | hellsayenci/ats | 8c7166ac1f797d3cf2c6fc92d3ac2e78f550fb53 | [
"Apache-2.0"
] | 9 | 2019-12-22T09:43:45.000Z | 2021-11-14T20:43:00.000Z | backend/college/admin.py | hellsayenci/ats | 8c7166ac1f797d3cf2c6fc92d3ac2e78f550fb53 | [
"Apache-2.0"
] | 11 | 2020-06-06T01:01:39.000Z | 2022-02-10T20:33:13.000Z | backend/college/admin.py | hellsayenci/ats | 8c7166ac1f797d3cf2c6fc92d3ac2e78f550fb53 | [
"Apache-2.0"
] | 4 | 2019-12-22T05:26:50.000Z | 2021-07-29T04:10:21.000Z | from django.contrib import admin
# Register your models here.
from college.models import College
@admin.register(College)
class CollegeAdmin(admin.ModelAdmin):
list_display = ("name", "country", "alpha_two_code", "state_province")
list_filter = ("name", "country", "alpha_two_code", "state_province")
| 28.363636 | 74 | 0.746795 | 39 | 312 | 5.769231 | 0.589744 | 0.115556 | 0.142222 | 0.168889 | 0.32 | 0.32 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0.125 | 312 | 10 | 75 | 31.2 | 0.824176 | 0.083333 | 0 | 0 | 0 | 0 | 0.274648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 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 |
c5cf9aefb4ffd24d74baf1cc7102c7a9008e4545 | 238 | py | Python | wsgi.py | talhaobject90/framework.com | 041452d2a667226ca2eff72932ef87dec1fd813b | [
"MIT"
] | null | null | null | wsgi.py | talhaobject90/framework.com | 041452d2a667226ca2eff72932ef87dec1fd813b | [
"MIT"
] | null | null | null | wsgi.py | talhaobject90/framework.com | 041452d2a667226ca2eff72932ef87dec1fd813b | [
"MIT"
] | null | null | null | import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "framework.settings")
#os.environ["DJANGO_SETTINGS_MODULE"] = "beachnbeach.settings"
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
| 21.636364 | 69 | 0.802521 | 29 | 238 | 6.310345 | 0.482759 | 0.098361 | 0.218579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092437 | 238 | 10 | 70 | 23.8 | 0.847222 | 0.256303 | 0 | 0 | 0 | 0 | 0.227273 | 0.125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c5d7570fa2e99791c8af309b2c8fbe751c33dcdd | 4,820 | py | Python | pava/implementation/natives/sun/security/jgss/wrapper/GSSLibStub.py | laffra/pava | 54d10cf7f8def2f96e254c0356623d08f221536f | [
"MIT"
] | 4 | 2017-03-30T16:51:16.000Z | 2020-10-05T12:25:47.000Z | pava/implementation/natives/sun/security/jgss/wrapper/GSSLibStub.py | laffra/pava | 54d10cf7f8def2f96e254c0356623d08f221536f | [
"MIT"
] | null | null | null | pava/implementation/natives/sun/security/jgss/wrapper/GSSLibStub.py | laffra/pava | 54d10cf7f8def2f96e254c0356623d08f221536f | [
"MIT"
] | null | null | null | def add_native_methods(clazz):
def init__java_lang_String__boolean__(a0, a1):
raise NotImplementedError()
def indicateMechs____():
raise NotImplementedError()
def inquireNamesForMech____(a0):
raise NotImplementedError()
def releaseName__long__(a0, a1):
raise NotImpleme... | 41.913043 | 227 | 0.797095 | 517 | 4,820 | 6.220503 | 0.11412 | 0.208955 | 0.226679 | 0.130597 | 0.617537 | 0.55255 | 0.347326 | 0.277985 | 0.21704 | 0.206468 | 0 | 0.018803 | 0.150415 | 4,820 | 114 | 228 | 42.280702 | 0.766545 | 0 | 0 | 0.329412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.341176 | false | 0 | 0.047059 | 0 | 0.388235 | 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 |
c5de45ac6cc9a0de1457bb5510f94a05e0d718e3 | 1,001 | py | Python | backend/security/views/change_password.py | szkkteam/agrosys | a390332202f7200632d2ff3816e1b0f3cc76f586 | [
"MIT"
] | null | null | null | backend/security/views/change_password.py | szkkteam/agrosys | a390332202f7200632d2ff3816e1b0f3cc76f586 | [
"MIT"
] | 2 | 2021-03-31T19:36:44.000Z | 2021-12-13T20:30:11.000Z | backend/security/views/change_password.py | szkkteam/flask-starter | 7019036e7ee017ca5df9059d0b4a0d29005beab5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Common Python library imports
from http import HTTPStatus
# Pip package imports
from flask import after_this_request, jsonify, request
from flask_login import current_user
from flask_security.changeable import change_user_password
from flask_security.views import _secur... | 29.441176 | 72 | 0.772228 | 129 | 1,001 | 5.751938 | 0.465116 | 0.048518 | 0.048518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001156 | 0.135864 | 1,001 | 33 | 73 | 30.333333 | 0.856647 | 0.116883 | 0 | 0 | 0 | 0 | 0.035267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.25 | 0.45 | 0 | 0.6 | 0.05 | 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 |
c5df025a150a4a74717d356dd0ac4dae0e23bbf8 | 328 | py | Python | main.py | tomheaton/spss-editor | 503cc8bfffa093d9e3c0c02731c0645f55879f35 | [
"MIT"
] | 1 | 2022-01-28T21:57:58.000Z | 2022-01-28T21:57:58.000Z | main.py | tomheaton/spss-editor | 503cc8bfffa093d9e3c0c02731c0645f55879f35 | [
"MIT"
] | null | null | null | main.py | tomheaton/spss-editor | 503cc8bfffa093d9e3c0c02731c0645f55879f35 | [
"MIT"
] | null | null | null | import os
import pandas as pd
import numpy as np
import pyreadstat
def main():
# data = pd.read_spss(os.path.join(os.path.dirname(__file__), './data/Profile1.sav'))
# data.tail()
df, meta = pyreadstat.read_sav(os.path.join(os.path.dirname(__file__), './data/Profile1.sav'))
if __name__ == '__main__':
... | 21.866667 | 98 | 0.679878 | 49 | 328 | 4.183673 | 0.489796 | 0.117073 | 0.097561 | 0.117073 | 0.409756 | 0.409756 | 0.409756 | 0.409756 | 0.409756 | 0.409756 | 0 | 0.00722 | 0.155488 | 328 | 14 | 99 | 23.428571 | 0.732852 | 0.289634 | 0 | 0 | 0 | 0 | 0.117391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.5 | 0 | 0.625 | 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 |
c5dfb0ce8f65aac05e78630a6ed19efa11331194 | 241 | py | Python | home/views.py | G-Papad/tedxntua2022_beta | 18ddd3926deed619da65e5dee309492d9116cefb | [
"MIT"
] | null | null | null | home/views.py | G-Papad/tedxntua2022_beta | 18ddd3926deed619da65e5dee309492d9116cefb | [
"MIT"
] | 4 | 2022-03-22T18:59:40.000Z | 2022-03-22T20:38:39.000Z | home/views.py | G-Papad/tedxntua2022_beta | 18ddd3926deed619da65e5dee309492d9116cefb | [
"MIT"
] | 1 | 2022-03-20T15:28:18.000Z | 2022-03-20T15:28:18.000Z | from django.shortcuts import render
from .models import *
# Create your views here.
def home(request):
previousEvents = PreviousEvent.objects.all()
return render(request, 'placeholder_home.html', {'previousEvents': previousEvents})
| 30.125 | 87 | 0.763485 | 27 | 241 | 6.777778 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13278 | 241 | 7 | 88 | 34.428571 | 0.875598 | 0.095436 | 0 | 0 | 0 | 0 | 0.162037 | 0.097222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c5e07a16fe91d2c0a4583ef6ca4d312eda2d230c | 2,688 | py | Python | app/models.py | StacyChebet/speed-pitching | bc0e4bfb4296088188686e5f69f7b2d66acd2504 | [
"Unlicense"
] | 1 | 2018-12-10T15:34:53.000Z | 2018-12-10T15:34:53.000Z | app/models.py | StacyChebet/speed-pitching | bc0e4bfb4296088188686e5f69f7b2d66acd2504 | [
"Unlicense"
] | null | null | null | app/models.py | StacyChebet/speed-pitching | bc0e4bfb4296088188686e5f69f7b2d66acd2504 | [
"Unlicense"
] | null | null | null | from . import db
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
from . import login_manager
from datetime import datetime
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(UserMixin,db.Model):
__tablen... | 32.780488 | 101 | 0.673735 | 363 | 2,688 | 4.842975 | 0.223141 | 0.086462 | 0.108077 | 0.081911 | 0.394767 | 0.341866 | 0.3157 | 0.283276 | 0.204778 | 0.204778 | 0 | 0.006935 | 0.195313 | 2,688 | 81 | 102 | 33.185185 | 0.805825 | 0.021577 | 0 | 0.241935 | 1 | 0 | 0.045402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0.129032 | 0.080645 | 0.032258 | 0.758065 | 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 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c5e2771f0d3369b7f85aa70a50090dff5c47ae72 | 257 | py | Python | protostar/commands/update/updating_exceptions.py | software-mansion/protostar | e9f701d3b02dde78e5292a4698ca3c6c7d39b485 | [
"MIT"
] | 11 | 2022-01-31T14:27:32.000Z | 2022-03-28T18:24:45.000Z | protostar/commands/update/updating_exceptions.py | software-mansion/protostar | e9f701d3b02dde78e5292a4698ca3c6c7d39b485 | [
"MIT"
] | 105 | 2022-01-31T15:25:29.000Z | 2022-03-31T12:28:13.000Z | protostar/commands/update/updating_exceptions.py | software-mansion/protostar | e9f701d3b02dde78e5292a4698ca3c6c7d39b485 | [
"MIT"
] | 1 | 2022-03-28T16:18:28.000Z | 2022-03-28T16:18:28.000Z | from protostar.protostar_exception import ProtostarException
class UpdatingException(ProtostarException):
pass
class PackageAlreadyUpToDateException(UpdatingException):
def __init__(self):
super().__init__("Package already up to date.")
| 23.363636 | 60 | 0.789883 | 23 | 257 | 8.434783 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140078 | 257 | 10 | 61 | 25.7 | 0.877828 | 0 | 0 | 0 | 0 | 0 | 0.105058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.166667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c5f9a70da5feeaa7f1513b592021fec5412ea15a | 1,411 | py | Python | Ago-Dic-2018/Max/Ejercicios-Segundo-Parcial/SingleResposailityPrinciple.py | angelicardz/DAS_Sistemas | e2a69fec358f0fad4fe05c39ea6168c89eed41ac | [
"MIT"
] | 41 | 2017-09-26T09:36:32.000Z | 2022-03-19T18:05:25.000Z | Ago-Dic-2018/Max/Ejercicios-Segundo-Parcial/SingleResposailityPrinciple.py | angelicardz/DAS_Sistemas | e2a69fec358f0fad4fe05c39ea6168c89eed41ac | [
"MIT"
] | 67 | 2017-09-11T05:06:12.000Z | 2022-02-14T04:44:04.000Z | Ago-Dic-2018/Max/Ejercicios-Segundo-Parcial/SingleResposailityPrinciple.py | angelicardz/DAS_Sistemas | e2a69fec358f0fad4fe05c39ea6168c89eed41ac | [
"MIT"
] | 210 | 2017-09-01T00:10:08.000Z | 2022-03-19T18:05:12.000Z | import json #Formato de intercambio de datos con una respectiva API
from abc import ABCMeta, abstractmethod #Metaclase para la definición de clases base abstractas, Utilice esta metaclase para crear un ABC
#Single Responsibility Principle : Una clase, función y/o objeto
#debe de tener una única responsabilidad, y esta... | 30.021277 | 137 | 0.715804 | 190 | 1,411 | 5.273684 | 0.557895 | 0.04491 | 0.02994 | 0.03992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007149 | 0.206945 | 1,411 | 46 | 138 | 30.673913 | 0.888293 | 0.46421 | 0 | 0.307692 | 0 | 0 | 0.048452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0.076923 | 0.076923 | 0.076923 | 0.576923 | 0.038462 | 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 |
680fe008e3f7d384cba771ae1d2cf324b95cabcb | 85 | py | Python | experimental_code/integratedAltAz/gps.py | rex-mcall/EST_Internship_2021 | e2281925c0410e10cf779f8da37d2cf0b58c893a | [
"MIT"
] | null | null | null | experimental_code/integratedAltAz/gps.py | rex-mcall/EST_Internship_2021 | e2281925c0410e10cf779f8da37d2cf0b58c893a | [
"MIT"
] | null | null | null | experimental_code/integratedAltAz/gps.py | rex-mcall/EST_Internship_2021 | e2281925c0410e10cf779f8da37d2cf0b58c893a | [
"MIT"
] | null | null | null | #annapolis
latitude = 38.9784
# longitude = -76.4922
longitude = 283.5078
height = 13 | 17 | 22 | 0.729412 | 12 | 85 | 5.166667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 0.152941 | 85 | 5 | 23 | 17 | 0.569444 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 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 |
6810d765537653de0d276834080afe82b5e55463 | 362 | py | Python | conanfile.py | fmckenna/testActions | a44b92645e4b0b3072ba9df1b85db2b6d0e665e1 | [
"BSD-2-Clause"
] | null | null | null | conanfile.py | fmckenna/testActions | a44b92645e4b0b3072ba9df1b85db2b6d0e665e1 | [
"BSD-2-Clause"
] | null | null | null | conanfile.py | fmckenna/testActions | a44b92645e4b0b3072ba9df1b85db2b6d0e665e1 | [
"BSD-2-Clause"
] | null | null | null | from conans import ConanFile
class test(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "qmake"
requires = "qt/5.15.2"
build_policy = "missing"
def configure(self):
self.options["qt"].qt3d = True
self.options["qt"].qtcharts = True
self... | 27.846154 | 57 | 0.577348 | 41 | 362 | 5.04878 | 0.707317 | 0.15942 | 0.188406 | 0.164251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.281768 | 362 | 12 | 58 | 30.166667 | 0.776923 | 0 | 0 | 0 | 0 | 0 | 0.140884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.7 | 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 |
a86ab268e6b87331cef52b99f9d014ca6cb6a0de | 301 | py | Python | qoc/standard/utils/__init__.py | alibabaquantumlab/qoc | 273d5eff19b404107d45e655fe07cc55d80435e7 | [
"MIT"
] | 12 | 2019-09-03T09:00:22.000Z | 2022-03-28T02:41:03.000Z | qoc/standard/utils/__init__.py | alibabaquantumlab/qoc | 273d5eff19b404107d45e655fe07cc55d80435e7 | [
"MIT"
] | 9 | 2019-09-10T15:04:21.000Z | 2022-01-07T08:43:52.000Z | qoc/standard/utils/__init__.py | alibabaquantumlab/qoc | 273d5eff19b404107d45e655fe07cc55d80435e7 | [
"MIT"
] | 13 | 2019-09-09T22:51:00.000Z | 2022-01-04T15:35:36.000Z | """
util - This directory houses modules that extend external packages
"""
from .autogradutil import (ans_jacobian,)
from .fileutil import (generate_save_file_path,)
from .jsonutil import (CustomJSONEncoder,)
__all__ = [
"ans_jacobian",
"generate_save_file_path",
"CustomJSONEncoder",
]
| 21.5 | 66 | 0.747508 | 33 | 301 | 6.454545 | 0.666667 | 0.103286 | 0.150235 | 0.187793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149502 | 301 | 13 | 67 | 23.153846 | 0.832031 | 0.219269 | 0 | 0 | 1 | 0 | 0.229075 | 0.101322 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a8a2ba0243a6dafd2897d3e9bd38a25127b4f0af | 124 | py | Python | app1/app/utils/common.py | hzjsea/fastapi-admin | 6a72e83ad967d5a33a1c9d1e861685d68bef06b1 | [
"Apache-2.0"
] | null | null | null | app1/app/utils/common.py | hzjsea/fastapi-admin | 6a72e83ad967d5a33a1c9d1e861685d68bef06b1 | [
"Apache-2.0"
] | null | null | null | app1/app/utils/common.py | hzjsea/fastapi-admin | 6a72e83ad967d5a33a1c9d1e861685d68bef06b1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# encoding: utf-8
"""
@author: hzjsea
@file: common.py.py
@time: 2021/12/1 5:11 下午
"""
# send_email | 12.4 | 24 | 0.645161 | 22 | 124 | 3.590909 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 0.145161 | 124 | 10 | 25 | 12.4 | 0.632075 | 0.879032 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a8ad54eeb9a7e1384dc9b565af1661f5be79332d | 1,190 | py | Python | stubs.min/Autodesk/Revit/UI/__init___parts/RibbonItemType.py | denfromufa/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2017-07-07T11:15:45.000Z | 2017-07-07T11:15:45.000Z | stubs.min/Autodesk/Revit/UI/__init___parts/RibbonItemType.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/Autodesk/Revit/UI/__init___parts/RibbonItemType.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class RibbonItemType(Enum,IComparable,IFormattable,IConvertible):
"""
An enumerated type listing all the toolbar item styles.
enum RibbonItemType,values: ComboBox (6),ComboBoxMember (5),PulldownButton (1),PushButton (0),RadioButtonGroup (4),SplitButton (2),TextBox (7),ToggleButton (3)
"""
def __eq__(self... | 29.75 | 215 | 0.689916 | 150 | 1,190 | 4.84 | 0.393333 | 0.110193 | 0.115702 | 0.123967 | 0.177686 | 0.177686 | 0.177686 | 0.155647 | 0.155647 | 0.155647 | 0 | 0.008024 | 0.162185 | 1,190 | 39 | 216 | 30.512821 | 0.72016 | 0.458824 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a8b244b55d15cdb2e3c2bc176c5958cc8295036f | 118 | py | Python | pythia/tasks/dialog/visdial/__init__.py | mandliya/pythia_updated | e986c4dff7cc3a9f6b85ffe8e7d45ea53ab36e95 | [
"BSD-3-Clause"
] | 35 | 2020-03-06T13:05:17.000Z | 2021-07-30T15:12:00.000Z | pythia/tasks/dialog/visdial/__init__.py | Bunlong/pythia | 1bed85e59a753bec73e6d3fcf1461651d45c791b | [
"BSD-3-Clause"
] | 1 | 2020-10-05T10:11:24.000Z | 2020-10-05T10:11:24.000Z | pythia/tasks/dialog/visdial/__init__.py | Bunlong/pythia | 1bed85e59a753bec73e6d3fcf1461651d45c791b | [
"BSD-3-Clause"
] | 11 | 2020-03-07T08:10:15.000Z | 2021-06-24T05:39:36.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
__all__ = ["VisualDialogTask"]
from .task import VisualDialogTask
| 23.6 | 50 | 0.762712 | 13 | 118 | 6.615385 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 118 | 4 | 51 | 29.5 | 0.843137 | 0.40678 | 0 | 0 | 0 | 0 | 0.235294 | 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 |
a8d83e502b0a2856a4378e33cdc40e1e1a676169 | 1,695 | py | Python | paraml/localDockerIPP.py | yadudoc/ParaML | 17464483c09785068c797b66ac591f01a17150a8 | [
"Apache-2.0"
] | null | null | null | paraml/localDockerIPP.py | yadudoc/ParaML | 17464483c09785068c797b66ac591f01a17150a8 | [
"Apache-2.0"
] | null | null | null | paraml/localDockerIPP.py | yadudoc/ParaML | 17464483c09785068c797b66ac591f01a17150a8 | [
"Apache-2.0"
] | null | null | null | localDockerIPP = {
"sites": [
{"site": "Local_IPP",
"auth": {"channel": None},
"execution": {
"executor": "ipp",
"container": {
"type": "docker",
"image": "parslbase_v0.1",
},
"provider": "local",
... | 24.926471 | 57 | 0.353392 | 108 | 1,695 | 5.481481 | 0.305556 | 0.074324 | 0.101351 | 0.162162 | 0.797297 | 0.797297 | 0.744932 | 0.581081 | 0.581081 | 0.581081 | 0 | 0.02027 | 0.476106 | 1,695 | 67 | 58 | 25.298507 | 0.646396 | 0.048968 | 0 | 0.584615 | 0 | 0 | 0.285003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7659c3a83c9155c80bd35c4237ddbbd2700a475b | 556 | py | Python | tests/flow/test_mesh.py | fcollman/chunkflow | 5834d406d4fc3579bae37edfb50a11dc67f4a1a3 | [
"Apache-2.0"
] | 36 | 2019-03-20T21:58:15.000Z | 2022-03-28T08:40:59.000Z | tests/flow/test_mesh.py | fcollman/chunkflow | 5834d406d4fc3579bae37edfb50a11dc67f4a1a3 | [
"Apache-2.0"
] | 96 | 2019-01-23T14:49:18.000Z | 2022-03-21T19:54:20.000Z | tests/flow/test_mesh.py | fcollman/chunkflow | 5834d406d4fc3579bae37edfb50a11dc67f4a1a3 | [
"Apache-2.0"
] | 7 | 2019-03-25T19:32:19.000Z | 2021-07-20T19:39:03.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import tempfile
from chunkflow.chunk import Chunk
from chunkflow.flow.mesh import MeshOperator
def test_mesh():
ck = Chunk.create(dtype=np.float32)
# segment it with threshold
ck = ck < 0.5
ck = ck.astype(np.uint32)
tempdir = ... | 24.173913 | 77 | 0.649281 | 70 | 556 | 5.142857 | 0.585714 | 0.15 | 0.183333 | 0.241667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015801 | 0.203237 | 556 | 22 | 78 | 25.272727 | 0.79684 | 0.253597 | 0 | 0.153846 | 0 | 0 | 0.048662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
7683341ec7bc5d576d1a4b25d2a385b4c2fc1b55 | 714 | py | Python | appointments/migrations/0002_auto_20201027_0539.py | EliBec/my-first-fullstack-milestone-project | 2c77e523cfcc7672f1b1c0e72545e0dc349dab88 | [
"ADSL"
] | null | null | null | appointments/migrations/0002_auto_20201027_0539.py | EliBec/my-first-fullstack-milestone-project | 2c77e523cfcc7672f1b1c0e72545e0dc349dab88 | [
"ADSL"
] | 7 | 2021-06-04T23:55:46.000Z | 2022-01-13T03:24:06.000Z | appointments/migrations/0002_auto_20201027_0539.py | EliBec/my-first-fullstack-milestone-project | 2c77e523cfcc7672f1b1c0e72545e0dc349dab88 | [
"ADSL"
] | 1 | 2020-11-02T11:39:41.000Z | 2020-11-02T11:39:41.000Z | # Generated by Django 3.1.2 on 2020-10-27 05:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('appointments', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='appointment',
name='appointment_... | 24.62069 | 54 | 0.57423 | 66 | 714 | 6.075758 | 0.575758 | 0.149626 | 0.187032 | 0.216958 | 0.36409 | 0.36409 | 0.254364 | 0 | 0 | 0 | 0 | 0.038855 | 0.315126 | 714 | 28 | 55 | 25.5 | 0.781186 | 0.063025 | 0 | 0.409091 | 1 | 0 | 0.145427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
76857ba22ce555aa0a3a25aaa1ce8a8386ef3d44 | 134 | py | Python | Mundo 1/ArquivosComCores/File 002.py | PedroHenriqueSimoes/Exercicios-Python | 702a819d508dd7878b88fb676559d899237ac761 | [
"MIT"
] | 1 | 2020-04-30T21:32:01.000Z | 2020-04-30T21:32:01.000Z | Mundo 1/ArquivosComCores/File 002.py | PedroHenriqueSimoes/Exercicios-Python | 702a819d508dd7878b88fb676559d899237ac761 | [
"MIT"
] | 1 | 2021-10-05T02:00:04.000Z | 2021-10-05T02:00:04.000Z | Mundo 1/ArquivosComCores/File 002.py | PedroHenriqueSimoes/Exercicios-Python | 702a819d508dd7878b88fb676559d899237ac761 | [
"MIT"
] | null | null | null | nome = ((str(input('\033[0;34mQual é seu nome? \033[m'))).strip())
print('\033[0;35mOlá {}, prazer em conhece-lo\033[m'.format(nome))
| 44.666667 | 66 | 0.641791 | 24 | 134 | 3.583333 | 0.708333 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147541 | 0.089552 | 134 | 2 | 67 | 67 | 0.557377 | 0 | 0 | 0 | 0 | 0 | 0.574627 | 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 |
7692eb7a13dd9dcea1e8891e5baad13371d36f15 | 100 | py | Python | python/max min.py | boa9448/test | 428a0c4ff7935e2ffa020ef73af2b754b4377d7e | [
"MIT"
] | 1 | 2022-01-25T10:43:28.000Z | 2022-01-25T10:43:28.000Z | python/max min.py | boa9448/test | 428a0c4ff7935e2ffa020ef73af2b754b4377d7e | [
"MIT"
] | 1 | 2021-07-14T01:23:54.000Z | 2021-07-14T11:26:06.000Z | python/max min.py | boa9448/test | 428a0c4ff7935e2ffa020ef73af2b754b4377d7e | [
"MIT"
] | 1 | 2021-07-12T16:37:14.000Z | 2021-07-12T16:37:14.000Z | n = int(input())
a = []
for x in range(n):
a.append(int(input()))
print(min(a))
print(max(a))
| 11.111111 | 26 | 0.55 | 19 | 100 | 2.894737 | 0.631579 | 0.290909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19 | 100 | 8 | 27 | 12.5 | 0.679012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
76a5cd4a6b1c5b723cd6db4924f3a471714a4893 | 1,826 | py | Python | tests/test_diffeq/test_odefilter/test_init_routines/test_init_routines_cases.py | fxbriol/probnum | 7e0e94cf9146aaa2b730b02c6d75a022cd629b5c | [
"MIT"
] | null | null | null | tests/test_diffeq/test_odefilter/test_init_routines/test_init_routines_cases.py | fxbriol/probnum | 7e0e94cf9146aaa2b730b02c6d75a022cd629b5c | [
"MIT"
] | null | null | null | tests/test_diffeq/test_odefilter/test_init_routines/test_init_routines_cases.py | fxbriol/probnum | 7e0e94cf9146aaa2b730b02c6d75a022cd629b5c | [
"MIT"
] | null | null | null | """Test cases for initialization."""
import pytest_cases
from probnum.diffeq.odefilter import init_routines
from probnum.problems.zoo import diffeq as diffeq_zoo
from . import known_initial_derivatives
try:
from jax.config import config # speed...
config.update("jax_disable_jit", True)
except ImportError:... | 26.085714 | 75 | 0.777108 | 238 | 1,826 | 5.579832 | 0.289916 | 0.091114 | 0.112952 | 0.143072 | 0.496235 | 0.451054 | 0.393825 | 0.356928 | 0.356928 | 0.356928 | 0 | 0 | 0.108434 | 1,826 | 69 | 76 | 26.463768 | 0.815725 | 0.021906 | 0 | 0.186047 | 0 | 0 | 0.116292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232558 | false | 0.023256 | 0.139535 | 0.186047 | 0.604651 | 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 |
4f1be71201473e9412d7b3e0f35b8079e6c82417 | 2,277 | py | Python | usecase-3/vibration_peak_detector/test/test_location_mapper.py | edgefarm/edgefarm-demos | 6381d4a2f7f9c1d0632ab8123fed2bd0763d3b34 | [
"MIT"
] | null | null | null | usecase-3/vibration_peak_detector/test/test_location_mapper.py | edgefarm/edgefarm-demos | 6381d4a2f7f9c1d0632ab8123fed2bd0763d3b34 | [
"MIT"
] | 9 | 2021-04-21T10:37:45.000Z | 2021-07-28T05:56:50.000Z | usecase-3/vibration_peak_detector/test/test_location_mapper.py | edgefarm/train-simulation | 6381d4a2f7f9c1d0632ab8123fed2bd0763d3b34 | [
"MIT"
] | null | null | null | import unittest
import numpy as np
from vibration_peak_detector.src.location_mapper import (
map_timestamp_to_location,
find_last_unused_location_entry,
)
class TestLocationMapper(unittest.TestCase):
def test_map_timestamp_to_location(self):
location_records = np.array(
[
... | 32.528571 | 75 | 0.606939 | 304 | 2,277 | 4.305921 | 0.177632 | 0.171887 | 0.159664 | 0.206264 | 0.855615 | 0.78686 | 0.629488 | 0.550038 | 0.430863 | 0.394194 | 0 | 0.063946 | 0.278876 | 2,277 | 69 | 76 | 33 | 0.733252 | 0.016249 | 0 | 0.45283 | 0 | 0 | 0.015199 | 0 | 0 | 0 | 0 | 0 | 0.283019 | 1 | 0.037736 | false | 0 | 0.056604 | 0 | 0.113208 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.