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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
834b1c32567e436d37a95c80e53c2602403a2d36 | 3,036 | py | Python | django_middleware_filter/wrappers.py | winrey/django-middleware-filter | 2ce7124f297ed62b2d8934ca5b621194ffd66b77 | [
"MIT"
] | null | null | null | django_middleware_filter/wrappers.py | winrey/django-middleware-filter | 2ce7124f297ed62b2d8934ca5b621194ffd66b77 | [
"MIT"
] | null | null | null | django_middleware_filter/wrappers.py | winrey/django-middleware-filter | 2ce7124f297ed62b2d8934ca5b621194ffd66b77 | [
"MIT"
] | null | null | null | from inspect import isfunction, isclass
from functools import wraps
def _noop(*args, **kwargs):
return None
def _middleware_function_filter(filter_func):
"""
@param filter_func: Receives a Request argument. The code will use this middleware if returns true or bypass the middleware if it returns false.
... | 39.428571 | 148 | 0.692029 | 372 | 3,036 | 5.416667 | 0.239247 | 0.049628 | 0.039702 | 0.049628 | 0.586104 | 0.465012 | 0.434243 | 0.419851 | 0.419851 | 0.419851 | 0 | 0 | 0.229578 | 3,036 | 76 | 149 | 39.947368 | 0.861479 | 0.261858 | 0 | 0.14 | 0 | 0 | 0.057476 | 0.011226 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0.04 | 0.04 | 0.04 | 0.64 | 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 | 0 | 1 | 0 | 0 | 2 |
835ae40eb38ae57875e3d3633298deff9b9df23c | 2,871 | py | Python | multi_class_handler.py | HamzaFarhan/dreamai2 | ea84815bdb745e7a49a54baafbd8a80b688d5cba | [
"MIT"
] | null | null | null | multi_class_handler.py | HamzaFarhan/dreamai2 | ea84815bdb745e7a49a54baafbd8a80b688d5cba | [
"MIT"
] | null | null | null | multi_class_handler.py | HamzaFarhan/dreamai2 | ea84815bdb745e7a49a54baafbd8a80b688d5cba | [
"MIT"
] | null | null | null | import base64
from utils import *
from ts.utils.util import map_class_to_label
from ts.torch_handler.vision_handler import VisionHandler
from ts.torch_handler.image_classifier import ImageClassifier
class MultiImageClassifier(ImageClassifier):
def lala(l): return l
# # def __init__(self, model):
# # su... | 36.807692 | 110 | 0.591083 | 357 | 2,871 | 4.64986 | 0.434174 | 0.021687 | 0.018072 | 0.021687 | 0.015663 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034757 | 0.298502 | 2,871 | 77 | 111 | 37.285714 | 0.789474 | 0.777429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.714286 | 0.142857 | 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 | 0 | 0 | 0 | 2 |
835ced46a36d68ab315e6d0c07e9ed357e95f08f | 285 | py | Python | SP/Modul_03/input_01.py | edu-sense-com/OSE-Python-Course | cbf93e18b0cdbcaf54483f6fac5faafd372de068 | [
"MIT"
] | null | null | null | SP/Modul_03/input_01.py | edu-sense-com/OSE-Python-Course | cbf93e18b0cdbcaf54483f6fac5faafd372de068 | [
"MIT"
] | null | null | null | SP/Modul_03/input_01.py | edu-sense-com/OSE-Python-Course | cbf93e18b0cdbcaf54483f6fac5faafd372de068 | [
"MIT"
] | null | null | null | # skrypt do wykonywania w trybie REPL
# każda linia jako kolejne polecenie
name = input()
print(name)
name = input("Please, give me your name:")
print(f"Your name is: {name}")
current_year = input("What is current year? ")
print(f"Current year is: {current_year}")
type(current_year)
| 25.909091 | 46 | 0.729825 | 45 | 285 | 4.555556 | 0.533333 | 0.268293 | 0.126829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14386 | 285 | 10 | 47 | 28.5 | 0.840164 | 0.245614 | 0 | 0 | 0 | 0 | 0.466981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
836205b5da7c99624931fce0ba7c0cdd6943e401 | 135 | py | Python | utils/torch_utils.py | ascentai/pytorch-nec | 90ce168be01f7acb9cc04b3492a2d90af7247147 | [
"MIT"
] | 1 | 2021-05-16T17:16:07.000Z | 2021-05-16T17:16:07.000Z | utils/torch_utils.py | marchinidavide/pytorch-nec | 139e1cdcb46a02f98cbada2e5df7e7cf974ea11f | [
"MIT"
] | null | null | null | utils/torch_utils.py | marchinidavide/pytorch-nec | 139e1cdcb46a02f98cbada2e5df7e7cf974ea11f | [
"MIT"
] | null | null | null | import torch
use_cuda = torch.cuda.is_available()
def move_to_gpu(var):
if use_cuda:
return var.cuda()
else:
return var
| 12.272727 | 36 | 0.688889 | 22 | 135 | 4 | 0.636364 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214815 | 135 | 10 | 37 | 13.5 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
8364173f42617c8d8418197d30ba77ab969a1fea | 1,250 | py | Python | thesis-resources/filter-delay-cutoffs.py | lh70/s-connect-python | 5a4ca17690ec700b36faf69ea744c514f532cc48 | [
"Apache-2.0"
] | null | null | null | thesis-resources/filter-delay-cutoffs.py | lh70/s-connect-python | 5a4ca17690ec700b36faf69ea744c514f532cc48 | [
"Apache-2.0"
] | null | null | null | thesis-resources/filter-delay-cutoffs.py | lh70/s-connect-python | 5a4ca17690ec700b36faf69ea744c514f532cc48 | [
"Apache-2.0"
] | null | null | null | """
generates high value cutoff filtered versions for case study 1 and 2 converted delay measurements
"""
DATA_PATHS = [
'CS1_SendFixed_50ms_JoinDupFilter',
'CS1_SendFixed_50ms_JoinNoFilter',
'CS1_SendFixed_100ms_JoinDupFilter',
'CS1_SendFixed_100ms_JoinNoFilter',
'CS1_SendVariable_50ms_JoinDupFilt... | 32.894737 | 97 | 0.7488 | 147 | 1,250 | 5.972789 | 0.333333 | 0.05467 | 0.036446 | 0.034169 | 0.107062 | 0.107062 | 0 | 0 | 0 | 0 | 0 | 0.059266 | 0.1496 | 1,250 | 37 | 98 | 33.783784 | 0.766698 | 0.0776 | 0 | 0 | 1 | 0 | 0.527511 | 0.49345 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
836460f282da1b6162b898bf894d2939c1a9f22e | 125 | py | Python | docker-builder/jupyter/bin/loop.py | lys091112/util-compose-practice | 2ceec1c1e4a930c8dc65e282fdc564f16753be55 | [
"Apache-2.0"
] | null | null | null | docker-builder/jupyter/bin/loop.py | lys091112/util-compose-practice | 2ceec1c1e4a930c8dc65e282fdc564f16753be55 | [
"Apache-2.0"
] | 1 | 2017-07-17T05:47:53.000Z | 2017-07-31T05:30:53.000Z | docker-builder/jupyter/bin/loop.py | lys091112/util-compose-practice | 2ceec1c1e4a930c8dc65e282fdc564f16753be55 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import time
var = 1
while var == 1 : # 表达式永远为 true
time.sleep(1000)
print ("Good bye!")
| 12.5 | 31 | 0.584 | 19 | 125 | 3.842105 | 0.842105 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065934 | 0.272 | 125 | 9 | 32 | 13.888889 | 0.736264 | 0.256 | 0 | 0 | 0 | 0 | 0.098901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
55d5daff626d22ed795483a70aa1ab0696b0038a | 196 | py | Python | code/rearrange1.py | saqibutm/git-course | 5d5ee07478ed6a6f76666fe884509e1aa7321e90 | [
"MIT"
] | null | null | null | code/rearrange1.py | saqibutm/git-course | 5d5ee07478ed6a6f76666fe884509e1aa7321e90 | [
"MIT"
] | null | null | null | code/rearrange1.py | saqibutm/git-course | 5d5ee07478ed6a6f76666fe884509e1aa7321e90 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import re
def rearrange_name(name):
result = re.search(r"^([\w .]*), ([\w .]*)$", name)
if result == None:
return result
return "{} {}".format(result[2], result[1])
| 19.6 | 52 | 0.591837 | 28 | 196 | 4.107143 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.158163 | 196 | 10 | 53 | 19.6 | 0.678788 | 0.107143 | 0 | 0 | 0 | 0 | 0.154286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
55dadc90c2f9fdbe258867ab069d2c73b2196055 | 394 | py | Python | siphon/__init__.py | DanielWatkins/siphon | 4c6740c2f8030ec1a23cafd8b8b9713dcd382cb2 | [
"BSD-3-Clause"
] | 1 | 2019-05-31T14:02:08.000Z | 2019-05-31T14:02:08.000Z | siphon/__init__.py | DanielWatkins/siphon | 4c6740c2f8030ec1a23cafd8b8b9713dcd382cb2 | [
"BSD-3-Clause"
] | 147 | 2021-03-06T01:01:13.000Z | 2022-03-30T22:18:18.000Z | siphon/__init__.py | DanielWatkins/siphon | 4c6740c2f8030ec1a23cafd8b8b9713dcd382cb2 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2013-2015 Siphon Contributors.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
"""Tools for accessing atmospheric and oceanic science data on remote servers."""
# Version import needs to come first so everyone else can pull on import
from ._version imp... | 39.4 | 81 | 0.786802 | 58 | 394 | 5.206897 | 0.741379 | 0.109272 | 0.066225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.137056 | 394 | 9 | 82 | 43.777778 | 0.858824 | 0.728426 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
55f345924652b374aa61bbbd35725fc3f1db080b | 378 | py | Python | LeetCode/Leetcode-2019Summer/Leetcode169(Majority Number).py | Sprinter1999/Algorithm | 035449f7f220064a0f4c4024d8006df230b16c73 | [
"MIT"
] | 4 | 2020-08-07T11:43:51.000Z | 2020-12-09T13:56:34.000Z | LeetCode/Leetcode-2019Summer/Leetcode169(Majority Number).py | Sprinter1999/Algorithm | 035449f7f220064a0f4c4024d8006df230b16c73 | [
"MIT"
] | null | null | null | LeetCode/Leetcode-2019Summer/Leetcode169(Majority Number).py | Sprinter1999/Algorithm | 035449f7f220064a0f4c4024d8006df230b16c73 | [
"MIT"
] | null | null | null | class Solution:
def majorityElement(self, nums) -> int:
dic={}
for num in nums:
dic[num]=dic.get(num,0)+1
#guess,dic.get(num,0)=dic.get(num,0)+1 is non-existential,for in syntax field,we can't assign to function call
for num in nums:
i... | 37.8 | 123 | 0.526455 | 57 | 378 | 3.491228 | 0.54386 | 0.120603 | 0.180905 | 0.201005 | 0.110553 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.351852 | 378 | 10 | 124 | 37.8 | 0.783673 | 0.28836 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 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 | 0 | 0 | 0 | 2 |
55f4094f4f3805624324404977cd473a246bb943 | 1,076 | py | Python | BaseAnnotationAdapter.py | al3xl0g0/model-leaf_HU | b360599a318b14168b57708f4820cd2729d3688f | [
"MIT"
] | null | null | null | BaseAnnotationAdapter.py | al3xl0g0/model-leaf_HU | b360599a318b14168b57708f4820cd2729d3688f | [
"MIT"
] | null | null | null | BaseAnnotationAdapter.py | al3xl0g0/model-leaf_HU | b360599a318b14168b57708f4820cd2729d3688f | [
"MIT"
] | 4 | 2020-03-30T15:49:33.000Z | 2020-10-26T15:10:41.000Z |
class BaseAnnotationAdapter(object):
def __iter__(self):
return self
def __next__(self):
"""
Needs to be implemented in order to iterate through the annotations
:return: A tuple (leaf_annotation, image_path, i) where
leaf annotation is a list of coordina... | 35.866667 | 102 | 0.615242 | 137 | 1,076 | 4.715328 | 0.474453 | 0.01548 | 0.013932 | 0.018576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.320632 | 1,076 | 29 | 103 | 37.103448 | 0.883721 | 0.589219 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.1 | 0.7 | 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 | 0 | 1 | 0 | 0 | 2 |
3606e32adb487aee5f2ac2c121b4bdb3a7f79f0b | 3,357 | py | Python | restalchemy/auth.py | restalchemy/restalchemy | dcbe5312832f35ad4fa7262516c32579e0acd214 | [
"0BSD"
] | 1 | 2019-01-16T18:40:01.000Z | 2019-01-16T18:40:01.000Z | restalchemy/auth.py | restalchemy/restalchemy | dcbe5312832f35ad4fa7262516c32579e0acd214 | [
"0BSD"
] | null | null | null | restalchemy/auth.py | restalchemy/restalchemy | dcbe5312832f35ad4fa7262516c32579e0acd214 | [
"0BSD"
] | null | null | null | import logging
from json.decoder import JSONDecodeError
import bcrypt
from pyramid.authorization import ACLAuthorizationPolicy
from pyramid.config import Configurator
from pyramid.security import NO_PERMISSION_REQUIRED
from pyramid.view import forbidden_view_config
from restalchemy.exceptions import InvalidJson, Unaut... | 34.96875 | 98 | 0.73101 | 393 | 3,357 | 6.038168 | 0.384224 | 0.045512 | 0.029077 | 0.021913 | 0.02107 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00293 | 0.186774 | 3,357 | 95 | 99 | 35.336842 | 0.8663 | 0.166816 | 0 | 0 | 0 | 0 | 0.056563 | 0.009065 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.145161 | false | 0.225806 | 0.193548 | 0.048387 | 0.483871 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
360a11efd03d6a0e5d4c77ec4e2a25b37317a914 | 411 | py | Python | RemoveExtraIntroFilter.py | FernandoNobel/mdoc | f7b57fd2b0e84f68aa7cfc5f5ff1e29073d974d0 | [
"MIT"
] | null | null | null | RemoveExtraIntroFilter.py | FernandoNobel/mdoc | f7b57fd2b0e84f68aa7cfc5f5ff1e29073d974d0 | [
"MIT"
] | null | null | null | RemoveExtraIntroFilter.py | FernandoNobel/mdoc | f7b57fd2b0e84f68aa7cfc5f5ff1e29073d974d0 | [
"MIT"
] | null | null | null | from Filter import Filter
class RemoveExtraIntroFilter(Filter):
""" REMOVEEXTRAINTROFILTER(FILTER)
Remove extra intro in the text.
"""
def run(self,data):
""" RUN
@brief: Run the filter.
@param: data Input text to process
@return: date Ouput t... | 19.571429 | 42 | 0.547445 | 46 | 411 | 4.891304 | 0.630435 | 0.248889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003731 | 0.347932 | 411 | 20 | 43 | 20.55 | 0.835821 | 0.416058 | 0 | 0 | 0 | 0 | 0.035503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
36110e5bdbfae3566db4c7c2791d03aac4dd4c4f | 481 | py | Python | shop/source/database/methods/user_methods.py | icYFTL/RTULAB_Service | a16d0fc2ac9ac103f0a14e90824caded7156bf11 | [
"Apache-2.0"
] | null | null | null | shop/source/database/methods/user_methods.py | icYFTL/RTULAB_Service | a16d0fc2ac9ac103f0a14e90824caded7156bf11 | [
"Apache-2.0"
] | null | null | null | shop/source/database/methods/user_methods.py | icYFTL/RTULAB_Service | a16d0fc2ac9ac103f0a14e90824caded7156bf11 | [
"Apache-2.0"
] | null | null | null | from ..models import User
from . import session
class UserMethods:
def __init__(self):
self.__session = session
def add_user(self, user: User) -> User:
self.__session.add(user)
self.__session.commit()
return user
def remove_user(self, user: User) -> None:
raise N... | 25.315789 | 74 | 0.644491 | 63 | 481 | 4.666667 | 0.492063 | 0.14966 | 0.07483 | 0.108844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24948 | 481 | 19 | 74 | 25.315789 | 0.814404 | 0.051975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.153846 | 0.076923 | 0.692308 | 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 | 0 | 1 | 0 | 0 | 2 |
361bd2bd6098ec9a89ba56285c2355c7f1f3ab4f | 1,547 | py | Python | pypisearch/result_item.py | Gregory-K/pypisearch | f61ff5a0c63dfdfbc701a0256530f6cd9253bdea | [
"MIT"
] | 12 | 2020-12-18T23:05:26.000Z | 2022-01-24T01:57:02.000Z | pypisearch/result_item.py | Gregory-K/pypisearch | f61ff5a0c63dfdfbc701a0256530f6cd9253bdea | [
"MIT"
] | 4 | 2021-02-27T02:56:41.000Z | 2021-08-09T14:55:34.000Z | pypisearch/result_item.py | Gregory-K/pypisearch | f61ff5a0c63dfdfbc701a0256530f6cd9253bdea | [
"MIT"
] | 4 | 2021-02-27T02:42:52.000Z | 2021-11-25T14:43:27.000Z | from importlib.metadata import PackageNotFoundError
from importlib.metadata import version as pkg_version
import pypisearch.re_constants as const
class ResultItem:
"""Result item instance of search."""
def __init__(self, plain_text: str) -> None:
self.plain_text = plain_text
@property
def i... | 25.783333 | 67 | 0.622495 | 177 | 1,547 | 5.293785 | 0.276836 | 0.082177 | 0.06937 | 0.057631 | 0.134472 | 0.089648 | 0 | 0 | 0 | 0 | 0 | 0.002688 | 0.278604 | 1,547 | 59 | 68 | 26.220339 | 0.836918 | 0.08468 | 0 | 0.179487 | 0 | 0 | 0.029496 | 0.020863 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.076923 | 0.051282 | 0.512821 | 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 | 0 | 1 | 0 | 0 | 2 |
3640b0efcf26b729dd22311dd67f33c43db39565 | 29,089 | py | Python | ocs_ci/ocs/must_gather/const_must_gather.py | nbalacha/ocs-ci | 9c5a5474d62777e868b80894d6b0f3567a7b605d | [
"MIT"
] | null | null | null | ocs_ci/ocs/must_gather/const_must_gather.py | nbalacha/ocs-ci | 9c5a5474d62777e868b80894d6b0f3567a7b605d | [
"MIT"
] | null | null | null | ocs_ci/ocs/must_gather/const_must_gather.py | nbalacha/ocs-ci | 9c5a5474d62777e868b80894d6b0f3567a7b605d | [
"MIT"
] | null | null | null | """
The Procedure to add new version:
1.New Version created
2.Add the new version to GATHER_COMMANDS_VERSION dictionary
3.Ask the developer about new files on new version
4.Add file names to relevant list
OCS4.6 Link:
https://github.com/openshift/ocs-operator/blob/fefc8a0e04e314801809df2e5292a20fae8456b8/must-gather/c... | 41.615165 | 119 | 0.736876 | 3,409 | 29,089 | 6.13435 | 0.11323 | 0.114288 | 0.099034 | 0.074885 | 0.75746 | 0.625191 | 0.466335 | 0.374091 | 0.309009 | 0.21294 | 0 | 0.007973 | 0.116092 | 29,089 | 698 | 120 | 41.674785 | 0.805344 | 0.020283 | 0 | 0.357357 | 0 | 0 | 0.776889 | 0.70542 | 0 | 0 | 0 | 0.001433 | 0 | 1 | 0 | false | 0 | 0.003003 | 0 | 0.003003 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
36432b40637b27f5c9a85054e555f8814b8b94a0 | 23,809 | py | Python | client/build/build_key_media_files.py | AustralianDisabilityLimited/MultiversePlatform | 7e1aad33d48b9e47f3db2ca638cb57592336ddb7 | [
"MIT"
] | 33 | 2015-02-16T02:52:08.000Z | 2022-02-18T08:46:32.000Z | client/build/build_key_media_files.py | bensku/MultiversePlatform | 7e1aad33d48b9e47f3db2ca638cb57592336ddb7 | [
"MIT"
] | 1 | 2017-09-09T18:50:23.000Z | 2020-12-29T18:13:56.000Z | client/build/build_key_media_files.py | bensku/MultiversePlatform | 7e1aad33d48b9e47f3db2ca638cb57592336ddb7 | [
"MIT"
] | 31 | 2015-02-07T16:20:24.000Z | 2022-02-23T15:02:43.000Z | #
# The Multiverse Platform is made available under the MIT License.
#
# Copyright (c) 2012 The Multiverse Foundation
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without restrict... | 73.033742 | 127 | 0.795456 | 3,086 | 23,809 | 5.825664 | 0.101102 | 0.121649 | 0.159528 | 0.210869 | 0.577317 | 0.512682 | 0.439871 | 0.326288 | 0.13561 | 0.022806 | 0 | 0.002649 | 0.080432 | 23,809 | 325 | 128 | 73.258462 | 0.818489 | 0.105842 | 0 | 0 | 0 | 0 | 0.573428 | 0.514346 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004184 | false | 0 | 0.012552 | 0 | 0.016736 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
364d2b43e7447856217cce89fa714b029c9ad17b | 1,958 | py | Python | prototype/graph/orientdb.py | ooici/pyon | 122c629290d27f32f2f41dafd5c12469295e8acf | [
"BSD-2-Clause"
] | 2 | 2015-06-09T16:07:09.000Z | 2015-07-28T10:06:31.000Z | prototype/graph/orientdb.py | ooici/pyon | 122c629290d27f32f2f41dafd5c12469295e8acf | [
"BSD-2-Clause"
] | 3 | 2020-07-22T15:14:55.000Z | 2021-12-13T19:35:06.000Z | prototype/graph/orientdb.py | ooici/pyon | 122c629290d27f32f2f41dafd5c12469295e8acf | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
__author__ = 'Adam R. Smith'
from gevent import monkey; monkey.patch_all()
from compass.client import CompassException, Server, ADMIN
import simplejson as json
import time
from pyon.util.async import *
#import compass
#compass.request.DEBUG = True
import httplib2
#Monkey-patch httplib2 to fix... | 34.964286 | 116 | 0.657814 | 237 | 1,958 | 5.2827 | 0.468354 | 0.025559 | 0.030351 | 0.030351 | 0.210863 | 0.210863 | 0.167732 | 0.123003 | 0.123003 | 0.123003 | 0 | 0.031936 | 0.23238 | 1,958 | 55 | 117 | 35.6 | 0.801065 | 0.208376 | 0 | 0.060606 | 0 | 0 | 0.110533 | 0.041612 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.151515 | 0.181818 | null | null | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
3654651bd65e585569a4f59adaea2ad3b1619a28 | 964 | py | Python | Chapter06/decorator/decorator5.py | MichaelRW/Python-for-Geeks | a111f61f1a0b077fc0524431e1ccefd9214d5c53 | [
"MIT"
] | 31 | 2020-08-10T22:37:41.000Z | 2022-03-09T21:35:56.000Z | Chapter06/decorator/decorator5.py | MichaelRW/Python-for-Geeks | a111f61f1a0b077fc0524431e1ccefd9214d5c53 | [
"MIT"
] | null | null | null | Chapter06/decorator/decorator5.py | MichaelRW/Python-for-Geeks | a111f61f1a0b077fc0524431e1ccefd9214d5c53 | [
"MIT"
] | 21 | 2020-08-10T22:37:44.000Z | 2022-03-07T07:26:28.000Z | # decorator5.py
from datetime import datetime
from functools import wraps
def add_timestamp(func):
@wraps(func)
def inner_func(*args, **kwargs):
res = "{}: {}\n".format(datetime.now(), func(*args, **kwargs))
return res
return inner_func
def file(func):
@wraps(func)
def inner_func(*... | 20.510638 | 70 | 0.633817 | 136 | 964 | 4.419118 | 0.294118 | 0.08985 | 0.139767 | 0.079867 | 0.445923 | 0.445923 | 0.236273 | 0.236273 | 0.236273 | 0.173045 | 0 | 0.006849 | 0.242739 | 964 | 47 | 71 | 20.510638 | 0.816438 | 0.013485 | 0 | 0.615385 | 0 | 0 | 0.138947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.051282 | 0.076923 | 0.512821 | 0.025641 | 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 | 0 | 1 | 0 | 0 | 2 |
36569c7eef0a283fbb528e86e9fc8c0d5181f451 | 1,360 | py | Python | Array/Pascal's Triangle 1&2.py | shua2018ti/Google | 3a9847e0c60d887d15eb4b0d4d8ebf51e464df1b | [
"MIT"
] | 87 | 2015-07-15T20:41:09.000Z | 2022-03-08T13:55:38.000Z | Array/Pascal's Triangle 1&2.py | shua2018ti/Google | 3a9847e0c60d887d15eb4b0d4d8ebf51e464df1b | [
"MIT"
] | 59 | 2015-03-19T22:26:41.000Z | 2015-07-25T17:58:08.000Z | Array/Pascal's Triangle 1&2.py | shua2018ti/Google | 3a9847e0c60d887d15eb4b0d4d8ebf51e464df1b | [
"MIT"
] | 45 | 2015-07-15T20:41:12.000Z | 2022-02-01T20:18:07.000Z | I)
Given numRows, generate the first numRows of Pascal's triangle.
For example, given numRows = 5,
Return
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
def generate(self, numRows):
result = []
for i in xrange(numRows):
result.append([1]*(i+1))
if i > 1... | 25.185185 | 68 | 0.495588 | 201 | 1,360 | 3.353234 | 0.288557 | 0.029674 | 0.047478 | 0.053412 | 0.382789 | 0.347181 | 0.179525 | 0.179525 | 0.179525 | 0.179525 | 0 | 0.049711 | 0.363971 | 1,360 | 53 | 69 | 25.660377 | 0.72948 | 0 | 0 | 0.363636 | 1 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
365f79c0e79e74c810245d329b9eea52ebaaf86d | 2,833 | py | Python | upgs/usage_page.py | tolysz/ghid | 16dcbcc753df5081f15b3d97bb2bcd3f8eadfb34 | [
"BSD-3-Clause"
] | 1 | 2020-03-10T04:35:00.000Z | 2020-03-10T04:35:00.000Z | upgs/usage_page.py | tolysz/ghid | 16dcbcc753df5081f15b3d97bb2bcd3f8eadfb34 | [
"BSD-3-Clause"
] | null | null | null | upgs/usage_page.py | tolysz/ghid | 16dcbcc753df5081f15b3d97bb2bcd3f8eadfb34 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import os
import re
was = False
def upg():
inFile = open ("all.up", "r" )
print "module Hid.UPG where"
print "import Hid.HTypes\n"
print "toPageName :: Int -> String"
print "toPageName i"
line = inFile.readline().strip()
while (line != ""):
ll = line.split("\t")
... | 34.54878 | 109 | 0.511472 | 392 | 2,833 | 3.691327 | 0.326531 | 0.136835 | 0.132688 | 0.014513 | 0.067726 | 0.053905 | 0.026261 | 0.026261 | 0.026261 | 0 | 0 | 0.028736 | 0.262972 | 2,833 | 81 | 110 | 34.975309 | 0.664272 | 0.00706 | 0 | 0.054795 | 0 | 0.027397 | 0.466216 | 0 | 0 | 0 | 0.023471 | 0 | 0 | 0 | null | null | 0 | 0.041096 | null | null | 0.424658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
366af50bc79dc443830837a1747090e1e81d0f3a | 7,041 | py | Python | test/unit/pcse_feedback/test_pcse_feedback_failure.py | NHSDigital/list-reconciliation | 37b1ebe99a64275e23b0e7fb6a89415b92d14306 | [
"MIT"
] | 4 | 2021-06-25T08:28:54.000Z | 2021-12-16T11:03:42.000Z | test/unit/pcse_feedback/test_pcse_feedback_failure.py | NHSDigital/list-reconciliation | 37b1ebe99a64275e23b0e7fb6a89415b92d14306 | [
"MIT"
] | 184 | 2021-06-24T15:27:08.000Z | 2022-03-17T12:44:28.000Z | test/unit/pcse_feedback/test_pcse_feedback_failure.py | NHSDigital/list-reconciliation | 37b1ebe99a64275e23b0e7fb6a89415b92d14306 | [
"MIT"
] | 3 | 2021-11-05T10:21:44.000Z | 2022-03-04T14:29:24.000Z | import json
import boto3
import pytest
from freezegun import freeze_time
from lr_logging.exceptions import FeedbackLogError
from .conftest import FAILED_FILE, JOB_ID, LOG_FILE, MOCK_BUCKET, MOCK_OUTBOX
def test_pcse_feedback_handler_invalid_event_raises_key_error(
lambda_handler, lambda_context
):
event = {... | 42.932927 | 181 | 0.692373 | 1,055 | 7,041 | 4.468246 | 0.2 | 0.009334 | 0.017819 | 0.044548 | 0.726347 | 0.710437 | 0.68689 | 0.68689 | 0.669495 | 0.669495 | 0 | 0.036997 | 0.216873 | 7,041 | 163 | 182 | 43.196319 | 0.813928 | 0.016333 | 0 | 0.648855 | 0 | 0.10687 | 0.497616 | 0.006068 | 0 | 0 | 0 | 0 | 0.099237 | 1 | 0.038168 | false | 0 | 0.045802 | 0 | 0.083969 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
366c0f344055aba57b37d2a27efca5f47cf7f3e6 | 880 | py | Python | load_balancer.py | sarveshbhatnagar/CompetetiveProgramming | 09ff483eb17c3292c9b7fa03e622a240406ce8ca | [
"MIT"
] | null | null | null | load_balancer.py | sarveshbhatnagar/CompetetiveProgramming | 09ff483eb17c3292c9b7fa03e622a240406ce8ca | [
"MIT"
] | null | null | null | load_balancer.py | sarveshbhatnagar/CompetetiveProgramming | 09ff483eb17c3292c9b7fa03e622a240406ce8ca | [
"MIT"
] | null | null | null |
# TODO Remaining...
from collections import deque
class Solution:
def balance_load(self, arr):
i = 0
j = len(arr) - 1
if(len(arr) < 5):
return False
isum = arr[i]
jsum = arr[j]
indeqi = None
indeqj = None
while i < j:
if(is... | 19.555556 | 47 | 0.380682 | 99 | 880 | 3.363636 | 0.373737 | 0.048048 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039443 | 0.510227 | 880 | 44 | 48 | 20 | 0.733179 | 0.019318 | 0 | 0.28125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.03125 | false | 0 | 0.03125 | 0 | 0.1875 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3676002236e8c58d9499b317bd2bd6cd3cf21b21 | 5,710 | py | Python | tests/conftest.py | itsraina/thumbor | 1784b200107225581379f06eb688bbe681d6fe64 | [
"MIT"
] | null | null | null | tests/conftest.py | itsraina/thumbor | 1784b200107225581379f06eb688bbe681d6fe64 | [
"MIT"
] | 2 | 2022-03-17T06:53:16.000Z | 2022-03-31T19:42:00.000Z | tests/conftest.py | Mu-L/thumbor | 1784b200107225581379f06eb688bbe681d6fe64 | [
"MIT"
] | null | null | null | # content of conftest.py
# pylint: disable=unused-import
import pytest
import tests.base # NOQA
@pytest.fixture
def doctor_output():
return """Using configuration file found at ./tests/invalid-thumbor.conf
Thumbor doctor will analyze your install and verify if everything is working as expected.
Verifying li... | 26.435185 | 152 | 0.749737 | 789 | 5,710 | 5.423321 | 0.263625 | 0.04487 | 0.056088 | 0.100958 | 0.643842 | 0.547324 | 0.466464 | 0.373452 | 0.29119 | 0.247721 | 0 | 0 | 0.186515 | 5,710 | 215 | 153 | 26.55814 | 0.906136 | 0.009982 | 0 | 0.518987 | 0 | 0.025316 | 0.971145 | 0.192423 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012658 | true | 0 | 0.164557 | 0.012658 | 0.189873 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
36854a36879365b0a745999e0b5e9abe26dac3d8 | 551 | py | Python | LeetCode/Python/Easy/DefangIP.py | alui07/Technical-Interview | aee7a28f18ebdb4c38f9fd56662df9bdf0930c5c | [
"MIT"
] | null | null | null | LeetCode/Python/Easy/DefangIP.py | alui07/Technical-Interview | aee7a28f18ebdb4c38f9fd56662df9bdf0930c5c | [
"MIT"
] | null | null | null | LeetCode/Python/Easy/DefangIP.py | alui07/Technical-Interview | aee7a28f18ebdb4c38f9fd56662df9bdf0930c5c | [
"MIT"
] | null | null | null | """ 1108. Defanging an IP Address
Given a valid (IPv4) IP address, return a defanged version of that IP address.
A defanged IP address replaces every period "." with "[.]".
Example 1:
Input: address = "1.1.1.1"
Output: "1[.]1[.]1[.]1"
Example 2:
Input: address = "255.100.50.0"
Output: "255[.]100[.]50[.]0"
Con... | 19.678571 | 78 | 0.6098 | 77 | 551 | 4.363636 | 0.519481 | 0.035714 | 0.035714 | 0.02381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079625 | 0.225045 | 551 | 28 | 79 | 19.678571 | 0.70726 | 0.725953 | 0 | 0 | 0 | 0 | 0.035398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3687a3ce325e0e42802333c519e23431b716a644 | 711 | py | Python | shards/base.py | blandfort/mirror | 70ae41fd151275d42506d07117aa2ea3ce59ad23 | [
"MIT"
] | null | null | null | shards/base.py | blandfort/mirror | 70ae41fd151275d42506d07117aa2ea3ce59ad23 | [
"MIT"
] | 6 | 2020-11-06T22:40:05.000Z | 2022-03-12T00:51:06.000Z | shards/base.py | blandfort/mirror | 70ae41fd151275d42506d07117aa2ea3ce59ad23 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class Shard(ABC):
"""Shards are components of a Mirror.
Initialize one to catch and reflect particular Rays of Behavior."""
def __init__(self):
self.memory = None
self.state = None
@abstractmethod
def reflect(self, rays: dict):
"""Upda... | 25.392857 | 71 | 0.613221 | 92 | 711 | 4.663043 | 0.445652 | 0.11655 | 0.062937 | 0.065268 | 0.097902 | 0.097902 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295359 | 711 | 27 | 72 | 26.333333 | 0.856287 | 0.232068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.0625 | 0.0625 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
368e7181c8fedeb9db998164d47b16e3e2739760 | 526 | py | Python | tests/unit/altimeter/qj/schemas/test_result_set.py | AmOr1984v02/altimeter | 4adcf8d759b1f3f615b00521cc1756c8007e04f3 | [
"MIT"
] | null | null | null | tests/unit/altimeter/qj/schemas/test_result_set.py | AmOr1984v02/altimeter | 4adcf8d759b1f3f615b00521cc1756c8007e04f3 | [
"MIT"
] | null | null | null | tests/unit/altimeter/qj/schemas/test_result_set.py | AmOr1984v02/altimeter | 4adcf8d759b1f3f615b00521cc1756c8007e04f3 | [
"MIT"
] | null | null | null | import os
from unittest import mock, TestCase
from altimeter.qj.schemas.result_set import Result
@mock.patch.dict(os.environ, {"REGION": "us-west-2"})
class TestResultAccountIdValidators(TestCase):
def test_result_account_id_zero_fill(self):
result = Result(account_id="1234", result={"foo": "boo"})
... | 32.875 | 65 | 0.71673 | 68 | 526 | 5.338235 | 0.558824 | 0.179063 | 0.206612 | 0.110193 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038117 | 0.152091 | 526 | 15 | 66 | 35.066667 | 0.775785 | 0 | 0 | 0 | 0 | 0 | 0.089354 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
369241468509efd19d9c0ae0e7789a0d2ba26bb7 | 1,918 | py | Python | python/tests/test_dump.py | JX7P/libucl | d1cf4e9783fa96b9399f6585e2dc9a42e4d64746 | [
"BSD-2-Clause"
] | 1,301 | 2015-01-01T10:42:07.000Z | 2022-03-21T08:00:14.000Z | python/tests/test_dump.py | JX7P/libucl | d1cf4e9783fa96b9399f6585e2dc9a42e4d64746 | [
"BSD-2-Clause"
] | 137 | 2015-01-04T18:15:11.000Z | 2022-03-21T20:46:58.000Z | python/tests/test_dump.py | JX7P/libucl | d1cf4e9783fa96b9399f6585e2dc9a42e4d64746 | [
"BSD-2-Clause"
] | 161 | 2015-01-04T14:15:23.000Z | 2022-03-20T04:11:01.000Z | from .compat import unittest
import ucl
import sys
class DumpTest(unittest.TestCase):
def test_no_args(self):
with self.assertRaises(TypeError):
ucl.dump()
def test_none(self):
self.assertEqual(ucl.dump(None), None)
def test_null(self):
data = { "a" : None }
va... | 28.626866 | 74 | 0.493222 | 254 | 1,918 | 3.649606 | 0.212598 | 0.090615 | 0.174757 | 0.213592 | 0.420712 | 0.364617 | 0.299892 | 0.299892 | 0.299892 | 0.134844 | 0 | 0.020833 | 0.324296 | 1,918 | 66 | 75 | 29.060606 | 0.694444 | 0 | 0 | 0.166667 | 0 | 0 | 0.140772 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.055556 | 0 | 0.296296 | 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 | 0 | 0 | 0 | 2 |
36947bd4e9b4aab6c79559a7b8845fbed6ddf105 | 8,022 | py | Python | plugins/misp/komand_misp/actions/create_an_event/schema.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 46 | 2019-06-05T20:47:58.000Z | 2022-03-29T10:18:01.000Z | plugins/misp/komand_misp/actions/create_an_event/schema.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 386 | 2019-06-07T20:20:39.000Z | 2022-03-30T17:35:01.000Z | plugins/misp/komand_misp/actions/create_an_event/schema.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 43 | 2019-07-09T14:13:58.000Z | 2022-03-28T12:04:46.000Z | # GENERATED BY KOMAND SDK - DO NOT EDIT
import komand
import json
class Component:
DESCRIPTION = "Create a MISP event"
class Input:
ANALYSIS = "analysis"
DISTRIBUTION = "distribution"
INFO = "info"
ORG_ID = "org_id"
ORGC_ID = "orgc_id"
PUBLISHED = "published"
SHARING_GROUP_ID = "shar... | 22.597183 | 57 | 0.475692 | 673 | 8,022 | 5.534918 | 0.170877 | 0.085906 | 0.128859 | 0.059329 | 0.444564 | 0.422013 | 0.294765 | 0.191141 | 0.132081 | 0.132081 | 0 | 0.012027 | 0.347046 | 8,022 | 354 | 58 | 22.661017 | 0.699122 | 0.004612 | 0 | 0.492669 | 1 | 0 | 0.875861 | 0.01165 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005865 | false | 0 | 0.008798 | 0 | 0.120235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
36a5e050e79248a4fd2c2febe2b45e536d24bbf5 | 94 | py | Python | cxphasing/__main__.py | jbgastineau/cxphasing | a9847a0afb9a981d81f027e75c06c9bb2b531d33 | [
"MIT"
] | 3 | 2018-05-11T16:05:55.000Z | 2021-12-20T08:52:02.000Z | cxphasing/__main__.py | jbgastineau/cxphasing | a9847a0afb9a981d81f027e75c06c9bb2b531d33 | [
"MIT"
] | null | null | null | cxphasing/__main__.py | jbgastineau/cxphasing | a9847a0afb9a981d81f027e75c06c9bb2b531d33 | [
"MIT"
] | 2 | 2018-11-14T08:57:10.000Z | 2021-12-20T08:52:06.000Z | from CXPhasing import CXPhasing
if __name__=='__main__':
cxp = CXPhasing()
cxp.run()
| 15.666667 | 31 | 0.680851 | 11 | 94 | 5.090909 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202128 | 94 | 5 | 32 | 18.8 | 0.746667 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
36aee238485da94118d8b71f621f78795ac1612b | 231 | py | Python | __about__.py | deepettas/contact-tree | 547ee1055b6aa91b37a8621160c66f56ea76b81b | [
"MIT"
] | 1 | 2021-07-15T21:57:20.000Z | 2021-07-15T21:57:20.000Z | __about__.py | deepettas/contact-tree | 547ee1055b6aa91b37a8621160c66f56ea76b81b | [
"MIT"
] | null | null | null | __about__.py | deepettas/contact-tree | 547ee1055b6aa91b37a8621160c66f56ea76b81b | [
"MIT"
] | null | null | null | __title__ = 'contactTree-api'
__package_name = 'contactTree-api'
__version__ = '0.1.0'
__description__ = ''
__author__ = 'Dionisis Pettas'
__email__ = ''
__github__ = 'https://github.com/deepettas/contact-tree'
__licence__ = 'MIT' | 28.875 | 57 | 0.74026 | 25 | 231 | 5.6 | 0.84 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014563 | 0.108225 | 231 | 8 | 58 | 28.875 | 0.665049 | 0 | 0 | 0 | 0 | 0 | 0.405172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
36b566ab6bbae7bdbdf8163cdb941864ce64ab51 | 74 | py | Python | examples/testWhile2.py | VictorVaquero/geneticPendulum | 60e20ec8148d4949ae3b3e1597433763498cd2e5 | [
"MIT"
] | null | null | null | examples/testWhile2.py | VictorVaquero/geneticPendulum | 60e20ec8148d4949ae3b3e1597433763498cd2e5 | [
"MIT"
] | null | null | null | examples/testWhile2.py | VictorVaquero/geneticPendulum | 60e20ec8148d4949ae3b3e1597433763498cd2e5 | [
"MIT"
] | null | null | null | i = 4 # variation on testWhile.py
while (i < 9):
i = i+2
print(i)
| 14.8 | 33 | 0.540541 | 14 | 74 | 2.857143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.310811 | 74 | 4 | 34 | 18.5 | 0.72549 | 0.337838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
36c1c8cdaf9aadda5b794a3c5945b32102a70e71 | 357 | py | Python | server/users/api/serializers.py | FranciscoJavierMartin/iCard | 13193a26aec4fc57351be522ebd68018cb79f927 | [
"MIT"
] | null | null | null | server/users/api/serializers.py | FranciscoJavierMartin/iCard | 13193a26aec4fc57351be522ebd68018cb79f927 | [
"MIT"
] | null | null | null | server/users/api/serializers.py | FranciscoJavierMartin/iCard | 13193a26aec4fc57351be522ebd68018cb79f927 | [
"MIT"
] | null | null | null | from django.db import models
from django.db.models import fields
from rest_framework import serializers
from users.models import User
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ['id', 'username', 'email',
'first_name', 'last_name', 'is_ac... | 27.461538 | 57 | 0.655462 | 41 | 357 | 5.585366 | 0.609756 | 0.087336 | 0.104803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252101 | 357 | 12 | 58 | 29.75 | 0.857678 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
36f8848787ec0070faabf3a1c534532ca5cb5e40 | 1,451 | py | Python | 0 - Preparation/Seup Machine Learning Environment.py | raktim-mondol/DeepLearningCamelyon | 443fc5d17f577b99fc3b17cc1adc7000ccab642e | [
"CC0-1.0"
] | 70 | 2018-12-14T07:16:41.000Z | 2022-02-03T07:40:23.000Z | 0 - Preparation/Seup Machine Learning Environment.py | raktim-mondol/DeepLearningCamelyon | 443fc5d17f577b99fc3b17cc1adc7000ccab642e | [
"CC0-1.0"
] | null | null | null | 0 - Preparation/Seup Machine Learning Environment.py | raktim-mondol/DeepLearningCamelyon | 443fc5d17f577b99fc3b17cc1adc7000ccab642e | [
"CC0-1.0"
] | 24 | 2019-02-18T16:21:25.000Z | 2022-03-06T15:39:45.000Z | absl-py==0.2.2
astor==0.6.2
backcall==0.1.0
bleach==1.5.0
cloudpickle==0.5.3
cycler==0.10.0
Cython==0.28.3
dask==0.17.5
decorator==4.3.0
entrypoints==0.2.3
future==0.16.0
gast==0.2.0
grpcio==1.12.1
h5py==2.8.0
html5lib==0.9999999
ipykernel==4.8.2
ipython==6.4.0
ipython-genutils==0.2.0
ipywidgets==7.2.1
jedi==0.12.0
Jin... | 16.678161 | 26 | 0.698139 | 352 | 1,451 | 2.877841 | 0.318182 | 0.021718 | 0.008885 | 0.025666 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208059 | 0.059269 | 1,451 | 86 | 27 | 16.872093 | 0.534066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7fca4f33c804cc77f988df92355f78a267003819 | 123 | py | Python | nesc_coo/__init__.py | Auto-ML/nesc-coo | 0cdca5b701b0a4a22c50b852954b8a9330c55297 | [
"MIT"
] | null | null | null | nesc_coo/__init__.py | Auto-ML/nesc-coo | 0cdca5b701b0a4a22c50b852954b8a9330c55297 | [
"MIT"
] | null | null | null | nesc_coo/__init__.py | Auto-ML/nesc-coo | 0cdca5b701b0a4a22c50b852954b8a9330c55297 | [
"MIT"
] | null | null | null | """Top-level package for nesc-coo."""
__author__ = """Betterme"""
__email__ = 'yuanjie@example.com'
__version__ = '0.0.0'
| 20.5 | 37 | 0.674797 | 16 | 123 | 4.4375 | 0.875 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0.113821 | 123 | 5 | 38 | 24.6 | 0.623853 | 0.252033 | 0 | 0 | 0 | 0 | 0.372093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7fcfce4935ea87adf3e111c29624a08ed0a38af3 | 4,714 | py | Python | bmw_solver_qprogmods/ip_utils.py | iitis/bmw_vehicle_opt | 905aa8a996783134a26a1e0d596ce2569561ec1f | [
"MIT"
] | null | null | null | bmw_solver_qprogmods/ip_utils.py | iitis/bmw_vehicle_opt | 905aa8a996783134a26a1e0d596ce2569561ec1f | [
"MIT"
] | null | null | null | bmw_solver_qprogmods/ip_utils.py | iitis/bmw_vehicle_opt | 905aa8a996783134a26a1e0d596ce2569561ec1f | [
"MIT"
] | null | null | null | import dimod
import pyqubo
# from dimod import Bin
from dimod import BinaryQuadraticModel
from pyqubo.integer.log_encoded_integer import LogEncInteger
################################################################
############### BQM up to penalty parameters ###################
######################################... | 31.218543 | 114 | 0.570641 | 593 | 4,714 | 4.315346 | 0.198988 | 0.023447 | 0.038296 | 0.010942 | 0.368113 | 0.325518 | 0.312231 | 0.312231 | 0.312231 | 0.312231 | 0 | 0.005188 | 0.223165 | 4,714 | 150 | 115 | 31.426667 | 0.69361 | 0.051124 | 0 | 0.23913 | 0 | 0 | 0.079594 | 0.025349 | 0 | 0 | 0 | 0 | 0.054348 | 1 | 0.206522 | false | 0 | 0.054348 | 0.076087 | 0.521739 | 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 | 0 | 1 | 0 | 0 | 2 |
7fd63b378a43d27dedea4c851ce68973e5d82d37 | 297 | py | Python | docs/user_guide/operation/scripts/examples/argus/extraction/jan_air_x1.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 31 | 2016-03-07T02:38:17.000Z | 2022-02-14T18:23:43.000Z | docs/user_guide/operation/scripts/examples/argus/extraction/jan_air_x1.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 1,626 | 2015-01-07T04:52:35.000Z | 2022-03-25T19:15:59.000Z | docs/user_guide/operation/scripts/examples/argus/extraction/jan_air_x1.py | UIllinoisHALPychron/pychron | f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc | [
"Apache-2.0"
] | 26 | 2015-05-23T00:10:06.000Z | 2022-03-07T16:51:57.000Z | '''
modifier: 01
eqtime: 25
'''
def main():
info('Jan Air Script x1')
gosub('jan:WaitForMiniboneAccess')
gosub('jan:PrepareForAirShot')
gosub('jan:EvacPipette2')
gosub('common:FillPipette2')
gosub('jan:PrepareForAirShotExpansion')
gosub('common:ExpandPipette2')
| 19.8 | 43 | 0.670034 | 29 | 297 | 6.862069 | 0.655172 | 0.160804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.178451 | 297 | 15 | 44 | 19.8 | 0.782787 | 0.077441 | 0 | 0 | 0 | 0 | 0.558052 | 0.363296 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
7fecd6871231544d140170ebd5020501a525d2a6 | 3,694 | py | Python | user_profiles/migrations/0004_auto_20170713_0303.py | Oswaldinho24k/geo-csv | 0100435c5d5a5fd12133b376b305e8fa79ddb8f0 | [
"MIT"
] | null | null | null | user_profiles/migrations/0004_auto_20170713_0303.py | Oswaldinho24k/geo-csv | 0100435c5d5a5fd12133b376b305e8fa79ddb8f0 | [
"MIT"
] | null | null | null | user_profiles/migrations/0004_auto_20170713_0303.py | Oswaldinho24k/geo-csv | 0100435c5d5a5fd12133b376b305e8fa79ddb8f0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-13 03:03
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_profiles', '0003_auto_20170705_1549'),
]
operati... | 42.45977 | 313 | 0.6183 | 390 | 3,694 | 5.676923 | 0.269231 | 0.113821 | 0.145438 | 0.170732 | 0.694219 | 0.68112 | 0.664408 | 0.610208 | 0.511743 | 0.408762 | 0 | 0.031444 | 0.25961 | 3,694 | 86 | 314 | 42.953488 | 0.778062 | 0.018408 | 0 | 0.531646 | 1 | 0.012658 | 0.253105 | 0.043334 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037975 | 0 | 0.075949 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3d007fec50fe06883a057aa067c02a33ad638122 | 941 | py | Python | NER/test.py | UWPRG/BETO2020 | 55b5b329395da79047e9083232101d15af9f2c49 | [
"MIT"
] | 4 | 2020-03-04T21:08:11.000Z | 2020-10-28T11:28:00.000Z | NER/test.py | UWPRG/BETO2020 | 55b5b329395da79047e9083232101d15af9f2c49 | [
"MIT"
] | null | null | null | NER/test.py | UWPRG/BETO2020 | 55b5b329395da79047e9083232101d15af9f2c49 | [
"MIT"
] | 6 | 2019-04-15T16:51:16.000Z | 2019-11-13T02:45:53.000Z | import numpy as np
import pandas as pd
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import matplotlib
from matplotlib import pyplot as plt
import gensim
from gensim.models import Word2Vec
import random
torch.manual_seed(1)
# import package
import arch_blocks
impor... | 22.95122 | 112 | 0.793836 | 150 | 941 | 4.8 | 0.473333 | 0.061111 | 0.036111 | 0.083333 | 0.177778 | 0.130556 | 0.130556 | 0.130556 | 0 | 0 | 0 | 0.038415 | 0.114772 | 941 | 40 | 113 | 23.525 | 0.82593 | 0.054198 | 0 | 0 | 0 | 0 | 0.257336 | 0.190745 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.56 | 0 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
3d1483375e409fa6f1335ffc8e46a3b8bfc05b04 | 84 | py | Python | jsb/__init__.py | NURDspace/jsonbot | 400dce602700a93db80e10707c3785a0fbdfaaeb | [
"MIT"
] | 1 | 2019-04-12T12:20:12.000Z | 2019-04-12T12:20:12.000Z | jsb/__init__.py | Petraea/jsonbot | 04a3a0c586a8a1a3b0e5316d10cda16df9be415b | [
"MIT"
] | null | null | null | jsb/__init__.py | Petraea/jsonbot | 04a3a0c586a8a1a3b0e5316d10cda16df9be415b | [
"MIT"
] | 1 | 2020-05-06T18:46:53.000Z | 2020-05-06T18:46:53.000Z | kx__all__ = ["contrib", "db", "api", "drivers", "lib", "plugs", "utils", 'tornado']
| 42 | 83 | 0.571429 | 10 | 84 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 84 | 1 | 84 | 84 | 0.594595 | 0 | 0 | 0 | 0 | 0 | 0.464286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3d34ccc8428407cdeb5f098b5678529be577934d | 385 | py | Python | atest/testdata/test_libraries/background_logs.py | vasujammula/robotframework | 444ff6ddca2bef08cdb2977ab4de1c7d326f9f0f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | atest/testdata/test_libraries/background_logs.py | vasujammula/robotframework | 444ff6ddca2bef08cdb2977ab4de1c7d326f9f0f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | atest/testdata/test_libraries/background_logs.py | vasujammula/robotframework | 444ff6ddca2bef08cdb2977ab4de1c7d326f9f0f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | import threading
from robot.api.logger import BackgroundLogger
logger = BackgroundLogger()
def log_from_main(msg):
logger.info(msg)
def log_from_background(msg, thread=None):
t = threading.Thread(target=logger.info, args=(msg,))
if thread:
t.setName(thread)
t.start()
def log_background_m... | 18.333333 | 57 | 0.732468 | 51 | 385 | 5.372549 | 0.431373 | 0.065693 | 0.072993 | 0.19708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161039 | 385 | 20 | 58 | 19.25 | 0.848297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.416667 | 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 | 0 | 0 | 0 | 2 |
3d4209e8f0b5b16f5567967cc3b42724797f57d2 | 1,492 | py | Python | controllers/tests/camera_rotation.py | neuroailab/magnebot | 3f537fcd95685efeadf7200208a310a4c6a2f10c | [
"MIT"
] | null | null | null | controllers/tests/camera_rotation.py | neuroailab/magnebot | 3f537fcd95685efeadf7200208a310a4c6a2f10c | [
"MIT"
] | null | null | null | controllers/tests/camera_rotation.py | neuroailab/magnebot | 3f537fcd95685efeadf7200208a310a4c6a2f10c | [
"MIT"
] | null | null | null | import numpy as np
from magnebot import TestController, ActionStatus
"""
Test Magnebot camera rotation.
"""
if __name__ == "__main__":
m = TestController()
m.init_scene()
status = m.rotate_camera(roll=0, pitch=0, yaw=0)
# No rotation.
assert np.linalg.norm(m.camera_rpy) == 0
assert status == A... | 38.25641 | 99 | 0.676944 | 225 | 1,492 | 4.311111 | 0.2 | 0.129897 | 0.185567 | 0.107216 | 0.753608 | 0.685567 | 0.562887 | 0.503093 | 0.443299 | 0.329897 | 0 | 0.043874 | 0.190349 | 1,492 | 38 | 100 | 39.263158 | 0.759106 | 0.042895 | 0 | 0.423077 | 0 | 0 | 0.005789 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3d478da3972e674a25af46441221d79b90895316 | 2,724 | py | Python | ext/socket/mobile_WebSocketClient.py | dillionhacker/python222 | 205414c33fba8166167fd8a6a03eda1a68f16316 | [
"Apache-2.0"
] | 1 | 2022-03-17T13:55:02.000Z | 2022-03-17T13:55:02.000Z | ext/socket/mobile_WebSocketClient.py | tuankien2601/python222 | 205414c33fba8166167fd8a6a03eda1a68f16316 | [
"Apache-2.0"
] | null | null | null | ext/socket/mobile_WebSocketClient.py | tuankien2601/python222 | 205414c33fba8166167fd8a6a03eda1a68f16316 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2005 Nokia Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 24.990826 | 74 | 0.557269 | 336 | 2,724 | 4.494048 | 0.47619 | 0.055629 | 0.050993 | 0.045033 | 0.095364 | 0.04106 | 0.04106 | 0 | 0 | 0 | 0 | 0.031625 | 0.326725 | 2,724 | 108 | 75 | 25.222222 | 0.791712 | 0.493392 | 0 | 0.363636 | 0 | 0 | 0.086891 | 0 | 0 | 0 | 0.004494 | 0 | 0 | 0 | null | null | 0.072727 | 0.072727 | null | null | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
3d4f34a086e76570a855d9a0d9f841506e4162ba | 85 | py | Python | project_info/__init__.py | Sceptre/sceptre-cli | 69a6cc6554b208234fec5143124426df78ac7c68 | [
"Apache-2.0"
] | 1 | 2019-07-26T19:03:50.000Z | 2019-07-26T19:03:50.000Z | project_info/__init__.py | Sceptre/sceptre-cli | 69a6cc6554b208234fec5143124426df78ac7c68 | [
"Apache-2.0"
] | null | null | null | project_info/__init__.py | Sceptre/sceptre-cli | 69a6cc6554b208234fec5143124426df78ac7c68 | [
"Apache-2.0"
] | null | null | null | __version__ = '2.1.5'
__author__ = 'Cloudreach'
__email__ = 'sceptre@cloudreach.com'
| 21.25 | 36 | 0.741176 | 10 | 85 | 5.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 0.105882 | 85 | 3 | 37 | 28.333333 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0.435294 | 0.258824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3d4f398854da8b4f52bebcff2575f2da2fbb805f | 94 | py | Python | stakeholders/__init__.py | critical-path/stakeholders | 893030bff6067611aa96ab23977045adb7c771a9 | [
"MIT"
] | 4 | 2020-02-29T19:52:26.000Z | 2022-01-05T00:05:20.000Z | stakeholders/__init__.py | critical-path/stakeholders | 893030bff6067611aa96ab23977045adb7c771a9 | [
"MIT"
] | null | null | null | stakeholders/__init__.py | critical-path/stakeholders | 893030bff6067611aa96ab23977045adb7c771a9 | [
"MIT"
] | null | null | null | """
Manage stakeholders like a pro!
"""
__author__ = "critical-path"
__version__ = "0.1.6"
| 10.444444 | 31 | 0.659574 | 12 | 94 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.170213 | 94 | 8 | 32 | 11.75 | 0.653846 | 0.329787 | 0 | 0 | 0 | 0 | 0.327273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3d5b23eb524a3ab934525116b11ebb1655979181 | 117 | py | Python | jp.atcoder/abc081/abc081_a/8081201.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc081/abc081_a/8081201.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc081/abc081_a/8081201.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | ls = list(map(int, input().split()))
count = 0
for i in ls:
if ls[i] == 1:
count += 1
print(count)
| 16.714286 | 37 | 0.495726 | 20 | 117 | 2.9 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0375 | 0.316239 | 117 | 6 | 38 | 19.5 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 | 0 | 0 | 2 |
3d5ce65b668d46088eca0047d4ca1c76d064babc | 330 | py | Python | tests/scenarios/examples/test_echoext.py | ScriptAutomate/pytest-salt-factories | 192e15a7e93eec694f59099021a4d4268a1ab1ea | [
"Apache-2.0"
] | 13 | 2020-04-13T07:41:53.000Z | 2022-02-08T20:48:44.000Z | tests/scenarios/examples/test_echoext.py | ScriptAutomate/pytest-salt-factories | 192e15a7e93eec694f59099021a4d4268a1ab1ea | [
"Apache-2.0"
] | 97 | 2020-06-05T19:56:09.000Z | 2022-03-31T06:31:01.000Z | tests/scenarios/examples/test_echoext.py | ScriptAutomate/pytest-salt-factories | 192e15a7e93eec694f59099021a4d4268a1ab1ea | [
"Apache-2.0"
] | 12 | 2020-05-13T10:58:55.000Z | 2022-02-08T20:48:55.000Z | from saltfactories import CODE_ROOT_DIR
def test_echoext(extension_venv):
extension_path = CODE_ROOT_DIR.parent.parent / "examples" / "echo-extension"
with extension_venv(extension_path) as venv:
ret = venv.run(venv.venv_python, "-m", "pytest", str(extension_path), check=False)
assert ret.exit... | 36.666667 | 90 | 0.727273 | 45 | 330 | 5.088889 | 0.622222 | 0.170306 | 0.09607 | 0.227074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003623 | 0.163636 | 330 | 8 | 91 | 41.25 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3d5ff1f4e2e652aed7fda7076554f9ee5a06ae2c | 1,061 | py | Python | data/HubLogger.py | penguix0/lego-hub-tk | 7a8a26baf0b17400b89eccc5a6374f8d9daed32a | [
"MIT"
] | 16 | 2021-02-17T01:59:39.000Z | 2022-03-29T05:10:12.000Z | data/HubLogger.py | penguix0/lego-hub-tk | 7a8a26baf0b17400b89eccc5a6374f8d9daed32a | [
"MIT"
] | 15 | 2021-04-20T04:01:36.000Z | 2022-02-01T02:46:30.000Z | data/HubLogger.py | penguix0/lego-hub-tk | 7a8a26baf0b17400b89eccc5a6374f8d9daed32a | [
"MIT"
] | 9 | 2021-04-18T20:29:21.000Z | 2022-03-31T11:50:04.000Z | from abc import ABC, abstractmethod
import csv
class HubLogger(ABC):
"""Logs telemetry data from the LEGO Hub.
"""
def __init__(self) -> None:
self._csv_file = None
self._csv_writer = None
@abstractmethod
def program_runstatus_update(self, timestamp, program_id, is_running):
... | 27.205128 | 80 | 0.648445 | 136 | 1,061 | 4.794118 | 0.419118 | 0.107362 | 0.119632 | 0.052147 | 0.06135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258247 | 1,061 | 38 | 81 | 27.921053 | 0.828463 | 0.146089 | 0 | 0.24 | 0 | 0 | 0.001125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0.08 | 0.08 | 0.04 | 0.44 | 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 | 0 | 0 | 0 | 2 |
e9e80b9a87719d858b4feae6cbe0089a4b097d28 | 943 | py | Python | make_queue/migrations/0002_auto_20180408_1018.py | mahoyen/web | 1d190a86e3277315804bfcc0b8f9abd4f9c1d780 | [
"MIT"
] | 10 | 2017-11-25T01:47:20.000Z | 2020-03-24T18:28:24.000Z | make_queue/migrations/0002_auto_20180408_1018.py | mahoyen/web | 1d190a86e3277315804bfcc0b8f9abd4f9c1d780 | [
"MIT"
] | 319 | 2017-11-16T09:56:03.000Z | 2022-03-28T00:24:37.000Z | make_queue/migrations/0002_auto_20180408_1018.py | mahoyen/web | 1d190a86e3277315804bfcc0b8f9abd4f9c1d780 | [
"MIT"
] | 6 | 2017-11-12T14:04:08.000Z | 2021-03-10T09:41:18.000Z | # Generated by Django 2.0 on 2018-04-08 08:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('make_queue', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='reservation3d',
options={'permissio... | 29.46875 | 99 | 0.589608 | 83 | 943 | 6.554217 | 0.506024 | 0.051471 | 0.132353 | 0.161765 | 0.452206 | 0.452206 | 0.452206 | 0.452206 | 0.452206 | 0.264706 | 0 | 0.041481 | 0.284199 | 943 | 31 | 100 | 30.419355 | 0.764444 | 0.045599 | 0 | 0.56 | 1 | 0 | 0.242762 | 0.055679 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e9e939d91c0cf646821c5b83984dea21eb471165 | 614 | py | Python | Listhomwork4.py | gurmeetkhehra/python-practice | abeb5586f8c1e673fd8ff312a4ae0941f2a0194b | [
"Apache-2.0"
] | null | null | null | Listhomwork4.py | gurmeetkhehra/python-practice | abeb5586f8c1e673fd8ff312a4ae0941f2a0194b | [
"Apache-2.0"
] | null | null | null | Listhomwork4.py | gurmeetkhehra/python-practice | abeb5586f8c1e673fd8ff312a4ae0941f2a0194b | [
"Apache-2.0"
] | null | null | null | # 4. Write a Python program to check a list is empty or not. Take few lists with one of them empty.
fruits = ['apple', 'cherry', 'pear', 'lemon', 'banana']
fruits1 = []
fruits2 = ['mango', 'strawberry', 'peach']
# print (fruits[3])
# print (fruits[-2])
# print (fruits[1])
# #
# print (fruits[0])
# print (fruits)
#
# f... | 20.466667 | 99 | 0.653094 | 83 | 614 | 4.831325 | 0.433735 | 0.246883 | 0.127182 | 0.084788 | 0.426434 | 0.426434 | 0.426434 | 0.426434 | 0.426434 | 0.426434 | 0 | 0.018975 | 0.141694 | 614 | 29 | 100 | 21.172414 | 0.741935 | 0.408795 | 0 | 0.769231 | 0 | 0 | 0.254335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e9ed1a72bdd0d94c90ba2caaf7cd8c032e2d4187 | 973 | py | Python | tests/ops/test_jit.py | Capri2014/pyro | 546f9010aeb2308ae566726b1cec67a7b4fda9c2 | [
"MIT"
] | 10 | 2020-03-18T14:41:25.000Z | 2021-07-04T08:49:57.000Z | tests/ops/test_jit.py | Capri2014/pyro | 546f9010aeb2308ae566726b1cec67a7b4fda9c2 | [
"MIT"
] | 19 | 2018-10-30T13:45:31.000Z | 2019-09-27T14:16:57.000Z | tests/ops/test_jit.py | Capri2014/pyro | 546f9010aeb2308ae566726b1cec67a7b4fda9c2 | [
"MIT"
] | 5 | 2020-06-21T23:40:35.000Z | 2021-11-09T16:18:42.000Z | import torch
import pyro.ops.jit
from tests.common import assert_equal
def test_varying_len_args():
def fn(*args):
return sum(args)
jit_fn = pyro.ops.jit.trace(fn)
examples = [
[torch.tensor(1.)],
[torch.tensor(2.), torch.tensor(3.)],
[torch.tensor(4.), torch.tensor(5.),... | 22.627907 | 68 | 0.5889 | 148 | 973 | 3.75 | 0.25 | 0.158559 | 0.072072 | 0.064865 | 0.281081 | 0.21982 | 0.21982 | 0.18018 | 0.18018 | 0.18018 | 0 | 0.0271 | 0.241521 | 973 | 42 | 69 | 23.166667 | 0.724932 | 0 | 0 | 0.241379 | 0 | 0 | 0.005139 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.206897 | false | 0 | 0.103448 | 0.103448 | 0.413793 | 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 | 0 | 0 | 0 | 2 |
180d7b6b333fb84aaca321128ed244b59c3c49b1 | 256 | py | Python | pyvisdk/enums/host_unresolved_vmfs_extent_unresolved_reason.py | Infinidat/pyvisdk | f2f4e5f50da16f659ccc1d84b6a00f397fa997f8 | [
"MIT"
] | null | null | null | pyvisdk/enums/host_unresolved_vmfs_extent_unresolved_reason.py | Infinidat/pyvisdk | f2f4e5f50da16f659ccc1d84b6a00f397fa997f8 | [
"MIT"
] | null | null | null | pyvisdk/enums/host_unresolved_vmfs_extent_unresolved_reason.py | Infinidat/pyvisdk | f2f4e5f50da16f659ccc1d84b6a00f397fa997f8 | [
"MIT"
] | null | null | null |
########################################
# Automatically generated, do not edit.
########################################
from pyvisdk.thirdparty import Enum
HostUnresolvedVmfsExtentUnresolvedReason = Enum(
'diskIdMismatch',
'uuidConflict',
)
| 18.285714 | 48 | 0.515625 | 14 | 256 | 9.428571 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121094 | 256 | 13 | 49 | 19.692308 | 0.586667 | 0.144531 | 0 | 0 | 1 | 0 | 0.191176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
180ee57c0ee1e6aa69fdf3f2c62e8865931c1a96 | 189 | py | Python | ex013.py | natancordeiro/python | a4b82847640bd7d2f8ed9aff83a9afabe57bc37d | [
"MIT"
] | null | null | null | ex013.py | natancordeiro/python | a4b82847640bd7d2f8ed9aff83a9afabe57bc37d | [
"MIT"
] | null | null | null | ex013.py | natancordeiro/python | a4b82847640bd7d2f8ed9aff83a9afabe57bc37d | [
"MIT"
] | null | null | null | sal = float(input('Qual é o salário do funcionário? R$'))
ajuste = sal + (sal*15/100)
print('Um funcionário que ganhava R${}, com 15%de aumento, passa a receber R${}'.format(sal, ajuste))
| 37.8 | 101 | 0.68254 | 32 | 189 | 4.03125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.148148 | 189 | 4 | 102 | 47.25 | 0.757764 | 0 | 0 | 0 | 0 | 0 | 0.569149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
181f7217ddea12d5e9276ef780a88af4f906213a | 5,616 | py | Python | venv/Lib/site-packages/nipype/interfaces/afni/tests/test_auto_Qwarp.py | richung99/digitizePlots | 6b408c820660a415a289726e3223e8f558d3e18b | [
"MIT"
] | 585 | 2015-01-12T16:06:47.000Z | 2022-03-26T14:51:08.000Z | nipype/interfaces/afni/tests/test_auto_Qwarp.py | tamires-consulting/nipype | b7879d75a63b6500b2e7d2c3eba5aa7670339274 | [
"Apache-2.0"
] | 2,329 | 2015-01-01T09:56:41.000Z | 2022-03-30T14:24:49.000Z | nipype/interfaces/afni/tests/test_auto_Qwarp.py | tamires-consulting/nipype | b7879d75a63b6500b2e7d2c3eba5aa7670339274 | [
"Apache-2.0"
] | 487 | 2015-01-20T01:04:52.000Z | 2022-03-21T21:22:47.000Z | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ..preprocess import Qwarp
def test_Qwarp_inputs():
input_map = dict(
Qfinal=dict(
argstr="-Qfinal",
),
Qonly=dict(
argstr="-Qonly",
),
allineate=dict(
argstr="-allineate",
... | 24.311688 | 84 | 0.410613 | 454 | 5,616 | 5.022026 | 0.246696 | 0.210526 | 0.039474 | 0.042105 | 0.154386 | 0.105263 | 0.084211 | 0.048246 | 0.048246 | 0.048246 | 0 | 0.000632 | 0.436432 | 5,616 | 230 | 85 | 24.417391 | 0.719747 | 0.009081 | 0 | 0.367713 | 1 | 0 | 0.124393 | 0 | 0 | 0 | 0 | 0 | 0.008969 | 1 | 0.008969 | false | 0.004484 | 0.004484 | 0 | 0.013453 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1827e163870271445670b2c61d45c766778d104f | 459 | py | Python | tuprolog/solve/library/exception/__init__.py | DavideEva/2ppy | 55609415102f8116165a42c8e33e029c4906e160 | [
"Apache-2.0"
] | 1 | 2021-08-07T06:29:28.000Z | 2021-08-07T06:29:28.000Z | tuprolog/solve/library/exception/__init__.py | DavideEva/2ppy | 55609415102f8116165a42c8e33e029c4906e160 | [
"Apache-2.0"
] | 14 | 2021-09-16T13:25:12.000Z | 2022-01-03T10:12:22.000Z | tuprolog/solve/library/exception/__init__.py | DavideEva/2ppy | 55609415102f8116165a42c8e33e029c4906e160 | [
"Apache-2.0"
] | 1 | 2021-12-22T00:25:32.000Z | 2021-12-22T00:25:32.000Z | from tuprolog import logger
# noinspection PyUnresolvedReferences
import jpype.imports
# noinspection PyUnresolvedReferences
import it.unibo.tuprolog.solve.library.exception as _exception
AlreadyLoadedLibraryException = _exception.AlreadyLoadedLibraryException
LibraryException = _exception.LibraryException
NoSuchAL... | 28.6875 | 83 | 0.864924 | 41 | 459 | 9.585366 | 0.512195 | 0.173028 | 0.203562 | 0.101781 | 0.183206 | 0.183206 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 459 | 15 | 84 | 30.6 | 0.929078 | 0.154684 | 0 | 0 | 0 | 0 | 0.174026 | 0.111688 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1851734882dfa37cbe7070bcc0e2d22f935db6c5 | 3,294 | py | Python | work/NCS/look_for_smallet_file.py | youdar/work | d5f32015e7be1d58ede255eeadbd1d12acb3f270 | [
"MIT"
] | null | null | null | work/NCS/look_for_smallet_file.py | youdar/work | d5f32015e7be1d58ede255eeadbd1d12acb3f270 | [
"MIT"
] | null | null | null | work/NCS/look_for_smallet_file.py | youdar/work | d5f32015e7be1d58ede255eeadbd1d12acb3f270 | [
"MIT"
] | null | null | null | from __future__ import division
from iotbx.pdb.multimer_reconstruction import multimer
import os
def run():
pdb_dir = os.environ["PDB_MIRROR_PDB"]
pdb_files = open(os.path.join(pdb_dir, "INDEX"), "r").readlines()
pdb_code_list = [
'3p0s', '2wws', '2xpj', '2bfu', '3n7x', '2iz9', '1dwn', '1ei7','2wzr',
... | 42.779221 | 77 | 0.511536 | 413 | 3,294 | 3.985472 | 0.496368 | 0.021871 | 0.020049 | 0.015796 | 0.019441 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176054 | 0.186096 | 3,294 | 76 | 78 | 43.342105 | 0.437896 | 0 | 0 | 0.066667 | 0 | 0 | 0.374543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.1 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
18632d4a450f710b95483858330672dc09dc1c25 | 405 | py | Python | parts/app/tests/forms/tests_baseform.py | heljhumenad/parts-arrival | 96bc77f06c0f512614bf5c18cb2f0290860eb27c | [
"MIT"
] | 3 | 2021-06-05T01:54:55.000Z | 2021-12-10T15:57:12.000Z | parts/app/tests/forms/tests_baseform.py | heljhumenad/parts-arrival | 96bc77f06c0f512614bf5c18cb2f0290860eb27c | [
"MIT"
] | 2 | 2021-05-20T06:04:32.000Z | 2021-12-09T15:58:57.000Z | parts/app/tests/forms/tests_baseform.py | heljhumenad/parts-arrival | 96bc77f06c0f512614bf5c18cb2f0290860eb27c | [
"MIT"
] | null | null | null | from django import forms
from django.utils.translation import ugettext_lazy as _
from parts.app.forms import baseform
from parts.app.tests.base import TestCase
class TestBaseForm(TestCase):
def setUp(self):
super().setUp()
self._base_form = baseform.BaseForms()
def test_instance_for_base_fo... | 25.3125 | 74 | 0.748148 | 53 | 405 | 5.528302 | 0.528302 | 0.081911 | 0.081911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165432 | 405 | 15 | 75 | 27 | 0.866864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | null | null | 0 | 0.4 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
187978c32373a2aaa30b1bca3989140a4f9d068b | 2,291 | py | Python | dpkt/edp.py | Vito-Swift/dpkt | 9242f8d116b6e26d8f1d78a1b5f62f14b4dc8a37 | [
"BSD-3-Clause"
] | 924 | 2015-01-04T01:22:15.000Z | 2022-03-28T02:22:46.000Z | dpkt/edp.py | Vito-Swift/dpkt | 9242f8d116b6e26d8f1d78a1b5f62f14b4dc8a37 | [
"BSD-3-Clause"
] | 599 | 2015-01-02T18:06:52.000Z | 2022-03-29T16:00:17.000Z | dpkt/edp.py | Vito-Swift/dpkt | 9242f8d116b6e26d8f1d78a1b5f62f14b4dc8a37 | [
"BSD-3-Clause"
] | 299 | 2015-02-12T19:50:34.000Z | 2022-03-15T00:35:29.000Z | """Extreme Discovery Protocol."""
from __future__ import absolute_import
import dpkt
class EDP(dpkt.Packet):
__hdr__ = (
('version', 'B', 1),
('reserved', 'B', 0),
('hlen', 'H', 0),
('sum', 'H', 0),
('seq', 'H', 0),
('mid', 'H', 0),
('mac', '6s', b'')
)... | 29.371795 | 127 | 0.61196 | 199 | 2,291 | 6.889447 | 0.336683 | 0.040846 | 0.071481 | 0.076586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.394785 | 0.280227 | 2,291 | 77 | 128 | 29.753247 | 0.436628 | 0.057617 | 0 | 0.071429 | 0 | 0 | 0.323322 | 0.284374 | 0 | 0 | 0 | 0 | 0.178571 | 1 | 0.178571 | false | 0 | 0.053571 | 0 | 0.303571 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
43ffd2ac23562dd06e501528fab84ec33ab5bd21 | 251 | py | Python | blackmamba/lib/future/moves/subprocess.py | oz90210/blackmamba | 65c82c8e99028d6fbb57098ce82d0a394df215a0 | [
"MIT"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | blackmamba/lib/future/moves/subprocess.py | oz90210/blackmamba | 65c82c8e99028d6fbb57098ce82d0a394df215a0 | [
"MIT"
] | 4,640 | 2015-07-08T16:19:08.000Z | 2019-12-02T15:01:27.000Z | blackmamba/lib/future/moves/subprocess.py | oz90210/blackmamba | 65c82c8e99028d6fbb57098ce82d0a394df215a0 | [
"MIT"
] | 698 | 2015-06-02T19:18:35.000Z | 2022-03-29T16:57:15.000Z | from __future__ import absolute_import
from future.utils import PY2, PY26
from subprocess import *
if PY2:
__future_module__ = True
from commands import getoutput, getstatusoutput
if PY26:
from future.backports.misc import check_output
| 20.916667 | 51 | 0.788845 | 33 | 251 | 5.666667 | 0.545455 | 0.160428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.175299 | 251 | 11 | 52 | 22.818182 | 0.874396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a10141dc432ceec566a8d56272d1d5ae5b41a623 | 505 | py | Python | basis_func_list.py | jun63x/sparse_coding | 335416cf6522e2436316cf4264f7955e31aa3711 | [
"MIT"
] | null | null | null | basis_func_list.py | jun63x/sparse_coding | 335416cf6522e2436316cf4264f7955e31aa3711 | [
"MIT"
] | null | null | null | basis_func_list.py | jun63x/sparse_coding | 335416cf6522e2436316cf4264f7955e31aa3711 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
from tqdm import tqdm
class BasisFuncList:
def __init__(self, basis_func_list):
self.basis_func_list = basis_func_list
def save(self, img_dir):
for i, func in tqdm(
enumerate(self.basis_func_list),
total=len(self.basis_func_list),
... | 25.25 | 56 | 0.532673 | 60 | 505 | 4.216667 | 0.566667 | 0.177866 | 0.256917 | 0.268775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009464 | 0.372277 | 505 | 19 | 57 | 26.578947 | 0.788644 | 0 | 0 | 0 | 0 | 0 | 0.031683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.3125 | 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 | 0 | 0 | 0 | 2 |
a101901d63cac01e20686867f5e4c28eefad4931 | 248 | py | Python | Midterm.py | anyrama/ITP27-Thuany | adec50eb6e6d56b84aeb1e022fcc75d2d11bbbf1 | [
"MIT"
] | null | null | null | Midterm.py | anyrama/ITP27-Thuany | adec50eb6e6d56b84aeb1e022fcc75d2d11bbbf1 | [
"MIT"
] | null | null | null | Midterm.py | anyrama/ITP27-Thuany | adec50eb6e6d56b84aeb1e022fcc75d2d11bbbf1 | [
"MIT"
] | null | null | null | def middle_element (lst):
if len(lst)%2 == 1
index1 = int(len(lst)/2-0.5)
indext2 = -(int(len(lst)/2))
median = (lst[index1]+ lst[index2])/2
return median
else:
index= int(len(lst)/2-0.5)
return lst[index]
print (middle_element([5,2,-4]))
| 17.714286 | 38 | 0.641129 | 46 | 248 | 3.413043 | 0.434783 | 0.152866 | 0.178344 | 0.191083 | 0.152866 | 0.152866 | 0 | 0 | 0 | 0 | 0 | 0.079812 | 0.141129 | 248 | 13 | 39 | 19.076923 | 0.657277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a10e373d97bceb919af6576b0abda3039ae4a0af | 1,063 | py | Python | pyclesperanto_prototype/_tier1/_standard_deviation_z_projection.py | DrLachie/pyclesperanto_prototype | 56843fac2543265c40f108fd40eac3ecf85c8458 | [
"BSD-3-Clause"
] | null | null | null | pyclesperanto_prototype/_tier1/_standard_deviation_z_projection.py | DrLachie/pyclesperanto_prototype | 56843fac2543265c40f108fd40eac3ecf85c8458 | [
"BSD-3-Clause"
] | null | null | null | pyclesperanto_prototype/_tier1/_standard_deviation_z_projection.py | DrLachie/pyclesperanto_prototype | 56843fac2543265c40f108fd40eac3ecf85c8458 | [
"BSD-3-Clause"
] | null | null | null | from .._tier0 import execute
from .._tier0 import plugin_function
from .._tier0 import Image
from .._tier0 import create_2d_yx
@plugin_function(output_creator=create_2d_yx, categories=['projection', 'in assistant'])
def standard_deviation_z_projection(source : Image, destination : Image = None) -> Image:
"""Determ... | 27.973684 | 158 | 0.682973 | 110 | 1,063 | 6.327273 | 0.518182 | 0.122126 | 0.086207 | 0.16092 | 0.097701 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009379 | 0.197554 | 1,063 | 37 | 159 | 28.72973 | 0.806565 | 0.380997 | 0 | 0 | 0 | 0 | 0.220666 | 0.171629 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | 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 | 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 | 2 |
a10fe695c245b6b71517b9d116c9f78d37c6e1a0 | 15,875 | py | Python | python/tvm/tir/op.py | Orion34C/incubator-tvm | 27a02844cb52e883a4a66da68a527590d76f7d01 | [
"Apache-2.0"
] | 1 | 2021-03-20T02:03:00.000Z | 2021-03-20T02:03:00.000Z | python/tvm/tir/op.py | Orion34C/incubator-tvm | 27a02844cb52e883a4a66da68a527590d76f7d01 | [
"Apache-2.0"
] | null | null | null | python/tvm/tir/op.py | Orion34C/incubator-tvm | 27a02844cb52e883a4a66da68a527590d76f7d01 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 20.274585 | 92 | 0.590803 | 1,949 | 15,875 | 4.73217 | 0.180092 | 0.062019 | 0.053453 | 0.052044 | 0.563157 | 0.550472 | 0.534642 | 0.499729 | 0.483357 | 0.462973 | 0 | 0.001969 | 0.296315 | 15,875 | 782 | 93 | 20.300512 | 0.823651 | 0.607055 | 0 | 0.080357 | 0 | 0 | 0.070826 | 0.016182 | 0 | 0 | 0 | 0 | 0.017857 | 1 | 0.348214 | false | 0 | 0.053571 | 0 | 0.741071 | 0.008929 | 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 | 0 | 1 | 0 | 0 | 2 |
a1162992adb95361d9b17e034c2ce24d8289c609 | 300 | py | Python | python/test/mx_test.py | ahmedezzat85/SNPX_ML | 7316b0d46d39d2335b3095527a3ac81be208928d | [
"Apache-2.0"
] | null | null | null | python/test/mx_test.py | ahmedezzat85/SNPX_ML | 7316b0d46d39d2335b3095527a3ac81be208928d | [
"Apache-2.0"
] | null | null | null | python/test/mx_test.py | ahmedezzat85/SNPX_ML | 7316b0d46d39d2335b3095527a3ac81be208928d | [
"Apache-2.0"
] | null | null | null | from snpx.snpx_mxnet import SNPXClassifier
import os
LOGS = os.path.join(os.path.dirname(__file__), "..", "log")
MODEL = os.path.join(os.path.dirname(__file__), "..", "model")
classif = SNPXClassifier("mini_vgg", "CIFAR-10", devices=['GPU'],logs_root=LOGS, model_bin_root=MODEL)
classif.train(1)
| 30 | 102 | 0.72 | 44 | 300 | 4.613636 | 0.545455 | 0.118227 | 0.098522 | 0.118227 | 0.26601 | 0.26601 | 0.26601 | 0 | 0 | 0 | 0 | 0.010989 | 0.09 | 300 | 9 | 103 | 33.333333 | 0.732601 | 0 | 0 | 0 | 0 | 0 | 0.103679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
a13b52cb662b96db5fbf0f3638f986b89d74b5e0 | 7,327 | py | Python | backend/app/alembic/versions/d11266229bcf_added_role_models_and_organization_model.py | saschajullmann/sedotra | aaa38f6d533daa725a7037a8c446da978ffafa7d | [
"MIT"
] | null | null | null | backend/app/alembic/versions/d11266229bcf_added_role_models_and_organization_model.py | saschajullmann/sedotra | aaa38f6d533daa725a7037a8c446da978ffafa7d | [
"MIT"
] | null | null | null | backend/app/alembic/versions/d11266229bcf_added_role_models_and_organization_model.py | saschajullmann/sedotra | aaa38f6d533daa725a7037a8c446da978ffafa7d | [
"MIT"
] | null | null | null | """added role models and organization model
Revision ID: d11266229bcf
Revises: e461feb811d5
Create Date: 2021-02-16 06:29:37.816314
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = 'd11266229bcf'
down_revision = 'e461feb... | 59.569106 | 113 | 0.71721 | 1,007 | 7,327 | 4.94141 | 0.089374 | 0.048232 | 0.041801 | 0.052251 | 0.796423 | 0.768891 | 0.732717 | 0.677452 | 0.590233 | 0.529341 | 0 | 0.008222 | 0.103589 | 7,327 | 122 | 114 | 60.057377 | 0.749391 | 0.043947 | 0 | 0.27619 | 0 | 0 | 0.299943 | 0.082377 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019048 | false | 0 | 0.028571 | 0 | 0.047619 | 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 | 0 | 0 | 0 | 2 |
a13d75afaa76f4267361778552df5cff9bb4fd25 | 865 | py | Python | tests/software_tests/message/test_nrc.py | mdabrowski1990/uds | 1aee0c1de446ee3dd461706949504f2c218db1e8 | [
"MIT"
] | 18 | 2021-03-28T22:39:18.000Z | 2022-02-13T21:50:37.000Z | tests/software_tests/message/test_nrc.py | mdabrowski1990/uds | 1aee0c1de446ee3dd461706949504f2c218db1e8 | [
"MIT"
] | 153 | 2021-02-09T09:27:05.000Z | 2022-03-29T06:09:15.000Z | tests/software_tests/message/test_nrc.py | mdabrowski1990/uds | 1aee0c1de446ee3dd461706949504f2c218db1e8 | [
"MIT"
] | 1 | 2021-05-13T16:01:46.000Z | 2021-05-13T16:01:46.000Z | import pytest
from uds.message.nrc import NRC, \
ByteEnum, ValidatedEnum, ExtendableEnum
class TestNRC:
"""Unit tests for 'NRC' enum"""
def test_inheritance__byte_enum(self):
assert issubclass(NRC, ByteEnum)
def test_inheritance__validated_enum(self):
assert issubclass(NRC, Validate... | 28.833333 | 124 | 0.753757 | 102 | 865 | 6.098039 | 0.431373 | 0.045016 | 0.086817 | 0.115756 | 0.23955 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01105 | 0.163006 | 865 | 29 | 125 | 29.827586 | 0.848066 | 0.067052 | 0 | 0 | 0 | 0 | 0.018844 | 0 | 0 | 0 | 0.020101 | 0 | 0.235294 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a13e0dc0e9454722eb5bed54d6520969a0591ba9 | 1,162 | py | Python | examples/models.py | Nielssie/django-funky-sheets | 4b62d6ccb3ab81524e5a18b7aa90fd6c4ecb458b | [
"MIT"
] | 82 | 2019-05-03T21:29:25.000Z | 2022-03-25T19:41:08.000Z | examples/models.py | Nielssie/django-funky-sheets | 4b62d6ccb3ab81524e5a18b7aa90fd6c4ecb458b | [
"MIT"
] | 12 | 2019-07-25T11:23:48.000Z | 2022-01-17T18:59:10.000Z | examples/models.py | Nielssie/django-funky-sheets | 4b62d6ccb3ab81524e5a18b7aa90fd6c4ecb458b | [
"MIT"
] | 22 | 2019-05-06T14:12:35.000Z | 2022-02-03T11:31:21.000Z | from django.db import models
class Genre(models.Model):
name = models.CharField(max_length=16, null=True)
def __str__(self):
return self.name
class Director(models.Model):
name = models.CharField(max_length=64, null=True)
def __str__(self):
return self.name
class Country(models.M... | 25.822222 | 80 | 0.701377 | 149 | 1,162 | 5.268456 | 0.38255 | 0.101911 | 0.09172 | 0.122293 | 0.438217 | 0.412739 | 0.338854 | 0.208917 | 0.208917 | 0.124841 | 0 | 0.010718 | 0.197074 | 1,162 | 44 | 81 | 26.409091 | 0.830654 | 0.061102 | 0 | 0.346154 | 0 | 0 | 0.008295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.038462 | 0.153846 | 0.961538 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
a153ceb14b7ecf2173c32898039312dcc2b0b974 | 374 | py | Python | pyne_xmas_elves/server/elves/game/consumers.py | pythonnortheast/xmas-elves | a8635520a7f17074b5e386c94160781122d84578 | [
"MIT"
] | null | null | null | pyne_xmas_elves/server/elves/game/consumers.py | pythonnortheast/xmas-elves | a8635520a7f17074b5e386c94160781122d84578 | [
"MIT"
] | 8 | 2017-12-19T22:53:25.000Z | 2022-03-03T22:24:51.000Z | pyne_xmas_elves/server/elves/game/consumers.py | pythonnortheast/xmas-elves | a8635520a7f17074b5e386c94160781122d84578 | [
"MIT"
] | 2 | 2017-12-16T14:06:16.000Z | 2017-12-16T15:14:42.000Z | """Websocket consumers.
"""
from channels import Group
def ws_connect(message):
# Add to reader group
Group("session").add(message.reply_channel)
# Accept the connection request
message.reply_channel.send({"accept": True})
def ws_disconnect(message):
# Remove from reader group on clean disconnec... | 23.375 | 51 | 0.727273 | 47 | 374 | 5.680851 | 0.574468 | 0.134831 | 0.213483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163102 | 374 | 15 | 52 | 24.933333 | 0.853035 | 0.31016 | 0 | 0 | 0 | 0 | 0.080321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a16632dd981894928abfdb6645f723cf9d4fc61c | 1,619 | py | Python | result_linker/api/home.py | akshayAithal/result_linker | 5dd051ef355f9e50c735cffbbf14e5f20f677699 | [
"Apache-2.0"
] | null | null | null | result_linker/api/home.py | akshayAithal/result_linker | 5dd051ef355f9e50c735cffbbf14e5f20f677699 | [
"Apache-2.0"
] | null | null | null | result_linker/api/home.py | akshayAithal/result_linker | 5dd051ef355f9e50c735cffbbf14e5f20f677699 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import Blueprint,redirect,url_for, session, jsonify, request
from result_linker.models import db
from result_linker.logger import logger
from result_linker.models.share import Share
home_blueprint = Blueprint("home", __name__)
@home_blueprint.route("/")
def i... | 31.745098 | 77 | 0.710315 | 222 | 1,619 | 4.981982 | 0.306306 | 0.082278 | 0.067812 | 0.072333 | 0.210669 | 0.210669 | 0.210669 | 0.210669 | 0.17179 | 0.17179 | 0 | 0.00293 | 0.156887 | 1,619 | 51 | 78 | 31.745098 | 0.807326 | 0.277949 | 0 | 0.103448 | 0 | 0 | 0.112762 | 0.019231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.310345 | 0 | 0.551724 | 0.172414 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a174999eb34e9f4d16f0f93ac659e46710f8e131 | 272 | py | Python | MultiSC/MultiServer/Exceptions/TestException.py | hvuhsg/MultiServer | 079f7be1b8fed4938e6003a81e2d03a8ea03ffd4 | [
"MIT"
] | 8 | 2019-05-25T21:17:07.000Z | 2020-10-18T11:46:12.000Z | MultiSC/MultiServer/Exceptions/TestException.py | hvuhsg/MultiServer | 079f7be1b8fed4938e6003a81e2d03a8ea03ffd4 | [
"MIT"
] | 1 | 2019-05-25T21:28:06.000Z | 2019-05-25T21:28:06.000Z | MultiSC/MultiServer/Exceptions/TestException.py | hvuhsg/MultiServer | 079f7be1b8fed4938e6003a81e2d03a8ea03ffd4 | [
"MIT"
] | null | null | null | from __config__.protocol_code_config import server_error
from .MainException import MainException
class TestException(MainException):
def __init__(self, msg=""):
self.level = 1
self.error_code = server_error
super().__init__(msg, self.level)
| 27.2 | 56 | 0.727941 | 32 | 272 | 5.65625 | 0.53125 | 0.121547 | 0.132597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004525 | 0.1875 | 272 | 9 | 57 | 30.222222 | 0.81448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a194e60de72711a9639b17b282b70325f7e86053 | 1,007 | py | Python | prettify.py | TechnoIris/python_Effizs | dd538a7a7d208571ac76a300e74a294210117c98 | [
"Apache-2.0"
] | null | null | null | prettify.py | TechnoIris/python_Effizs | dd538a7a7d208571ac76a300e74a294210117c98 | [
"Apache-2.0"
] | null | null | null | prettify.py | TechnoIris/python_Effizs | dd538a7a7d208571ac76a300e74a294210117c98 | [
"Apache-2.0"
] | null | null | null | import requests
from bs4 import BeautifulSoup
URL="https://www.flipkart.com/nova-prime-series-nht-1085-runtime-45-min-trimmer-men/p/itmenaz5kbhceffm?gclid=CjwKCAiAluLvBRASEiwAAbX3GQNX3ebUtqmybVDGfJVV6uOPB0f8gfztPYRQn5uHSEngrq3njdt6vhoCfBgQAvD_BwE&pid=SHVENAZ5AQNMDGYA&lid=LSTSHVENAZ5AQNMDGYAKNSAM4&marketplace=FLIPKART&... | 50.35 | 523 | 0.751738 | 121 | 1,007 | 6.181818 | 0.77686 | 0.240642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116842 | 0.056604 | 1,007 | 19 | 524 | 53 | 0.670526 | 0.092354 | 0 | 0 | 0 | 0.153846 | 0.706462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 0.153846 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a196771b53f313a763ab3f35dc60d9ff8121569c | 274 | py | Python | djpagan/czech/views.py | carthage-college/django-djpagan | bdc6f07e6822fb982b96fd68ea6b69d897b29b09 | [
"MIT"
] | null | null | null | djpagan/czech/views.py | carthage-college/django-djpagan | bdc6f07e6822fb982b96fd68ea6b69d897b29b09 | [
"MIT"
] | 8 | 2020-06-05T19:15:10.000Z | 2021-11-30T19:32:09.000Z | djpagan/czech/views.py | carthage-college/django-djpagan | bdc6f07e6822fb982b96fd68ea6b69d897b29b09 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.shortcuts import render
from djpagan.czech.forms import ReimbursementForm
def reimbursement(request):
form = ReimbursementForm()
return render(
request, 'czech/reimbursement/form.html', {'form': form,}
)
| 19.571429 | 65 | 0.729927 | 30 | 274 | 6.666667 | 0.566667 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178832 | 274 | 13 | 66 | 21.076923 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.120438 | 0.105839 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a196b22c81adcb2cad57af8b95fe26afe490ee2b | 2,894 | py | Python | sdk/customproviders/azure-mgmt-customproviders/azure/mgmt/customproviders/models/__init__.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/customproviders/azure-mgmt-customproviders/azure/mgmt/customproviders/models/__init__.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/customproviders/azure-mgmt-customproviders/azure/mgmt/customproviders/models/__init__.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 41.342857 | 94 | 0.729095 | 244 | 2,894 | 8.438525 | 0.290984 | 0.145702 | 0.094706 | 0.138417 | 0.176785 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006639 | 0.167243 | 2,894 | 69 | 95 | 41.942029 | 0.847718 | 0.223566 | 0 | 0 | 0 | 0 | 0.170414 | 0.098022 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.542373 | 0 | 0.542373 | 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 | 0 | 1 | 0 | 0 | 2 |
a1a3d0bd3886870f63587d8600ea58a8aa2fb569 | 182 | py | Python | autodidaqt/examples/minimal_app.py | chstan/autodiDAQt | a2f7aba78004e273ddca8efc5588e1b338b45a30 | [
"BSD-3-Clause-LBNL"
] | 1 | 2022-03-17T21:42:55.000Z | 2022-03-17T21:42:55.000Z | autodidaqt/examples/minimal_app.py | chstan/autodiDAQt | a2f7aba78004e273ddca8efc5588e1b338b45a30 | [
"BSD-3-Clause-LBNL"
] | null | null | null | autodidaqt/examples/minimal_app.py | chstan/autodiDAQt | a2f7aba78004e273ddca8efc5588e1b338b45a30 | [
"BSD-3-Clause-LBNL"
] | null | null | null | """
The absolute, bare minimum. Open an application with no panels.
"""
from autodidaqt import AutodiDAQt
app = AutodiDAQt(__name__, {})
if __name__ == "__main__":
app.start()
| 18.2 | 63 | 0.703297 | 22 | 182 | 5.272727 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17033 | 182 | 9 | 64 | 20.222222 | 0.768212 | 0.346154 | 0 | 0 | 0 | 0 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a1b323a50d9f387d3aa0e612b406d75a46b9b0bc | 671 | py | Python | bin/testgen.py | muh-bazm/eventgen | 96102e6f36a30a901f32892c7ff7eb3d5dc37130 | [
"Apache-2.0"
] | 3 | 2018-07-07T17:43:53.000Z | 2019-12-28T13:35:01.000Z | bin/testgen.py | muh-bazm/eventgen | 96102e6f36a30a901f32892c7ff7eb3d5dc37130 | [
"Apache-2.0"
] | null | null | null | bin/testgen.py | muh-bazm/eventgen | 96102e6f36a30a901f32892c7ff7eb3d5dc37130 | [
"Apache-2.0"
] | null | null | null | import sys
# while True:
# print '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111... | 26.84 | 314 | 0.764531 | 65 | 671 | 7.892308 | 0.553846 | 0.052632 | 0.054581 | 0.038986 | 0.136452 | 0.136452 | 0.136452 | 0.136452 | 0.136452 | 0.136452 | 0 | 0.614711 | 0.149031 | 671 | 25 | 315 | 26.84 | 0.283713 | 0.579732 | 0 | 0 | 0 | 0 | 0.169065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.214286 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a1b5dbce2b0fb4a8637a080f68c5e54ef9a85921 | 226 | py | Python | OctaHomeAlarm/OctaFiles/urls.py | Tomcuzz/OctaHomeAutomation | 4f0c5ea8b3d5b6e67633ae9c4cb95287d2784f5e | [
"MIT"
] | 4 | 2016-08-14T22:07:03.000Z | 2020-10-05T14:43:03.000Z | OctaHomeAlarm/OctaFiles/urls.py | Tomcuzz/OctaHomeAutomation | 4f0c5ea8b3d5b6e67633ae9c4cb95287d2784f5e | [
"MIT"
] | null | null | null | OctaHomeAlarm/OctaFiles/urls.py | Tomcuzz/OctaHomeAutomation | 4f0c5ea8b3d5b6e67633ae9c4cb95287d2784f5e | [
"MIT"
] | null | null | null | from OctaHomeCore.OctaFiles.urls.base import *
from OctaHomeAlarm.views import *
class AlarmOctaUrls(OctaUrls):
@classmethod
def getUrls(cls):
return [
url(r'^Alarm/$', handleAlarmView.as_view(), name='Alarm'),
]
| 20.545455 | 61 | 0.721239 | 26 | 226 | 6.230769 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141593 | 226 | 10 | 62 | 22.6 | 0.835052 | 0 | 0 | 0 | 0 | 0 | 0.057522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 0.625 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
a1bd2facf97d3d87f09eec766a557ef7d12c4922 | 1,425 | py | Python | test/dynamic_url_test.py | JhoneM/DynamicUrl | 06abe3b9fbdebd20b035f7bf8b599161a02a26e3 | [
"MIT"
] | null | null | null | test/dynamic_url_test.py | JhoneM/DynamicUrl | 06abe3b9fbdebd20b035f7bf8b599161a02a26e3 | [
"MIT"
] | null | null | null | test/dynamic_url_test.py | JhoneM/DynamicUrl | 06abe3b9fbdebd20b035f7bf8b599161a02a26e3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
from dynamic_url import Url
class TestParams(unittest.TestCase):
array_test = ["Origin"]
dict_test = {"Origin": "test"}
dict_test2 = {"Not_Origin": "test"}
dict_test3 = {"Origin": "https://www.google.com/"}
dict_test4 = {"Origin": ""}
def test_get_url_t... | 26.886792 | 77 | 0.514386 | 156 | 1,425 | 4.448718 | 0.25 | 0.086455 | 0.181556 | 0.211816 | 0.521614 | 0.487032 | 0.45245 | 0.351585 | 0.242075 | 0.242075 | 0 | 0.007376 | 0.334035 | 1,425 | 52 | 78 | 27.403846 | 0.72392 | 0.014737 | 0 | 0.386364 | 0 | 0 | 0.203281 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 1 | 0.068182 | false | 0 | 0.045455 | 0 | 0.25 | 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 | 0 | 0 | 0 | 2 |
a1bf5fe4b1ed6f84ba692550fe3d928a4e0d2eca | 312 | py | Python | test-gpubsub.py | psriramula/google-pub-sub-tester | 7edaeec50fe84f1c85222329340c341e915bb22d | [
"Apache-2.0"
] | null | null | null | test-gpubsub.py | psriramula/google-pub-sub-tester | 7edaeec50fe84f1c85222329340c341e915bb22d | [
"Apache-2.0"
] | null | null | null | test-gpubsub.py | psriramula/google-pub-sub-tester | 7edaeec50fe84f1c85222329340c341e915bb22d | [
"Apache-2.0"
] | null | null | null | from subscriber import create_subscription
from publisher import create_topic
project_id = "my-fast-trace-project1"
topic_name = "TEST_TOPIC_ID"
subscription_name = "number-one-sub-1"
topic_res = create_topic(project_id, topic_name)
subsction_res = create_subscription(project_id, topic_name, subscription_name)
| 39 | 78 | 0.839744 | 45 | 312 | 5.466667 | 0.466667 | 0.109756 | 0.146341 | 0.162602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.083333 | 312 | 7 | 79 | 44.571429 | 0.853147 | 0 | 0 | 0 | 0 | 0 | 0.163462 | 0.070513 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a1c398551f0cedb74a5e431650534efbd815d40d | 82 | py | Python | beecrowd exercises/beecrowd-1002.py | pachecosamuel/Python-Exercises | de542536dd1a2bc0ad27e81824713cda8ad34054 | [
"MIT"
] | null | null | null | beecrowd exercises/beecrowd-1002.py | pachecosamuel/Python-Exercises | de542536dd1a2bc0ad27e81824713cda8ad34054 | [
"MIT"
] | null | null | null | beecrowd exercises/beecrowd-1002.py | pachecosamuel/Python-Exercises | de542536dd1a2bc0ad27e81824713cda8ad34054 | [
"MIT"
] | null | null | null | pi = 3.14159
raio = eval(input())
area = pi * (raio ** 2)
print(f'A={area:.4f}')
| 13.666667 | 23 | 0.54878 | 15 | 82 | 3 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 0.182927 | 82 | 5 | 24 | 16.4 | 0.552239 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a1c96e2590f4022cdf77f447f1a7d73d4835a61d | 2,027 | py | Python | apps/core/utils.py | mehrbodjavadi79/AIC21-Backend | 9f4342781f0722804a2eb704b43b52984c81b40a | [
"MIT"
] | 3 | 2021-03-12T18:32:39.000Z | 2021-11-08T10:21:04.000Z | apps/core/utils.py | mehrbodjavadi79/AIC21-Backend | 9f4342781f0722804a2eb704b43b52984c81b40a | [
"MIT"
] | null | null | null | apps/core/utils.py | mehrbodjavadi79/AIC21-Backend | 9f4342781f0722804a2eb704b43b52984c81b40a | [
"MIT"
] | 2 | 2021-01-29T14:52:53.000Z | 2022-03-05T10:24:24.000Z | import json
import string
import random
from django.conf import settings
import telegram
LETTERS = string.ascii_letters
NUMBERS = string.digits
PUNCTUATION = string.punctuation
def send_email(subject, template_name, context,
from_email=settings.EMAIL_HOST_USER,
receipts=None, file_path... | 30.253731 | 78 | 0.715343 | 247 | 2,027 | 5.639676 | 0.408907 | 0.035894 | 0.034458 | 0.025844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017231 | 0.198323 | 2,027 | 66 | 79 | 30.712121 | 0.84 | 0.078441 | 0 | 0 | 0 | 0 | 0.075766 | 0.041376 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.086957 | false | 0.130435 | 0.195652 | 0 | 0.326087 | 0.086957 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a1e6d9604f15b281cc7d4ea9473acc41d08ef24e | 2,056 | py | Python | src/wordbase/debug.py | vsemionov/wordbase | 62a34c223e3acc6db9b26147e3773c623640ab00 | [
"BSD-3-Clause"
] | null | null | null | src/wordbase/debug.py | vsemionov/wordbase | 62a34c223e3acc6db9b26147e3773c623640ab00 | [
"BSD-3-Clause"
] | null | null | null | src/wordbase/debug.py | vsemionov/wordbase | 62a34c223e3acc6db9b26147e3773c623640ab00 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (C) 2011 Victor Semionov
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and t... | 38.792453 | 94 | 0.751459 | 286 | 2,056 | 5.332168 | 0.527972 | 0.013115 | 0.023607 | 0.030164 | 0.120656 | 0.08918 | 0.08918 | 0.08918 | 0.08918 | 0.08918 | 0 | 0.003601 | 0.189689 | 2,056 | 52 | 95 | 39.538462 | 0.911765 | 0.727626 | 0 | 0.25 | 0 | 0 | 0.039252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.25 | 0.0625 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a1ec4a54c8cff26e4303bb0a9299f78fda03d8c9 | 10,892 | py | Python | plugin.video.rebirth/resources/lib/modules/jsunfuck.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2019-03-05T09:38:10.000Z | 2019-03-05T09:38:10.000Z | plugin.video.rebirth/resources/lib/modules/jsunfuck.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | null | null | null | plugin.video.rebirth/resources/lib/modules/jsunfuck.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2021-11-05T20:48:09.000Z | 2021-11-05T20:48:09.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
################################################################################
# | #
# | ______________________________________________________________ #
# | :~8a.`~888a:::::::::::::::8... | 43.222222 | 107 | 0.354297 | 1,201 | 10,892 | 3.10741 | 0.186511 | 0.064309 | 0.036442 | 0.009646 | 0.363612 | 0.303859 | 0.245445 | 0.232583 | 0.194534 | 0.194534 | 0 | 0.059436 | 0.36513 | 10,892 | 251 | 108 | 43.394422 | 0.48026 | 0.250092 | 0 | 0.186813 | 0 | 0.054945 | 0.227668 | 0.096762 | 0.005495 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005495 | 0.021978 | null | null | 0.005495 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8004b612642a17be94fdbdf9801bdb0c415a3c8 | 5,105 | py | Python | Python/libraries/recognizers-date-time/recognizers_date_time/date_time/french/merged_extractor_config.py | hongman/Recognizers-Text | f5c158b9f60a86574633d7d67c47965dcab90abd | [
"MIT"
] | 1 | 2019-06-19T10:45:24.000Z | 2019-06-19T10:45:24.000Z | Python/libraries/recognizers-date-time/recognizers_date_time/date_time/french/merged_extractor_config.py | hongman/Recognizers-Text | f5c158b9f60a86574633d7d67c47965dcab90abd | [
"MIT"
] | null | null | null | Python/libraries/recognizers-date-time/recognizers_date_time/date_time/french/merged_extractor_config.py | hongman/Recognizers-Text | f5c158b9f60a86574633d7d67c47965dcab90abd | [
"MIT"
] | 1 | 2019-03-21T13:02:12.000Z | 2019-03-21T13:02:12.000Z | from typing import List, Pattern
from recognizers_text.extractor import Extractor
from recognizers_text.utilities import RegExpUtility
from recognizers_number import FrenchIntegerExtractor
from ...resources.french_date_time import FrenchDateTime
from ..extractors import DateTimeExtractor
from ..base_merged import Merg... | 42.190083 | 117 | 0.800588 | 482 | 5,105 | 8.09751 | 0.16805 | 0.05073 | 0.051243 | 0.083013 | 0.286446 | 0.157827 | 0.121957 | 0 | 0 | 0 | 0 | 0 | 0.145348 | 5,105 | 120 | 118 | 42.541667 | 0.894568 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191919 | false | 0 | 0.252525 | 0.181818 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
b802b5828937a929121ed87c2531d62096504ee4 | 72,978 | py | Python | pysnmp/SNIA-SML-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/SNIA-SML-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/SNIA-SML-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module SNIA-SML-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SNIA-SML-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:00:04 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019,... | 186.168367 | 10,449 | 0.760257 | 8,094 | 72,978 | 6.786138 | 0.06894 | 0.008338 | 0.01076 | 0.014273 | 0.561309 | 0.545251 | 0.43678 | 0.3901 | 0.341963 | 0.319515 | 0 | 0.083252 | 0.075146 | 72,978 | 391 | 10,450 | 186.644501 | 0.730554 | 0.004357 | 0 | 0.005277 | 0 | 0 | 0.184154 | 0.059806 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.002639 | 0.015831 | 0 | 0.047493 | 0.002639 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b80626fb877bacde5ab0a18a07bb4d3919532fa0 | 76,760 | py | Python | evaluation/sliding_window.py | Awannaphasch2016/tgn | a0eb4b4759cb44e053dfb6a825ccac1d54dba33f | [
"Apache-2.0"
] | null | null | null | evaluation/sliding_window.py | Awannaphasch2016/tgn | a0eb4b4759cb44e053dfb6a825ccac1d54dba33f | [
"Apache-2.0"
] | null | null | null | evaluation/sliding_window.py | Awannaphasch2016/tgn | a0eb4b4759cb44e053dfb6a825ccac1d54dba33f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
import math
import pandas as pd
import numpy as np
import time
import pickle
import torch
from sklearn.metrics import average_precision_score, roc_auc_score
from utils.utils import EarlyStopMonitor, get_neighbor_finder, compute_xf_iwf, compute_nf, get_nf_iwf, add_only_new_values_of_new_window_... | 45.88165 | 781 | 0.744229 | 11,337 | 76,760 | 4.619123 | 0.045426 | 0.014513 | 0.013234 | 0.011916 | 0.798766 | 0.744916 | 0.699945 | 0.669926 | 0.636699 | 0.606642 | 0 | 0.003332 | 0.163353 | 76,760 | 1,672 | 782 | 45.909091 | 0.812086 | 0.238809 | 0 | 0.559755 | 0 | 0.001021 | 0.057093 | 0.010656 | 0 | 0 | 0 | 0.001794 | 0.024515 | 1 | 0.087845 | false | 0 | 0.017365 | 0.002043 | 0.128703 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b80972536a3b6333e45e21d07ff0d41300e67ef9 | 1,114 | py | Python | code/parsing/aggregation/counting.py | mdheller/SPARQA | 3678798491abeb350d9500182291b9a73da75bed | [
"MIT"
] | 1 | 2020-06-20T12:27:11.000Z | 2020-06-20T12:27:11.000Z | code/parsing/aggregation/counting.py | mdheller/SPARQA | 3678798491abeb350d9500182291b9a73da75bed | [
"MIT"
] | null | null | null | code/parsing/aggregation/counting.py | mdheller/SPARQA | 3678798491abeb350d9500182291b9a73da75bed | [
"MIT"
] | null | null | null | from parsing import parsing_utils
from parsing import parsing_args
def is_count_funct(serialization_list):
'''is_count_funct(serialization_list)'''
is_count = False
for element in serialization_list:
if element in parsing_args.count_ner_tags:
is_count = True
break
... | 27.170732 | 130 | 0.696589 | 140 | 1,114 | 5.192857 | 0.321429 | 0.057772 | 0.074278 | 0.066025 | 0.089409 | 0.089409 | 0.089409 | 0 | 0 | 0 | 0 | 0 | 0.239677 | 1,114 | 40 | 131 | 27.85 | 0.858323 | 0.030521 | 0 | 0.133333 | 0 | 0 | 0.012597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0.133333 | 0.066667 | 0 | 0.4 | 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 | 0 | 0 | 0 | 2 |
62b7728ef9e94595304851ae47a1a618e7313123 | 5,054 | py | Python | backend/users/viewsets.py | crowdbotics-apps/royal-cloud-33498 | 4ac1701e6af7db4b3b7393b73fc0af80fc313b3b | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | backend/users/viewsets.py | crowdbotics-apps/royal-cloud-33498 | 4ac1701e6af7db4b3b7393b73fc0af80fc313b3b | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | backend/users/viewsets.py | crowdbotics-apps/royal-cloud-33498 | 4ac1701e6af7db4b3b7393b73fc0af80fc313b3b | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | from this import d
from django.core.exceptions import ObjectDoesNotExist
from rest_framework import status
from rest_framework.decorators import action
from rest_framework.viewsets import ModelViewSet
from rest_framework.authtoken.models import Token
from rest_framework.response import Response
from rest_framework.perm... | 45.125 | 120 | 0.70835 | 565 | 5,054 | 6.187611 | 0.226549 | 0.056064 | 0.064073 | 0.038043 | 0.331236 | 0.319222 | 0.302632 | 0.243135 | 0.170767 | 0.170767 | 0 | 0.01175 | 0.191729 | 5,054 | 111 | 121 | 45.531532 | 0.844064 | 0.025326 | 0 | 0.263736 | 0 | 0 | 0.053895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098901 | false | 0.076923 | 0.164835 | 0.010989 | 0.505495 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
62b794937291cbc2a702f7ed74d3b89f357dfb9c | 1,484 | py | Python | 2020/day18/day18_v2.py | rystrauss/advent-of-code | 50341f1145c42441d7273f597d3d89889c9642e0 | [
"MIT"
] | null | null | null | 2020/day18/day18_v2.py | rystrauss/advent-of-code | 50341f1145c42441d7273f597d3d89889c9642e0 | [
"MIT"
] | null | null | null | 2020/day18/day18_v2.py | rystrauss/advent-of-code | 50341f1145c42441d7273f597d3d89889c9642e0 | [
"MIT"
] | null | null | null | from functools import reduce
from operator import add
class CustomInt:
def __init__(self, *args):
self._int = int(*args)
def __pow__(self, power):
return CustomInt(self._int + power._int)
def __add__(self, other):
return CustomInt(self._int + other._int)
def __mul__(self, ot... | 26.5 | 79 | 0.633423 | 180 | 1,484 | 4.905556 | 0.327778 | 0.047565 | 0.08607 | 0.09966 | 0.346546 | 0.287656 | 0.287656 | 0.287656 | 0.287656 | 0.14496 | 0 | 0.005226 | 0.226415 | 1,484 | 55 | 80 | 26.981818 | 0.763937 | 0 | 0 | 0.054054 | 0 | 0 | 0.039757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.054054 | 0.135135 | 0.459459 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
62c3e96a26cacc6a88ec7448cae53f54b3a2d925 | 1,405 | py | Python | core/models.py | ADiscordUser/adiscorduser-site | af6eb58ab528fddba82b8c65bfdd06b6663333cc | [
"MIT"
] | 2 | 2021-03-06T02:21:35.000Z | 2021-03-06T09:34:57.000Z | core/models.py | ADiscordUser/adiscorduser-site | af6eb58ab528fddba82b8c65bfdd06b6663333cc | [
"MIT"
] | null | null | null | core/models.py | ADiscordUser/adiscorduser-site | af6eb58ab528fddba82b8c65bfdd06b6663333cc | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin
from rest_framework.authtoken.models import Token
from django.dispatch import receiver
from django.core.validators import MinLengthValidator
class UserManager(BaseUserManager):
def create_user(se... | 36.973684 | 111 | 0.73452 | 160 | 1,405 | 6.29375 | 0.4375 | 0.039722 | 0.074479 | 0.059583 | 0.063555 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002575 | 0.170819 | 1,405 | 38 | 112 | 36.973684 | 0.861803 | 0 | 0 | 0 | 0 | 0 | 0.009246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.0625 | 0.15625 | 0.03125 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
62c4a4b554d97b148d6761694c81104b3eeaa525 | 330 | py | Python | Algorithms/Implementation/jumping-on-the-clouds.py | vishu006/Hackerrank | 927bc370b668aa568d17ee96ac2a3728568d437e | [
"CC-BY-4.0"
] | 1 | 2017-08-12T19:18:12.000Z | 2017-08-12T19:18:12.000Z | Algorithms/Implementation/jumping-on-the-clouds.py | vishu006/Hackerrank | 927bc370b668aa568d17ee96ac2a3728568d437e | [
"CC-BY-4.0"
] | null | null | null | Algorithms/Implementation/jumping-on-the-clouds.py | vishu006/Hackerrank | 927bc370b668aa568d17ee96ac2a3728568d437e | [
"CC-BY-4.0"
] | null | null | null | # Author: Rajanikant Tenguria
#!/bin/python
import sys
count,pos,i=0,0,0
n = int(raw_input().strip())
c = map(int,raw_input().strip().split(' '))
c.append(1)
while i<n-1:
pos=i
#print pos,c[i+2]
if c[i+2]==0:
i=i+2
#print i
else:
i+=1
count+=1
#print pos,count,i
print ... | 15 | 43 | 0.545455 | 60 | 330 | 2.966667 | 0.433333 | 0.033708 | 0.123596 | 0.179775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.266667 | 330 | 21 | 44 | 15.714286 | 0.690083 | 0.239394 | 0 | 0 | 0 | 0 | 0.004082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
62c5faedd4785429373c839ac9458000207385d8 | 233 | py | Python | kairon/shared/tornado/handlers/index.py | rit1200/kairon | 674a491f6deeae4800825ca93e0726e4fb6e0866 | [
"Apache-2.0"
] | 97 | 2020-08-18T10:07:48.000Z | 2022-03-26T18:33:37.000Z | kairon/shared/tornado/handlers/index.py | rit1200/kairon | 674a491f6deeae4800825ca93e0726e4fb6e0866 | [
"Apache-2.0"
] | 276 | 2020-08-27T23:24:35.000Z | 2022-03-31T09:43:30.000Z | kairon/shared/tornado/handlers/index.py | rit1200/kairon | 674a491f6deeae4800825ca93e0726e4fb6e0866 | [
"Apache-2.0"
] | 46 | 2020-09-11T13:29:41.000Z | 2022-03-08T12:27:17.000Z | from abc import ABC
from .base import BaseHandler
class IndexHandler(BaseHandler, ABC):
async def get(self):
self.write("Kairon Server Running")
async def post(self):
self.write("Kairon Server Running")
| 16.642857 | 43 | 0.682403 | 30 | 233 | 5.3 | 0.533333 | 0.100629 | 0.163522 | 0.238994 | 0.402516 | 0.402516 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227468 | 233 | 13 | 44 | 17.923077 | 0.883333 | 0 | 0 | 0.285714 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
62d8110f35568960218e6e84f4128a77c5532e9d | 476 | py | Python | test/test_job.py | harshgits/cluster_submission | 786e23be53699c1cde97a01ac5fe8c92ab50da60 | [
"MIT"
] | null | null | null | test/test_job.py | harshgits/cluster_submission | 786e23be53699c1cde97a01ac5fe8c92ab50da60 | [
"MIT"
] | null | null | null | test/test_job.py | harshgits/cluster_submission | 786e23be53699c1cde97a01ac5fe8c92ab50da60 | [
"MIT"
] | null | null | null | from time import sleep
from random import random
from numpy import savetxt, array
import os, sys
def main():
sleep(15) #sleep for 15 seconds
#saving a random number as the result
if not os.path.isdir(str(__file__) + '_data'): os.makedirs(str(__file__) + '_data')
savetxt(fname = os.path.join(str(__file__) + '_data... | 34 | 171 | 0.665966 | 70 | 476 | 4.2 | 0.585714 | 0.071429 | 0.112245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012438 | 0.155462 | 476 | 14 | 172 | 34 | 0.718905 | 0.117647 | 0 | 0 | 0 | 0 | 0.085919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0 | 0.4 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
62e6e406c949b44a573756139e472cbdc8de7373 | 718 | py | Python | disco/extensions/pydss_simulation/time_series_impact_analysis_configuration.py | daniel-thom/disco | 2de6869888c015ff70985bf6f6b1a0fcc15fc561 | [
"BSD-3-Clause"
] | 2 | 2022-03-11T20:04:34.000Z | 2022-03-14T22:25:29.000Z | disco/extensions/pydss_simulation/time_series_impact_analysis_configuration.py | daniel-thom/disco | 2de6869888c015ff70985bf6f6b1a0fcc15fc561 | [
"BSD-3-Clause"
] | 4 | 2022-03-11T17:48:50.000Z | 2022-03-17T21:39:47.000Z | disco/extensions/pydss_simulation/time_series_impact_analysis_configuration.py | daniel-thom/disco | 2de6869888c015ff70985bf6f6b1a0fcc15fc561 | [
"BSD-3-Clause"
] | null | null | null |
import copy
import logging
from disco.extensions.pydss_simulation.pydss_configuration import \
PyDssConfiguration
from disco.extensions.pydss_simulation.pydss_inputs import PyDssInputs
from disco.pydss.common import ConfigType
from jade.utils.utils import load_data
logger = logging.getLogger(__name__)
def aut... | 26.592593 | 70 | 0.761838 | 87 | 718 | 6.103448 | 0.482759 | 0.050847 | 0.071563 | 0.090395 | 0.146893 | 0.146893 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155989 | 718 | 26 | 71 | 27.615385 | 0.876238 | 0.193593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
62f9a0ec321da2ab94434d92aad35f3d91a2aee7 | 273 | py | Python | Mundo 2 - Estruturas de Controle/ex053.py | diegomcosta/Curso-em-Video-Python | 3f91b27390b90b686547931d4b1116d1a801cac6 | [
"MIT"
] | null | null | null | Mundo 2 - Estruturas de Controle/ex053.py | diegomcosta/Curso-em-Video-Python | 3f91b27390b90b686547931d4b1116d1a801cac6 | [
"MIT"
] | null | null | null | Mundo 2 - Estruturas de Controle/ex053.py | diegomcosta/Curso-em-Video-Python | 3f91b27390b90b686547931d4b1116d1a801cac6 | [
"MIT"
] | null | null | null | frase = input("Digite uma frase: ").strip().upper()
frase = frase.replace(" ","")
inverso = frase[::-1]
print(f"O inverso de {frase} é {inverso}")
if (frase == inverso):
print("A frase digitada é um palíndromo!")
else:
print("A frase digitada não é um palíndromo!") | 34.125 | 51 | 0.652015 | 40 | 273 | 4.45 | 0.525 | 0.067416 | 0.123596 | 0.213483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004367 | 0.161172 | 273 | 8 | 52 | 34.125 | 0.772926 | 0 | 0 | 0 | 0 | 0 | 0.441606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
62ffa2f9f584d68c45e81894d4bac09c0671bf12 | 343 | py | Python | test/test_platform.py | SebastianDang/PyBall | d1965aa01477b5ee0db9c0463ec584a7e3997395 | [
"MIT"
] | 74 | 2018-03-04T22:58:46.000Z | 2021-07-06T12:28:50.000Z | test/test_platform.py | SebastianDang/PyBall | d1965aa01477b5ee0db9c0463ec584a7e3997395 | [
"MIT"
] | 18 | 2018-03-10T19:17:54.000Z | 2020-01-04T15:42:47.000Z | test/test_platform.py | SebastianDang/PyBall | d1965aa01477b5ee0db9c0463ec584a7e3997395 | [
"MIT"
] | 13 | 2018-03-06T02:39:38.000Z | 2020-01-17T04:38:53.000Z | import pytest
from pyball import PyBall
from pyball.models.config import Platform
@pytest.fixture(scope='module')
def test_platform():
pyball = PyBall()
return pyball.get_platforms()
def test_get_platform_returns_platform(test_platform):
assert isinstance(test_platform, list)
assert isinstance(test_... | 22.866667 | 54 | 0.781341 | 44 | 343 | 5.886364 | 0.454545 | 0.185328 | 0.15444 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003367 | 0.134111 | 343 | 14 | 55 | 24.5 | 0.868687 | 0 | 0 | 0 | 0 | 0 | 0.017493 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.6 | 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 | 0 | 1 | 0 | 0 | 2 |
1a133155a3ea89db2066092bb7af13fabbd8105f | 930 | py | Python | backend/app/api/routes/__init__.py | dakotagporter/wine-helms | 377a5b74ef2820fa2d25e8f71783ed8aa682f714 | [
"MIT"
] | 1 | 2021-04-25T00:15:52.000Z | 2021-04-25T00:15:52.000Z | backend/app/api/routes/__init__.py | dakotagporter/wine-helms | 377a5b74ef2820fa2d25e8f71783ed8aa682f714 | [
"MIT"
] | null | null | null | backend/app/api/routes/__init__.py | dakotagporter/wine-helms | 377a5b74ef2820fa2d25e8f71783ed8aa682f714 | [
"MIT"
] | null | null | null | """
Aggregation of all application routes into a single router. All created routers are imported here and
added to a single router for access from the app.api.server file.
router:
- Initial instantiation of a router
- All routers are aggregated to this router
- All routers are given a name (to appear in th... | 38.75 | 101 | 0.776344 | 142 | 930 | 5.014085 | 0.338028 | 0.042135 | 0.05618 | 0.089888 | 0.092697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139785 | 930 | 24 | 102 | 38.75 | 0.89 | 0.452688 | 0 | 0 | 0 | 0 | 0.078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1a153a767a263c06b421b78313daf7a1b2d57241 | 2,231 | py | Python | src/news/models.py | Busaka/ecn | 12ffe05ae854b1b43a053fb74698ac28e019d37b | [
"MIT"
] | null | null | null | src/news/models.py | Busaka/ecn | 12ffe05ae854b1b43a053fb74698ac28e019d37b | [
"MIT"
] | null | null | null | src/news/models.py | Busaka/ecn | 12ffe05ae854b1b43a053fb74698ac28e019d37b | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class New(models.Model):
heading_one = models.CharField(max_length=500)
h1_paragraph1 = models.TextField()
h1_paragraph2 = models.TextField(blank=True)
h1_paragraph3 = models.TextField(blank=True)
image_one = models.ImageField(upload_to='news... | 41.314815 | 88 | 0.748095 | 296 | 2,231 | 5.385135 | 0.185811 | 0.169385 | 0.150565 | 0.180678 | 0.725847 | 0.496236 | 0.349435 | 0.349435 | 0.191343 | 0.163112 | 0 | 0.028184 | 0.141192 | 2,231 | 53 | 89 | 42.09434 | 0.803758 | 0.021963 | 0 | 0 | 0 | 0 | 0.091785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.02439 | 0.02439 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1a16820975e5b3209583dd02b1f6b6789d7179a4 | 850 | py | Python | mysite/myapp/views.py | rreyfockandroid/django | b42211bf4dd01f6cbf54321353ea672eb862b228 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | mysite/myapp/views.py | rreyfockandroid/django | b42211bf4dd01f6cbf54321353ea672eb862b228 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | mysite/myapp/views.py | rreyfockandroid/django | b42211bf4dd01f6cbf54321353ea672eb862b228 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | from django.http import HttpResponse
from datetime import datetime
import django
import platform
def helloX(request):
dver = django.get_version()
pver = platform.python_version()
text = "<h1>Witaj w mojej aplikacji! Version, python: %s, django: %s</h1>"% (pver, dver)
return HttpResponse(text)
def mor... | 24.285714 | 92 | 0.698824 | 104 | 850 | 5.692308 | 0.432692 | 0.121622 | 0.148649 | 0.126689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002878 | 0.182353 | 850 | 34 | 93 | 25 | 0.848921 | 0 | 0 | 0.173913 | 0 | 0.043478 | 0.198824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.217391 | 0 | 0.652174 | 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 | 0 | 1 | 0 | 0 | 2 |
1a1f1a8521a418248058d2005342d6bd0bd65de4 | 455 | py | Python | angello-venv/Scripts/gprof2dot-script.py | Kene-repo/angello | 4366a895f0ecf0226977e72a608e3e327a2cddf8 | [
"CC-BY-4.0"
] | null | null | null | angello-venv/Scripts/gprof2dot-script.py | Kene-repo/angello | 4366a895f0ecf0226977e72a608e3e327a2cddf8 | [
"CC-BY-4.0"
] | null | null | null | angello-venv/Scripts/gprof2dot-script.py | Kene-repo/angello | 4366a895f0ecf0226977e72a608e3e327a2cddf8 | [
"CC-BY-4.0"
] | null | null | null | #!C:\Users\user\myprojects\angello\angello-venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'gprof2dot==2016.10.13','console_scripts','gprof2dot'
__requires__ = 'gprof2dot==2016.10.13'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.py... | 35 | 83 | 0.698901 | 64 | 455 | 4.671875 | 0.5625 | 0.130435 | 0.150502 | 0.170569 | 0.267559 | 0.267559 | 0.267559 | 0 | 0 | 0 | 0 | 0.076543 | 0.10989 | 455 | 12 | 84 | 37.916667 | 0.661728 | 0.320879 | 0 | 0 | 0 | 0 | 0.315961 | 0.211726 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
1a1fce45ce7c1c752c4fc42cbcd3b43c87a52e33 | 8,736 | py | Python | futsu/gcp/test/test_storage.py | luzi82/py.futsu | 3042dbcf25aa86bda37c9fb7892da2ca4b6880c0 | [
"WTFPL"
] | null | null | null | futsu/gcp/test/test_storage.py | luzi82/py.futsu | 3042dbcf25aa86bda37c9fb7892da2ca4b6880c0 | [
"WTFPL"
] | null | null | null | futsu/gcp/test/test_storage.py | luzi82/py.futsu | 3042dbcf25aa86bda37c9fb7892da2ca4b6880c0 | [
"WTFPL"
] | null | null | null | from unittest import TestCase
from futsu.gcp import storage as fstorage
import futsu.fs as ffs
import tempfile
import os
from google.cloud import storage as gcstorage
import time
import string
import random
class TestStorage(TestCase):
def test_is_bucket_path(self):
self.assertTrue(fstorage.is_bucket_pat... | 45.030928 | 115 | 0.673077 | 1,136 | 8,736 | 4.958627 | 0.106514 | 0.094088 | 0.134742 | 0.146458 | 0.751465 | 0.713474 | 0.68365 | 0.577845 | 0.514468 | 0.468134 | 0 | 0.008946 | 0.168269 | 8,736 | 193 | 116 | 45.264249 | 0.766309 | 0 | 0 | 0.167785 | 0 | 0 | 0.160485 | 0.06891 | 0 | 0 | 0 | 0 | 0.47651 | 1 | 0.114094 | false | 0 | 0.060403 | 0 | 0.187919 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a7eae2e414d6715e19ebc6024790489ce042d644 | 51,470 | py | Python | pysnmp-with-texts/CISCO-OPTICAL-MONITOR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-OPTICAL-MONITOR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-OPTICAL-MONITOR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-OPTICAL-MONITOR-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-OPTICAL-MONITOR-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:08:51 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.... | 184.480287 | 4,090 | 0.800117 | 6,200 | 51,470 | 6.641935 | 0.106774 | 0.033511 | 0.058645 | 0.006799 | 0.484677 | 0.37761 | 0.341112 | 0.31542 | 0.30017 | 0.284604 | 0 | 0.036299 | 0.108821 | 51,470 | 278 | 4,091 | 185.143885 | 0.861475 | 0.006684 | 0 | 0.088462 | 0 | 0.188462 | 0.517343 | 0.081519 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034615 | 0 | 0.188462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.