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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d64f415897e749c6aa56a242b90bd89c895e2511 | 87 | py | Python | protocolws/__init__.py | panmpan17/ProtocolWebsocket | 05893ab47883fec4356f2f617213093eb7d9b4df | [
"MIT"
] | null | null | null | protocolws/__init__.py | panmpan17/ProtocolWebsocket | 05893ab47883fec4356f2f617213093eb7d9b4df | [
"MIT"
] | null | null | null | protocolws/__init__.py | panmpan17/ProtocolWebsocket | 05893ab47883fec4356f2f617213093eb7d9b4df | [
"MIT"
] | null | null | null | from .server import WebsocketServer, ErrMsg
name = "protocolws"
__version__ = "0.2.1"
| 17.4 | 43 | 0.747126 | 11 | 87 | 5.545455 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.137931 | 87 | 4 | 44 | 21.75 | 0.773333 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 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 |
c38ac90ca808d2dd0ca78ec136aaa0e419c7ab9a | 88 | py | Python | CodeUP/Python basic 100/6081.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | CodeUP/Python basic 100/6081.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | CodeUP/Python basic 100/6081.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | n = int(input(),16)
for i in range(1,16):
print("%X"%n,"*%X"%i,"=%X"%(n*i),sep="")
| 17.6 | 44 | 0.454545 | 19 | 88 | 2.105263 | 0.631579 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.147727 | 88 | 4 | 45 | 22 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c392ee111fc105d1add3bfe72b6ea6451c22de9b | 71 | py | Python | scanapi/__init__.py | marcuxyz/scanapi | e42bcde18d4219fc603b0b9ee8f0b67d4085ec63 | [
"MIT"
] | 2 | 2020-08-26T01:54:19.000Z | 2021-07-23T14:06:34.000Z | scanapi/__init__.py | marcuxyz/scanapi | e42bcde18d4219fc603b0b9ee8f0b67d4085ec63 | [
"MIT"
] | null | null | null | scanapi/__init__.py | marcuxyz/scanapi | e42bcde18d4219fc603b0b9ee8f0b67d4085ec63 | [
"MIT"
] | null | null | null | name = "scanapi"
from scanapi.__main__ import main
__all__ = ["main"]
| 14.2 | 33 | 0.71831 | 9 | 71 | 4.777778 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 71 | 4 | 34 | 17.75 | 0.716667 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 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 |
c39f85552fb76ed1c43748aba7b313d0e063acf8 | 243 | py | Python | BasicCache/BasicCacheModule.py | prodProject/WorkkerAndConsumerServer | 95496f026109279c9891e08af46040c7b9487c81 | [
"MIT"
] | null | null | null | BasicCache/BasicCacheModule.py | prodProject/WorkkerAndConsumerServer | 95496f026109279c9891e08af46040c7b9487c81 | [
"MIT"
] | null | null | null | BasicCache/BasicCacheModule.py | prodProject/WorkkerAndConsumerServer | 95496f026109279c9891e08af46040c7b9487c81 | [
"MIT"
] | null | null | null | from werkzeug.contrib.cache import SimpleCache
class BasicCache:
cache = SimpleCache()
def set(self, key, value):
self.cache.set(key, value, timeout=50 * 1000)
def get(self, key):
return self.cache.get(key=key)
| 20.25 | 53 | 0.658436 | 33 | 243 | 4.848485 | 0.545455 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031915 | 0.226337 | 243 | 11 | 54 | 22.090909 | 0.819149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.857143 | 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 |
c3b239f366d0aa2e3fa43d5373d1a03a579fb69c | 1,104 | py | Python | tests/test_iter_ij_in_block.py | kalekundert/wellmap | 05a9029807276ec29aea63db10c664ad2ede093c | [
"MIT"
] | 7 | 2020-05-29T21:14:49.000Z | 2022-01-25T15:35:17.000Z | tests/test_iter_ij_in_block.py | kalekundert/wellmap | 05a9029807276ec29aea63db10c664ad2ede093c | [
"MIT"
] | 24 | 2020-06-09T14:29:03.000Z | 2022-03-25T22:43:24.000Z | tests/test_iter_ij_in_block.py | kalekundert/wellmap | 05a9029807276ec29aea63db10c664ad2ede093c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import pytest
from wellmap import *
@pytest.mark.parametrize(
'args, expected', [
(((0,0), 0, 0), []),
(((0,0), 0, 1), []),
(((0,0), 1, 0), []),
(((0,0), 1, 1), [(0,0)]),
(((0,0), 2, 1), [(0,0), (0,1)]),
(((0,0), 1,... | 30.666667 | 58 | 0.272645 | 171 | 1,104 | 1.719298 | 0.140351 | 0.204082 | 0.153061 | 0.108844 | 0.55102 | 0.367347 | 0.221088 | 0.061224 | 0.061224 | 0 | 0 | 0.197724 | 0.363225 | 1,104 | 35 | 59 | 31.542857 | 0.220484 | 0.019022 | 0 | 0 | 0 | 0 | 0.012939 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.033333 | false | 0 | 0.066667 | 0 | 0.1 | 0.033333 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c3b44be37f288d5b48b6f0177fd4a4019cc7b623 | 215 | py | Python | py-server/src/enum/index.py | Jonnytoshen/wind-layer | 514e9b9c76b6d72faac21543fd5fb1c43e6bd9b5 | [
"BSD-3-Clause"
] | 285 | 2017-12-16T13:29:27.000Z | 2022-03-28T02:59:08.000Z | py-server/src/enum/index.py | Jonnytoshen/wind-layer | 514e9b9c76b6d72faac21543fd5fb1c43e6bd9b5 | [
"BSD-3-Clause"
] | 104 | 2018-01-01T01:40:13.000Z | 2022-03-26T18:20:45.000Z | py-server/src/enum/index.py | Jonnytoshen/wind-layer | 514e9b9c76b6d72faac21543fd5fb1c43e6bd9b5 | [
"BSD-3-Clause"
] | 97 | 2017-12-18T08:05:21.000Z | 2022-03-28T15:49:38.000Z | from enum import Enum
class noaa_site_label(Enum):
DIRECTORY = 'directory:'
FILE_LIST = '\n**NEW** Select one file only '
SURFACES = 'select the levels desired:'
VARIABLES = 'select the variables desired:'
| 26.875 | 47 | 0.716279 | 29 | 215 | 5.206897 | 0.689655 | 0.119205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176744 | 215 | 7 | 48 | 30.714286 | 0.853107 | 0 | 0 | 0 | 0 | 0 | 0.446512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c3d5b63b4aec63e711dc906333d611d89cd9fa71 | 1,360 | py | Python | app/data.py | leecrowe/bandersnatch-app | 575394a7b7c47b8525d182edd4d7cf22de985d18 | [
"MIT"
] | null | null | null | app/data.py | leecrowe/bandersnatch-app | 575394a7b7c47b8525d182edd4d7cf22de985d18 | [
"MIT"
] | null | null | null | app/data.py | leecrowe/bandersnatch-app | 575394a7b7c47b8525d182edd4d7cf22de985d18 | [
"MIT"
] | null | null | null | from os import getenv
from typing import Iterator, Dict, Iterable
from pymongo import MongoClient
import pandas as pd
from dotenv import load_dotenv
class Data:
""" MongoDB Data Model """
load_dotenv()
db_url = getenv("DB_URL")
db_name = getenv("DB_NAME")
db_table = getenv("DB_TABLE")
def co... | 28.333333 | 68 | 0.668382 | 193 | 1,360 | 4.487047 | 0.243523 | 0.073903 | 0.055427 | 0.073903 | 0.057737 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001842 | 0.201471 | 1,360 | 47 | 69 | 28.93617 | 0.79558 | 0.013235 | 0 | 0 | 0 | 0 | 0.029985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.34375 | false | 0 | 0.15625 | 0.1875 | 0.8125 | 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 |
c3dc65c6f95112e170d27e15fb7aca74b4ab07cd | 11,253 | py | Python | lib/fcn/test_common.py | LeiYangJustin/UnseenObjectClustering | 177d67c47bfd973d46b816e6b68bf20660f4b71d | [
"BSD-Source-Code"
] | 101 | 2020-12-13T22:20:12.000Z | 2022-03-22T07:58:58.000Z | lib/fcn/test_common.py | LeiYangJustin/UnseenObjectClustering | 177d67c47bfd973d46b816e6b68bf20660f4b71d | [
"BSD-Source-Code"
] | 6 | 2021-01-13T13:33:04.000Z | 2022-03-08T02:13:27.000Z | lib/fcn/test_common.py | LeiYangJustin/UnseenObjectClustering | 177d67c47bfd973d46b816e6b68bf20660f4b71d | [
"BSD-Source-Code"
] | 19 | 2021-01-21T18:19:42.000Z | 2022-03-07T14:17:21.000Z | # Copyright (c) 2020 NVIDIA Corporation. All rights reserved.
# This work is licensed under the NVIDIA Source Code License - Non-commercial. Full
# text can be found in LICENSE.md
import torch
import time
import sys, os
import numpy as np
import cv2
import matplotlib.pyplot as plt
from fcn.config import cfg
from utils... | 31.085635 | 98 | 0.50902 | 1,473 | 11,253 | 3.758995 | 0.130346 | 0.0419 | 0.035759 | 0.05689 | 0.707062 | 0.702547 | 0.660827 | 0.646018 | 0.646018 | 0.631389 | 0 | 0.022877 | 0.366836 | 11,253 | 361 | 99 | 31.171745 | 0.754246 | 0.055185 | 0 | 0.718412 | 0 | 0 | 0.029385 | 0.004368 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01444 | false | 0 | 0.028881 | 0 | 0.046931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c3e63aa7608692e9e7131de69634555c66e2658b | 123 | py | Python | mantraml/templates/projects/default/settings.py | cclauss/mantra | 19e2f72960da8314f11768d9acfe7836629b817c | [
"Apache-2.0"
] | 330 | 2018-09-04T19:07:51.000Z | 2021-09-14T11:21:05.000Z | mantraml/templates/projects/default/settings.py | cclauss/mantra | 19e2f72960da8314f11768d9acfe7836629b817c | [
"Apache-2.0"
] | 13 | 2018-09-06T06:08:16.000Z | 2018-12-01T17:04:38.000Z | mantraml/templates/projects/default/settings.py | cclauss/mantra | 19e2f72960da8314f11768d9acfe7836629b817c | [
"Apache-2.0"
] | 20 | 2018-09-06T11:56:07.000Z | 2021-12-03T19:48:21.000Z | # AWS SETTINGS
AWS_AMI_IMAGE_ID = 'ami-6356761c'
AWS_INSTANCE_TYPE = 'p2.xlarge'
S3_BUCKET_NAME = 'default-s3-bucket-name' | 30.75 | 41 | 0.780488 | 20 | 123 | 4.45 | 0.7 | 0.179775 | 0.269663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09009 | 0.097561 | 123 | 4 | 41 | 30.75 | 0.711712 | 0.097561 | 0 | 0 | 0 | 0 | 0.390909 | 0.2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
c3f41031d68e0a2d6308085aa0e246d0f490465c | 968 | py | Python | lct/tasks/taskstore.py | pathbreak/linode-cluster-toolkit | 280257436105703c9a122e7ed111a72efa79adfc | [
"MIT"
] | 11 | 2017-07-19T15:25:39.000Z | 2021-12-02T20:03:21.000Z | lct/tasks/taskstore.py | pathbreak/linode-cluster-toolkit | 280257436105703c9a122e7ed111a72efa79adfc | [
"MIT"
] | null | null | null | lct/tasks/taskstore.py | pathbreak/linode-cluster-toolkit | 280257436105703c9a122e7ed111a72efa79adfc | [
"MIT"
] | 1 | 2021-12-02T20:03:22.000Z | 2021-12-02T20:03:22.000Z | class TaskStore(object):
'''
All task execution plans are stored and tracked in a TaskStore.
Both are crucual for supporting pause and resume of operations.
The interface to be implemented by all providers that provide task
storage capabilities.
'''
def initialize(self):
... | 28.470588 | 74 | 0.636364 | 101 | 968 | 6.069307 | 0.623762 | 0.117455 | 0.166395 | 0.195759 | 0.264274 | 0.264274 | 0.179445 | 0 | 0 | 0 | 0 | 0 | 0.303719 | 968 | 33 | 75 | 29.333333 | 0.909496 | 0.469008 | 0 | 0.428571 | 0 | 0 | 0.234257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c3f677ecc5dfde9410fda55667fad516d6d7ddf7 | 827 | py | Python | catweazle/applog.py | upendar245/CatWeazle | 58e4e37a71c61b998c6a3adae5e16343db50aff5 | [
"MIT"
] | 1 | 2020-12-17T04:23:32.000Z | 2020-12-17T04:23:32.000Z | catweazle/applog.py | upendar245/CatWeazle | 58e4e37a71c61b998c6a3adae5e16343db50aff5 | [
"MIT"
] | null | null | null | catweazle/applog.py | upendar245/CatWeazle | 58e4e37a71c61b998c6a3adae5e16343db50aff5 | [
"MIT"
] | 1 | 2020-04-24T10:17:03.000Z | 2020-04-24T10:17:03.000Z | import logging
import aiotask_context as context
class AppLogging:
def __init__(self):
self.log = logging.getLogger('application')
self.context = context
def info(self, msg):
self.log.info('{0} {1}'.format(self.context.get('X-Request-ID'), msg))
def warning(self, msg):
s... | 29.535714 | 82 | 0.610641 | 122 | 827 | 4.098361 | 0.221311 | 0.098 | 0.132 | 0.168 | 0.45 | 0.45 | 0.45 | 0.45 | 0.45 | 0.45 | 0 | 0.017804 | 0.185006 | 827 | 27 | 83 | 30.62963 | 0.724036 | 0 | 0 | 0 | 0 | 0 | 0.151149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7f17a75bcf20017304a34f189d671e3f94815fb9 | 387 | py | Python | service/models/employer/employer_filter.py | CyberArkForTheCommunity/jobli-backend | 2309c9ac33993cb89a8e1581630d99b46f8d55aa | [
"MIT"
] | null | null | null | service/models/employer/employer_filter.py | CyberArkForTheCommunity/jobli-backend | 2309c9ac33993cb89a8e1581630d99b46f8d55aa | [
"MIT"
] | 1 | 2021-12-23T13:36:43.000Z | 2021-12-23T13:36:43.000Z | service/models/employer/employer_filter.py | CyberArkForTheCommunity/jobli-backend | 2309c9ac33993cb89a8e1581630d99b46f8d55aa | [
"MIT"
] | null | null | null | from pydantic import BaseModel, Field
from typing import Optional
from service.lambdas.employer.constants import EmployerConstants
class EmployerFilter(BaseModel):
employer_id: Optional[str]
business_name: Optional[str]
city: Optional[str]
last_pagination_key: Optional[str]
limit_per_page: Optiona... | 32.25 | 93 | 0.803618 | 47 | 387 | 6.425532 | 0.595745 | 0.145695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126615 | 387 | 11 | 94 | 35.181818 | 0.893491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7f1abb5060e39a368256be6fdccc62d3097395a3 | 185 | py | Python | user_guide/urls.py | jmcriffey/django-user-guide | f4a1c462d2f7bf8569576f757e2f106b565e3e40 | [
"MIT"
] | null | null | null | user_guide/urls.py | jmcriffey/django-user-guide | f4a1c462d2f7bf8569576f757e2f106b565e3e40 | [
"MIT"
] | null | null | null | user_guide/urls.py | jmcriffey/django-user-guide | f4a1c462d2f7bf8569576f757e2f106b565e3e40 | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, url
from user_guide import views
urlpatterns = patterns(
'',
url(r'^seen/?$', views.GuideSeenView.as_view(), name='user_guide.seen')
)
| 18.5 | 75 | 0.702703 | 25 | 185 | 5.08 | 0.68 | 0.173228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151351 | 185 | 9 | 76 | 20.555556 | 0.808917 | 0 | 0 | 0 | 0 | 0 | 0.124324 | 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 |
61696efc02baa4bd76628d5a785149b2ecf4ac45 | 11,300 | py | Python | 018-crackme-z3/asdf.py | gynvael/stream | 2d1a3f25b2f83241b39dab931d9ff03fca81d26e | [
"MIT"
] | 152 | 2016-02-04T10:40:46.000Z | 2022-03-03T18:25:54.000Z | 018-crackme-z3/asdf.py | gynvael/stream | 2d1a3f25b2f83241b39dab931d9ff03fca81d26e | [
"MIT"
] | 4 | 2016-03-11T23:49:46.000Z | 2017-06-16T18:58:53.000Z | 018-crackme-z3/asdf.py | gynvael/stream | 2d1a3f25b2f83241b39dab931d9ff03fca81d26e | [
"MIT"
] | 48 | 2016-01-31T19:13:36.000Z | 2021-09-03T19:50:17.000Z | from z3 import *
def movsx(v):
return ZeroExt(32 - 8, v)
def imul(a, b, c = None):
if c is None:
return a * b
return b * c
def xor_(r, v):
return r ^ v
def or_(r, v):
return r | v
def mov(_, r2):
return r2
def shr(r1, c):
return LShR(r1, c)
def shl(r1, c):
return r1 <... | 24.197002 | 43 | 0.544867 | 1,926 | 11,300 | 3.089304 | 0.03946 | 0.035294 | 0.024202 | 0.02521 | 0.725882 | 0.689076 | 0.684706 | 0.684706 | 0.656134 | 0.656134 | 0 | 0.086348 | 0.285664 | 11,300 | 466 | 44 | 24.248927 | 0.650768 | 0.001681 | 0 | 0.739421 | 0 | 0 | 0.01378 | 0 | 0 | 0 | 0.050402 | 0 | 0 | 0 | null | null | 0 | 0.002227 | null | null | 0.002227 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
617acae417a764a9156239c61c9cc59f10cf60e7 | 4,725 | py | Python | tests/models/torch/q_functions/test_qr_q_function.py | ningyixue/AIPI530_Final_Project | b95353ffd003692a37a59042dfcd744a18b7e802 | [
"MIT"
] | 565 | 2020-08-01T02:44:28.000Z | 2022-03-30T15:00:54.000Z | tests/models/torch/q_functions/test_qr_q_function.py | ningyixue/AIPI530_Final_Project | b95353ffd003692a37a59042dfcd744a18b7e802 | [
"MIT"
] | 144 | 2020-08-01T03:45:10.000Z | 2022-03-30T14:51:16.000Z | tests/models/torch/q_functions/test_qr_q_function.py | ningyixue/AIPI530_Final_Project | b95353ffd003692a37a59042dfcd744a18b7e802 | [
"MIT"
] | 103 | 2020-08-26T13:27:34.000Z | 2022-03-31T12:24:27.000Z | import numpy as np
import pytest
import torch
from d3rlpy.models.torch import ContinuousQRQFunction, DiscreteQRQFunction
from d3rlpy.models.torch.q_functions.qr_q_function import _make_taus
from d3rlpy.models.torch.q_functions.utility import (
pick_quantile_value_by_action,
)
from ..model_test import (
DummyE... | 35 | 79 | 0.699471 | 700 | 4,725 | 4.427143 | 0.125714 | 0.084221 | 0.035495 | 0.058083 | 0.815424 | 0.748629 | 0.681187 | 0.64182 | 0.64182 | 0.64182 | 0 | 0.023112 | 0.175873 | 4,725 | 134 | 80 | 35.261194 | 0.772727 | 0.055026 | 0 | 0.536082 | 0 | 0 | 0.02382 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 1 | 0.020619 | false | 0 | 0.072165 | 0 | 0.092784 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 |
619ba5260e66d9abf9514a7f5139f96e733a0a46 | 4,085 | py | Python | src/lybica/loader.py | protone/lybica-runner | 185b3fc4ffc7a6e066baa6c2f030e109db97b4b1 | [
"MIT"
] | null | null | null | src/lybica/loader.py | protone/lybica-runner | 185b3fc4ffc7a6e066baa6c2f030e109db97b4b1 | [
"MIT"
] | 3 | 2015-11-04T09:43:35.000Z | 2015-11-12T09:41:21.000Z | src/lybica/loader.py | protone/lybica-runner | 185b3fc4ffc7a6e066baa6c2f030e109db97b4b1 | [
"MIT"
] | null | null | null | from .executor import ScriptExecutor
import logging
SCRIPT_CONFIG = [
# health check script before install package
{
"name": 'install_package_pre_check',
"search_path": ["${TESTCASE_PATH}/AreaCI/${PID}/install_package_pre_check",
"${BRANCH_ROOT}/PlatformCI/${PID}/${PRODUCT}/${TES... | 47.5 | 107 | 0.622766 | 436 | 4,085 | 5.408257 | 0.172018 | 0.088634 | 0.161154 | 0.136556 | 0.749788 | 0.716709 | 0.716709 | 0.656064 | 0.457591 | 0.227311 | 0 | 0 | 0.228641 | 4,085 | 85 | 108 | 48.058824 | 0.748334 | 0.020563 | 0 | 0.197368 | 0 | 0 | 0.576432 | 0.451589 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039474 | false | 0 | 0.026316 | 0 | 0.118421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
61c7129583ba4b43eb7ad3e93b2aa91fac2d4fa7 | 372 | py | Python | djangae/contrib/locking/kinds.py | bocribbz/djangae | 8a118d755cd707e6a452593050c25d790edde944 | [
"BSD-3-Clause"
] | 467 | 2015-01-02T22:35:37.000Z | 2022-02-22T23:13:36.000Z | djangae/contrib/locking/kinds.py | bocribbz/djangae | 8a118d755cd707e6a452593050c25d790edde944 | [
"BSD-3-Clause"
] | 743 | 2015-01-02T15:55:34.000Z | 2021-01-29T09:43:19.000Z | djangae/contrib/locking/kinds.py | bocribbz/djangae | 8a118d755cd707e6a452593050c25d790edde944 | [
"BSD-3-Clause"
] | 154 | 2015-01-01T17:05:59.000Z | 2021-12-09T06:40:07.000Z |
class LOCK_KINDS(object):
""" The different kinds of lock which you can use.
WEAK is not guaranteed to be robust, but can be used for situations where avoiding
simultaneous code execution is preferable but not critical.
STRONG is for where preventing simultaneous code execution is *require... | 33.818182 | 90 | 0.69086 | 50 | 372 | 5.12 | 0.64 | 0.125 | 0.195313 | 0.210938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252688 | 372 | 10 | 91 | 37.2 | 0.920863 | 0.706989 | 0 | 0 | 0 | 0 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f6036eaf498e2f4f6785b62692e626d23ee553a9 | 1,075 | py | Python | indy_common/test/auth/multi_sig/test_auth_multi_sig_for_1_owner.py | NeolithEra/indy-node | c1f5ee8643a19d84b06cbb16347df845fa60bdb0 | [
"Apache-2.0"
] | null | null | null | indy_common/test/auth/multi_sig/test_auth_multi_sig_for_1_owner.py | NeolithEra/indy-node | c1f5ee8643a19d84b06cbb16347df845fa60bdb0 | [
"Apache-2.0"
] | 1 | 2019-02-07T18:11:15.000Z | 2019-02-07T18:14:06.000Z | indy_common/test/auth/multi_sig/test_auth_multi_sig_for_1_owner.py | NeolithEra/indy-node | c1f5ee8643a19d84b06cbb16347df845fa60bdb0 | [
"Apache-2.0"
] | null | null | null | import pytest
from indy_common.authorize.auth_constraints import AuthConstraint, IDENTITY_OWNER
@pytest.fixture(scope='module')
def write_auth_req_validator(write_auth_req_validator, key):
write_auth_req_validator.auth_cons_strategy.get_auth_constraint = lambda a: AuthConstraint(IDENTITY_OWNER, 1)
return wri... | 38.392857 | 113 | 0.713488 | 131 | 1,075 | 5.442748 | 0.351145 | 0.100982 | 0.185133 | 0.210379 | 0.41094 | 0.371669 | 0.322581 | 0.322581 | 0.322581 | 0.322581 | 0 | 0.008245 | 0.210233 | 1,075 | 27 | 114 | 39.814815 | 0.831567 | 0 | 0 | 0.222222 | 0 | 0 | 0.030698 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.388889 | 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 |
f603fa533fa7372d6f36ecb1fb1141ca4cbdca2b | 53 | py | Python | code/answer_4-2-5.py | KoyanagiHitoshi/AtCoder-Python-Introduction | 6d014e333a873f545b4d32d438e57cf428b10b96 | [
"MIT"
] | 1 | 2022-03-29T13:50:12.000Z | 2022-03-29T13:50:12.000Z | code/answer_4-2-5.py | KoyanagiHitoshi/AtCoder-Python-Introduction | 6d014e333a873f545b4d32d438e57cf428b10b96 | [
"MIT"
] | null | null | null | code/answer_4-2-5.py | KoyanagiHitoshi/AtCoder-Python-Introduction | 6d014e333a873f545b4d32d438e57cf428b10b96 | [
"MIT"
] | null | null | null | S = input()
print(S+"s" if S[-1] != "s" else S+"es")
| 17.666667 | 40 | 0.471698 | 12 | 53 | 2.083333 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.188679 | 53 | 2 | 41 | 26.5 | 0.55814 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 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 |
f6044ea76ca13f4f72c527f9840f77894b5d9897 | 693 | py | Python | computer-truevalue.py | yjnanan/Model_Free_Prediction | 135762a330ce6879973f005f370c886e53491922 | [
"Apache-2.0"
] | null | null | null | computer-truevalue.py | yjnanan/Model_Free_Prediction | 135762a330ce6879973f005f370c886e53491922 | [
"Apache-2.0"
] | null | null | null | computer-truevalue.py | yjnanan/Model_Free_Prediction | 135762a330ce6879973f005f370c886e53491922 | [
"Apache-2.0"
] | null | null | null | import numpy as np
def state_value_function(p,r,v):
gamma=0.9
while True:
value=r.T+gamma*p*v
if(value==v).all():
break
v=value
return v
if __name__ =='__main__':
#c1 c2 c3 pass pub fb sleep
#probability matrix
P_matrix=np.mat([[0,0,0,0,0,0,0],
... | 28.875 | 61 | 0.464646 | 135 | 693 | 2.251852 | 0.281481 | 0.282895 | 0.305921 | 0.315789 | 0.286184 | 0.286184 | 0.286184 | 0.282895 | 0.282895 | 0.184211 | 0 | 0.159737 | 0.340548 | 693 | 24 | 61 | 28.875 | 0.50547 | 0.063492 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.15 | 0.05 | 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 |
f607b3974a5c6166e58b2e10c377a1e3e486d89a | 363 | py | Python | users/models.py | AhteshamSid/Blog-Post-Django | 12cfe49f9909b3f35decda396626bcd010fabc74 | [
"MIT"
] | null | null | null | users/models.py | AhteshamSid/Blog-Post-Django | 12cfe49f9909b3f35decda396626bcd010fabc74 | [
"MIT"
] | null | null | null | users/models.py | AhteshamSid/Blog-Post-Django | 12cfe49f9909b3f35decda396626bcd010fabc74 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
# Create your models here.
class Profile(models.Model):
user = models.OneToOneField(User,on_delete=models.CASCADE)
image = models.ImageField(default='default.jpg', upload_to='profile_pics')
def __str__(se... | 30.25 | 79 | 0.732782 | 49 | 363 | 5.285714 | 0.632653 | 0.07722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173554 | 363 | 11 | 80 | 33 | 0.863333 | 0.066116 | 0 | 0 | 0 | 0 | 0.070769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
f60fa01fcca07216f2bcd4f1876c31853730ce6d | 1,151 | py | Python | visual_mpc/envs/offline_env.py | Asap7772/visual_foresight | 13c631dc76ca1b61d7159473b3f2207ce2a3da04 | [
"MIT"
] | null | null | null | visual_mpc/envs/offline_env.py | Asap7772/visual_foresight | 13c631dc76ca1b61d7159473b3f2207ce2a3da04 | [
"MIT"
] | null | null | null | visual_mpc/envs/offline_env.py | Asap7772/visual_foresight | 13c631dc76ca1b61d7159473b3f2207ce2a3da04 | [
"MIT"
] | null | null | null | from visual_mpc.envs.base_env import BaseEnv
class OfflineSawyerEnv(BaseEnv):
"""
Emulates a real-image Sawyer Env without access to robot, only works together with the Offline Agent!
"""
def __init__(self, env_params_dict, reset_state=None):
self._hp = self._default_hparams()
... | 23.489796 | 106 | 0.588184 | 135 | 1,151 | 4.8 | 0.474074 | 0.092593 | 0.064815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.329279 | 1,151 | 48 | 107 | 23.979167 | 0.834197 | 0.163336 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.310345 | false | 0 | 0.034483 | 0.206897 | 0.655172 | 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 |
f62b5eeb8c988346be283fc9dfbe7ef972666e1e | 713 | py | Python | src/controllers/out.py | marijadebe/lab | b3b213116b25fc89db374f6e61a2513508d00934 | [
"MIT"
] | null | null | null | src/controllers/out.py | marijadebe/lab | b3b213116b25fc89db374f6e61a2513508d00934 | [
"MIT"
] | null | null | null | src/controllers/out.py | marijadebe/lab | b3b213116b25fc89db374f6e61a2513508d00934 | [
"MIT"
] | null | null | null | import sys
import re
from models.types import Types
def out(treechildren, variables):
print("")
for j in range(len(treechildren.children)):
if treechildren.getChild(j).getToken().getType() == Types.STRING:
sys.stdout.write(treechildren.getChild(j).getToken().getValue())
elif treech... | 44.5625 | 87 | 0.653576 | 84 | 713 | 5.547619 | 0.428571 | 0.257511 | 0.270386 | 0.373391 | 0.519313 | 0.439914 | 0.351931 | 0.351931 | 0.351931 | 0.351931 | 0 | 0.006861 | 0.182328 | 713 | 16 | 88 | 44.5625 | 0.792453 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.285714 | 0.071429 | 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 |
f63d7e029bf5a5228b9983d3d3b72e181cfc36c8 | 2,313 | py | Python | tests/test_prometheus_querybuilder.py | m-chrome/prometheus-query-builder | 14c391346b99742909265fc00b0e620fc0d6134c | [
"MIT"
] | null | null | null | tests/test_prometheus_querybuilder.py | m-chrome/prometheus-query-builder | 14c391346b99742909265fc00b0e620fc0d6134c | [
"MIT"
] | null | null | null | tests/test_prometheus_querybuilder.py | m-chrome/prometheus-query-builder | 14c391346b99742909265fc00b0e620fc0d6134c | [
"MIT"
] | null | null | null | from prometheus_query_builder.query import Query
import pytest
def test_query():
""" Test query with only metric name """
query = Query("http_requests_total")
assert str(query) == "http_requests_total"
def test_query_with_label():
query = Query("http_requests_total")
query.add_label("environmen... | 30.434211 | 85 | 0.722006 | 288 | 2,313 | 5.461806 | 0.149306 | 0.114431 | 0.216147 | 0.27972 | 0.78131 | 0.664971 | 0.621742 | 0.576605 | 0.48061 | 0.425938 | 0 | 0.02423 | 0.143537 | 2,313 | 75 | 86 | 30.84 | 0.769813 | 0.013835 | 0 | 0.392157 | 0 | 0 | 0.344919 | 0.104707 | 0 | 0 | 0 | 0 | 0.215686 | 1 | 0.215686 | false | 0 | 0.039216 | 0 | 0.254902 | 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 |
f6682ef64e0abbac8e8a75420b895edbc5772431 | 250 | py | Python | OOPs/inheritance.py | Shivams9/pythoncodecamp | e6cd27f4704a407ee360414a8c9236b254117a59 | [
"MIT"
] | 6 | 2021-08-04T08:15:22.000Z | 2022-02-02T11:15:56.000Z | OOPs/inheritance.py | Maurya232Abhishek/Python-repository-for-basics | 3dcec5c529a0847df07c9dcc1424675754ce6376 | [
"MIT"
] | 14 | 2021-08-02T06:28:00.000Z | 2022-03-25T10:44:15.000Z | OOPs/inheritance.py | Maurya232Abhishek/Python-repository-for-basics | 3dcec5c529a0847df07c9dcc1424675754ce6376 | [
"MIT"
] | 6 | 2021-07-16T04:56:41.000Z | 2022-02-16T04:40:06.000Z | class A:
def f1(self):
print("F1 in A")
class B:
def f2(self):
print("F2 in B")
def f1(self):
print("F1 in B")
class C(A,B):
def f(self):
A().f1()
B().f1()
c = C()
c.f1()
c.f2()
c.f()
| 13.157895 | 24 | 0.404 | 44 | 250 | 2.295455 | 0.25 | 0.267327 | 0.178218 | 0.277228 | 0.356436 | 0.356436 | 0 | 0 | 0 | 0 | 0 | 0.065359 | 0.388 | 250 | 18 | 25 | 13.888889 | 0.594771 | 0 | 0 | 0.125 | 0 | 0 | 0.084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.4375 | 0.1875 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9c9d85a146755f67b9bdd4855fe645173983f2c8 | 223 | py | Python | tests/run_tests.py | in-toto/layout-web-tool | cbadd131a692e8457d548da2d37012306ba4a7b9 | [
"MIT"
] | 1 | 2020-04-01T15:05:54.000Z | 2020-04-01T15:05:54.000Z | tests/run_tests.py | in-toto/layout-web-tool | cbadd131a692e8457d548da2d37012306ba4a7b9 | [
"MIT"
] | 42 | 2017-05-23T17:19:19.000Z | 2021-04-26T12:28:47.000Z | tests/run_tests.py | in-toto/layout-web-tool | cbadd131a692e8457d548da2d37012306ba4a7b9 | [
"MIT"
] | 7 | 2017-05-04T02:13:07.000Z | 2020-07-09T10:56:03.000Z | from unittest import defaultTestLoader, TextTestRunner
import sys
suite = defaultTestLoader.discover(start_dir=".")
result = TextTestRunner(verbosity=2, buffer=True).run(suite)
sys.exit(0 if result.wasSuccessful() else 1)
| 31.857143 | 60 | 0.802691 | 28 | 223 | 6.357143 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014778 | 0.089686 | 223 | 6 | 61 | 37.166667 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0.004484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9cbc11953dd73fb6f511c74d730fad379ee2138f | 91 | py | Python | config.py | agithug/fan-controller | 046ecd9120c3a3fa0c581cbcd3dc89bd50a7373c | [
"MIT"
] | null | null | null | config.py | agithug/fan-controller | 046ecd9120c3a3fa0c581cbcd3dc89bd50a7373c | [
"MIT"
] | null | null | null | config.py | agithug/fan-controller | 046ecd9120c3a3fa0c581cbcd3dc89bd50a7373c | [
"MIT"
] | null | null | null | #used as a configuration file
def fan:
pin = 4
dependencies = [“python3”,”gpiozero”]
| 13 | 37 | 0.67033 | 12 | 91 | 5.083333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.208791 | 91 | 6 | 38 | 15.166667 | 0.819444 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9cc696533b798f11c9e94346fe3734171f19a56d | 328 | py | Python | api/common/JQSDK_Connect.py | abcdcamey/stock-data | bfdc67e60b7d4de59c66dbb52159574b4e0a5e51 | [
"MIT"
] | 1 | 2019-04-10T09:07:59.000Z | 2019-04-10T09:07:59.000Z | api/common/JQSDK_Connect.py | abcdcamey/stock-data | bfdc67e60b7d4de59c66dbb52159574b4e0a5e51 | [
"MIT"
] | 2 | 2021-06-01T23:39:34.000Z | 2021-12-13T19:58:31.000Z | api/common/JQSDK_Connect.py | abcdcamey/stock-data | bfdc67e60b7d4de59c66dbb52159574b4e0a5e51 | [
"MIT"
] | null | null | null | #coding=utf-8
from jqdatasdk import *
class JQSDK_Connect:
def __init__(self):
#auth('18818273592','Chenmin585858') #账号是申请时所填写的手机号;密码为聚宽官网登录密码,新申请用户默认为手机号后6位
auth('15821295829', 'Niuniuniu2020')
#auth('13816896174', '896174')
def get_query_count(self):
return get_query_count(... | 16.4 | 86 | 0.670732 | 33 | 328 | 6.393939 | 0.787879 | 0.075829 | 0.123223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196911 | 0.210366 | 328 | 19 | 87 | 17.263158 | 0.617761 | 0.356707 | 0 | 0 | 0 | 0 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 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 |
9cd61c204b329ca886ff80f063d2527cb83d49ab | 462 | py | Python | sanskrit_parser/generator/test/test_ajanta_stri.py | avinashvarna/sanskrit_parser | 79338213128b29927fe2f06031379bb1e3864a83 | [
"MIT"
] | 54 | 2017-06-30T09:11:53.000Z | 2022-03-22T15:35:41.000Z | sanskrit_parser/generator/test/test_ajanta_stri.py | avinashvarna/sanskrit_parser | 79338213128b29927fe2f06031379bb1e3864a83 | [
"MIT"
] | 159 | 2017-06-30T07:04:36.000Z | 2021-06-17T17:03:43.000Z | sanskrit_parser/generator/test/test_ajanta_stri.py | avinashvarna/sanskrit_parser | 79338213128b29927fe2f06031379bb1e3864a83 | [
"MIT"
] | 18 | 2017-08-17T13:22:00.000Z | 2022-01-20T01:08:58.000Z | from sanskrit_parser.generator.pratyaya import * # noqa: F403, F401
from sanskrit_parser.generator.dhatu import * # noqa: F403, F401
from sanskrit_parser.generator.pratipadika import * # noqa: F403, F401
from sanskrit_parser.base.sanskrit_base import DEVANAGARI
from sanskrit_parser.generator.sutras_yaml import sutra... | 38.5 | 71 | 0.824675 | 64 | 462 | 5.703125 | 0.390625 | 0.164384 | 0.246575 | 0.29589 | 0.345205 | 0.345205 | 0.345205 | 0.246575 | 0 | 0 | 0 | 0.043796 | 0.11039 | 462 | 11 | 72 | 42 | 0.844282 | 0.108225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.75 | 0 | 0.875 | 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 |
9cec9b5ef5691da4f654da65ea5fb44ee14018a8 | 63 | py | Python | certifi/__init__.py | andrew-aladev/certifi-shim | efbda777bfbdcf0676a789b15010b43a54e4da1a | [
"CC0-1.0"
] | null | null | null | certifi/__init__.py | andrew-aladev/certifi-shim | efbda777bfbdcf0676a789b15010b43a54e4da1a | [
"CC0-1.0"
] | null | null | null | certifi/__init__.py | andrew-aladev/certifi-shim | efbda777bfbdcf0676a789b15010b43a54e4da1a | [
"CC0-1.0"
] | null | null | null | from certifi.core import contents, where
__version__ = "9999"
| 15.75 | 40 | 0.777778 | 8 | 63 | 5.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.142857 | 63 | 3 | 41 | 21 | 0.759259 | 0 | 0 | 0 | 0 | 0 | 0.063492 | 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 |
9cf34c2b4493cdfb7aff2d968769acb0ab4ee469 | 578 | py | Python | song_generator/tests.py | gorbulus/song_generator | ba527e7a0151177f794995d0d79fdeffff45b7fb | [
"MIT"
] | null | null | null | song_generator/tests.py | gorbulus/song_generator | ba527e7a0151177f794995d0d79fdeffff45b7fb | [
"MIT"
] | null | null | null | song_generator/tests.py | gorbulus/song_generator | ba527e7a0151177f794995d0d79fdeffff45b7fb | [
"MIT"
] | null | null | null | '''
# tests.py
# William Ponton
# 5.9.21
# Tests for the song_generator project
'''
# import pacagkes
import song_generator.generator as gen
import song_generator.song_data as s_data
import song_generator.string_literals as s_lit
from song_generator.SongClass import Song # Song class
# test output from each import fil... | 26.272727 | 54 | 0.743945 | 88 | 578 | 4.693182 | 0.431818 | 0.157385 | 0.138015 | 0.09201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008032 | 0.138408 | 578 | 22 | 55 | 26.272727 | 0.821285 | 0.237024 | 0 | 0 | 0 | 0 | 0.210648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | true | 0 | 0.384615 | 0 | 0.538462 | 0.307692 | 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 |
1404d7c78ab63ab6c44fb7aef71aaac733eb3dc8 | 578 | py | Python | install_imports.py | surajssd/kube-hunter | 0157ac83ce6a735d4a431e9e3a6d4ec847aa6fc1 | [
"Apache-2.0"
] | 1 | 2019-09-25T12:31:33.000Z | 2019-09-25T12:31:33.000Z | install_imports.py | surajssd/kube-hunter | 0157ac83ce6a735d4a431e9e3a6d4ec847aa6fc1 | [
"Apache-2.0"
] | null | null | null | install_imports.py | surajssd/kube-hunter | 0157ac83ce6a735d4a431e9e3a6d4ec847aa6fc1 | [
"Apache-2.0"
] | 1 | 2020-08-17T16:05:45.000Z | 2020-08-17T16:05:45.000Z | from os.path import basename
import glob
def get_py_files(path):
for py_file in glob.glob("{}*.py".format(path)):
if not py_file.endswith("__init__.py"):
yield basename(py_file)[:-3]
def install_static_imports(path):
with open("{}__init__.py".format(path), 'w') as init_f:
for pf in... | 32.111111 | 59 | 0.695502 | 85 | 578 | 4.411765 | 0.435294 | 0.173333 | 0.266667 | 0.184 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002037 | 0.150519 | 578 | 17 | 60 | 34 | 0.761711 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 0.038062 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0 | 0.714286 | 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 |
142c7611071a9367cf6a272e8d29329b7ce52109 | 193 | py | Python | api/serializers/server.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | 1 | 2019-08-06T07:31:40.000Z | 2019-08-06T07:31:40.000Z | api/serializers/server.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | null | null | null | api/serializers/server.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from api.models import *
class ServerListSerializers(serializers.ModelSerializer):
class Meta:
model = Server
fields = "__all__"
| 16.083333 | 57 | 0.720207 | 19 | 193 | 7.052632 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222798 | 193 | 11 | 58 | 17.545455 | 0.893333 | 0 | 0 | 0 | 0 | 0 | 0.036842 | 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 | 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 |
143f866b2d562d6e58d70545f8b51ba4cdbd1e78 | 486 | py | Python | gnosis/eth/oracles/__init__.py | titandac/gnosis-py | cf0af4f25e64b22256eabb415d0f3fe3a6180b14 | [
"MIT"
] | 64 | 2018-09-26T19:56:50.000Z | 2022-03-18T21:45:59.000Z | gnosis/eth/oracles/__init__.py | zhanghao-ic/gnosis-py | d2a5912547b7d1b576c826909f4c1d0155db536f | [
"MIT"
] | 151 | 2018-09-10T21:42:05.000Z | 2022-03-31T12:33:31.000Z | gnosis/eth/oracles/__init__.py | zhanghao-ic/gnosis-py | d2a5912547b7d1b576c826909f4c1d0155db536f | [
"MIT"
] | 50 | 2018-12-13T20:43:46.000Z | 2022-03-30T09:32:32.000Z | # flake8: noqa F401
from .oracles import (
AaveOracle,
BalancerOracle,
CannotGetPriceFromOracle,
ComposedPriceOracle,
CreamOracle,
CurveOracle,
EnzymeOracle,
InvalidPriceFromOracle,
KyberOracle,
MooniswapOracle,
OracleException,
PoolTogetherOracle,
PriceOracle,
Pr... | 19.44 | 29 | 0.711934 | 27 | 486 | 12.814815 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013441 | 0.234568 | 486 | 24 | 30 | 20.25 | 0.916667 | 0.034979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.043478 | 0 | 0.043478 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
145854982248ea84d9abe0f478e5e22274de2489 | 142 | py | Python | vet_care/doc_events/patient_appointment.py | neerajvkn/vet_care | 14914b22e7a83265d736f9f9dc5186271ae62d66 | [
"MIT"
] | 2 | 2020-11-23T11:14:32.000Z | 2021-02-03T06:40:33.000Z | vet_care/doc_events/patient_appointment.py | neerajvkn/vet_care | 14914b22e7a83265d736f9f9dc5186271ae62d66 | [
"MIT"
] | null | null | null | vet_care/doc_events/patient_appointment.py | neerajvkn/vet_care | 14914b22e7a83265d736f9f9dc5186271ae62d66 | [
"MIT"
] | 7 | 2019-11-16T14:36:33.000Z | 2021-08-25T07:54:51.000Z | import frappe
def validate(doc, method):
customer = frappe.db.get_value('Patient', doc.patient, 'customer')
doc.vc_owner = customer
| 20.285714 | 70 | 0.711268 | 19 | 142 | 5.210526 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161972 | 142 | 6 | 71 | 23.666667 | 0.831933 | 0 | 0 | 0 | 0 | 0 | 0.105634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1459e47e29f07327f77b66aae27e1f15b3c747d9 | 2,587 | py | Python | PyObjCTest/test_nsjavasetup.py | Khan/pyobjc-framework-Cocoa | f8b015ea2a72d8d78be6084fb12925c4785b8f1f | [
"MIT"
] | 132 | 2015-01-01T10:02:42.000Z | 2022-03-09T12:51:01.000Z | mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsjavasetup.py | mba811/music-player | 7998986b34cfda2244ef622adefb839331b81a81 | [
"BSD-2-Clause"
] | 6 | 2015-01-06T08:23:19.000Z | 2019-03-14T12:22:06.000Z | mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsjavasetup.py | mba811/music-player | 7998986b34cfda2244ef622adefb839331b81a81 | [
"BSD-2-Clause"
] | 27 | 2015-02-23T11:51:43.000Z | 2022-03-07T02:34:18.000Z | from PyObjCTools.TestSupport import *
import os
from Foundation import *
try:
unicode
except NameError:
unicode = str
class TestNSJavaSetup (TestCase):
@max_os_level('10.5')
def testConstants(self):
self.assertIsInstance(NSJavaClasses, unicode)
self.assertIsInstance(NSJavaRoot, unicod... | 38.044118 | 82 | 0.665636 | 251 | 2,587 | 6.784861 | 0.426295 | 0.223136 | 0.158544 | 0.061069 | 0.236054 | 0.211392 | 0.150323 | 0.064592 | 0.064592 | 0.064592 | 0 | 0.006602 | 0.238887 | 2,587 | 67 | 83 | 38.61194 | 0.858304 | 0.072671 | 0 | 0.275862 | 0 | 0 | 0.02381 | 0 | 0 | 0 | 0 | 0.014925 | 0.413793 | 1 | 0.034483 | false | 0.017241 | 0.051724 | 0 | 0.103448 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
145dd3d7b020a6d88ed30bd57eb630dd062a950e | 378 | py | Python | DataStructures and Algorithms/Ammortization onArrays/Gameentry.py | abhishekratnam/Datastructuresandalgorithmsinpython | 9339319f441755797f4d2818ac9cf742a63ab5ea | [
"MIT"
] | null | null | null | DataStructures and Algorithms/Ammortization onArrays/Gameentry.py | abhishekratnam/Datastructuresandalgorithmsinpython | 9339319f441755797f4d2818ac9cf742a63ab5ea | [
"MIT"
] | null | null | null | DataStructures and Algorithms/Ammortization onArrays/Gameentry.py | abhishekratnam/Datastructuresandalgorithmsinpython | 9339319f441755797f4d2818ac9cf742a63ab5ea | [
"MIT"
] | null | null | null | class Gameentry:
"""Represents one entry of a list of high scores"""
def __init__(self,name,score):
self._name = name
self._score = score
def get_name(self):
return self._name
def get_score(self):
return self._score
def __str__(self):
return ' ... | 23.625 | 68 | 0.574074 | 49 | 378 | 4.102041 | 0.469388 | 0.159204 | 0.129353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015209 | 0.304233 | 378 | 15 | 69 | 25.2 | 0.749049 | 0.142857 | 0 | 0 | 0 | 0 | 0.033003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.3 | 0.8 | 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 |
148ceb1fb000771c1bef8a1a38a56aebb024d47d | 1,457 | py | Python | route/__init__.py | zyguan/pyroute | 16527374419780672f7ceae6f2a123a336603572 | [
"MIT"
] | null | null | null | route/__init__.py | zyguan/pyroute | 16527374419780672f7ceae6f2a123a336603572 | [
"MIT"
] | null | null | null | route/__init__.py | zyguan/pyroute | 16527374419780672f7ceae6f2a123a336603572 | [
"MIT"
] | null | null | null | import _route
VINCENTY = 1
HAVERSINE = 2
def distance(lat1, lng1, lat2, lng2, formula=VINCENTY, iterlimit=20):
"""
Calculate distance between two points.
:param lat1: latitude of point 1 in degrees
:param lng1: longitude of point 1 in degrees
:param lat2: latitude of point 2 in degrees
:param... | 31 | 72 | 0.702128 | 206 | 1,457 | 4.893204 | 0.252427 | 0.055556 | 0.071429 | 0.095238 | 0.540675 | 0.434524 | 0.314484 | 0.279762 | 0.279762 | 0.279762 | 0 | 0.039316 | 0.19698 | 1,457 | 46 | 73 | 31.673913 | 0.822222 | 0.495539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.066667 | 0.266667 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
149096338c91567b2635fcffc0b59e5d56c47ad5 | 1,958 | py | Python | TMTool/Scripts/Scoring/owasp_rr.py | tmart234/TMTool | 054d055d73fa5e76be22bf04cf1136b88cb7efb9 | [
"MIT"
] | 7 | 2021-04-23T23:13:02.000Z | 2022-03-21T03:35:47.000Z | TMTool/Scripts/Scoring/owasp_rr.py | tmart234/TMTool | 054d055d73fa5e76be22bf04cf1136b88cb7efb9 | [
"MIT"
] | 1 | 2022-03-21T03:45:45.000Z | 2022-03-21T03:45:45.000Z | TMTool/Scripts/Scoring/owasp_rr.py | tmart234/TMTool | 054d055d73fa5e76be22bf04cf1136b88cb7efb9 | [
"MIT"
] | null | null | null | ## based on OWASP risk rating
# clculates impact or likihood
def calc_scores(_dict):
# set Numerical Score
_dict["Numerical Score"] = int(0)
for key,value in _dict:
if "Score" in key:
continue
else:
_dict["Numerical Score"] = value + _dict["Numerical Score"]
... | 41.659574 | 101 | 0.61287 | 217 | 1,958 | 5.373272 | 0.267281 | 0.343053 | 0.185249 | 0.192967 | 0.484563 | 0.473413 | 0.440823 | 0.440823 | 0.350772 | 0.150943 | 0 | 0.002623 | 0.221144 | 1,958 | 46 | 102 | 42.565217 | 0.761967 | 0.063841 | 0 | 0.085714 | 0 | 0 | 0.370411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0 | 0 | 0.257143 | 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 |
14b10ba84092552ef5446166e93acde05dd54b70 | 376 | py | Python | nbdev_calc/core.py | alinaselega/nbdev_calc | 4e7cffb81a08770aea7652c10481e41d5d13a05e | [
"Apache-2.0"
] | null | null | null | nbdev_calc/core.py | alinaselega/nbdev_calc | 4e7cffb81a08770aea7652c10481e41d5d13a05e | [
"Apache-2.0"
] | null | null | null | nbdev_calc/core.py | alinaselega/nbdev_calc | 4e7cffb81a08770aea7652c10481e41d5d13a05e | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 00_core.ipynb (unless otherwise specified).
__all__ = ['add', 'multiply', 'subtract', 'divide']
# Cell
def add(x, y):
"Add x and y"
return x+y
def multiply(x, y):
"Multiply x and y"
return x*y
def subtract(x, y):
"Subtract y from x"
return add(x, -... | 18.8 | 87 | 0.609043 | 64 | 376 | 3.5 | 0.390625 | 0.071429 | 0.107143 | 0.120536 | 0.142857 | 0.142857 | 0.142857 | 0 | 0 | 0 | 0 | 0.007067 | 0.24734 | 376 | 20 | 88 | 18.8 | 0.784452 | 0.404255 | 0 | 0 | 1 | 0 | 0.288732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
14b48aef525713da7768110b19cc3d3319051874 | 456 | py | Python | mainApp/Serializers.py | MSNP1381/rayanRooyeshCityBack | f3e8224538949c4951d4b25e1f14e4fcc02fdc53 | [
"MIT"
] | null | null | null | mainApp/Serializers.py | MSNP1381/rayanRooyeshCityBack | f3e8224538949c4951d4b25e1f14e4fcc02fdc53 | [
"MIT"
] | null | null | null | mainApp/Serializers.py | MSNP1381/rayanRooyeshCityBack | f3e8224538949c4951d4b25e1f14e4fcc02fdc53 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Transaction,Sections
class TransactionSerializer(serializers.ModelSerializer):
class Meta:
model = Transaction
fields = '__all__'
def create(self, data):
print(100*"%")
print(data)
return Transaction.objects.cr... | 24 | 57 | 0.682018 | 43 | 456 | 7.023256 | 0.55814 | 0.172185 | 0.205298 | 0.231788 | 0.264901 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008596 | 0.234649 | 456 | 19 | 58 | 24 | 0.856734 | 0 | 0 | 0.285714 | 0 | 0 | 0.032823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.571429 | 0.142857 | 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 |
1ad8843aee0e7aba85c685628079d06bf297c82d | 2,064 | py | Python | src/leetcode_384_shuffle_an_array.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | src/leetcode_384_shuffle_an_array.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | src/leetcode_384_shuffle_an_array.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | # @l2g 384 python3
# [384] Shuffle an Array
# Difficulty: Medium
# https://leetcode.com/problems/shuffle-an-array
#
# Given an integer array nums,design an algorithm to randomly shuffle the array.
# All permutations of the array should be equally likely as a result of the shuffling.
# Implement the Solution class:
#
# ... | 27.52 | 102 | 0.630814 | 297 | 2,064 | 4.333333 | 0.353535 | 0.01554 | 0.018648 | 0.060606 | 0.146076 | 0.118104 | 0.118104 | 0.066822 | 0 | 0 | 0 | 0.040328 | 0.231105 | 2,064 | 74 | 103 | 27.891892 | 0.770636 | 0.734012 | 0 | 0 | 0 | 0 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 0 | 0.769231 | 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 |
1af37e5031f27006259d50bd37911e3e99b40d74 | 771 | py | Python | nest_py/knoweng/data_types/public_gene_sets.py | KnowEnG/platform | 7356fabf5e2db4171ef1f910514436b69ecaa701 | [
"MIT"
] | 2 | 2020-02-12T22:20:51.000Z | 2020-07-31T03:19:51.000Z | nest_py/knoweng/data_types/public_gene_sets.py | KnowEnG/platform | 7356fabf5e2db4171ef1f910514436b69ecaa701 | [
"MIT"
] | 1 | 2021-06-02T00:29:02.000Z | 2021-06-02T00:29:02.000Z | nest_py/knoweng/data_types/public_gene_sets.py | KnowEnG/platform | 7356fabf5e2db4171ef1f910514436b69ecaa701 | [
"MIT"
] | 1 | 2018-01-03T22:56:27.000Z | 2018-01-03T22:56:27.000Z | """
A collection of public gene sets.
"""
from nest_py.core.data_types.tablelike_schema import TablelikeSchema
COLLECTION_NAME = 'public_gene_sets'
def generate_schema():
schema = TablelikeSchema(COLLECTION_NAME)
schema.add_categoric_attribute('set_id', valid_values=None)
schema.add_categoric_attribute('... | 33.521739 | 72 | 0.787289 | 99 | 771 | 5.747475 | 0.363636 | 0.142355 | 0.189807 | 0.28471 | 0.45167 | 0.351494 | 0.295255 | 0 | 0 | 0 | 0 | 0 | 0.111543 | 771 | 22 | 73 | 35.045455 | 0.830657 | 0.042802 | 0 | 0 | 1 | 0 | 0.134431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 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 |
1af6926099c1d7d07976357c858e6720fbdd0e0b | 565 | py | Python | server/utils/cors.py | amirdib/dapp_dashboard | e3f556b20ea2d866300e7501f8c720dc0eb56f4b | [
"MIT"
] | null | null | null | server/utils/cors.py | amirdib/dapp_dashboard | e3f556b20ea2d866300e7501f8c720dc0eb56f4b | [
"MIT"
] | null | null | null | server/utils/cors.py | amirdib/dapp_dashboard | e3f556b20ea2d866300e7501f8c720dc0eb56f4b | [
"MIT"
] | null | null | null | from bottle import response, request
def enable_cors(func):
def _enable_cors(*args, **kwargs):
# Set CORS headers
response.headers['Access-Control-Allow-Origin'] = '*'
response.headers['Access-Control-Allow-Methods'] = 'GET, POST, PUT, OPTIONS'
response.headers['Access-Control-Allo... | 35.3125 | 121 | 0.654867 | 67 | 565 | 5.447761 | 0.537313 | 0.082192 | 0.172603 | 0.230137 | 0.271233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217699 | 565 | 15 | 122 | 37.666667 | 0.825792 | 0.111504 | 0 | 0 | 0 | 0 | 0.348697 | 0.166333 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1af6c73c4393c2fe75719524db1ca5b86014c72d | 2,367 | py | Python | TerminalStory/Jack.py | TomlinsonJ03/4006CEM-Mini-Project | ac2ebcfa5793475d7bfb074034b5aa23cfd1858e | [
"CC0-1.0"
] | null | null | null | TerminalStory/Jack.py | TomlinsonJ03/4006CEM-Mini-Project | ac2ebcfa5793475d7bfb074034b5aa23cfd1858e | [
"CC0-1.0"
] | null | null | null | TerminalStory/Jack.py | TomlinsonJ03/4006CEM-Mini-Project | ac2ebcfa5793475d7bfb074034b5aa23cfd1858e | [
"CC0-1.0"
] | null | null | null | # Entering the Basement
def basement():
print("""
I will walk into the basement, there seems to be a robot there, working hard it seems. They don’t see the things the way I do, it exclaimed.
I wander what it means, see what? Maybe I will approach it and find out. It seems to be working on some kind o... | 62.289474 | 167 | 0.709759 | 402 | 2,367 | 4.179104 | 0.5 | 0.057143 | 0.025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002233 | 0.243346 | 2,367 | 38 | 168 | 62.289474 | 0.93579 | 0.024926 | 0 | 0.193548 | 0 | 0.387097 | 0.895445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.064516 | 0 | 0 | 0.096774 | 0.16129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
210693b9ec3b9f3189d565efa51e605d1e16d8d3 | 3,311 | py | Python | src/genie/libs/parser/iosxe/tests/ShowBgpAllDetail/cli/equal/golden_output4_expected.py | jmedina0911/genieparser | 2fcd6d3e44891551af4b9d05e2c053218ee25c32 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowBgpAllDetail/cli/equal/golden_output4_expected.py | jmedina0911/genieparser | 2fcd6d3e44891551af4b9d05e2c053218ee25c32 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowBgpAllDetail/cli/equal/golden_output4_expected.py | jmedina0911/genieparser | 2fcd6d3e44891551af4b9d05e2c053218ee25c32 | [
"Apache-2.0"
] | null | null | null | expected_output = {
"instance": {
"default": {
"vrf": {
"vrf1": {
"address_family": {
"": {
"default_vrf": "vrf1",
"prefixes": {
"0.0.0.0/0": {
... | 53.403226 | 111 | 0.231048 | 187 | 3,311 | 3.909091 | 0.385027 | 0.021888 | 0.024624 | 0.021888 | 0.372093 | 0.218878 | 0.218878 | 0.218878 | 0.218878 | 0.218878 | 0 | 0.202752 | 0.670794 | 3,311 | 61 | 112 | 54.278689 | 0.46789 | 0 | 0 | 0.196721 | 0 | 0.016393 | 0.245545 | 0.007853 | 0 | 0 | 0.000906 | 0 | 0 | 1 | 0 | false | 0 | 0.016393 | 0 | 0.016393 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
214a07d8cc0215d98c308b5d7c5428fd93ac98c9 | 355 | py | Python | cvat_reader/video_reader/dummy_reader.py | eyedl/cvat_reader | 9f4837d82b3bb7946f6fb03b3c8fb0991a6d929f | [
"BSD-3-Clause"
] | null | null | null | cvat_reader/video_reader/dummy_reader.py | eyedl/cvat_reader | 9f4837d82b3bb7946f6fb03b3c8fb0991a6d929f | [
"BSD-3-Clause"
] | 5 | 2021-12-03T12:56:38.000Z | 2022-01-18T20:35:01.000Z | cvat_reader/video_reader/dummy_reader.py | eyedl/cvat_reader | 9f4837d82b3bb7946f6fb03b3c8fb0991a6d929f | [
"BSD-3-Clause"
] | 2 | 2022-02-09T08:53:35.000Z | 2022-03-16T10:21:14.000Z | from typing import Tuple, Any
from .base import VideoReader
class DummyVideoReader(VideoReader):
def __init__(self):
self.frame_id = 0
def read_frame(self) -> Tuple[int, Any]:
frame_id = self.frame_id
self.frame_id += 1
return frame_id, None
def seek(self, frame_id: int)... | 20.882353 | 44 | 0.647887 | 50 | 355 | 4.34 | 0.42 | 0.258065 | 0.253456 | 0.147465 | 0.133641 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007663 | 0.264789 | 355 | 16 | 45 | 22.1875 | 0.823755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2158eb73536fe9b11e0d8fd0dd4f2a37c52f7ad1 | 458 | py | Python | services/divnik/src/api/migrations/0005_auto_20200503_0933.py | pomo-mondreganto/innoctf-final-10-05-2020 | 8d31bb43b543c6948b1e09d9816728a10125c4be | [
"WTFPL"
] | 1 | 2021-01-04T23:52:34.000Z | 2021-01-04T23:52:34.000Z | services/divnik/src/api/migrations/0005_auto_20200503_0933.py | pomo-mondreganto/innoctf-final-10-05-2020 | 8d31bb43b543c6948b1e09d9816728a10125c4be | [
"WTFPL"
] | null | null | null | services/divnik/src/api/migrations/0005_auto_20200503_0933.py | pomo-mondreganto/innoctf-final-10-05-2020 | 8d31bb43b543c6948b1e09d9816728a10125c4be | [
"WTFPL"
] | 2 | 2020-10-22T12:27:25.000Z | 2020-10-22T12:27:28.000Z | # Generated by Django 3.0.3 on 2020-05-03 09:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0004_auto_20200502_1946'),
]
operations = [
migrations.AlterModelOptions(
name='course',
options={'ordering': ('-id',)... | 21.809524 | 47 | 0.543668 | 42 | 458 | 5.857143 | 0.738095 | 0.219512 | 0.252033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098101 | 0.310044 | 458 | 20 | 48 | 22.9 | 0.68038 | 0.098253 | 0 | 0.4 | 1 | 0 | 0.141119 | 0.055961 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
21686e2c5a6fb53bb4999288166075c2a704a954 | 7,152 | py | Python | food_reference_listing/database/models.py | bfssi-forest-dussault/food_reference_listing | 85372a81a9201dda02797ab0c11b1bd710f9b70d | [
"MIT"
] | null | null | null | food_reference_listing/database/models.py | bfssi-forest-dussault/food_reference_listing | 85372a81a9201dda02797ab0c11b1bd710f9b70d | [
"MIT"
] | null | null | null | food_reference_listing/database/models.py | bfssi-forest-dussault/food_reference_listing | 85372a81a9201dda02797ab0c11b1bd710f9b70d | [
"MIT"
] | null | null | null | from django.db import models
from simple_history.models import HistoricalRecords
class Language(models.Model):
language_id = models.CharField(max_length=2, blank=True, null=True, unique=True)
description_en = models.CharField(max_length=16, blank=True, null=True, unique=True)
description_fr = models.CharF... | 44.981132 | 117 | 0.719938 | 909 | 7,152 | 5.49615 | 0.123212 | 0.078463 | 0.100881 | 0.134508 | 0.768415 | 0.754404 | 0.718975 | 0.623098 | 0.590072 | 0.522018 | 0 | 0.011152 | 0.172539 | 7,152 | 158 | 118 | 45.265823 | 0.833052 | 0.069072 | 0 | 0.395161 | 0 | 0 | 0.059134 | 0.016594 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0 | 0.016129 | 0.008065 | 0.83871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
dcc424db20a8d7965b1e60f57bf13d6c0c24b2c1 | 308 | py | Python | GrAm/forms.py | claudianjeri/Instagram | 93b16495c0ec62eb4ab0327d18e3155b82f1b4bd | [
"MIT"
] | 3 | 2018-06-14T12:07:49.000Z | 2020-06-16T02:44:14.000Z | GrAm/forms.py | claudianjeri/Instagram | 93b16495c0ec62eb4ab0327d18e3155b82f1b4bd | [
"MIT"
] | null | null | null | GrAm/forms.py | claudianjeri/Instagram | 93b16495c0ec62eb4ab0327d18e3155b82f1b4bd | [
"MIT"
] | null | null | null | from .models import Image, Profile, Comment
from django import forms
class EditProfileForm(forms.ModelForm):
class Meta:
model = Profile
exclude = ['user']
class UploadForm(forms.ModelForm):
class Meta:
model = Image
exclude = ['user','likes','upload_date','profile'] | 28 | 58 | 0.662338 | 34 | 308 | 5.970588 | 0.558824 | 0.137931 | 0.187192 | 0.226601 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 308 | 11 | 58 | 28 | 0.852941 | 0 | 0 | 0.2 | 0 | 0 | 0.100324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 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 |
dcc7cc7a40b45ab40e2a51260b50373958a8da92 | 187 | py | Python | data_collection/gazette/spiders/sc_tangara.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | 3 | 2021-08-18T17:50:31.000Z | 2021-11-12T23:36:33.000Z | data_collection/gazette/spiders/sc_tangara.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | 4 | 2021-02-10T02:36:48.000Z | 2022-03-02T14:55:34.000Z | data_collection/gazette/spiders/sc_tangara.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | null | null | null | from gazette.spiders.base import FecamGazetteSpider
class ScTangaraSpider(FecamGazetteSpider):
name = "sc_tangara"
FECAM_QUERY = "cod_entidade:268"
TERRITORY_ID = "4217907"
| 23.375 | 51 | 0.764706 | 20 | 187 | 6.95 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063291 | 0.15508 | 187 | 7 | 52 | 26.714286 | 0.816456 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 |
dcefdb99fe2524931fcc166cd7b76a8ef691d120 | 216 | py | Python | djconnectwise/management/commands/delete_callback.py | kti-cameron/django-connectwise | e3438d6f303163cd482ce31a98aca5abf15ec932 | [
"MIT"
] | null | null | null | djconnectwise/management/commands/delete_callback.py | kti-cameron/django-connectwise | e3438d6f303163cd482ce31a98aca5abf15ec932 | [
"MIT"
] | null | null | null | djconnectwise/management/commands/delete_callback.py | kti-cameron/django-connectwise | e3438d6f303163cd482ce31a98aca5abf15ec932 | [
"MIT"
] | null | null | null | from django.utils.translation import ugettext_lazy as _
from . import _callback
class Command(_callback.Command):
help = str(_('Deletes the callback from the target connectwise system.'))
ACTION = 'delete'
| 27 | 77 | 0.75463 | 27 | 216 | 5.851852 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162037 | 216 | 7 | 78 | 30.857143 | 0.872928 | 0 | 0 | 0 | 0 | 0 | 0.287037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dcfb3f72e395046eb90ede6f87900476cf79be0a | 43 | py | Python | conftest.py | sergei-bondarenko/exchange-simulator | a5bba00c38016823a5d18471da01fd4e04319b8e | [
"Unlicense"
] | 1 | 2021-03-16T06:04:12.000Z | 2021-03-16T06:04:12.000Z | conftest.py | sergei-bondarenko/exchange-simulator | a5bba00c38016823a5d18471da01fd4e04319b8e | [
"Unlicense"
] | null | null | null | conftest.py | sergei-bondarenko/exchange-simulator | a5bba00c38016823a5d18471da01fd4e04319b8e | [
"Unlicense"
] | null | null | null | pytest_plugins = [
'xchg.tests.data',
]
| 10.75 | 21 | 0.627907 | 5 | 43 | 5.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 43 | 3 | 22 | 14.333333 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0.348837 | 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 |
0d096ee6b4123c7c0c3a2ec91a6b9b448d9095f1 | 131 | py | Python | code/webhookhandler/urls/hooks.py | superfluidity/RDCL3D | 3c5717941bd4046aa1be178e9004db1dc1c469a0 | [
"Apache-2.0"
] | 8 | 2017-03-13T16:34:28.000Z | 2021-11-16T11:35:56.000Z | code/webhookhandler/urls/hooks.py | superfluidity/RDCL3D | 3c5717941bd4046aa1be178e9004db1dc1c469a0 | [
"Apache-2.0"
] | null | null | null | code/webhookhandler/urls/hooks.py | superfluidity/RDCL3D | 3c5717941bd4046aa1be178e9004db1dc1c469a0 | [
"Apache-2.0"
] | 3 | 2017-03-28T09:26:40.000Z | 2020-12-08T14:16:12.000Z | from django.conf.urls import url
from webhookhandler import views
urlpatterns = [
url(r'^$', views.webhook, name='webhook'),
] | 21.833333 | 46 | 0.717557 | 17 | 131 | 5.529412 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145038 | 131 | 6 | 47 | 21.833333 | 0.839286 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0d17348f8f1d18cb7ea86e8791e3c59ce2012a91 | 240 | py | Python | kohtaaminen/__main__.py | sthagen/kohtaaminen | ce0784ccd8be109164d63f2b5dcea128bd6f4534 | [
"MIT"
] | 1 | 2021-11-13T10:57:55.000Z | 2021-11-13T10:57:55.000Z | kohtaaminen/__main__.py | sthagen/kohtaaminen | ce0784ccd8be109164d63f2b5dcea128bd6f4534 | [
"MIT"
] | 4 | 2021-11-14T15:12:06.000Z | 2021-11-30T13:54:47.000Z | kohtaaminen/__main__.py | sthagen/kohtaaminen | ce0784ccd8be109164d63f2b5dcea128bd6f4534 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# pylint: disable=expression-not-assigned,line-too-long,missing-module-docstring
import sys
from kohtaaminen.cli import app
if __name__ == '__main__':
sys.exit(app(prog_name='kohtaaminen')) # pragma: no cover
| 26.666667 | 80 | 0.725 | 33 | 240 | 5 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004762 | 0.125 | 240 | 8 | 81 | 30 | 0.780952 | 0.4875 | 0 | 0 | 0 | 0 | 0.159664 | 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 |
0d2236c09fb61de0facb0db8ff5d2c14d3843c5c | 608 | py | Python | Virtualenv/Env/src/GoTravel/Home/models.py | Anoop01234/Go-Travel | aa91f1a4ce7e7ed78de8eadc55e6a25d1a73bdd8 | [
"MIT"
] | null | null | null | Virtualenv/Env/src/GoTravel/Home/models.py | Anoop01234/Go-Travel | aa91f1a4ce7e7ed78de8eadc55e6a25d1a73bdd8 | [
"MIT"
] | null | null | null | Virtualenv/Env/src/GoTravel/Home/models.py | Anoop01234/Go-Travel | aa91f1a4ce7e7ed78de8eadc55e6a25d1a73bdd8 | [
"MIT"
] | 1 | 2021-12-21T17:27:34.000Z | 2021-12-21T17:27:34.000Z | from django.db import models
class Chef(models.Model):
name=models.CharField(max_length=50)
position=models.CharField(max_length=50)
description=models.TextField()
photo=models.ImageField(upload_to='chef/')
class Meta:
verbose_name ='Chef'
verbose_name_plural='Chefs'
def __str... | 23.384615 | 48 | 0.685855 | 76 | 608 | 5.236842 | 0.407895 | 0.110553 | 0.135678 | 0.180905 | 0.336683 | 0.271357 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0.205592 | 608 | 25 | 49 | 24.32 | 0.811594 | 0 | 0 | 0.421053 | 0 | 0 | 0.055921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0.105263 | 0.789474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0d2792d0fd44769568c671a62acca11f98fc94a4 | 305 | py | Python | iotapp/Classes/httprequest.py | fcarbah/IOT | 6b323c75844d0a6744df12059466d6c54bd0b242 | [
"MIT"
] | null | null | null | iotapp/Classes/httprequest.py | fcarbah/IOT | 6b323c75844d0a6744df12059466d6c54bd0b242 | [
"MIT"
] | null | null | null | iotapp/Classes/httprequest.py | fcarbah/IOT | 6b323c75844d0a6744df12059466d6c54bd0b242 | [
"MIT"
] | null | null | null | import urllib3
class HttpRequest:
__http=None
def __init__(self):
self.__http = urllib3.PoolManager()
def post(self,url,data={},headers={}):
self.__http.request('POST',url,data,headers)
def get(self,url,headers={}):
self.__http.request('get',url,{},headers) | 17.941176 | 52 | 0.629508 | 37 | 305 | 4.864865 | 0.432432 | 0.133333 | 0.155556 | 0.244444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008264 | 0.206557 | 305 | 17 | 53 | 17.941176 | 0.735537 | 0 | 0 | 0 | 0 | 0 | 0.022876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0d2b31d40272b35f2023f3820d8bcc5908033214 | 1,795 | py | Python | UnityEngine/MatchTargetWeightMask/__init__.py | Grim-es/udon-pie-auto-completion | c2cd86554ed615cdbbb01e19fa40665eafdfaedc | [
"MIT"
] | null | null | null | UnityEngine/MatchTargetWeightMask/__init__.py | Grim-es/udon-pie-auto-completion | c2cd86554ed615cdbbb01e19fa40665eafdfaedc | [
"MIT"
] | null | null | null | UnityEngine/MatchTargetWeightMask/__init__.py | Grim-es/udon-pie-auto-completion | c2cd86554ed615cdbbb01e19fa40665eafdfaedc | [
"MIT"
] | null | null | null | from UdonPie import System
from UdonPie import UnityEngine
from UdonPie.Undefined import *
class MatchTargetWeightMask:
def __new__(cls, arg1=None):
'''
:returns: MatchTargetWeightMask
:rtype: UnityEngine.MatchTargetWeightMask
'''
pass
@staticmethod
def ctor(arg1, ... | 19.725275 | 49 | 0.528691 | 144 | 1,795 | 6.534722 | 0.256944 | 0.153029 | 0.181722 | 0.093518 | 0.327311 | 0.2678 | 0.2678 | 0.178533 | 0 | 0 | 0 | 0.023235 | 0.376602 | 1,795 | 90 | 50 | 19.944444 | 0.817694 | 0.359889 | 0 | 0.575758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.30303 | false | 0.30303 | 0.090909 | 0 | 0.424242 | 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 |
0d2c7e6cf904b313acc9aca26daeafb4a2b97695 | 107 | py | Python | teagles_advent_2021/day_13/pt2.py | teagles/teagles-advent-2021 | d49d842663d6382bd0d4d93198ccd66ab68e681b | [
"MIT"
] | null | null | null | teagles_advent_2021/day_13/pt2.py | teagles/teagles-advent-2021 | d49d842663d6382bd0d4d93198ccd66ab68e681b | [
"MIT"
] | null | null | null | teagles_advent_2021/day_13/pt2.py | teagles/teagles-advent-2021 | d49d842663d6382bd0d4d93198ccd66ab68e681b | [
"MIT"
] | null | null | null | import sys
from .lib import parse_input
def main():
print()
if __name__ == '__main__':
main()
| 8.916667 | 28 | 0.626168 | 14 | 107 | 4.142857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252336 | 107 | 11 | 29 | 9.727273 | 0.725 | 0 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.333333 | 0 | 0.5 | 0.166667 | 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 |
b49c01b7f4d4caa36d93674286e808354fe98984 | 278 | py | Python | drogher/package/dhl.py | jbittel/drogher | 9a01a19aa6575f82949ef83a3e3b8834807d9cc9 | [
"BSD-3-Clause"
] | 13 | 2017-04-24T07:49:30.000Z | 2020-09-22T13:13:13.000Z | drogher/package/dhl.py | jbittel/drogher | 9a01a19aa6575f82949ef83a3e3b8834807d9cc9 | [
"BSD-3-Clause"
] | null | null | null | drogher/package/dhl.py | jbittel/drogher | 9a01a19aa6575f82949ef83a3e3b8834807d9cc9 | [
"BSD-3-Clause"
] | 4 | 2018-09-08T05:31:57.000Z | 2022-02-10T17:42:31.000Z | from .base import Package
class DHL(Package):
barcode_pattern = r'^\d{10}$'
shipper = 'DHL'
@property
def valid_checksum(self):
chars, check_digit = self.tracking_number[:-1], self.tracking_number[-1]
return int(chars) % 7 == int(check_digit)
| 23.166667 | 80 | 0.643885 | 37 | 278 | 4.675676 | 0.702703 | 0.115607 | 0.208092 | 0.219653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023041 | 0.219424 | 278 | 11 | 81 | 25.272727 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0.039568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 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 |
b4bee4983a1e8f4098187f57c27bfb93f46aeb4b | 338 | py | Python | src/addongen/src/addongen/__object__.py | KAIYOHUGO/addon-gen | 65c7db176bdef8c8746eb6db50b684f8cce23bd6 | [
"MIT"
] | null | null | null | src/addongen/src/addongen/__object__.py | KAIYOHUGO/addon-gen | 65c7db176bdef8c8746eb6db50b684f8cce23bd6 | [
"MIT"
] | null | null | null | src/addongen/src/addongen/__object__.py | KAIYOHUGO/addon-gen | 65c7db176bdef8c8746eb6db50b684f8cce23bd6 | [
"MIT"
] | null | null | null | class component:
__type__ = str()
data = object()
class query:
__type__ = str()
query_id = int()
class itemStack:
__identifier__ = str()
__type__ = str()
count = str()
item = str()
class block:
__identifier__ = str()
__type__ = str()
block_position = object()
tickin... | 14.695652 | 29 | 0.591716 | 35 | 338 | 4.942857 | 0.485714 | 0.16185 | 0.196532 | 0.231214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289941 | 338 | 22 | 30 | 15.363636 | 0.720833 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b4c44cfa861a3cb2f7399a87693dea11f5c7ba5f | 481 | py | Python | search_service/models/base.py | verdan/amundsensearchlibrary | ca57770d82f7956339376655aaae736870671a66 | [
"Apache-2.0"
] | null | null | null | search_service/models/base.py | verdan/amundsensearchlibrary | ca57770d82f7956339376655aaae736870671a66 | [
"Apache-2.0"
] | null | null | null | search_service/models/base.py | verdan/amundsensearchlibrary | ca57770d82f7956339376655aaae736870671a66 | [
"Apache-2.0"
] | null | null | null | from abc import ABCMeta, abstractmethod
from typing import Set
class Base(metaclass=ABCMeta):
"""
A base class for ES model
"""
@abstractmethod
def get_id(cls) -> str:
# return a document id in ES
pass
@abstractmethod
def get_attrs(cls) -> Set:
# return a set of a... | 19.24 | 50 | 0.609148 | 61 | 481 | 4.754098 | 0.491803 | 0.175862 | 0.206897 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.322245 | 481 | 24 | 51 | 20.041667 | 0.889571 | 0.268191 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.230769 | 0.153846 | 0 | 0.461538 | 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 |
370211a081a208a56f69edfdacecf44b58bc1ce6 | 26,188 | py | Python | airflow/providers/google/cloud/operators/vertex_ai/auto_ml.py | arezamoosavi/airflow | c3c81c3144386d1de535c1c5e777270e727bb69e | [
"Apache-2.0"
] | 2 | 2016-08-23T14:22:15.000Z | 2017-09-28T19:45:26.000Z | airflow/providers/google/cloud/operators/vertex_ai/auto_ml.py | arezamoosavi/airflow | c3c81c3144386d1de535c1c5e777270e727bb69e | [
"Apache-2.0"
] | 4 | 2019-01-24T11:01:17.000Z | 2022-02-28T04:28:07.000Z | airflow/providers/google/cloud/operators/vertex_ai/auto_ml.py | arezamoosavi/airflow | c3c81c3144386d1de535c1c5e777270e727bb69e | [
"Apache-2.0"
] | 6 | 2018-04-09T07:46:05.000Z | 2019-07-16T00:13:15.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 41.967949 | 107 | 0.688941 | 2,883 | 26,188 | 5.855706 | 0.097121 | 0.035422 | 0.033764 | 0.042649 | 0.778699 | 0.730364 | 0.674446 | 0.652411 | 0.628835 | 0.605734 | 0 | 0.000754 | 0.240568 | 26,188 | 623 | 108 | 42.035313 | 0.848099 | 0.055942 | 0 | 0.702048 | 0 | 0 | 0.018409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029795 | false | 0 | 0.018622 | 0 | 0.098696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
370239612665db191d987f35efe965057710194c | 18 | py | Python | ret_benchmark/utils/log_info.py | alibaba-edu/Ranking-based-Instance-Selection | 06e7fa2061d42f5e8181f7181fe591fc3d294f8d | [
"MIT"
] | 20 | 2021-04-15T09:15:28.000Z | 2022-03-30T02:31:20.000Z | vit_retri/utils/log_info.py | ludics/ViT-Retri | 4a17ae8392a0f8145a2f5ee37854e76503c26009 | [
"MIT"
] | 1 | 2021-06-03T05:51:52.000Z | 2021-06-19T05:52:33.000Z | vit_retri/utils/log_info.py | ludics/ViT-Retri | 4a17ae8392a0f8145a2f5ee37854e76503c26009 | [
"MIT"
] | 5 | 2021-05-17T09:05:38.000Z | 2022-02-28T10:10:50.000Z | log_info = dict()
| 9 | 17 | 0.666667 | 3 | 18 | 3.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 18 | 1 | 18 | 18 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
371c11466bbee73e5a5eb806d61588dcac84b8ca | 106 | py | Python | start.py | fahimfarhan/python-Package-Demo | ce4fe79dd0fe9494892baf620aca9d88107894a7 | [
"MIT"
] | null | null | null | start.py | fahimfarhan/python-Package-Demo | ce4fe79dd0fe9494892baf620aca9d88107894a7 | [
"MIT"
] | null | null | null | start.py | fahimfarhan/python-Package-Demo | ce4fe79dd0fe9494892baf620aca9d88107894a7 | [
"MIT"
] | null | null | null | from measure import metrics, norms
if __name__ == "__main__":
metrics.metric(1)
norms.norms()
| 11.777778 | 34 | 0.669811 | 13 | 106 | 4.846154 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.216981 | 106 | 8 | 35 | 13.25 | 0.746988 | 0 | 0 | 0 | 0 | 0 | 0.07767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 |
2ec18eb4c9d609c45f211bbba5ede5409418c196 | 173 | py | Python | crawl_cvs/handlers/my_func.py | MacHu-GWU/crawl_cvs-project | 1cf63254ea1d7c8026a9d0e0543aaa2d7b7f4918 | [
"MIT"
] | 1 | 2020-06-19T09:45:20.000Z | 2020-06-19T09:45:20.000Z | crawl_cvs/handlers/my_func.py | MacHu-GWU/crawl_cvs-project | 1cf63254ea1d7c8026a9d0e0543aaa2d7b7f4918 | [
"MIT"
] | 1 | 2019-12-27T18:41:21.000Z | 2019-12-27T18:41:21.000Z | crawl_cvs/handlers/my_func.py | MacHu-GWU/crawl_cvs-project | 1cf63254ea1d7c8026a9d0e0543aaa2d7b7f4918 | [
"MIT"
] | 1 | 2018-08-22T01:27:32.000Z | 2018-08-22T01:27:32.000Z | # -*- coding: utf-8 -*-
def handler(event, context):
if event.get("name"):
return "Hello {}!".format(event.get("name"))
else:
return "Hello World!"
| 21.625 | 52 | 0.549133 | 21 | 173 | 4.52381 | 0.714286 | 0.168421 | 0.252632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.242775 | 173 | 7 | 53 | 24.714286 | 0.717557 | 0.121387 | 0 | 0 | 0 | 0 | 0.193333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 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 |
2ecbc23da4493780a4b43db3b26245823e15d32e | 5,925 | py | Python | bsm/paradag/__init__.py | bsmsoft/bsm | e45ec5442de39e5f948023cd5b4c6181073cf9a2 | [
"MIT"
] | 3 | 2019-06-12T17:19:12.000Z | 2022-01-07T02:10:06.000Z | bsm/paradag/__init__.py | bsmsoft/bsm | e45ec5442de39e5f948023cd5b4c6181073cf9a2 | [
"MIT"
] | null | null | null | bsm/paradag/__init__.py | bsmsoft/bsm | e45ec5442de39e5f948023cd5b4c6181073cf9a2 | [
"MIT"
] | null | null | null | ''' This package comes from https://github.com/xianghuzhao/paradag
It can also be installed by "pip install paradag"
'''
import random
class DagVertexNotFoundError(Exception):
pass
class DagEdgeNotFoundError(Exception):
pass
class DagCycleError(Exception):
pass
class DagData(object):
def __init__... | 27.430556 | 102 | 0.649451 | 743 | 5,925 | 4.889637 | 0.158816 | 0.018993 | 0.019818 | 0.02202 | 0.316818 | 0.224883 | 0.138178 | 0.069915 | 0.069915 | 0.033031 | 0 | 0.002266 | 0.25519 | 5,925 | 215 | 103 | 27.55814 | 0.820983 | 0.042363 | 0 | 0.217687 | 0 | 0 | 0.018711 | 0 | 0 | 0 | 0 | 0.004651 | 0 | 1 | 0.244898 | false | 0.054422 | 0.006803 | 0.102041 | 0.489796 | 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 | 1 | 0 | 0 | 0 | 3 |
2c0aca15167ff5ae1f5d402750c284f46ad21e27 | 1,585 | py | Python | models/metrics_and_losses.py | marioviti/nn_segmentation | b754b38cd1898c0746e383ecd32d9d4c33c60b33 | [
"MIT"
] | null | null | null | models/metrics_and_losses.py | marioviti/nn_segmentation | b754b38cd1898c0746e383ecd32d9d4c33c60b33 | [
"MIT"
] | null | null | null | models/metrics_and_losses.py | marioviti/nn_segmentation | b754b38cd1898c0746e383ecd32d9d4c33c60b33 | [
"MIT"
] | null | null | null | from keras import backend as K
from skimage.transform import resize
import tensorflow as tf
K.set_image_data_format('channels_last')
def true_pos(y_true, y_pred):
return K.sum(y_true * K.round(y_pred))
def false_pos(y_true, y_pred):
return K.sum(y_true * (1. - K.round(y_pred)))
def false_neg(y_true, y_pred... | 32.346939 | 86 | 0.68265 | 269 | 1,585 | 3.776952 | 0.301115 | 0.103346 | 0.070866 | 0.11811 | 0.307087 | 0.25 | 0.135827 | 0.097441 | 0.097441 | 0.097441 | 0 | 0.003975 | 0.206309 | 1,585 | 49 | 87 | 32.346939 | 0.803657 | 0.264353 | 0 | 0 | 0 | 0 | 0.011722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.115385 | 0.192308 | 0.730769 | 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 |
2c0ca091ba8017a6ea07dedf32869a44838d16fc | 537 | py | Python | basics01/esacpechar.py | DevAnuragGarg/Python-Learning-Basics | 2c58c82ba79bf2c7c3317628222554133dd50713 | [
"Apache-2.0"
] | 1 | 2020-06-09T09:49:02.000Z | 2020-06-09T09:49:02.000Z | basics01/esacpechar.py | DevAnuragGarg/Python-Learning-Basics | 2c58c82ba79bf2c7c3317628222554133dd50713 | [
"Apache-2.0"
] | null | null | null | basics01/esacpechar.py | DevAnuragGarg/Python-Learning-Basics | 2c58c82ba79bf2c7c3317628222554133dd50713 | [
"Apache-2.0"
] | null | null | null | split_string = "This string has been \nsplit over\nseveral\nlines"
print(split_string)
tabbed_string = "1\t2\t3\t"
print(tabbed_string)
print('Hello what\'s the situation like. He\'s is not responding')
print("Hello what's the situation like. He's is not responding")
print("""Hello what's the situation like. He's is ... | 23.347826 | 68 | 0.713222 | 93 | 537 | 4.075269 | 0.387097 | 0.131926 | 0.110818 | 0.118734 | 0.712401 | 0.617414 | 0.617414 | 0.617414 | 0.617414 | 0.617414 | 0 | 0.006424 | 0.130354 | 537 | 22 | 69 | 24.409091 | 0.805139 | 0 | 0 | 0.117647 | 0 | 0 | 0.640596 | 0.09311 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.529412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
2c0ca4433555acb470f71744f8f25a30302d9742 | 299 | py | Python | tests/app/libs/test_utils.py | pricem14pc/eq-questionnaire-runner | 54cc2947ba181a2673ea1fb7cf6b4acdd609e06b | [
"MIT"
] | null | null | null | tests/app/libs/test_utils.py | pricem14pc/eq-questionnaire-runner | 54cc2947ba181a2673ea1fb7cf6b4acdd609e06b | [
"MIT"
] | null | null | null | tests/app/libs/test_utils.py | pricem14pc/eq-questionnaire-runner | 54cc2947ba181a2673ea1fb7cf6b4acdd609e06b | [
"MIT"
] | null | null | null | from app.helpers.uuid_helper import is_valid_uuid
from app.libs.utils import convert_tx_id
def test_convert_tx_id():
tx_id_to_convert = "bc26d5ef-8475-4710-ac82-753a0a150708"
assert is_valid_uuid(tx_id_to_convert)
assert convert_tx_id(tx_id_to_convert) == "BC26 - D5EF - 8475 - 4710"
| 29.9 | 73 | 0.782609 | 51 | 299 | 4.176471 | 0.470588 | 0.112676 | 0.15493 | 0.183099 | 0.225352 | 0.225352 | 0.225352 | 0 | 0 | 0 | 0 | 0.131274 | 0.133779 | 299 | 9 | 74 | 33.222222 | 0.69112 | 0 | 0 | 0 | 0 | 0 | 0.204013 | 0.120401 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0 | 0.333333 | 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 |
2c16360d424581c214b60779daa9baad492484f7 | 2,311 | py | Python | tests/unit/bokeh/models/test_filters.py | teresafds/bokeh | 95b2a74ff463cfabdf9e3390951fa380166e6691 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/bokeh/models/test_filters.py | teresafds/bokeh | 95b2a74ff463cfabdf9e3390951fa380166e6691 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/bokeh/models/test_filters.py | teresafds/bokeh | 95b2a74ff463cfabdf9e3390951fa380166e6691 | [
"BSD-3-Clause"
] | null | null | null | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-------------------------------------------------------------------... | 37.885246 | 78 | 0.320208 | 129 | 2,311 | 5.682171 | 0.51938 | 0.109141 | 0.103683 | 0.163711 | 0.251023 | 0.251023 | 0 | 0 | 0 | 0 | 0 | 0.012375 | 0.09087 | 2,311 | 60 | 79 | 38.516667 | 0.336506 | 0.64907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c17df50a8d83000fd4e766f46fb4bd0e6305963 | 755 | py | Python | tests/test_mhk_models_no_db.py | time-link/timelink-py | 60d51bfedb64688aa7603f074d7bbc7432b5e841 | [
"MIT"
] | null | null | null | tests/test_mhk_models_no_db.py | time-link/timelink-py | 60d51bfedb64688aa7603f074d7bbc7432b5e841 | [
"MIT"
] | 3 | 2021-08-02T13:25:46.000Z | 2022-03-27T11:17:59.000Z | tests/test_mhk_models_no_db.py | time-link/timelink-py | 60d51bfedb64688aa7603f074d7bbc7432b5e841 | [
"MIT"
] | null | null | null | """
Test models with requiring a db connection
"""
import pytest
from timelink.mhk.models import base # noqa
from timelink.mhk.models.entity import Entity # noqa
from timelink.mhk.models.pom_som_mapper import PomSomMapper
from timelink.mhk.models.base_class import Base
from timelink.mhk.models.db import TimelinkDB... | 25.166667 | 65 | 0.711258 | 102 | 755 | 5.186275 | 0.401961 | 0.113422 | 0.141777 | 0.198488 | 0.094518 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021417 | 0.196026 | 755 | 29 | 66 | 26.034483 | 0.850082 | 0.070199 | 0 | 0.105263 | 0 | 0 | 0.099855 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.052632 | false | 0.105263 | 0.315789 | 0 | 0.473684 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
2c1890bcbe415de6b707f1f914bd82dec46e3744 | 218 | py | Python | twitter_problems/problem_5.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 129 | 2018-10-14T17:52:29.000Z | 2022-01-29T15:45:57.000Z | twitter_problems/problem_5.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 2 | 2019-11-30T23:28:23.000Z | 2020-01-03T16:30:32.000Z | twitter_problems/problem_5.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 60 | 2019-02-21T09:18:31.000Z | 2022-03-25T21:01:04.000Z | """This problem was asked by Twitter.
Given a list of numbers, create an algorithm that arranges them in order to form the largest possible integer.
For example, given [10, 7, 76, 415], you should return 77641510.""" | 54.5 | 111 | 0.752294 | 36 | 218 | 4.555556 | 0.972222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088398 | 0.169725 | 218 | 4 | 112 | 54.5 | 0.81768 | 0.972477 | 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 |
2c2b3898833c53843db57d3da758950386a9aad9 | 7,592 | py | Python | languages/python/cp857_5x7.py | ercanersoy/font-library | 7d71b41bddea9d87c230afbaec1a92412ebd7ad9 | [
"CC0-1.0"
] | 1 | 2019-03-30T13:34:24.000Z | 2019-03-30T13:34:24.000Z | languages/python/cp857_5x7.py | ercanersoy/font-library | 7d71b41bddea9d87c230afbaec1a92412ebd7ad9 | [
"CC0-1.0"
] | null | null | null | languages/python/cp857_5x7.py | ercanersoy/font-library | 7d71b41bddea9d87c230afbaec1a92412ebd7ad9 | [
"CC0-1.0"
] | null | null | null | # cp857_5x7.py - CP857 5x7 font file for Python
#
# Copyright (c) 2019-2022 Ercan Ersoy
# This file is written by Ercan Ersoy.
# This file is licensed under CC0-1.0 Universal License.
cp857_5x7 = [
0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x5F, 0x00, 0x00,
0x00, 0x03, 0x00, 0x03, 0x00,
0x14, 0x7F, 0x14, 0... | 32.583691 | 56 | 0.609326 | 1,154 | 7,592 | 4.006932 | 0.107452 | 0.179931 | 0.116782 | 0.076125 | 0.126298 | 0.055363 | 0.033737 | 0.021626 | 0 | 0 | 0 | 0.557272 | 0.241043 | 7,592 | 232 | 57 | 32.724138 | 0.245227 | 0.022787 | 0 | 0.066372 | 0 | 0 | 0 | 0 | 0 | 0 | 0.604344 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
257e05fcff394b8322ba4dd1554e86692b4c8292 | 3,918 | py | Python | editline/tests/test_editline.py | mark-nicholson/python-editline | c23f1071c4b832a92f66e2f49142e5c5f00e500d | [
"BSD-3-Clause"
] | 4 | 2017-10-05T19:34:32.000Z | 2021-05-18T23:29:44.000Z | editline/tests/test_editline.py | mark-nicholson/python-editline | c23f1071c4b832a92f66e2f49142e5c5f00e500d | [
"BSD-3-Clause"
] | 2 | 2018-03-30T22:38:17.000Z | 2018-03-30T22:39:13.000Z | editline/tests/test_editline.py | mark-nicholson/python-editline | c23f1071c4b832a92f66e2f49142e5c5f00e500d | [
"BSD-3-Clause"
] | null | null | null | """
Unit testing for parts of the editline and _editline modules.
"""
import os
import sys
import unittest
import subprocess
from test.support import import_module
# too bad this thing moved ...
try:
if sys.version_info[0] >= 3 and sys.version_info[1] >= 5:
from test.support.script_helper import assert_pyt... | 36.962264 | 86 | 0.671006 | 499 | 3,918 | 5.01002 | 0.248497 | 0.096 | 0.112 | 0.0768 | 0.6724 | 0.6404 | 0.6388 | 0.6388 | 0.6388 | 0.6388 | 0 | 0.018218 | 0.229454 | 3,918 | 105 | 87 | 37.314286 | 0.809871 | 0.14829 | 0 | 0.48 | 0 | 0 | 0.114838 | 0 | 0 | 0 | 0 | 0 | 0.36 | 1 | 0.16 | false | 0 | 0.333333 | 0.013333 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2584851a4d17126b2fb8d6436c754e69633733dc | 724 | py | Python | validator/rules_src/dict.py | Varun-22/Validator | 2c5caa9323aef35e2796813a357e5a7d6d4a80ba | [
"MIT"
] | 41 | 2020-05-07T15:35:12.000Z | 2021-11-01T03:57:09.000Z | validator/rules_src/dict.py | Varun-22/Validator | 2c5caa9323aef35e2796813a357e5a7d6d4a80ba | [
"MIT"
] | 83 | 2020-05-09T22:11:26.000Z | 2022-03-10T19:06:46.000Z | validator/rules_src/dict.py | Varun-22/Validator | 2c5caa9323aef35e2796813a357e5a7d6d4a80ba | [
"MIT"
] | 25 | 2020-05-27T22:46:01.000Z | 2022-03-04T01:36:11.000Z | from validator.rules_src import Rule
class Dict(Rule):
"""
The field under validation must be a dictionary (Python map)
Examples:
>>> from validator import validate
>>> reqs = {"data" : {"key1" : "val1", "key2" : "val2"} }
>>> rule = {"data" : "dict"}
>>> validate(reqs, rule)
True
... | 20.685714 | 64 | 0.540055 | 83 | 724 | 4.53012 | 0.554217 | 0.095745 | 0.06383 | 0.106383 | 0.148936 | 0.148936 | 0 | 0 | 0 | 0 | 0 | 0.015595 | 0.291436 | 724 | 34 | 65 | 21.294118 | 0.717349 | 0.470994 | 0 | 0 | 0 | 0 | 0.107034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.090909 | 0.090909 | 0 | 0.636364 | 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 |
2585e87eaaff2fdd76309cfdbd38bd7f7c95efca | 935 | py | Python | setup.py | DiegoLing33/ling-simple-api | d4b3789cf6110afa3c2db822ff6593079927eca1 | [
"MIT"
] | 2 | 2020-10-28T14:00:05.000Z | 2020-10-30T11:55:27.000Z | setup.py | DiegoLing33/ling-simple-api | d4b3789cf6110afa3c2db822ff6593079927eca1 | [
"MIT"
] | null | null | null | setup.py | DiegoLing33/ling-simple-api | d4b3789cf6110afa3c2db822ff6593079927eca1 | [
"MIT"
] | null | null | null | # ██╗░░░░░██╗███╗░░██╗░██████╗░░░░██████╗░██╗░░░░░░█████╗░░█████╗░██╗░░██╗
# ██║░░░░░██║████╗░██║██╔════╝░░░░██╔══██╗██║░░░░░██╔══██╗██╔══██╗██║░██╔╝
# ██║░░░░░██║██╔██╗██║██║░░██╗░░░░██████╦╝██║░░░░░███████║██║░░╚═╝█████═╝░
# ██║░░░░░██║██║╚████║██║░░╚██╗░░░██╔══██╗██║░░░░░██╔══██║██║░░██╗██╔═██╗░
# ███████╗██║██... | 35.961538 | 75 | 0.319786 | 63 | 935 | 11.571429 | 0.777778 | 0.016461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 0.13369 | 935 | 25 | 76 | 37.4 | 0.350617 | 0.554011 | 0 | 0 | 0 | 0 | 0.408867 | 0.051724 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
25a38ec4aea7b8a56416a4d31b2980a2324c2705 | 1,460 | py | Python | digsby/src/util/plistutil.py | ifwe/digsby | f5fe00244744aa131e07f09348d10563f3d8fa99 | [
"Python-2.0"
] | 35 | 2015-08-15T14:32:38.000Z | 2021-12-09T16:21:26.000Z | digsby/src/util/plistutil.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 4 | 2015-09-12T10:42:57.000Z | 2017-02-27T04:05:51.000Z | digsby/src/util/plistutil.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 15 | 2015-07-10T23:58:07.000Z | 2022-01-23T22:16:33.000Z | '''
Some tools to convert a .plist into python objects. Incomplete.
TODO: add load(s)/dump(s) functions to match the 'data shelving' interfaces of pickle, simplejson, pyyaml, etc.
'''
#_type_map = dict(real = (float, 'cdata'),
# integer = (int, 'cdata'),
# true ... | 27.54717 | 112 | 0.55 | 165 | 1,460 | 4.666667 | 0.393939 | 0.045455 | 0.051948 | 0.057143 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004158 | 0.341096 | 1,460 | 52 | 113 | 28.076923 | 0.796258 | 0.369863 | 0 | 0.068966 | 0 | 0 | 0.030516 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.241379 | false | 0 | 0 | 0.172414 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
25ac8194d8ccbd9a09f074296efd798e9bbe2bfd | 132 | py | Python | PyTrinamic/ic/TMC2041/TMC2041_register_variant.py | trinamic-AA/PyTrinamic | b054f4baae8eb6d3f5d2574cf69c232f66abb4ee | [
"MIT"
] | 37 | 2019-01-13T11:08:45.000Z | 2022-03-25T07:18:15.000Z | PyTrinamic/ic/TMC2041/TMC2041_register_variant.py | AprDec/PyTrinamic | a9db10071f8fbeebafecb55c619e5893757dd0ce | [
"MIT"
] | 56 | 2019-02-25T02:48:27.000Z | 2022-03-31T08:45:34.000Z | PyTrinamic/ic/TMC2041/TMC2041_register_variant.py | AprDec/PyTrinamic | a9db10071f8fbeebafecb55c619e5893757dd0ce | [
"MIT"
] | 26 | 2019-01-14T05:20:16.000Z | 2022-03-08T13:27:35.000Z | '''
Created on 24.10.2019
@author: JM
'''
class TMC2041_register_variant:
" ===== TMC2041 register variants ===== "
"..." | 13.2 | 45 | 0.583333 | 14 | 132 | 5.357143 | 0.857143 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152381 | 0.204545 | 132 | 10 | 46 | 13.2 | 0.561905 | 0.55303 | 0 | 0 | 0 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
25afbfde05c67785ccd3dc5ab3cf731469a73398 | 23,741 | py | Python | shirp/handler.py | cedricg92/event-manager | d07fafe88dca06a4d1a07e2a368122b0fb18ccfd | [
"Apache-2.0"
] | null | null | null | shirp/handler.py | cedricg92/event-manager | d07fafe88dca06a4d1a07e2a368122b0fb18ccfd | [
"Apache-2.0"
] | null | null | null | shirp/handler.py | cedricg92/event-manager | d07fafe88dca06a4d1a07e2a368122b0fb18ccfd | [
"Apache-2.0"
] | null | null | null | import datetime
import fnmatch
import gzip
import shutil
import tarfile
import time
import croniter
import hdfs
from watchdog.events import PatternMatchingEventHandler, FileCreatedEvent, FileModifiedEvent, FileMovedEvent, os, \
FileSystemEvent
def add_log_str(log_pattern, strlog):
"""Add log in logfile
... | 39.241322 | 119 | 0.614212 | 2,771 | 23,741 | 5.103934 | 0.071815 | 0.076999 | 0.100191 | 0.062787 | 0.771689 | 0.729831 | 0.718447 | 0.692852 | 0.665064 | 0.617832 | 0 | 0.000876 | 0.278463 | 23,741 | 604 | 120 | 39.306291 | 0.824752 | 0.204372 | 0 | 0.474843 | 0 | 0 | 0.028859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106918 | false | 0 | 0.028302 | 0 | 0.311321 | 0.012579 | 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 |
25b0c94c1b7162ba39eb9ea90001ad594220bda8 | 2,417 | py | Python | tests/test_status.py | tbartelmess/python-nomad | 3ddbf904af2947992722a9dcf58c23eb0078fc8f | [
"MIT"
] | null | null | null | tests/test_status.py | tbartelmess/python-nomad | 3ddbf904af2947992722a9dcf58c23eb0078fc8f | [
"MIT"
] | null | null | null | tests/test_status.py | tbartelmess/python-nomad | 3ddbf904af2947992722a9dcf58c23eb0078fc8f | [
"MIT"
] | null | null | null | import pytest
import tests.common as common
import nomad
import sys
@pytest.fixture
def nomad_setup():
n = nomad.Nomad(host=common.IP, port=common.NOMAD_PORT, verify=False, token=common.NOMAD_TOKEN)
return n
# integration tests requires nomad Vagrant VM or Binary running
def test_get_leader(nomad_setup):
... | 28.435294 | 99 | 0.733968 | 357 | 2,417 | 4.72549 | 0.193277 | 0.201541 | 0.189686 | 0.124481 | 0.658566 | 0.518672 | 0.471844 | 0.362774 | 0.186129 | 0.186129 | 0 | 0.029254 | 0.151427 | 2,417 | 84 | 100 | 28.77381 | 0.793272 | 0.025238 | 0 | 0.113208 | 0 | 0 | 0.042906 | 0 | 0 | 0 | 0 | 0 | 0.339623 | 1 | 0.264151 | false | 0.018868 | 0.075472 | 0 | 0.358491 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
25b158d89271f5b65a9c02d9dbc2083e03cdfb9a | 154 | py | Python | enums/Matiere.py | ythepaut/visi301_univdefender | 13f0e564ad3265aabf77544755873b8584d296de | [
"CC-BY-3.0"
] | 7 | 2019-10-08T15:48:18.000Z | 2021-07-06T13:20:54.000Z | enums/Matiere.py | ythepaut/visi301_univdefender | 13f0e564ad3265aabf77544755873b8584d296de | [
"CC-BY-3.0"
] | null | null | null | enums/Matiere.py | ythepaut/visi301_univdefender | 13f0e564ad3265aabf77544755873b8584d296de | [
"CC-BY-3.0"
] | 3 | 2019-10-08T15:47:55.000Z | 2019-12-13T23:28:12.000Z | """Module Enum:Matiere"""
from enum import Enum
class Matiere(Enum):
"""Enum : Matiere"""
HISTOIRE = 0
MATHS = 1
INFO = 2
SPORT = 3
| 14 | 25 | 0.571429 | 20 | 154 | 4.4 | 0.7 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036697 | 0.292208 | 154 | 10 | 26 | 15.4 | 0.770642 | 0.220779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
25b171c31a40f6d8668db31079821a30e464b8d6 | 155 | py | Python | tests/plugins/viz/conftest.py | andrsd/otter | 3d47d4ad433b5e7bd1a1d5fed45b4950de14c25f | [
"MIT"
] | null | null | null | tests/plugins/viz/conftest.py | andrsd/otter | 3d47d4ad433b5e7bd1a1d5fed45b4950de14c25f | [
"MIT"
] | 30 | 2020-02-25T13:29:59.000Z | 2022-01-07T20:19:05.000Z | tests/plugins/viz/conftest.py | andrsd/otter | 3d47d4ad433b5e7bd1a1d5fed45b4950de14c25f | [
"MIT"
] | null | null | null | import pytest
@pytest.fixture
def viz_plugin(qtbot):
from otter.plugins.viz.VizPlugin import VizPlugin
plugin = VizPlugin(None)
yield plugin
| 17.222222 | 53 | 0.748387 | 20 | 155 | 5.75 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180645 | 155 | 8 | 54 | 19.375 | 0.905512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
25d27198f145805ad47007d54d3831652ac2959c | 207 | py | Python | AlgoMethod/full_search/multi_array_full_serach/01.py | Nishi05/Competitive-programming | e59a6755b706d9d5c1f359f4511d92c114e6a94e | [
"MIT"
] | null | null | null | AlgoMethod/full_search/multi_array_full_serach/01.py | Nishi05/Competitive-programming | e59a6755b706d9d5c1f359f4511d92c114e6a94e | [
"MIT"
] | null | null | null | AlgoMethod/full_search/multi_array_full_serach/01.py | Nishi05/Competitive-programming | e59a6755b706d9d5c1f359f4511d92c114e6a94e | [
"MIT"
] | null | null | null | n, m = map(int, input().split())
a_lst = list(map(int, input().split()))
b_lst = list(map(int, input().split()))
cnt = 0
for i in a_lst:
for j in b_lst:
if i > j:
cnt += 1
print(cnt)
| 20.7 | 39 | 0.531401 | 39 | 207 | 2.717949 | 0.487179 | 0.169811 | 0.311321 | 0.45283 | 0.433962 | 0.433962 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.270531 | 207 | 9 | 40 | 23 | 0.688742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 |
25fc5f6e0c01ba67a5687398c8403a5380a5ac0e | 2,176 | py | Python | videostreams.py | agnanp/multithreading-videostream | c3d47f2f68d4d238f0923909c5cce5de42ae35a4 | [
"MIT"
] | null | null | null | videostreams.py | agnanp/multithreading-videostream | c3d47f2f68d4d238f0923909c5cce5de42ae35a4 | [
"MIT"
] | null | null | null | videostreams.py | agnanp/multithreading-videostream | c3d47f2f68d4d238f0923909c5cce5de42ae35a4 | [
"MIT"
] | null | null | null | from threading import Thread
import datetime
import cv2
class FPS:
"""docstring for FPS"""
def __init__(self):
self._start = None
self._end = None
self._numFrames = 0
def start(self):
self._start = datetime.datetime.now()
return self
def stop(self):
self._end = datetime.datetime.now()
def update(se... | 20.72381 | 57 | 0.705423 | 319 | 2,176 | 4.642633 | 0.247649 | 0.087779 | 0.06077 | 0.057394 | 0.273464 | 0.239703 | 0.177583 | 0.131668 | 0.131668 | 0.083052 | 0 | 0.009341 | 0.163603 | 2,176 | 104 | 58 | 20.923077 | 0.804396 | 0.007813 | 0 | 0.16 | 0 | 0 | 0.005109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.04 | 0.12 | 0.546667 | 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 |
d30aa2b8ad3b8e1e64e065adc63f6c47c9d9af5b | 391 | py | Python | rl/tools/normalizers/__init__.py | haamoon/librl | f9fc633b79c1bec1cd1b1a275834eb5221cffff3 | [
"MIT"
] | 3 | 2019-08-11T23:25:17.000Z | 2021-08-24T13:24:01.000Z | rl/tools/normalizers/__init__.py | haamoon/librl | f9fc633b79c1bec1cd1b1a275834eb5221cffff3 | [
"MIT"
] | 6 | 2020-01-28T22:45:38.000Z | 2022-02-10T00:13:42.000Z | rl/tools/normalizers/__init__.py | haamoon/librl | f9fc633b79c1bec1cd1b1a275834eb5221cffff3 | [
"MIT"
] | 3 | 2019-07-03T21:18:27.000Z | 2019-10-03T04:51:55.000Z | from .normalizer import OnlineNormalizer, NormalizerStd, NormalizerMax, NormalizerId
from .tf_normalizer import tfNormalizer, tfNormalizerMax, tfNormalizerStd, tfNormalizerId
def create_build_nor_from_str(nor_cls_str, nor_kwargs):
nor_cls = globals()[nor_cls_str]
def build_nor(shape):
return nor_cls(... | 35.545455 | 89 | 0.792839 | 49 | 391 | 6.020408 | 0.510204 | 0.081356 | 0.061017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132992 | 391 | 10 | 90 | 39.1 | 0.870206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 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 |
d32d9dc00142a808ab4884c037d719b88a753e99 | 176 | py | Python | openiPrototype/openiPrototype/APIS/Products_and_Services/Shop/admin.py | OPENi-ict/ntua_demo | 104118fbe1f54db35386ca96286317ceb64cb658 | [
"Apache-2.0"
] | null | null | null | openiPrototype/openiPrototype/APIS/Products_and_Services/Shop/admin.py | OPENi-ict/ntua_demo | 104118fbe1f54db35386ca96286317ceb64cb658 | [
"Apache-2.0"
] | null | null | null | openiPrototype/openiPrototype/APIS/Products_and_Services/Shop/admin.py | OPENi-ict/ntua_demo | 104118fbe1f54db35386ca96286317ceb64cb658 | [
"Apache-2.0"
] | null | null | null | __author__ = 'mpetyx'
from django.contrib import admin
from .models import OpeniShop
class ShopAdmin(admin.ModelAdmin):
pass
admin.site.register(OpeniShop, ShopAdmin)
| 14.666667 | 41 | 0.778409 | 21 | 176 | 6.333333 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142045 | 176 | 11 | 42 | 16 | 0.880795 | 0 | 0 | 0 | 0 | 0 | 0.034091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.333333 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
d3314a32508d50103f80a9ed56866ebaa49e1a0f | 755 | py | Python | src/solver.py | geraldzakwan/katla-helper | c4f7d655fe00dc07bf1eee656b1e64684b5eded7 | [
"MIT"
] | null | null | null | src/solver.py | geraldzakwan/katla-helper | c4f7d655fe00dc07bf1eee656b1e64684b5eded7 | [
"MIT"
] | null | null | null | src/solver.py | geraldzakwan/katla-helper | c4f7d655fe00dc07bf1eee656b1e64684b5eded7 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from src.utils import read_dictionary
class Solver(ABC):
def __init__(self, word_dict_filepath, hist_dict_filepath):
self.word_dict = read_dictionary(word_dict_filepath)
self.hist_dict = read_dictionary(hist_dict_filepath)
def is_in_dictionary(self, word):... | 22.205882 | 65 | 0.678146 | 94 | 755 | 5.138298 | 0.361702 | 0.082816 | 0.074534 | 0.057971 | 0.186335 | 0.082816 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263576 | 755 | 33 | 66 | 22.878788 | 0.868705 | 0 | 0 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0.130435 | 0.130435 | 0 | 0.608696 | 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 |
d35834e4ac51677b11ebf3a3403d9007c865a7d7 | 69 | py | Python | pymiddy/__init__.py | godvsdeity/pymiddy | 5126110a3f9e673f062e4248301796b5de10507d | [
"MIT"
] | 1 | 2021-01-15T06:17:50.000Z | 2021-01-15T06:17:50.000Z | pymiddy/__init__.py | godvsdeity/pymiddy | 5126110a3f9e673f062e4248301796b5de10507d | [
"MIT"
] | null | null | null | pymiddy/__init__.py | godvsdeity/pymiddy | 5126110a3f9e673f062e4248301796b5de10507d | [
"MIT"
] | null | null | null | __name__ = 'pymiddy'
__version__ = '0.1.0'
from .middy import Middy
| 13.8 | 24 | 0.710145 | 10 | 69 | 4.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0.15942 | 69 | 4 | 25 | 17.25 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 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 |
d374f59d67c6fe97e2ccc0a2b608d4637cc76e57 | 168 | py | Python | search.py | urplatshubham/arr_deal | a3b0563e78b9f1fa267bb934f3cf0ff922dc35f2 | [
"MIT"
] | null | null | null | search.py | urplatshubham/arr_deal | a3b0563e78b9f1fa267bb934f3cf0ff922dc35f2 | [
"MIT"
] | null | null | null | search.py | urplatshubham/arr_deal | a3b0563e78b9f1fa267bb934f3cf0ff922dc35f2 | [
"MIT"
] | null | null | null | class searching:
def lin_search(self, arr, num):
for i in range(len(arr)):
if arr[i] == num:
return i
return -1
| 21 | 36 | 0.458333 | 22 | 168 | 3.454545 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.440476 | 168 | 7 | 37 | 24 | 0.797872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d385ca7241bd26e2e1fb9eb4af0ac1bee221e31c | 1,465 | py | Python | sandbox/lib/jumpscale/JumpscaleLibs/clients/gitea/GiteaOrgForMember.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | 2 | 2019-05-09T07:21:25.000Z | 2019-08-05T06:37:53.000Z | sandbox/lib/jumpscale/JumpscaleLibs/clients/gitea/GiteaOrgForMember.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | 664 | 2018-12-19T12:43:44.000Z | 2019-08-23T04:24:42.000Z | sandbox/lib/jumpscale/JumpscaleLibs/clients/gitea/GiteaOrgForMember.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | 7 | 2019-05-03T07:14:37.000Z | 2019-08-05T12:36:52.000Z | from .GiteaOrg import GiteaOrg
class GiteaOrgForMember(GiteaOrg):
def save(self, commit=True):
is_valid, err = self._validate(create=True)
if not commit or not is_valid:
self._log_debug(err)
return is_valid
try:
resp = self.user.client.api.admin.adminCr... | 31.847826 | 105 | 0.574061 | 180 | 1,465 | 4.538889 | 0.277778 | 0.077111 | 0.088127 | 0.058752 | 0.717258 | 0.717258 | 0.717258 | 0.717258 | 0.585067 | 0.585067 | 0 | 0 | 0.335836 | 1,465 | 45 | 106 | 32.555556 | 0.839671 | 0.251877 | 0 | 0.592593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d3894fa9b5b91661bd5eeb0871ee8e2e049cf34c | 1,486 | py | Python | crits/emails/urls.py | dutrow/crits | 6b357daa5c3060cf622d3a3b0c7b41a9ca69c049 | [
"MIT"
] | 738 | 2015-01-02T12:39:55.000Z | 2022-03-23T11:05:51.000Z | crits/emails/urls.py | dutrow/crits | 6b357daa5c3060cf622d3a3b0c7b41a9ca69c049 | [
"MIT"
] | 605 | 2015-01-01T01:03:39.000Z | 2021-11-17T18:51:07.000Z | crits/emails/urls.py | dutrow/crits | 6b357daa5c3060cf622d3a3b0c7b41a9ca69c049 | [
"MIT"
] | 316 | 2015-01-07T12:35:01.000Z | 2022-03-30T04:44:30.000Z | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^search/$', views.email_search, name='crits-emails-views-email_search'),
url(r'^delete/(?P<email_id>\w+)/$', views.email_del, name='crits-emails-views-email_del'),
url(r'^upload/attach/(?P<email_id>\w+)/$', views.upload_attach, nam... | 70.761905 | 151 | 0.718708 | 234 | 1,486 | 4.320513 | 0.17094 | 0.178042 | 0.207715 | 0.276954 | 0.531157 | 0.363007 | 0.205737 | 0.205737 | 0.205737 | 0.104847 | 0 | 0 | 0.07537 | 1,486 | 20 | 152 | 74.3 | 0.735808 | 0 | 0 | 0 | 0 | 0 | 0.519515 | 0.469717 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d39d87163c302a5224242e13bcd3a257bf4c8bac | 22,731 | py | Python | lib/extraction/XRR.py | ArnaudHemmerle/JupyLabBook | 1975eabc85e73e28432514fea2199fddd033ecfc | [
"MIT"
] | null | null | null | lib/extraction/XRR.py | ArnaudHemmerle/JupyLabBook | 1975eabc85e73e28432514fea2199fddd033ecfc | [
"MIT"
] | 20 | 2020-05-07T16:47:14.000Z | 2021-04-01T10:15:12.000Z | lib/extraction/XRR.py | ArnaudHemmerle/JupyLabBook | 1975eabc85e73e28432514fea2199fddd033ecfc | [
"MIT"
] | null | null | null | # custom libraries
from lib.extraction.common import PyNexus as PN
from lib.extraction.common import Check_dead_pixels
from lib.extraction import PilatusSum as PilatusSum
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import matplotlib.colors as color... | 36.427885 | 117 | 0.607232 | 3,163 | 22,731 | 4.251028 | 0.101802 | 0.013759 | 0.017849 | 0.021419 | 0.771233 | 0.733675 | 0.712033 | 0.670608 | 0.641306 | 0.627398 | 0 | 0.039528 | 0.284369 | 22,731 | 623 | 118 | 36.486356 | 0.787054 | 0.338524 | 0 | 0.566901 | 0 | 0.003521 | 0.094401 | 0.004197 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021127 | false | 0 | 0.042254 | 0 | 0.073944 | 0.045775 | 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 |
d3a0e130e8b9d7d7c42e0164502452cf061d2603 | 499 | py | Python | app/controllers/__init__.py | s1hofmann/MrHyde2.0-Backbone | d1d95cb8ba3e2db60c75218625453b915e87e1bf | [
"MIT"
] | 3 | 2017-05-14T20:11:49.000Z | 2018-04-12T03:56:06.000Z | app/controllers/__init__.py | s1hofmann/MrHyde2.0-Backbone | d1d95cb8ba3e2db60c75218625453b915e87e1bf | [
"MIT"
] | null | null | null | app/controllers/__init__.py | s1hofmann/MrHyde2.0-Backbone | d1d95cb8ba3e2db60c75218625453b915e87e1bf | [
"MIT"
] | null | null | null | from flask import Blueprint
from app import current_config
jekyll = Blueprint('jekyll',
__name__,
static_folder=current_config.STATICDIR,
template_folder=current_config.TEMPLATEDIR)
status = Blueprint('status',
__name__,
s... | 29.352941 | 62 | 0.655311 | 47 | 499 | 6.553191 | 0.340426 | 0.211039 | 0.246753 | 0.149351 | 0.493506 | 0.493506 | 0.493506 | 0.493506 | 0.493506 | 0.493506 | 0 | 0 | 0.292585 | 499 | 16 | 63 | 31.1875 | 0.872521 | 0 | 0 | 0.5 | 0 | 0 | 0.024048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d3a1dc062b30267f8b6a7cc3486fac2bf169ce7d | 1,808 | py | Python | tests/test_util.py | BrechtBa/knxpy | 9e486f4a4623f586091e72cc6472441f3efbdd72 | [
"MIT"
] | null | null | null | tests/test_util.py | BrechtBa/knxpy | 9e486f4a4623f586091e72cc6472441f3efbdd72 | [
"MIT"
] | null | null | null | tests/test_util.py | BrechtBa/knxpy | 9e486f4a4623f586091e72cc6472441f3efbdd72 | [
"MIT"
] | null | null | null | #!/usr/bin/env/ python
################################################################################
# Copyright (c) 2016 Daniel Matuschek
# This file is part of knxpy.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation fil... | 34.769231 | 80 | 0.626659 | 244 | 1,808 | 4.487705 | 0.393443 | 0.051142 | 0.138813 | 0.175342 | 0.292237 | 0.292237 | 0.226484 | 0.069406 | 0 | 0 | 0 | 0.039946 | 0.183075 | 1,808 | 51 | 81 | 35.45098 | 0.701422 | 0.380531 | 0 | 0 | 0 | 0 | 0.046463 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.363636 | false | 0 | 0.136364 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d3a8fa7d4f538e6d4f3b23579f159cc8cfadaa69 | 480 | py | Python | 4/oop6.py | ikramulkayes/Python_season2 | d057460d07c5d2d218ecd52e08c1d355add44df2 | [
"MIT"
] | null | null | null | 4/oop6.py | ikramulkayes/Python_season2 | d057460d07c5d2d218ecd52e08c1d355add44df2 | [
"MIT"
] | null | null | null | 4/oop6.py | ikramulkayes/Python_season2 | d057460d07c5d2d218ecd52e08c1d355add44df2 | [
"MIT"
] | null | null | null | class Vehicle:
def __init__(self):
self.lst = [0,0]
def moveUp(self):
self.lst[1] += 1
def moveDown(self):
self.lst[1] -= 1
def moveRight(self):
self.lst[0] += 1
def moveLeft(self):
self.lst[0] -= 1
def print_position(self):
print(tuple(self.lst))
... | 20 | 30 | 0.604167 | 67 | 480 | 4.19403 | 0.238806 | 0.149466 | 0.19573 | 0.270463 | 0.227758 | 0.227758 | 0 | 0 | 0 | 0 | 0 | 0.027322 | 0.2375 | 480 | 24 | 31 | 20 | 0.740437 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0 | 0.318182 | 0.272727 | 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 |
6c92d27382dba0aad5c7403248ee9b4f5c933459 | 85 | py | Python | ABC_A/ABC143_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | ABC_A/ABC143_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | ABC_A/ABC143_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | a, b = map(int, input().split())
if b * 2 >= a:
print(0)
else:
print(a-b*2)
| 12.142857 | 32 | 0.482353 | 17 | 85 | 2.411765 | 0.647059 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0.270588 | 85 | 6 | 33 | 14.166667 | 0.612903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.4 | 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 |
6c9b3c5cc62a2d5ac5dd14196042eed862b77aa0 | 858 | py | Python | recruitment_agency_api/agency_api/views.py | swingthrough/recruitment-agency-storage-api-task | ab388cdfb21cf5611e9fb00a0e7dfc20c125c5c3 | [
"MIT"
] | null | null | null | recruitment_agency_api/agency_api/views.py | swingthrough/recruitment-agency-storage-api-task | ab388cdfb21cf5611e9fb00a0e7dfc20c125c5c3 | [
"MIT"
] | null | null | null | recruitment_agency_api/agency_api/views.py | swingthrough/recruitment-agency-storage-api-task | ab388cdfb21cf5611e9fb00a0e7dfc20c125c5c3 | [
"MIT"
] | null | null | null | from rest_framework import generics
from rest_framework import mixins
from . import models
from . import serializers
# Create your views here.
# class JobCandidateView(
# mixins.CreateModelMixin,
# mixins.RetrieveModelMixin,
# mixins.ListModelMixin,
# mixins.UpdateModelMixin,
# mixins.DestroyModel... | 26.8125 | 59 | 0.719114 | 74 | 858 | 8.256757 | 0.459459 | 0.026187 | 0.055646 | 0.075286 | 0.599018 | 0.481178 | 0.481178 | 0.481178 | 0.481178 | 0.481178 | 0 | 0 | 0.187646 | 858 | 32 | 60 | 26.8125 | 0.876614 | 0.799534 | 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 |
6ca3c3072f88c49c10e934740064094359f1f4b8 | 999 | py | Python | kalasearch/http_client.py | oeddyo/kalasearch-python-sdk | bbb0cd44bd19d23ee4f1a3ea0aa5599e3e1fd38b | [
"MIT"
] | 9 | 2020-08-19T06:48:25.000Z | 2022-02-05T07:24:30.000Z | kalasearch/http_client.py | oeddyo/kalasearch-python-sdk | bbb0cd44bd19d23ee4f1a3ea0aa5599e3e1fd38b | [
"MIT"
] | 1 | 2020-08-24T00:55:32.000Z | 2020-08-24T00:55:32.000Z | kalasearch/http_client.py | oeddyo/kalasearch-python-sdk | bbb0cd44bd19d23ee4f1a3ea0aa5599e3e1fd38b | [
"MIT"
] | 4 | 2021-11-09T20:41:13.000Z | 2022-03-22T09:13:54.000Z | import requests
class HttpClient():
config = None
headers = {}
def __init__(self, config):
self.config = config
self.headers = {
"X-Kalasearch-Id": self.config.appId,
"X-Kalasearch-Key": self.config.apiKey,
"Content-Type": "application/json"
}
... | 28.542857 | 76 | 0.613614 | 120 | 999 | 5.008333 | 0.3 | 0.083195 | 0.093178 | 0.139767 | 0.415973 | 0.415973 | 0.415973 | 0.14975 | 0.14975 | 0 | 0 | 0 | 0.27027 | 999 | 34 | 77 | 29.382353 | 0.824417 | 0 | 0 | 0 | 0 | 0 | 0.06006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.038462 | 0.153846 | 0.576923 | 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 |
6ca943dcea2e6106828fb2f413dbeb83826f198e | 171 | py | Python | tests/pyb/pyb_f405.py | TG-Techie/circuitpython | 390295dd218fb705fe652de77132dea472adf1ed | [
"MIT",
"BSD-3-Clause",
"MIT-0",
"Unlicense"
] | 3 | 2020-01-09T21:50:22.000Z | 2020-01-15T08:27:48.000Z | tests/pyb/pyb_f405.py | TG-Techie/circuitpython | 390295dd218fb705fe652de77132dea472adf1ed | [
"MIT",
"BSD-3-Clause",
"MIT-0",
"Unlicense"
] | null | null | null | tests/pyb/pyb_f405.py | TG-Techie/circuitpython | 390295dd218fb705fe652de77132dea472adf1ed | [
"MIT",
"BSD-3-Clause",
"MIT-0",
"Unlicense"
] | 1 | 2020-01-11T12:42:41.000Z | 2020-01-11T12:42:41.000Z | # test pyb module on F405 MCUs
import os, pyb
if not "STM32F405" in os.uname().machine:
print("SKIP")
raise SystemExit
print(pyb.freq())
print(type(pyb.rng()))
| 15.545455 | 41 | 0.672515 | 27 | 171 | 4.259259 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.181287 | 171 | 10 | 42 | 17.1 | 0.764286 | 0.163743 | 0 | 0 | 0 | 0 | 0.092199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.