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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8a964ba7ba83a430edd523526753c09835f2505a | 360 | py | Python | dbsettings/settings.py | industrydive/sciyoshi-django-dbsettings | 49c3341bb8344f1857ac2b876129e2c722c07b3b | [
"BSD-3-Clause"
] | null | null | null | dbsettings/settings.py | industrydive/sciyoshi-django-dbsettings | 49c3341bb8344f1857ac2b876129e2c722c07b3b | [
"BSD-3-Clause"
] | null | null | null | dbsettings/settings.py | industrydive/sciyoshi-django-dbsettings | 49c3341bb8344f1857ac2b876129e2c722c07b3b | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from django.apps import apps
from django.conf import settings
sites_installed = apps.is_installed('django.contrib.sites')
USE_SITES = getattr(settings, 'DBSETTINGS_USE_SITES', sites_installed)
USE_CACHE = getattr(settings, 'DBSETTINGS_USE_CACHE', True)
VALUE_LENGTH = getattr(se... | 32.727273 | 70 | 0.822222 | 48 | 360 | 5.8125 | 0.416667 | 0.16129 | 0.268817 | 0.200717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0.091667 | 360 | 10 | 71 | 36 | 0.844037 | 0 | 0 | 0 | 0 | 0 | 0.230556 | 0.063889 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 |
8a999f3b9e0d339ff72ec107babd25b5430e5c58 | 252 | py | Python | produto.py | leanln/ALGO_REDES__2016_1_LISTA2 | 882567365a26917396c3129062c1cd10085c6925 | [
"Apache-2.0"
] | null | null | null | produto.py | leanln/ALGO_REDES__2016_1_LISTA2 | 882567365a26917396c3129062c1cd10085c6925 | [
"Apache-2.0"
] | null | null | null | produto.py | leanln/ALGO_REDES__2016_1_LISTA2 | 882567365a26917396c3129062c1cd10085c6925 | [
"Apache-2.0"
] | null | null | null | nome = input ("colocar nome do cliente:")
preco = float (input ("colocar preco:"))
quantidade = float (input ("colocar a contidade:"))
valor_total = (quantidade) * (preco)
print("Senhor %s seus produtos totalizam R$ %.2f reais."%(nome,valor_total)) | 50.4 | 76 | 0.694444 | 33 | 252 | 5.242424 | 0.636364 | 0.208092 | 0.196532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00463 | 0.142857 | 252 | 5 | 76 | 50.4 | 0.796296 | 0 | 0 | 0 | 0 | 0 | 0.425703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
8a9b90f9105526546ddb054e71f0130006ece090 | 45 | py | Python | ibm_vpc/version.py | nathan-hekman/vpc-python-sdk | 2847754ef93c8ebfe205e42c4495758f43a4f643 | [
"Apache-2.0"
] | null | null | null | ibm_vpc/version.py | nathan-hekman/vpc-python-sdk | 2847754ef93c8ebfe205e42c4495758f43a4f643 | [
"Apache-2.0"
] | null | null | null | ibm_vpc/version.py | nathan-hekman/vpc-python-sdk | 2847754ef93c8ebfe205e42c4495758f43a4f643 | [
"Apache-2.0"
] | null | null | null | """
Version of vpc
"""
__version__ = '0.5.0'
| 9 | 21 | 0.577778 | 7 | 45 | 3.142857 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0.177778 | 45 | 4 | 22 | 11.25 | 0.513514 | 0.311111 | 0 | 0 | 0 | 0 | 0.217391 | 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 |
8ab0f7d6349e96d0d28176bcc2836d2f5f1abcc1 | 268 | py | Python | tests/test_basic_auth.py | bugfree-software/the-internet-solution-python | b5bea3c2b827b9d77688ebadc5510cb04ee18f04 | [
"MIT"
] | 7 | 2015-10-06T10:28:12.000Z | 2020-05-11T16:15:57.000Z | tests/test_basic_auth.py | bugfree-software/the-internet-solution-python | b5bea3c2b827b9d77688ebadc5510cb04ee18f04 | [
"MIT"
] | 1 | 2020-02-15T13:57:51.000Z | 2020-02-15T13:57:51.000Z | tests/test_basic_auth.py | bugfree-software/the-internet-solution-python | b5bea3c2b827b9d77688ebadc5510cb04ee18f04 | [
"MIT"
] | 2 | 2017-11-20T04:58:29.000Z | 2022-03-02T18:00:18.000Z | from . import TheInternetTestCase
from helium.api import Text
class BasicAuthTest(TheInternetTestCase):
def get_page(self):
return "http://admin:admin@the-internet.herokuapp.com/basic_auth"
def test_basic_auth(self):
self.assertTrue(Text("Basic Auth").exists()) | 33.5 | 67 | 0.791045 | 36 | 268 | 5.777778 | 0.666667 | 0.129808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089552 | 268 | 8 | 68 | 33.5 | 0.852459 | 0 | 0 | 0 | 0 | 0 | 0.245353 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
8abb7a418285bd5a8214b6768dee04f2ecc06669 | 403 | py | Python | nb-flowchartjs/__init__.py | anhi/nb-flowchartjs | 5f26755ee47f3e199cb84a8b3e1843103870dd41 | [
"MIT"
] | null | null | null | nb-flowchartjs/__init__.py | anhi/nb-flowchartjs | 5f26755ee47f3e199cb84a8b3e1843103870dd41 | [
"MIT"
] | null | null | null | nb-flowchartjs/__init__.py | anhi/nb-flowchartjs | 5f26755ee47f3e199cb84a8b3e1843103870dd41 | [
"MIT"
] | null | null | null | from ._version import version_info, __version__
# Jupyter Extension points
def _jupyter_nbextension_paths():
return [dict(
section="notebook",
# path is relative to the `nb-flowchartjs` module directory
src="static",
# directory in the `nbextension/` namespace
dest="nb-flowchartjs",
... | 28.785714 | 65 | 0.692308 | 45 | 403 | 5.955556 | 0.688889 | 0.145522 | 0.119403 | 0.186567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208437 | 403 | 13 | 66 | 31 | 0.840125 | 0.404467 | 0 | 0 | 0 | 0 | 0.200855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.142857 | 0.142857 | 0.428571 | 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 | 0 | 1 | 0 | 0 | 0 | 3 |
76e53a6e55e2652aa67e357616c913adc92fbd9c | 1,593 | py | Python | var/spack/repos/builtin/packages/py-six/package.py | genric/spack | e35a99e5d6da729f197954802d697d75e02aefe0 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 9 | 2018-04-18T07:51:40.000Z | 2021-09-10T03:56:57.000Z | var/spack/repos/builtin/packages/py-six/package.py | BlueBrain/spack | 047fa4b21b90abfd227dd70a77689bb473cd1a57 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 907 | 2018-04-18T11:17:57.000Z | 2022-03-31T13:20:25.000Z | var/spack/repos/builtin/packages/py-six/package.py | genric/spack | e35a99e5d6da729f197954802d697d75e02aefe0 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 29 | 2018-11-05T16:14:23.000Z | 2022-02-03T16:07:09.000Z | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PySix(PythonPackage):
"""Python 2 and 3 compatibility utilities."""
homepage = "https... | 46.852941 | 96 | 0.767734 | 167 | 1,593 | 7.311377 | 0.652695 | 0.052416 | 0.006552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.281923 | 0.124922 | 1,593 | 33 | 97 | 48.272727 | 0.593974 | 0.323917 | 0 | 0 | 0 | 0.071429 | 0.624647 | 0.481656 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
76f1cbdcad6a4afe306b05cf8d310714ef37bc33 | 3,223 | py | Python | ShoeStore/products/models.py | TrongPhuCBL49/Shoe-Store-Django | 6dff4cf34783fe3504d06504a00022ccce06cb88 | [
"bzip2-1.0.6"
] | null | null | null | ShoeStore/products/models.py | TrongPhuCBL49/Shoe-Store-Django | 6dff4cf34783fe3504d06504a00022ccce06cb88 | [
"bzip2-1.0.6"
] | null | null | null | ShoeStore/products/models.py | TrongPhuCBL49/Shoe-Store-Django | 6dff4cf34783fe3504d06504a00022ccce06cb88 | [
"bzip2-1.0.6"
] | null | null | null | import random
import os
from django.db import models
from django.db.models.signals import pre_save, post_save
from django.urls import reverse
from django.db.models import Q
from ShoeStore.utils import unique_slug_generator
def get_filename_ext(filepath):
base_name = os.path.basename(filepath)
name, ext = os.... | 31.291262 | 91 | 0.660565 | 392 | 3,223 | 5.242347 | 0.293367 | 0.043796 | 0.040876 | 0.030657 | 0.134307 | 0.032117 | 0.032117 | 0.032117 | 0.032117 | 0 | 0 | 0.009274 | 0.230531 | 3,223 | 102 | 92 | 31.598039 | 0.819355 | 0.1269 | 0 | 0.104478 | 0 | 0 | 0.027857 | 0.014286 | 0 | 0 | 0 | 0 | 0 | 1 | 0.223881 | false | 0 | 0.104478 | 0.149254 | 0.731343 | 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 |
0a05ef83fa15aeda0ef2a4773ddade51fc3761b1 | 48,235 | py | Python | CoarseNet/coarse_net_model.py | jakubarendac/MinutiaeNet | 168d167e2b3c03507a6c935481dfcc62adee1e4f | [
"MIT"
] | null | null | null | CoarseNet/coarse_net_model.py | jakubarendac/MinutiaeNet | 168d167e2b3c03507a6c935481dfcc62adee1e4f | [
"MIT"
] | null | null | null | CoarseNet/coarse_net_model.py | jakubarendac/MinutiaeNet | 168d167e2b3c03507a6c935481dfcc62adee1e4f | [
"MIT"
] | null | null | null | """Code for FineNet in paper "Robust Minutiae Extractor: Integrating Deep Networks and Fingerprint Domain Knowledge" at ICB 2018
https://arxiv.org/pdf/1712.09401.pdf
If you use whole or partial function in this code, please cite paper:
@inproceedings{Nguyen_MinutiaeNet,
author = {Dinh-Luan Nguyen and Kai... | 44.828067 | 128 | 0.534011 | 6,535 | 48,235 | 3.625708 | 0.074522 | 0.049295 | 0.015616 | 0.027349 | 0.785853 | 0.755845 | 0.728665 | 0.68912 | 0.675445 | 0.631088 | 0 | 0.042666 | 0.342075 | 48,235 | 1,075 | 129 | 44.869767 | 0.703955 | 0.101337 | 0 | 0.612987 | 0 | 0.002597 | 0.043894 | 0.006853 | 0 | 0 | 0 | 0.00093 | 0 | 1 | 0.009091 | false | 0 | 0.011688 | 0 | 0.02987 | 0.007792 | 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 |
0a0ad4bedce6631860479dd0687e7fa90606ba51 | 365 | py | Python | codes_/0279_Perfect_Squares.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/0279_Perfect_Squares.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/0279_Perfect_Squares.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | # %% [279. Perfect Squares](https://leetcode.com/problems/perfect-squares/)
class Solution:
def numSquares(self, n: int) -> int:
return numSquares(n, math.floor(math.sqrt(n)))
@functools.lru_cache(None)
def numSquares(n, m):
if n <= 0 or not m:
return 2 ** 31 if n else 0
return min(numSqua... | 30.416667 | 75 | 0.624658 | 58 | 365 | 3.913793 | 0.551724 | 0.193833 | 0.15859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034843 | 0.213699 | 365 | 11 | 76 | 33.181818 | 0.756098 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0a18a703005a31f921c335e481f545e80c04db06 | 20,253 | py | Python | modules/models.py | calebelee05/ultimate-sr | 979978e2b41e062ddb4ccca86d9e92f138cf996f | [
"MIT"
] | 16 | 2021-04-30T01:16:52.000Z | 2022-02-07T14:40:32.000Z | modules/models.py | calebelee05/ultimate-sr | 979978e2b41e062ddb4ccca86d9e92f138cf996f | [
"MIT"
] | 3 | 2021-05-03T03:55:47.000Z | 2021-05-25T12:48:44.000Z | modules/models.py | calebelee05/ultimate-sr | 979978e2b41e062ddb4ccca86d9e92f138cf996f | [
"MIT"
] | 5 | 2021-04-30T02:31:13.000Z | 2022-02-10T10:46:26.000Z | import functools
import tensorflow as tf
from tensorflow.keras import Model
from tensorflow.keras.layers import Dense, Flatten, Input, Conv2D, LeakyReLU
from modules.resizing import imresize_np
def _regularizer(weights_decay=5e-4):
return tf.keras.regularizers.l2(weights_decay)
def _kernel_init(scale=1.0, seed=N... | 45.614865 | 115 | 0.63319 | 2,827 | 20,253 | 4.315883 | 0.088079 | 0.024588 | 0.028686 | 0.012458 | 0.755348 | 0.731825 | 0.714859 | 0.667896 | 0.635931 | 0.610196 | 0 | 0.035701 | 0.225497 | 20,253 | 443 | 116 | 45.717833 | 0.742127 | 0.039451 | 0 | 0.481375 | 0 | 0 | 0.048405 | 0.002172 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068768 | false | 0 | 0.014327 | 0.002865 | 0.157593 | 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 |
0a21a02f01939a79323ff8a48fa033a687efbbc2 | 40 | py | Python | six/hello.py | xiaolinzi-xl/python_imooc | 07bde890e3ab0ddef4467b0c77ef33614339a657 | [
"Apache-2.0"
] | null | null | null | six/hello.py | xiaolinzi-xl/python_imooc | 07bde890e3ab0ddef4467b0c77ef33614339a657 | [
"Apache-2.0"
] | null | null | null | six/hello.py | xiaolinzi-xl/python_imooc | 07bde890e3ab0ddef4467b0c77ef33614339a657 | [
"Apache-2.0"
] | null | null | null | a = 1
b = 2
c = 3
print("hello python")
| 8 | 21 | 0.55 | 9 | 40 | 2.444444 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 0.275 | 40 | 4 | 22 | 10 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
0a2997956bc4380e9623e392e78b8f9fd83234d6 | 106 | py | Python | d2l-enhancements/setup.py | Brightspace/circleci-elastalert-docker-image | 872077811253182d33316c2710e9b2eb4f16f687 | [
"MIT"
] | null | null | null | d2l-enhancements/setup.py | Brightspace/circleci-elastalert-docker-image | 872077811253182d33316c2710e9b2eb4f16f687 | [
"MIT"
] | 3 | 2021-10-30T05:23:02.000Z | 2021-11-02T18:45:04.000Z | d2l-enhancements/setup.py | Brightspace/circleci-elastalert-docker-image | 872077811253182d33316c2710e9b2eb4f16f687 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name = 'd2l',
packages = ['d2l'],
setup_requires = 'setuptools'
)
| 13.25 | 30 | 0.679245 | 12 | 106 | 5.916667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022989 | 0.179245 | 106 | 7 | 31 | 15.142857 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0a318cc7e3efd79bfbd2bae07cda15a31b818a69 | 4,234 | py | Python | persistent_list_kata/day_13.py | Alex-Diez/python-tdd-katas | a176f16cfd103e618e539a57cac0748fba52221c | [
"MIT"
] | null | null | null | persistent_list_kata/day_13.py | Alex-Diez/python-tdd-katas | a176f16cfd103e618e539a57cac0748fba52221c | [
"MIT"
] | null | null | null | persistent_list_kata/day_13.py | Alex-Diez/python-tdd-katas | a176f16cfd103e618e539a57cac0748fba52221c | [
"MIT"
] | null | null | null | import unittest
class ListIter(object):
def __init__(self, list):
self._list = list
def __next__(self):
item = self._list.head()
self._list = self._list.tail()
if item is None:
raise StopIteration
else:
return item
def __iter__(self):
... | 27.673203 | 101 | 0.627775 | 501 | 4,234 | 5.177645 | 0.135729 | 0.097147 | 0.086353 | 0.085197 | 0.43485 | 0.398612 | 0.335775 | 0.292984 | 0.292984 | 0.292984 | 0 | 0.01861 | 0.238545 | 4,234 | 152 | 102 | 27.855263 | 0.78598 | 0 | 0 | 0.320388 | 0 | 0 | 0.005905 | 0 | 0 | 0 | 0 | 0 | 0.174757 | 1 | 0.349515 | false | 0.009709 | 0.009709 | 0.145631 | 0.572816 | 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 |
0a34ce0fb65b9ae9077cf10d20a3d731653df0bf | 253 | py | Python | pysmx/crypto/__init__.py | ASTARCHEN/snowland-smx-python | c0a5057e1f75f273fc9fb631aecd19e7ebc66a1a | [
"BSD-3-Clause"
] | 4 | 2020-09-16T03:28:11.000Z | 2022-02-24T03:33:04.000Z | pysmx/crypto/__init__.py | ASTARCHEN/snowland-smx-python | c0a5057e1f75f273fc9fb631aecd19e7ebc66a1a | [
"BSD-3-Clause"
] | 20 | 2020-09-07T20:35:45.000Z | 2022-03-17T09:49:36.000Z | pysmx/crypto/__init__.py | ASTARCHEN/snowland-smx-python | c0a5057e1f75f273fc9fb631aecd19e7ebc66a1a | [
"BSD-3-Clause"
] | 2 | 2020-09-07T18:22:10.000Z | 2022-02-24T03:33:04.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : 河北雪域网络科技有限公司 A.Star
# @contact: astar@snowland.ltd
# @site: www.snowland.ltd
# @file: __init__.py.py
# @time: 2018/11/17 23:13
# @Software: PyCharm
from pysmx.crypto.hashlib import pbkdf2_hmac
| 23 | 44 | 0.6917 | 38 | 253 | 4.473684 | 0.921053 | 0.129412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063927 | 0.134387 | 253 | 10 | 45 | 25.3 | 0.712329 | 0.754941 | 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 |
0a37ec85e6d62370d06928e347eac40c505c27a2 | 1,612 | py | Python | src/config/device-manager/device_manager/plugins/juniper/qfx/series5K/qfx_5k.py | Dmitry-Eremeev/contrail-controller | 1238bcff697981662225ec5a15bc4d3d2237ae93 | [
"Apache-2.0"
] | null | null | null | src/config/device-manager/device_manager/plugins/juniper/qfx/series5K/qfx_5k.py | Dmitry-Eremeev/contrail-controller | 1238bcff697981662225ec5a15bc4d3d2237ae93 | [
"Apache-2.0"
] | 2 | 2018-12-04T02:20:52.000Z | 2018-12-22T06:16:30.000Z | src/config/device-manager/device_manager/plugins/juniper/qfx/series5K/qfx_5k.py | Dmitry-Eremeev/contrail-controller | 1238bcff697981662225ec5a15bc4d3d2237ae93 | [
"Apache-2.0"
] | 1 | 2018-12-04T02:07:47.000Z | 2018-12-04T02:07:47.000Z | #
# Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
#
"""
This file contains implementation of netconf interface for QFX physical router
configuration manager
"""
from qfx_conf import QfxConf
from device_api.juniper_common_xsd import *
class Qfx5kConf(QfxConf):
_products = ['qfx5100', 'qfx5110', '... | 25.587302 | 78 | 0.630273 | 192 | 1,612 | 4.979167 | 0.442708 | 0.058577 | 0.037657 | 0.039749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02087 | 0.286601 | 1,612 | 62 | 79 | 26 | 0.810435 | 0.208437 | 0 | 0.117647 | 0 | 0 | 0.047771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0.058824 | 0.058824 | 0.058824 | 0.529412 | 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 |
0a5aee5d6de6bdd0c9d3761e9219d0eec691b360 | 832 | py | Python | run.py | sandeepsn1997/civilapp | 749027e904924575f60883c5d44688101f7e9864 | [
"MIT"
] | null | null | null | run.py | sandeepsn1997/civilapp | 749027e904924575f60883c5d44688101f7e9864 | [
"MIT"
] | null | null | null | run.py | sandeepsn1997/civilapp | 749027e904924575f60883c5d44688101f7e9864 | [
"MIT"
] | null | null | null | from flask import Flask
import calculate
app = Flask(__name__)
@app.route("/")
def index():
important_facility_data = [["site office", 10, 0, 500, 500, 0, 0], ["labour shed", 5, 0, 10000, 500, 0, 0],
["security shed", 5, 0, 200, 0, 0, 0], ["Batching plant", 10, 100, 20000, 1000, 2,... | 33.28 | 117 | 0.510817 | 117 | 832 | 3.512821 | 0.401709 | 0.058394 | 0.20438 | 0.043796 | 0.109489 | 0.092457 | 0 | 0 | 0 | 0 | 0 | 0.218531 | 0.3125 | 832 | 24 | 118 | 34.666667 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.13422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
0a64dcdb8a96a682793ee24c8b10a0af3f0b6bfc | 2,410 | py | Python | src/datacatalog_fileset_exporter/constant.py | mesmacosta/datacatalog-fileset-exporter | fb12a98f10b76c9fd18c1a94d33d57e8543ac568 | [
"MIT"
] | 1 | 2020-04-29T21:17:33.000Z | 2020-04-29T21:17:33.000Z | src/datacatalog_fileset_exporter/constant.py | mesmacosta/datacatalog-fileset-exporter | fb12a98f10b76c9fd18c1a94d33d57e8543ac568 | [
"MIT"
] | null | null | null | src/datacatalog_fileset_exporter/constant.py | mesmacosta/datacatalog-fileset-exporter | fb12a98f10b76c9fd18c1a94d33d57e8543ac568 | [
"MIT"
] | null | null | null | # Constants used for creating the Filesets.
FILESETS_ENTRY_GROUP_NAME_COLUMN_LABEL = 'entry_group_name'
FILESETS_ENTRY_GROUP_DISPLAY_NAME_COLUMN_LABEL = 'entry_group_display_name'
FILESETS_ENTRY_GROUP_DESCRIPTION_COLUMN_LABEL = 'entry_group_description'
FILESETS_ENTRY_ID_COLUMN_LABEL = 'entry_id'
FILESETS_ENTRY_DISPLAY... | 56.046512 | 99 | 0.810788 | 300 | 2,410 | 5.813333 | 0.146667 | 0.25344 | 0.206995 | 0.261468 | 0.743693 | 0.694381 | 0.59117 | 0.472477 | 0.472477 | 0.472477 | 0 | 0 | 0.158091 | 2,410 | 42 | 100 | 57.380952 | 0.859537 | 0.116183 | 0 | 0.121212 | 0 | 0 | 0.096516 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
6a751f8fa4b730c3065cf1bd1c3aab9721ced5bb | 250 | py | Python | 00_insertion_sort.py | mwizasimbeye11/algorithms_in_python | ce6d28c4b613e49ebfee78c28ec7627c77d59372 | [
"MIT"
] | 1 | 2020-03-31T21:55:29.000Z | 2020-03-31T21:55:29.000Z | 00_insertion_sort.py | mwizasimbeye11/algorithms_in_python | ce6d28c4b613e49ebfee78c28ec7627c77d59372 | [
"MIT"
] | null | null | null | 00_insertion_sort.py | mwizasimbeye11/algorithms_in_python | ce6d28c4b613e49ebfee78c28ec7627c77d59372 | [
"MIT"
] | 1 | 2018-06-08T17:14:35.000Z | 2018-06-08T17:14:35.000Z | def insertion(array):
for i in range(1, len(array)):
j = i -1
while array[j] > array[j+1] and j >= 0:
array[j], array[j+1] = array[j+1], array[j]
j-=1
return array
print (insertion([7, 8, 5, 4, 9, 2])) | 27.777778 | 55 | 0.488 | 44 | 250 | 2.772727 | 0.477273 | 0.344262 | 0.172131 | 0.196721 | 0.319672 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077381 | 0.328 | 250 | 9 | 56 | 27.777778 | 0.64881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 1 | 0 | 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 |
6a885df6e55de52e712960d84df086e5c6ccfb8d | 954 | py | Python | src/configs/bin/.ipynb_checkpoints/basedir_config-checkpoint.py | PawelRosikiewicz/SkinDiagnosticAI | 7cc7b7a9ccd4103095a7548e7b99de4988858356 | [
"MIT"
] | 1 | 2021-05-15T09:57:25.000Z | 2021-05-15T09:57:25.000Z | src/configs/bin/basedir_config.py | PawelRosikiewicz/SkinDiagnosticAI | 7cc7b7a9ccd4103095a7548e7b99de4988858356 | [
"MIT"
] | null | null | null | src/configs/bin/basedir_config.py | PawelRosikiewicz/SkinDiagnosticAI | 7cc7b7a9ccd4103095a7548e7b99de4988858356 | [
"MIT"
] | null | null | null | # ************************************************************************* #
# Author: Pawel Rosikiewicz #
# Copyrith: IT IS NOT ALLOWED TO COPY OR TO DISTRIBUTE #
# these file without written #
#... | 56.117647 | 145 | 0.408805 | 71 | 954 | 5.366197 | 0.901408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013652 | 0.385744 | 954 | 17 | 146 | 56.117647 | 0.636519 | 0.831237 | 0 | 0 | 0 | 0.5 | 0.892361 | 0.34375 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6add0b8636bd62439ff5decd72f90bb8f1dfea55 | 39,880 | py | Python | graphene_django/tests/test_query.py | spcode1/graphene-django | 0888c748fdc02c5446e15c538b1b1294d2fbb2ea | [
"MIT"
] | null | null | null | graphene_django/tests/test_query.py | spcode1/graphene-django | 0888c748fdc02c5446e15c538b1b1294d2fbb2ea | [
"MIT"
] | null | null | null | graphene_django/tests/test_query.py | spcode1/graphene-django | 0888c748fdc02c5446e15c538b1b1294d2fbb2ea | [
"MIT"
] | null | null | null | import datetime
import base64
import pytest
from django.db import models
from django.db.models import Q
from django.utils.functional import SimpleLazyObject
from graphql_relay import to_global_id
from py.test import raises
import graphene
from graphene.relay import Node
from ..compat import JSONField, MissingType
fr... | 27.352538 | 147 | 0.535983 | 3,481 | 39,880 | 6.012066 | 0.090779 | 0.041093 | 0.035837 | 0.055906 | 0.750143 | 0.733754 | 0.712108 | 0.687452 | 0.657588 | 0.639478 | 0 | 0.008305 | 0.35988 | 39,880 | 1,457 | 148 | 27.371311 | 0.811501 | 0.007272 | 0 | 0.605111 | 0 | 0.000824 | 0.28023 | 0.008264 | 0 | 0 | 0 | 0 | 0.057708 | 1 | 0.043693 | false | 0 | 0.018137 | 0.015664 | 0.212696 | 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 |
6ae0a4a95159dc19df24eb973ab6b6be6e053bb3 | 336 | py | Python | graphgallery/data/multigraph.py | mengliu1998/GraphGallery | 025ac09e883f3e1e1b02000e086830c935884a6e | [
"MIT"
] | 1 | 2020-10-31T07:24:59.000Z | 2020-10-31T07:24:59.000Z | graphgallery/data/multigraph.py | mengliu1998/GraphGallery | 025ac09e883f3e1e1b02000e086830c935884a6e | [
"MIT"
] | null | null | null | graphgallery/data/multigraph.py | mengliu1998/GraphGallery | 025ac09e883f3e1e1b02000e086830c935884a6e | [
"MIT"
] | null | null | null | import os
import numpy as np
import networkx as nx
import os.path as osp
import scipy.sparse as sp
from functools import lru_cache
from copy import copy as copy_fn
from graphgallery.data.base_graph import BaseGraph
class MultiGraph(BaseGraph):
"""Attributed labeled multigraph stored in a list of sparse matrix f... | 21 | 79 | 0.776786 | 53 | 336 | 4.867925 | 0.641509 | 0.062016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172619 | 336 | 15 | 80 | 22.4 | 0.928058 | 0.205357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8 | 0 | 0.9 | 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 |
0a7804f7885fd1bb699cca651c1dd9dd97f46ec1 | 1,159 | py | Python | tests/foreign_exchange_config.py | amaas-fintech/fincalendar | fc12388403282268e189225eaa13e51323013cb4 | [
"Apache-2.0"
] | null | null | null | tests/foreign_exchange_config.py | amaas-fintech/fincalendar | fc12388403282268e189225eaa13e51323013cb4 | [
"Apache-2.0"
] | 3 | 2017-08-15T02:31:54.000Z | 2017-10-03T08:34:30.000Z | tests/foreign_exchange_config.py | amaas-fintech/fincalendar | fc12388403282268e189225eaa13e51323013cb4 | [
"Apache-2.0"
] | 4 | 2017-08-11T02:01:31.000Z | 2017-09-07T10:13:05.000Z | import unittest
from datetime import date
from fincalendar.foreign_exchange_config import get_settlement_day_convention
class FxSettlementDateConvention(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_t_plus_2(self):
basecurrency = 'SGD'
... | 29.717949 | 89 | 0.703192 | 119 | 1,159 | 6.521008 | 0.361345 | 0.100515 | 0.123711 | 0.201031 | 0.489691 | 0.489691 | 0.489691 | 0.489691 | 0.489691 | 0.221649 | 0 | 0.008811 | 0.216566 | 1,159 | 38 | 90 | 30.5 | 0.845815 | 0 | 0 | 0.285714 | 0 | 0 | 0.030198 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 1 | 0.214286 | false | 0.071429 | 0.107143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0a7ad05cf369ae5d4c14e994875d3017529e5609 | 393 | py | Python | test_delete.py | siddharthhparikh/INFM750-project | a5e6dde35f88f6eb6a7f3525f64630b14d3aeded | [
"Apache-2.0"
] | null | null | null | test_delete.py | siddharthhparikh/INFM750-project | a5e6dde35f88f6eb6a7f3525f64630b14d3aeded | [
"Apache-2.0"
] | null | null | null | test_delete.py | siddharthhparikh/INFM750-project | a5e6dde35f88f6eb6a7f3525f64630b14d3aeded | [
"Apache-2.0"
] | null | null | null | def total_subsets_matching_sum(numbers, sum):
array = [1] + [0] * (sum)
for current_number in numbers:
for num in xrange(sum - current_number, -1, -1):
if array[num]:
array[num + current_number] += array[num]
return array[sum]
print total_subsets_matching_sum(range(1, 10... | 32.75 | 65 | 0.618321 | 61 | 393 | 3.786885 | 0.409836 | 0.155844 | 0.25974 | 0.298701 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0.244275 | 393 | 11 | 66 | 35.727273 | 0.717172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0a7dce176f84ad4bc2e186829eb0d39c0487fb70 | 1,799 | py | Python | testing/feature_extraction/tf_idf_test.py | louiskhub/TweetViralityClassifier | 2c7cca12972fb71e286d806a418efda0b641c5e7 | [
"MIT"
] | null | null | null | testing/feature_extraction/tf_idf_test.py | louiskhub/TweetViralityClassifier | 2c7cca12972fb71e286d806a418efda0b641c5e7 | [
"MIT"
] | 4 | 2021-10-05T11:27:24.000Z | 2021-10-19T12:58:14.000Z | testing/feature_extraction/tf_idf_test.py | louiskhub/TweetViralityClassifier | 2c7cca12972fb71e286d806a418efda0b641c5e7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Unittester for the TF-IDF feature extractor.
@author: marcelklehr
"""
import unittest
import pandas as pd
from code.feature_extraction.tf_idf import TfIdf
class TfIdfTest(unittest.TestCase):
def setUp(self):
self._tfidf_extractor = TfIdf('tweet')
d... | 32.709091 | 75 | 0.598666 | 263 | 1,799 | 4.060837 | 0.220532 | 0.046816 | 0.374532 | 0.2397 | 0.522472 | 0.452247 | 0.06367 | 0 | 0 | 0 | 0 | 0.072971 | 0.253474 | 1,799 | 54 | 76 | 33.314815 | 0.722264 | 0.142857 | 0 | 0 | 0 | 0 | 0.049084 | 0 | 0 | 0 | 0 | 0 | 0.631579 | 1 | 0.052632 | false | 0 | 0.078947 | 0 | 0.157895 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0a84fb5672a25c02757221686539b73e1f663bd1 | 144,091 | py | Python | sympy/matrices/tests/test_matrices.py | val-verde/python-sympy | 77f1d79c705da5e9b3dee456a14b1b4e92dd620c | [
"BSD-3-Clause"
] | 1 | 2021-11-19T03:38:42.000Z | 2021-11-19T03:38:42.000Z | sympy/matrices/tests/test_matrices.py | val-verde/python-sympy | 77f1d79c705da5e9b3dee456a14b1b4e92dd620c | [
"BSD-3-Clause"
] | null | null | null | sympy/matrices/tests/test_matrices.py | val-verde/python-sympy | 77f1d79c705da5e9b3dee456a14b1b4e92dd620c | [
"BSD-3-Clause"
] | null | null | null | import random
import concurrent.futures
from collections.abc import Hashable
from sympy.core.add import Add
from sympy.core.function import (Function, diff, expand)
from sympy.core.numbers import (E, Float, I, Integer, Rational, nan, oo, pi)
from sympy.core.power import Pow
from sympy.core.singleton import S
from symp... | 47.918523 | 1,571 | 0.571153 | 20,357 | 144,091 | 3.993172 | 0.066316 | 0.021996 | 0.017825 | 0.013384 | 0.468514 | 0.410794 | 0.36743 | 0.332911 | 0.308283 | 0.284085 | 0 | 0.362759 | 0.244255 | 144,091 | 3,006 | 1,572 | 47.934464 | 0.383724 | 0.189776 | 0 | 0.247878 | 0 | 0.028438 | 0.214398 | 0.126267 | 0 | 0 | 0 | 0 | 0.318336 | 1 | 0.078098 | false | 0.000849 | 0.021647 | 0.000849 | 0.101868 | 0.001698 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0aae60d17fb43a25480cbbf4a344b9b65dfb4a68 | 273 | py | Python | epix/__init__.py | XENONnT/epix | d315551cdcf6b98898c6682952eb0def10646dc3 | [
"BSD-3-Clause"
] | null | null | null | epix/__init__.py | XENONnT/epix | d315551cdcf6b98898c6682952eb0def10646dc3 | [
"BSD-3-Clause"
] | 39 | 2021-01-13T13:18:43.000Z | 2022-03-21T15:29:37.000Z | epix/__init__.py | XENONnT/epix | d315551cdcf6b98898c6682952eb0def10646dc3 | [
"BSD-3-Clause"
] | null | null | null | __version__ = '0.1.3'
from .common import *
from .io import *
from .clustering import *
from .quanta_generation import *
from .detector_volumes import *
from .electric_field_handler import *
from .event_separation import *
from .detectors import *
from .run_epix import *
| 22.75 | 37 | 0.769231 | 37 | 273 | 5.405405 | 0.567568 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012876 | 0.14652 | 273 | 11 | 38 | 24.818182 | 0.845494 | 0 | 0 | 0 | 0 | 0 | 0.018315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.9 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0ab3b4dce34684b951c170d3f3a1132bc0dc43ae | 213 | py | Python | sirbot/slack/__init__.py | Ovvovy/sirbot-slack | 2d27e49cfbc2cb12e87ef3814823d2ad68d0a788 | [
"MIT"
] | 7 | 2017-05-06T11:37:25.000Z | 2018-11-22T09:46:32.000Z | sirbot/slack/__init__.py | Ovvovy/sirbot-slack | 2d27e49cfbc2cb12e87ef3814823d2ad68d0a788 | [
"MIT"
] | 19 | 2017-05-07T16:25:02.000Z | 2017-09-22T08:02:59.000Z | sirbot/slack/__init__.py | Ovvovy/sirbot-slack | 2d27e49cfbc2cb12e87ef3814823d2ad68d0a788 | [
"MIT"
] | 3 | 2017-05-06T11:37:28.000Z | 2017-07-07T09:32:54.000Z | from sirbot.core import hookimpl as sirbothook
from .core import SirBotSlack
from . import message # noqa
__version__ = SirBotSlack.__version__
@sirbothook
def plugins(loop):
return SirBotSlack(loop=loop)
| 19.363636 | 46 | 0.788732 | 26 | 213 | 6.153846 | 0.576923 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150235 | 213 | 10 | 47 | 21.3 | 0.883978 | 0.018779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.714286 | 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 | 1 | 0 | 0 | 0 | 3 |
0abbc41e2339e848bd0190117e1bf049424c4b66 | 210 | py | Python | exam/notes/notes/users_notes/models.py | Beshkov/Python_Web_Basics | 29f46a159387f224547609f62b26ff6c8d75c0fa | [
"MIT"
] | null | null | null | exam/notes/notes/users_notes/models.py | Beshkov/Python_Web_Basics | 29f46a159387f224547609f62b26ff6c8d75c0fa | [
"MIT"
] | null | null | null | exam/notes/notes/users_notes/models.py | Beshkov/Python_Web_Basics | 29f46a159387f224547609f62b26ff6c8d75c0fa | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Note(models.Model):
title = models.CharField(
max_length= 30,
)
content = models.TextField()
image_url = models.URLField()
| 21 | 33 | 0.671429 | 26 | 210 | 5.346154 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.228571 | 210 | 9 | 34 | 23.333333 | 0.845679 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0ade91ff8e08af484005e5333b7c4265eb7e1e8b | 1,330 | py | Python | app/rooms/migrations/0013_auto_20200224_2021.py | ShinJam/airbnb-clone | 5f79c6ff38d268e41e1b99ba1b1ccca65da746a3 | [
"MIT"
] | null | null | null | app/rooms/migrations/0013_auto_20200224_2021.py | ShinJam/airbnb-clone | 5f79c6ff38d268e41e1b99ba1b1ccca65da746a3 | [
"MIT"
] | 10 | 2020-03-03T16:15:51.000Z | 2022-02-10T09:25:15.000Z | app/rooms/migrations/0013_auto_20200224_2021.py | ShinJam/airbnb-clone | 5f79c6ff38d268e41e1b99ba1b1ccca65da746a3 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2020-02-24 11:21
import core.managers
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('rooms', '0012_auto_20200215_1458'),
]
operations = [
migrations.AlterModelManagers(
name='amenity',
ma... | 26.078431 | 64 | 0.501504 | 85 | 1,330 | 7.811765 | 0.423529 | 0.126506 | 0.289157 | 0.243976 | 0.64759 | 0.579819 | 0.579819 | 0.579819 | 0 | 0 | 0 | 0.038788 | 0.379699 | 1,330 | 50 | 65 | 26.6 | 0.766061 | 0.034586 | 0 | 0.681818 | 1 | 0 | 0.086583 | 0.017941 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.113636 | 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 |
0adf736da3fb16de87f872895cfd3f2abb8b0ddc | 218 | py | Python | SLRdata/__init__.py | anielsen001/SLRdata | 90b8aef4b5813eb3fc7588390d8c6deafc482e37 | [
"MIT"
] | null | null | null | SLRdata/__init__.py | anielsen001/SLRdata | 90b8aef4b5813eb3fc7588390d8c6deafc482e37 | [
"MIT"
] | null | null | null | SLRdata/__init__.py | anielsen001/SLRdata | 90b8aef4b5813eb3fc7588390d8c6deafc482e37 | [
"MIT"
] | null | null | null |
__title__ = 'SLRdata'
__version__ = '0.2'
__author__ = 'Olli Wilkman'
__license__ = 'MIT'
from .troposphere import troposphere_correction
from .parse_crd import parse_CRD
from .parse_cpf import parse_CPF, Prediction
| 21.8 | 47 | 0.793578 | 28 | 218 | 5.428571 | 0.642857 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.12844 | 218 | 9 | 48 | 24.222222 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.115207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 |
0aede90f7ee9df7b6339f2780c738bd92d70e4ce | 4,569 | py | Python | lib/python2.7/site-packages/rest_framework/utils/serializer_helpers.py | ervinpepic/E-commerce | 2c15255d1730728cf35c166b9f88cffcb99f5323 | [
"MIT"
] | null | null | null | lib/python2.7/site-packages/rest_framework/utils/serializer_helpers.py | ervinpepic/E-commerce | 2c15255d1730728cf35c166b9f88cffcb99f5323 | [
"MIT"
] | null | null | null | lib/python2.7/site-packages/rest_framework/utils/serializer_helpers.py | ervinpepic/E-commerce | 2c15255d1730728cf35c166b9f88cffcb99f5323 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import collections
from django.utils.encoding import force_text
from rest_framework.compat import OrderedDict, unicode_to_repr
class ReturnDict(OrderedDict):
"""
Return object from `serialier.data` for the `Serializer` class.
Includes a backlink to the serializer... | 30.66443 | 93 | 0.650908 | 562 | 4,569 | 5.005338 | 0.240214 | 0.028795 | 0.019552 | 0.024173 | 0.352648 | 0.307145 | 0.248134 | 0.205475 | 0.177746 | 0.177746 | 0 | 0 | 0.249726 | 4,569 | 148 | 94 | 30.871622 | 0.820595 | 0.240534 | 0 | 0.222222 | 0 | 0 | 0.015238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.283951 | false | 0 | 0.049383 | 0.148148 | 0.592593 | 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 |
0af7cff0bf4f37c571fef857a2c0787f8bb3002e | 1,558 | py | Python | modality/calibration/XSample.py | tompollard/modality | dbe6d407a44fa6b1b93fba1433d62cb0b2c4a132 | [
"MIT"
] | 16 | 2016-08-24T12:39:39.000Z | 2021-09-24T08:50:24.000Z | modality/calibration/XSample.py | tompollard/modality | dbe6d407a44fa6b1b93fba1433d62cb0b2c4a132 | [
"MIT"
] | 11 | 2018-03-19T04:45:40.000Z | 2019-04-05T08:59:43.000Z | modality/calibration/XSample.py | tompollard/modality | dbe6d407a44fa6b1b93fba1433d62cb0b2c4a132 | [
"MIT"
] | 9 | 2018-03-18T19:40:20.000Z | 2022-02-25T07:54:00.000Z | from __future__ import unicode_literals
from mpi4py import MPI
from ..util.bootstrap_MPI import probability_above
class XSample(object):
'''
Class that samples a data set from a reference distribution,
computes statistic.
'''
def __init__(self, N, sampfun, comm=MPI.COMM_WORLD):
... | 35.409091 | 103 | 0.639281 | 190 | 1,558 | 5.047368 | 0.447368 | 0.033368 | 0.07195 | 0.06048 | 0.079249 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018034 | 0.28819 | 1,558 | 43 | 104 | 36.232558 | 0.846709 | 0.37163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.055556 | 0.166667 | 0.055556 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
0afd4d5123b394d40054b6b327682fe8055d9fc5 | 283 | py | Python | server/booking_portal/models/instrument/__init__.py | CAL-BPHC/onlineCAL | 57a98c86732d88fbee4bde4e471d7297b330567a | [
"MIT"
] | null | null | null | server/booking_portal/models/instrument/__init__.py | CAL-BPHC/onlineCAL | 57a98c86732d88fbee4bde4e471d7297b330567a | [
"MIT"
] | null | null | null | server/booking_portal/models/instrument/__init__.py | CAL-BPHC/onlineCAL | 57a98c86732d88fbee4bde4e471d7297b330567a | [
"MIT"
] | null | null | null | from .instrument import Instrument
from .requests import (UserDetail, UserRemark, AAS, BET, DSC, EDXRF, FESEM, FTIR,
GC, HPLC, LCMS, LSCM, NMR, PXRD, SAXS_WAXS, SCXRD, TCSPC, TGA, XPS,
CDSpectrophotometer, Rheometer, UVSpectrophotometer) | 70.75 | 90 | 0.650177 | 30 | 283 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261484 | 283 | 4 | 91 | 70.75 | 0.875598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 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 |
e401d4b9f0daf3f1a3cb378b3635eb91b293941a | 118 | py | Python | area,perimeter.py | asumit499/Python-BootCamp | 0b99f9cb862189d13ad291eac12a8be6c46357f5 | [
"MIT"
] | 4 | 2022-03-20T10:59:53.000Z | 2022-03-25T18:28:04.000Z | area,perimeter.py | asumit499/Python-BootCamp | 0b99f9cb862189d13ad291eac12a8be6c46357f5 | [
"MIT"
] | null | null | null | area,perimeter.py | asumit499/Python-BootCamp | 0b99f9cb862189d13ad291eac12a8be6c46357f5 | [
"MIT"
] | 15 | 2022-03-12T11:49:10.000Z | 2022-03-15T06:22:55.000Z | l=int(input("enter length: "))
b=int(input("enter breath: "))
area=l*b
perimeter=2*(l+b)
print(area)
print(perimeter)
| 16.857143 | 30 | 0.686441 | 21 | 118 | 3.857143 | 0.52381 | 0.197531 | 0.320988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.084746 | 118 | 6 | 31 | 19.666667 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0.237288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7c12b1cabf8e6000e43389c807e10d9467b3eb78 | 622 | py | Python | pywebkit/mathlib.py | Yaseen549/pywebkit | 399365737bf7f3878678bf8cf920fba9c01bae0e | [
"MIT"
] | 3 | 2021-03-28T19:45:50.000Z | 2021-04-04T16:11:02.000Z | pywebkit/mathlib.py | Yaseen549/pywebkit | 399365737bf7f3878678bf8cf920fba9c01bae0e | [
"MIT"
] | 1 | 2021-03-30T04:19:40.000Z | 2021-03-30T04:19:40.000Z | pywebkit/mathlib.py | Yaseen549/pywebkit | 399365737bf7f3878678bf8cf920fba9c01bae0e | [
"MIT"
] | 3 | 2021-03-28T08:48:20.000Z | 2021-03-29T06:38:24.000Z | # Simple Math Libraries
def add(*nums):
number = 0
for num in nums:
number += num
return number
def sub(*nums):
number = 0
for num in nums:
number -= num
return number
def multiply(*nums):
number = 1
for num in nums:
number *= num
retu... | 13.521739 | 32 | 0.540193 | 82 | 622 | 4.097561 | 0.341463 | 0.1875 | 0.142857 | 0.107143 | 0.386905 | 0.386905 | 0.386905 | 0.386905 | 0.386905 | 0.279762 | 0 | 0.035354 | 0.363344 | 622 | 45 | 33 | 13.822222 | 0.813131 | 0.033762 | 0 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.222222 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7c484d2303cd98b75d8a133fe0c21380bff48118 | 1,563 | py | Python | backend/db/driver.py | juananpe/forum40 | e527318ac7724be2b6c831e786b2905a100e8425 | [
"Apache-2.0"
] | null | null | null | backend/db/driver.py | juananpe/forum40 | e527318ac7724be2b6c831e786b2905a100e8425 | [
"Apache-2.0"
] | null | null | null | backend/db/driver.py | juananpe/forum40 | e527318ac7724be2b6c831e786b2905a100e8425 | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from abc import abstractmethod
from typing import Optional, Tuple, Protocol, TypeVar, Union, Any, Dict, List
# DB API v2.0 Protocol Types (see PEP 249)
# Necessary for type hinting because psycopg2 isn't well typed
QueryArgs = Union[Tuple[Any, ...], Dict[str, Any]]
T = TypeVar('T'... | 23.328358 | 77 | 0.684581 | 166 | 1,563 | 6.283133 | 0.373494 | 0.19559 | 0.364334 | 0.393097 | 0.373921 | 0.207095 | 0.207095 | 0.207095 | 0.207095 | 0.207095 | 0 | 0.005814 | 0.229687 | 1,563 | 66 | 78 | 23.681818 | 0.860465 | 0.064619 | 0 | 0.590909 | 0 | 0 | 0.001371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.068182 | 0 | 0.386364 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7c48d9553345b783025cbcf4b6fcdee895927a84 | 895 | py | Python | nebulae/fuel/__init__.py | SeriaZheng/Nebulae | 27a0b78560e66f6ad6540ee7e04c29e03e632bbd | [
"MIT"
] | 2 | 2021-12-24T08:28:44.000Z | 2022-01-05T09:03:32.000Z | nebulae/fuel/__init__.py | SeriaZheng/Nebulae | 27a0b78560e66f6ad6540ee7e04c29e03e632bbd | [
"MIT"
] | null | null | null | nebulae/fuel/__init__.py | SeriaZheng/Nebulae | 27a0b78560e66f6ad6540ee7e04c29e03e632bbd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Created by Seria at 02/11/2018 3:39 PM
Email: zzqsummerai@yeah.net
_ooOoo_
o888888888o
o88`_ . _`88o
(| 0 0 |)
O \ 。 / O
_____/`-----‘\_____
.’ \|| _ _ ||/ `.
... | 29.833333 | 59 | 0.373184 | 61 | 895 | 4.721311 | 0.688525 | 0.114583 | 0.1875 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052224 | 0.422346 | 895 | 29 | 60 | 30.862069 | 0.504836 | 0.712849 | 0 | 0 | 0 | 0 | 0.117409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 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 |
7c4d774325b65cf29904625c26d338ac13e16d1a | 723 | py | Python | fhdoc/ast_parser/analyzers/base_analyzer.py | FHPythonUtils/FHDoc | f027db02ef4cba6c0d7c2bbe105228aecfa8f15b | [
"MIT"
] | 1 | 2021-02-28T14:16:09.000Z | 2021-02-28T14:16:09.000Z | fhdoc/ast_parser/analyzers/base_analyzer.py | FHPythonUtils/FHDoc | f027db02ef4cba6c0d7c2bbe105228aecfa8f15b | [
"MIT"
] | 1 | 2020-10-15T13:50:02.000Z | 2020-10-15T13:50:52.000Z | fhdoc/ast_parser/analyzers/base_analyzer.py | FHPythonUtils/FHDoc | f027db02ef4cba6c0d7c2bbe105228aecfa8f15b | [
"MIT"
] | 1 | 2021-02-28T14:16:15.000Z | 2021-02-28T14:16:15.000Z | """
Base AST analyzer.
"""
import ast
from typing import TYPE_CHECKING, List, Text
if TYPE_CHECKING: # pragma: no cover
from fhdoc.ast_parser.node_records.argument_record import (
ArgumentRecord,
ExpressionRecord,
)
from fhdoc.ast_parser.node_records.attribute_record import AttributeRecord
from fhdoc.ast_pars... | 25.821429 | 75 | 0.784232 | 95 | 723 | 5.736842 | 0.463158 | 0.082569 | 0.110092 | 0.165138 | 0.266055 | 0.266055 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13278 | 723 | 27 | 76 | 26.777778 | 0.869219 | 0.195021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.5 | 0 | 0.642857 | 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 |
7c557f58358c2a5382d12dcdbbfb6675c6576883 | 551 | py | Python | src/encoded/audit/formatter.py | procha2/encoded | e9f122362b71f3b8641023b8d2d5ad531d3484b7 | [
"MIT"
] | 102 | 2015-05-20T01:17:43.000Z | 2022-03-07T06:03:55.000Z | src/encoded/audit/formatter.py | procha2/encoded | e9f122362b71f3b8641023b8d2d5ad531d3484b7 | [
"MIT"
] | 901 | 2015-01-07T23:11:57.000Z | 2022-03-18T13:56:12.000Z | src/encoded/audit/formatter.py | procha2/encoded | e9f122362b71f3b8641023b8d2d5ad531d3484b7 | [
"MIT"
] | 65 | 2015-02-06T23:00:26.000Z | 2022-01-22T07:58:44.000Z | import re
def audit_link(linkText, uri):
"""Generate link "markdown" from URI."""
return '{{{}|{}}}'.format(linkText, uri)
def path_to_text(path):
"""Convert object path to the text portion."""
accession = re.match(r'\/.*\/(.*)\/', path)
return accession.group(1) if accession else None
def space_... | 32.411765 | 64 | 0.653358 | 79 | 551 | 4.443038 | 0.64557 | 0.062678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.177858 | 551 | 16 | 65 | 34.4375 | 0.768212 | 0.326679 | 0 | 0 | 1 | 0 | 0.105413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7c5ed296d52ba12f06c6793bab3045614411dcb9 | 704 | py | Python | tests/test_cache.py | wieczorek1990/django-dynamic-models | 25787bf80eeec1560df33f3a0a26ea8272964619 | [
"MIT"
] | 122 | 2018-11-09T02:20:20.000Z | 2022-03-11T13:49:33.000Z | tests/test_cache.py | wieczorek1990/django-dynamic-models | 25787bf80eeec1560df33f3a0a26ea8272964619 | [
"MIT"
] | 34 | 2019-03-10T00:36:01.000Z | 2022-03-12T15:36:10.000Z | tests/test_cache.py | wieczorek1990/django-dynamic-models | 25787bf80eeec1560df33f3a0a26ea8272964619 | [
"MIT"
] | 38 | 2019-01-02T13:53:25.000Z | 2022-03-31T12:08:50.000Z | import pytest
from django.utils import timezone
from dynamic_models import cache
TEST_MODEL_NAME = "test"
now = timezone.now()
@pytest.fixture
def mock_now(monkeypatch):
monkeypatch.setattr(timezone, "now", lambda: now)
def test_get_and_update_last_modified(mock_now):
assert cache.get_last_modified(TEST_... | 26.074074 | 59 | 0.802557 | 106 | 704 | 4.933962 | 0.273585 | 0.206501 | 0.198853 | 0.281071 | 0.518164 | 0.518164 | 0.518164 | 0.518164 | 0.518164 | 0.518164 | 0 | 0 | 0.12358 | 704 | 26 | 60 | 27.076923 | 0.84765 | 0 | 0 | 0.352941 | 0 | 0 | 0.009943 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.176471 | false | 0 | 0.176471 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7c6525b5eee6fba62cb054e9125e1f9c56a2b063 | 53 | py | Python | app/src/data.py | tyxk8160/docker | 6085831254d39742238fcafb7ef09f2b9c017d58 | [
"MIT"
] | null | null | null | app/src/data.py | tyxk8160/docker | 6085831254d39742238fcafb7ef09f2b9c017d58 | [
"MIT"
] | null | null | null | app/src/data.py | tyxk8160/docker | 6085831254d39742238fcafb7ef09f2b9c017d58 | [
"MIT"
] | null | null | null | import redis
rds=redis.StrictRedis('db', 6379)
| 10.6 | 34 | 0.679245 | 7 | 53 | 5.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 0.188679 | 53 | 4 | 35 | 13.25 | 0.744186 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 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 |
7c6698b79ce860a07de335e88fb4cae58373c883 | 331 | py | Python | pythonteste/aula09.py | kaue-pessoa/cursoemvideo-python | d0f651a85d43c1800fcbc14cad0d8c20c86dbacf | [
"MIT"
] | null | null | null | pythonteste/aula09.py | kaue-pessoa/cursoemvideo-python | d0f651a85d43c1800fcbc14cad0d8c20c86dbacf | [
"MIT"
] | null | null | null | pythonteste/aula09.py | kaue-pessoa/cursoemvideo-python | d0f651a85d43c1800fcbc14cad0d8c20c86dbacf | [
"MIT"
] | null | null | null | #frase = 'Curso em video python'
#print(frase[:13])
#frase = ' Curso em video python '
#print(len(frase.strip()))
#frase = 'Curso em Video Python'
#print(frase.replace('Python', 'Android'))
#frase ='Curso em Video Python'
#print('Curso' in frase)
frase = 'Curso em Vidio Python'
dividido = frase.split()
print(di... | 20.6875 | 42 | 0.676737 | 47 | 331 | 4.765957 | 0.340426 | 0.223214 | 0.267857 | 0.303571 | 0.544643 | 0.544643 | 0.294643 | 0 | 0 | 0 | 0 | 0.010676 | 0.151057 | 331 | 15 | 43 | 22.066667 | 0.786477 | 0.70997 | 0 | 0 | 0 | 0 | 0.238636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
7c6a585e7362a7226955556d0a78ece35d4f5169 | 564 | py | Python | button.py | RutgerUijtendaal/PiRiders | c67c01ac66752e3a02ce9ee2e7ab8f51409e4dd9 | [
"MIT"
] | null | null | null | button.py | RutgerUijtendaal/PiRiders | c67c01ac66752e3a02ce9ee2e7ab8f51409e4dd9 | [
"MIT"
] | null | null | null | button.py | RutgerUijtendaal/PiRiders | c67c01ac66752e3a02ce9ee2e7ab8f51409e4dd9 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python3
import RPi.GPIO as GPIO
import time
class Button(object):
'''
Button class represents a button.
Has one property to read the current value.
'''
def __init__(self, pin):
self.pin = pin
# Have to set pull_up_down to make sure the button
GPIO.setup(se... | 25.636364 | 84 | 0.663121 | 87 | 564 | 4.195402 | 0.586207 | 0.076712 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004762 | 0.255319 | 564 | 21 | 85 | 26.857143 | 0.864286 | 0.468085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7c7d562e47fbd1dc133a336407a13736353073d0 | 574 | py | Python | 7. Index/7.2/7.2.1 Replace a letter.py | ferrerinicolas/python_samples | 107cead4fbee30b275a5e2be1257833129ce5e46 | [
"MIT"
] | null | null | null | 7. Index/7.2/7.2.1 Replace a letter.py | ferrerinicolas/python_samples | 107cead4fbee30b275a5e2be1257833129ce5e46 | [
"MIT"
] | null | null | null | 7. Index/7.2/7.2.1 Replace a letter.py | ferrerinicolas/python_samples | 107cead4fbee30b275a5e2be1257833129ce5e46 | [
"MIT"
] | null | null | null | """ This is the Scratchpad!
This file is not graded, but you can use it to test your code.
You can write and test your function in the Scratchpad, but make
sure to copy and paste it into the Unit Test file before checking
your answer. Remember to only copy and paste the function you want
to submit, not all of your tes... | 33.764706 | 66 | 0.745645 | 101 | 574 | 4.178218 | 0.554455 | 0.066351 | 0.099526 | 0.090047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008368 | 0.167247 | 574 | 16 | 67 | 35.875 | 0.874477 | 0.695122 | 0 | 0 | 0 | 0 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0.5 | 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 | 0 | 1 | 0 | 3 |
7c8ee3b207f24ecec0647a7639370055e75ab306 | 255 | py | Python | tests/test_api_v1_system_hostname.py | bearstech/pfsense-api | f188f3699c20d61f560c50de9aba703e2a0f1d38 | [
"Apache-2.0"
] | null | null | null | tests/test_api_v1_system_hostname.py | bearstech/pfsense-api | f188f3699c20d61f560c50de9aba703e2a0f1d38 | [
"Apache-2.0"
] | null | null | null | tests/test_api_v1_system_hostname.py | bearstech/pfsense-api | f188f3699c20d61f560c50de9aba703e2a0f1d38 | [
"Apache-2.0"
] | null | null | null | import unit_test_framework
class APIUnitTestSystemHostname(unit_test_framework.APIUnitTest):
url = "/api/v1/system/hostname"
get_payloads = [{}]
put_payloads = [{"hostname": "pfsense-api", "domain": "test.com", }]
APIUnitTestSystemHostname() | 31.875 | 72 | 0.733333 | 26 | 255 | 6.961538 | 0.692308 | 0.088398 | 0.187845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004464 | 0.121569 | 255 | 8 | 73 | 31.875 | 0.803571 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 0.089844 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7cc053523dd322e912ef086c6b3e96d604c9d59b | 1,165 | py | Python | neutron/plugins/ml2/drivers/agent/capabilities.py | cleo4zheng/neutron | 6d65318308edfd984bdd0ff1ac7fef9486a040f7 | [
"Apache-2.0"
] | 1 | 2017-09-10T09:57:35.000Z | 2017-09-10T09:57:35.000Z | neutron/plugins/ml2/drivers/agent/capabilities.py | cleo4zheng/neutron | 6d65318308edfd984bdd0ff1ac7fef9486a040f7 | [
"Apache-2.0"
] | 1 | 2019-08-16T14:02:19.000Z | 2019-08-16T14:02:19.000Z | neutron/plugins/ml2/drivers/agent/capabilities.py | cleo4zheng/neutron | 6d65318308edfd984bdd0ff1ac7fef9486a040f7 | [
"Apache-2.0"
] | 1 | 2015-05-05T14:41:11.000Z | 2015-05-05T14:41:11.000Z | # Copyright 2016 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 38.833333 | 75 | 0.76824 | 172 | 1,165 | 5.145349 | 0.523256 | 0.067797 | 0.029379 | 0.036158 | 0.119774 | 0.065537 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.162232 | 1,165 | 29 | 76 | 40.172414 | 0.898566 | 0.698712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cc7f42dbe4b2730b54d4eadac42c50aa370f238 | 251 | py | Python | projector_server/userprofile/permissions.py | changyang-liu/Projector | 4924400f54e0ce823fd488f9cfd0f7e52d2df55f | [
"MIT"
] | null | null | null | projector_server/userprofile/permissions.py | changyang-liu/Projector | 4924400f54e0ce823fd488f9cfd0f7e52d2df55f | [
"MIT"
] | 2 | 2021-06-10T19:12:07.000Z | 2021-09-22T19:00:50.000Z | projector_server/userprofile/permissions.py | CS97-Projector/Projector | 4924400f54e0ce823fd488f9cfd0f7e52d2df55f | [
"MIT"
] | null | null | null | from rest_framework import permissions
class IsUser(permissions.BasePermission):
"""
Custom permission to only allow self to edit profile.
"""
def has_object_permission(self, request, view, obj):
return obj == request.user
| 20.916667 | 57 | 0.705179 | 30 | 251 | 5.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215139 | 251 | 11 | 58 | 22.818182 | 0.883249 | 0.211155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7cd4e65d0bedec186381e23aec6eba3da65980b7 | 21,276 | py | Python | pysnmp/NTPv4-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/NTPv4-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/NTPv4-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 NTPv4-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NTPv4-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:15:56 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23... | 125.152941 | 3,202 | 0.765275 | 2,173 | 21,276 | 7.491486 | 0.114128 | 0.012409 | 0.013453 | 0.017692 | 0.35125 | 0.291418 | 0.230174 | 0.216475 | 0.191658 | 0.149764 | 0 | 0.063498 | 0.078445 | 21,276 | 169 | 3,203 | 125.893491 | 0.766767 | 0.014664 | 0 | 0.044025 | 0 | 0 | 0.194703 | 0.041804 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.257862 | 0.050314 | 0 | 0.106918 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7ce4b948bc7fb825849ba441323eecea43e9d2d3 | 3,034 | py | Python | auth_access_admin/migrations/0002_auto_20200811_1046.py | paulgirmes/P13 | 6129d4639a3d190631c5548c7c6f1c5a53e13161 | [
"MIT"
] | null | null | null | auth_access_admin/migrations/0002_auto_20200811_1046.py | paulgirmes/P13 | 6129d4639a3d190631c5548c7c6f1c5a53e13161 | [
"MIT"
] | 1 | 2022-03-12T00:49:28.000Z | 2022-03-12T00:49:28.000Z | auth_access_admin/migrations/0002_auto_20200811_1046.py | paulgirmes/P13 | 6129d4639a3d190631c5548c7c6f1c5a53e13161 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-08-11 08:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auth_access_admin', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='familyme... | 35.27907 | 124 | 0.588991 | 290 | 3,034 | 5.982759 | 0.341379 | 0.072622 | 0.18732 | 0.217291 | 0.517579 | 0.434006 | 0.242075 | 0.156772 | 0.054179 | 0 | 0 | 0.018241 | 0.29532 | 3,034 | 85 | 125 | 35.694118 | 0.793265 | 0.014832 | 0 | 0.518987 | 1 | 0 | 0.16304 | 0.00837 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025316 | 0 | 0.063291 | 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 |
7cfaada7f7e6ffe2200c6bcde92a239e476e79cd | 773 | py | Python | pip_services3_commons/config/IReconfigurable.py | pip-services-python/pip-services-commons-python | ecfe0aab2b1442ed3b550115dd2c2472537452de | [
"MIT"
] | null | null | null | pip_services3_commons/config/IReconfigurable.py | pip-services-python/pip-services-commons-python | ecfe0aab2b1442ed3b550115dd2c2472537452de | [
"MIT"
] | null | null | null | pip_services3_commons/config/IReconfigurable.py | pip-services-python/pip-services-commons-python | ecfe0aab2b1442ed3b550115dd2c2472537452de | [
"MIT"
] | 2 | 2020-03-11T21:41:13.000Z | 2020-03-14T00:26:20.000Z | # -*- coding: utf-8 -*-
"""
pip_services3_commons.config.IReconfigurable
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Interface for components that can be reconfigured when configuration changes
:copyright: Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details.
:license: ... | 38.65 | 137 | 0.698577 | 87 | 773 | 6.16092 | 0.655172 | 0.044776 | 0.070896 | 0.093284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017268 | 0.175938 | 773 | 20 | 138 | 38.65 | 0.824176 | 0.799483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 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 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
6b402d8197b7c60a5d0b6534e27184236c581143 | 200 | py | Python | pip_update_all.py | Ls-Dai/Pytorch_FL_GAN | 63b38600751c6245e07b022f64e63d783e531b5e | [
"Apache-2.0"
] | 2 | 2020-12-05T09:53:08.000Z | 2021-03-22T01:55:28.000Z | pip_update_all.py | Ls-Dai/Pytorch_FL_GAN | 63b38600751c6245e07b022f64e63d783e531b5e | [
"Apache-2.0"
] | 1 | 2020-11-28T03:13:20.000Z | 2020-11-28T06:04:49.000Z | pip_update_all.py | Ls-Dai/Pytorch_FL_GAN | 63b38600751c6245e07b022f64e63d783e531b5e | [
"Apache-2.0"
] | null | null | null | import pip
from subprocess import call
for dist in pip.get_installed_distributions():
call("pip install --upgrade " + dist.project_name, shell=True)
# This is for only Linux system used.
| 25 | 67 | 0.73 | 29 | 200 | 4.931034 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19 | 200 | 7 | 68 | 28.571429 | 0.882716 | 0.175 | 0 | 0 | 0 | 0 | 0.141026 | 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 |
8612a15b23dc96cc2e9472d786c3fc19836bf3a5 | 13,609 | py | Python | k8sgen/APIResources.py | jfcarter2358/k8sGen | b285828a1e263c952cada2593cd19428d0df7737 | [
"MIT"
] | null | null | null | k8sgen/APIResources.py | jfcarter2358/k8sGen | b285828a1e263c952cada2593cd19428d0df7737 | [
"MIT"
] | null | null | null | k8sgen/APIResources.py | jfcarter2358/k8sGen | b285828a1e263c952cada2593cd19428d0df7737 | [
"MIT"
] | null | null | null | from k8sgen import base
from k8sgen.base import K8sObject
'''
Kubernetes CustomResourceDefinition component for use in API resources
Available manifest keys are:
(( MANIFEST_KEYS ))
'''
class CustomResourceDefinition(K8sObject):
def __init__(self):
super().__init__(name="CustomResourceDefinition", dat... | 25.971374 | 97 | 0.731795 | 1,517 | 13,609 | 6.153593 | 0.050099 | 0.13369 | 0.083557 | 0.094697 | 0.773219 | 0.770434 | 0.573755 | 0.38993 | 0.38993 | 0.38993 | 0 | 0.004796 | 0.157322 | 13,609 | 523 | 98 | 26.021033 | 0.809208 | 0 | 0 | 0.329114 | 0 | 0 | 0.222009 | 0.032987 | 0 | 0 | 0 | 0 | 0 | 1 | 0.329114 | false | 0 | 0.012658 | 0 | 0.670886 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8618c62253cb39640795e8f4dc9476a331929ef9 | 949 | py | Python | catalogs/ngc2000-pre.py | spake/astrometry.net | 12c76f4a44fe90a009eeb962f2ae28b0791829b8 | [
"BSD-3-Clause"
] | 4 | 2018-02-13T23:11:40.000Z | 2021-09-30T16:02:22.000Z | catalogs/ngc2000-pre.py | spake/astrometry.net | 12c76f4a44fe90a009eeb962f2ae28b0791829b8 | [
"BSD-3-Clause"
] | null | null | null | catalogs/ngc2000-pre.py | spake/astrometry.net | 12c76f4a44fe90a009eeb962f2ae28b0791829b8 | [
"BSD-3-Clause"
] | 1 | 2019-02-11T06:56:30.000Z | 2019-02-11T06:56:30.000Z | ## FIXME -- use ngcic_accurate...
class NgcObject(object):
pass
def get_ngc(ngcnum):
for n in ngc2000:
if n['id'] == ngcnum and n['is_ngc']:
obj = NgcObject()
obj.isngc = True
obj.ngcnum = ngcnum
obj.ra = n['ra']
obj.dec = n['dec']
... | 25.648649 | 52 | 0.498419 | 110 | 949 | 4.254545 | 0.336364 | 0.042735 | 0.055556 | 0.068376 | 0.57265 | 0.57265 | 0.57265 | 0.495727 | 0.495727 | 0.495727 | 0 | 0.020134 | 0.371971 | 949 | 36 | 53 | 26.361111 | 0.765101 | 0 | 0 | 0.62069 | 0 | 0 | 0.098765 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | null | null | 0.068966 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
862c658fbc49097f1ada44a974d874c7ec1e979a | 4,534 | py | Python | applications/tensorflow/contrastive_divergence_vae/models/vae/architectures/vcd_ruiz_2019.py | Splendon/examples | ed4a8a01857b6ddca49559141acf5d0986eb01e1 | [
"MIT"
] | null | null | null | applications/tensorflow/contrastive_divergence_vae/models/vae/architectures/vcd_ruiz_2019.py | Splendon/examples | ed4a8a01857b6ddca49559141acf5d0986eb01e1 | [
"MIT"
] | null | null | null | applications/tensorflow/contrastive_divergence_vae/models/vae/architectures/vcd_ruiz_2019.py | Splendon/examples | ed4a8a01857b6ddca49559141acf5d0986eb01e1 | [
"MIT"
] | null | null | null | # Copyright 2019 Graphcore Ltd.
"""Networks for VAE implementation in VCD paper"""
import numpy as np
import tensorflow as tf
def encoder(X_input, Z_dim, dtype, n_hidden=200):
"""As in paper"""
with tf.variable_scope('encoder', reuse=tf.AUTO_REUSE, use_resource=True):
# Calculate sqrt(n_hidden) - for... | 41.981481 | 100 | 0.617115 | 571 | 4,534 | 4.558669 | 0.157618 | 0.089896 | 0.131387 | 0.172877 | 0.723012 | 0.70534 | 0.689973 | 0.647714 | 0.620054 | 0.620054 | 0 | 0.012134 | 0.291134 | 4,534 | 107 | 101 | 42.373832 | 0.79776 | 0.06352 | 0 | 0.47561 | 0 | 0 | 0.028632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.02439 | 0.02439 | 0.121951 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8640b8dc88f104c700d1939cf155bd8666a0d2e5 | 3,989 | py | Python | zict/sieve.py | crusaderky/zict | 911779c66a27d3267d8114b8a3e883878c1152d7 | [
"BSD-3-Clause"
] | null | null | null | zict/sieve.py | crusaderky/zict | 911779c66a27d3267d8114b8a3e883878c1152d7 | [
"BSD-3-Clause"
] | null | null | null | zict/sieve.py | crusaderky/zict | 911779c66a27d3267d8114b8a3e883878c1152d7 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import annotations
from collections import defaultdict
from collections.abc import Callable, Iterable, Iterator, Mapping, MutableMapping
from itertools import chain
from typing import Generic, TypeVar
from zict.common import KT, VT, ZictBase, close, flush
MKT = TypeVar("MKT")
class Sieve(ZictBase[K... | 33.521008 | 81 | 0.618952 | 498 | 3,989 | 4.797189 | 0.287149 | 0.060276 | 0.045207 | 0.053579 | 0.298033 | 0.274173 | 0.228548 | 0.205944 | 0.175806 | 0.175806 | 0 | 0.003409 | 0.264728 | 3,989 | 118 | 82 | 33.805085 | 0.811115 | 0.258711 | 0 | 0.184615 | 0 | 0 | 0.008741 | 0.007692 | 0 | 0 | 0 | 0.008475 | 0 | 1 | 0.215385 | false | 0 | 0.092308 | 0.123077 | 0.507692 | 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 |
8641a41a354f423f33de8dff5127f0534ff60ffc | 534 | py | Python | models/tscItem.py | salvuswarez/tabManRedux | 901340d3b0c4911fb1ef8b0eb9452db5c50f4847 | [
"MIT"
] | 1 | 2020-07-20T23:08:20.000Z | 2020-07-20T23:08:20.000Z | models/tscItem.py | salvuswarez/tabManRedux | 901340d3b0c4911fb1ef8b0eb9452db5c50f4847 | [
"MIT"
] | null | null | null | models/tscItem.py | salvuswarez/tabManRedux | 901340d3b0c4911fb1ef8b0eb9452db5c50f4847 | [
"MIT"
] | null | null | null |
import models.tscBaseItem as tscBaseItem
import logging
# setup logger for module
_log = logging.getLogger(__name__)
class TSC_Item(tscBaseItem.TSC_Base_Item):
__server = tscBaseItem.TSC_Base_Item()
__item = object()
__name = str()
__id = str()
@property
def name(self):
... | 15.257143 | 42 | 0.625468 | 61 | 534 | 5.04918 | 0.393443 | 0.142857 | 0.181818 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294007 | 534 | 34 | 43 | 15.705882 | 0.816976 | 0.043071 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.2 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
864686846c3722b0a34da787006e1155db3d6dd1 | 41 | py | Python | invoke.py | ufbmi/olass-client | 2fc949d4d59959e7e3ba5ec737b20d8db856b54b | [
"MIT"
] | null | null | null | invoke.py | ufbmi/olass-client | 2fc949d4d59959e7e3ba5ec737b20d8db856b54b | [
"MIT"
] | 1 | 2016-08-12T20:52:09.000Z | 2016-08-12T20:59:35.000Z | invoke.py | ufbmi/olass-client | 2fc949d4d59959e7e3ba5ec737b20d8db856b54b | [
"MIT"
] | 1 | 2016-06-28T16:43:09.000Z | 2016-06-28T16:43:09.000Z |
debug = True
run = {
"echo": True
}
| 6.833333 | 16 | 0.487805 | 5 | 41 | 4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.341463 | 41 | 5 | 17 | 8.2 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0.1 | 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 |
86481e219b8b677ca69d40dffad96c9ba5b2d89c | 252 | py | Python | Challenges/Snapchat/problem_1.py | JeremySomsouk/DailyCodingProblem | ca4e19571b175d92a913b5b373a6f17fccd87731 | [
"Unlicense"
] | 54 | 2019-03-14T21:27:13.000Z | 2021-12-08T12:58:08.000Z | Challenges/Snapchat/problem_1.py | JeremySomsouk/DailyCodingProblem | ca4e19571b175d92a913b5b373a6f17fccd87731 | [
"Unlicense"
] | null | null | null | Challenges/Snapchat/problem_1.py | JeremySomsouk/DailyCodingProblem | ca4e19571b175d92a913b5b373a6f17fccd87731 | [
"Unlicense"
] | 8 | 2020-02-06T23:28:01.000Z | 2021-08-05T20:33:16.000Z | """ Asked by: Snapchat [Easy].
Given an array of time intervals (start, end) for classroom lectures (possibly overlapping),
find the minimum number of rooms required.
For example, given [(30, 75), (0, 50), (60, 150)], you should return 2.
""" | 31.5 | 93 | 0.678571 | 37 | 252 | 4.621622 | 0.918919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063725 | 0.190476 | 252 | 8 | 94 | 31.5 | 0.77451 | 0.936508 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
864fdb62781572f110b943fe09ab10d8cf9bc828 | 166 | py | Python | backend/prediction/urls.py | Lord-sarcastic/react-starter-template | 016244a52a8b5167116285c2e82a538823cb1eb6 | [
"MIT"
] | null | null | null | backend/prediction/urls.py | Lord-sarcastic/react-starter-template | 016244a52a8b5167116285c2e82a538823cb1eb6 | [
"MIT"
] | null | null | null | backend/prediction/urls.py | Lord-sarcastic/react-starter-template | 016244a52a8b5167116285c2e82a538823cb1eb6 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import TrainingModelView
app_name = 'prediction'
urlpatterns = [
path("", TrainingModelView.as_view(), name="base")
]
| 16.6 | 54 | 0.728916 | 19 | 166 | 6.263158 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150602 | 166 | 9 | 55 | 18.444444 | 0.843972 | 0 | 0 | 0 | 0 | 0 | 0.084337 | 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 |
865805b998b84ffac896cc54a5afb21f3c323ef3 | 500 | py | Python | venv/Lib/site-packages/numpy/typing/tests/data/reveal/nditer.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | null | null | null | venv/Lib/site-packages/numpy/typing/tests/data/reveal/nditer.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | null | null | null | venv/Lib/site-packages/numpy/typing/tests/data/reveal/nditer.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | null | null | null | import copy
import numpy as np
nditer_obj: np.nditer
with nditer_obj as context:
reveal_type(context) # E: numpy.nditer
reveal_type(len(nditer_obj)) # E: builtins.int
reveal_type(copy.copy(nditer_obj)) # E: numpy.nditer
reveal_type(next(nditer_obj)) # E: Any
reveal_type(iter(nditer_obj)) # E: ty... | 25 | 57 | 0.704 | 87 | 500 | 3.827586 | 0.264368 | 0.324324 | 0.18018 | 0.099099 | 0.351351 | 0.138138 | 0 | 0 | 0 | 0 | 0 | 0.026506 | 0.17 | 500 | 19 | 58 | 26.315789 | 0.775904 | 0.184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
865af407ac8ccb4fa12ae280c47bd0e45668ae00 | 296 | py | Python | Problem 48.py | thisIsShikhar/subeen_52problemsSolve | deb84de8878ee036d4ac4bada41518851c88d1b9 | [
"MIT"
] | null | null | null | Problem 48.py | thisIsShikhar/subeen_52problemsSolve | deb84de8878ee036d4ac4bada41518851c88d1b9 | [
"MIT"
] | null | null | null | Problem 48.py | thisIsShikhar/subeen_52problemsSolve | deb84de8878ee036d4ac4bada41518851c88d1b9 | [
"MIT"
] | null | null | null | T = int(input())
if 1 <= T <= 100:
for i in range(T):
N = int(input())
a = []
for j in range(N - 1):
l = int(input())
if l <= N:
a.append(l)
for k in range(1, N + 1):
if k not in a:
print(k)
| 21.142857 | 33 | 0.341216 | 45 | 296 | 2.244444 | 0.4 | 0.237624 | 0.19802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048276 | 0.510135 | 296 | 13 | 34 | 22.769231 | 0.648276 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
86642dc33d82ca958d77b38376f836c4ffd83e83 | 1,658 | py | Python | front-parent/python/webapp/cgi-bin/yate.py | jufeng98/b2c-master | 5db75cea023c0f775a56b2a872e75e8f2fe4639f | [
"Unlicense"
] | null | null | null | front-parent/python/webapp/cgi-bin/yate.py | jufeng98/b2c-master | 5db75cea023c0f775a56b2a872e75e8f2fe4639f | [
"Unlicense"
] | null | null | null | front-parent/python/webapp/cgi-bin/yate.py | jufeng98/b2c-master | 5db75cea023c0f775a56b2a872e75e8f2fe4639f | [
"Unlicense"
] | null | null | null | from string import Template
def start_response(resp="text/html"):
return 'Content-type: ' + resp + '\n\n'
def include_header(the_title):
with open('templates/header.html') as headf:
head_text = headf.read()
header = Template(head_text)
return header.substitute(title=the_title)
def include_... | 26.741935 | 97 | 0.598914 | 224 | 1,658 | 4.205357 | 0.290179 | 0.052017 | 0.050955 | 0.041401 | 0.187898 | 0.169851 | 0.099788 | 0.070064 | 0 | 0 | 0 | 0.000768 | 0.214717 | 1,658 | 61 | 98 | 27.180328 | 0.722734 | 0 | 0 | 0 | 0 | 0 | 0.206273 | 0.04222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.282051 | false | 0 | 0.025641 | 0.205128 | 0.589744 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
86905ae58c4eff0589aa87ac0aeb7cb632e2fb45 | 82 | py | Python | apollo/core/client.py | Den4200/apollo | a657d151fa1b9b3e79c9f05e020de54493fe33b0 | [
"MIT"
] | 1 | 2020-03-04T00:37:13.000Z | 2020-03-04T00:37:13.000Z | apollo/core/client.py | Den4200/apollo | a657d151fa1b9b3e79c9f05e020de54493fe33b0 | [
"MIT"
] | null | null | null | apollo/core/client.py | Den4200/apollo | a657d151fa1b9b3e79c9f05e020de54493fe33b0 | [
"MIT"
] | null | null | null | from frost import FrostClient
# Store the client globally
client = FrostClient()
| 16.4 | 29 | 0.792683 | 10 | 82 | 6.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158537 | 82 | 4 | 30 | 20.5 | 0.942029 | 0.304878 | 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 |
869adee10a640306c4b278409dec1d4dd1f68264 | 363 | py | Python | tests/models.py | roverdotcom/django-pylibmc | 7fa7dbf473a678af09d2510333f2a175ee5d89e6 | [
"BSD-3-Clause"
] | 39 | 2015-03-24T00:37:01.000Z | 2021-11-21T08:25:03.000Z | tests/models.py | roverdotcom/django-pylibmc | 7fa7dbf473a678af09d2510333f2a175ee5d89e6 | [
"BSD-3-Clause"
] | 40 | 2015-03-23T15:09:33.000Z | 2020-10-06T21:42:41.000Z | tests/models.py | roverdotcom/django-pylibmc | 7fa7dbf473a678af09d2510333f2a175ee5d89e6 | [
"BSD-3-Clause"
] | 28 | 2015-04-06T17:04:13.000Z | 2021-11-09T09:36:07.000Z | from django.db import models
from datetime import datetime
def expensive_calculation():
expensive_calculation.num_runs += 1
return datetime.now()
class Poll(models.Model):
question = models.CharField(max_length=200)
answer = models.CharField(max_length=200)
pub_date = models.DateTimeField('date ... | 25.928571 | 84 | 0.768595 | 45 | 363 | 6.044444 | 0.622222 | 0.220588 | 0.132353 | 0.176471 | 0.198529 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022508 | 0.143251 | 363 | 13 | 85 | 27.923077 | 0.85209 | 0 | 0 | 0 | 0 | 0 | 0.038567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
86ac8f4378f82fc114eff9429af90e0318cba27e | 468 | py | Python | smhr_session/radiative_transfer/__init__.py | alexji/smhr-session | 98cf3dd5da737752e704cffb005f729dfc2711dd | [
"MIT"
] | 1 | 2018-06-02T09:47:31.000Z | 2018-06-02T09:47:31.000Z | smhr_session/radiative_transfer/__init__.py | alexji/smhr-session | 98cf3dd5da737752e704cffb005f729dfc2711dd | [
"MIT"
] | 3 | 2018-08-24T07:41:22.000Z | 2018-10-29T15:54:17.000Z | alexmods/smhr/radiative_transfer/__init__.py | alexji/alexmods | 702f933e717256c0f055288f5f7c7341ac19b126 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" A common application interface for radiative transfer codes. """
from __future__ import (division, print_function, absolute_import,
unicode_literals)
"""
Standardized object for radiative transfer:
def synthesize(photosphere, transitions, **... | 20.347826 | 68 | 0.694444 | 53 | 468 | 5.981132 | 0.754717 | 0.07571 | 0.126183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002611 | 0.181624 | 468 | 23 | 69 | 20.347826 | 0.825065 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0.333333 | 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 |
86bded9d09b9eca4ee3c7edf8400179ed2c1f354 | 1,971 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLES2/OES/shader_io_blocks.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLES2/OES/shader_io_blocks.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLES2/OES/shader_io_blocks.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''OpenGL extension OES.shader_io_blocks
This module customises the behaviour of the
OpenGL.raw.GLES2.OES.shader_io_blocks to provide a more
Python-friendly API
Overview (from the spec)
This extension extends the functionality of interface blocks to
support input and output interfaces in the OpenGL ES ... | 40.22449 | 72 | 0.795028 | 271 | 1,971 | 5.715867 | 0.457565 | 0.050355 | 0.035507 | 0.054874 | 0.07295 | 0.07295 | 0.07295 | 0.052937 | 0.052937 | 0 | 0 | 0.002432 | 0.165398 | 1,971 | 49 | 73 | 40.22449 | 0.93921 | 0.854896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
86c80439b96cb99c3caaf28a05b5c42ff1cff363 | 280 | py | Python | example/article/urls.py | rchrd2/django-fluent-comments | f799247d2ce311691e9033f613f1fac8cbf288bb | [
"Apache-2.0"
] | null | null | null | example/article/urls.py | rchrd2/django-fluent-comments | f799247d2ce311691e9033f613f1fac8cbf288bb | [
"Apache-2.0"
] | null | null | null | example/article/urls.py | rchrd2/django-fluent-comments | f799247d2ce311691e9033f613f1fac8cbf288bb | [
"Apache-2.0"
] | null | null | null | from django.conf.urls.defaults import *
from article.views import ArticleListView, ArticleDetailView
urlpatterns = patterns('',
url(r'^(?P<slug>[^/]+)/$', ArticleDetailView.as_view(), name='article-details'),
url(r'^$', ArticleListView.as_view(), name='article-list'),
)
| 35 | 84 | 0.703571 | 32 | 280 | 6.09375 | 0.65625 | 0.041026 | 0.102564 | 0.174359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 280 | 7 | 85 | 40 | 0.77381 | 0 | 0 | 0 | 0 | 0 | 0.167857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
86c9678c1acd2bfb9cb912a063eabf68ade36723 | 2,601 | py | Python | python/GafferArnoldUI/__init__.py | pier-robot/gaffer | 9267f2ba3822b14430d8a283c745261110b0f570 | [
"BSD-3-Clause"
] | null | null | null | python/GafferArnoldUI/__init__.py | pier-robot/gaffer | 9267f2ba3822b14430d8a283c745261110b0f570 | [
"BSD-3-Clause"
] | null | null | null | python/GafferArnoldUI/__init__.py | pier-robot/gaffer | 9267f2ba3822b14430d8a283c745261110b0f570 | [
"BSD-3-Clause"
] | null | null | null | ##########################################################################
#
# Copyright (c) 2012, John Haddon. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of so... | 40.640625 | 92 | 0.725106 | 301 | 2,601 | 6.229236 | 0.504983 | 0.112 | 0.018133 | 0.024533 | 0.098133 | 0.072533 | 0.072533 | 0.072533 | 0.072533 | 0.072533 | 0 | 0.00186 | 0.173395 | 2,601 | 63 | 93 | 41.285714 | 0.870233 | 0.604383 | 0 | 0 | 0 | 0 | 0.062648 | 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 |
86cc8b7054509df0fe43f9bc11562acaf5ae1003 | 126 | py | Python | ex025.py | 89Alberth/Aprendendo-a-programar | 37ae0a60369a0b39c733ba15220efecf674b6447 | [
"MIT"
] | null | null | null | ex025.py | 89Alberth/Aprendendo-a-programar | 37ae0a60369a0b39c733ba15220efecf674b6447 | [
"MIT"
] | null | null | null | ex025.py | 89Alberth/Aprendendo-a-programar | 37ae0a60369a0b39c733ba15220efecf674b6447 | [
"MIT"
] | null | null | null | nome = str(input('Digite seu nome completo: ')) .strip() .upper()
print('Seu nome tem Santana? {}'.format('SANTANA' in nome))
| 42 | 65 | 0.666667 | 18 | 126 | 4.666667 | 0.722222 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 126 | 2 | 66 | 63 | 0.763636 | 0 | 0 | 0 | 0 | 0 | 0.452381 | 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 |
86eabbfd3f3317a4f0cb998557f3e17b7fbcab70 | 21,471 | py | Python | gips/datastrc/gdat_fit_lib.py | wutobias/gips | 93485caef46b39f9bd01edf58e306658bcee884b | [
"MIT"
] | 1 | 2021-04-24T10:29:39.000Z | 2021-04-24T10:29:39.000Z | gips/datastrc/gdat_fit_lib.py | wutobias/gips | 93485caef46b39f9bd01edf58e306658bcee884b | [
"MIT"
] | null | null | null | gips/datastrc/gdat_fit_lib.py | wutobias/gips | 93485caef46b39f9bd01edf58e306658bcee884b | [
"MIT"
] | 2 | 2021-02-16T14:18:59.000Z | 2021-06-04T05:09:22.000Z | import numpy as np
#sasa_grid is depracted
#from gips.grid_solvent.spatial import sasa_grid
from gips.grid_solvent.spatial import sasa_softgrid
from gips import FLOAT
from gips import DOUBLE
class gdat_fit_lib(object):
def __init__(self, gdatarec_dict,
gdata_dict,
... | 46.777778 | 134 | 0.420614 | 2,353 | 21,471 | 3.679983 | 0.067998 | 0.064673 | 0.040651 | 0.044347 | 0.785541 | 0.740039 | 0.692805 | 0.647303 | 0.638526 | 0.629518 | 0 | 0.020048 | 0.454054 | 21,471 | 458 | 135 | 46.879913 | 0.718649 | 0.045224 | 0 | 0.602899 | 0 | 0 | 0.036047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011594 | null | null | 0.017391 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
86ec948f7a04d6f7b769d41aa5de32f8a57bffb9 | 11,140 | py | Python | enrichme.py | mhark718/enrichme | 830ad5a260f2dcb28c5f28d0fb78f819eb01d3a3 | [
"Unlicense"
] | 1 | 2016-12-31T21:42:33.000Z | 2016-12-31T21:42:33.000Z | enrichme.py | mhark718/enrichme | 830ad5a260f2dcb28c5f28d0fb78f819eb01d3a3 | [
"Unlicense"
] | 4 | 2016-12-31T21:50:30.000Z | 2017-03-14T04:42:48.000Z | enrichme.py | mhark718/enrichme | 830ad5a260f2dcb28c5f28d0fb78f819eb01d3a3 | [
"Unlicense"
] | null | null | null |
import gzip
import os,re
names=[
"minecraft:acacia_boat",
"minecraft:acacia_door",
"minecraft:acacia_fence",
"minecraft:acacia_fence_gate",
"minecraft:acacia_stairs",
"minecraft:activator_rail",
"minecraft:air",
"minecraft:anvil",
"minecraft:apple",
"minecraft:armor_stand",
"minecraft:arrow",
"minecraft:baked_potato"... | 25.20362 | 207 | 0.785637 | 1,298 | 11,140 | 6.483051 | 0.280431 | 0.033274 | 0.012834 | 0.004991 | 0.004753 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001336 | 0.058977 | 11,140 | 441 | 208 | 25.260771 | 0.801393 | 0.040215 | 0 | 0 | 0 | 0 | 0.784571 | 0.494804 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002336 | 0.004673 | null | null | 0.002336 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
86f699a9fd5e4750d72cffa667aaa700dee27166 | 975 | py | Python | ding/policy/__init__.py | timothijoe/DI-engine | f0014586f7043334b5ce78a62c824be90ee1c2d9 | [
"Apache-2.0"
] | null | null | null | ding/policy/__init__.py | timothijoe/DI-engine | f0014586f7043334b5ce78a62c824be90ee1c2d9 | [
"Apache-2.0"
] | null | null | null | ding/policy/__init__.py | timothijoe/DI-engine | f0014586f7043334b5ce78a62c824be90ee1c2d9 | [
"Apache-2.0"
] | null | null | null | from .base_policy import Policy, CommandModePolicy, create_policy, get_policy_cls
from .dqn import DQNPolicy
from .iqn import IQNPolicy
from .qrdqn import QRDQNPolicy
from .c51 import C51Policy
from .rainbow import RainbowDQNPolicy
from .ddpg import DDPGPolicy
from .d4pg import D4PGPolicy
from .td3 import TD3Policy
fro... | 27.083333 | 81 | 0.831795 | 132 | 975 | 6.075758 | 0.515152 | 0.017456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023641 | 0.132308 | 975 | 35 | 82 | 27.857143 | 0.92435 | 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 |
8102675a4a66a474f667011b4f2560969bc5dd32 | 662 | py | Python | test/resources/inspectors/python/case34_cohesion.py | hyperskill/hyperstyle | bf3c6e2dc42290ad27f2d30ce42d84a53241544b | [
"Apache-2.0"
] | 18 | 2020-10-05T16:48:11.000Z | 2022-03-22T04:15:38.000Z | test/resources/inspectors/python/case34_cohesion.py | hyperskill/hyperstyle | bf3c6e2dc42290ad27f2d30ce42d84a53241544b | [
"Apache-2.0"
] | 60 | 2020-10-05T17:01:05.000Z | 2022-01-27T12:46:14.000Z | test/resources/inspectors/python/case34_cohesion.py | hyperskill/hyperstyle | bf3c6e2dc42290ad27f2d30ce42d84a53241544b | [
"Apache-2.0"
] | 6 | 2021-02-09T09:31:19.000Z | 2021-08-13T07:45:51.000Z | from math import sqrt
class BadClass:
def __init__(self, x: int, y: int):
self.x = x
self.y = y
@staticmethod
def length(x: int, y: int) -> float:
return sqrt(x ** 2 + y ** 2)
@staticmethod
def dot(self_x: int, self_y: int, other_x: int, other_y: int) -> int:
retu... | 22.827586 | 73 | 0.567976 | 106 | 662 | 3.358491 | 0.207547 | 0.11236 | 0.08427 | 0.067416 | 0.449438 | 0.449438 | 0.449438 | 0.449438 | 0.449438 | 0.449438 | 0 | 0.004329 | 0.302115 | 662 | 28 | 74 | 23.642857 | 0.766234 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.05 | 0.2 | 0.65 | 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 |
810505a59d46d28d040c6cdd7a4bee3f69e4cc15 | 259 | py | Python | console.py | snicoper/snicoper.com | 22c17b5ead6096227a3415770c0cbd2923f2f14a | [
"MIT"
] | 2 | 2017-04-22T11:35:21.000Z | 2017-09-01T19:49:59.000Z | console.py | snicoper/snicoper.com | 22c17b5ead6096227a3415770c0cbd2923f2f14a | [
"MIT"
] | null | null | null | console.py | snicoper/snicoper.com | 22c17b5ead6096227a3415770c0cbd2923f2f14a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# flake8: noqa
# Para pruebas rápidas
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'src.config.settings.local')
import django
django.setup()
##############################################################################
| 19.923077 | 78 | 0.528958 | 25 | 259 | 5.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.081081 | 259 | 12 | 79 | 21.583333 | 0.563025 | 0.208494 | 0 | 0 | 0 | 0 | 0.379032 | 0.379032 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
811d1d758c6ff167918c978fcbffb10ea400e424 | 1,221 | py | Python | hindi-dependency-parser-2.0/hindi-pos-tagger/bin/normalize_bojar_lrec_2010.py | anviup/Figure-of-Speech-Detection-in-Hindi | fea3ef1eaaaddb7d9df31591cab7416966a34044 | [
"MIT"
] | 12 | 2017-05-05T02:24:34.000Z | 2021-12-25T21:11:31.000Z | hindi-dependency-parser-2.0/hindi-pos-tagger/bin/normalize_bojar_lrec_2010.py | anviup/Figure-of-Speech-Detection-in-Hindi | fea3ef1eaaaddb7d9df31591cab7416966a34044 | [
"MIT"
] | 1 | 2017-12-12T06:34:46.000Z | 2018-01-17T21:41:56.000Z | hindi-dependency-parser-2.0/hindi-pos-tagger/bin/normalize_bojar_lrec_2010.py | anviup/Figure-of-Speech-Detection-in-Hindi | fea3ef1eaaaddb7d9df31591cab7416966a34044 | [
"MIT"
] | 3 | 2018-11-25T15:32:39.000Z | 2021-03-24T05:01:16.000Z | # -*- coding: utf-8 -*-
import sys
vowels_to_be_replaced= {}
def replace_null(from_chr_num, to_chr_num):
for x in range(from_chr_num, to_chr_num):
vowels_to_be_replaced[unichr(x)]= ""
#replace_null(0x0900, 0x0904)
#replace_null(0x093A, 0x0950)
#replace_null(0x0951, 0x0958)
#replace_null(0x0962, 0x0964)
#... | 27.133333 | 53 | 0.69697 | 232 | 1,221 | 3.37931 | 0.318966 | 0.193878 | 0.242347 | 0.436224 | 0.451531 | 0.09949 | 0.053571 | 0 | 0 | 0 | 0 | 0.057692 | 0.148239 | 1,221 | 44 | 54 | 27.75 | 0.683654 | 0.158067 | 0 | 0 | 0 | 0 | 0.045098 | 0 | 0 | 0 | 0.011765 | 0 | 0 | 0 | null | null | 0 | 0.032258 | null | null | 0.064516 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
812f2571aa4de399df116a341fbabe432ff128af | 202 | py | Python | ManageSnippetApp/SnippetApp/forms.py | mitalimn/PythonDjangoApp | 9c8b3264991f1550732235a80775f3ed5813a416 | [
"MIT"
] | null | null | null | ManageSnippetApp/SnippetApp/forms.py | mitalimn/PythonDjangoApp | 9c8b3264991f1550732235a80775f3ed5813a416 | [
"MIT"
] | null | null | null | ManageSnippetApp/SnippetApp/forms.py | mitalimn/PythonDjangoApp | 9c8b3264991f1550732235a80775f3ed5813a416 | [
"MIT"
] | null | null | null | from django import forms
from .models import Snippet
class CreateSnippet(forms.ModelForm):
class Meta:
model = Snippet
fields = ['title', 'language', 'code_snippet', 'description']
| 25.25 | 69 | 0.688119 | 22 | 202 | 6.272727 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207921 | 202 | 7 | 70 | 28.857143 | 0.8625 | 0 | 0 | 0 | 0 | 0 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8134d9f61006060e049d2e2618b65333378716df | 82 | py | Python | tests/with.py | raff/gopyr | 924c5f7f687c9396524b709a74d342253ba85411 | [
"MIT"
] | 9 | 2018-10-20T07:34:28.000Z | 2020-04-21T03:03:54.000Z | tests/with.py | raff/gopyr | 924c5f7f687c9396524b709a74d342253ba85411 | [
"MIT"
] | 2 | 2018-10-20T17:47:25.000Z | 2019-11-20T23:30:21.000Z | tests/with.py | raff/gopyr | 924c5f7f687c9396524b709a74d342253ba85411 | [
"MIT"
] | null | null | null | # test with
with open("test.txt") as f:
f.write("hello worlds")
f.read()
| 13.666667 | 27 | 0.585366 | 14 | 82 | 3.428571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231707 | 82 | 5 | 28 | 16.4 | 0.761905 | 0.109756 | 0 | 0 | 0 | 0 | 0.28169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d49553a815786fbf62831bcd582b075d479e51a0 | 535 | pyde | Python | processing/sketch_191008f/sketch_191008f.pyde | nanam0rgana/2019-fall-polytech-cs | 1a31acb3cf22edc930318dec17324b05dd7788d5 | [
"MIT"
] | null | null | null | processing/sketch_191008f/sketch_191008f.pyde | nanam0rgana/2019-fall-polytech-cs | 1a31acb3cf22edc930318dec17324b05dd7788d5 | [
"MIT"
] | null | null | null | processing/sketch_191008f/sketch_191008f.pyde | nanam0rgana/2019-fall-polytech-cs | 1a31acb3cf22edc930318dec17324b05dd7788d5 | [
"MIT"
] | null | null | null | windowWidth = 500
windowHeight = 500
ellipseSize = 200
def setup():
size(windowWidth , windowHeight)
smooth()
background(255)
fill(50, 80)
stroke(100)
strokeWeight(3)
noLoop()
def draw():
ellipse(windowWidth/2, windowHeight/2 - ellipseSize/2,
ellipseSize , ellipseSize);
ellipse(windowWidth/2 - ellipseSize/2, ... | 25.47619 | 55 | 0.75514 | 60 | 535 | 6.733333 | 0.366667 | 0.237624 | 0.188119 | 0.247525 | 0.653465 | 0.653465 | 0.653465 | 0.653465 | 0.653465 | 0.430693 | 0 | 0.06823 | 0.123364 | 535 | 20 | 56 | 26.75 | 0.793177 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d4a08447d7781965cbf5a3645a640af163d3aaa5 | 153 | py | Python | api/recyclomedia/storage_backends.py | akassharjun/recyclomedia | e7f373b339fcf850a215ff3bf97524bcbc6e533b | [
"MIT"
] | 39 | 2020-06-29T06:02:23.000Z | 2022-02-13T05:05:03.000Z | api/recyclomedia/storage_backends.py | akassharjun/recyclomedia | e7f373b339fcf850a215ff3bf97524bcbc6e533b | [
"MIT"
] | 8 | 2020-07-03T08:33:18.000Z | 2022-03-12T00:38:22.000Z | api/recyclomedia/storage_backends.py | akassharjun/recyclomedia | e7f373b339fcf850a215ff3bf97524bcbc6e533b | [
"MIT"
] | 12 | 2020-06-29T15:32:23.000Z | 2021-02-07T16:20:26.000Z | from storages.backends.s3boto3 import S3Boto3Storage
class MediaStorage(S3Boto3Storage):
location = 'recyclomedia/media'
file_overwrite = False | 25.5 | 52 | 0.797386 | 15 | 153 | 8.066667 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.137255 | 153 | 6 | 53 | 25.5 | 0.871212 | 0 | 0 | 0 | 0 | 0 | 0.116883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d4a4ec8248e1717751374aa3485b50f363211eae | 244 | py | Python | tests/conftest.py | IaroslavR/multiconsumers-queue | 89d344998661a17b3410a838447ad3cbb4f2603e | [
"MIT"
] | null | null | null | tests/conftest.py | IaroslavR/multiconsumers-queue | 89d344998661a17b3410a838447ad3cbb4f2603e | [
"MIT"
] | null | null | null | tests/conftest.py | IaroslavR/multiconsumers-queue | 89d344998661a17b3410a838447ad3cbb4f2603e | [
"MIT"
] | null | null | null | def pytest_assertrepr_compare(config, op, left, right):
"""Hook for PyCharm full diff
References:
https://stackoverflow.com/a/50625086/4249707"""
if op in ("==", "!="):
return ["{0} {1} {2}".format(left, op, right)]
| 34.857143 | 55 | 0.598361 | 31 | 244 | 4.645161 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093264 | 0.209016 | 244 | 6 | 56 | 40.666667 | 0.65285 | 0.356557 | 0 | 0 | 0 | 0 | 0.104895 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d4a93b05317dd61752783a672a0e056d2131cba8 | 598 | py | Python | trace_simexp/__init__.py | damar-wicaksono/trace-simexp | e2640ff44de461c70ffbd9c8faa68965821b37f2 | [
"MIT"
] | null | null | null | trace_simexp/__init__.py | damar-wicaksono/trace-simexp | e2640ff44de461c70ffbd9c8faa68965821b37f2 | [
"MIT"
] | null | null | null | trace_simexp/__init__.py | damar-wicaksono/trace-simexp | e2640ff44de461c70ffbd9c8faa68965821b37f2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
trace_simexp
*************
Module with utilities to carry out simulation experiment in TRACE code.
The experiment is divided into three steps and for each, user interacts
through the available command line interface
1. pre-processing
2. execute
3. post-proce... | 23 | 75 | 0.714047 | 79 | 598 | 5.240506 | 0.683544 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008421 | 0.205686 | 598 | 25 | 76 | 23.92 | 0.863158 | 0.481605 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.909091 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d4be22df9e62e17efd984f2ca44055b7e7677fa0 | 135 | py | Python | aps/tests/__init__.py | ishxiao/aps | 07cd92e3d8a17b01bda5a81f8ab70a3f69f9d52d | [
"MIT"
] | 1 | 2018-01-23T10:37:53.000Z | 2018-01-23T10:37:53.000Z | aps/tests/__init__.py | ishxiao/aps | 07cd92e3d8a17b01bda5a81f8ab70a3f69f9d52d | [
"MIT"
] | null | null | null | aps/tests/__init__.py | ishxiao/aps | 07cd92e3d8a17b01bda5a81f8ab70a3f69f9d52d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 20 14:55:39 2017
@author: ishxiao
~Email~: me@ishxiao.com
"""
| 12.272727 | 35 | 0.614815 | 22 | 135 | 3.772727 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.17037 | 135 | 10 | 36 | 13.5 | 0.616071 | 0.896296 | 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 |
d4c59986fc81a590c257fb720bf18adf2a3f2019 | 260 | py | Python | applications/tensorflow/contrastive_divergence_vae/models/vae/architectures/__init__.py | Splendon/examples | ed4a8a01857b6ddca49559141acf5d0986eb01e1 | [
"MIT"
] | null | null | null | applications/tensorflow/contrastive_divergence_vae/models/vae/architectures/__init__.py | Splendon/examples | ed4a8a01857b6ddca49559141acf5d0986eb01e1 | [
"MIT"
] | null | null | null | applications/tensorflow/contrastive_divergence_vae/models/vae/architectures/__init__.py | Splendon/examples | ed4a8a01857b6ddca49559141acf5d0986eb01e1 | [
"MIT"
] | null | null | null | # Copyright 2019 Graphcore Ltd.
# coding=utf-8
from models.vae.architectures.vcd_ruiz_2019 import encoder as encoder_vcd
from models.vae.architectures.vcd_ruiz_2019 import decoder as decoder_vcd
encoders = {'vcd': encoder_vcd}
decoders = {'vcd': decoder_vcd}
| 32.5 | 73 | 0.803846 | 39 | 260 | 5.153846 | 0.487179 | 0.099502 | 0.129353 | 0.258706 | 0.427861 | 0.427861 | 0.427861 | 0.427861 | 0 | 0 | 0 | 0.056034 | 0.107692 | 260 | 7 | 74 | 37.142857 | 0.810345 | 0.161538 | 0 | 0 | 0 | 0 | 0.027907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d4cfdb5318d17f15bf169ce81122958fc237c3ed | 2,574 | py | Python | Domains/InfiniteMario/15-rl-competition-2009/system/codecs/Python/src/tests/test_empty_experiment.py | sleyzerzon/soar | 74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71 | [
"Unlicense"
] | 1 | 2016-04-01T04:02:28.000Z | 2016-04-01T04:02:28.000Z | Domains/InfiniteMario/15-rl-competition-2009/system/codecs/Python/src/tests/test_empty_experiment.py | sleyzerzon/soar | 74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71 | [
"Unlicense"
] | null | null | null | Domains/InfiniteMario/15-rl-competition-2009/system/codecs/Python/src/tests/test_empty_experiment.py | sleyzerzon/soar | 74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71 | [
"Unlicense"
] | null | null | null | #
# Copyright (C) 2008, Brian Tanner
#
#http://rl-glue-ext.googlecode.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 requi... | 32.175 | 116 | 0.746309 | 396 | 2,574 | 4.757576 | 0.330808 | 0.151805 | 0.207006 | 0.229299 | 0.542463 | 0.542463 | 0.514862 | 0.071125 | 0 | 0 | 0 | 0.030144 | 0.110723 | 2,574 | 79 | 117 | 32.582278 | 0.792923 | 0.308858 | 0 | 0.097561 | 0 | 0 | 0.005698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073171 | null | null | 0.02439 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d4db2763458ab073ed14be2751eba0bdb62c70d7 | 876 | py | Python | pynterest_rate/base_interest_rate.py | leuder/interest_rate | a3ab37e93a2db21745f6c7da3257688d2fd3cd6c | [
"MIT"
] | null | null | null | pynterest_rate/base_interest_rate.py | leuder/interest_rate | a3ab37e93a2db21745f6c7da3257688d2fd3cd6c | [
"MIT"
] | null | null | null | pynterest_rate/base_interest_rate.py | leuder/interest_rate | a3ab37e93a2db21745f6c7da3257688d2fd3cd6c | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class InterestRate(ABC):
def __init__(self, i=None, pv=None, t=None, fv=None):
""" Generic Interest rate class for calculating and
visualizing a interest rate
Paramters
---------
i (float) Interest rate, ex 0.5
pv (f... | 23.675676 | 60 | 0.5879 | 98 | 876 | 5.112245 | 0.397959 | 0.11976 | 0.199601 | 0.149701 | 0.197605 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003454 | 0.339041 | 876 | 36 | 61 | 24.333333 | 0.861831 | 0.277397 | 0 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0.210526 | 0.052632 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d4f53e6c2e5f3acd19e59e8a24a1f0d05ea4844f | 339 | py | Python | backend/dating/admin.py | crowdbotics-apps/virtual-match-29867 | 9c2a092e49db5aa5c09704c957d616390a4e5543 | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | backend/dating/admin.py | crowdbotics-apps/virtual-match-29867 | 9c2a092e49db5aa5c09704c957d616390a4e5543 | [
"FTL",
"AML",
"RSA-MD"
] | 15 | 2021-08-23T01:13:44.000Z | 2022-03-13T17:38:13.000Z | backend/dating/admin.py | crowdbotics-apps/virtual-match-29867 | 9c2a092e49db5aa5c09704c957d616390a4e5543 | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | from django.contrib import admin
from .models import Setting, Profile, Inbox, Dislike, Match, UserPhoto, Like
admin.site.register(Like)
admin.site.register(Inbox)
admin.site.register(Match)
admin.site.register(UserPhoto)
admin.site.register(Setting)
admin.site.register(Dislike)
admin.site.register(Profile)
# Register... | 26.076923 | 76 | 0.80531 | 47 | 339 | 5.808511 | 0.361702 | 0.230769 | 0.435897 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082596 | 339 | 12 | 77 | 28.25 | 0.877814 | 0.076696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be018be34b57bd1cd64ab6f3189d337c0e44a9da | 53 | py | Python | anipic/wallpaper/__init__.py | Cosmicoppai/ani_pic | c7f5bb126728bbb4680f33a7dd1752ef1c84ca5a | [
"MIT"
] | 1 | 2021-12-21T18:20:25.000Z | 2021-12-21T18:20:25.000Z | anipic/wallpaper/__init__.py | Cosmicoppai/ani_pic | c7f5bb126728bbb4680f33a7dd1752ef1c84ca5a | [
"MIT"
] | 1 | 2021-11-09T08:30:05.000Z | 2021-11-26T21:13:33.000Z | anipic/wallpaper/__init__.py | Cosmicoppai/ani_pic | c7f5bb126728bbb4680f33a7dd1752ef1c84ca5a | [
"MIT"
] | null | null | null | default_app_config = 'wallpaper.apps.WallpaperConfig' | 53 | 53 | 0.867925 | 6 | 53 | 7.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 53 | 1 | 53 | 53 | 0.862745 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 0.555556 | 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 |
be043b6be46d207db511ad9661b200cf851a5022 | 266 | py | Python | api_site/src/sample_site/config/beta.py | webee/pay | b48c6892686bf3f9014bb67ed119506e41050d45 | [
"W3C"
] | 1 | 2019-10-14T11:51:49.000Z | 2019-10-14T11:51:49.000Z | api_site/src/sample_site/config/beta.py | webee/pay | b48c6892686bf3f9014bb67ed119506e41050d45 | [
"W3C"
] | null | null | null | api_site/src/sample_site/config/beta.py | webee/pay | b48c6892686bf3f9014bb67ed119506e41050d45 | [
"W3C"
] | null | null | null | # coding=utf-8
class App:
TESTING = True
HOST_URL = "http://pay.lvye.com"
PAYEE = '169658002'
class PayClientConfig:
CHANNEL_NAME = 'lvye_pay_test'
ROOT_URL = "http://pay.lvye.com/api/__"
CHECKOUT_URL = 'http://pay.lvye.com/__/checkout/{sn}'
| 14.777778 | 57 | 0.657895 | 37 | 266 | 4.459459 | 0.621622 | 0.127273 | 0.181818 | 0.254545 | 0.309091 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045872 | 0.180451 | 266 | 17 | 58 | 15.647059 | 0.711009 | 0.045113 | 0 | 0 | 0 | 0 | 0.40873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.75 | 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 |
be291251f416d32c6fcd5d7fb31ff77f4e8e4e54 | 288 | py | Python | tests/run_all.py | betterzdw/dwzhaopt | e45341541ae189c2130462c374c20bcd58ecc4b1 | [
"MIT"
] | null | null | null | tests/run_all.py | betterzdw/dwzhaopt | e45341541ae189c2130462c374c20bcd58ecc4b1 | [
"MIT"
] | null | null | null | tests/run_all.py | betterzdw/dwzhaopt | e45341541ae189c2130462c374c20bcd58ecc4b1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import doctest
import test
doctest.testmod(test, optionflags=doctest.NORMALIZE_WHITESPACE |
doctest.ELLIPSIS |
doctest.REPORT_ONLY_FIRST_FAILURE
)
| 26.181818 | 68 | 0.524306 | 25 | 288 | 5.88 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005714 | 0.392361 | 288 | 10 | 69 | 28.8 | 0.834286 | 0.142361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
07709ff2c4b86639071a590831823970875a9fae | 18,479 | py | Python | sportsipy/nba/constants.py | MArtinherz/sportsipy | 24f4c1d5e3bb8ecc56e21568961588491e9cfd2a | [
"MIT"
] | 221 | 2018-05-15T19:48:03.000Z | 2021-01-05T15:36:21.000Z | sportsipy/nba/constants.py | MArtinherz/sportsipy | 24f4c1d5e3bb8ecc56e21568961588491e9cfd2a | [
"MIT"
] | 502 | 2018-07-25T03:09:26.000Z | 2021-01-06T16:07:02.000Z | sportsipy/nba/constants.py | MArtinherz/sportsipy | 24f4c1d5e3bb8ecc56e21568961588491e9cfd2a | [
"MIT"
] | 72 | 2021-01-21T13:17:00.000Z | 2022-03-31T21:43:25.000Z | PARSING_SCHEME = {
'name': 'a',
'games_played': 'td[data-stat="g"]:first',
'minutes_played': 'td[data-stat="mp"]:first',
'field_goals': 'td[data-stat="fg"]:first',
'field_goal_attempts': 'td[data-stat="fga"]:first',
'field_goal_percentage': 'td[data-stat="fg_pct"]:first',
'three_point_field_... | 44.208134 | 79 | 0.65615 | 2,582 | 18,479 | 4.366383 | 0.165376 | 0.167465 | 0.207557 | 0.091804 | 0.593135 | 0.468689 | 0.321359 | 0.215008 | 0.117793 | 0.059074 | 0 | 0.007883 | 0.135018 | 18,479 | 417 | 80 | 44.314149 | 0.697447 | 0 | 0 | 0 | 0 | 0 | 0.738352 | 0.469073 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.002463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0774b029c2e11dc5b48330b9e232d2ebdc985572 | 128 | py | Python | python/desafios/desafio13_numInteiro.py | JbRodrigues/Estudos | 734e6ca80296f7d97890a0d5ad885d89711e8c1c | [
"MIT"
] | null | null | null | python/desafios/desafio13_numInteiro.py | JbRodrigues/Estudos | 734e6ca80296f7d97890a0d5ad885d89711e8c1c | [
"MIT"
] | null | null | null | python/desafios/desafio13_numInteiro.py | JbRodrigues/Estudos | 734e6ca80296f7d97890a0d5ad885d89711e8c1c | [
"MIT"
] | null | null | null | import math
import random
num = random.random()
show = math.trunc(num)
print('O numero {}, inteiro fica {}'.format(num, show)) | 18.285714 | 55 | 0.695313 | 19 | 128 | 4.684211 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140625 | 128 | 7 | 55 | 18.285714 | 0.809091 | 0 | 0 | 0 | 0 | 0 | 0.217054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0777eb17a3c439ea4a285f848220ca7bad9ad8da | 463 | py | Python | tutorials/overview.py | fatiando-bot/boule | b6678a2c6ec6ede4bfcb0a3a5702f0936117beb3 | [
"BSD-3-Clause"
] | null | null | null | tutorials/overview.py | fatiando-bot/boule | b6678a2c6ec6ede4bfcb0a3a5702f0936117beb3 | [
"BSD-3-Clause"
] | null | null | null | tutorials/overview.py | fatiando-bot/boule | b6678a2c6ec6ede4bfcb0a3a5702f0936117beb3 | [
"BSD-3-Clause"
] | null | null | null | """
.. _overview:
Overview
========
Brief description of Boule and the main
functionality. It's a good idea to explain the package conventions.
The library
-----------
Most classes and functions are available through the :mod:`boule` top level package.
"""
import boule
##########################################... | 17.148148 | 84 | 0.557235 | 48 | 463 | 5.354167 | 0.708333 | 0.108949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005013 | 0.138229 | 463 | 26 | 85 | 17.807692 | 0.639098 | 0.704104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
077e695b9af2564011604b4c4473cecbffac1320 | 250 | py | Python | exercises/zh/test_02_10_01.py | tuanducdesign/spacy-course | f8d092c5fa2997fccb3f367d174dce8667932b3d | [
"MIT"
] | 2 | 2020-07-07T01:46:37.000Z | 2021-04-20T03:19:43.000Z | exercises/zh/test_02_10_01.py | tuanducdesign/spacy-course | f8d092c5fa2997fccb3f367d174dce8667932b3d | [
"MIT"
] | null | null | null | exercises/zh/test_02_10_01.py | tuanducdesign/spacy-course | f8d092c5fa2997fccb3f367d174dce8667932b3d | [
"MIT"
] | null | null | null | def test():
assert (
"doc1.similarity(doc2)" in __solution__ or "doc2.similarity(doc1)" in __solution__
), "你有计算两个doc之间的相似度吗?"
assert (
0 <= float(similarity) <= 1
), "相似度分数是一个浮点数。你确定你计算正确了吗?"
__msg__.good("棒棒哒!")
| 27.777778 | 90 | 0.612 | 25 | 250 | 5.64 | 0.72 | 0.141844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031414 | 0.236 | 250 | 8 | 91 | 31.25 | 0.706806 | 0 | 0 | 0.25 | 0 | 0 | 0.344 | 0.26 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | true | 0 | 0 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
078ae5d3746e4493a0b8946b595561509ea7ebb2 | 110 | py | Python | output/models/ms_data/particles/particles_ha016_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/particles/particles_ha016_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/particles/particles_ha016_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.particles.particles_ha016_xsd.particles_ha016 import Doc
__all__ = [
"Doc",
]
| 18.333333 | 83 | 0.772727 | 15 | 110 | 5.133333 | 0.733333 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.127273 | 110 | 5 | 84 | 22 | 0.739583 | 0 | 0 | 0 | 0 | 0 | 0.027273 | 0 | 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 |
078d018310cbe44f1bbd981730630504e7a68d81 | 278 | py | Python | web_server/db_router.py | claudi47/DSBD_Server | a54192655042cdf8ff917db7a22b07bc83d07a0d | [
"MIT"
] | 1 | 2021-12-29T18:12:07.000Z | 2021-12-29T18:12:07.000Z | web_server/db_router.py | claudi47/DSBD_Server | a54192655042cdf8ff917db7a22b07bc83d07a0d | [
"MIT"
] | null | null | null | web_server/db_router.py | claudi47/DSBD_Server | a54192655042cdf8ff917db7a22b07bc83d07a0d | [
"MIT"
] | null | null | null | class DistributedRouter:
def allow_migrate(self, db, app_label, model_name=None, **hints):
if model_name in ['user', 'settings']:
return db == 'parser'
if model_name in ['search', 'betdata']:
return db == 'betdata'
return True | 39.714286 | 69 | 0.589928 | 33 | 278 | 4.818182 | 0.666667 | 0.169811 | 0.138365 | 0.163522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.284173 | 278 | 7 | 70 | 39.714286 | 0.798995 | 0 | 0 | 0 | 0 | 0 | 0.136201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
07db70e928672176b7bb32521300bfb53b8ed773 | 188 | py | Python | config/GB.py | chenbotao828/txt2md | 3ee054800652e3dee5fb1625368637ed4063abb5 | [
"MIT"
] | 3 | 2015-10-30T15:42:03.000Z | 2019-06-21T04:22:28.000Z | config/GB.py | chenbotao828/txt2md | 3ee054800652e3dee5fb1625368637ed4063abb5 | [
"MIT"
] | null | null | null | config/GB.py | chenbotao828/txt2md | 3ee054800652e3dee5fb1625368637ed4063abb5 | [
"MIT"
] | null | null | null | # GB :国家标准的缩写
def make_page_type(txt,doc_type):
if "目次" in txt:
return "GB_ML"
if "术语" in txt and "条文说明" not in txt:
return "GB_SY"
else:
return "GB_ZW" | 23.5 | 41 | 0.569149 | 32 | 188 | 3.15625 | 0.625 | 0.148515 | 0.217822 | 0.257426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.319149 | 188 | 8 | 42 | 23.5 | 0.789063 | 0.058511 | 0 | 0 | 0 | 0 | 0.130682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.571429 | 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 |
07dcacb6c9d1ecc94fe4a293ccf4e02c98709862 | 641 | py | Python | utils/activation.py | NaCl-Ocean/Anchor_free_detection_rotation | 358d9f5df1beabc7a05a352d2cfa2283b17825a9 | [
"MIT"
] | 12 | 2020-10-30T09:15:38.000Z | 2020-10-31T11:38:49.000Z | utils/activation.py | YangHai-1218/Anchor_free_detection_rotation | 358d9f5df1beabc7a05a352d2cfa2283b17825a9 | [
"MIT"
] | null | null | null | utils/activation.py | YangHai-1218/Anchor_free_detection_rotation | 358d9f5df1beabc7a05a352d2cfa2283b17825a9 | [
"MIT"
] | null | null | null | import torch
from torch import nn
class SwishImplementation(torch.autograd.Function):
@staticmethod
def forward(ctx, i):
result = i * torch.sigmoid(i)
ctx.save_for_backward(i)
return result
@staticmethod
def backward(ctx, grad_output):
i = ctx.saved_variab... | 25.64 | 69 | 0.625585 | 79 | 641 | 4.974684 | 0.392405 | 0.101781 | 0.066158 | 0.071247 | 0.147583 | 0.147583 | 0.147583 | 0 | 0 | 0 | 0 | 0.006438 | 0.273011 | 641 | 25 | 70 | 25.64 | 0.83691 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.105263 | 0.684211 | 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 |
07e24e357b888d28407c325c9c5a793fb0970e9d | 582 | py | Python | numpy/typing/tests/data/reveal/nested_sequence.py | fishmandev/numpy | 7e8285ba48179b19b4d251ac3447569141c7e8f7 | [
"BSD-3-Clause"
] | 1 | 2021-09-25T14:21:36.000Z | 2021-09-25T14:21:36.000Z | numpy/typing/tests/data/reveal/nested_sequence.py | fishmandev/numpy | 7e8285ba48179b19b4d251ac3447569141c7e8f7 | [
"BSD-3-Clause"
] | 79 | 2021-06-23T21:05:30.000Z | 2022-03-28T08:11:46.000Z | numpy/typing/tests/data/reveal/nested_sequence.py | fishmandev/numpy | 7e8285ba48179b19b4d251ac3447569141c7e8f7 | [
"BSD-3-Clause"
] | null | null | null | from typing import Sequence, Tuple, List, Any
import numpy.typing as npt
a: Sequence[int]
b: Sequence[Sequence[int]]
c: Sequence[Sequence[Sequence[int]]]
d: Sequence[Sequence[Sequence[Sequence[int]]]]
e: Sequence[bool]
f: Tuple[int, ...]
g: List[int]
h: Sequence[Any]
def func(a: npt._NestedSequence[int]) -> None:
... | 24.25 | 46 | 0.682131 | 97 | 582 | 4 | 0.268041 | 0.206186 | 0.28866 | 0.371134 | 0.342784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139175 | 582 | 23 | 47 | 25.304348 | 0.774451 | 0.108247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.15 | 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 |
07f39210c6a3e1a4cb98ab00f403f9d2f3355b4d | 187 | py | Python | casparser/__init__.py | nirmanp6/casparser | 8dae4ec06d410f3299e1203ee89e6d0794bdd92d | [
"MIT"
] | null | null | null | casparser/__init__.py | nirmanp6/casparser | 8dae4ec06d410f3299e1203ee89e6d0794bdd92d | [
"MIT"
] | null | null | null | casparser/__init__.py | nirmanp6/casparser | 8dae4ec06d410f3299e1203ee89e6d0794bdd92d | [
"MIT"
] | null | null | null | from .parsers import read_cas_pdf
from .types import CASParserDataType
from .__version__ import __version__
__all__ = [
"read_cas_pdf",
"__version__",
"CASParserDataType",
]
| 18.7 | 36 | 0.748663 | 20 | 187 | 6 | 0.5 | 0.116667 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171123 | 187 | 9 | 37 | 20.777778 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0.213904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
58030d9e555f0ed1bb7442a941598f0898bfcc56 | 9,222 | py | Python | simulation/python_standard_lib/test/test_tools/test_unparse.py | john-grando/pyExpandObjects | c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4 | [
"BSD-3-Clause"
] | null | null | null | simulation/python_standard_lib/test/test_tools/test_unparse.py | john-grando/pyExpandObjects | c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4 | [
"BSD-3-Clause"
] | 1 | 2021-02-03T01:56:56.000Z | 2021-02-03T01:56:56.000Z | simulation/python_standard_lib/test/test_tools/test_unparse.py | john-grando/pyExpandObjects | c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4 | [
"BSD-3-Clause"
] | 1 | 2022-01-11T18:31:05.000Z | 2022-01-11T18:31:05.000Z | """Tests for the unparse.py script in the Tools/parser directory."""
import unittest
import test.support
import io
import os
import random
import tokenize
import ast
from test.test_tools import basepath, toolsdir, skip_if_missing
skip_if_missing()
parser_path = os.path.join(toolsdir, "parser")
with... | 28.115854 | 79 | 0.588592 | 1,195 | 9,222 | 4.374059 | 0.225941 | 0.208915 | 0.265162 | 0.122059 | 0.322173 | 0.245648 | 0.174287 | 0.104649 | 0.095848 | 0.090492 | 0 | 0.022256 | 0.278898 | 9,222 | 327 | 80 | 28.201835 | 0.763759 | 0.086424 | 0 | 0.182186 | 0 | 0 | 0.221644 | 0 | 0 | 0 | 0 | 0 | 0.012146 | 1 | 0.145749 | false | 0.076923 | 0.060729 | 0 | 0.238866 | 0.008097 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.